Skip to content

Commit

Permalink
Merge pull request #157 from AllenNeuralDynamics/release-v0.18.1
Browse files Browse the repository at this point in the history
Release v0.18.1
  • Loading branch information
jtyoung84 authored Sep 14, 2024
2 parents 40b5730 + fa8ca7f commit cf5f85b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/aind_metadata_mapper/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Init package"""

__version__ = "0.18.0"
__version__ = "0.18.1"
1 change: 1 addition & 0 deletions src/aind_metadata_mapper/core_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ class BaseJobSettings(BaseSettings):
class Config:
"""Pydantic config to exclude field from displaying"""

extra = "allow"
exclude = {"user_settings_config_file"}

@classmethod
Expand Down
16 changes: 8 additions & 8 deletions src/aind_metadata_mapper/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
)


class SessionSettings(BaseSettings):
class SessionSettings(BaseSettings, extra='allow'):
"""Settings needed to retrieve session metadata"""

job_settings: Annotated[
Expand All @@ -39,29 +39,29 @@ class SessionSettings(BaseSettings):
]


class AcquisitionSettings(BaseSettings):
class AcquisitionSettings(BaseSettings, extra='allow'):
"""Fields needed to retrieve acquisition metadata"""

# TODO: we can change this to a tagged union once more acquisition settings
# are added
job_settings: SmartSpimAcquisitionJobSettings


class SubjectSettings(BaseSettings):
class SubjectSettings(BaseSettings, extra='allow'):
"""Fields needed to retrieve subject metadata"""

subject_id: str
metadata_service_path: str = "subject"


class ProceduresSettings(BaseSettings):
class ProceduresSettings(BaseSettings, extra='allow'):
"""Fields needed to retrieve procedures metadata"""

subject_id: str
metadata_service_path: str = "procedures"


class RawDataDescriptionSettings(BaseSettings):
class RawDataDescriptionSettings(BaseSettings, extra='allow'):
"""Fields needed to retrieve data description metadata"""

name: str
Expand All @@ -71,7 +71,7 @@ class RawDataDescriptionSettings(BaseSettings):
metadata_service_path: str = "funding"


class ProcessingSettings(BaseSettings):
class ProcessingSettings(BaseSettings, extra='allow'):
"""Fields needed to retrieve processing metadata"""

pipeline_process: dict = Field(
Expand All @@ -83,7 +83,7 @@ class ProcessingSettings(BaseSettings):
)


class MetadataSettings(BaseSettings):
class MetadataSettings(BaseSettings, extra='allow'):
"""Fields needed to retrieve main Metadata"""

name: str
Expand All @@ -98,7 +98,7 @@ class MetadataSettings(BaseSettings):
instrument_filepath: Optional[Path] = None


class JobSettings(BaseSettings):
class JobSettings(BaseSettings, extra='allow'):
"""Fields needed to gather all metadata"""

job_settings_name: Literal["GatherMetadata"] = "GatherMetadata"
Expand Down

0 comments on commit cf5f85b

Please sign in to comment.