-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add uncertainty on electron lifetime #83
Conversation
Pull Request Test Coverage Report for Build 4337048346
💛 - Coveralls |
appletree/context.py
Outdated
@@ -40,7 +40,11 @@ def __init__(self, config): | |||
|
|||
self.likelihoods = dict() | |||
|
|||
self.par_config = self.get_parameter_config(config['par_config']) | |||
if not par_config is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
WPS508 Found incorrect not
with compare usage
appletree/context.py
Outdated
@@ -40,7 +40,11 @@ def __init__(self, config): | |||
|
|||
self.likelihoods = dict() | |||
|
|||
self.par_config = self.get_parameter_config(config['par_config']) | |||
if not par_config is None: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
E714 test for object identity should be 'is not'
@@ -340,6 +346,17 @@ def update_parameter_config(self, likelihoods): | |||
self.par_config.pop(p) | |||
return needed_parameters | |||
|
|||
def set_instruct(self, instructs): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
WPS615 Found unpythonic getter or setter
:param instructs: dict, instruction file name or dictionary | ||
""" | ||
if not hasattr(self, 'instruct'): | ||
self.instruct = dict() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
C408 Unnecessary dict call - rewrite as a literal.
@@ -325,7 +325,11 @@ def get_log_likelihood(self, key, batch_size, parameters): | |||
:param batch_size: int of number of simulated events | |||
:param parameters: dict of parameters used in simulation | |||
""" | |||
key, result = self._simulate_yields(key, batch_size, parameters) | |||
if batch_size != 1: | |||
warning = f'You specified the batch_size larger than 1, '\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[pep8] reported by reviewdog 🐶
N400: Found backslash that is used for line breaking
config
toinstruct
BandTwoHalfNorm
extrapolation when out of range