Skip to content

Commit

Permalink
Merge branch 'fix-0.6'
Browse files Browse the repository at this point in the history
  • Loading branch information
pychabau committed May 10, 2019
2 parents 289010b + 71b5e3b commit 9533248
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ class CParameterStore

void Save( const std::string& path ) const;
void Load( const std::string& path );
void FromString(const std::string& json);

private:

Expand Down
6 changes: 6 additions & 0 deletions RedshiftLibrary/src/lib/processflow/parameterstore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -292,3 +292,9 @@ void CParameterStore::Load( const std::string& path )
{
bpt::json_parser::read_json( path, m_PropertyTree );
}

void CParameterStore::FromString(const std::string& json)
{
std::istringstream jsonstream(json);
bpt::json_parser::read_json(jsonstream, m_PropertyTree);
}
1 change: 1 addition & 0 deletions pyamazed/redshift.i
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ class CParameterStore {
public:
CParameterStore();
void Load( const std::string& path );
void FromString(const std::string & json);
void Save( const std::string& path ) const;
void Get( const std::string& name, std::string& out_str, std::string defaultValue = "" );
void Get( const std::string& name, Int64& out_int, Int64 defaultValue = 0 );
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

setup(
name="pyamazed",
version="0.6.0",
version="0.6.1",
author="LAM - Laboratoire d'Astrophysique de Marseille",
author_email="[email protected]",
description=("AMAZED python client."),
Expand Down
1 change: 1 addition & 0 deletions test.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello

0 comments on commit 9533248

Please sign in to comment.