diff --git a/hics/incremental_correlation.py b/hics/incremental_correlation.py index ace7d52..1f862bd 100644 --- a/hics/incremental_correlation.py +++ b/hics/incremental_correlation.py @@ -40,6 +40,9 @@ def _update_relevancy_table(self, new_relevancies): def _update_redundancy_table(self, new_weights, new_redundancies): current_redundancies, current_weights = self.result_storage.get_redundancies() + current_weights = current_weights.loc[new_weights.index, new_weights.columns] + current_redundancies = current_redundancies.loc[new_redundancies.index, new_redundancies.columns] + current_redundancies[current_weights < 1] = np.inf current_redundancies = np.minimum(new_redundancies, current_redundancies) diff --git a/setup.py b/setup.py index b9f735c..6825523 100644 --- a/setup.py +++ b/setup.py @@ -2,12 +2,12 @@ setup( - name='hics', - version='0.18', - author='Marcus Pappik', - install_requires=[ - 'pandas', - 'numpy' - ], - packages=['hics'] + name='hics', + version='0.19', + author='Marcus Pappik', + install_requires=[ + 'pandas', + 'numpy' + ], + packages=['hics'] )