Giter Club home page Giter Club logo

Comments (4)

syhaffert avatar syhaffert commented on August 11, 2024

I do have that code somewhere. Let me dig it up and I will start a PR for it.

from hcipy.

ehpor avatar ehpor commented on August 11, 2024

A small addition to this: cropping. The grid.subset() method is kinda meant to do that, but it's currently not smart enough to detect that you've selected a region which is still separated and so can return a Grid with SeparatedCoords. Right now, it always returns a UnstructuredCoords grid.

As a side question: what would be the arguments to this Grid.pad() function? I'd like to avoid anything to do with pixels, so it has to be physical distances in each of the axes.

from hcipy.

syhaffert avatar syhaffert commented on August 11, 2024

Yes, I do use size units in my functions. So that should be okay. I might do this tomorrow because I have to figure out where I exactly used it....

from hcipy.

ehpor avatar ehpor commented on August 11, 2024

So exactly the same problem as me XD. I also have it somewhere, but I'll let you put in the PR.

from hcipy.

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.