Skip to content

Commit 2cae114

Browse files
committed
update
1 parent 5059d46 commit 2cae114

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

README.md

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,24 +37,25 @@ Install the requirments for predicing in the current Conda environment:
3737

3838
$ pip install -r requirements.txt
3939

40-
### Step 6:
41-
Open `Jupyter Notebook` and load the file `MDN_two_planets_prediction.ipynb`:
42-
43-
$ jupyter notebook
44-
45-
At this point you are ready to start investigating the interiors of rocky exoplanets!
46-
4740
## Usage
4841

4942
```python
50-
from deepexo import rockyplanet
51-
52-
# Kepler-78b
43+
from deepexo.rockyplanet import RockyPlanet
44+
# Keplar-78b
5345
M = 1.77 # mass in Earth masses
5446
R = 1.228 # radius in Earth radii
5547
cFeMg = 0.685 # bulk Fe/(Mg + Si) (molar ratio)
56-
57-
48+
k2 = 0.819 # tide Love number
49+
50+
planet_params = [
51+
M,
52+
R,
53+
cFeMg,
54+
k2,
55+
]
56+
rp = RockyPlanet()
57+
pred = rp.predict(planet_params)
58+
rp.plot(pred, save=True, filename="pred.png")
5859
```
5960
## References
6061
[https://www.science.org/doi/10.1126/science.abg8794](https://www.science.org/doi/10.1126/science.abg8794)

0 commit comments

Comments
 (0)