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.
Files changed (24) hide show
  1. {thresholdfloor-0.2.2/src/thresholdfloor.egg-info → thresholdfloor-0.2.5}/PKG-INFO +1 -1
  2. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/pyproject.toml +1 -1
  3. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/floor_sigil.py +1 -1
  4. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/threshold_floor.py +11 -6
  5. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5/src/thresholdfloor.egg-info}/PKG-INFO +1 -1
  6. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/LICENSE +0 -0
  7. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/MANIFEST.in +0 -0
  8. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/README.md +0 -0
  9. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/setup.cfg +0 -0
  10. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/__init__.py +0 -0
  11. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/aether_thresher.py +0 -0
  12. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/assets_bundle.pkl +0 -0
  13. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/bundle.py +0 -0
  14. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/elevation.py +0 -0
  15. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/shadow_calibration.py +0 -0
  16. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/shadow_simulation.py +0 -0
  17. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/tests/__init__.py +0 -0
  18. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/tests/test_geometric.py +0 -0
  19. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/tests/test_solar.py +0 -0
  20. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor/tests/test_threshold.py +0 -0
  21. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor.egg-info/SOURCES.txt +0 -0
  22. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor.egg-info/dependency_links.txt +0 -0
  23. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor.egg-info/requires.txt +0 -0
  24. {thresholdfloor-0.2.2 → thresholdfloor-0.2.5}/src/thresholdfloor.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: thresholdfloor
3
- Version: 0.2.2
3
+ Version: 0.2.5
4
4
  Summary: A floor below for tuning to what's above
5
5
  Author: WitchMithras
6
6
  License: Proprietary (staging)
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "thresholdfloor"
7
- version = "0.2.2"
7
+ version = "0.2.5"
8
8
  description = "A floor below for tuning to what's above"
9
9
  requires-python = ">=3.11"
10
10
  dependencies = [
@@ -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 output_path
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, "gnomon_x", 0.0),
390
- base_y=getattr(self, "gnomon_y", 0.0),
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 = 15,
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
- timestamp = self._timestamp_string(timestamp)
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 = self._timestamp_string(timestamp)
485
+ if timestamp is None:
486
+ timestamp = self.now()
482
487
 
483
488
  shadow = self.simulate_shadow(
484
489
  timestamp=timestamp,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: thresholdfloor
3
- Version: 0.2.2
3
+ Version: 0.2.5
4
4
  Summary: A floor below for tuning to what's above
5
5
  Author: WitchMithras
6
6
  License: Proprietary (staging)
File without changes
File without changes
File without changes