Menu

Commit [r10429]  Maximize  Restore  History

An additional function is added, that converts a string (such as 'xxx * e-1') into a float.

This convert_string_to_float_patch file was attached to https://gna.org/task/?6847 by Michael
Bieri (https://gna.org/users/michaelbieri), in the zip file calc_modelfree.py_patch.tar.gz
(https://gna.org/support/download.php?file_id=7750).

This function is used to read in bond length or csa values set in settings window as float values.

The following changes were made to the patch:
converttofloat was renamed to convert_to_float to match relax' standards,
''' was replaced with """ (again a relax standard),
The single space at the start of the docstring header line was removed and a full stop added
(both are needed to meet the standard),
The docstring expanded,
Comments were added and the lines with '######################' removed.

bugman 2010-01-27

changed /branches/bieri_gui/gui_bieri/execution/calc_modelfree.py
/branches/bieri_gui/gui_bieri/execution/calc_modelfree.py Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.