Skip to content
Snippets Groups Projects
Commit 59c0611f authored by Nick Bearson's avatar Nick Bearson
Browse files

use input file basenames rather than full path.

parent 7ca30fd7
No related branches found
No related tags found
1 merge request!6Resolve "add tracability attributes to grid (and maybe tile) files"
This commit is part of merge request !6. Comments created here will be created in the context of that merge request.
...@@ -201,7 +201,7 @@ def add_gglm_attrs(netcdf_filename, input_filenames): ...@@ -201,7 +201,7 @@ def add_gglm_attrs(netcdf_filename, input_filenames):
nc = Dataset(netcdf_filename, 'a') nc = Dataset(netcdf_filename, 'a')
setattr(nc, 'cspp_geo_gglm_version', get_cspp_gglm_version()) setattr(nc, 'cspp_geo_gglm_version', get_cspp_gglm_version())
setattr(nc, 'cspp_geo_gglm_production_host', socket.gethostname()) setattr(nc, 'cspp_geo_gglm_production_host', socket.gethostname())
setattr(nc, 'cspp_geo_gglm_input_files', ",".join(input_filenames)) # this probably needs to be added somewhere else? setattr(nc, 'cspp_geo_gglm_input_files', ",".join([os.path.basename(f) for f in input_filenames]))
nc.close() nc.close()
except: except:
log.error("could not add CSPP Geo GGLM attributes to {}".format(netcdf_filename)) log.error("could not add CSPP Geo GGLM attributes to {}".format(netcdf_filename))
......
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