Skip to content
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

feat: topic specific thresholds #384

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft

feat: topic specific thresholds #384

wants to merge 16 commits into from

Conversation

matthiasschaub
Copy link
Collaborator

@matthiasschaub matthiasschaub commented Jul 13, 2022

Description

Please add a clear and concise description of what your PR solves.

Corresponding issue

#21

New or changed dependencies

Checklist

@matthiasschaub matthiasschaub added waiting An issue or PR which is waiting for an upstream bugfix, further information or is somehow blocked indicator labels Jul 19, 2022
@matthiasschaub matthiasschaub force-pushed the thresholds branch 2 times, most recently from b487d04 to 0fef807 Compare August 24, 2022 08:36
@matthiasschaub matthiasschaub removed the waiting An issue or PR which is waiting for an upstream bugfix, further information or is somehow blocked label Oct 11, 2022
Comment on lines +28 to +37
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
Copy link
Collaborator Author

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.

Comment on lines +40 to +44
mapaction_lakes_count: null
mapaction_major_roads_length: null
mapaction_rail_length: null
mapaction_rivers_length: null
mapaction_settlements_count: null
Copy link
Collaborator Author

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,
Copy link
Collaborator Author

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

Copy link
Collaborator

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
Copy link
Collaborator Author

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

Comment on lines +23 to +27
jrc_education_count: null
jrc_health_count: null
jrc_mass_gathering_sites_count: null
jrc_railway_length: null
jrc_road_length: null
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as before

Comment on lines +30 to +34
mapaction_lakes_area: null
mapaction_major_roads_length: null
mapaction_rail_length: null
mapaction_rivers_length: null
mapaction_settlements_count: null
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as before

Comment on lines +23 to +30
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
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as before

@matthiasschaub matthiasschaub marked this pull request as ready for review October 20, 2022 15:03
@matthiasschaub matthiasschaub marked this pull request as draft March 14, 2023 15:58
@matthiasschaub matthiasschaub self-assigned this Mar 14, 2023
@matthiasschaub matthiasschaub changed the title Thresholds feat: topic specific thresholds Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants