Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from astropy.table import Table, Column | |
from astropy.table.ndarray_mixin import NdarrayMixin, NdarrayMixinInfo | |
from astropy.io.registry import UnifiedReadWriteMethod | |
from astropy.table.connect import TableRead, TableWrite | |
from astropy.table.info import serialize_method_as | |
def fmt_func(val): |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
table { | |
table-layout: fixed; | |
border-collapse: collapse; | |
border: 3px solid black; | |
} | |
th, td { | |
padding: 5px; | |
border: 1px solid black; | |
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import division, print_function | |
from astropy import table | |
from astropy.table import Table | |
from collections import OrderedDict | |
t = Table([['a', 'a', 'a', 'b', 'b', 'c'], | |
[1, 2, 3, 4, 5, 6], | |
[2, 2, 1, 2, 1, 1]], | |
names=('name', 'value', 'weight')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ~/.ipython/profile_default/startup/10-mystartup.py | |
import numpy as np | |
ip = get_ipython() | |
def import_astropy(self, arg): | |
ip.ex('import astropy') | |
ip.ex('print(astropy.__version__)') | |
ip.ex('from astropy.io import ascii') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
skadev-unagi$ python | |
iActivePython 2.7.1.4 (ActiveState Software Inc.) based on | |
Python 2.7.1 (r271:86832, Feb 7 2011, 11:30:54) | |
[GCC 4.0.2 20051125 (Red Hat 4.0.2-8)] on linux2 | |
Type "help", "copyright", "credits" or "license" for more information. | |
po>>> import astropy | |
astropy.test() | |
WARNING: ConfigurationChangedWarning: The configuration options in astropy 1.0rc2 may have changed, your configuration file was not updated in order to preserve local changes. A new configuration template has been saved to '/home/aldcroft/.astropy/config/astropy.1.0rc2.cfg'. [astropy.config.configuration] | |
>>> astropy.test() | |
========================================================== test session starts =========================================================== |
NewerOlder