Skip to content

Conversation

@msalzm
Copy link
Contributor

@msalzm msalzm commented May 20, 2025

fixed also some addinfo bugs since most of the time converting the values to float was too restrictive when trying to retrieve the data from the existing datasets in envipath

"""
if value not in self.allowed_types:
raise ValueError(f"The value {value} does not belong to the set of allowed values {self.allowed_types}")
# if value not in self.allowed_types:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whats the reason for getting rid of this check?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is too restrictive for the data in soil and sludge. I commented out most stuff that is too restrictive, but would make sense to have at some point.

name = "minormajor"
mandatories = ['radiomin']
allowed_values = ["minor", "major"]
#allowed_values = ["minor", "major", "neither"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"neither" added but commented out?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also here it is supposed to be the commented version but it is too restrictive

"""
if value.lower() not in self.allowed_values:
raise ValueError(f"{value} is not one the allowed_values {self.allowed_values}")
#if value.lower() not in self.allowed_values:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, is it now optional?

"""
parts = data_string.split(';')
dt50 = parts[3]
if parts[0] == 'SFO':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SFO = parts[0] == 'SFO'

"""
name = "samplingdepth"
mandatories = ["samplingDepthMin"]
mandatories = [] # "samplingDepthMin"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nothing mandatory?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also too restricitve since some additional information doesnt contain any minimal value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants