SpaceGroupUCL / depthmapX

depthmapX is a multi-platform Spatial Network Analysis Software
197 stars 52 forks source link

Feature request: Ability to manage attribute columns and run SalaScript in cli mode #333

Open joint-ventura opened 4 years ago

joint-ventura commented 4 years ago

It would be nice to be able to add, delete or update attribute columns by running SalaScript scripts in cli mode. Not an expert … just an idea. Cheers, JVL

pklampros commented 4 years ago

Hi @joint-ventura,

It's a good idea indeed, however I'm not sure it's worth maintaining salascript (let alone add new features). It was made to look and feel like python but these days it's preferable to embed an existing scripting language (like python or lua) instead of fixing the core functionality of a language that is particular to this program only. This is a complex task, so a more short-term solution would be to allow you to do that through the depthmapX Command Line Interface (but not through salascript) which you can then call externally from another language. I would actually encourage you to go that route (calling depthmap from a scripting language) instead of relying on salascript if you plan on doing any large scale analysis. Here are examples on how to do this with python or R.

Cheers, Petros

joint-ventura commented 4 years ago

Thanks Petros,

I will give it a look. Anyway, it seems a pity not to be able of manage columns by cli (somehow like the possibility of managing links) to apply some formula or do step depth without overwriting results, with no need for import export data maps. You guys will probably come with better solutions in the future…

Cheers, JVL