Skip to content

Commit

Permalink
remove library_dataset as field from ingest template
Browse files Browse the repository at this point in the history
  • Loading branch information
fvankrieken committed Nov 20, 2024
1 parent 22d71dd commit d430288
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 34 deletions.
30 changes: 0 additions & 30 deletions dcpy/lifecycle/ingest/templates/dcp_pop_acs2010_housing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,33 +27,3 @@ ingestion:
insert_behavior: error
missing_key_behavior: error
mode: update_column

library_dataset:
name: dcp_pop_acs2010_housing
version: ""
acl: public-read
source:
script:
name: excel
path: https://nyc3.digitaloceanspaces.com/edm-recipes/inbox/dcp_pop_acs2010/{{ version }}/dcp_pop_acs.xlsx
sheet_name: Housing0610
geometry:
SRS: null
type: NONE

destination:
geometry:
SRS: null
type: NONE
fields: []
sql: null

info:
description: |
## 2010 ACS file from Population
This file is produced internally by the Population division. 2010 version is used as a reference dataset
for the latest ACS data, and occasionally is modified so these different subsections are archived as their
own recipe datasets so that they can easily be updated individually
url: null
dependents: []
5 changes: 1 addition & 4 deletions dcpy/models/lifecycle/ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from dcpy.utils.metadata import RunDetails
from dcpy.models.connectors.edm import recipes, publishing
from dcpy.models.connectors import web, socrata
from dcpy.models import library, file
from dcpy.models import file
from dcpy.models.base import SortedSerializedBase


Expand Down Expand Up @@ -88,9 +88,6 @@ class Template(BaseModel, extra="forbid"):
ingestion: Ingestion
columns: list[Column] = []

## this is the original library template, included just for reference while we build out our new templates
library_dataset: library.DatasetDefinition | None = None

@property
def has_geom(self):
match self.ingestion.file_format:
Expand Down

0 comments on commit d430288

Please sign in to comment.