question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question about slit feature in Cuts

See original GitHub issue

I see some similar controls between “slit” in Cuts and LineProfile. When do I use “slit” and when do I use LineProfile? Why aren’t they in the same plugin?

Also, starting Cuts with “slit” enabled, I see the following:

Error making callback 'value-changed': 'Cuts' object has no attribute 'save_slit'
Traceback:
  File ".../ginga/misc/Callback.py", line 123, in make_callback
    res = method(*cb_args, **cb_kwdargs)

  File ".../ginga/rv/plugins/Cuts.py", line 978, in width_radius_changed_cb
    self.replot_all()

  File ".../ginga/rv/plugins/Cuts.py", line 675, in replot_all
    self.save_slit.set_enabled(False)

Then, while using it, I see more:

Error making callback 'value-changed': wrapped C/C++ object of type QPushButton has been deleted
Traceback:
  File ".../ginga/misc/Callback.py", line 123, in make_callback
    res = method(*cb_args, **cb_kwdargs)

  File ".../ginga/rv/plugins/Cuts.py", line 978, in width_radius_changed_cb
    self.replot_all()

  File ".../ginga/rv/plugins/Cuts.py", line 675, in replot_all
    self.save_slit.set_enabled(False)

  File ".../ginga/qtw/Widgets.py", line 47, in set_enabled
    self.widget.setEnabled(tf)
Error making callback 'activated': 'New Cut'
Traceback:
  File ".../ginga/misc/Callback.py", line 123, in make_callback
    res = method(*cb_args, **cb_kwdargs)

  File ".../ginga/rv/plugins/Cuts.py", line 370, in <lambda>
    lambda w, tf: self.axis_toggle_cb(w, tf, pos))

  File ".../ginga/rv/plugins/Cuts.py", line 1032, in axis_toggle_cb
    self._plot_slit()

  File ".../ginga/rv/plugins/Cuts.py", line 649, in _plot_slit
    obj = self.canvas.get_object_by_tag(self.cutstag)

  File ".../ginga/canvas/CanvasMixin.py", line 93, in get_object_by_tag
    obj = self.tags[tag]

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:24 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
ejeschkecommented, May 4, 2017

@pllim, I believe this is fixed in commit 8b7a1d0696a6c7d8bcb6c8d28b8d1ef70a38b7c8.

1reaction
nabobaliscommented, May 4, 2017

The orignal idea was that a slit would be a spatial cut that outputs a space/time image and the line profile would see how wavelength varies at a single pixel.

I think the orignal plan was to make slit able to cut arbitrary axes to produce any possible combination required by the user, but I can not remember if we got to that. So LineProfile was born to achieve the second aim.

Read more comments on GitHub >

github_iconTop Results From Across the Web

27.3 Young's Double Slit Experiment – College Physics
The answer to this question is that two slits provide two coherent light sources that then interfere constructively or destructively. Young used sunlight,...
Read more >
Double Slit Experiment Questions and Answers - Study.com
Access the answers to hundreds of Double-slit experiment questions that are explained in a way that's easy for you to understand. Can't find...
Read more >
Physics in a minute: The double slit experiment - Plus magazine!
One of the most famous experiments in physics is the double slit experiment. It demonstrates, with unparalleled strangeness, that little particles of matter ......
Read more >
Question about the double slit experiment 2
They passed these molecules through a series of slits. A detector showed an interference pattern. These 800-atom molecules, each with diameter 4 ...
Read more >
27.3 Young's Double Slit Experiment ... - UCF Pressbooks
The answer to this question is that two slits provide two coherent light sources that then interfere constructively or destructively. Young used sunlight,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found