PTSA is a set of helper functions using xarray developed at the CML at UPenn: https://github.com/pennmem/ptsa. An more widely-used alternative is MNE.
To get this env created I had to use the following steps, but you shouldn’t have to if you install that yml.
conda install -y numpy scipy xarray swig traits
conda install -y -c pennmem fftw
module load compiler/gnu/9.1
module load gcc/11.3.0
install -c pennmem -c conda-forge ptsa
install -c conda-forge libstdcxx-ng=12