Changeset 994


Ignore:
Timestamp:
07/09/20 13:51:28 (4 years ago)
Author:
Maciej Komosinski
Message:

Cosmetic

Files:
6 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/_demos/genoconv_test.cpp

    r975 r994  
    166166
    167167// arguments:
    168 //     genotype (or - meaning "read from stdin") [default: X]
     168//     genotype (or - meaning "read from stdin") [default: X, but try "/*shapes*/ball,cube,cylinder,cube"]
    169169//     target format [default: 0]
    170170//     "checkpoints" (just write this exact word) [default: not using checkpoints]
  • cpp/frams/_demos/genooper_test.cpp

    r973 r994  
    1818}
    1919
    20 /* Demonstrates various genetic operators applied to a sample genotype. See also oper_fx.cpp. */
     20/* Demonstrates various genetic operators applied to a sample genotype. See also genooperators.cpp/h. */
    2121int main(int argc, char *argv[])
    2222{
  • cpp/frams/_demos/loader_test_param.cpp

    r745 r994  
    112112
    113113                case MultiParamLoader::OnError:
    114                         fprintf(stderr, "Error: %s", loader.getError().c_str());
     114                        fprintf(stderr, "Error: %s\n", loader.getError().c_str());
    115115                }
    116116        }
  • cpp/frams/genetics/fF/fF_conv.cpp

    r991 r994  
    1111{
    1212        name = "10-parameter Foraminifera encoding";
    13         in_format = 'F';
     13        in_format = "F";
    1414        out_format = "0s";
    1515        mapsupport = 0;
  • tester/comparison.py

    r987 r994  
    2525                try:
    2626                        fin = open(os.path.join(globals.THISDIR, name))  # first we look for the file with the specialized name (platform-dependent)...
    27                 except IOError:
    28                         fin = open(os.path.join(globals.THISDIR, file_name + ".goal"))  # ...if there is no such file, we try to find the default file
     27                except IOError as e1:
     28                        try:
     29                                fin = open(os.path.join(globals.THISDIR, file_name + ".goal"))  # ...if there is no such file, we try to find the default file
     30                        except IOError as e2:
     31                                print()
     32                                print(e1)
     33                                print(e2)
     34                                print('Proceeding as if the missing file were empty.')
     35                                return []
    2936                list_of_lines = []
    3037                for line in fin:
  • tester/tester.py

    r987 r994  
    9494                        failed_result_filename = '_test'
    9595                f = open(os.path.join(globals.THISDIR, failed_result_filename + '.Failed-output'), 'w')  # files are easier to compare than stdout
    96                 print('\n'.join(jest), end="", file=f)
     96                print('\n'.join(jest)+'\n', end="", file=f) # not sure why one last empty line is always lost (or one too much is expected?), adding here...
    9797                f = open(os.path.join(globals.THISDIR, failed_result_filename + '.Failed-goal'), 'w')  # files are easier to compare than stdout
    9898                print('\n'.join(goal), end="", file=f)
Note: See TracChangeset for help on using the changeset viewer.