"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/compat.py" between
relax-4.1.3.src.tar.bz2 and relax-5.0.0.src.tar.bz2

About: relax allows the study of molecular dynamics through the analysis of experimental NMR data. Organic molecules, proteins, RNA, DNA, sugars, and other biomolecules are all supported.

compat.py  (relax-4.1.3.src.tar.bz2):compat.py  (relax-5.0.0.src.tar.bz2)
skipping to change at line 121 skipping to change at line 121
import pickle import pickle
# Numpy. # Numpy.
import numpy import numpy
try: try:
numpy.linalg.norm(numpy.ones((3, 3)), axis=1) numpy.linalg.norm(numpy.ones((3, 3)), axis=1)
numpy_norm_axis = True numpy_norm_axis = True
except: except:
numpy_norm_axis = False numpy_norm_axis = False
# Linux distribution information.
try:
from platform import linux_distribution
except ImportError:
try:
from distro import linux_distribution
except ImportError:
def linux_distribution(): return [None]
def bz2_open(file, mode='r'): def bz2_open(file, mode='r'):
"""Abstract the numerous ways BZ2 files are handled in Python. """Abstract the numerous ways BZ2 files are handled in Python.
@param file: The file path to open. @param file: The file path to open.
@type file: str @type file: str
@keyword mode: The mode to open the file with. Only the values of 'r' and 'w' for reading and writing respectively are supported. @keyword mode: The mode to open the file with. Only the values of 'r' and 'w' for reading and writing respectively are supported.
@type mode: str @type mode: str
@return: The bzip2 file object. @return: The bzip2 file object.
@rtype: file object @rtype: file object
""" """
 End of changes. 1 change blocks. 
0 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)