save (method)

@date Created on Fri Mar 08 14:58:51 2018 @copyright (C) 2014-2015 EOMYS ENGINEERING. @author pierre_b

fix_file_name(save_path, obj)[source]
is_json_serializable(obj)[source]
has_as_dict(obj)[source]

Check if object has ‘as_dict’ method.

build_data(obj)[source]

Build a json serializable data structure of lists, dicts and pyleecan objects. Data that can not be serialized will be set to None. Tuples will also be None.

Parameters:obj – An object to serialize
Returns:A serializable data structure
Return type:data
save_data(obj, save_path='')[source]

Save the object to the save_path

Parameters:
  • self – A pyleecan object
  • save_path (str) – path to the folder to save the object
save(self, save_path='')[source]

Save the object to the save_path

Parameters:
  • self – A pyleecan object
  • save_path (str) – path to the folder to save the object