1
0
mirror of https://github.com/gsi-upm/senpy synced 2025-10-24 04:08:19 +00:00

Added data folder configuration

Closes #46
This commit is contained in:
J. Fernando Sánchez
2017-11-22 17:46:52 +01:00
parent 19278d0acd
commit 778746c5e8
8 changed files with 63 additions and 26 deletions

View File

@@ -6,7 +6,7 @@ logger = logging.getLogger(__name__)
class CentroidConversion(EmotionConversionPlugin):
def __init__(self, info):
def __init__(self, info, *args, **kwargs):
if 'centroids' not in info:
raise Error('Centroid conversion plugins should provide '
'the centroids in their senpy file')
@@ -33,7 +33,7 @@ class CentroidConversion(EmotionConversionPlugin):
ncentroids[aliases.get(k1, k1)] = nv1
info['centroids'] = ncentroids
super(CentroidConversion, self).__init__(info)
super(CentroidConversion, self).__init__(info, *args, **kwargs)
self.dimensions = set()
for c in self.centroids.values():