-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
additional features #4
Comments
I have deliberately limited myself to providing such improvements in order to avoid them being too much biased towards my only personal taste. But I think this would be nice if we can elaborate on this subject. Perhaps we should start with a list of common and useful recipes using the basic syntax (that of DS9 set/get commands) and see wheteher something coherent emerges (this is also related to your idea of having a dedicated REPL mode in #3). There is a short list of examples in the doc. of SAOImageDS9.jl and also the VIP Python package you mentioned can be a source of inspiration. My understanding of your The mechanism should also work on other platforms than MacOSX. BTW There are at least 2 other things that are missing from the current SAOImageDS9.jl interface:
I have some premiminary code for that which I can put in a development branch to share it. |
I had a look at the VIP Python package, some features should be straightforward to implement although we should improve the API in some places. I had forgotten that plotting of some symbols (circles and rectangles) was already implemented in SAOImageDS9.jl as of version 0.2.0. But I added two simple methods, |
okay, I've been digging into this a little more, here's what I've got I propose to restructure the package like this-
first off to just organize the code Core functionality
Utility functionsI propose we remove the array interface of For additional functionality, I think instead of providing an API equivalent to DS9, we should only provide functions that are an actual convenience. For example, the VIP DS9 has a |
The DS9 class that is bundled with VIP https://github.com/vortex-exoplanet/VIP/blob/master/vip_hci/vip_ds9.py has some features that I use frequently and would like to see here. Perhaps they already do and I just don't realize how to use them.
Start
First, the PyDS9 package includes a method that will start the DS9 process looking in the PATH or for some pre-configured names https://github.com/ericmandel/pyds9/blob/678ebf359ccd550150eadbe2f5c59d58b8145274/pyds9/pyds9.py#L70-L91
I actually have a version of this specifically for Mac that works fine-
so all that needs to be added is a version that works for other platforms
display
In general, the VIP DS9 class has a lot of nice helpers. Things like
clear_frames
cmap
, etc. which call simple commands internally but give a very nice functional interface. I don't think all of these are necessary, but I think it would be nice to get a list of functions we want to provide convenience methods for.In particular, the
display
method of the VIP DS9 class is really nice. It automatically tiles outvararg
frames for display. I'd really like to see something like this!The text was updated successfully, but these errors were encountered: