Skip to content

Preserve missing timestamps in tidal analysis - #171

Open
antonsoo wants to merge 1 commit into
wesleybowman:masterfrom
antonsoo:fix/missing-timestamps
Open

antonsoo wants to merge 1 commit into
wesleybowman:masterfrom
antonsoo:fix/missing-timestamps

Conversation

@antonsoo

@antonsoo antonsoo commented Oct 25, 2026 •

Copy link
Copy Markdown

Masked time entries currently lose their masks during normalization, so solve includes observations that should be excluded and reconstruct returns values at missing times. Datetime NaT entries also become large finite day counts instead of missing values.

Preserve array masks and divide by a timedelta when converting dates to days, allowing the existing missing-data handling to work for both input forms.

The new scalar/vector regressions fail before this change. All 32 tests pass on Python 3.10/NumPy 1.26 and Python 3.12/NumPy 2.5, and the configured pre-commit checks pass. A replay of the supplied Honolulu observations matches explicitly filtered fits and retains the complete valid-input results.

The inference option fix in #172 is independent and can be combined with this change if preferred.

This branch has not been deployed

No deployments
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.

1 participant