Drift Tube Example error: path = os.getenv('GARFIELD_INSTALL') not working

Hello! I am attempting to get some plots from the Drift Tube example in Garfield++. I am using the python template available here: Examples/GasFile/read.py · master · garfield / garfieldpp · GitLab ; to make the plots. However, when I pass the command: path = os.getenv(‘GARFIELD_INSTALL’) ; it returns ‘None’ for the path. I don’t understand why this is so, and would appreciate any help I can get. Thank you!

you need to source the script setupGarfield.sh beforehand to set the GARFIELD_INSTALL environment variable.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.