Skip to content

Commit

Permalink
it's maybe working
Browse files Browse the repository at this point in the history
  • Loading branch information
smribet committed Jan 19, 2025
1 parent 0af513c commit d78035e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions py4DSTEM/tomography/tomography.py
Original file line number Diff line number Diff line change
Expand Up @@ -1171,22 +1171,11 @@ def _solve_for_indicies(
ind_real_bincount_weight = ind_real_bincount_weight[ind_real_bincount > 0]
ind_real_bincount = ind_real_bincount[ind_real_bincount > 0]

# factor = ind_real_bincount_weight_norm.sum() / ind_real_bincount_weight.sum()

# ind_real_bincount_weight_norm[ind_real_bincount_weight == 0] = 0
ind_real_bincount_weight[ind_real_bincount_weight == 0] = 1
# ind_real_bincount_weight_norm[ind_real_bincount_norm == 0] = 0
# ind_real_bincount_norm[ind_real_bincount_norm == 0] = 1

# correction_factor_real = (
# ind_real_bincount_weight_norm
# / ind_real_bincount_weight
# * ind_real_bincount_norm
# / ind_real_bincount
# )

correction_factor_real = ind_real_bincount_weight_norm / ind_real_bincount_weight
# correction_factor_real = 1 / ind_real_bincount_weight

correction_factor_real = np.repeat(correction_factor_real, ind_real_bincount)
sorted_indicies = np.argsort(np.argsort(ind_real.ravel()))
Expand Down Expand Up @@ -1228,8 +1217,6 @@ def _solve_for_indicies(
correction_factor_diff = (
ind_diff_bincount_weight_norm
/ ind_diff_bincount_weight
# / ind_diff_bincount_norm
# * ind_diff_bincount
)

correction_factor_diff = np.repeat(correction_factor_diff, ind_diff_bincount)
Expand Down

0 comments on commit d78035e

Please sign in to comment.