planetarypy / pystamps Goto Github PK
View Code? Open in Web Editor NEWThis project forked from percurnicus/pystamps
Python PDS image thumnbail browser.
License: BSD 3-Clause "New" or "Revised" License
This project forked from percurnicus/pystamps
Python PDS image thumnbail browser.
License: BSD 3-Clause "New" or "Revised" License
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).
Add a Open pdsspect
button like Open Selected in pdssview
button
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.