Changeset 712
- Timestamp:
- 10/06/17 19:07:47 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mds-and-trees/tree-genealogy.py
r711 r712 717 717 creature = json.loads(input) 718 718 except ValueError: 719 print("Json format error -the line cannot be read. Breaking the loading loop.")719 print("Json format error: the line cannot be read. Breaking the loading loop.") 720 720 # fixing arrays by removing the last element 721 721 # ! assuming that only the last line is broken ! … … 780 780 if line_arr[0] == "[OFFSPRING]": 781 781 nodes_offspring += 1 782 # assuming that either BORN or OFFSPRING is present for each individual (as it should...)782 # assuming that either BORN or OFFSPRING, or both, are present for each individual 783 783 nodes = max(nodes_born, nodes_offspring) 784 784 nodes = min(nodes, max_nodes if max_nodes != 0 else nodes)+1 … … 803 803 time_offset = max_time 804 804 if max_time != 0: 805 print("NOTE: merging the files, the time offset for the file " + filename + " is: " + str(time_offset))805 print("NOTE: merging files, assuming cumulative time offset for '%s' to be %d" % (filename, time_offset)) 806 806 807 807 lasttime = timelib.time() … … 845 845 load_creature_props(creature) 846 846 else: 847 print("NOTE: en try about the death ofindividual " + creature["ID"] + " before it was born")847 print("NOTE: encountered [DIED] entry for individual " + creature["ID"] + " before it was born") 848 848 849 849 # debug
Note: See TracChangeset
for help on using the changeset viewer.