-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update IMT.csv #259
base: 0.3-codelist-updates
Are you sure you want to change the base?
Update IMT.csv #259
Conversation
Add imt code for cyclone wind speed 10-min sustained. It was already there as km/h but STORM uses m/s... This makes me reconsider the discussion in #5, and splitting IMT into two separate codelists: - metric (optional) - unit (mandatory) So even if the specific metric (larger range of variability) is not in the codelist, one can still indicate the unit if part of the most common ones (smaller range of variability).
In addition: it's not always useful to specify the hazard type in the metric. In some cases it just create unnecessary duplication when the same metric:unit could be used. E.g. |
The other tests that are failing are because you've added some codes to closed codelists (metric_dimensions, and exposure_category) but you've not included the new codes in every instance of |
Co-authored-by: odscjen <[email protected]>
I've only edited this open codelist. Still, I don't know how to do what you are suggesting: which file should be edited in addition to csvs? |
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.
Not sure about the edits in metric_dimension.csv
I see the change of removing quotation marks on line 7, but other lines have quotation marks as well..?
Added custom and commercial licenses - no urls
Add "description" to _source_ attributes.
Hi Mat you've got 3 errors showing up I'll deal with them in turn.
The problem is that lines 11 and 12 in licence.csv both end with a space, they should just end with the comma. It looks like that error was introduced in this commit 6e35b0b
This one can be fixed by running
I've had a bit more of an investigate and the problem is again in an older commit to this base branch. It looks like Stu made a commit ba9472e earlier that added 2 new codes to the exposure_category.csv. However he only updated the csv file itself. For closed codelists (like this one) the codes also need to match those in e.g. "category": {
"title": "Asset category",
"description": "The category of the lost assets, from the closed [exposure_category codelist](https://docs.riskdatalibrary.org/en/{{version}}/reference/codelists/#exposure-category).",
"type": "string",
"codelist": "exposure_category.csv",
"openCodelist": false,
"enum": [
"agriculture",
"buildings",
"infrastructure",
"population",
"natural_environment"
]
}, in this example (which is from |
Ah yes you only need quotation marks if there are special characters (normally commas). If there aren't any, as is the case in that line of metric_dimensions.csv, the tests complain. |
I think I solved some of the PR errors, but others remain:
|
properties within properties can be safely ignored, it's just a warning rather than an actual error. indent errors are almost impossible to spot by eye and requires the dev env to fix it using the ocdskit module. It's one of the tests that can be safely turned off for the time being if that's what you'd like? |
Add imt code for cyclone wind speed 10-min sustained. It was already there as km/h but STORM uses m/s...
This makes me reconsider the discussion in #5, and splitting IMT into two separate codelists:
So even if the specific metric (larger range of variability) is not in the codelist, one can still indicate the unit if part of the most common ones (smaller range of variability).
Related issues
#5
Merge checklist
If you added, removed or renamed a field:
collapse
option of the jsonschema directives for dataset, resource, hazard, exposure, vulnerability and loss onreference/schema.md
reference/schema/md
examples
Always:
./manage.py
pre-commitHaving trouble?
See how to resolve check failures.