Skip to content

Commit

Permalink
update 2021 schema, remove debug prints
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Troy committed Jun 11, 2024
1 parent c1652a9 commit d4e059c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 41 deletions.
1 change: 0 additions & 1 deletion liiatools/school_census_pipeline/pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def process_file(
pipeline_config: PipelineConfig,
la_code: str,
) -> ProcessResult:
print(f"{file_locator=}")
errors = ErrorContainer()
year = pl.discover_year(file_locator)
if year is None:
Expand Down
1 change: 0 additions & 1 deletion liiatools/school_census_pipeline/spec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ def load_pipeline_config():

@lru_cache
def load_schema(year: int, term: Term) -> DataSchema:
print(f"{year=}, {term=}")
pattern = re.compile(r"school_census_schema_(\d{4})(\.diff)?\.yml")

# Build index of all schema files
Expand Down
Original file line number Diff line number Diff line change
@@ -1,41 +1,4 @@
Autumn:
column_map.annualsessiondetailsoffroll.attendancereason:
type: modify
description: Update codes for 2021 schema
value:
&attendance-reason
category:
- code: "/"
- code: "\\" # 2 backslashses as Python reads this as 1
- code: "B"
- code: "C"
- code: "D"
- code: "E"
- code: "G"
- code: "H"
- code: "I"
- code: "J"
- code: "L"
- code: "M"
- code: "N"
- code: "O"
- code: "P"
- code: "R"
- code: "S"
- code: "T"
- code: "U"
- code: "V"
- code: "W"
- code: "X"
- code: "Y"
- code: "Z"
- code: "#"
canbeblank: yes
column_map.annualsessiondetailsonroll.attendancereason:
type: modify
description: Update codes for 2021 schema
value:
*attendance-reason
column_map.learningaimsonroll.programmeaimsonrolltableid:
type: add
description: Adds new column for learningaimsonroll
Expand Down Expand Up @@ -161,7 +124,34 @@ Autumn:
type: modify
description: Update codes for 2021 schema
value:
*attendance-reason
&attendance-reason
category:
- code: "/"
- code: "\\" # 2 backslashses as Python reads this as 1
- code: "B"
- code: "C"
- code: "D"
- code: "E"
- code: "G"
- code: "H"
- code: "I"
- code: "J"
- code: "L"
- code: "M"
- code: "N"
- code: "O"
- code: "P"
- code: "R"
- code: "S"
- code: "T"
- code: "U"
- code: "V"
- code: "W"
- code: "X"
- code: "Y"
- code: "Z"
- code: "#"
canbeblank: yes
column_map.summerhalfterm2sessiondetailsonroll.absencesessions:
type: rename
description: Rename column in summerhalfterm2sessiondetailsonroll
Expand Down
1 change: 0 additions & 1 deletion tests/common/test_filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ def test_serialize():
serialized = serialise(subfolder)

assert serialized["type"] == "osfs"
print(Path(serialized["path"]))
assert Path(serialized["path"]) == Path("build").resolve()
assert serialized["subpath"] == "/test/subfolder"

Expand Down

0 comments on commit d4e059c

Please sign in to comment.