Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KM3io.jl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
common
KM3io.jl
Merge requests
!45
Something went wrong on our end
Improve detector api
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Improve detector api
improve-detector-api
into
main
Overview
0
Commits
4
Pipelines
0
Changes
1
Merged
Tamas Gal
requested to merge
improve-detector-api
into
main
4 months ago
Overview
0
Commits
4
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
d6cc1bc7
Prev
Next
Show latest version
1 file
+
7
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Verified
d6cc1bc7
Add tests for haslocation/hasstring
· d6cc1bc7
Tamas Gal
authored
4 months ago
test/hardware.jl
+
7
−
0
Options
@@ -113,6 +113,13 @@ end
@test
0
<
length
(
det
)
end
end
@testset
"DETX tools"
begin
det
=
Detector
(
datapath
(
"detx"
,
"orca_115strings_av20min17mhorizontal_18OMs_alt9mvertical_v2.detx"
))
@test
haslocation
(
det
,
Location
(
1
,
1
))
@test
!
haslocation
(
det
,
Location
(
1
,
100
))
@test
hasstring
(
det
,
1
)
@test
!
hasstring
(
det
,
200
)
end
@testset
"DETX floor == -1 bug"
begin
det
=
Detector
(
datapath
(
"detx"
,
"orca_115strings_av20min17mhorizontal_18OMs_alt9mvertical_v2.detx"
))
@test
Location
(
1
,
1
)
==
det
[
1
]
.
location
Loading