XENONnT / straxen

Streaming analysis for XENON
BSD 3-Clause "New" or "Revised" License
21 stars 32 forks source link

Analysis template doesn't use consistent environments for different modes #1332

Closed yuema137 closed 6 months ago

yuema137 commented 6 months ago

Describe the bug The analysis.py file provides some templates for the users to write their own analysis script. The users are supposed to set a container in their own classes. However, the container property is only used in the submit mode. Therefore, there is a risk for people to use inconsistent environments for prepare, submit, post and other potential modes.

For example, If a user uses the cvmfs environment to run the script, which is very likely the only possible way (singularities are not good for submitting jobs now), there will be a conflict between the container environment and the cvmfs environment.

I can see that the environment control could be painful because of this. Will it be better to update the template to solve this issue? If there are good suggestions, I'm glad to implement them. Tagging ACs and Team A leaders @WenzDaniel @florian-toennies @FaroutYLq @dachengx

yuema137 commented 6 months ago

sorry it's a nton issue