Author: bugman Date: Thu Feb 5 14:59:36 2015 New Revision: 27545 URL: http://svn.gna.org/viewcvs/relax?rev=27545&view=rev Log: Created the empty statistics user function class. This adds the infrastructure for creating the statistics user functions. Added: trunk/user_functions/statistics.py Modified: trunk/user_functions/__init__.py Modified: trunk/user_functions/__init__.py URL: http://svn.gna.org/viewcvs/relax/trunk/user_functions/__init__.py?rev=27545&r1=27544&r2=27545&view=diff ============================================================================== --- trunk/user_functions/__init__.py (original) +++ trunk/user_functions/__init__.py Thu Feb 5 14:59:36 2015 @@ -79,6 +79,7 @@ 'spectrum', 'spin', 'state', + 'statistics', 'structure', 'sys_info', 'wildcards', @@ -137,6 +138,7 @@ import user_functions.spectrum import user_functions.spin import user_functions.state + import user_functions.statistics import user_functions.structure import user_functions.sys_info import user_functions.value Added: trunk/user_functions/statistics.py URL: http://svn.gna.org/viewcvs/relax/trunk/user_functions/statistics.py?rev=27545&view=auto ============================================================================== --- trunk/user_functions/statistics.py (added) +++ trunk/user_functions/statistics.py Thu Feb 5 14:59:36 2015 @@ -0,0 +1,36 @@ +############################################################################### +# # +# Copyright (C) 2015 Edward d'Auvergne # +# # +# This file is part of the program relax (http://www.nmr-relax.com). # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see <http://www.gnu.org/licenses/>. # +# # +############################################################################### + +# Module docstring. +"""The statistics user function definitions.""" + +# relax module imports. +from user_functions.data import Uf_info; uf_info = Uf_info() + + +# The user function class. +uf_class = uf_info.add_class('statistics') +uf_class.title = "Class containing the statistics related functions." +uf_class.menu_text = "&statistics" +uf_class.gui_icon = "oxygen.actions.office-chart-pie" + + +