Skip to content

default behavior for Python to SST conversion #9

@researcherben

Description

@researcherben

@srkohn says

In converting parameters from Python to SST, the default “give up” converter used to convert to a JSON string. Your new behavior creates a JSON string and then re-parses it to a Python dict. Is there some reason for this change?

I believe that SST converts an unknown data structure into a string, so the data value is passed to C++ as a stringified Python dict. I don’t know how to parse that string in C++. Python’s string converter and JSON are incompatible, so I cannot use the default JSON parser I used before.

The work-around is to convert the parameter to a JSON string before passing the parameter to ahp_graph, so I can get it to work, but I’d like to understand the motivation.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions