def __init__(self, filename=None):
    'Initializes the configuration header class\n\n        The method extracts the header from a configuration\n        file. If no filename is provided, a default\n        header is created.\n\n        Parameters\n        ----------\n        filename: str\n            name of the configuration file\n        '
    if (filename is None):
        super(ConfHeader, self).__init__()
    else:
        self.header = []
        start = 1
        fopen = open(filename, 'r')
        for line in fopen:
            if start:
                str_line = line.strip()
                if ((len(str_line) > 0) and (str_line[0] is '#')):
                    self.header.append((line.strip() + '\n'))
                else:
                    start = 0
        fopen.close
Initializes the configuration header class

The method extracts the header from a configuration
file. If no filename is provided, a default
header is created.

Parameters
----------
filename: str
    name of the configuration file
def __init__(self, filename=None):
    'Initializes the configuration header class\n\n        The method extracts the header from a configuration\n        file. If no filename is provided, a default\n        header is created.\n\n        Parameters\n        ----------\n        filename: str\n            name of the configuration file\n        '
    if (filename is None):
        super(ConfHeader, self).__init__()
    else:
        self.header = []
        start = 1
        fopen = open(filename, 'r')
        for line in fopen:
            if start:
                str_line = line.strip()
                if ((len(str_line) > 0) and (str_line[0] is '#')):
                    self.header.append((line.strip() + '\n'))
                else:
                    start = 0
        fopen.close