You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the BoutDataArray version of interpolate_parallel(), the result returned does not have the regions attribute created. regions is only created in the BoutDataset version. This means that the result does not support various useful methods, e.g. plotting on the poloidal plane.
Not sure this is easily fixable: I suspect there were reasons a full Dataset was needed to create the regions, although it may just have been convenience and to avoid duplicated code.
Possibly the best solution would be to fix #164, which should take care of this issue as a by-product.
The current workaround is to just use the BoutDataset version, and then get the DataArray out of the result. I.e. replace
n = ds["n"]
n_highres = n.bout.interpolate_parallel()
When using the
BoutDataArray
version ofinterpolate_parallel()
, the result returned does not have theregions
attribute created.regions
is only created in theBoutDataset
version. This means that the result does not support various useful methods, e.g. plotting on the poloidal plane.Not sure this is easily fixable: I suspect there were reasons a full Dataset was needed to create the regions, although it may just have been convenience and to avoid duplicated code.
Possibly the best solution would be to fix #164, which should take care of this issue as a by-product.
The current workaround is to just use the
BoutDataset
version, and then get the DataArray out of the result. I.e. replacewith
The text was updated successfully, but these errors were encountered: