by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Thomas Robitaille
    @astrofrog
    and you can just round them to find the nearest integer value
    Penny Qian
    @PennyQ
    :) I was totally stuck in the math calculations...
    ok got it
    Thomas Robitaille
    @astrofrog
    ok :)
    Penny Qian
    @PennyQ

    @astrofrog here is my output that except the large one (when z=1), others look very similar so I think they don’t really matter?

    [  52.48334211   52.50486503  160.08773137]
    [  52.48182776   52.50530731  160.08453021]
    [  52.48001053   52.50583804  160.08068882]
    [  52.47778948   52.50648671  160.07599379]
    [  52.47501316   52.50729755  160.070125  ]
    [  52.47144362   52.50834006  160.06257942]
    [  52.46668422   52.50973007  160.05251864]
    [  52.46002107   52.51167608  160.03843355]
    [  52.45002634   52.5145951   160.01730591]
    [  52.43336846   52.51946013  159.9820932 ]
    [  52.4000527    52.52919019  159.91166778]
    [  52.30010553   52.55838035  159.70039172]
    [-165295.47738349   48343.34379134 -349365.21038923]
    [  52.69989496   52.44161951  160.54549751]
    [  52.59994742   52.47080977  160.33422068]
    [  52.5666316    52.48053985  160.26379513]
    [  52.54997369   52.48540489  160.22858236]
    [  52.53997895   52.48832391  160.20745471]
    [  52.53331579   52.49026993  160.1933696 ]
    [  52.52855639   52.49165994  160.18330882]
    [  52.52498684   52.49270245  160.17576323]
    [  52.52221053   52.49351329  160.16989443]
    [  52.51998947   52.49416196  160.1651994 ]

    and when I draw those ‘normal’ value point it’s like from a view outside the canvas, but not the camera direction, but anyway, I think setting start point as the camera pos makes more sense :)

    Thomas Robitaille
    @astrofrog
    When you say "it’s like from a view outside the canvas", the points are still along the ray, right?
    Penny Qian
    @PennyQ
    This message was deleted
    without that super large point, there is no line showed in the view with other normal point value
    Penny Qian
    @PennyQ
    they might just stand for one starting point, coz the change between is very tiny
    Penny Qian
    @PennyQ

    @astrofrog I don’t understand why

    >>> data = np.zeros((53, 106, 106))
    >>> data[1, 2, 3] = 0.0
    >>> data[[2, 3, 4]]
    array([[[ 0.,  0.,  0., ...,  0.,  0.,  0.],
            [ 0.,  0.,  0., ...,  0.,  0.,  0.],
            [ 0.,  0.,  0., ...,  0.,  0.,  0.],
            ...,
            [ 0.,  0.,  0., ...,  0.,  0.,  0.],
            [ 0.,  0.,  0., ...,  0.,  0.,  0.],
            [ 0.,  0.,  0., ...,  0.,  0.,  0.]],
    
           [[ 0.,  0.,  0., ...,  0.,  0.,  0.],
            [ 0.,  0.,  0., ...,  0.,  0.,  0.],
            [ 0.,  0.,  0., ...,  0.,  0.,  0.],
            ...,
            [ 0.,  0.,  0., ...,  0.,  0.,  0.],
            [ 0.,  0.,  0., ...,  0.,  0.,  0.],
            [ 0.,  0.,  0., ...,  0.,  0.,  0.]],
    
           [[ 0.,  0.,  0., ...,  0.,  0.,  0.],
            [ 0.,  0.,  0., ...,  0.,  0.,  0.],
            [ 0.,  0.,  0., ...,  0.,  0.,  0.],
            ...,
            [ 0.,  0.,  0., ...,  0.,  0.,  0.],
            [ 0.,  0.,  0., ...,  0.,  0.,  0.],
            [ 0.,  0.,  0., ...,  0.,  0.,  0.]]])

    :worried:

    I got a mask = [[1,2,3], [4,5,6]], and how can I get data[mask] with the two value with the index in mask… thanks!
    Penny Qian
    @PennyQ
    I will be back next Wednesday, but I could check mails during the travel but can only do the coding work when I am back. Have a good weekend!
    Thomas Robitaille
    @astrofrog
    @PennyQ - it's normal that you can't see the ray, I'm not sure if we need to worry about that? You could always draw a + at the location where the user clicked, and erase it as soon as they start turning the volume around?
    @PennyQ - ah you want to get two values out? (the values at [1,2,3] and at [2,3,4]?)
    Penny Qian
    @PennyQ
    @astrofrog I use a bunch of Markers to represent the ray line as you can see glue-viz/glue-3d-selection#9, and I also got a question with the latest comment in this PR :)
    yes I wanna use those arrays as index but Numpy will return results with same shape as the index array shape, but I solved it with transfering array to tuplecoz Numpy treated tuple index differently as array index
    Penny Qian
    @PennyQ
    @astrofrog I created a new PR for save animation in glue-viz/glue-vispy-viewers#139 , could you help have a look, thanks!
    Penny Qian
    @PennyQ
    @astrofrog Can you also show me how to add position info on Status Bar for 3D viewers? :)
    Thomas Robitaille
    @astrofrog
    @PennyQ - I'll take a look at the animation saving - thanks!
    I can't provide any help now on the status bar, but I'll be back online later tonight and will try and put some info then
    Penny Qian
    @PennyQ
    That would be great! thanks! ~
    Penny Qian
    @PennyQ
    Do you have anytime tmr for a short chat about code? I have quite a few questions but it’s also ok that I could put them here :)
    Thomas Robitaille
    @astrofrog
    @PennyQ - would 12:30pm your time work? (sorry it's over lunch for you!)
    Penny Qian
    @PennyQ
    oh it’s fine for me, I usually had a late lunch, see you then ! :)
    Penny Qian
    @PennyQ
    Got crazy by the transform :( Could you help me to have a look here glue-viz/glue-vispy-viewers#142 thanks a lot! @astrofrog
    Penny Qian
    @PennyQ
    @astrofrog I have a question that is it ok for me to put a screenshot of one software into the Github issue? Is there any copyright problem for this? Thanks!
    Thomas Robitaille
    @astrofrog
    I think screenshots are fine and don't break copyright
    Penny Qian
    @PennyQ
    Yes thanks, I am thinking add a setting of relative_step_size for the volume to change the rendering quality, but I didn’t see the difference of the performance with different setting values, do you know if whether this works or not? :)
    Penny Qian
    @PennyQ
    @astrofrog I saw that you bundled vispy package into glue-vispy-viewers, and I also know through Github you could use submodule to keep track of libraries from other repositories, this is also the way of what plotly did, so maybe in the future we could make 3Dviewers and other plugins as submodules of Glue? I am not so clear of the difference of submodule plugin and bundle package
    Thomas Robitaille
    @astrofrog
    @PennyQ - submodules are fine too, but in this case I wanted to include only a sub-directory of the whole vispy repository, hence why I just copied over all the files from VisPy. I can try and explain the difference between those three concepts tomorrow.
    Penny Qian
    @PennyQ
    This message was deleted
    Penny Qian
    @PennyQ
    Just FYI that I update the changeling with those merged PR, and I will check the axis labels now :)
    Penny Qian
    @PennyQ
    @astrofrog Can you help me to have a look at the question here glue-viz/glue#994 Thanks!
    Penny Qian
    @PennyQ
    Ha, I solved it, although I still don’t understand why both Circular and Polygon selection will use the same type of Polygonal ROI, but there is indeed a Circular ROI in the core code seems not used :(
    Thomas Robitaille
    @astrofrog
    @PennyQ - are you around?
    I am going to release the new versions of glue and the 3D plugins tonight - would you be happy for me to include your name in the signature of the email for the 3D plugins?
    Penny Qian
    @PennyQ
    Yes that would be great, thanks Tom!
    Thomas Robitaille
    @astrofrog
    glue-viz/glue-vispy-viewers@6b79d17
    Penny Qian
    @PennyQ
    gloo.set_state
    Thomas Robitaille
    @astrofrog
    def set_state
    "def set_state”
    Thomas Robitaille
    @astrofrog
    vispy/vispy#1160
    Thomas Robitaille
    @astrofrog
    Thomas Robitaille
    @astrofrog
    vispy/vispy#1160
    Thomas Robitaille
    @astrofrog
    @PennyQ - just for info, I’m working on a plugin to make it easy to read in medical data - will send around details soon!
    Penny Qian
    @PennyQ
    got it :)