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

Make it explicit that we require 1-based indexing #341

Merged
merged 1 commit into from
Sep 17, 2023
Merged

Conversation

bkamins
Copy link
Member

@bkamins bkamins commented Aug 20, 2023

In places where we say that some collection is indexable make it explicit that we assume 1-based indexing.

The reason is that downstream packages assume this so I think it is better to document it.

In places where we say that some collection is indexable make it explicit that we assume 1-based indexing.

The reason is that downstream packages assume this so I think it is better to document it.
@bkamins bkamins requested a review from quinnj August 20, 2023 21:01
@codecov
Copy link

codecov bot commented Aug 20, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (dac28d9) 94.46% compared to head (d3bfe59) 94.46%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #341   +/-   ##
=======================================
  Coverage   94.46%   94.46%           
=======================================
  Files           7        7           
  Lines         723      723           
=======================================
  Hits          683      683           
  Misses         40       40           
Files Changed Coverage Δ
src/Tables.jl 89.08% <ø> (ø)

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

@MilesCranmer
Copy link
Contributor

Does it make sense to use Base.require_one_based_indexing anywhere here?

@bkamins
Copy link
Member Author

bkamins commented Sep 17, 2023

@quinnj - OK to merge?

@quinnj quinnj merged commit 1b5bbe2 into main Sep 17, 2023
8 checks passed
@quinnj quinnj deleted the bkamins-patch-1 branch September 17, 2023 15:54
@bkamins
Copy link
Member Author

bkamins commented Sep 17, 2023

Thank you!

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