This abstracts the datahub calls into a new data module. The control page is responsible for communicating with the data module and periodically updating the data (therefore the control page must be open for the data to update). The figure pages are set to periodically import the data and update (controlled by a different interval).
A couple more things in the issue which I haven't addressed yet:
stopping updates after data is complete
updating only the data component of the figures
Close #67
To merge after #75
Type of change
[x] New feature (non-breaking change which adds functionality)
[x] Optimization (non-breaking, back-end change that speeds up the code)
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] Breaking change (whatever its nature)
Key checklist
[x] All tests pass (python -m pytest)
[x] Pre-commit hooks run successfully (pre-commit run --all-files)
Description
This abstracts the datahub calls into a new data module. The control page is responsible for communicating with the data module and periodically updating the data (therefore the control page must be open for the data to update). The figure pages are set to periodically import the data and update (controlled by a different interval).
A couple more things in the issue which I haven't addressed yet:
Close #67
To merge after #75
Type of change
Key checklist
python -m pytest
)pre-commit run --all-files
)