Author: bugman
Date: Mon Sep 8 17:53:44 2014
New Revision: 25681
URL: http://svn.gna.org/viewcvs/relax?rev=25681&view=rev
Log:
Created a simple script for printing out the names of all user functions.
Added:
trunk/devel_scripts/uf_list.py
Added: trunk/devel_scripts/uf_list.py
URL:
http://svn.gna.org/viewcvs/relax/trunk/devel_scripts/uf_list.py?rev=25681&view=auto
==============================================================================
--- trunk/devel_scripts/uf_list.py (added)
+++ trunk/devel_scripts/uf_list.py Mon Sep 8 17:53:44 2014
@@ -0,0 +1,11 @@
+
+# relax module imports.
+import user_functions
+from user_functions.data import Uf_info; uf_info = Uf_info()
+
+# Set up the user functions.
+user_functions.initialise()
+
+# Loop over all user functions and print out their name.
+for uf_name, uf in uf_info.uf_loop():
+ print(uf_name)
_______________________________________________
relax (http://www.nmr-relax.com)
This is the relax-commits 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-commits