rafaqz / DimensionalData.jl

Named dimensions and indexing for julia arrays and other data
https://rafaqz.github.io/DimensionalData.jl/stable/
MIT License
271 stars 38 forks source link

Example for the selection of intervals in DimArrays added to the course. #516

Closed dpabon closed 1 year ago

codecov-commenter commented 1 year ago

Codecov Report

Merging #516 (6368a82) into main (b9b4940) will not change coverage. The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #516   +/-   ##
=======================================
  Coverage   89.38%   89.38%           
=======================================
  Files          39       39           
  Lines        2874     2874           
=======================================
  Hits         2569     2569           
  Misses        305      305           

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

rafaqz commented 1 year ago

Thanks!

The recommended way to do that for Dim{:x} dimensions is:

A2[distance=12 .. 35, time=Date(2001, 5) .. Date(2001, 7))]
dpabon commented 1 year ago

Great! Thanks for the clarification!

I could not find that way in the documentation. Shall I close the PR and open a new one?

rafaqz commented 1 year ago

You can also just edit this PR inline

rafaqz commented 1 year ago

The comment above now doesnt match the example ;)

dpabon commented 1 year ago

Ups… Thanks for the catch! Now should be correct.