Skip to content

Commit

Permalink
quick fixes in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mfouesneau committed Oct 4, 2024
1 parent cc7d9cc commit 17f672a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,27 +36,31 @@ pip install git+https://github.com/mfouesneau/ezpadova

Manual installation

download the repository and run the setup
download the repository and pip install from it

```python setup.py install```
```python
git clone https://github.com/mfouesneau/ezpadova
cd ezpadova
python -m pip install .
```


EXAMPLE USAGE (deprecated)
-------------

* Basic example of downloading a sequence of isochrones, plotting, saving
```python
>>> from ezpadova import parsec
>>> r = parsec.get_t_isochrones(6.0, 7.0, 0.05, 0.02)
>>> from ezpadova import get_t_isochrones
>>> r = get_t_isochrones(6.0, 7.0, 0.05, 0.02)

>>> import pylab as plt
>>> plt.scatter(r['logT'], r['logL'], c=r['logA'], edgecolor='None')
>>> plt.show()

>>> r.write('myiso.fits')
```

* getting only one isochrone
```python
>>> r = parsec.get_one_isochrone(1e7, 0.02, model='parsec12s', phot='spitzer')
>>> from ezpadova import get_one_isochrone
>>> r = get_one_isochrone(1e7, 0.02, model='parsec12s', phot='spitzer')
```
6 changes: 3 additions & 3 deletions doc/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Installation
git clone https://github.com/mfouesneau/ezpadova
cd ezpadova
python setup.py intall
python -m pip install .
Example usage (deprecated)
Expand All @@ -65,7 +65,7 @@ Example usage (deprecated)
.. code-block:: python
from ezpadova import get_t_isochrones
r = parsec.get_t_isochrones(6.0, 7.0, 0.05, 0.02)
r = get_t_isochrones(6.0, 7.0, 0.05, 0.02)
import pylab as plt
plt.scatter(r['logT'], r['logL'], c=r['logA'], edgecolor='None')
Expand All @@ -76,7 +76,7 @@ Example usage (deprecated)
.. code-block:: python
from ezpadova import get_one_isochrone
r = parsec.get_one_isochrone(1e7, 0.02, model='parsec12s', phot='spitzer')
r = get_one_isochrone(1e7, 0.02, model='parsec12s', phot='spitzer')
Contents
Expand Down

0 comments on commit 17f672a

Please sign in to comment.