Closed bstabler closed 4 years ago
Some proposed/in-progress changes for an easy command-line tool can be found on the cli branch of this repo. Our next step would be to move these changes over to the main ActivitySim package, where it could be reimported into BCA, PopSim, AsimTBM, etc.
bca create ...
will copy an example from the installed package into a user-specified directory. This will allow us to templatize certain setups and allow the user to easily configure their own settings. The user will not be required to copy files around between example/test folders, and the package will not need to include multiple copies of input files.bca run ...
: will run the program on a specified project directory. This tool would allow us to remove all the run_bca.py
, simulation.py
scripts from the examples and consolidate them into a single command.@bstabler @toliwaga if this sounds like a promising approach, I can update BCA to use this instead of all the run scripts. This would involve
--version
optionThen if we like how BCA is working we can
cli
module to ActivitySimhandle_standard_args
code from AsimA few things I'd like to do which would be very easy with this setup:
activitysim run ...
, PopSim would be populationsim run ...
, etc. but they'd share the same core codeversion.py
that could be incorporated into the cli toolsettings
cli option that would allow the user to set/view arbitrary settings without needing to open their config files whenever they want to tweak something-q
quiet flag?) that would suppress console outputThis looks good. For now let's just get the bca example working and then do a bit of testing. We can post bca on pypi as well, which we should do anyway. We can suggest moving this into activitysim if the bca example works well.
bca4abm create --list
doesn't return anything (on Windows?). bca4abm -h, --version, and run
all work.
fixed! thanks for catching that @bstabler 😅
see https://github.com/ActivitySim/activitysim/issues/287