Skip to content

Commit 9d07de4

Browse files
Change postprocess launch script
1 parent 5732687 commit 9d07de4

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

postprocess.sh

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
11
#!/usr/bin/env bash
22

3-
#OAR -l walltime=2
3+
#OAR -l walltime=4
44
#OAR -O ./log/postprocess_log_%jobid%.stdout
55
#OAR -E ./log/postprocess_log_%jobid%.stderr
66
#OAR -q production
77

8-
TAG="fmri-confs-runner"
9-
108
BASE="/home/ymerel/empenn_group_storage/private/ymerel"
11-
RESULTS="$BASE/results/auditory"
9+
RESULTS="$BASE/auditory_276"
1210

13-
g5k-setup-docker -t
14-
docker build . -t $TAG
15-
docker run -u root -v "$RESULTS:/results" $TAG python postprocess.py --results /results
11+
pip install -r requirements.txt
12+
python postprocess.py --results $RESULTS
1613

postprocess/postprocess_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def get_mean_image(self, inputs: list, batch_size: int) -> nib.Nifti1Image:
5757

5858
total = len(inputs)
5959

60-
print(f"Summing up the [{total}] images...")
60+
print(f"Summing the [{total}] images...")
6161
for i in range(0, total, batch_size):
6262
batch_paths = inputs[i:i + batch_size]
6363
batch_images = [nib.load(path).get_fdata() for path in batch_paths]

0 commit comments

Comments
 (0)