From ce755f80bc19a385533b4212786af90e8d34d6c2 Mon Sep 17 00:00:00 2001 From: marshHawk4 Date: Tue, 23 Jul 2024 16:00:25 -0400 Subject: [PATCH] to be removed soon (#53) * to be removed soon * version --- cdr_schemas/prospectivity_input.py | 16 +++++++++++++++- pyproject.toml | 2 +- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/cdr_schemas/prospectivity_input.py b/cdr_schemas/prospectivity_input.py index 182ba93..a5e7693 100644 --- a/cdr_schemas/prospectivity_input.py +++ b/cdr_schemas/prospectivity_input.py @@ -1,5 +1,5 @@ from enum import Enum -from typing import List, Union +from typing import List, Optional, Union from geojson_pydantic import MultiPolygon from pydantic import BaseModel, Field @@ -135,3 +135,17 @@ class CreateProspectModelMetaData(BaseModel): evidence_layers: List[DefineProcessDataLayer] = Field( description="Datasource and preprocess steps" ) + + +class DataSource(BaseModel): + DOI: Optional[str] + authors: Optional[List[str]] + publication_date: Optional[str] + category: Optional[Union[LayerCategory, str]] + subcategory: Optional[str] + description: Optional[str] + derivative_ops: Optional[str] + type: LayerDataType + resolution: Optional[tuple] + format: DataFormat + download_url: Optional[str] diff --git a/pyproject.toml b/pyproject.toml index 7590153..335b41c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cdr_schemas" -version = "0.3.9" +version = "0.4.0" description = "CDR Schemas" authors = [] readme = "README.md"