diff --git a/documentation/source/developers/introduction.rst b/documentation/source/developers/introduction.rst index 9ab776035c..43cdd62626 100644 --- a/documentation/source/developers/introduction.rst +++ b/documentation/source/developers/introduction.rst @@ -4,6 +4,16 @@ Introduction The :mod:`rmgpy` package contains all of the functionality of RMG. +RMG-Py naming conventions in brief: + +* module names are in lowercase +* Class and Exception names start with capital letters (e.g., CamelCase) +* all instances of Classes are mixed-case and begin with lower-case letters (e.g., camelCase) + + + `Python style guide `_. In general, refer to this for guidance. + + Dependencies ============ diff --git a/rmgpy/transportDataTest.py b/rmgpy/transportDataTest.py index 095976cb0b..12981e4c2e 100644 --- a/rmgpy/transportDataTest.py +++ b/rmgpy/transportDataTest.py @@ -120,8 +120,8 @@ def test_getCollisionFrequency(self): M = P / constants.R / T mu = 1.0 omega = self.transport.getCollisionFrequency(T, M, mu) - self.assertAlmostEqual(omega / 3.13010e10, 1.0, 4) - + self.assertAlmostEqual(omega / 1.17737e10, 1.0, 4) + def test_pickle(self): """ Test that a TransportData object can be pickled and unpickled with no loss of information.