Skip to content

Commit

Permalink
Merge pull request #5 from emilroz/mac_os_prereqs
Browse files Browse the repository at this point in the history
Mac os prereqs
  • Loading branch information
emilroz authored Jan 11, 2021
2 parents bb7218e + 277428f commit d8d6b14
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
include LICENSE
graft cellprofiler/data
2 changes: 1 addition & 1 deletion cellprofiler/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -737,7 +737,7 @@ def wait(self):
if hasattr(sys, 'frozen'):
if sys.platform == 'darwin':
executable = os.path.join(
os.path.dirname(sys.executable), "CellProfiler")
os.path.dirname(sys.executable), "cp")
args = ([executable] + aw_args)
elif sys.platform.startswith('linux'):
aw_path = os.path.join(os.path.dirname(__file__),
Expand Down
3 changes: 2 additions & 1 deletion cellprofiler/gui/pipelinecontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -2327,6 +2327,7 @@ def do_analyze_images(self):
num_workers = min(
len(self.__workspace.measurements.get_image_numbers()),
cellprofiler.preferences.get_max_workers())
logger.info("Using {} workers".format(num_workers))
self.__analysis = cellprofiler.analysis.Analysis(
self.__pipeline,
measurements_file_path,
Expand All @@ -2339,7 +2340,7 @@ def do_analyze_images(self):

except Exception as instance:
extended_message = "Failure in analysis startup"

logger.error("Failed to run analysis", exc_info=True)
error = cellprofiler.gui.dialog.Error("Error", extended_message)

if error.status is wx.ID_CANCEL:
Expand Down

0 comments on commit d8d6b14

Please sign in to comment.