diff --git a/geomagio/metadata/Metadata.md b/geomagio/metadata/Metadata.md index 12ff699040f55813bdaea8a5498964176aadc0fa..558d7a5dc1aaded4a5a75f099857cb29a1b5b483 100644 --- a/geomagio/metadata/Metadata.md +++ b/geomagio/metadata/Metadata.md @@ -22,8 +22,6 @@ * **reviewed**: after a record is reviewed by an approved user * **deleted**: archive a record that is invalid or incomplete -* **metadata_valid**: Whether record is valid and should be used in processing - * **review_comment**: Comments from reviewer about why record is valid/invalid # Details: diff --git a/geomagio/metadata/Metadata.py b/geomagio/metadata/Metadata.py index 84f52c5e59477604f9a982a92d0c2cb00494b166..7c073317776baef7d8a08280aaeeaaa5989936f3 100644 --- a/geomagio/metadata/Metadata.py +++ b/geomagio/metadata/Metadata.py @@ -70,8 +70,6 @@ class Metadata(BaseModel): priority: int = 1 # whether data is valid (primarily for flags) data_valid: bool = True - # whether metadata is valid (based on review) - metadata_valid: bool = True # metadata json blob metadata: Dict = None # general comment diff --git a/geomagio/metadata/MetadataQuery.py b/geomagio/metadata/MetadataQuery.py index f776f34cb2bd075345980273f66dedb5dbb41c6e..2b873795e05dbc2ce70255e854d34f7886f468e8 100644 --- a/geomagio/metadata/MetadataQuery.py +++ b/geomagio/metadata/MetadataQuery.py @@ -20,7 +20,6 @@ class MetadataQuery(BaseModel): channel: str = None location: str = None data_valid: Optional[bool] = None - metadata_valid: Optional[bool] = None status: Optional[List[str]] = None def datetime_dict(self, **kwargs): diff --git a/geomagio/metadata/main.py b/geomagio/metadata/main.py index c5546573e17d4e8d020a866ab038be14c326e75a..cf1cd9adca76d198c839739beae0d80bae37d836 100644 --- a/geomagio/metadata/main.py +++ b/geomagio/metadata/main.py @@ -80,7 +80,6 @@ def create( id: int = None, input_file: str = None, location: str = None, - metadata_valid: bool = True, network: str = None, starttime: str = None, station: str = None, @@ -102,7 +101,6 @@ def create( id=id, location=location, metadata=input_metadata, - metadata_valid=metadata_valid, network=network, starttime=UTCDateTime(starttime) if starttime else None, station=station, @@ -129,7 +127,6 @@ def get( getone: bool = False, id: Optional[int] = None, location: Optional[str] = None, - metadata_valid: Optional[bool] = None, network: Optional[str] = None, status: Optional[List[str]] = typer.Argument(None), starttime: Optional[str] = None, @@ -145,7 +142,6 @@ def get( endtime=UTCDateTime(endtime) if endtime else None, id=id, location=location, - metadata_valid=metadata_valid, network=network, starttime=UTCDateTime(starttime) if starttime else None, station=station,