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 expand_dimensions definitions non ambiguous #795

Merged
merged 21 commits into from
Sep 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
0462a4c
Make expand_dimensions definitions non ambiguous
asinghvi17 Sep 2, 2024
1b8b604
Update README.md formatting
asinghvi17 Sep 3, 2024
29cc06f
Merge pull request #796 from rafaqz/as/update_readme
lazarusA Sep 3, 2024
980afe6
Fix vertexgrid conversions in DimensionalData
asinghvi17 Sep 3, 2024
2550555
Fix all issues by using conversion trait only in 2d plots
asinghvi17 Sep 3, 2024
c30b51b
Use a more intelligent method to check the axis type
asinghvi17 Sep 3, 2024
3c46d2a
Get tests going
asinghvi17 Sep 3, 2024
994ed92
Add comments + regular sampling check function
asinghvi17 Sep 4, 2024
653a90d
Drop Makie v0.19 compat, bump patch version
asinghvi17 Sep 4, 2024
1855277
Drop Makie v0.19 compat, add checks for regular sampling
asinghvi17 Sep 4, 2024
9f17116
Regular and categorical sampling are both acceptable
asinghvi17 Sep 5, 2024
ededfb8
Apply suggestions from code review
lazarusA Sep 9, 2024
32c8840
Use DD.shiftlocus for intervals to points
asinghvi17 Sep 9, 2024
b2913ba
Treat axis and figure keyword arguments differently
asinghvi17 Sep 9, 2024
f73b55e
Handle axis + figure attributes better
asinghvi17 Sep 9, 2024
189456d
remove axis kwargs from where they shouldn't be
asinghvi17 Sep 9, 2024
60715cb
fix wrong attr passing when axis type is known
asinghvi17 Sep 11, 2024
eeee224
Warn only on irregular lookup
asinghvi17 Sep 12, 2024
d5126f9
more information about why this is bad
asinghvi17 Sep 12, 2024
7f446cb
Define a fallback for NoConversion traits
asinghvi17 Sep 12, 2024
3c6f2e5
Specific convert for spy to compute intervals
asinghvi17 Sep 12, 2024
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
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "DimensionalData"
uuid = "0703355e-b756-11e9-17c0-8b28908087d0"
authors = ["Rafael Schouten <rafaelschouten@gmail.com>"]
version = "0.27.9"
version = "0.27.10"

[deps]
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
Expand Down Expand Up @@ -57,7 +57,7 @@ InvertedIndices = "1"
IteratorInterfaceExtensions = "1"
JLArrays = "0.1"
LinearAlgebra = "1"
Makie = "0.19, 0.20, 0.21"
Makie = "0.20, 0.21"
OffsetArrays = "1"
Plots = "1"
PrecompileTools = "1"
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,22 @@ DimensionalData.jl provides tools and abstractions for working with datasets tha

DimensionalData is a pluggable, generalised version of [AxisArrays.jl](https://github.com/JuliaArrays/AxisArrays.jl) with a cleaner syntax, and additional functionality found in NamedDims.jl. It has similar goals to pythons [xarray](http://xarray.pydata.org/en/stable/), and is primarily written for use with spatial data in [Rasters.jl](https://github.com/rafaqz/Rasters.jl).

> [!IMPORTANT]
> INSTALLATION
## Installation

```shell
julia>]
pkg> add DimensionalData
```

## Quick start

Start using the package:

```julia
using DimensionalData
```

The basic syntax is:
The basic syntax to create a dimensional array (`DimArray`) is:

```julia
A = DimArray(rand(50, 31), (X(), Y(10.0:40.0)));
Expand Down Expand Up @@ -76,7 +77,7 @@ A[Y=1:10, X=1]
19.0 0.605331
```

One can also subset by lookup, using a `Selector`, lets try `At`:
One can also subset by lookup, using a `Selector`, let's try `At`:

```julia
A[Y(At(25))]
Expand Down Expand Up @@ -125,8 +126,7 @@ using DimensionalData
using DimensionalData.Lookup, DimensionalData.Dimensions
```

> [!IMPORTANT]
> Alternative Packages
## Alternative packages

There are a lot of similar Julia packages in this space. AxisArrays.jl, NamedDims.jl, NamedArrays.jl are registered alternative that each cover some of the functionality provided by DimensionalData.jl. DimensionalData.jl should be able to replicate most of their syntax and functionality.

Expand Down
Loading
Loading