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

Materialize DimArray or DimStack From a Table #739

Open
wants to merge 42 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
60256a0
Table Materializer Methods
JoshuaBillson Jun 18, 2024
3526b96
Merged Main
JoshuaBillson Jun 18, 2024
eab2fa0
Made col Optional for DimArray
JoshuaBillson Jun 18, 2024
d4892df
Apply suggestions from code review
JoshuaBillson Jun 20, 2024
ea6751a
Handle coordinates with different loci
JoshuaBillson Jun 20, 2024
13c80da
Merge branch 'materialize' of github.com:JoshuaBillson/DimensionalDat…
JoshuaBillson Jun 20, 2024
6a9d26e
replaced At() with Contains() in _coords_to_ords
JoshuaBillson Jun 20, 2024
9164c22
Added optional selectors and public methods for table materializer
JoshuaBillson Jun 25, 2024
2ebec1c
Updated table constructors for DimArray and DimStack
JoshuaBillson Jun 25, 2024
8e791bf
Updated DimArray and DimStack docs to include table materializer methods
JoshuaBillson Jul 5, 2024
4cd5f9d
Table materializer test cases
JoshuaBillson Jul 5, 2024
0c1991a
export table materializer methods
JoshuaBillson Jul 5, 2024
8758ba9
Merge branch 'rafaqz:main' into materialize
JoshuaBillson Jul 5, 2024
4534de5
Added Random to tables.jl test cases
JoshuaBillson Jul 5, 2024
119fa30
Merge branch 'rafaqz:main' into materialize
JoshuaBillson Aug 8, 2024
ed395ca
Update src/array/array.jl
JoshuaBillson Aug 8, 2024
00336af
Update src/table_ops.jl
JoshuaBillson Aug 8, 2024
532f887
Removed exports
JoshuaBillson Aug 8, 2024
c98dcb0
Merge branch 'materialize' of github.com:JoshuaBillson/DimensionalDat…
JoshuaBillson Aug 8, 2024
06a2c91
Update src/table_ops.jl
JoshuaBillson Aug 8, 2024
3bacf33
Update src/table_ops.jl
JoshuaBillson Aug 8, 2024
4ced6f7
Update src/table_ops.jl
JoshuaBillson Aug 8, 2024
c846dfd
Update src/table_ops.jl
JoshuaBillson Aug 8, 2024
fe2c871
Update src/table_ops.jl
JoshuaBillson Aug 8, 2024
61f8220
Replaced selector type with instance.
JoshuaBillson Aug 8, 2024
3d28b43
Merge branch 'materialize' of github.com:JoshuaBillson/DimensionalDat…
JoshuaBillson Aug 8, 2024
dbe7b99
Table materializer can now infer dimensions from the coordinates.
JoshuaBillson Aug 12, 2024
f410988
Update src/stack/stack.jl
JoshuaBillson Sep 18, 2024
a17f069
Update src/table_ops.jl
JoshuaBillson Sep 18, 2024
9bdded9
Update src/table_ops.jl
JoshuaBillson Sep 18, 2024
5451087
Update src/table_ops.jl
JoshuaBillson Sep 18, 2024
faf4d76
Update src/table_ops.jl
JoshuaBillson Sep 18, 2024
02f60a3
Update src/table_ops.jl
JoshuaBillson Sep 18, 2024
fafd357
Update src/table_ops.jl
JoshuaBillson Sep 22, 2024
d7f15f5
Update src/array/array.jl
JoshuaBillson Sep 25, 2024
34a0a69
Update src/table_ops.jl
JoshuaBillson Sep 26, 2024
d0b9eb7
Added support for guessing the dimension ordering and span for Dates …
JoshuaBillson Sep 26, 2024
32b0c00
Merge branch 'materialize' of github.com:JoshuaBillson/DimensionalDat…
JoshuaBillson Sep 26, 2024
0ea72a0
Replaced LinRange with StepRangeLen in _build_dim
JoshuaBillson Sep 27, 2024
bc62932
Added Tables.istable check to DimArray constructor
JoshuaBillson Oct 15, 2024
76f8805
Update src/array/array.jl
rafaqz Mar 19, 2025
a223fe8
Merge branch 'main' into materialize
tiemvanderdeure Mar 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Replaced selector type with instance.
JoshuaBillson committed Aug 8, 2024
commit 61f82204739d71845dec865d899e3439aba40dc7
2 changes: 1 addition & 1 deletion src/array/array.jl
Original file line number Diff line number Diff line change
@@ -431,7 +431,7 @@ function DimArray(A::AbstractBasicDimArray;
DimArray(newdata, format(dims, newdata); refdims, name, metadata)
end
# Write a single column from a table with one or more coordinate columns to a DimArray
function DimArray(table, dims; name=NoName(), selector=DimensionalData.Contains, kw...)
function DimArray(table, dims; name=NoName(), selector=DimensionalData.Contains(), kw...)
indices = coords_to_index(table, dims; selector)
col = name == NoName() ? _data_col_names(table, dims) |> first : Symbol(name)
data = restore_array(Tables.getcolumn(table, col), indices, dims; missingval=missing)