Skip to content

Commit 538e7f4

Browse files
committed
dev
1 parent 8cdb7d3 commit 538e7f4

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

cf/read_write/netcdf/netcdfwrite.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -430,10 +430,7 @@ def _create_cfa_data(self, ncvar, ncdimensions, data, cfvar):
430430
431431
`None`
432432
433-
"""
434-
import time # TODO
435-
print (f"\n{ncvar}") # TODO
436-
433+
"""
437434
g = self.write_vars
438435

439436
ndim = data.ndim
@@ -484,7 +481,6 @@ def _create_cfa_data(self, ncvar, ncdimensions, data, cfvar):
484481
aggregated_data_attr = []
485482

486483
# Location
487-
start = time.time() # TODO
488484
term = "location"
489485
data = cfa[term]
490486
self.implementation.nc_set_hdf5_chunksizes(data, data.shape)
@@ -494,11 +490,9 @@ def _create_cfa_data(self, ncvar, ncdimensions, data, cfvar):
494490
location_ncdimensions,
495491
)
496492
aggregated_data_attr.append(f"{term}: {term_ncvar}")
497-
print (f"{term:<10}: {time.time() - start:.3}")
498493

499494
# File
500495
term = "file"
501-
start = time.time() # TODO
502496
if substitutions:
503497
# Create the "substitutions" netCDF attribute
504498
subs = []
@@ -518,11 +512,9 @@ def _create_cfa_data(self, ncvar, ncdimensions, data, cfvar):
518512
attributes=attributes,
519513
)
520514
aggregated_data_attr.append(f"{term}: {term_ncvar}")
521-
print (f"{term:<10}: {time.time() - start:.3}")
522515

523516
# Address
524517
term = "address"
525-
start = time.time() # TODO
526518

527519
# Attempt to reduce addresses to a common scalar value
528520
u = cfa[term].unique().compressed().persist()
@@ -540,11 +532,9 @@ def _create_cfa_data(self, ncvar, ncdimensions, data, cfvar):
540532
dimensions,
541533
)
542534
aggregated_data_attr.append(f"{term}: {term_ncvar}")
543-
print (f"{term:<10}: {time.time() - start:.3}")
544535

545536
# Format
546537
term = "format"
547-
start = time.time() # TODO
548538

549539
# Attempt to reduce addresses to a common scalar value
550540
u = cfa[term].unique().compressed().persist()
@@ -563,7 +553,6 @@ def _create_cfa_data(self, ncvar, ncdimensions, data, cfvar):
563553
)
564554
aggregated_data_attr.append(f"{term}: {term_ncvar}")
565555

566-
print (f"{term:<10}: {time.time() - start:.3}")
567556
# ------------------------------------------------------------
568557
# Look for non-standard CFA terms stored as field ancillaries
569558
# on a field and write them to the CFA-netCDF file
@@ -905,6 +894,7 @@ def _cfa_aggregation_instructions(self, data, cfvar):
905894
from pathlib import PurePath
906895
from urllib.parse import urlparse
907896
import time # TODO
897+
print (f"\n{cfvar!r}") # TODO
908898
start = time.time() # TODO
909899

910900
g = self.write_vars

0 commit comments

Comments
 (0)