Giter VIP home page Giter VIP logo

Comments (3)

rafaqz avatar rafaqz commented on May 23, 2024 1

Most of the time I want to inherit the name. After getindex, view etc the data is still the same thing. Like "surface_temp".

Even after mean/median whatever the content is still from the same source and the name still has a similar meaning.

But after zero, one or similar there is nothing but the type and the dimensions.

If we make name a parameter of the standard rebuild we can reset the name in similar, or we can do it automatically in the kwargs version of rebuild as that just leverages ConstructionBase anyway.

from dimensionaldata.jl.

rafaqz avatar rafaqz commented on May 23, 2024

The field is name, label is a composite for display... But I've been thinking about this too. It is odd when you use zero() or something on a GeoArray and it keeps the name, and you have to do rebuild(a; name="x") or GeoArray(A; name="x") or @set a.name = "x" with Setfield.jl.

Maybe we could and pass an empty name to a rebuild in similar().

from dimensionaldata.jl.

Datseris avatar Datseris commented on May 23, 2024

Maybe we could and pass an empty name to a rebuild in similar().

Sorry, I didn't understand this. Can you explain it a bit more? In general you also think that inheriting name does not make sense for most methods, right?

from dimensionaldata.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.