mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-27 00:45:53 +01:00
[PR #1543] character_census: pass model dict in model_row, dedup mesh issues, trim paths, atomic writes (CHARACTER-CENSUS-ROW-AND-ATOMIC-IO) #1572
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#1572
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/1543
Author: @IlyassRS3
Created: 11/25/2026
Status: 🔄 Open
Base:
main← Head:fix/character-census-row-and-atomic-io📝 Commits (1)
f1929f9character_census: pass model dict in model_row, dedup mesh issues, trim manifest paths, atomic writes📊 Changes
2 files changed (+115 additions, -14 deletions)
View changed files
📝
tests/test_character_census.py(+71 -0)📝
tools/character_census.py(+44 -14)📄 Description
What changed
modelinstead of outputrowinmodel_row()(tools/character_census.py:model_row,_bones):model_row()previously passed the blank outputrowdictionary to_kind(),_bones(), and_skin_8(), causing top-levelIsFragment,HasBoneBindings,skin_8, andskin_influenceskeys in amodel.jsonto be silently ignored._bones()also avoids duplicating itsmodel/manifestcheck whenrow is model.tools/character_census.py:model_row):_mesh_count()runs up to three times (vertices, triangles, indices) over the samemesheslist, previously repeating identical"mesh N is not an object"and"mesh N index count is not a non-negative integer"issues on a single row.tools/character_census.py:_entry_path): strip surrounding whitespace from string/dict path entries and returnNonefor blank strings (""/" ") so blank entries are reported cleanly instead of resolved as filesystem paths.tools/character_census.py:write_csv,write_json,main): stage reports through sibling temp files with explicitnewline=, preserve permissions viafile_mode.published_mode, publish withreplace_retry.replace, enforceallow_nan=Falseon JSON output, clean up temp files on error, and catchValueErroralongsideOSErrorinmain().tests/test_character_census.py): added 4 synthetic regression tests covering every fix above.Claimed in the coordination issue as:
CHARACTER-CENSUS-ROW-AND-ATOMIC-IO(#14 reached GitHub's 2,500-comment cap with no successor coordination issue open yet; checked #14 and open PRs — 0 claims and 0 open PRs touchtools/character_census.py)How it was tested
python3 -I -W error tests/test_character_census.py: 27/27 passed (0 warnings).python3 -I tests/test_text_write_line_endings.py: 3/3 passed.python3 -I scripts/check_no_game_data.py tools/character_census.py tests/test_character_census.py: passed.python3 -m compileall -q tools/character_census.py tests/test_character_census.py: passed.main:tools/character_census.py: all 4 new tests fail (FAILED (failures=3, errors=1)), all 23 baseline tests pass.Metadata
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.