Fixed broken start_date
feature.
Add a start_date
attribute to NetCDFWriter PR #94.
Prior to this version, users had to go to the simulation to find the start date.
It can now be saved as an attribute, making it easily accessible.
To do so, users need to pass the kwarg start_date
when calling NetCDFWriter
.
Acquiring ownership with compute!
PR #88.
Prior to this version, ClimaDiagnostics
would directly store use the output
returned by compute!
functions the first time they are called. This leads to
problems when the output is a reference to an existing object since multiple
diagnostics would modify the same object. Now, ClimaDiagnostics
makes a copy
of the return object so that it is no longer necessary to do so in the
compute!
function.
Correctly de-duplicate ScheduledDiagnostics
#93.
This version fixes a bug where ScheduledDiagnostics
were not correctly
de-duplicated because ==
was not implemented correctly.
IntegratorWithDiagnostics
advertised a feature that was not implemented:IntegratorWithDiagnostics
claimed that passingstate_name
andcache_name
would allow users to customize the name of the state and cache inside the integrator. Now, this is implemented.
scheduled_diagnostics
are now internally saved as vectors instead of tuples. This has significant compile-time/inference benefits.
Release 0.2.6
improves compatibility with CF conventions by adding
- standard and long name for the
time
,longitude
, andlatitude
dimensions
- The default constructor for
ScheduleDiagnostic
s no longer uses reference ofSchedule
s but create a new copy.
reference_date
was renamed to start_date
and t_start
was dropped from the
constructors for the schedules. These changes are due to the fact that these
arguments should not be needed.
The NetCDFWriter
can now work with regional boxes with LatLong
points. Due
to incompatibility in ClimaCore
, only LatLong
points are supported (and not
LongLat
points). This means that the box has to be created with latitude on
the x axis and longitude on the y axis.
- Ensure that
DictWriter
can only be constructed with dictionary-like objects.
- Add
EveryCalendarDtSchedule
for schedules with calendar periods.
- Detect and ignore duplicated diagnostics.
- Fix support for caches that are not NamedTuples in
NetCDFWriter
.
- Fix support for purely horizontal spaces in
NetCDFWriter
.