@@ -3492,15 +3492,15 @@ def climatology_cells(
3492
3492
3493
3493
3494
3494
def _create_hash_and_first_values (
3495
- meta , axes , donotchecknonaggregatingaxes , hfl_cache , rtol , atol
3495
+ meta , aggregating_axes , donotchecknonaggregatingaxes , hfl_cache , rtol , atol
3496
3496
):
3497
3497
"""Updates each field's _Meta object.
3498
3498
3499
3499
:Parameters:
3500
3500
3501
3501
meta: `list` of `_Meta`
3502
3502
3503
- axes: `list`
3503
+ axes: sequence
3504
3504
The identities of the possible aggregating axes.
3505
3505
3506
3506
donotchecknonaggregatingaxes: `bool`
@@ -3514,8 +3514,6 @@ def _create_hash_and_first_values(
3514
3514
# identity.
3515
3515
canonical_direction = {}
3516
3516
3517
- aggregating_axes = list (axes )
3518
-
3519
3517
for m in meta :
3520
3518
field = m .field
3521
3519
constructs = field .constructs .todict ()
@@ -3541,9 +3539,9 @@ def _create_hash_and_first_values(
3541
3539
# --------------------------------------------------------
3542
3540
for identity in m .axis_ids :
3543
3541
if (
3544
- axes is not None
3542
+ aggregating_axes is not None
3545
3543
and donotchecknonaggregatingaxes
3546
- and identity not in axes
3544
+ and identity not in aggregating_axes
3547
3545
):
3548
3546
x = [None ] * len (m .axis [identity ]["keys" ])
3549
3547
m_hash_values [identity ] = x
@@ -3685,12 +3683,12 @@ def _create_hash_and_first_values(
3685
3683
3686
3684
coord = constructs [key ]
3687
3685
3688
- axes = aux ["axes" ]
3686
+ c_axes = aux ["axes" ]
3689
3687
canonical_axes = aux ["canonical_axes" ]
3690
- if axes != canonical_axes :
3688
+ if c_axes != canonical_axes :
3691
3689
# Transpose the N-d auxiliary coordinate so that
3692
3690
# it has the canonical axis order
3693
- iaxes = [axes .index (axis ) for axis in canonical_axes ]
3691
+ iaxes = [c_axes .index (axis ) for axis in canonical_axes ]
3694
3692
coord = coord .transpose (iaxes )
3695
3693
3696
3694
sort_indices , needs_sorting = _sort_indices (m , canonical_axes )
@@ -3736,14 +3734,14 @@ def _create_hash_and_first_values(
3736
3734
else :
3737
3735
for canonical_units , msr in m .msr .items ():
3738
3736
hash_values = []
3739
- for key , axes , canonical_axes in zip (
3737
+ for key , c_axes , canonical_axes in zip (
3740
3738
msr ["keys" ], msr ["axes" ], msr ["canonical_axes" ]
3741
3739
):
3742
3740
cell_measure = constructs [key ]
3743
- if axes != canonical_axes :
3741
+ if c_axes != canonical_axes :
3744
3742
# Transpose the cell measure so that it has
3745
3743
# the canonical axis order
3746
- iaxes = [axes .index (axis ) for axis in canonical_axes ]
3744
+ iaxes = [c_axes .index (axis ) for axis in canonical_axes ]
3747
3745
cell_measure = cell_measure .transpose (iaxes )
3748
3746
3749
3747
sort_indices , needs_sorting = _sort_indices (
@@ -3850,12 +3848,12 @@ def _create_hash_and_first_values(
3850
3848
3851
3849
field_anc = constructs [key ]
3852
3850
3853
- axes = anc ["axes" ]
3851
+ c_axes = anc ["axes" ]
3854
3852
canonical_axes = anc ["canonical_axes" ]
3855
- if axes != canonical_axes :
3853
+ if c_axes != canonical_axes :
3856
3854
# Transpose the field ancillary so that it has the
3857
3855
# canonical axis order
3858
- iaxes = [axes .index (axis ) for axis in canonical_axes ]
3856
+ iaxes = [c_axes .index (axis ) for axis in canonical_axes ]
3859
3857
field_anc = field_anc .transpose (iaxes )
3860
3858
3861
3859
sort_indices , needs_sorting = _sort_indices (m , canonical_axes )
@@ -3888,12 +3886,12 @@ def _create_hash_and_first_values(
3888
3886
3889
3887
domain_anc = constructs [key ]
3890
3888
3891
- axes = anc ["axes" ]
3889
+ c_axes = anc ["axes" ]
3892
3890
canonical_axes = anc ["canonical_axes" ]
3893
- if axes != canonical_axes :
3891
+ if c_axes != canonical_axes :
3894
3892
# Transpose the domain ancillary so that it has
3895
3893
# the canonical axis order
3896
- iaxes = [axes .index (axis ) for axis in canonical_axes ]
3894
+ iaxes = [c_axes .index (axis ) for axis in canonical_axes ]
3897
3895
domain_anc = domain_anc .transpose (iaxes )
3898
3896
3899
3897
sort_indices , needs_sorting = _sort_indices (m , canonical_axes )
0 commit comments