Skip to content

Generate the cycling style in the integration test - #39

Open
biodranik wants to merge 1 commit into
masterfrom
ab/cycling-style
Open

Generate the cycling style in the integration test#39
biodranik wants to merge 1 commit into
masterfrom
ab/cycling-style

Conversation

@biodranik

@biodranik biodranik commented Aug 14, 2026

Copy link
Copy Markdown
Member

Should be merged together with organicmaps/organicmaps#13330

The main repo gained a fourth style family (cycling), so full_drules_gen.py covered 6 of its 8 style variants.

The style/variant matrix is now derived from a tuple instead of spelling out every path — the layout is uniform, and the hardcoded dict was what made adding a family easy to forget. vehicle stays last: every style rewrites visibility.txt and classificator.txt in the data dir, and the apps ship the ones the vehicle style produces.

README updated (6 → 8 themes).

Testing

cd integration-tests
python3 full_drules_gen.py -d <omim>/data -o drules --txt

generates all 8 variants, exit 0. ruff check clean, python -m unittest discover -s tests passes 57/57.

Generated with LLM assistance.

@strump strump left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The main repo gained a fourth style family, so full_drules_gen.py covered
6 of its 8 style variants.

Derive the style/variant matrix from a tuple instead of spelling out every
path: the layout is uniform, and the hardcoded dict was what made adding a
family easy to forget. Vehicle stays last, as every style overwrites
visibility.txt and classificator.txt in the data dir and the apps ship the
ones the vehicle style produces.

Generated with LLM assistance.

Signed-off-by: Alexander Borsuk <me@alex.bio>
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.

2 participants