Closed lastephey closed 2 years ago
Hi Laurie. It is failing on desisim/io.py line 1083:
dirname = os.path.join(
os.getenv('DESI_SPECTRO_SIM'), os.getenv('PIXPROD'),
str(night), '{:08d}'.format(expid)
)
I suspect that you don't have PIXSIM defined, since os.getenv('PIXPROD') will return None which then chokes os.path.join. It can be anything; it just defines a subdir under DESI_SPECTRO_SIM for where to put outputs of this particular run.
The code could be clearer about how it logs/crashes if required environment variables aren't defined, but I suspect that setting PIXSIM will fix your run.
Yes, I was missing PIXPROD
and a few other settings. I appreciate your quick suggestion. Thanks again and sorry for the noise.
Hi DESI developers,
I provided a pixsim multiprocessing example to one of our vendors some time ago that we are now revisiting. I'm having trouble running the example
This results in the traceback:
Initially I wondered if this was due to a software installation problem, but I just rebuilt my test environment with the workaround Stephen kindly pointed me to, so I think it may be something else.
Here are all the steps I used to build and configure my environment on Perlmutter to reproduce this error.
It looks to me like
specsim
is handled a bit differently, so for that package I did the followingThen I installed desispec's dependencies using the fitsio compatibility workaround
cd to my directory with my data files. Finally:
which gives the traceback I posted at the top.
Am I doing something wrong in building my environment? Has pixsim or one of its dependencies changed? I'd appreciate any help troubleshooting this.
Thank you very much, Laurie