---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[10], line 1
----> 1 psp_spi_vars = pyspedas.psp.spi(trange=validate(psp_timerange), time_clip=True)
3 tvar = tvectot("psp_spi_VEL_RTN_SUN")
4 psp_ion_speed: xr.DataArray = get_data(tvar, xarray=True)
File ~/micromamba/envs/psp_conjunction/lib/python3.11/site-packages/pyspedas/psp/__init__.py:436, in spi(trange, datatype, level, suffix, get_support_data, varformat, varnames, downloadonly, notplot, no_update, time_clip, username, password, last_version)
433 level = 'l3'
434 print("Using LEVEL=L3")
--> 436 return load(instrument='spi', trange=trange, datatype=datatype, level=level,
437 suffix=suffix, get_support_data=get_support_data, varformat=varformat, varnames=varnames,
438 downloadonly=downloadonly, notplot=notplot, time_clip=time_clip, no_update=no_update,
439 username=username, password=password,last_version=last_version
440 )
File ~/micromamba/envs/psp_conjunction/lib/python3.11/site-packages/pyspedas/psp/load.py:296, in load(trange, instrument, datatype, spec_types, level, suffix, get_support_data, varformat, varnames, downloadonly, notplot, no_update, time_clip, username, password, last_version)
293 # we'll need the support data for the quality flags
294 get_support_data = True
--> 296 tvars = cdf_to_tplot(out_files, suffix=suffix, prefix=prefix, get_support_data=get_support_data,
297 varformat=varformat, varnames=varnames, notplot=notplot)
299 if notplot:
300 return tvars
File ~/micromamba/envs/psp_conjunction/lib/python3.11/site-packages/pytplot/importers/cdf_to_tplot.py:161, in cdf_to_tplot(filenames, mastercdf, varformat, exclude_format, get_support_data, get_metadata, get_ignore_data, string_encoding, prefix, suffix, plot, merge, center_measurement, notplot, varnames)
159 cdf_file.string_encoding = string_encoding
160 cdf_info = cdf_file.cdf_info()
--> 161 all_cdf_variables = cdf_info['rVariables'] + cdf_info['zVariables']
162 logging.debug("all_cdf_variables: " + str(all_cdf_variables))
163 if not mastercdf_flag:
164 # If not using a master CDF, each CDF is its own master
TypeError: 'CDFInfo' object is not subscriptable