PyWiFeS / pipeline

The Python data reduction pipeline for WiFeS
6 stars 26 forks source link

Compatibility with conda environments #50

Closed anaismoller closed 4 months ago

anaismoller commented 4 months ago

Hi Christina,

pipeline/reduction_scripts/reduce_data.py forces the python to be

! /usr/bin/env python3

this is not compatible with conda environments.

Have you thought of not hardcoding it on the code but rather have an environment variable?

thanks,

Anais

timothyfrankdavies commented 4 months ago

Hi Anais,

The '#!' at the top of the file should only apply when executing the script directly, e.g. with './reduce_data.sh'.

You can always be able to override it manually, e.g. with 'python reduce_data.py'.

I Think '/usr/bin/env python3' is standard, but you will need Python 3 to run.

anaismoller commented 4 months ago

Thanks, I found a way around it by specifying the python3 I want to use path instead of using the proposed the alias.

Maybe you can add this to the FAQ...