anhaidgroup / py_entitymatching

BSD 3-Clause "New" or "Revised" License
184 stars 48 forks source link

Update error strings in pickles.py #57

Open kvpradap opened 7 years ago

kvpradap commented 7 years ago
  1. In the following code in save_object function,

if not isinstance(file_path, six.string_types): logger.error('Input file path is not of type string') raise AssertionError('Input file path is not of type string')

Update the error string with the input file path.

  1. In the following code in load_object function, if not isinstance(file_path, six.string_types): logger.error('Input file path is not of type string') raise AssertionError('Input file path is not of type string')

Update the error string with the input file path.

  1. In the following code in load_table function,

    if not isinstance(data_frame, pd.DataFrame): logging.error('Input object is not of type pandas DataFrame') raise AssertionError('Input object is not of type pandas DataFrame')

Update the error string with the type of input data frame.

  1. In the following code in save_table,

    if not isinstance(metadata_ext, six.string_types): logger.error('Input metadata ext is not of type string') raise AssertionError('Input metadata ext is not of type string')

Update the error string with the input metadata extension.

  1. In the following code in load_table,

    if not isinstance(file_path, six.string_types): logger.error('Input file path is not of type string') raise AssertionError('Input file path is not of type string')

Update the error string with input file path

  1. In the following code in load_table

    if not isinstance(metadata_ext, six.string_types): logger.error('Input metadata ext is not of type string') raise AssertionError('Input metadata ext is not of type string')

Update the error string with metadata ext.