Skip to content

Commit 8376a6a

Browse files
mavaylon1sujaypatil96pre-commit-ci[bot]oruebel
authored
DynamicEnums and Schemasheets integration (#923)
* first * schemamaker * schemasheets support integration * schemasheets files for term set test * unit test for schemasheets integration * test * add oaklib to termset * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * dynamic * dynamic * example for dyanmic term set unit test * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * leverage oaklib to expand enums dyanmically * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * unit test for enum expansion method * dynamic * join error * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * test * correct prefix for cell ontology * test skips/pyproject * ruff * pyproject * fix test for enum expander * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * pyproject * Update pyproject.toml * Update requirements-opt.txt * ruff * Update pyproject.toml * Update requirements-opt.txt * Update requirements-min.txt * Update requirements-doc.txt * gallery * yaml * Update pyproject.toml * value error * quote * Update requirements-min.txt * Update requirements-opt.txt * Update requirements-doc.txt * except * gallery * gallery * gallery * ruff * tests * tests * windows path resolution in termset * fix linting errors in test_term_set * normalize paths for cross OS tests fix * normalize paths in missed test_enum_expander() * notebook * notebook * name convention * name convention * Update CHANGELOG.md * Update plot_term_set.py * Update plot_term_set.py * Update CHANGELOG.md * test reqs * test reqs * pyproject * gallery * gallery * gallery * gallery * gallery * gallery * gallery * revert * dynamic document clarify * Update docs/gallery/plot_term_set.py Co-authored-by: Oliver Ruebel <[email protected]> * Update src/hdmf/term_set.py Co-authored-by: Oliver Ruebel <[email protected]> * Update src/hdmf/term_set.py Co-authored-by: Oliver Ruebel <[email protected]> * Update src/hdmf/term_set.py Co-authored-by: Oliver Ruebel <[email protected]> * fixes from review * Update src/hdmf/term_set.py --------- Co-authored-by: Sujay Patil <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Oliver Ruebel <[email protected]>
1 parent be52652 commit 8376a6a

25 files changed

+4597
-27
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# HDMF Changelog
22

3+
34
## HDMF 3.9.0 (Upcoming)
45

56
### New features and minor improvements
67
- Increase raw data chunk cache size for reading HDF5 files from 1 MiB to 32 MiB. @bendichter, @rly [#925](https://github.com/hdmf-dev/hdmf/pull/925)
78
- Increase default chunk size for `GenericDataChunkIterator` from 1 MB to 10 MB. @bendichter, @rly [#925](https://github.com/hdmf-dev/hdmf/pull/925)
89
- Added the magic `__reduce__` method as well as two private semi-abstract helper methods to enable pickling of the `GenericDataChunkIterator`. @codycbakerphd [#924](https://github.com/hdmf-dev/hdmf/pull/924)
10+
- Added Dynamic Enumerations and Schemasheets support to `TermSet`. @mavaylon1 [#923](https://github.com/hdmf-dev/hdmf/pull/923)
911

1012
## HDMF 3.8.1 (July 25, 2023)
1113

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
id: https://w3id.org/linkml/examples/nwb_dynamic_enums
2+
title: dynamic enums example
3+
name: nwb_dynamic_enums
4+
description: this schema demonstrates the use of dynamic enums
5+
6+
prefixes:
7+
linkml: https://w3id.org/linkml/
8+
CL: http://purl.obolibrary.org/obo/CL_
9+
10+
imports:
11+
- linkml:types
12+
13+
default_range: string
14+
15+
# ======================== #
16+
# CLASSES #
17+
# ======================== #
18+
classes:
19+
BrainSample:
20+
slots:
21+
- cell_type
22+
23+
# ======================== #
24+
# SLOTS #
25+
# ======================== #
26+
slots:
27+
cell_type:
28+
required: true
29+
range: NeuronTypeEnum
30+
31+
# ======================== #
32+
# ENUMS #
33+
# ======================== #
34+
enums:
35+
NeuronTypeEnum:
36+
reachable_from:
37+
source_ontology: obo:cl
38+
source_nodes:
39+
- CL:0000540 ## neuron
40+
include_self: false
41+
relationship_types:
42+
- rdfs:subClassOf

0 commit comments

Comments
 (0)