Skip to content

Commit

Permalink
Fix bullets formatting?
Browse files Browse the repository at this point in the history
  • Loading branch information
psobolewskiPhD committed May 3, 2024
1 parent c79d81d commit 31ec1a5
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions napari-workshops/notebooks/spot_detection_functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -252,16 +252,15 @@ just the layer data using `napari.types.PointsData`. But lets get a nicer Points
we will return a LayerDataTuple.

If `detect_spots()` returns a `LayerDataTuple`, napari will add a *new layer* to
the viewer using the data in the `LayerDataTuple`. For more information on using
the `LayerDataTuple` type, please see
[the documentation](https://napari.org/stable/guides/magicgui.html#returning-napari-types-layerdatatuple).
Briefly:
- The layer data tuple should be: `(layer_data, layer_metadata, layer_type)`
- `layer_data`: the data to be displayed in the new layer (i.e., the points
the viewer using the data in the `LayerDataTuple`. Briefly:
- The layer data tuple should be: `(layer_data, layer_metadata, layer_type)`
- `layer_data`: the data to be displayed in the new layer (i.e., the points
coordinates)
- `layer_metadata`: the display options for the layer stored as a
- `layer_metadata`: the display options for the layer stored as a
dictionary. Some options to consider: `symbol`, `size`, `face_color`
- `layer_type`: the name of the layer type as a string—in this case `'Points'`
- `layer_type`: the name of the layer type as a string—in this case `'Points'`

For more information on using the `LayerDataTuple` type, please see [the documentation](https://napari.org/stable/guides/magicgui.html#returning-napari-types-layerdatatuple).

Also let's change the `image` argument type hint to `ImageLayer` so that we can access more
properties if we'd like or be able to more easily set the value programmatically.
Expand Down

0 comments on commit 31ec1a5

Please sign in to comment.