Skip to content
Snippets Groups Projects
Commit 23fb0bcc authored by Ray Garcia's avatar Ray Garcia :scream_cat:
Browse files

disambiguate debug in ahi2cmi

parent 7f398fb1
No related branches found
No related tags found
No related merge requests found
...@@ -682,7 +682,7 @@ class tests(unittest.TestCase): ...@@ -682,7 +682,7 @@ class tests(unittest.TestCase):
print("%d frames" % n_frames) print("%d frames" % n_frames)
def write_netcdf(path, as_radiances=False, filename_format="{}.nc", complevel=None, debug=False): def write_netcdf(path, as_radiances=False, filename_format="{}.nc", complevel=None, debug=False):
from goesr.rockfall import rename, nc_write, autoscale, debug from goesr.rockfall import rename, nc_write, autoscale, debug as rfdebug
fnstem = os.path.splitext(os.path.split(path)[-1])[0] fnstem = os.path.splitext(os.path.split(path)[-1])[0]
fn = filename_format.format(fnstem) fn = filename_format.format(fnstem)
pathout = os.path.abspath(fn) pathout = os.path.abspath(fn)
...@@ -696,7 +696,7 @@ def write_netcdf(path, as_radiances=False, filename_format="{}.nc", complevel=No ...@@ -696,7 +696,7 @@ def write_netcdf(path, as_radiances=False, filename_format="{}.nc", complevel=No
upstream = autoscale( lething.walk(extra_data_attrs=extra_data_attrs), upstream = autoscale( lething.walk(extra_data_attrs=extra_data_attrs),
variable_names_matching={varname} ) variable_names_matching={varname} )
if debug: if debug:
upstream = debug(upstream) upstream = rfdebug(upstream)
for fnwrit in nc_write( for fnwrit in nc_write(
rename( rename(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment