FAQ
| This is a
LIVE
service |
Changelog
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ews-coordinator
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Container Registry
Operate
Terraform modules
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gilligan Lab for Epidemiology and Modelling
Wheat rusts
ews-coordinator
Commits
e95ab38d
Commit
e95ab38d
authored
1 year ago
by
L. Bower
Browse files
Options
Downloads
Patches
Plain Diff
adding new Processor-specific runner scripts
parent
c7161913
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
configs/docker/run/launchDockerRunner_lb584_Local.sh
+1
-1
1 addition, 1 deletion
configs/docker/run/launchDockerRunner_lb584_Local.sh
scripts/run_Depo_Processor.sh
+17
-0
17 additions, 0 deletions
scripts/run_Depo_Processor.sh
scripts/run_utils.sh
+37
-0
37 additions, 0 deletions
scripts/run_utils.sh
with
55 additions
and
1 deletion
configs/docker/run/launchDockerRunner_lb584_Local.sh
+
1
−
1
View file @
e95ab38d
#!/bin/bash
set
-e
docker run
-
d
t
-v
"/media/scratch/lb584_scratch/projects/ews_aws/ews_3/code:/storage/app/EWS_prod/code"
\
docker run
-
i
t
-v
"/media/scratch/lb584_scratch/projects/ews_aws/ews_3/code:/storage/app/EWS_prod/code"
\
-v
"/media/scratch/lb584_scratch/projects/ews_aws/ews_3/regions:/storage/app/EWS_prod/regions"
\
-v
"/media/scratch/lb584_scratch/projects/ews_aws/ews_3/envs/credentials:/storage/app/EWS_prod/envs/credentials"
\
-w
"/storage/app/EWS_prod/code"
\
...
...
This diff is collapsed.
Click to expand it.
scripts/run_Depo_Processor.sh
0 → 100644
+
17
−
0
View file @
e95ab38d
source
./run_utils.sh
setup_conda_env
# get path of this script (to point to files within the same git repo)
proc_path
=
"
$(
dirname
"
$(
readlink
-f
"
$0
"
)
"
)
"
# run the processor with all arguments
processor
=
${
proc_path
}
/../coordinator/ProcessorDeposition.py
printf
"processor is %s
\n\n
"
"
$processor
"
python
"
${
processor
}
"
"
$@
"
exit_code
=
$?
teardown_conda_env
exit
$exit_code
This diff is collapsed.
Click to expand it.
scripts/run_utils.sh
0 → 100755
+
37
−
0
View file @
e95ab38d
#!/bin/bash
function
setup_conda_env
()
{
# directory containing all environment
envs
=
/storage/app/EWS_prod/envs
# directory containing all custom python packages
bin
=
/storage/app/EWS_prod/code/
# provide custom python packages so they can be imported
flagdir
=
${
bin
}
/flagdir/
epimodel
=
${
bin
}
/epimodel/
advisory
=
${
bin
}
/advisory_builder/
met_processing
=
${
bin
}
/met_extractor_v2/
met_processor
=
${
bin
}
/environmental_suitability/
plotting
=
${
bin
}
/plotting/
post_processing
=
${
bin
}
/post_processing/
source_gen
=
${
bin
}
/source_gen/
export
PYTHONPATH
=
$PYTHONPATH
:
$flagdir
:
$epimodel
:
$advisory
:
$met_processing
:
$met_processor
:
$plotting
:
$source_gen
:
$post_processing
# provide path to email credentials for logging
export
EMAIL_CRED
=
${
envs
}
/credentials/Cred_gmail.json
# activate conda environment of python modules so they can be imported
#TODO: Move conda_env from bin to envs
conda_env
=
${
envs
}
/conda/py3EWS
source
/storage/app/miniconda3/bin/activate
${
conda_env
}
}
function
teardown_conda_env
()
{
# deactivate conda environment
source
/storage/app/miniconda3/bin/deactivate
${
conda_env
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment