nfp.preprocessing.preprocessor.load_from_json

load_from_json(obj, data)[source]

Function to set member attributes from json data recursively.

Parameters
  • obj (Any) – the class to initialize

  • data (Dict) – a dictionary of potentially nested attribute - value pairs

Returns

The object, with attributes set to those from the data file.

Return type

Any