%matplotlib inline
import pandas as pd
import socket
host = socket.getfqdn()
from core import load, zoom, calc, save,plots,monitor
#reload funcs after updating ./core/*.py
import importlib
importlib.reload(load)
importlib.reload(zoom)
importlib.reload(calc)
importlib.reload(save)
importlib.reload(plots)
importlib.reload(monitor)
<module 'core.monitor' from '/ccc/work/cont003/gen7420/odakatin/monitor-sedna/notebook/core/monitor.py'>
below are list of enviroment variable one can pass
local : if True run dask local cluster, if not true, put number of workers setted in the 'local' if no 'local ' given, local will be setted automatically to 'True'
#
Monitor.sh calls M_MLD_2D
and AWTD.sh, Fluxnet.sh, Siconc.sh, IceClim.sh, FWC_SSH.sh
AWTD.sh M_AWTMD
Fluxnet.sh M_Fluxnet
FWC_SSH.sh M_FWC_2D M_FWC_integrals M_FWC_SSH M_SSH_anomaly
Integrals.sh M_Mean_temp_velo M_Mooring M_Sectionx M_Sectiony
%%time
# 'savefig': Do we save output in html? or not. keep it true.
savefig=True
client,cluster,control,catalog_url,month,year,daskreport,outputpath = load.set_control(host)
!mkdir -p $outputpath
!mkdir -p $daskreport
client
local True using host= irene6193.c-irene.mg1.tgcc.ccc.cea.fr starting dask cluster on local= True workers 16 10000000000 False tgcc local cluster starting This code is running on irene6193.c-irene.mg1.tgcc.ccc.cea.fr using SEDNA_DELTA_MONITOR file experiment, read from ../lib/SEDNA_DELTA_MONITOR.yaml on year= 2012 on month= 02 outputpath= ../results/SEDNA_DELTA_MONITOR/ daskreport= ../results/dask/6419109irene6193.c-irene.mg1.tgcc.ccc.cea.fr_SEDNA_DELTA_MONITOR_02M_IceClim/ CPU times: user 3.83 s, sys: 693 ms, total: 4.52 s Wall time: 1min 32s
Client-97917075-13da-11ed-97bb-080038b94f59
Connection method: Cluster object | Cluster type: distributed.LocalCluster |
Dashboard: http://127.0.0.1:8787/status |
c866d9a6
Dashboard: http://127.0.0.1:8787/status | Workers: 64 |
Total threads: 256 | Total memory: 251.06 GiB |
Status: running | Using processes: True |
Scheduler-929294af-bc4a-4d18-bac3-1f634767b291
Comm: tcp://127.0.0.1:37458 | Workers: 64 |
Dashboard: http://127.0.0.1:8787/status | Total threads: 256 |
Started: 1 minute ago | Total memory: 251.06 GiB |
Comm: tcp://127.0.0.1:45957 | Total threads: 4 |
Dashboard: http://127.0.0.1:39026/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34194 | |
Local directory: /tmp/dask-worker-space/worker-uagzzxbi |
Comm: tcp://127.0.0.1:34934 | Total threads: 4 |
Dashboard: http://127.0.0.1:44715/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33835 | |
Local directory: /tmp/dask-worker-space/worker-ywge_oxo |
Comm: tcp://127.0.0.1:40389 | Total threads: 4 |
Dashboard: http://127.0.0.1:33307/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37971 | |
Local directory: /tmp/dask-worker-space/worker-62824nfm |
Comm: tcp://127.0.0.1:33667 | Total threads: 4 |
Dashboard: http://127.0.0.1:46603/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40247 | |
Local directory: /tmp/dask-worker-space/worker-c07ul4o2 |
Comm: tcp://127.0.0.1:44033 | Total threads: 4 |
Dashboard: http://127.0.0.1:35614/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39715 | |
Local directory: /tmp/dask-worker-space/worker-1mp0p7fe |
Comm: tcp://127.0.0.1:38697 | Total threads: 4 |
Dashboard: http://127.0.0.1:44252/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46182 | |
Local directory: /tmp/dask-worker-space/worker-0oqfjll8 |
Comm: tcp://127.0.0.1:38209 | Total threads: 4 |
Dashboard: http://127.0.0.1:40379/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40685 | |
Local directory: /tmp/dask-worker-space/worker-umkmxwjm |
Comm: tcp://127.0.0.1:40113 | Total threads: 4 |
Dashboard: http://127.0.0.1:45385/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:32945 | |
Local directory: /tmp/dask-worker-space/worker-v5csb2u8 |
Comm: tcp://127.0.0.1:34031 | Total threads: 4 |
Dashboard: http://127.0.0.1:43852/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45340 | |
Local directory: /tmp/dask-worker-space/worker-yfskcops |
Comm: tcp://127.0.0.1:43843 | Total threads: 4 |
Dashboard: http://127.0.0.1:45178/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42856 | |
Local directory: /tmp/dask-worker-space/worker-a_49chq1 |
Comm: tcp://127.0.0.1:42857 | Total threads: 4 |
Dashboard: http://127.0.0.1:41087/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34264 | |
Local directory: /tmp/dask-worker-space/worker-afajyut1 |
Comm: tcp://127.0.0.1:33579 | Total threads: 4 |
Dashboard: http://127.0.0.1:39458/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43224 | |
Local directory: /tmp/dask-worker-space/worker-jthxykki |
Comm: tcp://127.0.0.1:33729 | Total threads: 4 |
Dashboard: http://127.0.0.1:40684/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44284 | |
Local directory: /tmp/dask-worker-space/worker-x58rv_du |
Comm: tcp://127.0.0.1:37389 | Total threads: 4 |
Dashboard: http://127.0.0.1:44493/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36729 | |
Local directory: /tmp/dask-worker-space/worker-sequ2xeu |
Comm: tcp://127.0.0.1:45033 | Total threads: 4 |
Dashboard: http://127.0.0.1:36305/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36577 | |
Local directory: /tmp/dask-worker-space/worker-p_9me8vi |
Comm: tcp://127.0.0.1:41214 | Total threads: 4 |
Dashboard: http://127.0.0.1:43231/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36120 | |
Local directory: /tmp/dask-worker-space/worker-iomfxe19 |
Comm: tcp://127.0.0.1:43997 | Total threads: 4 |
Dashboard: http://127.0.0.1:43498/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42181 | |
Local directory: /tmp/dask-worker-space/worker-_og7lrm9 |
Comm: tcp://127.0.0.1:35935 | Total threads: 4 |
Dashboard: http://127.0.0.1:39053/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41986 | |
Local directory: /tmp/dask-worker-space/worker-pixjzkcg |
Comm: tcp://127.0.0.1:33949 | Total threads: 4 |
Dashboard: http://127.0.0.1:39203/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40973 | |
Local directory: /tmp/dask-worker-space/worker-yne41vdk |
Comm: tcp://127.0.0.1:32855 | Total threads: 4 |
Dashboard: http://127.0.0.1:44575/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44735 | |
Local directory: /tmp/dask-worker-space/worker-eablhvp_ |
Comm: tcp://127.0.0.1:43051 | Total threads: 4 |
Dashboard: http://127.0.0.1:34097/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39701 | |
Local directory: /tmp/dask-worker-space/worker-85pyr01_ |
Comm: tcp://127.0.0.1:39298 | Total threads: 4 |
Dashboard: http://127.0.0.1:46537/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34487 | |
Local directory: /tmp/dask-worker-space/worker-yned81v6 |
Comm: tcp://127.0.0.1:34722 | Total threads: 4 |
Dashboard: http://127.0.0.1:46821/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46324 | |
Local directory: /tmp/dask-worker-space/worker-e4xatcck |
Comm: tcp://127.0.0.1:46553 | Total threads: 4 |
Dashboard: http://127.0.0.1:34718/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43540 | |
Local directory: /tmp/dask-worker-space/worker-ot7ton3x |
Comm: tcp://127.0.0.1:43430 | Total threads: 4 |
Dashboard: http://127.0.0.1:34142/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39644 | |
Local directory: /tmp/dask-worker-space/worker-oxol206d |
Comm: tcp://127.0.0.1:44821 | Total threads: 4 |
Dashboard: http://127.0.0.1:43227/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45086 | |
Local directory: /tmp/dask-worker-space/worker-m9l3a3le |
Comm: tcp://127.0.0.1:35801 | Total threads: 4 |
Dashboard: http://127.0.0.1:34597/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37190 | |
Local directory: /tmp/dask-worker-space/worker-1dh612tx |
Comm: tcp://127.0.0.1:32956 | Total threads: 4 |
Dashboard: http://127.0.0.1:33890/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42475 | |
Local directory: /tmp/dask-worker-space/worker-3imnbx2n |
Comm: tcp://127.0.0.1:34658 | Total threads: 4 |
Dashboard: http://127.0.0.1:36878/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34785 | |
Local directory: /tmp/dask-worker-space/worker-xu_4tdw8 |
Comm: tcp://127.0.0.1:35568 | Total threads: 4 |
Dashboard: http://127.0.0.1:42898/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:32889 | |
Local directory: /tmp/dask-worker-space/worker-y7s_yhhp |
Comm: tcp://127.0.0.1:41721 | Total threads: 4 |
Dashboard: http://127.0.0.1:42631/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45672 | |
Local directory: /tmp/dask-worker-space/worker-asiuuvjk |
Comm: tcp://127.0.0.1:38207 | Total threads: 4 |
Dashboard: http://127.0.0.1:32994/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:41406 | |
Local directory: /tmp/dask-worker-space/worker-iwvaqglg |
Comm: tcp://127.0.0.1:42058 | Total threads: 4 |
Dashboard: http://127.0.0.1:45688/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45541 | |
Local directory: /tmp/dask-worker-space/worker-3skl7nxg |
Comm: tcp://127.0.0.1:46477 | Total threads: 4 |
Dashboard: http://127.0.0.1:35449/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35380 | |
Local directory: /tmp/dask-worker-space/worker-7pnjaees |
Comm: tcp://127.0.0.1:35308 | Total threads: 4 |
Dashboard: http://127.0.0.1:34154/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33479 | |
Local directory: /tmp/dask-worker-space/worker-bdtkm3z8 |
Comm: tcp://127.0.0.1:45314 | Total threads: 4 |
Dashboard: http://127.0.0.1:36362/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37972 | |
Local directory: /tmp/dask-worker-space/worker-gyhzv_kc |
Comm: tcp://127.0.0.1:41912 | Total threads: 4 |
Dashboard: http://127.0.0.1:35226/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37081 | |
Local directory: /tmp/dask-worker-space/worker-n3xmrij0 |
Comm: tcp://127.0.0.1:34717 | Total threads: 4 |
Dashboard: http://127.0.0.1:40115/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:46845 | |
Local directory: /tmp/dask-worker-space/worker-kh9j7sfe |
Comm: tcp://127.0.0.1:39216 | Total threads: 4 |
Dashboard: http://127.0.0.1:46235/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39108 | |
Local directory: /tmp/dask-worker-space/worker-lif_3hd6 |
Comm: tcp://127.0.0.1:40535 | Total threads: 4 |
Dashboard: http://127.0.0.1:36578/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38602 | |
Local directory: /tmp/dask-worker-space/worker-ftjjou8u |
Comm: tcp://127.0.0.1:44720 | Total threads: 4 |
Dashboard: http://127.0.0.1:34277/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:38983 | |
Local directory: /tmp/dask-worker-space/worker-pi0_hul0 |
Comm: tcp://127.0.0.1:36796 | Total threads: 4 |
Dashboard: http://127.0.0.1:42244/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44929 | |
Local directory: /tmp/dask-worker-space/worker-c7ngpgpw |
Comm: tcp://127.0.0.1:44285 | Total threads: 4 |
Dashboard: http://127.0.0.1:44009/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:37471 | |
Local directory: /tmp/dask-worker-space/worker-oj863ic1 |
Comm: tcp://127.0.0.1:38313 | Total threads: 4 |
Dashboard: http://127.0.0.1:34816/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34953 | |
Local directory: /tmp/dask-worker-space/worker-yehrzwi6 |
Comm: tcp://127.0.0.1:42769 | Total threads: 4 |
Dashboard: http://127.0.0.1:34574/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42000 | |
Local directory: /tmp/dask-worker-space/worker-0dyw59mc |
Comm: tcp://127.0.0.1:36005 | Total threads: 4 |
Dashboard: http://127.0.0.1:46297/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33842 | |
Local directory: /tmp/dask-worker-space/worker-lu9aeak_ |
Comm: tcp://127.0.0.1:34721 | Total threads: 4 |
Dashboard: http://127.0.0.1:38108/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39695 | |
Local directory: /tmp/dask-worker-space/worker-ucw603o6 |
Comm: tcp://127.0.0.1:36113 | Total threads: 4 |
Dashboard: http://127.0.0.1:40841/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:45414 | |
Local directory: /tmp/dask-worker-space/worker-89rgyfv5 |
Comm: tcp://127.0.0.1:38618 | Total threads: 4 |
Dashboard: http://127.0.0.1:33807/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39488 | |
Local directory: /tmp/dask-worker-space/worker-6k6k66_v |
Comm: tcp://127.0.0.1:43821 | Total threads: 4 |
Dashboard: http://127.0.0.1:46017/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34206 | |
Local directory: /tmp/dask-worker-space/worker-3npodwc7 |
Comm: tcp://127.0.0.1:38746 | Total threads: 4 |
Dashboard: http://127.0.0.1:39753/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:35712 | |
Local directory: /tmp/dask-worker-space/worker-5ywlpcsw |
Comm: tcp://127.0.0.1:42182 | Total threads: 4 |
Dashboard: http://127.0.0.1:46566/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42973 | |
Local directory: /tmp/dask-worker-space/worker-woo44eei |
Comm: tcp://127.0.0.1:45755 | Total threads: 4 |
Dashboard: http://127.0.0.1:33547/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39504 | |
Local directory: /tmp/dask-worker-space/worker-bmglirdy |
Comm: tcp://127.0.0.1:34214 | Total threads: 4 |
Dashboard: http://127.0.0.1:36449/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:34096 | |
Local directory: /tmp/dask-worker-space/worker-unfd7exn |
Comm: tcp://127.0.0.1:34265 | Total threads: 4 |
Dashboard: http://127.0.0.1:35708/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:33699 | |
Local directory: /tmp/dask-worker-space/worker-y9lv7vae |
Comm: tcp://127.0.0.1:34119 | Total threads: 4 |
Dashboard: http://127.0.0.1:38609/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36650 | |
Local directory: /tmp/dask-worker-space/worker-qbvbq21l |
Comm: tcp://127.0.0.1:41339 | Total threads: 4 |
Dashboard: http://127.0.0.1:33822/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:39985 | |
Local directory: /tmp/dask-worker-space/worker-g9aiklv5 |
Comm: tcp://127.0.0.1:40823 | Total threads: 4 |
Dashboard: http://127.0.0.1:34995/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40930 | |
Local directory: /tmp/dask-worker-space/worker-tirdxg44 |
Comm: tcp://127.0.0.1:46327 | Total threads: 4 |
Dashboard: http://127.0.0.1:45218/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43138 | |
Local directory: /tmp/dask-worker-space/worker-uh0i8no0 |
Comm: tcp://127.0.0.1:42276 | Total threads: 4 |
Dashboard: http://127.0.0.1:33263/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:42677 | |
Local directory: /tmp/dask-worker-space/worker-r01nffoj |
Comm: tcp://127.0.0.1:36803 | Total threads: 4 |
Dashboard: http://127.0.0.1:40485/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:44826 | |
Local directory: /tmp/dask-worker-space/worker-w2__vtlt |
Comm: tcp://127.0.0.1:38365 | Total threads: 4 |
Dashboard: http://127.0.0.1:43201/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:43338 | |
Local directory: /tmp/dask-worker-space/worker-sctkgry4 |
Comm: tcp://127.0.0.1:44994 | Total threads: 4 |
Dashboard: http://127.0.0.1:44950/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:36355 | |
Local directory: /tmp/dask-worker-space/worker-ojigxezj |
Comm: tcp://127.0.0.1:34758 | Total threads: 4 |
Dashboard: http://127.0.0.1:43440/status | Memory: 3.92 GiB |
Nanny: tcp://127.0.0.1:40784 | |
Local directory: /tmp/dask-worker-space/worker-ytxjlfsp |
df=load.controlfile(control)
#Take out 'later' tagged computations
#df=df[~df['Value'].str.contains('later')]
df
Value | Inputs | Equation | Zone | Plot | Colourmap | MinMax | Unit | Oldname | Unnamed: 10 | |
---|---|---|---|---|---|---|---|---|---|---|
IceClim | calc.IceClim_load(data,nc_outputpath) | ALL | IceClim | Spectral | (0,5) | m | M-4 |
Each computation consists of
%%time
import os
calcswitch=os.environ.get('calc', 'True')
lazy=os.environ.get('lazy','False' )
loaddata=((df.Inputs != '').any())
print('calcswitch=',calcswitch,'df.Inputs != nothing',loaddata, 'lazy=',lazy)
data = load.datas(catalog_url,df.Inputs,month,year,daskreport,lazy=lazy) if ((calcswitch=='True' )*loaddata) else 0
data
calcswitch= True df.Inputs != nothing False lazy= True CPU times: user 399 µs, sys: 0 ns, total: 399 µs Wall time: 399 µs
0
%%time
monitor.auto(df,data,savefig,daskreport,outputpath,file_exp='SEDNA'
)
#calc= True #save= False #plot= True Value='IceClim' Zone='ALL' Plot='IceClim' cmap='Spectral' clabel='m' clim= (0, 5) outputpath='../results/SEDNA_DELTA_MONITOR/' nc_outputpath='../nc_results/SEDNA_DELTA_MONITOR/' filename='SEDNA_IceClim_ALL_IceClim' #3 Start computing data= calc.IceClim_load(data,nc_outputpath) monitor.optimize_dataset(data) start saving data filename= ../nc_results/SEDNA_DELTA_MONITOR/SEDNA_maps_ALL_IceConce/t_*/y_*/x_*.nc
--------------------------------------------------------------------------- OSError Traceback (most recent call last) File <timed eval>:1, in <module> File /ccc/work/cont003/gen7420/odakatin/monitor-sedna/notebook/core/monitor.py:67, in auto(df, val, savefig, daskreport, outputpath, file_exp) 65 #print('count:',data.count()) 66 with performance_report(filename=daskreport+"_calc_"+step.Value+".html"): ---> 67 data=eval(command) 68 #print('persist ') 69 #data=data.persist() 70 print('add optimise here once otimise can recognise') File <string>:1, in <module> File /ccc/work/cont003/gen7420/odakatin/monitor-sedna/notebook/core/calc.py:231, in IceClim_load(data, nc_outputpath) 229 import xarray as xr 230 filename='SEDNA_maps_ALL_IceConce' --> 231 ds=save.load_data(plot='map',path=nc_outputpath,filename=filename) 232 filename='SEDNA_maps_ALL_IceThickness' 233 ds['sivolu']=save.load_data(plot='map',path=nc_outputpath,filename=filename).sivolu File /ccc/work/cont003/gen7420/odakatin/monitor-sedna/notebook/core/save.py:38, in load_data(plot, path, filename) 36 data=load_twoD(path,filename,nested=False) 37 else: ---> 38 data=load_twoD(path,filename) 39 print('load computed data completed') 40 return data File /ccc/work/cont003/gen7420/odakatin/monitor-sedna/notebook/core/save.py:48, in load_twoD(path, filename, nested) 46 dim=('x','y','t') if nested else ('t') 47 print ('filename=',filename) ---> 48 return xr.open_mfdataset(filename,parallel=True 49 ,compat='override' 50 ,data_vars='minimal' 51 ,concat_dim=dim 52 ,combine='nested' #param_xios 53 ,coords='minimal') File /ccc/cont003/home/ra5563/ra5563/monitor/lib/python3.10/site-packages/xarray/backends/api.py:937, in open_mfdataset(paths, chunks, concat_dim, compat, preprocess, engine, data_vars, coords, combine, parallel, join, attrs_file, combine_attrs, **kwargs) 934 paths = [os.fspath(p) if isinstance(p, os.PathLike) else p for p in paths] 936 if not paths: --> 937 raise OSError("no files to open") 939 if combine == "nested": 940 if isinstance(concat_dim, (str, DataArray)) or concat_dim is None: OSError: no files to open