Skip to content
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

Merged
merged 18 commits into from
Mar 21, 2023
Merged

Release v1.1.0 #88

merged 18 commits into from
Mar 21, 2023

Conversation

dbrakenhoff
Copy link
Member

Deals with #85 and #87.

Warning, this new version does introduce two breaking changes:

  • This does introduce a breaking change, where people with old code will have to switch the order of the arguments from pst.PastaStore(name, connector) to pst.PastaStore(connector, name=name) with the name becoming optional.
  • Also in pst.PasConnector the name argument is now used to specify the directory name in which the database will be stored. The path argument defines the location of that directory. This is also a breaking change and will require users to modify their PasConnector from pst.PasConnector("unused_name", path="./pastas_db") to pst.PasConnector("pastas_db", path="."). This is more in line with the other Connectors.

Some minor improvements to testing, coverage and documentation are also included.

MattBrst and others added 18 commits March 17, 2023 13:13
Code does not work with PastasProject
- use stored names as index, always
- disregard stored name in metadata
- 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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

np.where(kinds == kind)?

Copy link
Contributor

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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm this is fine

@rubencalje rubencalje merged commit 3ecaae3 into master Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

stored name not showing up in stresses dataframe PastaStore and Connector names and logical defaults
4 participants