Skip to content

Add a event-based example#274

Merged
jsmariegaard merged 4 commits intomainfrom
event-based
Nov 24, 2023
Merged

Add a event-based example#274
jsmariegaard merged 4 commits intomainfrom
event-based

Conversation

@rpalDHI
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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