Commit 05ee576
Change default Hazard.event_name to string of event_id (#795)
* Update Hazard base.py
Change event_name default for Hazard.from_xarray_raster to string of event id.
Change variable description in class method.
* Update test_base_xarray.py
adapted event_name in test_assert_default_values and deleted event_name tests from test_missing_dims since the time dimension does not affect event_name anymore
* change default name to string of date
* save event_name as string of date and time
* ensure list of event names is flat
* Update CHANGELOG.md
* Update CHANGELOG.md
* update changelog
* Apply suggestions from code review
Co-authored-by: Lukas Riedel <[email protected]>
* Update AUTHORS.md
---------
Co-authored-by: Chahan M. Kropf <[email protected]>
Co-authored-by: Lukas Riedel <[email protected]>1 parent 158b1d8 commit 05ee576
File tree
4 files changed
+9
-4
lines changed- climada/hazard
- test
4 files changed
+9
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
840 | 840 | | |
841 | 841 | | |
842 | 842 | | |
843 | | - | |
| 843 | + | |
844 | 844 | | |
845 | 845 | | |
846 | 846 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | | - | |
| 346 | + | |
347 | 347 | | |
348 | 348 | | |
349 | 349 | | |
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| |||
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| 554 | + | |
| 555 | + | |
| 556 | + | |
554 | 557 | | |
555 | 558 | | |
556 | 559 | | |
| |||
0 commit comments