Skip to content

Commit

Permalink
Fix str to int conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
kostrykin authored Feb 20, 2024
1 parent 3bf095a commit 39332a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superdsm/batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ def _fmt_path(self, path):
def _initialize(self):
for key, val in self.environ.items():
os.environ[key] = str(val)
ray.init(num_cpus=os.environ.get('SUPERDSM_NUM_CPUS', 2), log_to_driver=False, logging_level='error')
ray.init(num_cpus=int(os.environ.get('SUPERDSM_NUM_CPUS', 2)), log_to_driver=False, logging_level='error')
_pipeline = create_default_pipeline()
return _pipeline

Expand Down

0 comments on commit 39332a9

Please sign in to comment.