-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
feat: topic specific thresholds #384
base: main
Are you sure you want to change the base?
Conversation
b487d04
to
0fef807
Compare
0fef807
to
a851ae9
Compare
`get_valid_layer()` result will filter out None values.
…all indicator-layer-combinations
jrc_airport_count: null | ||
jrc_bridge_count: null | ||
jrc_cultural_heritage_site_count: null | ||
jrc_education_count: null | ||
jrc_health_count: null | ||
jrc_mass_gathering_sites_count: null | ||
jrc_power_generation_plant_count: null | ||
jrc_railway_count: null | ||
jrc_road_count: null | ||
jrc_water_treatment_plant_count: null |
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 think those layers are not beein used at the moment. Lets not add them here for now.
mapaction_lakes_count: null | ||
mapaction_major_roads_length: null | ||
mapaction_rail_length: null | ||
mapaction_rivers_length: null | ||
mapaction_settlements_count: null |
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.
Same as above comment
self, | ||
layer: Layer, | ||
feature: Feature, | ||
thresholds: Optional[Tuple[float, float, float, float]] = None, |
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.
For this indicator its actualy a tuple of dicts (see in the layer-thresholds in the metadata:
[big-data/ohsome](default: [{ a: 1000 }, null, { a: 500 }, null])
Here we also need to check the threshold function used by this indicator to use the threshold function parameter
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.
done
@@ -26,4 +26,5 @@ GhsPopComparisonRoads: | |||
$feature_length_per_sqkm km of roads per sqkm mapped. | |||
layer-thresholds: | |||
default: [{ a: 1000 }, null, { a: 500 }, null] | |||
major_roads_length: null | |||
jrc_road_length: null |
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.
Lets not include JRC layers here
jrc_education_count: null | ||
jrc_health_count: null | ||
jrc_mass_gathering_sites_count: null | ||
jrc_railway_length: null | ||
jrc_road_length: null |
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.
Same as before
mapaction_lakes_area: null | ||
mapaction_major_roads_length: null | ||
mapaction_rail_length: null | ||
mapaction_rivers_length: null | ||
mapaction_settlements_count: null |
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.
Same as before
jrc_airport_count: null | ||
jrc_bridge_count: null | ||
jrc_cultural_heritage_site_count: null | ||
jrc_education_count: null | ||
jrc_health_count: null | ||
jrc_mass_gathering_sites_count: null | ||
jrc_power_generation_plant_count: null | ||
jrc_road_length: null |
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.
Same as before
Description
Please add a clear and concise description of what your PR solves.
Corresponding issue
#21
New or changed dependencies
Checklist
main
(e.g. throughgit rebase main
)