Skip to content

Implement DaYun computation module with gender and solar term logic#3

Open
cto-new[bot] wants to merge 1 commit intoPvfrom
feat/dayun-qi-yun-age-gender-direction-solar-terms-10-step-sequence-tests
Open

Implement DaYun computation module with gender and solar term logic#3
cto-new[bot] wants to merge 1 commit intoPvfrom
feat/dayun-qi-yun-age-gender-direction-solar-terms-10-step-sequence-tests

Conversation

@cto-new
Copy link

@cto-new cto-new bot commented Oct 24, 2025

Summary

This PR introduces a computation module for DaYun (大运) sequencing, covering gender and solar-term logic for age-at-start and sequence generation.

Details

  • Implements 顺运/逆运 direction determination from heavenly stem and gender.
  • Calculates 起运 age using next/previous solar term and birth date.
  • Generates a contiguous 10-step DaYun sequence with year and age boundaries.
  • Provides comprehensive unit tests for directionality, age boundary, and error handling cases.
  • Updates README with usage and test instructions.

Warning: Task VM test is not passing, cto.new will perform much better if you fix the setup

… term logic

Add DaYun module supporting age-at-start (起运) calculation using solar term timing
and gender-based 顺运/逆运 (forward/reverse) logic. Provide 10-step DaYun sequence
generation with contiguous year boundaries and metadata.

- Computes direction based on heavenly stem and gender
- Calculates age at start from adjacent solar terms per bazi rules
- Generates full sequence including start/end dates and ages
- Includes thorough tests for main functionality and edge cases

This enables accurate generation of DaYun timelines for Bazi astrology applications.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants