Skip to content
Snippets Groups Projects
Commit 0c25255e authored by Laurent Mercadier's avatar Laurent Mercadier
Browse files

Merge branch 'attributes' into 'master'

improved attributes copy in concatenateRuns()

See merge request SCS/ToolBox!62
parents 500833ea 96e3a214
No related branches found
No related tags found
No related merge requests found
...@@ -479,6 +479,6 @@ def concatenateRuns(runs): ...@@ -479,6 +479,6 @@ def concatenateRuns(runs):
return return
result = xr.concat(orderedRuns, dim='trainId') result = xr.concat(orderedRuns, dim='trainId')
result.attrs['run'] = [run.attrs['run'] for run in orderedRuns] for k in orderedRuns[0].attrs.keys():
result.attrs['runFolder'] = [run.attrs['runFolder'] for run in orderedRuns] result.attrs[k] = [run.attrs[k] for run in orderedRuns]
return result return result
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