Skip to content

Commit 5e14e7c

Browse files
Merge pull request #462 from catalystneuro/add_one_photon_series
Refactor `add_two_photon_series` to `add_photon_series` and add support for `OnePhotonSeries`
2 parents 5de8b70 + 9ef96cf commit 5e14e7c

File tree

6 files changed

+270
-100
lines changed

6 files changed

+270
-100
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@
4848
* Added basic temporal alignment methods to the AudioInterface. `align_starting_time` is split into `align_starting_times` (list of times, one per audio file) and `align_global_starting_time` (shift all by a scalar amount). `align_by_interpolation` and other timestamp-based approaches is not yet implemented for this interface. [PR #402](https://github.com/catalystneuro/neuroconv/pull/402)
4949
* Changed the order of recording properties extraction in `NeuroscopeRecordingInterface` and `NeuroScopeLFPInterface` to make them consistent with each other [PR #466](https://github.com/catalystneuro/neuroconv/pull/466)
5050
* The `ScanImageImagingInterface` has been updated to read metadata from more recent versions of ScanImage [PR #457](https://github.com/catalystneuro/neuroconv/pull/457)
51+
* Refactored `add_two_photon_series()` to `add_photon_series()` and added `photon_series_type` optional argument which can be either `"OnePhotonSeries"` or `"TwoPhotonSeries"`.
52+
Changed `get_default_ophys_metadata()` to add `Device` and `ImagingPlane` metadata which are both used by imaging and segmentation.
53+
Added `photon_series_type` to `get_nwb_imaging_metadata()` to fill metadata for `OnePhotonSeries` or `TwoPhotonSeries`. [PR #462](https://github.com/catalystneuro/neuroconv/pull/462)
5154

5255
### Testing
5356
* The tests for `automatic_dandi_upload` now follow up-to-date DANDI validation rules for file name conventions. [PR #310](https://github.com/catalystneuro/neuroconv/pull/310)

requirements-minimal.txt

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
1-
numpy>=1.22.0,<1.24;python_version<'3.11'
2-
numpy>=1.22.0;python_version>='3.11'
1+
numpy>=1.22.0
32
jsonschema>=3.2.0
43
PyYAML>=5.4
54
scipy>=1.4.1
65
h5py>=2.10.0
76
hdmf>=3.4.7
8-
pynwb>=1.4.0;python_version>='3.8'
9-
pynwb>=1.4.0,<2.3.2;python_version>='3.11'
7+
pynwb==2.3.2;python_version>='3.8'
108
psutil>=5.8.0
119
tqdm>=4.60.0
1210
dandi>=0.46.2

src/neuroconv/schemas/metadata_schema.json

+13
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,19 @@
248248
"imaging_plane": {"type": "string"}
249249
}
250250
}
251+
},
252+
"OnePhotonSeries": {
253+
"type": "array",
254+
"items": {
255+
"title": "OnePhotonSeries",
256+
"type": "object",
257+
"required": ["name", "description"],
258+
"properties": {
259+
"name": {"type": "string", "default": "OnePhotonSeries"},
260+
"description": {"type": "string"},
261+
"imaging_plane": {"type": "string"}
262+
}
263+
}
251264
}
252265
}
253266
}

src/neuroconv/tools/roiextractors/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
add_fluorescence_traces,
44
add_image_segmentation,
55
add_imaging_plane,
6+
add_photon_series,
67
add_plane_segmentation,
78
add_summary_images,
8-
add_two_photon_series,
99
check_if_imaging_fits_into_memory,
1010
get_nwb_imaging_metadata,
1111
get_nwb_segmentation_metadata,

0 commit comments

Comments
 (0)