...
def requires_loading(self, datetime_range):
group_index = self.variables_indexes[self.variable][self.layer_numbers[0]]
if self.requires_static_index(
datetime_range
): # Just take the first one in such a case
sample_index = (group_index, 0)
else:
index = self.layer.datasetIndexAtTime(datetime_range, group_index)
sample_index = (index.group(), index.dataset())
if sample_index == self.sample_index:
return False
else:
return True
...
The check doesn't account if anything defined in self.x, which is what happens in the base class:
...
def requires_loading(self, **kwargs):
return self.x is None
...
The check doesn't account if anything defined in
self.x
, which is what happens in the base class: