Skip to content

Commit

Permalink
fixing #24
Browse files Browse the repository at this point in the history
  • Loading branch information
htjb committed Jan 16, 2024
1 parent fd89b48 commit 6a48691
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions globalemu/preprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,9 @@ class process():
data set or not. Set to True by default as this is advised for
training both neutral fraction and global signal emulators.
logs: **list / default: [0, 1, 2]**
logs: **list / default: []**
| The indices corresponding to the astrophysical parameters in
"train_data.txt" that need to be logged. The default assumes
that the first three columns in "train_data.txt" are
:math:`{f_*}` (star formation efficiency),
:math:`{V_c}` (minimum virial circular velocity) and
:math:`{f_x}` (X-ray efficieny).
"train_data.txt" that need to be logged.
"""

def __init__(self, num, z, **kwargs):
Expand Down Expand Up @@ -137,7 +133,7 @@ def __init__(self, num, z, **kwargs):
if type(bool_kwargs[i]) is not bool:
raise TypeError(bool_strings[i] + " must be a bool.")

self.logs = kwargs.pop('logs', [0, 1, 2])
self.logs = kwargs.pop('logs', [])
if type(self.logs) is not list:
raise TypeError("'logs' must be a list.")

Expand Down

0 comments on commit 6a48691

Please sign in to comment.