Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pycromanager/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version_info = (1, 0, 1)
version_info = (1, 0, 2)
__version__ = ".".join(map(str, version_info))
3 changes: 3 additions & 0 deletions pycromanager/acquisition/acq_eng_py/internal/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def get_core():

@staticmethod
def get_instance():
if not hasattr(Engine, 'singleton'):
return None

return Engine.singleton

def finish_acquisition(self, acq):
Expand Down
3 changes: 2 additions & 1 deletion pycromanager/headless.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,6 @@ def start_headless(

def stop_headless(debug=False):
terminate_core_instances(debug=debug)
Engine.get_instance().shutdown()
if Engine.get_instance():
Engine.get_instance().shutdown()