-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat/add local binding constraints (#5)
* Added create local binding constraint * Added properties object to binding constraints * Added default properties to binding constraints * Added bindingconstraints.ini file * Added bindingconstraints.ini file is managed from the Study and has the correct contents * Can add constraint terms * Refactored bindingconstraints.ini to be handled by the bindingconstraint service potentially duplicating the bindingconstraints in memory. Also fixed a default value and a documentation gap * Added default value 0 for constraint weight * Added the weight and offset combination in the ini file, as well as disabled interpolation in the ini tool * Upped numpy to 1.26.4, currently last version before 2.0.0. Added tox and tox-uv to allow for fast testing with multiple python versions. Changed exact dependencies to allow patch dependencies in requirements.txt and requirements-dev.txt * Fixed pydantic serializer warnings * Corrected number of decimal digits * Refactored binding constraints to be tracked in the service instead of the study to allow correct handling of ini file * Rewrite binding constraint to use the new default values and decorator * Updated TimeSeriesFile to require named arguments after file type and path, updated use to match * Binding constraint time series can be created * Refactored binding constraint time series to use the correct object type * Default time series with zeroes are created if none is provided * Added test to verify custom time series content provided at creation works * Removed unused dependency as per comment in pull request #5 * Updated properties setter to also update local properties as per PR #5 * Refactored storing the time series to separate functions to reduce complexity when reading the code * Fix for mypy * Converted to function and removed `@computed_field` and `@property` to avoid confusion. * Removed unnecessary `@computed_field`s. * Changed binding_constraints in the binding_constraint_services from property to attribute and removed unused binding_constraint attribute from `Study` as mentioned in discussion in PR #5
- Loading branch information
1 parent
d1d31d3
commit 3643b47
Showing
23 changed files
with
625 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
-r requirements.txt | ||
mypy~=1.10.0 | ||
ruff==0.4.7 | ||
ruff~=0.4.7 | ||
pytest-cov~=5.0.0 | ||
requests-mock~=1.12.1 | ||
types-requests~=2.27.1 | ||
tox~=4.18.1 | ||
tox-uv~=1.11.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,10 @@ | ||
absl-py==1.4.0 | ||
numpy==1.24.4 | ||
protobuf==4.23.3 | ||
absl-py~=1.4.0 | ||
numpy~=1.26.4 | ||
requests~=2.31.0 | ||
pandas ~=2.2.2 | ||
pandas-stubs ~=2.2.2 | ||
pandas~=2.2.2 | ||
pandas-stubs~=2.2.2 | ||
pytest~=7.2.1 | ||
python-dateutil~=2.9.0 | ||
pydantic==2.7.1 | ||
pydantic~=2.7.1 | ||
configparser~=5.0.2 | ||
click~=8.1.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.