neurodocker
neurodocker copied to clipboard
using neurodocker from python code
I'm trying to use neurodocker functions directly from my python code (without using kaczmarj/neurodocker image and without using subprocesses). I'm not aware of examples (please point me if they exist), so was reading the code and tests, and decided to use the main function as intest_generate. It works fine when I was using it only once in my code, but I'm not able to use it multiple times, since class attributes changes (e.g. interfaces.Miniconda._environments) and this leads to neurodocker errors.
I also followed @satra suggestion and tried to use generators.Dockerfile class and run render but I run into the same issue.
The easiest way to replicate my problem is to run main function twice in this test.