Skip to content

Minor improvements to dataset tests#864

Draft
ecomodeller wants to merge 3 commits intomainfrom
explore
Draft

Minor improvements to dataset tests#864
ecomodeller wants to merge 3 commits intomainfrom
explore

Conversation

@ecomodeller
Copy link
Member

No description provided.

- Fix typo: test_decribe -> test_describe
- Fix incorrect comment: "no Bar item" -> "no Baz item"
- Improve documentation for deprecated test cases
@ecomodeller ecomodeller changed the title Minor improvements to tetsts Minor improvements to dataset tests Nov 25, 2025
Replace YAML-based parsing with direct PFS file parser that converts
PFS format directly to Python dictionaries. This eliminates the yaml
dependency and improves parsing efficiency.

Key changes:
- Remove yaml import and YAML-related functions
- Implement direct line-by-line parser with stack-based section tracking
- Add support for multiline string values (detected by unbalanced quotes)
- Implement quote-aware comma splitting for list values
- Parse values to appropriate types (int, float, bool, str, list)
- Handle special cases: pipe-delimited paths, MULTIPOLYGON, empty values
- Validate malformed PFS files (invalid bracket patterns)
- Preserve all existing functionality including non-unique keys/sections

All 85 PFS tests pass successfully.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

1 participant