Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Commit

Permalink
misc edits to prepare for release
Browse files Browse the repository at this point in the history
  • Loading branch information
carlwharris committed Aug 16, 2023
1 parent 7bec6a2 commit b546bef
Show file tree
Hide file tree
Showing 14 changed files with 212 additions and 175 deletions.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ methods. It includes containers for storing photostimulation-specific device par
(either 2D or 3D), and time series data related to photostimulation.
</div>

<br>We release six <a href="https://pynwb.readthedocs.io/en/stable/">PyNWB</a> containers as part of this extension:
<br>We release six <a href="https://pynwb.readthedocs.io/en/stable/">PyNWB</a> containers as part of this extension (we currently only have a Python implementation, rather than both Python and a MATLAB ones):

* The `SpatialLightModulator` and `Laser` containers store metadata about the spatial light modulator and laser used in the photostimulation, respectively. These containers are then stored within the `PhotostimulationMethod` parent container, which stores the remaining photostimulation method-specifici metadata.
* `HolographicPattern` stores the **holographic pattern** used in stimulation.
Expand Down Expand Up @@ -167,6 +167,10 @@ from the home folder. Similar to the specification docs, API documentation is st
`./api_docs/build/index.html` to access the API documentation in a website format.


## Credit

Code by Carl Harris and Paul LaFosse (equal contribution). Collaboration between the NIMH's [Data Science and Sharing Team](https://cmn.nimh.nih.gov/dsst) and [Histed Lab](https://www.nimh.nih.gov/research/research-conducted-at-nimh/research-areas/clinics-and-labs/ncb).


This extension was created using [ndx-template](https://github.com/nwb-extensions/ndx-template).

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions src/pynwb/ndx_photostim/photostim.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class PhotostimulationMethod(NWBContainer):
{'name': 'stimulus_method', 'type': str,
'doc': ("Scanning or scanless method for shaping optogenetic light "
"(ex., diffraction limited points,3D shot, disks, etc.)."),
'default': None},
'default': "point"},
{'name': 'sweep_pattern', 'type': str,
'doc': ("Sweeping pattern, if spatially modulated during stimulation (none, or other)."),
'default': None},
Expand Down Expand Up @@ -205,9 +205,9 @@ def __init__(self, **kwargs):
if args_to_set['dimension'] is None:
args_to_set['dimension'] = mask_dim

if len(np.setdiff1d(np.unique(args_to_set['image_mask_roi']), np.array([0, 1]))) > 0:
if len(np.setdiff1d(np.unique(args_to_set['image_mask_roi']), np.array([0., 1.]))) > 0:
raise ValueError("'image_mask_roi' data must be either 0 (off) or 1 (on).")
# if len(np.setdiff1d(np.unique(args_to_set['image_mask_roi']), np.array([0, 1]))) > 0:
# if len(np.setdiff1d(np.unique(args_to_set['image_mask_roi']), np.array([0., 1.]))) > 0:
# raise ValueError("'image_mask_roi' data must be either 0 (off) or 1 (on).")

for key, val in args_to_set.items():
setattr(self, key, val)
Expand Down
373 changes: 203 additions & 170 deletions tutorial.ipynb

Large diffs are not rendered by default.

0 comments on commit b546bef

Please sign in to comment.