File tree Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Expand file tree Collapse file tree 1 file changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -37,24 +37,25 @@ Install the requirments for predicing in the current Conda environment:
37
37
38
38
$ pip install -r requirements.txt
39
39
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
-
47
40
## Usage
48
41
49
42
``` python
50
- from deepexo import rockyplanet
51
-
52
- # Kepler-78b
43
+ from deepexo.rockyplanet import RockyPlanet
44
+ # Keplar-78b
53
45
M = 1.77 # mass in Earth masses
54
46
R = 1.228 # radius in Earth radii
55
47
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" )
58
59
```
59
60
## References
60
61
[ https://www.science.org/doi/10.1126/science.abg8794 ] ( https://www.science.org/doi/10.1126/science.abg8794 )
You can’t perform that action at this time.
0 commit comments