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 auto_inline when block is already set to inline #802

Merged
merged 4 commits into from
May 19, 2020

Conversation

eslavich
Copy link
Contributor

This fixes auto_inline's behavior when a block is already set to inline, and the associated array exceeds the limit for inline representation. Previously the block would continue to be written inline, but with these changes it will change to "internal".

I'm also removing an unused internal method, _should_inline, which is a remnant of the similar inline_threshold feature that was reverted.

Resolves #599

@eslavich eslavich added this to the 2.6.1 milestone May 18, 2020
@eslavich eslavich added the bug label May 18, 2020
@codecov
Copy link

codecov bot commented May 18, 2020

Codecov Report

Merging #802 into master will increase coverage by 0.11%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #802      +/-   ##
==========================================
+ Coverage   94.07%   94.18%   +0.11%     
==========================================
  Files          42       42              
  Lines        5013     5005       -8     
==========================================
- Hits         4716     4714       -2     
+ Misses        297      291       -6     
Impacted Files Coverage Δ
asdf/block.py 96.45% <100.00%> (+0.87%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 36efc21...d03b058. Read the comment docs.

@eslavich eslavich requested a review from nden May 18, 2020 23:02
Copy link
Contributor

@perrygreenfield perrygreenfield left a comment

Choose a reason for hiding this comment

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

Looks OK to me

@perrygreenfield perrygreenfield merged commit cabeb12 into asdf-format:master May 19, 2020
@eslavich eslavich deleted the AL-304-fix-auto-inline branch May 19, 2020 14:05
@eslavich eslavich modified the milestones: 2.6.1, 2.7.0 Jul 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

auto_inline not working as expected
2 participants