absolute vs. relative scales bug fix in _dim_scale_factors #41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixes #40.
Commit history implies you were aware of this issue before, so make sure I didn't misunderstand anything:
7796b71
I renamed
previous_dim_factors
toprevious_absolute_dim_factors
, since we need these numbers to be relative to the full resolution data, not relative to the previous scale level as before. Name change is good sinceprevious_absolute_dim_factors
is no longer equal to the previous iterationdim_factors
.This fixes my test case:
![Screen Shot 2023-07-12 at 5 12 19 PM](https://private-user-images.githubusercontent.com/8507206/253103988-58cfe421-b5a3-4cf6-8b12-429006b5ac5a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1ODIyMzAsIm5iZiI6MTcyMDU4MTkzMCwicGF0aCI6Ii84NTA3MjA2LzI1MzEwMzk4OC01OGNmZTQyMS1iNWEzLTRjZjYtOGIxMi00MjkwMDZiNWFjNWEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MTBUMDMyNTMwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZWZmOWVlMTkwOTdlMzYxOGFhOGRlY2VlYTZiODExNjI5OWZmMjI1ODk1MjVjYzY4Y2UyNWEwODk3MDlhMjM0YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.9ZvqIJTHD5ggJwttdBf-fQEQPG4K8ZjaTKAobm7kB1g)