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

Packer improvements #73

Merged
merged 6 commits into from
Oct 2, 2024
Merged

Packer improvements #73

merged 6 commits into from
Oct 2, 2024

Conversation

richfitz
Copy link
Member

The first commit (7aa5a23) fixes a small bug that I noticed when working with dust to unpack output from dust models, where we were treating "scalars" created via the array argument slightly differently to those created via the scalar argument.

The next couple of commits, and the bulk of this PR fixes a problem I noticed working with this, where we simply don't support packing multidimensional inputs. I don't think we'll do this very often but it felt like the current implementation was not good enough. This is surprisingly horrible to do, and I think that's reflected in the error messages and help files. This is something I feel we'll improve on over time.

Copy link
Contributor

@weshinsley weshinsley left a comment

Choose a reason for hiding this comment

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

OK - I think I've looked at this enough to get it - a couple of doc fixes -

I am a bit confused in the residual dimensions handling - but I think let's not let that hold up progress - will catch up on it later

R/packer.R Outdated Show resolved Hide resolved
R/packer.R Outdated Show resolved Hide resolved
R/packer.R Outdated Show resolved Hide resolved
R/packer.R Outdated Show resolved Hide resolved
tests/testthat/test-packer.R Outdated Show resolved Hide resolved
Copy link

codecov bot commented Oct 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.68%. Comparing base (3dacc35) to head (f8982f2).
Report is 14 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #73   +/-   ##
=======================================
  Coverage   99.67%   99.68%           
=======================================
  Files          63       63           
  Lines        4331     4398   +67     
=======================================
+ Hits         4317     4384   +67     
  Misses         14       14           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Co-authored-by: Wes Hinsley <[email protected]>
@richfitz richfitz merged commit 20e980b into main Oct 2, 2024
10 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.

2 participants