Browse Source

Bind subject data directory for container

Wu Jianxiao 4 months ago
parent
commit
e3fc8b5bdd
2 changed files with 3 additions and 2 deletions
  1. 1 1
      hcpdiffpy/__init__.py
  2. 2 1
      hcpdiffpy/container.py

+ 1 - 1
hcpdiffpy/__init__.py

@@ -1 +1 @@
-VERSION = "0.3.0"
+VERSION = "0.4.2"

+ 2 - 1
hcpdiffpy/container.py

@@ -7,7 +7,8 @@ class SimgCmd:
             self.command = None
         else:
             self.command = (f"singularity run -B {config['work_dir']}:{config['work_dir']},"
-                        f"{config['output_dir']}:{config['output_dir']}")
+                        f"{config['output_dir']}:{config['output_dir']},"
+                        f"{config['subject_dir']:{config['subject_dir']}}")
             self._simg = simg
 
     def cmd(self, command: str, options: Union[str, None] = None) -> str: