Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add by_band kwarg to batch, allow each lightcurve band to be processed independently #327

Merged
merged 15 commits into from
Dec 21, 2023
6 changes: 3 additions & 3 deletions docs/examples/rrlyr-period.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"periodogram = Periodogram(peaks=1, nyquist=0.1, max_freq_factor=10, fast=False)\n",
"\n",
"# Use r band only\n",
"df = ens.batch(periodogram, band_to_calc='r')\n",
"df = ens.batch(periodogram, band_to_calc='r').compute()\n",
"display(df)\n",
"\n",
"# Find RR Lyr with the most confient period\n",
Expand Down Expand Up @@ -121,13 +121,13 @@
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"pygments_lexer": "ipython3",
"version": "3.10.11"
},
"vscode": {
Expand Down
2 changes: 1 addition & 1 deletion docs/gettingstarted/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"source": [
"from tape.analysis import calc_sf2\n",
"result = ens.batch(calc_sf2, sf_method=\"macleod_2012\") # The batch function applies the provided function to all individual lightcurves within the Ensemble\n",
"result"
"result.compute()"
]
},
{
Expand Down
1 change: 1 addition & 0 deletions docs/tutorials.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ functionality.
Scaling to Large Data Volume <tutorials/scaling_to_large_data>
Working with Structure Function <tutorials/working_with_structure_function>
Binning Sources in the Ensemble <tutorials/binning_slowly_changing_sources>
Batch Function Showcase <tutorials/batch_showcase>
Structure Function Showcase <tutorials/structure_function_showcase>
Loading Data into the Ensemble <tutorials/tape_datasets>
Using Ray with the Ensemble <tutorials/using_ray_with_the_ensemble>
Loading