Browse Source

debugging output analysis

master
poikilos 9 years ago
committed by Jacob Gustafson
parent
commit
0e8eaa4dac
  1. 7
      chunkymap-regen.py

7
chunkymap-regen.py

@ -1199,9 +1199,11 @@ class MTChunks:
os.rename(tmp_png_path, dest_png_path) os.rename(tmp_png_path, dest_png_path)
except: except:
pass pass
participle = "checking result"
try: try:
is_changed = this_chunk.set_from_genresult(genresult_path) is_changed = this_chunk.set_from_genresult(genresult_path)
if is_marked_before: if is_marked_before:
participle = "checking for marks"
if (not is_empty_before) and this_chunk.metadata["is_empty"]: if (not is_empty_before) and this_chunk.metadata["is_empty"]:
print("ERROR: chunk changed from nonempty to empty (may happen if output of mapper was not recognized)") print("ERROR: chunk changed from nonempty to empty (may happen if output of mapper was not recognized)")
elif this_chunk.metadata["is_empty"] and os.path.isfile(dest_png_path): elif this_chunk.metadata["is_empty"] and os.path.isfile(dest_png_path):
@ -1210,14 +1212,17 @@ class MTChunks:
#self.create_chunk_folder(chunky_x, chunky_z) #self.create_chunk_folder(chunky_x, chunky_z)
#this_chunk.save_yaml(chunk_yaml_path) #this_chunk.save_yaml(chunk_yaml_path)
#if is_changed: #if is_changed:
participle = "accessing dict"
if not is_dict_subset(self.chunks[chunk_luid].metadata, old_meta, False): # , True, "chunk_yaml_path") if not is_dict_subset(self.chunks[chunk_luid].metadata, old_meta, False): # , True, "chunk_yaml_path")
participle = "saving chunk meta"
self.save_chunk_meta(chunky_x, chunky_z) self.save_chunk_meta(chunky_x, chunky_z)
#print(min_indent+"(saved yaml to '"+chunk_yaml_path+"')") #print(min_indent+"(saved yaml to '"+chunk_yaml_path+"')")
if not self.is_save_output_ok: if not self.is_save_output_ok:
if os.path.isfile(genresult_path): if os.path.isfile(genresult_path):
participle = "removing "+genresult_path
os.remove(genresult_path) os.remove(genresult_path)
except: except:
print (min_indent+"Could not finish deleting/moving output") print (min_indent+"Could not finish "+participle+" while deleting/moving output")
view_traceback() view_traceback()
except: except:
print(min_indent+"Could not finish deleting/moving temp files") print(min_indent+"Could not finish deleting/moving temp files")

Loading…
Cancel
Save