-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #290 from arcondello/response_serialize
SampleSet.to_serializable and SampleSet.from_serializable
- Loading branch information
Showing
5 changed files
with
233 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
include dimod/io/bqm_json_schema.json | ||
include dimod/io/sampleset_json_schema.json | ||
recursive-include dimod/roof_duality/src *.hpp *.cpp | ||
recursive-include dimod/roof_duality *.cpp *.pyx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"$schema": "http://json-schema.org/draft-04/schema#", | ||
"title": "sample set schema", | ||
"type": "object", | ||
"required": ["record", | ||
"info", | ||
"variable_labels", | ||
"variable_type", | ||
"version"], | ||
"properties": { | ||
"record": { | ||
"type": "object", | ||
"required": ["sample", | ||
"energy", | ||
"num_occurrences"] | ||
}, | ||
"info": { | ||
"type": "object" | ||
}, | ||
"variable_labels": { | ||
"type": "array", | ||
"items": { | ||
"type": ["integer", "string", "array"], | ||
"minimum": 0 | ||
} | ||
}, | ||
"variable_type": { | ||
"type":"string", | ||
"enum":["SPIN", "BINARY"] | ||
}, | ||
"version": { | ||
"type": "object", | ||
"required": ["sampleset_schema", "dimod"], | ||
"properties": { | ||
"sampleset_schema": { | ||
"enum":["1.0.0"] | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters