Skip to content

Commit

Permalink
⭐ new transfer.py module (#382)
Browse files Browse the repository at this point in the history
* Add transfer function calculation and test cases

* Ekman & Madsen cases for bld=inf

* ruff format

* complete code untested

* Refactor code to improve performance and readability

* Refactor transfer function calculations in transfer.py

* ruff format

* reformat

* ruffing it up

* Update Bessel functions in transfer.py and some tests

* Add docstrings to besseltildes_noslip and besselktilde functions

* formatting

* more code, more tests

* Add import for clouddrift.transfer module

* Refactor wind_transfer_test_gradient method in transfer_tests.py

* ruffed __init__.py

* Refactor wind_transfer function and tests

* rename test

* added elipot method

* sqrt -> numpy.lib.scimath.sqrt

* Following @philippemiron's review and refactor some wind transfer test methods

* reorder __all__ list

* Refactor wind_transfer_free_slip function in transfer.py

* new transfer functions (slab and kpp)

* Rename slab_transfer to slab_wind_transfer

* removed kpp, more test

* ruffing it

* Refactor plot_ragged function to improve clarity and documentation (#386)

* 🔎 Development docs revision (#375)

* Add docs focused on contributing and document several processes

-----

Co-authored-by: Philippe Miron <[email protected]>
Co-authored-by: Shane Elipot <[email protected]>

* ⭐ Hurdat2 adapter (#378)

* hurdat2 data adapter

* use CF conventions

* improve warning when it cannot be determined whether the remote file is new or not

* increment revision

---------

Co-authored-by: Shane Elipot <[email protected]>

* add condensed coverage to PR

* Update default values for optional parameters in transfer.py

* more tests

* more tests

* Refactor response_to_wind_stress function to include latitude and window parameters

* upgrade to 3.10+

* remove top level transfer function for now

---------

Co-authored-by: Kevin Santana <[email protected]>
Co-authored-by: Philippe Miron <[email protected]>
Co-authored-by: Philippe Miron <[email protected]>
  • Loading branch information
4 people authored Sep 26, 2024
1 parent 7118cb3 commit 2327faf
Show file tree
Hide file tree
Showing 4 changed files with 1,889 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ coverage:
default:
threshold: 10%

comment: off
comment:
require_changes: true
layout: "condensed_header, condensed_files, condensed_footer"
hide_project_coverage: TRUE

# which folders/files to ignore
ignore:
Expand Down
2 changes: 2 additions & 0 deletions clouddrift/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import clouddrift.ragged as ragged
import clouddrift.signal as signal
import clouddrift.sphere as sphere
import clouddrift.transfer as transfer
import clouddrift.wavelet as wavelet
from clouddrift.raggedarray import RaggedArray

Expand All @@ -23,5 +24,6 @@
"ragged",
"signal",
"sphere",
"transfer",
"wavelet",
]
Loading

0 comments on commit 2327faf

Please sign in to comment.