Skip to content

Commit 9b98221

Browse files
committed
Move Python implemention from practical-astronomy to its own repo.
1 parent 7480370 commit 9b98221

File tree

273 files changed

+40267
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

273 files changed

+40267
-1
lines changed

Makefile

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
default:
2+
@echo 'Targets:'
3+
@echo ' all'
4+
@echo ' test-easter'
5+
@echo ' test-day-number'
6+
@echo ' test-julian'
7+
@echo ' test-time'
8+
@echo ' test-coordinate'
9+
@echo ' test-sun'
10+
@echo ' test-planet-comet-binary'
11+
@echo ' test-moon'
12+
@echo ' test-eclipses'
13+
14+
all: test-easter test-day-number test-julian test-time test-coordinate test-sun test-planet-comet-binary test-moon test-eclipses
15+
16+
test-easter:
17+
@./test-date-of-easter.py -v
18+
19+
test-day-number:
20+
@./test-day-number.py
21+
22+
test-julian:
23+
@./test-julian.py
24+
25+
test-time:
26+
@./test-time.py
27+
28+
test-coordinate:
29+
@./test-coordinate.py
30+
31+
test-sun:
32+
@./test-sun.py
33+
34+
test-planet-comet-binary:
35+
@./test-planet-comet-binary.py
36+
37+
test-moon:
38+
@./test-moon.py
39+
40+
test-eclipses:
41+
@./test-eclipses.py

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
# practical-astronomy-python
1+
# practical-astronomy-python
2+
3+
Algorithms from "[Practical Astronomy with your Calculator or Spreadsheet](https://www.amazon.com/Practical-Astronomy-your-Calculator-Spreadsheet/dp/1108436072)" by Peter Duffett-Smith, implemented in Python 3. API documentation is published [here](https://jfcarr-astronomy.github.io/practical-astronomy-python/).
4+
5+
If you're interested in this topic, please buy the book! It provides far more detail and context.

docs-gen/Doxyfile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
PROJECT_NAME = "Practical Astronomy"
2+
OUTPUT_DIRECTORY = ..
3+
OPTIMIZE_OUTPUT_FOR_C = NO
4+
OPTIMIZE_OUTPUT_JAVA = YES
5+
OPTIMIZE_FOR_FORTRAN = NO
6+
OPTIMIZE_OUTPUT_VHDL = NO
7+
EXTRACT_ALL = YES
8+
EXTRACT_PRIVATE = YES
9+
HIDE_SCOPE_NAMES = YES
10+
INPUT = src ../lib
11+
USE_MDFILE_AS_MAINPAGE = README.md
12+
RECURSIVE = YES
13+
EXAMPLE_PATTERNS = *
14+
GENERATE_HTML = YES
15+
HTML_OUTPUT = docs/python
16+
DOCSET_FEEDNAME = "Doxygen generated docs"
17+
DOCSET_BUNDLE_ID = org.doxygen.Project
18+
DOCSET_PUBLISHER_ID = org.doxygen.Publisher
19+
DOCSET_PUBLISHER_NAME = Publisher
20+
GENERATE_TREEVIEW = YES
21+
GENERATE_LATEX = NO
22+
GENERATE_RTF = NO
23+
GENERATE_MAN = NO
24+
GENERATE_XML = NO
25+
GENERATE_DOCBOOK = NO
26+
CLASS_DIAGRAMS = YES
27+
HAVE_DOT = NO

docs-gen/Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
default:
2+
@echo 'Targets:'
3+
@echo ' view View documentation in Firefox.'
4+
@echo ' build-python Build documentation from Python sources.'
5+
6+
view: build-python
7+
@firefox ../docs/python/index.html &
8+
9+
build-python:
10+
@-rm -rf ../docs/python
11+
@doxygen
12+

docs-gen/src/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Welcome
2+
3+
Welcome to the documentation for Practical Astronomy.
4+
5+
This is an ongoing effort to implement, in Python 3, algorithms and spreadsheet functions from [Practical Astronomy with your Calculator or Spreadsheet](https://www.amazon.com/Practical-Astronomy-your-Calculator-Spreadsheet/dp/1108436072) by Peter Duffett-Smith. If you're interested in this topic, please buy the book! It provides far more detail and context.

docs-gen/src/glossary.md

Lines changed: 417 additions & 0 deletions
Large diffs are not rendered by default.

docs/index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<title>API documentation for Practical Astronomy</title>
6+
<meta name="viewport" content="width=device-width, initial-scale=1">
7+
<link rel="stylesheet" href="w3.css">
8+
</head>
9+
10+
<body>
11+
<div class="w3-container w3-center">
12+
<div class="w3-panel w3-card-2">
13+
<h1>API documentation for Practical Astronomy</h1>
14+
15+
<ul>
16+
<li><a href="python/index.html">Python</a></li>
17+
</ul>
18+
</div>
19+
</div>
20+
</body>
21+
22+
</html>

docs/python/bc_s.png

676 Bytes
Loading

docs/python/bdwn.png

147 Bytes
Loading

docs/python/closed.png

132 Bytes
Loading

0 commit comments

Comments
 (0)