xBOUT should contain a new collect() function whose purpose is to maintain backwards compatibility with the old collect().
These would make it easier to phase out usage of the old collect.
It should have the same signature, so needs to return a numpy array. Would look something like
def collect(var, path, prefix='BOUT.dmp', info=True):
datapath = path + prefix + '*.nc'
ds = open_boutdataset(datapath=datapath, info=info)
return ds[var].values
There is no way that it would be able to print out the same info, but it might be able to throw some of the same errors.
xBOUT should contain a new
collect()function whose purpose is to maintain backwards compatibility with the oldcollect().These would make it easier to phase out usage of the old collect.
It should have the same signature, so needs to return a numpy array. Would look something like
There is no way that it would be able to print out the same info, but it might be able to throw some of the same errors.