File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 17
17
import json
18
18
import tempfile
19
19
import psutil
20
+ import hashlib
20
21
import warnings
21
22
import subprocess
22
23
from argparse import ArgumentParser
@@ -322,6 +323,11 @@ def before_send(event, hints):
322
323
if exec_env == 'fmriprep-docker' :
323
324
scope .set_tag ('docker_version' , os .getenv ('DOCKER_VERSION_8395080871' ))
324
325
326
+ dset_desc_path = os .path .join (opts .bids_dir , 'dataset_description.json' )
327
+ if os .path .exists (dset_desc_path ):
328
+ with open (dset_desc_path , 'rb' ) as fp :
329
+ scope .set_tag ('dset_desc_sha256' , hashlib .sha256 (fp .read ()).hexdigest ())
330
+
325
331
free_mem_at_start = round (psutil .virtual_memory ().free / 1024 ** 3 , 1 )
326
332
scope .set_tag ('free_mem_at_start' , free_mem_at_start )
327
333
scope .set_tag ('cpu_count' , cpu_count ())
You can’t perform that action at this time.
0 commit comments