Code Monkey home page Code Monkey logo

Comments (5)

mcabbott avatar mcabbott commented on June 3, 2024 1

Sorry about that! Will try to find a minute to fix, got confused with trying to fix hash but that can wait.

from axiskeys.jl.

mcabbott avatar mcabbott commented on June 3, 2024 1

I think I fixed this on master, sorry about the delay:

julia> ka = wrapdims(rand(Int8, 2,3), ["a", "b"], 100:10:120)
2-dimensional KeyedArray(...) with keys:
↓   2-element Vector{String}
→   3-element StepRange{Int64,...}
And data, 2×3 Array{Int8,2}:
         (100)  (110)  (120)
  ("a")   -109     74     73
  ("b")    -70     97     25

julia> findmax(ka, dims=1)
(Int8[-70 97 73], CartesianIndex{2}[CartesianIndex(2, 1) CartesianIndex(2, 2) CartesianIndex(1, 3)])

Not tagged yet as there are all sorts of new ambiguity errors to sort out, thanks to other package updates.

from axiskeys.jl.

AsimHDar avatar AsimHDar commented on June 3, 2024 1

Sweet, the example is working. And like you said, when I test AxisKeys it gives:

Test Summary:                        | Pass  Error  Broken  Total
wrapdims with NamedDimsArray outside |  300     15       5    320
  basics                             |   38              1     39
  selectors                          |   19                    19
  reverse selectors                  |    7                     7
  names                              |   36                    36
  broadcasting                       |   27                    27
  bitarray                           |    6                     6
  namedtuple                         |    4                     4
  mutation                           |    6                     6
  dims                               |   20                    20
  sort                               |   12                    12
  map & collect                      |   17                    17
  cat                                |    5     15       1     21
  matmul                             |   18              1     19
  div                                |    3                     3
  copy etc                           |    6                     6
  equality                           |   10                    10
  indexing & lookup                  |   22                    22
  construction                       |    9                     9
  offset                             |    4                     4
  unique                             |    4                     4
  tables                             |    3                     3
  stack                              |    9                     9
  dates                              |    5                     5
  inverted                           |    4                     4
  fourier                            |    5              1      6
  unitful fourier                    |    1              1      2
Test Summary:                        | Pass  Error  Broken  Total
wrapdims with NamedDimsArray outside |  300     15       5    320
  basics                             |   38              1     39
  selectors                          |   19                    19
  reverse selectors                  |    7                     7
  names                              |   36                    36
  broadcasting                       |   27                    27
  bitarray                           |    6                     6
  namedtuple                         |    4                     4
  mutation                           |    6                     6
  dims                               |   20                    20
  sort                               |   12                    12
  map & collect                      |   17                    17
  cat                                |    5     15       1     21
  matmul                             |   18              1     19
  div                                |    3                     3
  copy etc                           |    6                     6
  equality                           |   10                    10
  indexing & lookup                  |   22                    22
  construction                       |    9                     9
  offset                             |    4                     4
  unique                             |    4                     4
  tables                             |    3                     3
  stack                              |    9                     9
  dates                              |    5                     5
  inverted                           |    4                     4
  fourier                            |    5              1      6
  unitful fourier                    |    1              1      2
ERROR: LoadError: Some tests did not pass: 300 passed, 0 failed, 15 errored, 5 broken.

from axiskeys.jl.

mcabbott avatar mcabbott commented on June 3, 2024

Thanks for opening this, as commanded! I should probably disable that warning, as I have since found a few other things which might call it, but did not find findmax.

(The terminology for all these packages is awful, I was hoping I could claim "keys" for these alternative things, hence the package name. But have since understood that Base uses both "keys" and "indices" according to logic I don't quite follow.)

from axiskeys.jl.

AsimHDar avatar AsimHDar commented on June 3, 2024

Haha yeah, I also get the same when I used vscodedisplay on axiskeys by clicking on it in the workspace viewer. And sometimes it gets really weird and just stops working.

from axiskeys.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.