examples/unit_test_s5p_ckd1.py
def main():
    """
    Main function of the unit-test
    """
    parser = argparse.ArgumentParser(
        description=f'{Path(__file__).name}: run units-test on class CKDio')
    parser.add_argument('ckd_dir', nargs=1, type=str, default=None,
                        help=('directory with CKD data with'
                              ' static CKD in a subdirectory static'))
    args = parser.parse_args()

    with CKDio(args.ckd_dir[0], ckd_version=1) as ckd:
        print(ckd.ckd_file)
        for meth in dir(ckd):
            if (meth.startswith('_')
                or meth.startswith('ckd')
                or meth in ('close', 'fid')):
                continue
            print('-------------------------', meth,
                  '-------------------------')
            print(meth, getattr(ckd, meth)())

    with CKDio(args.ckd_dir[0], ckd_version=2) as ckd:
        print(ckd.ckd_file)
        for meth in dir(ckd):
            if (meth.startswith('_')
                or meth.startswith('ckd')
                or meth in ('close', 'fid')):
                continue
            print('-------------------------', meth,
                  '-------------------------')
            print(meth, getattr(ckd, meth)())

    Main function of the unit-test
    
Main function of the unit-test
Main function of the unit - test
def main():
    parser = argparse.ArgumentParser(
        description=f'{Path(__file__).name}: run units-test on class CKDio')
    parser.add_argument('ckd_dir', nargs=1, type=str, default=None,
                        help=('directory with CKD data with'
                              ' static CKD in a subdirectory static'))
    args = parser.parse_args()
    with CKDio(args.ckd_dir[0], ckd_version=1) as ckd:
        print(ckd.ckd_file)
        for meth in dir(ckd):
            if (meth.startswith('_')
                or meth.startswith('ckd')
                or meth in ('close', 'fid')):
                continue
            print('-------------------------', meth,
                  '-------------------------')
            print(meth, getattr(ckd, meth)())
    with CKDio(args.ckd_dir[0], ckd_version=2) as ckd:
        print(ckd.ckd_file)
        for meth in dir(ckd):
            if (meth.startswith('_')
                or meth.startswith('ckd')
                or meth in ('close', 'fid')):
                continue
            print('-------------------------', meth,
                  '-------------------------')
            print(meth, getattr(ckd, meth)())
def main ( ) : parser = argparse . ArgumentParser ( description = f'{Path(__file__).name}: run units-test on class CKDio' ) parser . add_argument ( 'ckd_dir' , nargs = 1 , type = str , default = None , help = ( 'directory with CKD data with' ' static CKD in a subdirectory static' ) ) args = parser . parse_args ( ) with CKDio ( args . ckd_dir [ 0 ] , ckd_version = 1 ) as ckd : print ( ckd . ckd_file ) for meth in dir ( ckd ) : if ( meth . startswith ( '_' ) or meth . startswith ( 'ckd' ) or meth in ( 'close' , 'fid' ) ) : continue print ( '-------------------------' , meth , '-------------------------' ) print ( meth , getattr ( ckd , meth ) ( ) ) with CKDio ( args . ckd_dir [ 0 ] , ckd_version = 2 ) as ckd : print ( ckd . ckd_file ) for meth in dir ( ckd ) : if ( meth . startswith ( '_' ) or meth . startswith ( 'ckd' ) or meth in ( 'close' , 'fid' ) ) : continue print ( '-------------------------' , meth , '-------------------------' ) print ( meth , getattr ( ckd , meth ) ( ) )
Main function of the unit-test
Main function of the unit - test
"""
    Main function of the unit-test
    """