Skip to content

Commit 8bd7d9f

Browse files
authored
Merge branch 'ErikOsinga:main' into main
2 parents 6b6bdf3 + 93ab9e7 commit 8bd7d9f

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

cirada_software/ingest_3Dpipeline_band1_prefect.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ export PYTHONPATH="/arc/projects/CIRADA/polarimetry/software/RMtoolsdev/:$PYTHON
1212
# move to POSSUMutils base directory
1313
cd /arc/projects/CIRADA/polarimetry/software/POSSUMutils/
1414
# arguments: tile_number, band ("943MHz" or "1367MHz")
15-
python -m possum_pipeline_control.ingest3Dpipeline $1 $2
15+
python -m possum_pipeline_control.ingest3Dpipeline $1 $2 -CADC_cert_file $HOME/.ssl/cadcproxy.pem

possum_pipeline_control/ingest3Dpipeline.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,18 @@ def replace_working_directory_and_save(file_path, tile_workdir):
6767
with open(new_file_path, "w") as new_file:
6868
for line in lines:
6969
if line.startswith("working_directory:"):
70+
# make sure to change the working directory to the tile workdir
7071
new_file.write(f"working_directory: {tile_workdir}\n")
72+
elif line.startswith("proxy_file_name:"):
73+
# make sure the proxy file name points to the correct location of the CADC certificate
74+
new_file.write(
75+
f"proxy_file_name: {os.path.expanduser('~/.ssl/cadcproxy.pem')}\n"
76+
)
7177
else:
78+
# blanket copy all other lines
7279
new_file.write(line)
7380

81+
7482
return new_file_path
7583

7684

0 commit comments

Comments
 (0)