distance map always calculated when saving env
def save(self, filename):
if self.distance_map.get() is not None:
if len(self.distance_map.get()) > 0:
with open(filename, "wb") as file_out:
file_out.write(self.get_full_state_dist_msg())
else:
with open(filename, "wb") as file_out:
file_out.write(self.get_full_state_msg())
else:
with open(filename, "wb") as file_out:
file_out.write(self.get_full_state_msg())
The distance map is always saved even if not desired by the observation builder. This needs to be updated and you should be able to toggle if you want to save it or not.