data-analysis-guidelines icon indicating copy to clipboard operation
data-analysis-guidelines copied to clipboard

for multi-part analyses, figure out a pattern to set up an environment once, and import it to all pweave files

Open hancush opened this issue 6 years ago • 1 comments

i've tried a setup.py file in the analyses/ dir, as well as an environment module. both led to weird import problems when compiling the analysis versus developing in atom.

hancush avatar Apr 10 '18 16:04 hancush

the solution:

add a startup.py file to your analyses/ dir, then export PYTHONPATH=.:$PYTHONPATH in the command line. this will allow you to do

from analyses.startup import *

at the top of each of your analysis files, and make sure Make executes the python correctly when you run your build

hancush avatar Apr 19 '18 16:04 hancush