Skip to content

Conversation

@asinghvi17
Copy link
Collaborator

@asinghvi17 asinghvi17 commented Jan 12, 2026

  • Add full documentation page for Lookups (docs/src/lookups.md)
  • Document all lookup types: Sampled, Categorical, Cyclic, NoLookup, Transformed
  • Explain the trait system: Order, Sampling, Span, Locus
  • Examples for a regular lookup and one with internal dimensions

🤖 Generated with Claude Code

asinghvi17 and others added 3 commits January 12, 2026 15:21
- Document all lookup types (Sampled, Categorical, Cyclic, NoLookup, Transformed)
- Explain trait system (Order, Sampling, Span, Locus)
- Cover common operations (bounds, intervalbounds, predicates, set)
- Add guide for implementing custom lookups
- Include example: LogLookup with custom selector behavior
- Include example: MatrixLookup with internal dimensions (X, Y)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@lazarusA
Copy link
Collaborator

lazarusA commented Jan 12, 2026

Add full documentation page for Lookups (docs/src/lookups.md)

Claude sucks! 😄, I'm starting to hate these long summaries.

BTW, what is the motivation for this? I feel that this might be too repetitive in some points, looking at https://rafaqz.github.io/DimensionalData.jl/stable/api/lookuparrays#Lookups

@asinghvi17
Copy link
Collaborator Author

  1. That reference does not help you actually define a lookup - i.e. what you have to define is still completely ambiguous
  2. The idea here is to be able to document what a lookup with internal dimensions is actually meant to do

asinghvi17 and others added 8 commits January 12, 2026 18:23
- Add Base methods: parent, size, length, axes, firstindex, lastindex, getindex
- Add Lookup interface: order, metadata, span, sampling
- Add rebuild with standard data= kwarg plus coords= extension
- Add hasinternaldimensions trait
- Add dims methods for integration with Dimensions module
- Export coords, coord_dim, grid_position accessors

Co-Authored-By: Claude Opus 4.5 <[email protected]>
- Add getindex/view for AbstractVector to slice both data and coords
- Add slice_coords to slice coords along other dimensions (e.g., face)
- Export slice_coords

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Returns coordinate extent (min, max) from the coords matrix.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Returns NoLookup when dimension is reduced.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Validates axis length matches lookup data length.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Tests for construction, slicing, bounds, rebuild, dims, reducelookup,
and DimArray integration.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Adds FacedGridLookup section to the Lookup Types tabs in lookups.md.

Co-Authored-By: Claude Opus 4.5 <[email protected]>
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