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

Add a event-based example #274

Merged
merged 4 commits into from
Nov 24, 2023
Merged

Add a event-based example #274

merged 4 commits into from
Nov 24, 2023

Conversation

rpalDHI
Copy link
Collaborator

@rpalDHI rpalDHI commented Nov 14, 2023

No description provided.

"outputs": [],
"source": [
"# Import data\n",
"os.chdir('C:\\\\Users\\\\rpal\\\\Source\\\\modelskill\\\\tmp\\\\RPAL\\\\data\\\\obs_and_model_data_Rocco')\n",
Copy link
Member

Choose a reason for hiding this comment

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

Pro tip, don't use absolute paths😉

Also removed the CSO_events, which was the wrong notebook.
@rpalDHI rpalDHI marked this pull request as ready for review November 22, 2023 13:03
@rpalDHI
Copy link
Collaborator Author

rpalDHI commented Nov 22, 2023

@ecomodeller I've removed the old test notebook and included the right one with the necessary data (this time with relative path). Also tried to keep the test data as compact as possible by reducing the time resolution when possible.

Copy link
Member

@ecomodeller ecomodeller left a comment

Choose a reason for hiding this comment

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

Not all imported libraries are necessary in the notebook, e.g. os, numpy and plotly
image

Plotly is used, and is not installed by default, so it might be useful to mention.

I have made some changes to the csv file.

  1. Changed the event column from float to integer to more clearly indicate that these are discrete events
  2. Set very small values e.g. 1e-30 to exactly 0.0.

Copy link
Member

@jsmariegaard jsmariegaard left a comment

Choose a reason for hiding this comment

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

Nice work!

Removed unused imports.

@jsmariegaard jsmariegaard merged commit 85cef68 into main Nov 24, 2023
10 checks passed
@jsmariegaard jsmariegaard deleted the event-based branch November 24, 2023 20:07
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.

3 participants