Skip to content

Commit

Permalink
remove duplicate lines
Browse files Browse the repository at this point in the history
  • Loading branch information
gcroci2 committed Nov 16, 2023
1 parent 564967c commit b6350c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 13 deletions.
1 change: 0 additions & 1 deletion tests/molstruct/test_structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,3 @@ def test_serialization_fork():
assert loaded_structure.get_chain("A").get_residue(0) == structure.get_chain("A").get_residue(0)
assert loaded_structure.get_chain("A").get_residue(0).amino_acid == structure.get_chain("A").get_residue(0).amino_acid
assert loaded_structure.get_chain("A").get_residue(0).atoms[0] == structure.get_chain("A").get_residue(0).atoms[0]
assert loaded_structure.get_chain("A").get_residue(0).atoms[0] == structure.get_chain("A").get_residue(0).atoms[0]
13 changes: 6 additions & 7 deletions tests/utils/test_exporters.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@
import h5py
import pandas as pd

from deeprank2.utils.exporters import (HDF5OutputExporter,
OutputExporterCollection,
ScatterPlotExporter,
TensorboardBinaryClassificationExporter)
from deeprank2.utils.exporters import (
HDF5OutputExporter,
OutputExporterCollection,
ScatterPlotExporter,
TensorboardBinaryClassificationExporter,
)

logging.getLogger(__name__)

Expand Down Expand Up @@ -148,6 +150,3 @@ def test_hdf5_output(self): # pylint: disable=too-many-locals
# assert there are 6 columns ('phase', 'epoch', 'entry', 'output', 'target', 'loss')
assert df_test_1[df_test_1.phase == pass_name_1].shape[1] == 6
assert df_test_2[df_test_2.phase == pass_name_2].shape[1] == 6
# assert there are 6 columns ('phase', 'epoch', 'entry', 'output', 'target', 'loss')
assert df_test_1[df_test_1.phase == pass_name_1].shape[1] == 6
assert df_test_2[df_test_2.phase == pass_name_2].shape[1] == 6
9 changes: 4 additions & 5 deletions tests/utils/test_grid.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import h5py
import numpy as np

from deeprank2.query import (ProteinProteinInterfaceAtomicQuery,
ProteinProteinInterfaceResidueQuery)
from deeprank2.query import (
ProteinProteinInterfaceAtomicQuery,
ProteinProteinInterfaceResidueQuery,
)
from deeprank2.utils.grid import Grid, GridSettings, MapMethod


Expand Down Expand Up @@ -100,6 +102,3 @@ def test_atomic_grid_orientation(): # pylint: disable=too-many-locals

assert grid.zs.shape == target_zs.shape
assert np.all(np.abs(grid.zs - target_zs) < coord_error_margin), f"\n{grid.zs} != \n{target_zs}"

assert grid.zs.shape == target_zs.shape
assert np.all(np.abs(grid.zs - target_zs) < coord_error_margin), f"\n{grid.zs} != \n{target_zs}"

0 comments on commit b6350c5

Please sign in to comment.