Skip to content

Commit 6ebc45b

Browse files
dbirmangithub-actions[bot]jtyoung84saskiad
authored
release v2.3.1 (#1659)
* bump main (#1645) * chore: hotfix v2.0.1 * bump schema version [skip actions] * chore: bump version * bump schema version [skip actions] * fix: adds check if dependency_graph is None (#1576) * fix: adds check if dependency_graph is None * build: version bump to 2.0.3 * chore: set a ceiling on pydantic to avoid errors with model_validators * chore: increment patch version * hotfix: move the subject_details validator out of Acquisition and into Metadata * chore: bump version * tests: fix test that included specimen_id but doesn't need it * chore: upgrade versions * bump schema version [skip actions] * chore: bump minor versions * bump schema version [skip actions] * bump schema version [skip actions] * chore: bump minor versions * bump schema version [skip actions] --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: jtyoung84 <104453205+jtyoung84@users.noreply.github.com> * refactor: allow passing strings to default_grouping, also build docs (#1648) * refactor: allow un-tupled string to make life easier * docs: update * fix: actually allow str | * tests: fix tests, and properly handle input data that looks like new data * docs: improve how allow_tag_failures is explained * chore: lint * fix: overenthusiastic defensiveness * added protocol to calibrations (#1652) * added protocol * docs: build docs for protocl addition --------- Co-authored-by: Dan Birman <danbirman@gmail.com> * fix: repair QualityControl.default_grouping merge for new list[str | tuple[str, ...]] type (#1655) * fix: fix bad functionality in how default_grouping was being merged * chore: lint * tests: simplify and add docstrings * refactor: make headframe_part_number Optional[] (#1654) * optional * docs * fix: populate source_data properly (#1656) * chore: bump versions * bump schema version [skip actions] * bump schema version [skip actions] * chore: fix workflow issues and prevent adsm 5 from importing * bump schema version [skip actions] * updates diagrams [skip actions] --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: jtyoung84 <104453205+jtyoung84@users.noreply.github.com> Co-authored-by: Saskia de Vries <saskiad@users.noreply.github.com>
1 parent d6210e2 commit 6ebc45b

36 files changed

+896
-132
lines changed

.github/workflows/update_docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ jobs:
5151
- uses: actions/checkout@v3
5252
with:
5353
token: ${{ secrets.SERVICE_TOKEN }}
54+
ref: ${{ github.ref }}
55+
- name: Pull latest changes
56+
run: git pull origin ${{ github.ref_name }}
5457
- name: Set up Python 3.10
5558
uses: actions/setup-python@v2
5659
with:

docs/base/core/quality_control.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,15 @@ tags = {
3939
}
4040
```
4141

42-
Use the `QualityControl.default_grouping` list to define how users should organize a visualization by default. In almost all cases *modality should be the top-level grouping*. For example, building on the example above you might group by: `[["modality"], ["probe", "video"], ["shank"]]` to get a tree split by modality first (which naturally splits ephys and behavior-videos tags into two groups), then by which probe or video a metric belongs to, and finally only for probes the individual shanks are split into groups.
42+
Use the `QualityControl.default_grouping` list to define how users should organize a visualization by default. In almost all cases *modality should be the top-level grouping*. For example, building on the example above you might group by: `["modality", ("probe", "video"), "shank"]` to get a tree split by modality first (which naturally splits ephys and behavior-videos tags into two groups), then by which probe or video a metric belongs to, and finally only for probes the individual shanks are split into groups.
4343

4444
### QualityControl.evaluate_status()
4545

4646
You can evaluate the state of a set of metrics filtered by any combination of modalities, stages, and tags on a specific date (by default, today). When evaluating the [Status](#status) of a group of metrics the following rules apply:
4747

48-
First, any metric that is failing and also has a matching tag *value* in the `QualityControl.allow_tag_failures` list is set to pass. This allows you to specify that certain metrics are not critical to a data asset.
48+
First, any metric that has a tag *value* in the `QualityControl.allow_tag_failures` list is ignored. This allows you to specify that certain metrics are not critical to a data asset.
4949

50-
Then, given the status of all the metrics in the group:
50+
Then, given the status of all the remaining metrics in the group:
5151

5252
1. If any metric is still failing, the evaluation fails
5353
2. If any metric is pending and the rest pass the evaluation is pending
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
aind\_data\_schema.components package
2+
=====================================
3+
4+
Submodules
5+
----------
6+
7+
aind\_data\_schema.components.configs module
8+
--------------------------------------------
9+
10+
.. automodule:: aind_data_schema.components.configs
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
aind\_data\_schema.components.connections module
16+
------------------------------------------------
17+
18+
.. automodule:: aind_data_schema.components.connections
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
aind\_data\_schema.components.coordinates module
24+
------------------------------------------------
25+
26+
.. automodule:: aind_data_schema.components.coordinates
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
30+
31+
aind\_data\_schema.components.devices module
32+
--------------------------------------------
33+
34+
.. automodule:: aind_data_schema.components.devices
35+
:members:
36+
:undoc-members:
37+
:show-inheritance:
38+
39+
aind\_data\_schema.components.identifiers module
40+
------------------------------------------------
41+
42+
.. automodule:: aind_data_schema.components.identifiers
43+
:members:
44+
:undoc-members:
45+
:show-inheritance:
46+
47+
aind\_data\_schema.components.injection\_procedures module
48+
----------------------------------------------------------
49+
50+
.. automodule:: aind_data_schema.components.injection_procedures
51+
:members:
52+
:undoc-members:
53+
:show-inheritance:
54+
55+
aind\_data\_schema.components.measurements module
56+
-------------------------------------------------
57+
58+
.. automodule:: aind_data_schema.components.measurements
59+
:members:
60+
:undoc-members:
61+
:show-inheritance:
62+
63+
aind\_data\_schema.components.reagent module
64+
--------------------------------------------
65+
66+
.. automodule:: aind_data_schema.components.reagent
67+
:members:
68+
:undoc-members:
69+
:show-inheritance:
70+
71+
aind\_data\_schema.components.specimen\_procedures module
72+
---------------------------------------------------------
73+
74+
.. automodule:: aind_data_schema.components.specimen_procedures
75+
:members:
76+
:undoc-members:
77+
:show-inheritance:
78+
79+
aind\_data\_schema.components.stimulus module
80+
---------------------------------------------
81+
82+
.. automodule:: aind_data_schema.components.stimulus
83+
:members:
84+
:undoc-members:
85+
:show-inheritance:
86+
87+
aind\_data\_schema.components.subject\_procedures module
88+
--------------------------------------------------------
89+
90+
.. automodule:: aind_data_schema.components.subject_procedures
91+
:members:
92+
:undoc-members:
93+
:show-inheritance:
94+
95+
aind\_data\_schema.components.subjects module
96+
---------------------------------------------
97+
98+
.. automodule:: aind_data_schema.components.subjects
99+
:members:
100+
:undoc-members:
101+
:show-inheritance:
102+
103+
aind\_data\_schema.components.surgery\_procedures module
104+
--------------------------------------------------------
105+
106+
.. automodule:: aind_data_schema.components.surgery_procedures
107+
:members:
108+
:undoc-members:
109+
:show-inheritance:
110+
111+
aind\_data\_schema.components.wrappers module
112+
---------------------------------------------
113+
114+
.. automodule:: aind_data_schema.components.wrappers
115+
:members:
116+
:undoc-members:
117+
:show-inheritance:
118+
119+
Module contents
120+
---------------
121+
122+
.. automodule:: aind_data_schema.components
123+
:members:
124+
:undoc-members:
125+
:show-inheritance:
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
aind\_data\_schema.core package
2+
===============================
3+
4+
Submodules
5+
----------
6+
7+
aind\_data\_schema.core.acquisition module
8+
------------------------------------------
9+
10+
.. automodule:: aind_data_schema.core.acquisition
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
aind\_data\_schema.core.data\_description module
16+
------------------------------------------------
17+
18+
.. automodule:: aind_data_schema.core.data_description
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
aind\_data\_schema.core.instrument module
24+
-----------------------------------------
25+
26+
.. automodule:: aind_data_schema.core.instrument
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
30+
31+
aind\_data\_schema.core.metadata module
32+
---------------------------------------
33+
34+
.. automodule:: aind_data_schema.core.metadata
35+
:members:
36+
:undoc-members:
37+
:show-inheritance:
38+
39+
aind\_data\_schema.core.model module
40+
------------------------------------
41+
42+
.. automodule:: aind_data_schema.core.model
43+
:members:
44+
:undoc-members:
45+
:show-inheritance:
46+
47+
aind\_data\_schema.core.procedures module
48+
-----------------------------------------
49+
50+
.. automodule:: aind_data_schema.core.procedures
51+
:members:
52+
:undoc-members:
53+
:show-inheritance:
54+
55+
aind\_data\_schema.core.processing module
56+
-----------------------------------------
57+
58+
.. automodule:: aind_data_schema.core.processing
59+
:members:
60+
:undoc-members:
61+
:show-inheritance:
62+
63+
aind\_data\_schema.core.quality\_control module
64+
-----------------------------------------------
65+
66+
.. automodule:: aind_data_schema.core.quality_control
67+
:members:
68+
:undoc-members:
69+
:show-inheritance:
70+
71+
aind\_data\_schema.core.subject module
72+
--------------------------------------
73+
74+
.. automodule:: aind_data_schema.core.subject
75+
:members:
76+
:undoc-members:
77+
:show-inheritance:
78+
79+
Module contents
80+
---------------
81+
82+
.. automodule:: aind_data_schema.core
83+
:members:
84+
:undoc-members:
85+
:show-inheritance:

docs/source/aind_data_schema.rst

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
aind\_data\_schema package
2+
==========================
3+
4+
Subpackages
5+
-----------
6+
7+
.. toctree::
8+
:maxdepth: 4
9+
10+
aind_data_schema.components
11+
aind_data_schema.core
12+
aind_data_schema.utils
13+
14+
Submodules
15+
----------
16+
17+
aind\_data\_schema.base module
18+
------------------------------
19+
20+
.. automodule:: aind_data_schema.base
21+
:members:
22+
:undoc-members:
23+
:show-inheritance:
24+
25+
Module contents
26+
---------------
27+
28+
.. automodule:: aind_data_schema
29+
:members:
30+
:undoc-members:
31+
:show-inheritance:
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
aind\_data\_schema.utils package
2+
================================
3+
4+
Submodules
5+
----------
6+
7+
aind\_data\_schema.utils.compatibility\_check module
8+
----------------------------------------------------
9+
10+
.. automodule:: aind_data_schema.utils.compatibility_check
11+
:members:
12+
:undoc-members:
13+
:show-inheritance:
14+
15+
aind\_data\_schema.utils.examples\_generator module
16+
---------------------------------------------------
17+
18+
.. automodule:: aind_data_schema.utils.examples_generator
19+
:members:
20+
:undoc-members:
21+
:show-inheritance:
22+
23+
aind\_data\_schema.utils.exceptions module
24+
------------------------------------------
25+
26+
.. automodule:: aind_data_schema.utils.exceptions
27+
:members:
28+
:undoc-members:
29+
:show-inheritance:
30+
31+
aind\_data\_schema.utils.json\_writer module
32+
--------------------------------------------
33+
34+
.. automodule:: aind_data_schema.utils.json_writer
35+
:members:
36+
:undoc-members:
37+
:show-inheritance:
38+
39+
aind\_data\_schema.utils.merge module
40+
-------------------------------------
41+
42+
.. automodule:: aind_data_schema.utils.merge
43+
:members:
44+
:undoc-members:
45+
:show-inheritance:
46+
47+
aind\_data\_schema.utils.schema\_version\_bump module
48+
-----------------------------------------------------
49+
50+
.. automodule:: aind_data_schema.utils.schema_version_bump
51+
:members:
52+
:undoc-members:
53+
:show-inheritance:
54+
55+
aind\_data\_schema.utils.validators module
56+
------------------------------------------
57+
58+
.. automodule:: aind_data_schema.utils.validators
59+
:members:
60+
:undoc-members:
61+
:show-inheritance:
62+
63+
Module contents
64+
---------------
65+
66+
.. automodule:: aind_data_schema.utils
67+
:members:
68+
:undoc-members:
69+
:show-inheritance:

docs/source/components/measurements.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Generic calibration class
1010
|-------|------|-------------|
1111
| `calibration_date` | `datetime (timezone-aware)` | Date and time of calibration |
1212
| `description` | `str` | Description (Brief description of what is being calibrated) |
13+
| `protocol_id` | `Optional[str]` | Protocol ID (DOI for protocols.io) |
1314
| `measured_at` | `Optional[str]` | Measurement location |
1415
| `input` | `List[float or str]` | Inputs (Calibration input) |
1516
| `input_unit` | [SizeUnit](../aind_data_schema_models/units.md#sizeunit) or [MassUnit](../aind_data_schema_models/units.md#massunit) or [FrequencyUnit](../aind_data_schema_models/units.md#frequencyunit) or [SpeedUnit](../aind_data_schema_models/units.md#speedunit) or [VolumeUnit](../aind_data_schema_models/units.md#volumeunit) or [AngleUnit](../aind_data_schema_models/units.md#angleunit) or [TimeUnit](../aind_data_schema_models/units.md#timeunit) or [PowerUnit](../aind_data_schema_models/units.md#powerunit) or [CurrentUnit](../aind_data_schema_models/units.md#currentunit) or [ConcentrationUnit](../aind_data_schema_models/units.md#concentrationunit) or [TemperatureUnit](../aind_data_schema_models/units.md#temperatureunit) or [SoundIntensityUnit](../aind_data_schema_models/units.md#soundintensityunit) or [VoltageUnit](../aind_data_schema_models/units.md#voltageunit) or [MemoryUnit](../aind_data_schema_models/units.md#memoryunit) or [UnitlessUnit](../aind_data_schema_models/units.md#unitlessunit) or [MagneticFieldUnit](../aind_data_schema_models/units.md#magneticfieldunit) or [PressureUnit](../aind_data_schema_models/units.md#pressureunit) | Input unit |
@@ -68,6 +69,7 @@ Calibration of a device that outputs power based on input strength
6869
| `output_unit` | [PowerUnit](../aind_data_schema_models/units.md#powerunit) | Output unit |
6970
| `description` | `"Power measured for various power or percentage input strengths"` | |
7071
| `calibration_date` | `datetime (timezone-aware)` | Date and time of calibration |
72+
| `protocol_id` | `Optional[str]` | Protocol ID (DOI for protocols.io) |
7173
| `measured_at` | `Optional[str]` | Measurement location |
7274
| `repeats` | `Optional[int]` | Number of repeats (If each input was repeated multiple times, provide the number of repeats) |
7375
| `fit` | Optional[[CalibrationFit](#calibrationfit)] | Fit (Fit equation for the calibration data used during data acquisition) |
@@ -88,6 +90,7 @@ Calibration of a liquid delivery device based on solenoid/valve opening times
8890
| `output_unit` | [VolumeUnit](../aind_data_schema_models/units.md#volumeunit) | Output unit |
8991
| `description` | `"Volume measured for various solenoid opening times"` | |
9092
| `calibration_date` | `datetime (timezone-aware)` | Date and time of calibration |
93+
| `protocol_id` | `Optional[str]` | Protocol ID (DOI for protocols.io) |
9194
| `measured_at` | `Optional[str]` | Measurement location |
9295
| `fit` | Optional[[CalibrationFit](#calibrationfit)] | Fit (Fit equation for the calibration data used during data acquisition) |
9396
| `notes` | `Optional[str]` | Notes |

docs/source/components/subjects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Description of breeding info for subject
88

99
| Field | Type | Title (Description) |
1010
|-------|------|-------------|
11-
| <del>`breeding_group`</del> | `str` | **[DEPRECATED]** Field will be removed in future releases. Breeding Group |
11+
| <del>`breeding_group`</del> | `Optional[str]` | **[DEPRECATED]** Field will be removed in future releases. Breeding Group |
1212
| `maternal_id` | `str` | Maternal specimen ID |
1313
| `maternal_genotype` | `str` | Maternal genotype |
1414
| `paternal_id` | `str` | Paternal specimen ID |

docs/source/components/surgery_procedures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ Description of headframe procedure
112112
|-------|------|-------------|
113113
| `protocol_id` | `Optional[str]` | Protocol ID (DOI for protocols.io) |
114114
| `headframe_type` | `str` | Headframe type |
115-
| `headframe_part_number` | `str` | Headframe part number |
115+
| `headframe_part_number` | `Optional[str]` | Headframe part number |
116116
| `headframe_material` | Optional[[HeadframeMaterial](#headframematerial)] | Headframe material |
117117
| `well_part_number` | `Optional[str]` | Well part number |
118118
| `well_type` | `Optional[str]` | Well type |

docs/source/modules.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
src
2+
===
3+
4+
.. toctree::
5+
:maxdepth: 4
6+
7+
aind_data_schema

0 commit comments

Comments
 (0)