PyQuantimClient 1.0.47__tar.gz → 1.0.48__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyQuantimClient
3
- Version: 1.0.47
3
+ Version: 1.0.48
4
4
  Summary: Python client to access quantIM services
5
5
  Author: Daniel Velasquez
6
6
  Author-email: daniel.velasquez@sura-im.com
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: PyQuantimClient
3
- Version: 1.0.47
3
+ Version: 1.0.48
4
4
  Summary: Python client to access quantIM services
5
5
  Author: Daniel Velasquez
6
6
  Author-email: daniel.velasquez@sura-im.com
@@ -4,7 +4,7 @@ setup(
4
4
  name='PyQuantimClient',
5
5
  packages=['PyQuantimClient'],
6
6
  package_dir={'PyQuantimClient': 'src'},
7
- version='1.0.47',
7
+ version='1.0.48',
8
8
  description='Python client to access quantIM services',
9
9
  author='Daniel Velasquez',
10
10
  author_email='daniel.velasquez@sura-im.com',
@@ -84,7 +84,7 @@ class risk_data(quantim):
84
84
  dfs = None
85
85
  return dfs
86
86
 
87
- def load_limits_params(self, file_path, encoding='utf-8'):
87
+ def load_limits_params(self, file_path, encoding='latin-1'):
88
88
  '''
89
89
  Load limits parameters file to s3.
90
90
  '''
@@ -101,9 +101,9 @@ class risk_data(quantim):
101
101
 
102
102
  # Read new file:
103
103
  try:
104
- df_new = pd.read_csv(file_path, sep=sep, encoding="utf-8")
104
+ df_new = pd.read_csv(file_path, sep=sep, encoding=encoding)
105
105
  except:
106
- df_new = pd.read_csv(file_path, sep=sep, encoding="latin-1")
106
+ raise ValueError("Cannot read file. Check path and encoding.")
107
107
 
108
108
  # Load data
109
109
  payload = df_new.to_dict(orient='records')