예제 #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
예제 #3
0
 def test_chi1_nodep(self, PSFDCD):
     with no_deprecated_call():
         sel = PSFDCD.segments[0].residues[12].chi1_selection()  # LYS
예제 #4
0
 def test_omega_nodep(self, PSFDCD):
     with no_deprecated_call():
         osel = PSFDCD.segments[0].residues[7].omega_selection()
예제 #5
0
 def test_psi_nodep(self, PSFDCD):
     with no_deprecated_call():
         psisel = PSFDCD.segments[0].residues[9].psi_selection()
예제 #6
0
 def test_SegmentGroup_nowarn_getitem(self, u):
     with no_deprecated_call():
         u.segments[0]
예제 #7
0
 def test_AtomGroup_nowarn_segids_attribute(self, u):
     with no_deprecated_call():
         getattr(u.atoms, 'segids')
예제 #8
0
 def test_AtomGroup_nowarn_getitem_index(self, u):
     with no_deprecated_call():
         u.atoms[0]