From 0e5dd8cee911149fb7ecc4fc7e8f755a4f3c0e0e Mon Sep 17 00:00:00 2001 From: Don Cross Date: Sun, 7 Jul 2019 17:43:46 -0400 Subject: [PATCH] Include members-of-members in Python documentation. --- generate/makedoc | 2 +- source/python/README.md | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/generate/makedoc b/generate/makedoc index 161d0aae..6cf5b396 100755 --- a/generate/makedoc +++ b/generate/makedoc @@ -51,7 +51,7 @@ fi if [[ -f generate_py_docs ]]; then echo "Generating Python documentation." cd ../source/python || Fail "Error changing directory to ../source/python" - pydocmd simple astronomy+ > README.md || Fail "Error in pydocmd" + pydocmd simple astronomy++ > README.md || Fail "Error in pydocmd" cd ../../generate || Fail "Error changing directory back" fi diff --git a/source/python/README.md b/source/python/README.md index 90db0c55..cb0debaa 100644 --- a/source/python/README.md +++ b/source/python/README.md @@ -6,6 +6,20 @@ Time(self, ut) ``` Represents a date and time used for performing astronomy calculations. +### Make +```python +Time.Make(year, month, day, hour, minute, second) +``` +Creates a `Time` object from a UTC calendar date and time. + +:param year: The UTC 4-digit year value, e.g. 2019. +:param month: The UTC month in the range 1..12. +:param day: The UTC day of the month, in the range 1..31. +:param hour: The UTC hour, in the range 0..23. +:param minute: The UTC minute, in the range 0..59. +:param second: The real-valued UTC second, in the range [0, 60). +:rtype: `Time` + ## Observer ```python Observer(self, latitude, longitude, height=0)