Skip to content

Commit

Permalink
0.1.03
Browse files Browse the repository at this point in the history
  • Loading branch information
semiautomaticgit committed Oct 12, 2023
1 parent 151ef66 commit 97de65b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/remotior_sensus/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
from remotior_sensus.core.session import Session
from remotior_sensus.core import configurations

__version__ = '0.1.02'
__version__ = '0.1.03'

configurations.version = __version__
5 changes: 5 additions & 0 deletions src/remotior_sensus/core/multiprocess_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
from remotior_sensus.util import files_directories, raster_vector

try:
multiprocessing.freeze_support()
multiprocessing.set_start_method('spawn')
except Exception as error:
str(error)
Expand All @@ -38,9 +39,11 @@ class Multiprocess(object):

def __init__(self, n_processes: int = None, multiprocess_module=None):
if multiprocess_module is None:
multiprocessing.freeze_support()
self.pool = multiprocessing.Pool(processes=n_processes)
self.manager = multiprocessing.Manager()
else:
multiprocess_module.freeze_support()
self.pool = multiprocess_module.Pool(processes=n_processes)
self.manager = multiprocess_module.Manager()
self.multiprocess_module = multiprocess_module
Expand All @@ -52,9 +55,11 @@ def start(self, n_processes, multiprocess_module=None):
self.stop()
cfg.multiprocess = self
if multiprocess_module is None:
multiprocessing.freeze_support()
self.pool = multiprocessing.Pool(processes=n_processes)
self.manager = multiprocessing.Manager()
else:
multiprocess_module.freeze_support()
self.pool = multiprocess_module.Pool(processes=n_processes)
self.manager = multiprocess_module.Manager()
self.multiprocess_module = multiprocess_module
Expand Down

0 comments on commit 97de65b

Please sign in to comment.