Skip to content

Commit

Permalink
m
Browse files Browse the repository at this point in the history
  • Loading branch information
regislachaume committed Oct 27, 2020
1 parent b15dc56 commit e8bb776
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ the standards

## Installation

Site-wide installation will be performed with `sudo -H pip3 install oifits` on unix-like systems.
Site-wide installation will be performed with `sudo -H pip3 install pyoifits` on unix-like systems.

At a user level, within a [virtual environment](https://docs.python.org/3/library/venv.html "venv package"), `pip3 install oifits`.
At a user level, within a [virtual environment](https://docs.python.org/3/library/venv.html "venv package"), `pip3 install pyoifits`.

## Short example

Expand All @@ -24,7 +24,10 @@ data2 = oifits.read('file2.fits')

data = data1 + data2

tab = data.to_table()
tab, C = data.to_table(correlations='numpy')
val = tab['value']
err = tab['error']
covar = C * np.outer(err, err)
```

There is also a short [demo](https://github.com/loqueelvientoajuarez/oifits/blob/master/demo/intro.ipynb "Jupyter notebook demo").
11 changes: 11 additions & 0 deletions demo/intro.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,17 @@
"print(C)"
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [],
"source": [
"val = tab['value']\n",
"err = tab['error']\n",
"cov = C * np.outer(err,err)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
4 changes: 1 addition & 3 deletions pyoifits/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,4 @@

from .oifits import *

__version__ = "0.3"


__version__ = "0.4"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_version():
long_description_content_type='text/markdown',
classifiers=[
"Programming Language :: Python :: 3",
"Development Status :: 2 - Pre-Alpha ",
"Development Status :: 3 - Alpha",
"Operating System :: OS Independent",
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering :: Astronomy",
Expand Down

0 comments on commit e8bb776

Please sign in to comment.