IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue 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
Pranav Sampathkumar
corsika
Commits
89c3b303
Commit
89c3b303
authored
4 years ago
by
Maximilian Reininghaus
Committed by
Maximilian Reininghaus
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
removed unused packages
parent
ac8656d5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/read_hist.py
+2
-4
2 additions, 4 deletions
tools/read_hist.py
with
2 additions
and
4 deletions
tools/read_hist.py
+
2
−
4
View file @
89c3b303
import
numpy
as
np
import
matplotlib.pyplot
as
plt
import
boost_histogram
as
bh
import
operator
import
functools
def
read_hist
(
filename
):
"""
...
...
@@ -14,14 +12,14 @@ def read_hist(filename):
axistypes
=
d
[
'
axistypes
'
].
view
(
'
c
'
)
overflow
=
d
[
'
overflow
'
]
underflow
=
d
[
'
underflow
'
]
axes
=
[]
for
i
,
(
at
,
has_overflow
,
has_underflow
)
in
enumerate
(
zip
(
axistypes
,
overflow
,
underflow
)):
if
at
==
b
'
c
'
:
axes
.
append
(
bh
.
axis
.
Variable
(
d
[
f
'
binedges_
{
i
}
'
],
overflow
=
has_overflow
,
underflow
=
has_underflow
))
elif
at
==
b
'
d
'
:
axes
.
append
(
bh
.
axis
.
IntCategory
(
d
[
f
'
bins_
{
i
}
'
],
growth
=
(
not
has_overflow
)))
h
=
bh
.
Histogram
(
*
axes
)
h
.
view
(
flow
=
True
)[:]
=
d
[
'
data
'
]
...
...
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