-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
Description
runfile('C:/Users/dvezinet/Documents/Projects/tofu_sparc/Pinhole_Optimization.py', wdir='C:/Users/dvezinet/Documents/Projects/tofu_sparc')
_PATH_RAMP = 'C:/Users/dvezinet/Documents/Projects/MEQ-CFS/equilibria/'
getpathR = lambda run: os.path.join(_PATH_RAMP, f'{run}')
dpath = {getpathR(ii): ['LY_', '_22', '.mat'] for ii in [kk for kk in os.listdir(_PATH_RAMP) if kk.startswith('22') and int(kk[2:]) == 10]}
coll.load_equilibrium_from_files(dpfe=dpath, sort_vs='t', strict=True, returnas=coll)
out = coll.interpolate_along_los(key_diag='dpin0', res=0.01, key_integrand='meq0_rhopn', key_coords='R', plot=False, val_out=np.nan, concatenate=False, mode='abs', radius_max=2.5)
c:\users\dvezinet\documents\projects\tofu\tofu\data\_class02_sample.py:200: RuntimeWarning: invalid value encountered in cast
nn = np.ceil(length_rad / res).astype(int)
Traceback (most recent call last):
Cell In[8], line 1
out = coll.interpolate_along_los(key_diag='dpin0', res=0.01, key_integrand='meq0_rhopn', key_coords='R', plot=False, val_out=np.nan, concatenate=False, mode='abs', radius_max=2.5)
File c:\users\dvezinet\documents\projects\tofu\tofu\data\_class08_Diagnostic.py:1123 in interpolate_along_los
return _interpolate_along_los.main(
File c:\users\dvezinet\documents\projects\tofu\tofu\data\_class08_interpolate_along_los.py:139 in main
pts_x, pts_y, pts_z, pts_ll = coll.sample_rays(
File c:\users\dvezinet\documents\projects\tofu\tofu\data\_class02_Rays.py:203 in sample_rays
return _sample.main(
File c:\users\dvezinet\documents\projects\tofu\tofu\data\_class02_sample.py:350 in main
itot = itot[sli]
IndexError: arrays used as indices must be of integer (or boolean) type
Reactions are currently unavailable
