Skip to content

Commit

Permalink
Merge pull request #593 from iguinn/parallel
Browse files Browse the repository at this point in the history
Default parallel to False
  • Loading branch information
iguinn authored Nov 1, 2024
2 parents 68cebf5 + ddb25b7 commit cdca6ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/pygama/flow/data_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ def load_iterator(
)
for file in gb.groups.keys()
]
tb_names += [self.filedb.get_table_name(tier, tb)] * len(gb)
tb_names += [[self.filedb.get_table_name(tier, tb)]] * len(gb)
idx_list += [
list(entry_list.loc[i, f"{level}_idx"])
for i in gb.groups.values()
Expand Down Expand Up @@ -1509,7 +1509,7 @@ def browse(
)
for file in gb.groups.keys()
]
tb_names += [self.filedb.get_table_name(tier, tb)] * len(gb)
tb_names += [[self.filedb.get_table_name(tier, tb)]] * len(gb)
idx_list += [
list(entry_list.loc[i, f"{parent}_idx"]) for i in gb.groups.values()
]
Expand Down
2 changes: 1 addition & 1 deletion src/pygama/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class NumbaPygamaDefaults(MutableMapping):
"""

def __init__(self) -> None:
self.parallel: bool = getenv_bool("PYGAMA_PARALLEL", default=True)
self.parallel: bool = getenv_bool("PYGAMA_PARALLEL", default=False)
self.fastmath: bool = getenv_bool("PYGAMA_FASTMATH", default=True)

def __getitem__(self, item: str) -> Any:
Expand Down
4 changes: 2 additions & 2 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

def test_math_numba_defaults():
assert pgu.numba_math_defaults_kwargs.fastmath
assert pgu.numba_math_defaults_kwargs.parallel
assert not pgu.numba_math_defaults_kwargs.parallel

pgu.numba_math_defaults.fastmath = False
assert ~pgu.numba_math_defaults.fastmath
assert not pgu.numba_math_defaults.fastmath

0 comments on commit cdca6ca

Please sign in to comment.