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
c0bfaa5b
Commit
c0bfaa5b
authored
2 years ago
by
Thomas Kluyver
Browse files
Options
Downloads
Patches
Plain Diff
Use calparrot 'wrapper' around running notebook
parent
668273e2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!767
Store CalCat requests/responses for reproducibility
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bin/slurm_calibrate.sh
+4
-14
4 additions, 14 deletions
bin/slurm_calibrate.sh
setup.py
+1
-1
1 addition, 1 deletion
setup.py
with
5 additions
and
15 deletions
bin/slurm_calibrate.sh
+
4
−
14
View file @
c0bfaa5b
...
...
@@ -43,23 +43,13 @@ then
sleep
15
fi
# Launch CalParrot to repeat calibration constant queries
if
[
"
$caltype
"
==
"CORRECT"
]
then
port_file
=
$(
mktemp
)
${
python_path
}
-m
calparrot
--port-file
$port_file
calparrot_port
=
$(
cat
$port_file
)
rm
$port_file
export
CAL_CAL_TOOLS_CALCAT
=
"{base-api-url='http://127.0.0.1:
${
calparrot_port
}
/api', use-oauth2=false}"
fi
echo
"Running notebook"
${
python_path
}
-m
princess
${
nb_path
}
--save
# Stop CalParrot
if
[
"
$caltype
"
==
"CORRECT"
]
then
${
python_path
}
-m
calparrot.stop
$calparrot_port
# calparrot stores and repeats calcat queries
${
python_path
}
-m
calparrot
--
${
python_path
}
-m
princess
${
nb_path
}
--save
else
${
python_path
}
-m
princess
${
nb_path
}
--save
fi
# stop the cluster if requested
...
...
This diff is collapsed.
Click to expand it.
setup.py
+
1
−
1
View file @
c0bfaa5b
...
...
@@ -116,7 +116,7 @@ if "readthedocs.org" not in sys.executable:
install_requires
+=
[
"
iCalibrationDB @ git+ssh://git@git.xfel.eu:10022/detectors/cal_db_interactive.git@2.3.0
"
,
# noqa
"
XFELDetectorAnalysis @ git+ssh://git@git.xfel.eu:10022/karaboDevices/pyDetLib.git@2.7.0
"
,
# noqa
"
CalParrot @ git+ssh://git@git.xfel.eu:10022/calibration/calparrot.git@
fdcdd52fdf8bedc0db1de46aaeb389e48275fdcc
"
,
# noqa
"
CalParrot @ git+ssh://git@git.xfel.eu:10022/calibration/calparrot.git@
b0cfc58ff0f231685630b2a12f566faf243b1035
"
,
# noqa
]
setup
(
...
...
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