File tree Expand file tree Collapse file tree 2 files changed +312
-55
lines changed
Expand file tree Collapse file tree 2 files changed +312
-55
lines changed Original file line number Diff line number Diff line change @@ -183,6 +183,7 @@ def __init__(
183183 date_microseconds = False ,
184184 derived_bounds = False ,
185185 lam_pole_offset = False ,
186+ use_cfpint_units = False ,
186187 ):
187188 """Container for run-time options controls.
188189
@@ -228,6 +229,11 @@ def __init__(
228229 to a PP file will set the pole longitude (PP field ``bplon``) to
229230 180.0 degrees if the grid is defined on a standard pole. Does not
230231 affect global or rotated-pole domains.
232+ use_cfpint_units : bool, default=False
233+ When True, units attributes will be created as :class:`cfpint.Unit` by
234+ default. At present you can still assign class:`cf_units.Unit` objects
235+ explicitly, and either may be used. However, support for cf_units will
236+ eventually be retired.
231237
232238 """
233239 # The flag 'example_future_flag' is provided as a reference for the
@@ -243,6 +249,7 @@ def __init__(
243249 self .__dict__ ["date_microseconds" ] = date_microseconds
244250 self .__dict__ ["derived_bounds" ] = derived_bounds
245251 self .__dict__ ["lam_pole_offset" ] = lam_pole_offset
252+ self .__dict__ ["use_cfpint_units" ] = use_cfpint_units
246253
247254 # TODO: next major release: set IrisDeprecation to subclass
248255 # DeprecationWarning instead of UserWarning.
You can’t perform that action at this time.
0 commit comments