Skip to content

Conversation

@VeckoTheGecko
Copy link
Collaborator

Related to #64

surgura and others added 20 commits August 18, 2024 17:00
- Packaged code in virtual_ship package
- Created pyproject.toml for project
- Made tiny changes to code that were still on Emma's computer and not on github
- Added [dev] optional to package (pip install ".[dev]")
- Added tools formatting & linting to the [dev] optional
- Added script that runs these tools and applies fixes whenever able
- Added CI that checks code using these tools
- Adjusted code to pass checks (no functional changes)
    Created test framework
    Added test that runs sail_ship complete. No assertions yet; just to see if it runs.
    Seperated Argo simulation as a seperate module in instruments/argo. Created test for it; similarly without assertions.
    Added tests to CI. Full code coverage is not generated or uploaded anywhere yet. Just runs the tests and sees how that goes.
* wip drifters

* drifters instrument. just missing test

* drifter test

* Remove old drifter file and fix errors

* codetools

* outputdf wherever i forgot to use it

* added todo list

* ctd instrument

* CTDtest

* use new ctd instrument in sailship

* fix typo

* codetools

* use new parcels api for particle class

* add ctd to init

* comments

* first try adcp

* adcp test

* use adcp instrument in sailship

* cleanup

* instrument ship s t

* use ship st in sailship

* cleanup

* refactor sailship ctd cast

* cleanup

* large cleanup

* add checks that all drifter and argo floats are deployed

* comments

* docstrings and other codetools fixes

* rename SamplePoint to Spacetime and move them one dir up

* rm todo

* run pydocstyle on tests

* fix some names

* Update virtual_ship/instruments/ctd.py

Co-authored-by: Erik van Sebille <erikvansebille@gmail.com>

* removed comment about ctd

* fix incorrect docstring

* renamed ship_st to ship_underwater_st

* remove sailship create fieldset commented out function

* ship underway st docstring improvement

* minor docstring change

* minor docstring change

---------

Co-authored-by: Erik van Sebille <erikvansebille@gmail.com>
* Implemented test for ship underwater st. Other tests will follow, but let's review this one so we agree on how to test.
* Refactored and made ship underwater st work so it passes the test
* ADCP instrument cleanup and test
* Ship ST instrument test improvements
    Cleaned up CTD
    Wrote test for CTD
Cleaned up Drifters
Wrote test for Drifters
Cleanup argo float instrument
Argo float instrument test
Added typing and initialization in python instead of from JSON.
Added 'verify' function that somewhat performs the same verification as before.
Some general cleanup and simplification in sailship function
* verify waypoints are on water

* Make zero uv on land check a function

* add test for sailship verify

* comments
Add meta.yaml for conda. Very minimal but it builds the package. Does not provide development environment whatsoever, but Emma and me agreed it's not worth the effort to set that up when development with pip works fine.
Remove old dependencies from pyproject.toml
Conversion of ADCP zarr to CSV-like file to make experience more realistic.
Dummy function that can be filled in later to add noise. We don't add noise now because we want to focus on different parts of the software
---------

Co-authored-by: Erik van Sebille <erikvansebille@gmail.com>
Co-authored-by: Vecko <36369090+VeckoTheGecko@users.noreply.github.com>
@VeckoTheGecko
Copy link
Collaborator Author

@ammedd I'll need an approval to get this merged :')

Copy link
Collaborator

@ammedd ammedd left a comment

Choose a reason for hiding this comment

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

Looks good! Lets go ahead and do more tests later

@VeckoTheGecko VeckoTheGecko merged commit df3419b into main Sep 25, 2024
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.

5 participants