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

Unintentional warning after each first-time step of any simulation? #219

Open
navidcy opened this issue Feb 21, 2022 · 5 comments
Open

Unintentional warning after each first-time step of any simulation? #219

navidcy opened this issue Feb 21, 2022 · 5 comments
Labels
❓ question Further information is requested 🚰 user experience

Comments

@navidcy
Copy link
Collaborator

navidcy commented Feb 21, 2022

This warning appears after the initial time-step of any simulation...

https://github.com/CliMA/OceanTurbulenceParameterEstimation.jl/blob/30d5cfbedad1cab328885bce485d19cb5b6afe03/src/Observations.jl#L310-L316

[ Info: Initializing simulation...
[ Info:     ... simulation initialization complete (830.369 ms)
[ Info: Executing initial time step...
[ Info:     ... initial time step complete (8.342 ms).
┌ Warning: Current time 20 seconds not found in
│                      time collector times ["0 seconds", "1 hour", "2 hours", "3 hours", "4 hours", "5 hours", "6 hours", "7 hours", "8 hours", "9 hours", "10 hours"]

I don't think that was the intention, right?

cc @glwagner

@navidcy navidcy added ❓ question Further information is requested 🚰 user experience labels Feb 21, 2022
@glwagner
Copy link
Member

There's something amiss. We shouldn't "call" the FieldTimeSeriesCollector at times that we don't intend to collect data. I think its a problem with initializing SpecifiedTimes.

@glwagner
Copy link
Member

basically every callback is called at model.clock.iteration=0. This means we get the first time. I don't know why the callback is called again at model.clock.iteration=1.

@glwagner
Copy link
Member

We don't have to throw a warning but we probably should have a way of validating that the data collected by FieldTimeSeriesCollector is right. Maybe we can keep track of the "collection times" independently from the data itself. Then after a run is done, we can verify that collector.collection_times == collector.times.

@navidcy
Copy link
Collaborator Author

navidcy commented Mar 1, 2022

#220 resolved this, right?

@glwagner
Copy link
Member

glwagner commented Mar 1, 2022

I guess #220 means that we can now take out the warning without worrying anything bad might happen. That change would resolve this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❓ question Further information is requested 🚰 user experience
Projects
None yet
Development

No branches or pull requests

2 participants