Skip to content

Commit 13abf44

Browse files
committed
Fix bad git mess
1 parent 70e92fd commit 13abf44

1 file changed

Lines changed: 1 addition & 34 deletions

File tree

cf/aggregate.py

Lines changed: 1 addition & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,6 @@ class _Meta:
210210
(
211211
"Type",
212212
"Identity",
213-
"featureType",
214213
"Units",
215214
"Cell_methods",
216215
"Data",
@@ -390,8 +389,6 @@ def __init__(
390389
if field_identity:
391390
self.identity = f.get_property(field_identity, None)
392391

393-
self.featureType = f.get_property('featureType', None)
394-
395392
construct_axes = f.constructs.data_axes()
396393

397394
# ------------------------------------------------------------
@@ -505,7 +502,6 @@ def __init__(
505502
"identity": dim_identity,
506503
"key": dim_coord_key,
507504
"units": units,
508-
"cf_role": None,
509505
"hasdata": dim_coord.has_data(),
510506
"hasbounds": hasbounds,
511507
"coordrefs": self.find_coordrefs(axis),
@@ -543,14 +539,11 @@ def __init__(
543539
aux_coord, aux_identity, relaxed_units=relaxed_units
544540
)
545541

546-
cf_role = self.featureType and aux_coord.get_property("cf_role", None)
547-
548542
info_aux.append(
549543
{
550544
"identity": aux_identity,
551545
"key": key,
552546
"units": units,
553-
"cf_role": cf_role,
554547
"hasdata": aux_coord.has_data(),
555548
"hasbounds": aux_coord.has_bounds(),
556549
"coordrefs": self.find_coordrefs(key),
@@ -599,7 +592,6 @@ def __init__(
599592
"ids": "identity",
600593
"keys": "key",
601594
"units": "units",
602-
"cf_role": "cf_role",
603595
"hasdata": "hasdata",
604596
"hasbounds": "hasbounds",
605597
"coordrefs": "coordrefs",
@@ -1568,9 +1560,6 @@ def coord_has_identity_and_data(self, coord, axes=None):
15681560
default=None,
15691561
)
15701562

1571-
if self.featureType and coord.get_property('cf_role', None):
1572-
print(11111, repr(coord))
1573-
15741563
if identity is not None:
15751564
all_coord_identities = self.all_coord_identities.setdefault(
15761565
axes, set()
@@ -1784,9 +1773,6 @@ def structural_signature(self):
17841773
Cell_methods = self.cell_methods
17851774
Data = self.has_field_data
17861775

1787-
# FeatureType
1788-
featureType = self.featureType
1789-
17901776
# Properties
17911777
Properties = self.properties
17921778

@@ -1826,7 +1812,6 @@ def structural_signature(self):
18261812
]
18271813
),
18281814
),
1829-
("cf_role", axis[identity]["cf_role"]),
18301815
("hasdata", axis[identity]["hasdata"]),
18311816
("hasbounds", axis[identity]["hasbounds"]),
18321817
("coordrefs", axis[identity]["coordrefs"]),
@@ -1933,7 +1918,6 @@ def structural_signature(self):
19331918
self.signature = self._structural_signature(
19341919
Type=Type,
19351920
Identity=Identity,
1936-
featureType=featureType,
19371921
Units=Units,
19381922
Cell_methods=Cell_methods,
19391923
Data=Data,
@@ -4148,9 +4132,6 @@ def _hash_values(m):
41484132

41494133
hash0 = hash1
41504134

4151-
if m0.featureType and not count:
4152-
print(9999999999999)
4153-
41544135
if count == 1:
41554136
# --------------------------------------------------------
41564137
# Exactly one axis has different 1-d coordinate values
@@ -4252,24 +4233,10 @@ def _hash_values(m):
42524233
# aggregate anything in this entire group.
42534234
# --------------------------------------------------------
42544235
if info:
4255-
coord_ids = []
4256-
for k, v in m0.axis.items():
4257-
coord_ids.extend([repr(i) for i in v['ids']])
4258-
4259-
if len(coord_ids) > 1:
4260-
coord_ids = (
4261-
f"{', '.join(coord_ids[:-1])} and {coord_ids[-1]}"
4262-
)
4263-
elif coord_ids:
4264-
coord_ids = coord_ids[0]
4265-
else:
4266-
coord_ids = ""
4267-
42684236
meta[
42694237
0
42704238
].message = (
4271-
f"Some fields have identical sets of 1-d {coord_ids} "
4272-
"coordinates."
4239+
"Some fields have identical sets of 1-d coordinates."
42734240
)
42744241

42754242
return ()

0 commit comments

Comments
 (0)