-
Notifications
You must be signed in to change notification settings - Fork 14
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
remove tags from hazard classes #88
Conversation
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.
Looks good! I only suggest to improve the Changelog entry.
@@ -40,7 +40,6 @@ | |||
from climada.hazard.base import Hazard | |||
from climada.hazard.centroids import Centroids | |||
import climada.util.coordinates as u_coord | |||
from climada.util.tag import Tag |
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.
How did this work before? I don't see a climada/util/tag.py
module in any of the recent releases
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.
after release 3.3, hazard.tag and entity.tag have been merged
yearrange=TARGET_YEARRANGE, yearrange_ref=REFERENCE_YEARRANGE, | ||
gh_model=None, cl_model=None, | ||
scenario='historical', scenario_ref='historical', soc='histsoc', | ||
soc_ref='histsoc', fn_str_var=FN_STR_VAR, keep_dis_data=False): |
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.
Curious, that all of this information was only put into the tag 🤔
CHANGELOG.md
Outdated
- several adaptations have been necessary because of the `Tag` class being removed from the CLIMADA core package: | ||
[#88](https://github.com/CLIMADA-project/climada_petals/pull/88) |
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.
I suggest to put this into the "Removed" category:
### Removed
- `tag` attribute from hazard classes [#88](https://github.com/CLIMADA-project/climada_petals/pull/88)
🙌 thanks for the review! |
Changes proposed in this PR:
This is part of the overall climada refactoring to remove the Tag classes.
This PR fixes #
PR Author Checklist
develop
)PR Reviewer Checklist