thresholdfloor 0.2.2__tar.gz → 0.2.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {thresholdfloor-0.2.2/src/thresholdfloor.egg-info → thresholdfloor-0.2.5}/PKG-INFO +1 -1
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/pyproject.toml +1 -1
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/floor_sigil.py +1 -1
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/threshold_floor.py +11 -6
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5/src/thresholdfloor.egg-info}/PKG-INFO +1 -1
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/LICENSE +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/MANIFEST.in +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/README.md +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/setup.cfg +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/__init__.py +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/aether_thresher.py +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/assets_bundle.pkl +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/bundle.py +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/elevation.py +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/shadow_calibration.py +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/shadow_simulation.py +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/tests/__init__.py +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/tests/test_geometric.py +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/tests/test_solar.py +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/tests/test_threshold.py +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor.egg-info/SOURCES.txt +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor.egg-info/dependency_links.txt +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor.egg-info/requires.txt +0 -0
- {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor.egg-info/top_level.txt +0 -0
|
@@ -460,7 +460,7 @@ def tf_sigil(floor, size=400):
|
|
|
460
460
|
output_path = full_path.replace(".png", "_heathered.png")
|
|
461
461
|
bundle_put_image(output_path, img, fmt="PNG")
|
|
462
462
|
#show_sigil(output_path)
|
|
463
|
-
return
|
|
463
|
+
return img
|
|
464
464
|
|
|
465
465
|
|
|
466
466
|
def show_sigil(image_key: str) -> str:
|
|
@@ -385,15 +385,17 @@ class ThresholdFloor:
|
|
|
385
385
|
self.wheel_speed = 1.0
|
|
386
386
|
self.shadow_marks = []
|
|
387
387
|
self.east_west_calibration = None
|
|
388
|
+
self.gnomon_height = 1.0
|
|
388
389
|
self.gnomon = Gnomon(
|
|
389
|
-
base_x=getattr(self, "
|
|
390
|
-
base_y=getattr(self, "
|
|
390
|
+
base_x=getattr(self, "latitude", 0.0)
|
|
391
|
+
base_y=getattr(self, "longitude", 0.0)
|
|
391
392
|
height=getattr(self, "gnomon_height", 1.0),
|
|
392
393
|
)
|
|
394
|
+
self.shadow_calibration_spacing_minutes = 100
|
|
393
395
|
|
|
394
396
|
def add_three_shadow_marks_from_now(
|
|
395
397
|
self,
|
|
396
|
-
spacing_minutes: int =
|
|
398
|
+
spacing_minutes: int = self.shadow_calibration_spacing_minutes,
|
|
397
399
|
):
|
|
398
400
|
"""
|
|
399
401
|
Simulate three shadow marks:
|
|
@@ -440,8 +442,8 @@ class ThresholdFloor:
|
|
|
440
442
|
"""
|
|
441
443
|
Simulate one shadow from the floor's current gnomon.
|
|
442
444
|
"""
|
|
443
|
-
|
|
444
|
-
|
|
445
|
+
if timestamp is None:
|
|
446
|
+
timestamp = self.now()
|
|
445
447
|
|
|
446
448
|
beam = self.observe(timestamp)
|
|
447
449
|
sun = beam.get("sun") if beam else None
|
|
@@ -461,6 +463,8 @@ class ThresholdFloor:
|
|
|
461
463
|
if sun_altitude_deg <= 0:
|
|
462
464
|
return None
|
|
463
465
|
|
|
466
|
+
timestamp = self._timestamp_string(timestamp)
|
|
467
|
+
|
|
464
468
|
return project_shadow_tip(
|
|
465
469
|
self.gnomon,
|
|
466
470
|
sun_azimuth_deg=sun_azimuth_deg,
|
|
@@ -478,7 +482,8 @@ class ThresholdFloor:
|
|
|
478
482
|
Simulate a shadow, measure its tip, and add it as a calibration mark.
|
|
479
483
|
"""
|
|
480
484
|
|
|
481
|
-
timestamp
|
|
485
|
+
if timestamp is None:
|
|
486
|
+
timestamp = self.now()
|
|
482
487
|
|
|
483
488
|
shadow = self.simulate_shadow(
|
|
484
489
|
timestamp=timestamp,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|