AllenCell / AllenCell/napari-allencell-segmenter

Error Saving Workflow

オープン
#165 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
20
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

説明

This text document allows the plugin developers to gather the information they need to understand and prioritize your bug report. Please write your responses in the space below each section (replace [your answer here] with your answer), then click the "Submit new issue" button when you are finished. You can preview the formatting of this document using the Preview tab above.

## Description
*A clear description of the bug*
I cannot save my workflow through the napari-allencell-segmenter in the napari GUI. I am new to napari and do not know Python, so this may be a very basic issue that can be fixed easily. The error doesn't change if I try to save before or after setting the pre-processing, core, and post-processing steps. My workflow is for h2b_interphase.

### Error message
```
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
File C:\napari\envs\napari-0.4.18\lib\site-packages\napari_allencell_segmenter\view\workflow_steps_view.py:241, in WorkflowStepsView._btn_save_workflow_clicked(self=, checked=False)
240 def _btn_save_workflow_clicked(self, checked: bool):
--> 241 file_path, _ = QFileDialog.getSaveFileName(
QFileDialog =
self =
QFileDialog.Option.DontUseNativeDialog = PySide2.QtWidgets.QFileDialog.Option.DontUseNativeDialog
QFileDialog.Option.DontUseCustomDirectoryIcons = PySide2.QtWidgets.QFileDialog.Option.DontUseCustomDirectoryIcons
QFileDialog.Option =
242 self,
243 caption="Save workflow as...",
244 filter="Json file (*.json)",
245 directory="workflow.json",
246 options=QFileDialog.Option.DontUseNativeDialog | QFileDialog.Option.DontUseCustomDirectoryIcons,
247 )
249 if file_path:
250 steps = [w.get_workflow_step_with_inputs() for w in self._get_workflow_step_widgets()]

AttributeError: PySide2.QtWidgets.QFileDialog.getSaveFileName(): unsupported keyword 'directory'
* If you can't find the error message, go to Plugins > Plugin Errors > napari-allencell-segmenter
* Most of the time, the most helpful information is at the very bottom of the error output
```

## Expected Behavior
*What did you expect to happen instead?*
I expected it to save and tell me where it saved. Instead it does not save a .json file and gives an error message.

## Reproduction
*Please list the exact steps we can take to reproduce this bug.*
1. Upload images. Mine had to have a very narrow contrast range to see the nuclei
2. Create new workflow
3. Run intensity rescale
4. Press save workflow. This is where the error popped up.

## Environment
- Operating system (ex. MacOS Big Sur): Windows 10
- Python version (ex. 3.8): I do not have this
- napari version (ex. 0.4.1): napari 0.4.18
- How did you install the napari viewer (as a bundled app or through command line with `pip`)?: bundled app

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。