Skip to content

Commit 046d09f

Browse files
committed
Turn off varying-reference support for 'legacy' load setting only.
1 parent b949916 commit 046d09f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

lib/iris/loading.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -298,7 +298,8 @@ class LoadPolicy(CombineOptions):
298298
orography.
299299
300300
The ``support_multiple_references`` option takes the value ``True`` or ``False`` to
301-
enable or disable this. The default is ``True``.
301+
enable or disable this. The default is ``True`` for all standard settings except
302+
"legacy".
302303
303304
.. note ::
304305
@@ -339,9 +340,11 @@ class LoadPolicy(CombineOptions):
339340
+ [("support_multiple_references", (True, False))]
340341
)
341342

342-
# Settings dicts are as for CombineOptions, but all have multiple load refs enabled
343+
# Settings dicts are as for CombineOptions, but with a multiple-load value added
343344
SETTINGS = {
344-
key: dict(list(settings.items()) + [("support_multiple_references", True)])
345+
key: dict(
346+
list(settings.items()) + [("support_multiple_references", key != "legacy")]
347+
)
345348
for key, settings in CombineOptions.SETTINGS.items()
346349
}
347350

0 commit comments

Comments
 (0)