Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidDierickx committed Sep 21, 2023
1 parent 254a622 commit 586533d
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 341 deletions.
7 changes: 3 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,10 @@ project_urls =
[options]
packages = find:
install_requires =
numpy
magicgui
qtpy
fibsem>=0.2.4a0
autolamella>=0.2.4a1

python_requires = >=3.8
python_requires = >=3.9
include_package_data = True
package_dir =
=src
Expand Down
13 changes: 3 additions & 10 deletions src/napari_openfibsem/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,9 @@
except ImportError:
__version__ = "unknown"

from ._reader import napari_get_reader
from ._sample_data import make_sample_data
from ._widget import ExampleQWidget, example_magic_widget
from ._writer import write_multiple, write_single_image
from .app import autolamella_ui, autoliftout_ui

__all__ = (
"napari_get_reader",
"write_single_image",
"write_multiple",
"make_sample_data",
"ExampleQWidget",
"example_magic_widget",
"autolamella_ui",
"autoliftout_ui",
)
72 changes: 0 additions & 72 deletions src/napari_openfibsem/_reader.py

This file was deleted.

21 changes: 0 additions & 21 deletions src/napari_openfibsem/_sample_data.py

This file was deleted.

Empty file.
31 changes: 0 additions & 31 deletions src/napari_openfibsem/_tests/test_reader.py

This file was deleted.

7 changes: 0 additions & 7 deletions src/napari_openfibsem/_tests/test_sample_data.py

This file was deleted.

36 changes: 0 additions & 36 deletions src/napari_openfibsem/_tests/test_widget.py

This file was deleted.

7 changes: 0 additions & 7 deletions src/napari_openfibsem/_tests/test_writer.py

This file was deleted.

46 changes: 0 additions & 46 deletions src/napari_openfibsem/_widget.py

This file was deleted.

64 changes: 0 additions & 64 deletions src/napari_openfibsem/_writer.py

This file was deleted.

7 changes: 7 additions & 0 deletions src/napari_openfibsem/app.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@


from autolamella.ui.AutoLamellaUI import AutoLamellaUI
from autolamella.liftout.ui.AutoLiftoutUIv2 import AutoLiftoutUIv2
autolamella_ui = AutoLamellaUI
autoliftout_ui = AutoLiftoutUIv2

53 changes: 10 additions & 43 deletions src/napari_openfibsem/napari.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,14 @@ name: napari-openfibsem
display_name: OpenFIBSEM Napari
contributions:
commands:
- id: napari-openfibsem.get_reader
python_name: napari_openfibsem._reader:napari_get_reader
title: Open data with OpenFIBSEM Napari
- id: napari-openfibsem.write_multiple
python_name: napari_openfibsem._writer:write_multiple
title: Save multi-layer data with OpenFIBSEM Napari
- id: napari-openfibsem.write_single_image
python_name: napari_openfibsem._writer:write_single_image
title: Save image data with OpenFIBSEM Napari
- id: napari-openfibsem.make_sample_data
python_name: napari_openfibsem._sample_data:make_sample_data
title: Load sample data from OpenFIBSEM Napari
- id: napari-openfibsem.make_qwidget
python_name: napari_openfibsem._widget:ExampleQWidget
title: Make example QWidget
- id: napari-openfibsem.make_magic_widget
python_name: napari_openfibsem._widget:example_magic_widget
title: Make example magic widget
- id: napari-openfibsem.make_func_widget
python_name: napari_openfibsem._widget:example_function_widget
title: Make example function widget
readers:
- command: napari-openfibsem.get_reader
accepts_directories: false
filename_patterns: ['*.npy']
writers:
- command: napari-openfibsem.write_multiple
layer_types: ['image*','labels*']
filename_extensions: []
- command: napari-openfibsem.write_single_image
layer_types: ['image']
filename_extensions: ['.npy']
sample_data:
- command: napari-openfibsem.make_sample_data
display_name: OpenFIBSEM Napari
key: unique_id.1
- id: napari-openfibsem.autolamella
python_name: napari_openfibsem.app:autolamella_ui
title: AutoLamella UI
- id: napari-openfibsem.autoliftout
python_name: napari_openfibsem.app:autoliftout_ui
title: AutoLiftout UI
widgets:
- command: napari-openfibsem.make_qwidget
display_name: Example QWidget
- command: napari-openfibsem.make_magic_widget
display_name: Example Magic Widget
- command: napari-openfibsem.make_func_widget
autogenerate: true
display_name: Example Function Widget
- command: napari-openfibsem.autolamella
display_name: AutoLamella UI
- command: napari-openfibsem.autoliftout
display_name: AutoLiftout UI

0 comments on commit 586533d

Please sign in to comment.