Skip to content

Comments

Speed up on timeseries check from influx#433

Open
FJanssen-TNO wants to merge 2 commits intomainfrom
timeseries_check_influx
Open

Speed up on timeseries check from influx#433
FJanssen-TNO wants to merge 2 commits intomainfrom
timeseries_check_influx

Conversation

@FJanssen-TNO
Copy link
Collaborator

Speed up timeseries delta time check, from 0.5s for the PoCtutorial to <0.02s. Timeseries check linearly grows with the number of profiles.

…o <0.1s. Timeseries check linearly grows with the number of profiles
@FJanssen-TNO FJanssen-TNO marked this pull request as ready for review February 11, 2026 15:08
problem_timesteps = idx[:-1][dt != pd.Timedelta(hours=1)]
if not problem_timesteps.empty:
raise RuntimeError(
f"The timestep for variable {profile.field} at timestamp {problem_timesteps} isn't "
Copy link
Collaborator

Choose a reason for hiding this comment

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

Very nice. One small thing. problem_timesteps can have multiple entries so maybe change the text to "....at timestamp(s) {problem_timesteps} ..."

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.

2 participants