Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
PeakOTron
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
UHHDetLab
SiPM
PeakOTron
Commits
9fac118d
Commit
9fac118d
authored
2 years ago
by
Jack Christopher Hutchinson Rolph
Browse files
Options
Downloads
Patches
Plain Diff
Update PeakOTron.py
parent
83677455
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
PeakOTron.py
+21
-21
21 additions, 21 deletions
PeakOTron.py
with
21 additions
and
21 deletions
PeakOTron.py
+
21
−
21
View file @
9fac118d
...
...
@@ -1736,46 +1736,46 @@ class PeakOTron:
if
(
np
.
isnan
(
Q_0
)):
if
(
self
.
_verbose
):
print
(
"
Q_0 returned nan in prefit. Setting Q_0 to 1 bin
"
)
:
Q_0
=
1
dQ_0
=
0.1
print
(
"
Q_0 returned nan in prefit. Setting Q_0 to 1 bin
"
)
Q_0
=
1
dQ_0
=
0.1
if
(
np
.
isnan
(
G
)):
if
(
self
.
_verbose
):
print
(
"
G returned nan in prefit. Setting G to 1 bin
"
)
:
G
=
1
dG
=
0.1
print
(
"
G returned nan in prefit. Setting G to 1 bin
"
)
G
=
1
dG
=
0.1
if
(
np
.
isnan
(
mu
)):
if
(
self
.
_verbose
):
print
(
"
mu returned nan in prefit. Setting mu to 1 p.e.
"
)
:
mu
=
1
dmu
=
0.1
print
(
"
mu returned nan in prefit. Setting mu to 1 p.e.
"
)
mu
=
1
dmu
=
0.1
if
(
np
.
isnan
(
lbda
)):
if
(
self
.
_verbose
):
print
(
"
lbda returned nan in prefit. Setting lbda to 1e-2.
"
)
:
lbda
=
1e-2
dlbda
=
0.1
print
(
"
lbda returned nan in prefit. Setting lbda to 1e-2.
"
)
lbda
=
1e-2
dlbda
=
0.1
if
(
np
.
isnan
(
sigma_0
)):
if
(
self
.
_verbose
):
print
(
"
sigma_0 returned nan in prefit. Setting sigma_0 to 1 bin.
"
)
:
sigma_0
=
1
dsigma_0
=
0.1
print
(
"
sigma_0 returned nan in prefit. Setting sigma_0 to 1 bin.
"
)
sigma_0
=
1
dsigma_0
=
0.1
if
(
np
.
isnan
(
sigma_1
)):
if
(
self
.
_verbose
):
print
(
"
sigma_
0
returned nan in prefit. Setting sigma_1 to 1 bin.
"
)
:
sigma_1
=
1
dsigma_1
=
0.1
print
(
"
sigma_
1
returned nan in prefit. Setting sigma_1 to 1 bin.
"
)
sigma_1
=
1
dsigma_1
=
0.1
if
(
np
.
isnan
(
DCR
)):
if
(
self
.
_verbose
):
print
(
"
DCR returned nan in prefit. Setting DCR to 1e-9 GHz.
"
)
:
DCR
=
1e-9
dDCR
=
1e-2
print
(
"
DCR returned nan in prefit. Setting DCR to 1e-9 GHz.
"
)
DCR
=
1e-9
dDCR
=
1e-2
########################################################################################################
## Store results in the class for fitting/reference.
...
...
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