NatLabRockies / NatLabRockies/SAM

Create .sam file from PySAM JSON

Open
#2,065 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
486
Forks
219
Avg merge
10h 10m
Merged PRs (30d)
2

Description

Is your feature request related to a problem? Please describe.

Yes. I want to be able to export .sam files based on PySAM JSON inputs I have constructed programmatically, so that users can import the programmatically generated cases into the SAM GUI on their own.

Describe the solution you'd like

A Python function that takes a set of PySAM JSON files and returns a corresponding .sam file.

Describe alternatives you've considered

I've already written code which displays the SAM data in my own program. However I would like users to be able to independently run the SAM case themselves to verify results or make their own modifications in SAM.

I have searched documentation/the Internet to see if this is already possible, and have not been able to find any answers.

I have considered reverse-engineering the .sam file format to see if it's feasible to generate it myself but it being a binary file means this is likely a much greater task than I can take on with available resourcing.

Additional context

See my profile for relevant work (GEOPHIRES) and links to contact info - happy to chat offline.

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

No implementation file, test, or entry point is identified in the issue. Start by locating the PySAM JSON handling and SAM GUI’s .sam import/export path, then determine the format requirements and conversion coverage. Done means a Python callable converts the supported JSON inputs into a .sam file that SAM imports successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
json, python
Domain
desktop, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.