Skip to content

Code currently doesn't account for controlled vocabulary fields with multiple values #8

Description

@SamuelJennings

There are a number of controlled vocabulary columns that now accept multiple values separated by a semi-colon ";".

At the moment, this codebase does not take this into account. For example, there are many conditional checks in the code that take this form:

if df.loc[id,'C44'] in ["[dry measured]","[unspecified]","[other (specify in comments)]"]:
    p1 = -0.2 

If a user enters multiple values into C44 (e.g. "[dry measured];[other (specify in comments)]") this condition will fail when it should pass.

Unfortunately, there are lots of similar occurrences of this type of check which will be affected, leading to incorrect quality scores.

@Elifbp @MarineHeatFlow @GeoFux

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions