Hi,

You will need to use some of the python unittest framework methods.
These include self.assert_(), self.assertEqual(), and
self.assertAlmostEqual().  You have access to these for within the
tests as they derive from SystemTestCase which itself derives from
unittest.TestSuite (the python 'unittest' module).  So you will have
to use these to check values.  Just have a look at the other system
tests to see how this is done.

Regards,

Edward



On 24 June 2011 12:50, Han Sun <[email protected]> wrote:
> Hi Edward,
>
> I found that if the system passes, there is no print out any more. And then
> it is difficult for me to see whether the atom position is correct or not.
> How can I change this?
>
> Best,
> Han
>
> On Jun 24, 2011, at 12:17 PM, Edward d'Auvergne wrote:
>
>> Hi,
>>
>> I think we have to make the assumption that atoms are numbered
>> consecutively in the file.  It's impossible otherwise.  Now that the
>> tests pass, it would be good to make sure that things are properly
>> loaded.  For example you could add to the test_read_xyz_internal1 and
>> test_read_xyz_internal2 tests code for checking the atomic positions.
>> It would be also good to test if bond vectors can also be correctly
>> extracted.  For example see the code in test_read_pdb_internal1().
>> Once the atomic positions and bond vectors can be correctly extracted,
>> then the XYZ file reading should be complete.  That includes multiple
>> atomic positions verses and averaged position, and multiple vectors,
>> when there are more than one model loaded.  It's very close though.
>>
>> Regards,
>>
>> Edward
>>
>>
>>
>> On 24 June 2011 12:02, Han Sun <[email protected]> wrote:
>>>
>>> Hi Edward,
>>> now the system test passed for loading a desired model or all models of a
>>> molecule. And it also works for loading a specific atom and all atoms.
>>> But
>>> it won't work for loading all protons or carbons since there is no atom
>>> name. And the only specific one is the atom number in xyz file.
>>> Best,
>>> Han
>>>
>>> On Jun 24, 2011, at 11:09 AM, Edward d'Auvergne wrote:
>>>
>>> Debugging the user function load_spins() in generic_fns/structure/main.py
>>> for a proper residue check as suggest in:
>>> https://mail.gna.org/public/relax-devel/2011-06/msg00231.html.
>>>
>
>

_______________________________________________
relax (http://nmr-relax.com)

This is the relax-devel mailing list
[email protected]

To unsubscribe from this list, get a password
reminder, or change your subscription options,
visit the list information page at
https://mail.gna.org/listinfo/relax-devel

Reply via email to