Skip to content

iddata refactoring#25

Open
matthewcornell wants to merge 11 commits into
mainfrom
mc/idmodels-iddata-refactor
Open

iddata refactoring#25
matthewcornell wants to merge 11 commits into
mainfrom
mc/idmodels-iddata-refactor

Conversation

@matthewcornell
Copy link
Copy Markdown
Member

implementation of design4.md

  • updated to latest iddata commit hash
  • also need to review: "Regenerated all three NSSP expected CSVs (state, hsa, both) using the current code with the same mocks, since the old CSVs were generated against the pre-refactor load_data() API whose NSSP data differed from the new NSSPDataSource."

Copy link
Copy Markdown
Contributor

@lshandross lshandross left a comment

Choose a reason for hiding this comment

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

I'm having trouble adding more comments to my review, so I'm submitting it as-is with some overall/remaining thoughts:

  • A lot of inline comments and function descriptions were removed, perhaps in an attempt to cleanup the code. Personally, I'd like to keep them since the comments improve the human readability of the code
  • Claude has removed various lines of code throughout idmodels in its refactor of the codebase, particularly in areas where it made large changes like the directional wave features. I'd like to know if the codebase is still doing the same thing as the original code
  • I'd like to chat with Claude to determine if the tests it added for the new features and transforms classes are sufficient

Comment thread src/idmodels/__init__.py Outdated
Comment thread src/idmodels/config.py
Comment thread src/idmodels/config.py
Comment thread src/idmodels/constants.py Outdated
Comment thread src/idmodels/features.py Outdated
Comment thread tests/integration/test_sarix.py
Comment thread tests/integration/test_sarix.py
Comment thread tests/integration/test_sarix.py Outdated
return model_config


def create_test_sarix_run_config(ref_date, states, hsas, tmp_path):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As mentioned previously, we should combine the two helper functions to create testing run configs

Comment thread tests/unit/test_directional_wave_features.py Outdated
Comment thread tests/unit/test_features.py
matthewcornell and others added 2 commits May 13, 2026 10:34
…ove dead SARIX holiday code, restore DirectionalWaveFeature docstring; add unit tests for HolidayFeature, TaylorFeature, RollingMeanFeature, CenterScaleTransform, and edge cases

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
….lock

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Comment thread tests/integration/test_sarix.py Outdated
Comment thread src/idmodels/features.py Outdated
matthewcornell and others added 7 commits May 18, 2026 16:18
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Without explicit known-first-party, ruff classified idmodels inconsistently
across environments, causing removed blank lines locally that CI expected.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… into conftest

Restores `# patch the _np_percentile()...` and `# only forecast for N ...`
comments dropped during the iddata refactor. Also extracts the identical
`create_test_gbqr_run_config` / `create_test_sarix_run_config` helpers into a
single `make_run_config` factory fixture in tests/integration/conftest.py.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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