Skip to content

Commit

Permalink
Merge pull request #6 from autonomio/#distributescan_features
Browse files Browse the repository at this point in the history
#get jako work like talos.DistributeScan
  • Loading branch information
mikkokotila authored Apr 12, 2022
2 parents 3c06463 + c997e62 commit 1a51961
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion jako/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .distribute.DistributedScan import DistributedScan

from .distribute.RemoteScan import RemoteScan
del distribute
2 changes: 1 addition & 1 deletion jako/distribute/RemoteScan.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from talos.scan.Scan import Scan
from talos import Scan


class RemoteScan(Scan):
Expand Down
2 changes: 1 addition & 1 deletion jako/distribute/distribute_params.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from talos.scan.Scan import Scan
from talos import Scan
from .distribute_utils import read_config, write_config


Expand Down
4 changes: 2 additions & 2 deletions jako/distribute/distribute_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,13 +78,13 @@ def distribute_run(self):

if run_central_node:

args = args=(self, n_splits, run_central_node)
args = (self, n_splits, run_central_node)
thread = threading.Thread(target=run_central_machine, args=args)
thread.start()
threads.append(thread)

args = ([self, update_db_n_seconds, current_machine_id,self.stage])
threads = threading.Thread(target=update_db, args=args)
thread = threading.Thread(target=update_db, args=args)
thread.start()
threads.append(thread)

Expand Down
2 changes: 1 addition & 1 deletion jako/distribute/distribute_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

def create_temp_file(self):
filestr = '''
from talos import RemoteScan
from jako import RemoteScan
import numpy as np
import json
import pickle
Expand Down
2 changes: 1 addition & 1 deletion jako/distribute/script_string.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
def script_script():

out = '''
from talos import RemoteScan
from jako import RemoteScan
import numpy as np
import json
import pickle
Expand Down

0 comments on commit 1a51961

Please sign in to comment.