Skip to content

Commit

Permalink
Many changes during late 2012. Implementation of wxpython GUI, partial
Browse files Browse the repository at this point in the history
implementation of Mac .app bundle mode, various minor improvements
  • Loading branch information
mperrin committed Jan 22, 2013
1 parent 2a6d263 commit 7479a1f
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 9 deletions.
7 changes: 7 additions & 0 deletions docsource/Makefile
Expand Up @@ -43,6 +43,13 @@ htmlstsci:
@echo "try :"
@echo " open http://www.stsci.edu/~mperrin/software/webbpsf/"

htmlprerelease:
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) ../Documentation/html
rsync -av ../Documentation/html/ nemesis.stsci.edu:web/software/webbpsf_prerelease/
@echo "Software built and copied to STScI prerelease"
@echo "try :"
@echo " open http://www.stsci.edu/~mperrin/software/webbpsf_prerelease/"



dirhtml:
Expand Down
3 changes: 1 addition & 2 deletions docsource/conf.py
Expand Up @@ -16,13 +16,12 @@
# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
sys.path.append(os.path.abspath('../lib'))

# -- General configuration -----------------------------------------------------

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions = ['sphinx.ext.autodoc', 'numpydoc','sphinx.ext.inheritance_diagram', 'sphinx.ext.pngmath']
extensions = ['sphinx.ext.autodoc', 'numpydoc','sphinx.ext.inheritance_diagram', 'sphinx.ext.pngmath', 'sphinx.ext.autosummary', 'sphinx.ext.graphviz']

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']
Expand Down
Binary file added docsource/fig_webbpsf_gui_tk.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docsource/fig_webbpsf_gui_wx.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 14 additions & 2 deletions setup.py
Expand Up @@ -3,6 +3,7 @@

setupargs = {
'name' : 'webbpsf',
'app' : 'WebbPSF',
'version' : "0.0.0", # will be replaced below
'description' : 'Create simulated point spread functions for the James Webb Space Telescope',
'fullname' : 'WebbPSF',
Expand All @@ -11,7 +12,7 @@
'url' : "http://www.stsci.edu/~mperrin/software/webbpsf",
'download_url' : "http://www.stsci.edu/~mperrin/software/webbpsf/webbpsf-0.0.0.tar.gz", # will be replaced below
'platforms' : ["Linux","Mac OS X", "Win"],
'requires' : ['pyfits','numpy', 'matplotlib', 'scipy', 'atpy','asciitable', 'poppy'],
'requires' : ['pyfits','numpy', 'matplotlib', 'scipy', 'asciitable', 'poppy'],
'packages' : ['webbpsf'],
'entry_points' : {'gui_scripts': ['webbpsfgui = webbpsf.gui',]}, # should create exe file on Windows?
'classifiers' : [
Expand Down Expand Up @@ -60,6 +61,17 @@






PY2APP_OPTIONS = {'argv_emulation': True,
'iconfile': 'webbpsf_icon.icns'}




# Now actually call setup

setup(**setupargs)
setup( options={'py2app':PY2APP_OPTIONS},
setup_requires=['py2app'],
**setupargs)
5 changes: 1 addition & 4 deletions webbpsf/convert_psfs_revV.py
@@ -1,11 +1,8 @@
#!/usr/bin/env python
#!/usr/bin/env python
import os, sys
import numpy as np
import matplotlib.pyplot as plt
import pywcs, pyfits
#import aplpy, atpy
#import RO.DS9
#from IPython.Debugger import Tracer; stop = Tracer()

import poppy

Expand Down
2 changes: 1 addition & 1 deletion webbpsf/wxgui.py
Expand Up @@ -1051,7 +1051,7 @@ def emit(self, record):

class LogFrame(wx.Frame):
def __init__(self, parent=None, id=-1, pos=None, size=(600,300)):
wx.Frame.__init__(self, parent, id=id, title="logging test", size=size,pos=pos)
wx.Frame.__init__(self, parent, id=id, title="WebbPSF tasks log", size=size,pos=pos)
#self.level = 4
log = wx.TextCtrl(self, style=wx.TE_MULTILINE)
sizer = wx.BoxSizer(wx.VERTICAL)
Expand Down
Binary file added webbpsf_icon.icns
Binary file not shown.
Binary file added webbpsf_icon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 7479a1f

Please sign in to comment.