From 2e2ecf10c0e8f358db26891643f6bad964b906e8 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 17 Apr 2024 16:00:34 -0400 Subject: [PATCH] [DATALAD RUNCMD] Do interactive fixing of leftover ambigous typos === Do not change lines below === { "chain": [], "cmd": "codespell -w -i 3 -C 2", "exit": 0, "extra_inputs": [], "inputs": [], "outputs": [], "pwd": "." } ^^^ Do not change lines above ^^^ --- docs/_notes/pynwb.md | 2 +- docs/_notes/todo.md | 2 +- nwb_linkml/src/nwb_linkml/generators/pydantic.py | 2 +- nwb_linkml/src/nwb_linkml/maps/hdf5.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/_notes/pynwb.md b/docs/_notes/pynwb.md index 4d7ff06..1a7b290 100644 --- a/docs/_notes/pynwb.md +++ b/docs/_notes/pynwb.md @@ -10,7 +10,7 @@ * Unclear how the schema is used if the containers contain the same information * the [register_container_type](https://github.com/hdmf-dev/hdmf/blob/dd39b3878523c4b03f5286fc740752befd192d8b/src/hdmf/build/manager.py#L727-L736) method in hdmf's TypeMap class seems to overwrite the loaded schema??? * `__NS_CATALOG` seems to actually hold references to the schema but it doesn't seem to be used anywhere except within `__TYPE_MAP` ? -* [NWBHDF5IO](https://github.com/NeurodataWithoutBorders/pynwb/blob/dev/src/pynwb/__init__.py#L237-L238) uses `TypeMap` to greate a `BuildManager` +* [NWBHDF5IO](https://github.com/NeurodataWithoutBorders/pynwb/blob/dev/src/pynwb/__init__.py#L237-L238) uses `TypeMap` to create a `BuildManager` * Parent class [HDF5IO](https://github.com/hdmf-dev/hdmf/blob/dd39b3878523c4b03f5286fc740752befd192d8b/src/hdmf/backends/hdf5/h5tools.py#L37) then reimplements a lot of basic functionality from elsewhere * Parent-parent metaclass [HDMFIO](https://github.com/hdmf-dev/hdmf/blob/dev/src/hdmf/backends/io.py) appears to be the final writing class? * `BuildManager.build` then [calls `TypeMap.build`](https://github.com/hdmf-dev/hdmf/blob/dd39b3878523c4b03f5286fc740752befd192d8b/src/hdmf/build/manager.py#L171) ??? diff --git a/docs/_notes/todo.md b/docs/_notes/todo.md index 019de15..0df3764 100644 --- a/docs/_notes/todo.md +++ b/docs/_notes/todo.md @@ -1,6 +1,6 @@ # TODO -Stuff to keep track of that might have been manually overrided that needs to be fixed pre-release +Stuff to keep track of that might have been manually overridden that needs to be fixed pre-release - Coerce all listlike things into lists if they are passed as single elements! - Use [fsspec](https://filesystem-spec.readthedocs.io/en/latest/index.html) to interface with DANDI! \ No newline at end of file diff --git a/nwb_linkml/src/nwb_linkml/generators/pydantic.py b/nwb_linkml/src/nwb_linkml/generators/pydantic.py index 2fd1d8e..e96853a 100644 --- a/nwb_linkml/src/nwb_linkml/generators/pydantic.py +++ b/nwb_linkml/src/nwb_linkml/generators/pydantic.py @@ -460,7 +460,7 @@ class NWBPydanticGenerator(PydanticGenerator): if all([s.required for s in cls.attributes.values()]): # pragma: no cover return self._make_npytyping_range(cls.attributes) # otherwise we need to make permutations - # but not all permutations, because we typically just want to be able to exlude the last possible dimensions + # but not all permutations, because we typically just want to be able to exclude the last possible dimensions # the array classes should always be well-defined where the optional dimensions are at the end, so requireds = {k:v for k,v in cls.attributes.items() if v.required} optionals = [(k,v) for k, v in cls.attributes.items() if not v.required] diff --git a/nwb_linkml/src/nwb_linkml/maps/hdf5.py b/nwb_linkml/src/nwb_linkml/maps/hdf5.py index 1885419..74c054d 100644 --- a/nwb_linkml/src/nwb_linkml/maps/hdf5.py +++ b/nwb_linkml/src/nwb_linkml/maps/hdf5.py @@ -123,7 +123,7 @@ class HDF5Map(Map): priority: int = 0 """ Within a phase, sort mapping operations from low to high priority - (maybe this should be renamed because highest priority last doesnt make a lot of sense) + (maybe this should be renamed because highest priority last doesn't make a lot of sense) """ @classmethod