GHSCI spatial and software update #277
carlhiggs
started this conversation in
Team Posts
Replies: 1 comment
-
By the way - for now in the analysis script the subprocesses are all still launched as subprocesses (invoked to be run as seperate processes by python) --- but in principle all scripts can now be imported directly, and we/our users could run them that way if they wanted. A lot more options with workflow orchestration with the new architecture. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @global-healthy-liveable-cities/software-spatial team ,
I just wanted to share a quick update of what I've been up to ahead of our working group meeting next week -- will be great to get your thoughts on both of these things:
a bug with GTFS (as per issue)
urbanaccess, or our implementation of it (but i think its the package) apparently doesn't deal properly with calendar_dates, which is an issue for some cities - like Barcelona)
an enormous new feature boost (we can run our analysis as imported libraries in python, including in Jupyter notebook - as per demo)
r = ghsci.Region(codename)
. Ther
object contains all the config relating to the study region, while project settings are found inghsci.settings
andghsci.indicators
etc.configure codename
analysis codename
generate codename
compare codename comparison_codename
jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --notebook-dir=/home/ghsci/work/process --allow-root
Here's what the new changes look like:
Running the notebook (no pictures - just text outputs like in terminal --- but its kind of useful, as it directs people like before what to do, but the jupyter interface means the text is broken up into the sections of analysis so its more readable; nice to have file browser on the side for our demonstrations)
Editing some yaml
Anyway - I've literally only just finished implementing this and its not ready for a pull request. There will be bugs e.g.
tqdm needs a widget update to work better with jupyter (you can see the error in the demo screenshot).
I suspect some of the docker compose launch commands used may assume use of a recent version of Docker desktop but I haven't been able to investigate this fully yet. Ihaven't tested on linux/MacOS.
But in broad strokes, I think this is pretty useful and helps address at least part way the need for different ways of using for different users.
The new approach also means it will be easier if we did want to create a barebones graphical user interface (GUI). But then again, once we've tested this, maybe we could go to our early adopters and see if they feel they need one, or if providing a series of example/template jupyter notebooks and/or a means to generate them for their cities would be sufficient.
I know this involved a lot of changes on the enhancements branch -- but again, having this done will make the future use of a more test driven and continuous integration/continuous development approach easier to implement.
That's all -- keen to hear your thoughts some time
Beta Was this translation helpful? Give feedback.
All reactions