Commit a9f9e6a
Allow Exposures.from_raster to set Exposure metadata (#1091)
* Allow metadata values to be set when reading Exposures from raster
* Fix linting
* Fix linting
* Update CHANGELOG.md
* Don't restrict Exposures.from_raster attrs parameter to metadata
Previously we only let the attrs parameter set Exposures metadata
attributes. We remove this restriction so that it can specify any
parameter in the Exposures.__init__ method.
---------
Co-authored-by: emanuel-schmid <[email protected]>1 parent dc85d0f commit a9f9e6a
File tree
3 files changed
+11
-1
lines changed- climada/entity/exposures
- test
3 files changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
33 | 34 | | |
34 | 35 | | |
35 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
723 | 723 | | |
724 | 724 | | |
725 | 725 | | |
| 726 | + | |
726 | 727 | | |
727 | 728 | | |
728 | 729 | | |
| |||
750 | 751 | | |
751 | 752 | | |
752 | 753 | | |
| 754 | + | |
| 755 | + | |
753 | 756 | | |
754 | 757 | | |
755 | 758 | | |
756 | 759 | | |
757 | 760 | | |
| 761 | + | |
| 762 | + | |
758 | 763 | | |
759 | 764 | | |
760 | 765 | | |
| |||
781 | 786 | | |
782 | 787 | | |
783 | 788 | | |
| 789 | + | |
784 | 790 | | |
785 | 791 | | |
786 | 792 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
| |||
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
| 207 | + | |
205 | 208 | | |
206 | 209 | | |
207 | 210 | | |
| |||
0 commit comments