Skip to content

Commit

Permalink
Fix lines missing from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dwhswenson committed Apr 11, 2021
1 parent eb0c208 commit d59f90e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 2 additions & 1 deletion contact_map/contact_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ def plot(self, cmap='seismic', vmin=-1.0, vmax=1.0, with_colorbar=True,

# Check the number of pixels of the figure
self._check_number_of_pixels(fig)
self.plot_axes(ax=ax, cmap=cmap, vmin=vmin, vmax=vmax)
self.plot_axes(ax=ax, cmap=cmap, vmin=vmin, vmax=vmax,
with_colorbar=with_colorbar)

return (fig, ax)

Expand Down
8 changes: 2 additions & 6 deletions contact_map/contact_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -600,15 +600,11 @@ def _contact_map(self, trajectory, frame_number, residue_query_atom_idxs,

@property
def atom_contacts(self):
n_atoms = self.topology.n_atoms
return ContactCount(self._atom_contacts, self.topology.atom,
n_atoms, n_atoms)
raise NotImplementedError()

@property
def residue_contacts(self):
n_res = self.topology.n_residues
return ContactCount(self._residue_contacts, self.topology.residue,
n_res, n_res)
raise NotImplementedError()


CONTACT_MAP_ERROR = (
Expand Down

0 comments on commit d59f90e

Please sign in to comment.