Skip to content

Commit 834a86e

Browse files
committed
Make data lazier
1 parent f2741a1 commit 834a86e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/netcdf_scm/iris_cube_wrappers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ def _process_load_data_from_identifiers_warnings(self, w):
486486
def _add_areacella_measure(self):
487487
areacella_cube = self.get_metadata_cube(self.areacella_var).cube
488488
areacella_measure = iris.coords.CellMeasure(
489-
areacella_cube.data,
489+
areacella_cube.core_data(),
490490
standard_name=areacella_cube.standard_name,
491491
long_name=areacella_cube.long_name,
492492
var_name=areacella_cube.var_name,

src/netcdf_scm/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def get_cube_timeseries_data(scm_cube):
3030
The cube's timeseries data.
3131
"""
3232
_assert_only_cube_dim_coord_is_time(scm_cube)
33-
return scm_cube.cube.data
33+
return scm_cube.cube.core_data()
3434

3535

3636
def get_scm_cube_time_axis_in_calendar(scm_cube, calendar):

0 commit comments

Comments
 (0)