Skip to content

Commit

Permalink
get PptxChainClass.py up-to-date with staging-develop
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersFreund committed Feb 13, 2019
1 parent 56f4468 commit 80aa678
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion quantipy/sandbox/pptx/PptxChainClass.py
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,13 @@ def sig_test(self):
# Get the sig testing
sig_df = self.prepare_dataframe()
sig_df = sig_df.get_propstest()
self._sig_test = sig_df.df.values.tolist()
_sig_test = sig_df.df.values.tolist()

# Assume that all items in the list of sig tests has same length
check_list = map(lambda x: len(x), _sig_test)
assert check_list.count(check_list[0]) == len(check_list), 'List of sig test results is not uniform'

self._sig_test = [zip(*_sig_test)[i] for i in range(len(_sig_test[0]))]
return self._sig_test

@property
Expand Down

0 comments on commit 80aa678

Please sign in to comment.