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

breaking: rename Tag Ratio to Attribute Completeness #500

Merged
merged 9 commits into from
Mar 22, 2023

Conversation

Gigaszi
Copy link
Contributor

@Gigaszi Gigaszi commented Mar 9, 2023

Corresponding issue

Closes #493

New or changed dependencies

Checklist

  • I have updated my branch to main (e.g. through git rebase main)
  • My code follows the style guide and was checked with pre-commit before committing
  • I have commented my code
  • I have added sufficient unit and integration tests
  • I have updated the CHANGELOG.md

Copy link
Collaborator

@matthiasschaub matthiasschaub left a comment

Choose a reason for hiding this comment

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

Be aware of changes to the indicator key format (#398). I made suggestions what changes are needed.

Please also update the changelog (Its a Breaking Change)

workers/ohsome_quality_analyst/definitions.py Outdated Show resolved Hide resolved
@@ -1,6 +1,6 @@
---
TagsRatio:
name: Tags Ratio
AttributeCompleteness:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
AttributeCompleteness:
attribute-completeness:

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -14,7 +14,7 @@ def __init__(
indicator_layer=(
IndicatorLayer("MappingSaturation", "building_count"),
IndicatorLayer("Currentness", "building_count"),
IndicatorLayer("TagsRatio", "building_count"),
IndicatorLayer("AttributeCompleteness", "building_count"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
IndicatorLayer("AttributeCompleteness", "building_count"),
IndicatorLayer("attribute-completeness", "building_count"),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -15,7 +15,7 @@ def __init__(
indicator_layer=(
IndicatorLayer("MappingSaturation", "major_roads_length"),
IndicatorLayer("Currentness", "major_roads_count"),
IndicatorLayer("TagsRatio", "major_roads_length"),
IndicatorLayer("AttributeCompleteness", "major_roads_length"),
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
IndicatorLayer("AttributeCompleteness", "major_roads_length"),
IndicatorLayer("attribute-completeness", "major_roads_length"),

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@@ -79,7 +79,7 @@ def test_get_valid_indicators(self):
"GhsPopComparisonBuildings",
"MappingSaturation",
"Currentness",
"TagsRatio",
"AttributeCompleteness",
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
"AttributeCompleteness",
"attribute-completeness",

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

@matthiasschaub matthiasschaub changed the title rename Tag Ratio to Attribute Completeness breaking: rename Tag Ratio to Attribute Completeness Mar 22, 2023
@Gigaszi Gigaszi merged commit 7159035 into main Mar 22, 2023
@Gigaszi Gigaszi deleted the attribute_completeness_indicator branch March 22, 2023 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rename Tag Ration Indicator to “attribute completeness”
2 participants