Changeset 1309


Ignore:
Timestamp:
06/25/24 02:48:08 (4 months ago)
Author:
Maciej Komosinski
Message:

Print genotypes that may have caused problems when being evaluated - useful when reproducing the problem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • framspy/FramsticksLib.py

    r1306 r1309  
    168168                        ec.close()
    169169                        if ec.error_count._value() > 0:
     170                                print('\nErrors while evaluating this genotype list:\n',genotype_list,sep='\t')
    170171                                print(ec.messages)  # if errors occurred, output all caught messages for debugging
    171172                                raise RuntimeError("[ERROR] %d error(s) and %d warning(s) while evaluating %d genotype(s)" % (ec.error_count._value(), ec.warning_count._value(), len(genotype_list)))  # make errors fatal; by default they stop the simulation anyway so let's not use potentially incorrect or partial results and fix the cause first.
Note: See TracChangeset for help on using the changeset viewer.