diff --git a/python/avogadro/cjson.py b/python/avogadro/cjson.py index 5fffd371d4..7d07468d63 100644 --- a/python/avogadro/cjson.py +++ b/python/avogadro/cjson.py @@ -59,7 +59,7 @@ def set_atoms_coordinates(self, filePath, coords_array): ''' data = self.__from_cjson(filePath) data["atoms"]["coords"]["3d"] = coords_array - return data + return self.__to_cjson(data) def set_elements(self, filePath, elements_array): ''' It sets all the elements present in the cjson file @@ -67,7 +67,7 @@ def set_elements(self, filePath, elements_array): ''' data = self.__from_cjson(filePath) data["atoms"]["elements"]["number"] = elements_array - return data + return self.__to_cjson(data) def set_coordinates(self, filePath, coords_array): ''' It helps to set all coordinates of the @@ -76,4 +76,4 @@ def set_coordinates(self, filePath, coords_array): ''' data = self.__from_cjson(filePath) data["atoms"]["coords"]["3d"] = coords_array - return data \ No newline at end of file + return self.__to_cjson(data) \ No newline at end of file