Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KM3BUU
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
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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
simulation
KM3BUU
Commits
3e0242a6
Commit
3e0242a6
authored
4 years ago
by
Johannes Schumann
Browse files
Options
Downloads
Patches
Plain Diff
Fix ROOT error code interpretation
parent
2c5b2c5c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!4
KM3NeT Dataformat data writeout
Pipeline
#16373
passed with warnings
4 years ago
Stage: test
Stage: coverage
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
km3buu/output.py
+1
-1
1 addition, 1 deletion
km3buu/output.py
km3buu/tests/test_output.py
+1
-1
1 addition, 1 deletion
km3buu/tests/test_output.py
with
2 additions
and
2 deletions
km3buu/output.py
+
1
−
1
View file @
3e0242a6
...
@@ -33,7 +33,7 @@ try:
...
@@ -33,7 +33,7 @@ try:
libpath
=
environ
.
get
(
"
KM3NET_LIB
"
)
libpath
=
environ
.
get
(
"
KM3NET_LIB
"
)
if
libpath
is
None
:
if
libpath
is
None
:
libpath
=
Config
().
km3net_lib_path
libpath
=
Config
().
km3net_lib_path
if
ROOT
.
gSystem
.
Load
(
join
(
libpath
,
"
libKM3NeTROOT.so
"
))
!=
0
:
if
ROOT
.
gSystem
.
Load
(
join
(
libpath
,
"
libKM3NeTROOT.so
"
))
<
0
:
raise
ModuleNotFoundError
(
"
KM3NeT dataformat library not found!
"
)
raise
ModuleNotFoundError
(
"
KM3NeT dataformat library not found!
"
)
except
ModuleNotFoundError
:
except
ModuleNotFoundError
:
import
warnings
import
warnings
...
...
This diff is collapsed.
Click to expand it.
km3buu/tests/test_output.py
+
1
−
1
View file @
3e0242a6
...
@@ -31,7 +31,7 @@ try:
...
@@ -31,7 +31,7 @@ try:
if
libpath
is
None
:
if
libpath
is
None
:
libpath
=
Config
().
km3net_lib_path
libpath
=
Config
().
km3net_lib_path
KM3NET_LIB_AVAILABLE
=
(
ROOT
.
gSystem
.
Load
(
join
(
libpath
,
KM3NET_LIB_AVAILABLE
=
(
ROOT
.
gSystem
.
Load
(
join
(
libpath
,
"
libKM3NeTROOT.so
"
))
=
=
0
)
"
libKM3NeTROOT.so
"
))
>
=
0
)
except
ModuleNotFoundError
:
except
ModuleNotFoundError
:
KM3NET_LIB_AVAILABLE
=
False
KM3NET_LIB_AVAILABLE
=
False
...
...
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