.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "auto_tutorials/multiple_targets/multi_target_analysis.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_auto_tutorials_multiple_targets_multi_target_analysis.py: ##################### Multi-Target Analysis ##################### As with plotting, analysis can be performed in exactly the same way as with a single target - :meth:`~ATK.Models.DataSet.apply` will apply all **data methods** across all containers in the :class:`~ATK.Models.DataSet`: .. GENERATED FROM PYTHON SOURCE LINES 7-15 .. code-block:: Python from ATK import query targets = [5346631922949364864, 6050296829033196032] asassn_query = query("lightcurve", targets=targets, survey="asassn", path="multiple_lightcurves.fits.gz") folded_data = asassn_query.apply("fold", fmin=0, fmax=60, samples=100000, inplace=False) folded_data.open() .. raw:: html
Bokeh Figure


.. GENERATED FROM PYTHON SOURCE LINES 31-36 | | | .. rubric:: Download this Tutorial .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 21.698 seconds) .. _sphx_glr_download_auto_tutorials_multiple_targets_multi_target_analysis.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: multi_target_analysis.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: multi_target_analysis.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: multi_target_analysis.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_