NatLabRockies / NatLabRockies/SAM

Import/Export JSON and Code Generator

Open
#1,859 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.