-
Notifications
You must be signed in to change notification settings - Fork 4
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
feat: Refactor the Python API. #73
Conversation
Remove the functions and replace with two wrapper classes for Schema and Model. These have basic functionality to deserialise, load and run a model.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had a quick look through this and I like the approach. A few observations:
- Python cli is now broken though I suspect that fixing it is already on your TODO list..
- It would be useful to add some dev dependencies to pyproject toml - pyarrow, h5py, etc..
- The piecewise-link1 test failed for me. It could not find the
mrf1/step-00
component in the output h5 file.
I hadn't actually noticed this. Do we need a Rust CLI and a Python CLI? If this is staying it needs adding to the Python tests. The pipeline also needs re-enabling.
Noted!
Yes, this is why this is WIP. The test wanted to check the routing through the piecewise link. For this you need to save the sub-node timeseries. This needs support in the |
This is waiting for node attribute updates.
This is waiting on #85 for refactoring. |
The hdf5 crate is failing and I do not have access to macos to debug.
README.md
Outdated
|
||
```bash | ||
python -m pywr | ||
poetry install # install dependencies |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will no longer work with the poetry sections taken out of pyproject.toml?
Remove the functions and replace with two wrapper classes for Schema and Model. These have basic functionality to deserialise, load and run a model.