Skip to content

Quick question on iris.load callback and constraints #4185

Answered by pp-mo
larsbarring asked this question in Q&A
Discussion options

You must be logged in to vote

Actually, I just spent 20 minutes chasing this, and I think constraints come afterwards ...

The callback is invoked within the low-level loader (e.g. here, or here), but the constraints are mostly used by the "_CubeFilterCollection.from_cubes" call in iris._load_collection,
This underlies the various iris.load_xxx functions, but it works on "raw cubes" delivered by the loader.

I say "mostly", because the constraints are passed down to the low-level loaders.
But I think that is only so that "special cases" can be interpreted, to filter file data and speed up loading, notably, here, but see also recent #4176.
But those are, by definition, "exceptional" cases.


Whatever, this is an amazingly…

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@larsbarring
Comment options

@pp-mo
Comment options

Answer selected by trexfeathers
@rcomer
Comment options

@larsbarring
Comment options

@SimonPeatman
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants