Skip to content
This repository has been archived by the owner on Jan 14, 2025. It is now read-only.

Commit

Permalink
Simplify "Working with the Ensemble" Notebook (#401)
Browse files Browse the repository at this point in the history
* Streamline Working with the Ensemble Notebook

* Add diagrams of the Ensemble API structure

* Centered images and modified links

* Fix typos
  • Loading branch information
wilsonbb authored Mar 15, 2024
1 parent 0448c67 commit 8f0c7b7
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 620 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 17 additions & 7 deletions docs/tutorials/batch_showcase.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@
"import sys"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": []
},
{
"cell_type": "code",
"execution_count": null,
Expand Down Expand Up @@ -550,12 +545,27 @@
"res_otsu.compute()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Using light-curve package features\n",
"`Ensemble.batch()` also supports the use of [light-curve](https://pypi.org/project/light-curve/) package feature extractor:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
"source": [
"import light_curve as licu\n",
"\n",
"extractor = licu.Extractor(licu.Amplitude(), licu.AndersonDarlingNormal(), licu.StetsonK())\n",
"# band_to_calc=None will ignore the band column and use all sources for each object\n",
"res = ens.batch(extractor, band_to_calc=\"g\")\n",
"res.compute()"
]
}
],
"metadata": {
Expand All @@ -574,7 +584,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.11"
"version": "3.10.13"
},
"vscode": {
"interpreter": {
Expand Down
Loading

0 comments on commit 8f0c7b7

Please sign in to comment.