Skip to content

Commit c41a2b4

Browse files
committed
Added features to docs.
1 parent 3bfe14c commit c41a2b4

4 files changed

Lines changed: 24 additions & 3 deletions

File tree

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,17 @@ from immanuel import charts
4444
native = charts.Subject(
4545
date_time='2000-01-01 10:00',
4646
latitude='32n43',
47-
longitude='117w09'
47+
longitude='117w09',
48+
)
49+
50+
# or, alternatively...
51+
52+
from datetime import datetime
53+
54+
native = charts.Subject(
55+
date_time=datetime(2000, 1, 1, 10, 0, 0),
56+
latitude=32.71667,
57+
longitude=-117.15,
4858
)
4959

5060
natal = charts.Natal(native)
@@ -182,6 +192,7 @@ Which will output each of the chart's objects in this format:
182192
"seconds": 45
183193
},
184194
"out_of_bounds": false,
195+
"in_sect": true,
185196
"dignities": {
186197
"ruler": false,
187198
"exalted": false,

docs/4-data.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ The core of any chart, the `objects` property is a dict of Python objects repres
167167
"seconds": 45
168168
},
169169
"out_of_bounds": false,
170+
"in_sect": true,
170171
"dignities": {
171172
"ruler": false,
172173
"exalted": false,
@@ -192,6 +193,7 @@ The core of any chart, the `objects` property is a dict of Python objects repres
192193
Some differences between object types include:
193194

194195
* Only planets get dignities & a score.
196+
* Only the traditional seven planets get an `in_sect` boolean.
195197
* Houses, primary angles, and fixed stars do not have `out_of_bounds` or `movement` (retrograde / stationary / direct).
196198
* Houses alone have a `size` measured in degrees.
197199

docs/5-settings.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,16 @@ Defaults:
155155
}
156156
```
157157

158+
### `angle_precision`
159+
160+
Rounding for formatted angles. This only applies to stringified object output and to the `formatted` key of any angle attributes. Available options:
161+
162+
* `calc.SECOND`
163+
* `calc.MINUTE`
164+
* `calc.DEGREE`
165+
166+
Default: `calc.SECOND`
167+
158168
### `house_system`
159169

160170
Which house system to use. Available options:

immanuel/classes/wrap.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,6 @@ def __str__(self) -> str:
183183

184184

185185
class Object:
186-
# def __init__(self, object: dict, objects: dict = None, houses: dict = None, is_daytime: bool = None, obliquity: float = None) -> None:
187186
def __init__(
188187
self,
189188
object: dict,
@@ -242,7 +241,6 @@ def __init__(
242241
self.dignities = DignityState(object=object, dignity_state=dignity_state)
243242
self.score = dignity.score(dignity_state)
244243

245-
246244
def __str__(self) -> str:
247245
formatted = _('{name} {longitude} in {sign}').format(
248246
name=self.name,

0 commit comments

Comments
 (0)