-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add osm-timestamps to indicators #101
Conversation
workers/ohsome_quality_analyst/indicators/ghs_pop_comparison_buildings/indicator.py
Outdated
Show resolved
Hide resolved
workers/ohsome_quality_analyst/indicators/ghs_pop_comparison_roads/indicator.py
Outdated
Show resolved
Hide resolved
Hey @Gigaszi, I left some minor comments and suggestion about code readability, but otherwise this looks great. I changed to PR title and description slightly. |
workers/ohsome_quality_analyst/indicators/mapping_saturation/indicator.py
Outdated
Show resolved
Hide resolved
workers/ohsome_quality_analyst/indicators/mapping_saturation/indicator.py
Outdated
Show resolved
Hide resolved
workers/tests/integrationtests/test_indicator_ghs_pop_comparison_buildings.py
Outdated
Show resolved
Hide resolved
Looks good to me! Now we explicitly depend on @Gigaszi please run |
CHANGELOG.md
Outdated
Add osm-timestamps to indicators ([#101]) | ||
- Add timezone to oqt-timestamp ([#101]) |
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.
Add osm-timestamps to indicators ([#101]) | |
- Add timezone to oqt-timestamp ([#101]) | |
- Add osm-timestamp to indicators ([#101]) | |
- Add timezone to oqt-timestamp ([#101]) |
@@ -75,7 +75,8 @@ def __init__( | |||
data_class=LayerDefinition, data=get_layer_definition(layer_name) | |||
) | |||
self.result: Result = Result( | |||
timestamp_oqt=datetime.utcnow(), | |||
# Aware UTC datetime object representing the current time. |
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.
Aware of what? Do you mean Timezone aware
or UTC aware
?
self.assertIsNotNone(self.indicator.result.timestamp_osm) | ||
self.assertIsInstance(self.indicator.result.timestamp_osm, datetime) | ||
self.assertIsNotNone(self.indicator.result.timestamp_oqt) | ||
self.assertIsInstance(self.indicator.result.timestamp_oqt, datetime) |
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.
@matthiasschaub do you see a reason why we need the additional self.assertIsNotNone
here? I think these checks are redundant. The same applies to the changes in the other tests.
Description
Add osm-timestamps to indicators and add timezone to oqt-timestamp.
Corresponding issue
Closes #1
Checklist
main
(e.g. throughgit rebase main
)