Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
eic_container
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository 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
containers
eic_container
Commits
c05f2eb4
Commit
c05f2eb4
authored
2 years ago
by
Wouter Deconinck
Browse files
Options
Downloads
Patches
Plain Diff
fix: cache calibrations in DETECTOR_PATH
parent
e31e0bdd
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!322
fix: cache calibrations in DETECTOR_PATH
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
containers/jug/setup_detectors.py
+2
-2
2 additions, 2 deletions
containers/jug/setup_detectors.py
with
2 additions
and
2 deletions
containers/jug/setup_detectors.py
+
2
−
2
View file @
c05f2eb4
...
@@ -152,12 +152,12 @@ if __name__ == '__main__':
...
@@ -152,12 +152,12 @@ if __name__ == '__main__':
file
=
f
)
file
=
f
)
## run once inside global prefix to initialize artifacts in /opt/detectors
## run once inside global prefix to initialize artifacts in /opt/detectors
os
.
environ
[
'
DETECTOR_PATH
'
]
=
args
.
prefix
os
.
environ
[
'
DETECTOR_PATH
'
]
=
args
.
prefix
cmd
=
f
'
bash -c
\'
cd
{
args
.
prefix
}
&& source
{
prefix
}
/setup.sh &&
npdet_info print world_z
{
prefix
}
/share/
{
det
}
/
{
det
}
.xml
\'
'
cmd
=
f
'
bash -c
\'
cd
{
args
.
prefix
}
&& source
{
prefix
}
/setup.sh &&
checkGeometry -c
{
prefix
}
/share/
{
det
}
/
{
det
}
.xml
\'
'
print
(
cmd
)
print
(
cmd
)
os
.
system
(
cmd
)
os
.
system
(
cmd
)
## run once inside specific prefix to initialize artifacts in $DETECTOR_PATH
## run once inside specific prefix to initialize artifacts in $DETECTOR_PATH
os
.
environ
[
'
DETECTOR_PATH
'
]
=
args
.
prefix
os
.
environ
[
'
DETECTOR_PATH
'
]
=
args
.
prefix
cmd
=
f
'
bash -c
\'
cd
{
prefix
}
&& source
{
prefix
}
/setup.sh &&
npdet_info print world_z
{
prefix
}
/share/
{
det
}
/
{
det
}
.xml
\'
'
cmd
=
f
'
bash -c
\'
cd
{
prefix
}
/share/
{
det
}
&& source
{
prefix
}
/setup.sh &&
checkGeometry -c
{
prefix
}
/share/
{
det
}
/
{
det
}
.xml
\'
'
print
(
cmd
)
print
(
cmd
)
os
.
system
(
cmd
)
os
.
system
(
cmd
)
...
...
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