Skip to content

Commit a3d5e4b

Browse files
committed
dev
1 parent 2a2548a commit a3d5e4b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Changelog.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ version NEXT
1010
`cf.Field.regrids` and `cf.Field.regridc`
1111
(https://github.com/NCAS-CMS/cf-python/issues/715)
1212
* Improve the performance of reading and accessing the data of PP and
13-
UM fields files (https://github.com/NCAS-CMS/cf-python/issues/7??)
13+
UM fields files (https://github.com/NCAS-CMS/cf-python/issues/746)
1414
* Improve `cf.Field.collapse` performance by lazily computing reduced
1515
axis coordinates (https://github.com/NCAS-CMS/cf-python/issues/741)
1616
* Improve `cf.Field.__getitem__` performance by not re-calculating

cf/field.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -454,8 +454,11 @@ def __getitem__(self, indices):
454454
# below.
455455
if org_cyclic:
456456
new_cyclic = new_data.cyclic()
457-
[new.cyclic(i, iscyclic=False) for i in org_cyclic if i not in new_cyclic]
458-
457+
[
458+
new.cyclic(i, iscyclic=False)
459+
for i in org_cyclic
460+
if i not in new_cyclic
461+
]
459462

460463
# ------------------------------------------------------------
461464
# Subspace constructs with data

0 commit comments

Comments
 (0)