Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: data padding bug in mongo_normalized #825

Merged
merged 5 commits into from
Oct 10, 2024

Conversation

hyperrealist
Copy link
Contributor

@hyperrealist hyperrealist commented Oct 2, 2024

We had several design discussions about implicit padding and trimming. I think it probably isn't the right choice to pad and trim by default, because it can affect scientific results. This PR fixes a bug with the implicit padding and adds tests.
I think more investigation is required to figure out how to pad and trim in a better way, that is out of the scope of this PR. - @gwbischof

default_validate_shape had some trimming logic that wasn't doing anything, the trimming was happening elsewhere in the code.

default_validate_shape was falling for multi-dimensional data.

Buggy logic:

loop:
    compute padding args
    apply padding

Fix:

loop:
    compute padding args

apply padding

@gwbischof gwbischof changed the title FIX: data padding bug in mongo_normalize FIX: data padding bug in mongo_normalized Oct 10, 2024
@danielballan danielballan merged commit 84b8c76 into bluesky:main Oct 10, 2024
6 checks passed
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.

3 participants