-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Programmatic FLEE Execution #102
Conversation
Okay. Overall I think this is a sensible change, although the contents of This is not a serious issue, but it just means that whenever we update the run functions, we will have to update this now in three places, not two, to prevent things from breaking. Also, I think it would be good to mention this new functionality somewhere in the Lastly, I see that some of the tests are failing, but if they work then I'm happy to merge this in. |
runscripts/runner.py
Outdated
@@ -0,0 +1,146 @@ | |||
from flee import flee, spawning | |||
from flee.datamanager import handle_refugee_data, read_period | |||
from flee.datamanager import DataTable #DataTable.subtract_dates() |
Check notice
Code scanning / CodeQL
Unused import Note
runscripts/runner.py
Outdated
from flee.datamanager import handle_refugee_data, read_period | ||
from flee.datamanager import DataTable #DataTable.subtract_dates() | ||
from flee import InputGeography | ||
import numpy as np |
Check notice
Code scanning / CodeQL
Unused import Note
runscripts/runner.py
Outdated
from flee.datamanager import DataTable #DataTable.subtract_dates() | ||
from flee import InputGeography | ||
import numpy as np | ||
import flee.postprocessing.analysis as a |
Check notice
Code scanning / CodeQL
Unused import Note
Preliminary Information
Summary
This pull request introduces a new module,
runner.py
, containing a class,Simulation
, that allows flee execution via function calls extending the previously used command line interface. The goal is to provide developers with a programmatic way to interact with flee within their applications.Changes Made
runner.py
How to Use
Developers can now utilize the
runner.py
module in their codebase to programmatically invoke the tool. Example usage:Benefits
Testing
Reviewer Checklist