Skip to content

Commit

Permalink
Merge branch 'main' into plots_quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
AndyTza authored Mar 15, 2024
2 parents 9c2e523 + 8f0c7b7 commit 8e9c4ff
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 8e9c4ff

Please sign in to comment.