Ejemplo n.º 1
0
    def test_no_deprecation(self, universe, instruction):
        """Test that the warnings are not issued when they should not.

        See issue #1476.
        """
        with no_deprecated_call():
            exec(instruction)  #pylint: disable=W0122
    def test_no_deprecation(self, universe, instruction):
        """Test that the warnings are not issued when they should not.

        See issue #1476.
        """
        with no_deprecated_call():
            exec(instruction)  #pylint: disable=W0122
Ejemplo n.º 3
0
 def test_chi1_nodep(self, PSFDCD):
     with no_deprecated_call():
         sel = PSFDCD.segments[0].residues[12].chi1_selection()  # LYS
Ejemplo n.º 4
0
 def test_omega_nodep(self, PSFDCD):
     with no_deprecated_call():
         osel = PSFDCD.segments[0].residues[7].omega_selection()
Ejemplo n.º 5
0
 def test_psi_nodep(self, PSFDCD):
     with no_deprecated_call():
         psisel = PSFDCD.segments[0].residues[9].psi_selection()
Ejemplo n.º 6
0
 def test_SegmentGroup_nowarn_getitem(self, u):
     with no_deprecated_call():
         u.segments[0]
Ejemplo n.º 7
0
 def test_AtomGroup_nowarn_segids_attribute(self, u):
     with no_deprecated_call():
         getattr(u.atoms, 'segids')
Ejemplo n.º 8
0
 def test_AtomGroup_nowarn_getitem_index(self, u):
     with no_deprecated_call():
         u.atoms[0]