Skip to content

Commit 529cb33

Browse files
authored
fixed big bug with horizontal diff (#88)
* fixed big bug with horizontal diff
1 parent 0f81393 commit 529cb33

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

docs/whats_new.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# What's New
22

3+
## Unreleased
4+
5+
* Fixed bug so that horizontal diffusivity is now properly applied to model output.
6+
37
## 2.5.0 (March 9, 2026)
48

59
* Change to NWGOA config to fix issue with wet/dry sims not running with NWGOA.

particle_tracking_manager/models/opendrift/config_opendrift.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,11 @@ class OpenDriftConfig(TheManagerConfig):
144144
# add od_mapping to what should otherwise be in TheManagerConfig
145145
horizontal_diffusivity: float | None = FieldInfo.merge_field_infos(
146146
TheManagerConfig.model_fields["horizontal_diffusivity"],
147-
Field(json_schema_extra=dict(od_mapping="drift:horizontal_diffusivity")),
147+
Field(
148+
json_schema_extra=dict(
149+
od_mapping="environment:constant:horizontal_diffusivity"
150+
)
151+
),
148152
)
149153
stokes_drift: bool = FieldInfo.merge_field_infos(
150154
TheManagerConfig.model_fields["stokes_drift"],

0 commit comments

Comments
 (0)