Re-add mistakenly removed method for loading a config from file#492
Re-add mistakenly removed method for loading a config from file#492
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughThis PR re-adds the Changes
Sequence DiagramsequenceDiagram
participant Caller
participant CONFIG
participant IO Module
participant YAML Parser
Caller->>CONFIG: load_from_file(config_file)
CONFIG->>IO Module: read file
IO Module-->>CONFIG: file content or FileNotFoundError
CONFIG->>YAML Parser: parse YAML
YAML Parser-->>CONFIG: config_dict
CONFIG->>CONFIG: _apply_config_dict(config_dict)
CONFIG->>CONFIG: update Modeling, Solving, Plotting, etc.
CONFIG-->>Caller: CONFIG class (for chaining)
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Description
Re-add mistakenly removed method for loading a config from file
Type of Change
Related Issues
Closes #(issue number)
Testing
Checklist
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.