diff --git a/python/swiftest/swiftest/io.py b/python/swiftest/swiftest/io.py index 64d3f0c6e..3092edad3 100644 --- a/python/swiftest/swiftest/io.py +++ b/python/swiftest/swiftest/io.py @@ -855,7 +855,7 @@ def swiftest2xr(param, verbose=True): # Check if the name variable contains unique values. If so, make name the dimension instead of id if len(np.unique(ds['name'])) == len(ds['name']): ds = ds.swap_dims({"id" : "name"}) - sim.ds.reset_coords("id") + ds.reset_coords("id") else: print(f"Error encountered. OUT_TYPE {param['OUT_TYPE']} not recognized.") return None