Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions esmvalcore/config/_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from importlib.resources import files as importlib_files
from pathlib import Path

import iris
import yaml

from esmvalcore.cmor.table import CMOR_TABLES, read_cmor_tables
Expand All @@ -23,6 +24,17 @@
CFG = {}


# Set iris.FUTURE flags
for attr, value in {
"save_split_attrs": True,
"date_microseconds": True,
}.items():
try:
setattr(iris.FUTURE, attr, value)
except AttributeError:
pass


def _deep_update(dictionary, update):
for key, value in update.items():
if isinstance(value, collections.abc.Mapping):
Expand Down
2 changes: 0 additions & 2 deletions esmvalcore/preprocessor/_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
}
GRIB_FORMATS = (".grib2", ".grib", ".grb2", ".grb", ".gb2", ".gb")

iris.FUTURE.save_split_attrs = True


def _get_attr_from_field_coord(ncfield, coord_name, attr):
if coord_name is not None:
Expand Down