-
Notifications
You must be signed in to change notification settings - Fork 15
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
Ravel model for the illusion of 2D tables #227
Conversation
Codecov Report
@@ Coverage Diff @@
## main #227 +/- ##
==========================================
- Coverage 97.18% 97.16% -0.03%
==========================================
Files 37 37
Lines 2023 2078 +55
==========================================
+ Hits 1966 2019 +53
- Misses 57 59 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
Co-authored-by: Stuart Mumford <[email protected]>
Not sure if this is the best option but it's easily undone and the casting can move to the test instead.
pre-commit.ci autofix |
for more information, see https://pre-commit.ci
Fixed that for you 😉 |
I am in your code, finding your bugs. I made an asdf, and the first thing I noticed is this:
which breaks the repr / str of the |
I added the fix, because I needed it for further testing. |
Well I thought I'd found and fixed that bug myself but thanks I guess 😆 |
Closes #168 (once dkist-inventory is updated to use these changes).
Adds a new model to take a 2D index and return the corresponding correct index for a 1D array, and the inverse model for the reverse operation. To be used as a compound with
Tabular1D
so that it looks like aTabular2D
but the compound model can still be inverted.Should be straightforward to expand to 3D also.