Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
Refactored argument name of name list as namevals for consistency
  • Loading branch information
daminton committed Aug 27, 2021
1 parent 0fb9a2c commit a56ea81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/swiftest/swiftest/init_cond.py
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def vec2xr(param, idvals, namevals, v1, v2, v3, v4, v5, v6, GMpl=None, Rpl=None,
else:
bodyxr = xr.DataArray(bodyframe, dims=dims, coords={'time': [t], 'id': idvals, 'vec': tlab})

bodyxr = bodyxr.assign_coords(name=('id', names))
bodyxr = bodyxr.assign_coords(name=('id', namevals))

ds = bodyxr.to_dataset(dim='vec')
return ds

0 comments on commit a56ea81

Please sign in to comment.