-
Notifications
You must be signed in to change notification settings - Fork 168
Closed
Labels
Description
Reading through the unit converter guide in #2409, I realise that while Geographic and GeographicPolar are sensible names for UnitConverters, the default one (which does not do any conversion), is called UnitConverter.
Parcels/src/parcels/_core/converters.py
Lines 30 to 40 in 8480d1b
| class UnitConverter: | |
| """Interface class for spatial unit conversion during field sampling that performs no conversion.""" | |
| source_unit: str | None = None | |
| target_unit: str | None = None | |
| def to_target(self, value, z, y, x): | |
| return value | |
| def to_source(self, value, z, y, x): | |
| return value |
That name may be confusing. Perhaps better to call it NoConversion? Or does anyone have a better name?
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done
Status
Done