Comments (8)
yeah this just came up with @fdrgsp this week. agree it needs fixing. don't have a strong opinion. do you have a preference?
from napari-micromanager.
can this #43 (get objectives from an objective group configuration ) be an option?
from napari-micromanager.
Maybe we should do 3
with a fallback of 1
where we also check for other common names.
For checking names I would propose starting with this regex:
import re
re.compile("(Nosepiece|Objective|obj)s?", re.IGNORECASE)
from napari-micromanager.
Oh actually it should be 1
with a fallback of 3
so that users can override the devices via a config group
from napari-micromanager.
Yep I'm fine with these. @fdrgsp, you could incorporate the regex checking into #43. (i.e. instead of if cfg == "Objectives":
you'd do:
import re
# top of file
OBJ_PTRN = re.compile("(Nosepiece|Objective|obj)s?", re.IGNORECASE)
def _refresh_objective_options(self):
for cfg in self._mmc.getAvailableConfigGroups():
if OBJ_PTRN.match(cfg):
self.objective_comboBox.clear()
self.objective_comboBox.addItems(self._mmc.getAvailableConfigs(cfg))
return
we could also add a hook in loadSystemConfiguration
that tries to determine what the "Objective" is going to be using 1
with a fallback of 3
so we don't have to search each time
from napari-micromanager.
adding the fallback would then be adding a second for loop (only reachable if we didn't already return) that would look like this:
for device in self._mmc.getLoadedDevicesOfType(pymmcore_plus.DeviceType.StateDevice):
if OBJ_PTRN.match(device):
...
from napari-micromanager.
can this be closed?
from napari-micromanager.
I believe so
from napari-micromanager.
Related Issues (20)
- temp zarr file for MDA can overwhelm space on hard drive HOT 3
- Allow taking config file as command line argument
- ENH: Auto populate the napari terminal with `mmc`
- toolbar and mda window loads too wide
- Performance: Extra thread to do `io` during MDA HOT 1
- Bug: More issues with `event_filter` HOT 11
- bug: mda widget broken on latest pymmcore-widgets HOT 1
- When loading two different cfg one after another MMShuttersWidget gives an error
- AttributeError: 'QDropEvent' object has no attribute 'pos'
- napari-micromanager crashing napari on python 3.11 HOT 9
- AttributeError: 'method-wrapper' object has no attribute '__module__' HOT 2
- Embedding live image to QT window HOT 2
- Error with Nikon Ti HOT 16
- Feature request - Add "Keep shutter open" option for z-stack HOT 3
- Couldn't open MDA, issue with MDA QWidget HOT 8
- question regarding "on-the-fly" processing HOT 3
- MDA not working when using 12 bit images (Photometric Kinetix in Sensitivity mode). HOT 6
- How to connect to ASI Stage on Linux HOT 3
- Hardware autofocus implementation HOT 4
- question: in napari Python console, how can I (programmatically) stream the newly acquired images to the viewer? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from napari-micromanager.