Skip to content

Commit

Permalink
Prevents pydantic to read from env variable unless it has the prefix.…
Browse files Browse the repository at this point in the history
… Brought to you by KISS: PRBonn/kiss-icp@b217173 (#14)
  • Loading branch information
benemer authored Mar 5, 2024
1 parent 01a4fbc commit 56b2cc8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/mapmos/config/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
from pathlib import Path
from typing import Any, Dict, Optional

from pydantic_settings import BaseSettings
from pydantic_settings import BaseSettings, SettingsConfigDict

from mapmos.config.config import (
DataConfig,
Expand All @@ -40,6 +40,7 @@


class MapMOSConfig(BaseSettings):
model_config = SettingsConfigDict(env_prefix="mapmos_")
out_dir: str = "results"
data: DataConfig = DataConfig()
odometry: OdometryConfig = OdometryConfig()
Expand Down

0 comments on commit 56b2cc8

Please sign in to comment.