Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pycalibration
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
calibration
pycalibration
Commits
86f5be45
Verified
Commit
86f5be45
authored
3 years ago
by
Robert Rosca
Browse files
Options
Downloads
Patches
Plain Diff
Oops, re-implement multiple pythonpath
slurm_calibrate.sh options
parent
b0180b71
Branches
feat/user-notebooks
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!466
Feat/user notebooks
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/slurm_calibrate.sh
+3
-2
3 additions, 2 deletions
bin/slurm_calibrate.sh
src/xfel_calibrate/calibrate.py
+3
-2
3 additions, 2 deletions
src/xfel_calibrate/calibrate.py
with
6 additions
and
4 deletions
bin/slurm_calibrate.sh
+
3
−
2
View file @
86f5be45
...
...
@@ -10,6 +10,7 @@ caltype=$6
final
=
$7
finalize
=
$8
cluster_cores
=
$9
notebook_python_path
=
$10
echo
"Running with the following parameters:"
echo
"Notebook path:
$nb_path
"
...
...
@@ -43,8 +44,8 @@ fi
echo
"Running notebook"
${
python_path
}
-m
princess
${
nb_path
}
--save
--on-error-resume-next
${
python_path
}
-m
nbconvert
--to
rst
--TemplateExporter
.exclude_input
=
True
${
nb_path
}
${
notebook_
python_path
}
-m
princess
${
nb_path
}
--save
--on-error-resume-next
${
notebook_
python_path
}
-m
nbconvert
--to
rst
--TemplateExporter
.exclude_input
=
True
${
nb_path
}
# stop the cluster if requested
if
[
"
${
ipcluster_profile
}
"
!=
"NO_CLUSTER"
]
...
...
This diff is collapsed.
Click to expand it.
src/xfel_calibrate/calibrate.py
+
3
−
2
View file @
86f5be45
...
...
@@ -757,14 +757,15 @@ def concurrent_run(
srun_base
+=
[
os
.
path
.
join
(
PKG_DIR
,
"
bin
"
,
"
slurm_calibrate.sh
"
),
# path to helper sh
os
.
path
.
abspath
(
nbpath
),
# path to notebook
user_venv
+
"
/bin/python
"
if
user_venv
else
python_path
,
# path to python
python_path
,
# path to python
cluster_profile
,
'"
{}
"'
.
format
(
base_name
.
upper
()),
'"
{}
"'
.
format
(
args
[
"
detector
"
].
upper
()),
'"
{}
"'
.
format
(
args
[
"
type
"
].
upper
()),
"
FINAL
"
if
final_job
else
"
NONFINAL
"
,
"
{}/finalize.py
"
.
format
(
os
.
path
.
abspath
(
temp_path
)),
str
(
cluster_cores
)
str
(
cluster_cores
),
user_venv
+
"
/bin/python
"
if
user_venv
else
python_path
# used for nb execution
]
output
=
check_output
(
srun_base
).
decode
(
'
utf8
'
)
...
...
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