Skip to content

Conversation

@surgura
Copy link
Contributor

@surgura surgura commented Jun 27, 2024

  • Cleaned up CTD
  • Wrote test for CTD

Fields varying with time are not tested, as it's quite tricky to predict the expected observations.

There is also an issue currently, where the simulation always goes over the complete fieldset. Have to check if we can tall Parcels to stop simulating when all particles are done, and maybe skip over parts where no particles have been deployed yet.

@surgura surgura marked this pull request as ready for review July 2, 2024 14:44
@surgura surgura mentioned this pull request Jul 3, 2024
lat = [ctd.spacetime.location.lat for ctd in ctds]
time = [ctd.spacetime.time for ctd in ctds]
WINCH_SPEED = 1.0 # sink and rise speed in m/s
DT = 10.0 # dt of CTD simulation integrator
Copy link
Member

Choose a reason for hiding this comment

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

Why is this variable in capitals? We normally use lowercase for dt

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is a constant, and in PEP8 constants have to be all caps

@surgura surgura merged commit 750569a into development Jul 15, 2024
@surgura surgura deleted the ctd_test branch July 15, 2024 15:06
surgura added a commit that referenced this pull request Aug 18, 2024
    Cleaned up CTD
    Wrote test for CTD
VeckoTheGecko pushed a commit that referenced this pull request Sep 25, 2024
    Cleaned up CTD
    Wrote test for CTD
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.

4 participants