Skip to content

Commit

Permalink
Merge branch 'main' of github.com:equinor/semeio into main
Browse files Browse the repository at this point in the history
Updated my own main with remote
  • Loading branch information
oddvarlia committed Oct 11, 2023
2 parents 2aca3a7 + f06cd6e commit 43823d6
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions semeio/workflows/localisation/localisation_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
from pydantic import BaseModel as PydanticBaseModel
from pydantic import Extra, confloat, conint, conlist, root_validator, validator

from semeio.workflows.localisation.localisation_debug_settings import LogLevel


def expand_wildcards(patterns, list_of_words):
all_matches = []
Expand Down Expand Up @@ -370,13 +368,6 @@ class LocalisationConfig(BaseModel):
log_level: Optional[conint(ge=0, le=5)] = 1
write_scaling_factors: Optional[bool] = False

@validator("log_level")
def validate_log_level(cls, level):
# pylint: disable=no-self-use
if not isinstance(level, int):
level = LogLevel.OFF
return level

@root_validator(pre=True)
def inject_context(cls, values: Dict) -> Dict:
# pylint: disable=no-self-use
Expand Down

0 comments on commit 43823d6

Please sign in to comment.