Skip to content

Commit a4f8955

Browse files
author
cool-RR
committed
-
1 parent 51a204c commit a4f8955

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

garlicsim/garlicsim/asynchronous_crunching/project.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,9 @@ def begin_crunching(self, node, clock_buffer=None, *args, **kwargs):
220220

221221
job = Job(node, crunching_profile)
222222

223-
return self.crunching_manager.jobs.append(job)
223+
self.crunching_manager.jobs.append(job)
224+
225+
return job
224226

225227

226228
def sync_crunchers(self):

garlicsim_wx/garlicsim_wx/gui_project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ def __init_general(self, simpack, frame, project=None):
119119
The job of the playing leaf, which should be crunched to infinity.
120120
'''
121121

122-
self.default_buffer = 5 # Should be a mechanism for setting !tododoc
122+
self.default_buffer = 100 # Should be a mechanism for setting !tododoc
123123
'''The default clock buffer to crunch from an active node.'''
124124
# tododoc: rename to autocrunch?
125125

@@ -827,7 +827,7 @@ def __check_if_step_profile_changed(self):
827827
def _if_forked_by_crunching_recently_switch_to_new_path(self):
828828
if self._job_and_node_of_recent_fork_by_crunching:
829829
job, old_node = self._job_and_node_of_recent_fork_by_crunching
830-
new_node = job.crunching_profile.node
830+
new_node = job.node
831831

832832
if new_node is not old_node:
833833
new_path = new_node.make_containing_path()

0 commit comments

Comments
 (0)