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

Futureproof sensorpush script #106

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

aanil
Copy link
Member

@aanil aanil commented Oct 29, 2024

No description provided.

@aanil aanil requested a review from alneberg October 29, 2024 15:11
@@ -378,8 +378,8 @@ def process_data(sensors_json, samples_dict, start_time, nr_samples_requested):

# The dropna is needed since sometimes we get sparse samples
# and might have hours without samples.
hourly_mean = sensor_samples.resample("1H").mean().dropna()
for hour, mean_val in hourly_mean.iteritems():
hourly_mean = sensor_samples.resample("1h").mean().dropna()
Copy link
Member

Choose a reason for hiding this comment

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

Did it warn about this as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah FutureWarning: 'H' is deprecated and will be removed in a future version, please use 'h' instead. hourly_mean = sensor_samples.resample("1H").mean().dropna()

Copy link
Member

@alneberg alneberg left a comment

Choose a reason for hiding this comment

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

Thank you!

@aanil aanil merged commit 9463b7a into NationalGenomicsInfrastructure:master Oct 29, 2024
1 check passed
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