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
a7d5d474
Commit
a7d5d474
authored
2 years ago
by
Thomas Kluyver
Browse files
Options
Downloads
Patches
Plain Diff
Launch and stop CalParrot when running correction notebooks
parent
7cacd6f9
No related branches found
No related tags found
1 merge request
!767
Store CalCat requests/responses for reproducibility
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
bin/slurm_calibrate.sh
+16
-0
16 additions, 0 deletions
bin/slurm_calibrate.sh
with
16 additions
and
0 deletions
bin/slurm_calibrate.sh
+
16
−
0
View file @
a7d5d474
...
@@ -43,10 +43,26 @@ then
...
@@ -43,10 +43,26 @@ then
sleep
15
sleep
15
fi
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
}
"
export
CAL_CAL_TOOLS_CALCAT__use-oauth2
=
false
fi
echo
"Running notebook"
echo
"Running notebook"
${
python_path
}
-m
princess
${
nb_path
}
--save
${
python_path
}
-m
princess
${
nb_path
}
--save
# Stop CalParrot
if
[
"
$caltype
"
==
"CORRECT"
]
then
${
python_path
}
-m
calparrot.stop
$calparrot_port
fi
# stop the cluster if requested
# stop the cluster if requested
if
[
"
${
ipcluster_profile
}
"
!=
"NO_CLUSTER"
]
if
[
"
${
ipcluster_profile
}
"
!=
"NO_CLUSTER"
]
then
then
...
...
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