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

Add option for custom reading method name to adapters #245

Merged
merged 21 commits into from
Jul 30, 2021

Conversation

wpreimes
Copy link
Member

Most changes here (also in C files) are due to applying pre-commit hooks.

The 2 relevant parts are

  • In src/pytesmo/validation_framework/adapters.py I added a keyword that allows adding a method other than read/read_ts to the adapters. Data from this method (which is expected to return a DataFrame) is modified in the same way as for read/read_ts. By default, nothing changes compared to the previous implementation.
  • In some places I replaced the default read_ts function with read, as read_ts is deprecated in pygeobase and leads to many warnings when used in the validation framework.

@wpreimes wpreimes requested a review from s-scherrer July 29, 2021 10:30
src/pytesmo/validation_framework/adapters.py Outdated Show resolved Hide resolved
src/pytesmo/validation_framework/adapters.py Outdated Show resolved Hide resolved
src/pytesmo/validation_framework/adapters.py Outdated Show resolved Hide resolved
src/pytesmo/validation_framework/adapters.py Outdated Show resolved Hide resolved
src/pytesmo/validation_framework/adapters.py Outdated Show resolved Hide resolved
src/pytesmo/validation_framework/adapters.py Outdated Show resolved Hide resolved
src/pytesmo/validation_framework/adapters.py Outdated Show resolved Hide resolved
src/pytesmo/validation_framework/adapters.py Show resolved Hide resolved
src/pytesmo/validation_framework/adapters.py Outdated Show resolved Hide resolved
src/pytesmo/validation_framework/adapters.py Outdated Show resolved Hide resolved
@s-scherrer s-scherrer merged commit e7298bd into TUW-GEO:master Jul 30, 2021
@wpreimes wpreimes deleted the adapters-read-name branch July 30, 2021 07:43
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.

2 participants