NatLabRockies / NatLabRockies/SAM
Import/Export JSON and Code Generator
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 486
- Forks
- 219
- Avg merge
- 10h 10m
- Merged PRs (30d)
- 2
Description
The "Keyboard Shortcuts" topic under "Reference" in Help lists several recently added shortcut keys for importing and exporting case inputs to and from JSON. These were originally implemented for internal use:
- Ctrl-F5 Save case inputs as JSON
- Ctrl-F6 Load case inputs from JSON file
- Ctrl-F7 Save case inputs as JSON for SSC
- Ctrl-F8 Load case inputs from JSON for SSC file
- Ctrl-F9 Load case inputs from JSON for SSC file and run simulation
Need to test and provide more usable ways to access these features.
Considerations:
- Add "Export to JSON" and "Import from JSON" commands to Case menu to make it easier for users to find
- Export additional metadata to JSON such as performance/financial model name, SAM/ssc version number, etc.
- Compare to code generator options, and consider replacing code generator with these tools. "Export to JSON" command on Case menu could replace "Generate code"
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the Keyboard Shortcuts topic under Reference and the existing Ctrl-F5–Ctrl-F9 import/export commands. Compare those commands with the Case menu and code generator options, then clarify the metadata and replacement scope; done requires an agreed, tested, discoverable workflow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, json
- Domain
- desktop, tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 28/100