Skip to content

Commit

Permalink
Are you OK reviewdog?
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Jul 19, 2023
1 parent 7ff95ae commit 9c176a9
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions alea/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ def __init__(
Initialize statistical model,
parameters list, and generate values list
"""

statistical_model_class = locate(statistical_model)
if statistical_model_class is None:
raise ValueError(f'Could not find {statistical_model}!')
Expand Down Expand Up @@ -75,7 +74,6 @@ def __init__(

def _get_parameter_list(self):
"""Get parameter list and result list from statistical model"""

parameter_list = sorted(self.statistical_model.get_parameter_list())
result_list = parameter_list + ['ll', 'dl', 'ul']
result_dtype = [(n, float) for n in parameter_list]
Expand All @@ -89,7 +87,6 @@ def _get_parameter_list(self):

def _get_generate_values(self):
"""Get generate values list from hypotheses"""

generate_values = []
hypotheses = deepcopy(self.hypotheses)

Expand All @@ -116,7 +113,6 @@ def _get_generate_values(self):

def write_output(self, results):
"""Write output file with metadata"""

metadata = deepcopy(self.metadata)

result_names = [f'{i:d}' for i in range(len(self.generate_values))]
Expand All @@ -142,7 +138,6 @@ def write_output(self, results):

def read_toydata(self):
"""Read toydata from file"""

toydata, toydata_names = toydata_from_file(self.toydata_file)
return toydata, toydata_names

Expand All @@ -151,7 +146,6 @@ def toy_simulation(self):
Run toy simulation a specified different toydata mode
and loop over generate values
"""

flag_read_toydata = False
flag_generate_toydata = False
flag_write_toydata = False
Expand Down Expand Up @@ -201,7 +195,6 @@ def toy_simulation(self):

def run(self):
"""Run toy simulation"""

results = self.toy_simulation()

self.write_output(results)

0 comments on commit 9c176a9

Please sign in to comment.