dhavalkadia-fda commited on
Commit
b8037b9
·
verified ·
1 Parent(s): 6f01b0d

Upload 2 files

Browse files
Files changed (2) hide show
  1. PyBDC/README.md +1 -1
  2. PyBDC/run_container.sh +23 -0
PyBDC/README.md CHANGED
@@ -30,7 +30,7 @@ Run PyBDC.
30
  python3 PyBDC.py
31
  ```
32
 
33
- PyBDC can also be run through its container available at https://huggingface.co/didsr/PyBDC-Container
34
 
35
  User guide
36
  ----------
 
30
  python3 PyBDC.py
31
  ```
32
 
33
+ PyBDC can also be run through its container available at https://huggingface.co/didsr/PyBDC-Container, or by executing the shell script [run_container.sh](run_container.sh).
34
 
35
  User guide
36
  ----------
PyBDC/run_container.sh ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # !/bin/bash
2
+ # Script to download the container and run PyBDC.
3
+ # Assumption: the system is Unix based system and Apptainer (https://apptainer.org) is installed.
4
+
5
+ # Clone PyBDC container from HuggingFace
6
+ git clone https://huggingface.co/didsr/PyBDC-Container
7
+
8
+ cd PyBDC-Container
9
+
10
+ read -r -p "Are you providing PyBDC an incident spectrum? [y/N] " response
11
+ case "$response" in
12
+ [yY][eE][sS]|[yY])
13
+ echo "Provide the parent directory path for the incident spectrum file: "
14
+ read directory_path
15
+ echo "Provided path: $directory_path"
16
+ echo "You can access the content of the provided directory in /mnt directory from PyBDC GUI"
17
+ apptainer run --bind $directory_path:/mnt ./PyBDC_container/PyBDC_container.sif
18
+ ;;
19
+ *)
20
+ echo "Incident spectrum files can be accessed from /usr/local/bin/PyBDC/incident_spectrum/"
21
+ apptainer run ./PyBDC_container/PyBDC_container.sif
22
+ ;;
23
+ esac