Giter Club home page Giter Club logo

Comments (7)

alisterburt avatar alisterburt commented on July 30, 2024

from blik.

brisvag avatar brisvag commented on July 30, 2024

For example, particle-related operations would be in one of these abstract classes. Then, a Peeper used for just particles can use them, as well as a RefinementPeeper that would also inherit from an image-related abstract class. this woudl allow the 2 peeper to reuse code, while having (for example) different constructor for easier creation.

from blik.

brisvag avatar brisvag commented on July 30, 2024

I'm not so sure anymore about this. The more I play around with the idea, and the more I get convinced that everything should be available in Peeper, so that if any data is added, no matter how you started you will be able to handle it.

We should probably set up a bit better the io_ module and have an all-encompassing read function (probably with modes) so that creating a peeper is seamless. this can probably be accessed by the peeper with an add_data() method, so that i can be used on init as well as later on.

As for everything else (displaying, analysis...), we should probably put everything in a generic peeper.

from blik.

alisterburt avatar alisterburt commented on July 30, 2024

from blik.

brisvag avatar brisvag commented on July 30, 2024

I agree until the last point: I think it's strange and unintuitive that the object you're holding only differs in construction methods.
I would go with something like numpy's np.array(), which "alsways" spitsout a ndarray and it's only job is to guess from the input how to construct it.

from blik.

alisterburt avatar alisterburt commented on July 30, 2024

from blik.

brisvag avatar brisvag commented on July 30, 2024

Obsolete/closed by #68 .

from blik.

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.