Charestlab / pyGLMdenoise

python implementation of GLMdenoise
6 stars 6 forks source link

simplify output structure of fitting parallel job #49

Open JasperVanDenBosch opened 5 years ago

JasperVanDenBosch commented 5 years ago
        self.results['PCA_R2s'] = np.vstack(
            np.asarray(np.asarray(PCresults)[:, 0])).astype(float)
        self.results['PCA_R2_runs'] = np.asarray(np.asarray(PCresults)[:, 1])
        self.results['PCA_weights'] = np.asarray(np.asarray(PCresults)[:, 2])

These end up being ndarray dtype=object, some containing numpy matrix as values