Skip to content

Instantly share code, notes, and snippets.

View ehsteve's full-sized avatar
👋

Steven Christe ehsteve

👋
View GitHub Profile
@ehsteve
ehsteve / gist:b6fdf94ef57b3ee0bcca
Created June 23, 2015 14:14
SunPy WCSaxes error
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-5-0b9ff5d8fd9d> in <module>()
3 smap = sunpy.map.Map('/Users/schriste/Desktop/sunpy_test_img/XRT20141211_184138.4.fits')
4 fig = plt.figure()
----> 5 smap.plot()
6 txt = "min={min}, max={max}, $\mu$={mean}, $\sigma$={std}".format(min=int(smap.min()),
7 max=int(smap.max()),
/Users/schriste/Developer/repositories/sunpy/sunpy/visualization/visualization.pyc in fn_itoggle(*args, **kwargs)
@ehsteve
ehsteve / gist:593831fa43b574d22b8e
Created June 10, 2015 19:00
sunpy py.test hash errors
py.test
============================================================================= test session starts ==============================================================================
platform darwin -- Python 2.7.10 -- py-1.4.26 -- pytest-2.6.4
collected 879 items
astropy_helpers/astropy_helpers/sphinx/ext/tests/test_autodoc_enhancements.py .
astropy_helpers/astropy_helpers/sphinx/ext/tests/test_automodapi.py .......
astropy_helpers/astropy_helpers/sphinx/ext/tests/test_automodsumm.py ..
astropy_helpers/astropy_helpers/sphinx/ext/tests/test_docscrape.py ...........................
astropy_helpers/astropy_helpers/sphinx/ext/tests/test_utils.py .
@ehsteve
ehsteve / gist:92adf54f0f4a3da36a24
Created October 7, 2014 16:27
SunPy Astropy-helpers: python setup.py build_sphinx
python setup.py build_sphinx
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
running build_sphinx
creating /Users/schriste/Developer/repositories/sunpy-cadair/sunpy/doc/source/_build
creating /Users/schriste/Developer/repositories/sunpy-cadair/sunpy/doc/source/_build/doctrees
creating /Users/schriste/Developer/repositories/sunpy-cadair/sunpy/doc/source/_build/html
creating /Users/schriste/Developer/repositories/sunpy-cadair/sunpy/doc/source/_static
running build
running build_py
running egg_info
@ehsteve
ehsteve / gist:65309ce2497b5ce3f553
Created October 7, 2014 16:26
SunPy Astropy-helpers: python setup.py test
python setup.py test
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.9.sdk/usr/include/c++/4.2.1
Freezing version number to sunpy/version.py
running test
running build
running build_py
creating build
creating build/lib.macosx-10.5-x86_64-2.7
creating build/lib.macosx-10.5-x86_64-2.7/sunpy
copying sunpy/__init__.py -> build/lib.macosx-10.5-x86_64-2.7/sunpy
ginga-sunpy
Traceback (most recent call last):
File "/Users/schriste/anaconda/bin/ginga-sunpy", line 5, in <module>
pkg_resources.run_script('sunpy-ginga==0.1dev', 'ginga-sunpy')
File "/Users/schriste/anaconda/lib/python2.7/site-packages/pkg_resources.py", line 505, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/Users/schriste/anaconda/lib/python2.7/site-packages/pkg_resources.py", line 1245, in run_script
execfile(script_filename, namespace, namespace)
File "/Users/schriste/anaconda/lib/python2.7/site-packages/sunpy_ginga-0.1dev-py2.7.egg/EGG-INFO/scripts/ginga-sunpy", line 11, in <module>
from ginga import main
@ehsteve
ehsteve / gist:62c96e507127277956da
Created June 17, 2014 17:11
GOES Class HEK SunPy
tstart = '2012/07/12 07:23:56'
tend = '2012/07/14 12:40:29'
event_type = hek.attrs.EventType('FL')
conditions = (hek.attrs.OBS.Instrument == 'GOES') and (hek.attrs.FRM.Name == 'SWPC')
result = client.query(hek.attrs.Time(tstart,tend), event_type, conditions)
for res in result:
print(res.get('fl_goescls'))
@ehsteve
ehsteve / sunpy_mac_install.rst
Created September 6, 2011 22:27 — forked from SabrinaSavage/sunpy_mac_install.rst
SunPy Mac Python Installation instructions

Installing Python on Mac OSx

Using Macports

Macports is a free/open source package management system that simplifies the installation of other free/open source software referred to as ports. Macports installs itself and its ports in /opt/local. Activating a port places links to the port software in the expected location on the drive wherever that may be. Due to the fact that Mac Os X already comes with its own version of Python (which can change without warning during a software update to the OS) installing SunPy and its dependencies can be a challenge. Macports provides a good solution to this problem. This tutorial follows the one provided by Thomas Robitaille (astrofrog on Github).

Before you start you'll need to install Xcode which is the freely available developer environment provided by Apple. You can find it in the Mac App Store. Just a warning, it is a rather large download but provides compilers which are necessary for Macpor

@ehsteve
ehsteve / sunpy_mac_install.rst
Created September 5, 2011 17:27
SunPy Mac Python Installation instructions

Installing Python on Mac OSx

Using Macports

Macports is a free/open source package management system that simplifies the installation of other free/open source software referred to as ports. Macports installs itself and its ports in /opt/local. Activating a port places links to the port software in the expected location on the drive wherever that may be. Due to the fact that Mac Os X already comes with its own version of Python (which can change without warning during a software update to the OS) installing SunPy and its dependencies can be a challenge. Macports provides a good solution to this problem. This tutorial follows the one provided by Thomas Robitaille (astrofrog on Github).

Before you start you'll need to install Xcode which is the freely available developer environment provided by Apple. You can find it in the Mac App Store. Just a warning, it is a rather large download but provides compilers which are necessary for Macpor