MilesCranmer commited on
Commit
875c5aa
1 Parent(s): 563d8eb

Fix units example

Browse files
Files changed (1) hide show
  1. docs/examples.md +3 -3
docs/examples.md CHANGED
@@ -494,9 +494,9 @@ To do this, we need to use the format of [DynamicQuantities.jl](https://symbolic
494
  ```python
495
  # Get numerical arrays to fit:
496
  X = pd.DataFrame(dict(
497
- M=M.value,
498
- m=m.value,
499
- r=r.value,
500
  ))
501
  y = F.value
502
 
 
494
  ```python
495
  # Get numerical arrays to fit:
496
  X = pd.DataFrame(dict(
497
+ M=M.to("M_sun").value,
498
+ m=m.to("kg").value,
499
+ r=r.to("R_earth").value,
500
  ))
501
  y = F.value
502