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.

Allow loading of the reference viewer from a script

See original GitHub issue

I have some data which is not in FITS files but I would like to load into the reference viewer, it’s multidim data, I have a dict and a 4D array. I would really like to be able to do something like:

from ginga.main import ReferenceViewer

r = ReferenceViewer()
r.main(data, header)

Looking at the code for the reference viewer this looks like it might be a little bit of a fiddle, do you have any suggestions?

(FWIW, the data is loaded independently of the header from a raw binary file, so a reader would be a major pain as well)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ejeschkecommented, Oct 25, 2016

The notebook I listed shows how to connect to the reference viewer running the usual plugins. I just used a notebook to put together the “client” example.

0reactions
ejeschkecommented, Jan 19, 2017

@Cadair, python 3 issue I referred to above is fixed. Assuming you started the RC plugin (from the plugins menu or when starting ginga just add --modules=RC) you can do what you are asking with:

from ginga.util import grc
viewer = grc.RemoteClient('localhost', 9000)
ch = viewer.channel("Image")
ch.load_np("image1", data, 'fits', header)

There is more info in the manual page for the RC plugin

Read more comments on GitHub >

github_iconTop Results From Across the Web

Reference Viewer | Unreal Engine Documentation
The Reference Viewer will display a graph of references for all assets in that folder. For more information about the Content Browser, see...
Read more >
Developing with Ginga — ginga v3.4.1
To start the plugin from within the reference viewer, use the Plugin Manager bar just below the color and readout bars. Use the...
Read more >
Event Viewer | Addressables | 1.18.19 - Unity - Manual
The window shows when your application loads and unloads assets and displays the reference counts of all Addressables system operations.
Read more >
Finding references in your code - Visual Studio (Windows)
Press the Enter key on a reference, or double-click it, to go to it in code. On the right-click menu (context menu) of...
Read more >
Demystifying Soft Object References | Inside Unreal - YouTube
This week Christian Allen will provide an overview of Hard & Soft Object references in Blueprints, why the differences are important to know ......
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