-
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
Release v1.1.0 #88
Release v1.1.0 #88
Conversation
Code does not work with PastasProject
Update examples.rst
- name is now name of directory - path is location in which directory w name will be created/read
- allow passing kind to stresses plot as list or as str - allow axes to be iterable in _timeseries plot
- switch order of conn and name args, conn is now first and required, name is optional. - add check and deprecationwarning if order is not correct - improve docstrings - improve get_model_timeseries_names for different pastas versions
add test meta with name (#78)
- actually test stresses plot - add cumulative hist - only test bgmap for pas pstores - add test modelstat - add test ctx_providers
@@ -1165,7 +1173,7 @@ def stresslinks( | |||
markersize=10, | |||
) | |||
] | |||
for kind in skind: | |||
for kind in kinds: | |||
(c,) = np.where(skind == kind) |
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.
np.where(kinds == kind)
?
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.
nvm this is fine
@@ -1165,7 +1173,7 @@ def stresslinks( | |||
markersize=10, | |||
) | |||
] | |||
for kind in skind: | |||
for kind in kinds: | |||
(c,) = np.where(skind == kind) |
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.
nvm this is fine
Deals with #85 and #87.
Warning, this new version does introduce two breaking changes:
pst.PastaStore(name, connector)
topst.PastaStore(connector, name=name)
with the name becoming optional.pst.PasConnector
thename
argument is now used to specify the directory name in which the database will be stored. Thepath
argument defines the location of that directory. This is also a breaking change and will require users to modify theirPasConnector
frompst.PasConnector("unused_name", path="./pastas_db")
topst.PasConnector("pastas_db", path=".")
. This is more in line with the other Connectors.Some minor improvements to testing, coverage and documentation are also included.