Skip to content

Commit

Permalink
remove unnecessary IPython import
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisbrookner committed Dec 1, 2023
1 parent 8a1c99f commit 9fbf178
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/matchmaps/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
from functools import partial
from pathlib import Path

from IPython import embed

import gemmi
import numpy as np
import reciprocalspaceship as rs
Expand Down Expand Up @@ -617,7 +615,7 @@ def _realspace_align_and_subtract(
else:
fg_fixed = fg_off.clone()
pdb_fixed = pdboff.clone()

# Use models to align grids
# align_grids_from_model_transform is a light wrapper around gemmi.interpolate_grid_of_aligned_model2
fg_off = align_grids_from_model_transform(
Expand All @@ -630,7 +628,7 @@ def _realspace_align_and_subtract(
# These grids contain mostly zeros (as governed by the radius supplied above)
# Store the locations of these zeros as a boolean array so we can ignore them
loose_mask = np.invert(fg_on.array == 0)

# Normalize the non-zero values in each grid
fg_on.array[loose_mask] = _quicknorm(fg_on.array[loose_mask])
fg_off.array[loose_mask] = _quicknorm(fg_off.array[loose_mask])
Expand Down

0 comments on commit 9fbf178

Please sign in to comment.