diff --git a/examples/The_Basics.ipynb b/examples/The_Basics.ipynb index 1b5b502894ccd4c3ceb167c47154c13253026f7c..66ee2d2af40d19cc2b053972b6decae316a0f02e 100644 --- a/examples/The_Basics.ipynb +++ b/examples/The_Basics.ipynb @@ -76,7 +76,8 @@ { "cell_type": "markdown", "metadata": { - "toc-hr-collapsed": true + "toc-hr-collapsed": true, + "toc-nb-collapsed": true }, "source": [ "# Installation " @@ -604,6 +605,33 @@ "print(a.x, a.y, a.z)" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "## Variable number of arguments functions" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Java and Orekit are for some methods using a variable number of inputs, identified as ... in the API. For example the:\n", + "\n", + " BooleanDetector.andCombine(EventDetector... detectors) \n", + " \n", + "method in Java. To use this in Python, the variable arguments are placed in a list [], like: \n", + "\n", + " BooleanDetector.andCombine([illumination_detector, el_detector])" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "markdown", "metadata": {},