Giter VIP home page Giter VIP logo

pystamps's People

Contributors

godber avatar percurnicus avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

adakite vishwakt

pystamps's Issues

Jupyter Widget

It would be awesome if there was a Jupyter Widget version of the gui so people can do their image selection directly in the Jupyter Notebook. I imagine the use would be something like:

widget = pystamps.jwidget()
widget.show()
# Select some images within the widget in the notebook
for image in widget.selected_images:
    do_something(image)

I haven't really thought about how best to name everything but that is the basic outline. This widget would mainly serve as a convenience for launching similar widgets for pdsview and pdsspect (yet to be created). However I think it would be best to start with this widget because it is the simplest of them all. Next should be pdsspect because that widget can actually do analysis and would be used the most. If a user wants to just look at an image they can use matplotlib so pdsview should take lowest priority.


Jupyter widgets will allow people to do their analysis in a notebook and it seems publishing that publishing notebooks may start to be a common thing (see LIGO), at least in the astronomy community. I love the idea of publishing notebooks as a the paper itself or as companion to a paper and allowing people to do their analysis within the notebook in a very explicit way would be awesome. I won't be able to start on this issue until late November or early December but if someone wants to get started feel free to assign the issue to yourself! The Model-View-Controller structure is already in place and hopefully it would be as simple as just creating jupyter widget views using the existing Model and Controller but I don't really know since I've never made a jupyter widget before. The model and controller may have to be adjusted to accommodate both a jupyter widget and a gui (essentially let's try to not have two MVCs/repeating code in the project).

pystamps doesn't work from the command line on OS X - IndexError

Pystamps has an IndexError on the command line no matter what arguments I provide.

pystamps
pystamps tests/mission_data/
pystamps tests/mission_data/*img
pystamps tests/mission_data/0047MH0000110010100214C00_DRCL.IMG

The error is as follows

 pystamps tests/mission_data/1p190678905erp64kcp2600l8c1.img
Traceback (most recent call last):
  File "/Users/godber/.virtualenvs/pystamsp/bin/pystamps", line 9, in <module>
    load_entry_point('pystamps==0.1.0', 'console_scripts', 'pystamps')()
  File "/Users/godber/Workspace/planetarypy/pystamps/pystamps/pystamps.py", line 525, in cli
    pystamps(args.file)
  File "/Users/godber/Workspace/planetarypy/pystamps/pystamps/pystamps.py", line 499, in pystamps
    display = MainWindow(image_set.images)
  File "/Users/godber/Workspace/planetarypy/pystamps/pystamps/pystamps.py", line 270, in __init__
    self.main_window_set()
  File "/Users/godber/Workspace/planetarypy/pystamps/pystamps/pystamps.py", line 277, in main_window_set
    title_height = self.images[0].title.height()
IndexError: list index out of range

Using python Python 2.7.10.

pip environment is

astropy==1.0.3
flake8==2.4.1
ginga==2.4.20150725031607
mccabe==0.3.1
numpy==1.9.2
pdsview==0.3.0
pep8==1.5.7
planetary-test-data==0.3.3
planetaryimage==0.2.0
pluggy==0.3.0
pvl==0.1.1
py==1.4.30
pyflakes==0.8.1
PySide==1.2.2
-e [email protected]:planetarypy/pystamps.git@9fbf88ecd843eec676a5335e5660fb8474ec3e5c#egg=pystamps-master
pytest==2.7.2
pytest-qt==1.5.0
pytz==2015.4
six==1.9.0
tox==2.1.1
virtualenv==13.1.0
wheel==0.23.0

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.