Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Fix CI after postprocessing changes#1545

Draft
joseph-robertson wants to merge 12 commits into
developfrom
fix-ci
Draft

Fix CI after postprocessing changes#1545
joseph-robertson wants to merge 12 commits into
developfrom
fix-ci

Conversation

@joseph-robertson

@joseph-robertson joseph-robertson commented Dec 15, 2025

Copy link
Copy Markdown
Contributor

Pull Request Description

Fix failing tests due to #1509.

Companion PR: NatLabRockies/buildstockbatch#520

Related Pull Requests

[related PRs from different repositories]

Related Issues

[What issue(s) is the PR addressing]

Checklist

Required:

Optional (not all items may apply):

@joseph-robertson joseph-robertson self-assigned this Dec 15, 2025
Comment on lines +484 to +486
# Because "float nan: <class 'float'>, G15000301: <class 'str'>" leads to
# TypeError: 'float' object is not an instance of 'str':
puma_map = {k: v for k, v in puma_map.items() if not isinstance(k, float)}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In resources/gisdata/ipums_pums_2010_simple_t100_area_us_puma.geojson, "puma_tsv": null for the item with "GISJOIN": "G15000301" (and "state_abbr": "HI").

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like all the AK's are null, too.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In c583efb, I'm removing this workaround and manually updating all "puma_tsv": null with "puma_tsv": "<state_abbr>, <PUMA>" in the geojson file.

Comment on lines +551 to +552
if not col_name.startswith("upgrade."):
continue

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This "fix" gets rid of the, e.g., "Extra column: build_existing_model.ahs_region", "Extra column: upgrade_costs.option_01_name", etc lines.

But it's still not totally clear to me what this method intends to do. Add upgrade columns to upgrade dataframes and baseline dataframe? Which upgrade columns?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants