Changes

Jump to navigation Jump to search

Relax 4.1.0

4 bytes added, 17:34, 20 February 2019
Converted all symbols to use wiki markup.
* lib.arg_check module: Protection of the functions against future numpy depreciations. The code 'arg == None' will not be supported by numpy in the future, if the arg being checked is a numpy object. Instead the 'arg is None' syntax must be used.
* RelaxErrors: Bug fix for the error message generation for list types. The simple_types and list_types variables are class rather than instance variables, but these were being unintentionally modified by the BaseArgError base class __init__() method.
* lib.compat module: Implementation of the Python version independent from_iterable() function. This will be used to avoid directly using itertools.chain.from_iterable(), which was only introduced in Python 2.6 and later. For Python >= ≥ 2.6, the itertools.chain.from_iterable() function is used, otherwise the roughly equivalent lib.compat.from_iterable_pre_2_6() function is used.
* lib.arg_check module: Redesign of the is_float_object() function to handle any data input. Previously the function could only handle max rank-2 Python lists (lists of lists), and max rank-2 numpy arrays. And only the first dimensionality was being checked. Now any rank list or numpy array is correctly handled.
* lib.arg_check module: Addition of the can_be_none argument to the is_bool() function.
* Python 3 fix for the combo list sequence elements. Comparison of integers to values of None are not allowed.
* Bug fix for "Tools->System information" GUI menu item. The user function has been renamed from sys_info to [http://www.nmr-relax.com/manual/system_sys_info.html system.sys_info].
* Python >= ≥ 3.4 fix by removing an unused types.ListType import.
* Bug fix allowing for spaces in file paths in the GUI open_file() function. This used by the file preview buttons and the results viewer window.
* Minor fixes for the relaxation curve-fitting sample script.
Trusted, Bureaucrats
4,223

edits

Navigation menu