Skip to content

Commit

Permalink
adjust naming convention for deconvoluted model
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnaChristina committed Sep 10, 2023
1 parent 4137a39 commit 9c23d03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ncem/tl/fit/backend/design_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,7 @@ def get_dmats_from_deconvoluted(
dmat_columns = [
col if col.startswith(PREFIX_INDEX) else PREFIX_INDEX + x + col for col in dmats[x].design_info.column_names
]
dmat_columns = [f"{x.split('[')[0]}{x.split('[')[1].split(']')[-1]}" for x in dmat_columns]
dmats[x] = pd.DataFrame(np.asarray(dmats[x]), index=obs.index, columns=dmat_columns)
return dmats

Expand Down

0 comments on commit 9c23d03

Please sign in to comment.