-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #193 from AllenNeuralDynamics/ophys-stim-epochs-an…
…d-fov Ophys stim epochs and fov
- Loading branch information
Showing
19 changed files
with
4,691 additions
and
827 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
""" example data description """ | ||
|
||
from datetime import datetime, timezone | ||
|
||
from aind_data_schema.core.data_description import Funding, RawDataDescription | ||
from aind_data_schema_models.modalities import Modality | ||
from aind_data_schema_models.organizations import Organization | ||
from aind_data_schema_models.pid_names import PIDName | ||
from aind_data_schema_models.platforms import Platform | ||
|
||
d = RawDataDescription( | ||
modality=[Modality.POPHYS, Modality.BEHAVIOR_VIDEOS, Modality.BEHAVIOR], | ||
platform=Platform.MULTIPLANE_OPHYS, | ||
subject_id="12345", | ||
creation_time=datetime(2022, 2, 21, 16, 30, 1, tzinfo=timezone.utc), | ||
institution=Organization.AIND, | ||
investigators=[PIDName(name="Jane Smith")], | ||
funding_source=[Funding(funder=Organization.AI)], | ||
) | ||
|
||
serialized = d.model_dump_json() | ||
deserialized = RawDataDescription.model_validate_json(serialized) | ||
deserialized.write_standard_file() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.