Skip to content

Commit

Permalink
using float64 instead of float32. No real difference in the final res…
Browse files Browse the repository at this point in the history
…ults but internally it may cause an assertion error, which is pretty much happening due to precision, see issue 14 (May 17, 2024)
  • Loading branch information
acycliq committed Oct 25, 2024
1 parent f8a83ed commit bc4580b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pciSeq/src/core/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ def spots_to_cell(self):
nN = self.nN
nS = self.spots.data.gene_name.shape[0]

wSpotCell = np.zeros([nS, nN], dtype=np.float32)
wSpotCell = np.zeros([nS, nN], dtype=np.float64)
gn = self.spots.data.gene_name.values
expected_counts = self.single_cell.log_mean_expression.loc[gn].values
logeta_bar = self.genes.logeta_bar[self.spots.gene_id]
Expand Down

0 comments on commit bc4580b

Please sign in to comment.