Skip to content

Commit

Permalink
FIX use class process_count
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgWa committed Aug 28, 2023
1 parent 71e0dce commit a8f8ef7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions alpharaw/thermo.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ class ThermoRawData(MSData_Base):
def __init__(self,
centroided : bool = True,
process_count : int = 10,
mp_batch_size : int = 1000,
mp_batch_size : int = 10000,
**kwargs):
"""
Parameters
Expand Down Expand Up @@ -147,7 +147,7 @@ def _import(self,

# use multiprocessing to load batches
_import_batch_partial = partial(_import_batch, raw_file_path, self.centroided)
with Pool(processes = 10) as pool:
with Pool(processes = self.process_count) as pool:
batches = list(tqdm(pool.imap(_import_batch_partial, zip(batches[:-1], batches[1:]))))

# collect peak indices
Expand Down

0 comments on commit a8f8ef7

Please sign in to comment.