Skip to content

Commit

Permalink
separate into demo and cli scripts (#178)
Browse files Browse the repository at this point in the history
* separate into demo and cli scripts

* demo testing nb

* demo testing nb

* update demo nb

* add a date of fit param

* adler day draft script

* linting

* adler cli now runs adler_run.py

* phase curve fig file name

* add new CLI args

* update adler command

* update docs for new sigma_clip

---------

Co-authored-by: Steph Merritt <[email protected]>
  • Loading branch information
jrob93 and astronomerritt authored Nov 20, 2024
1 parent a067291 commit 2942783
Show file tree
Hide file tree
Showing 18 changed files with 1,977 additions and 370 deletions.
Binary file added adler-day-testing.db
Binary file not shown.
6 changes: 3 additions & 3 deletions docs/notebooks/outlier_detection_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@
"outputs": [],
"source": [
"# astropy sigma_clip normally uses the median as the central function\n",
"utils.sigma_clip(res, {\"cenfunc\": \"median\"})"
"utils.sigma_clip(res, cenfunc=\"median\", maxiters=1)"
]
},
{
Expand All @@ -188,7 +188,7 @@
"outputs": [],
"source": [
"# assuming that the model is the ground truth, we use zero as the centroid for the residuals\n",
"utils.sigma_clip(res, {\"cenfunc\": utils.zero_func})"
"utils.sigma_clip(res, cenfunc=utils.zero_func, maxiters=1)"
]
},
{
Expand Down Expand Up @@ -296,7 +296,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.13"
"version": "3.9.19"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 2942783

Please sign in to comment.