Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
micahcarroll committed Apr 21, 2024
1 parent 0c9cdb4 commit 89aa083
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/overcooked_ai_py/mdp/overcooked_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ def print_state_transition(
if fname is None:
print(output_string)
else:
with open(fname, "a", encoding='utf-8') as f:
with open(fname, "a", encoding="utf-8") as f:
print(output_string, file=f)

###################
Expand Down Expand Up @@ -445,7 +445,7 @@ def run_agents(

if dir != None:
fname = dir + "/roll_out_" + str(time.time()) + ".txt"
with open(fname, "w+", encoding='utf-8') as f:
with open(fname, "w+", encoding="utf-8") as f:
print(self, file=f)
while not done:
s_t = self.state
Expand Down
2 changes: 1 addition & 1 deletion testing/overcooked_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1323,7 +1323,7 @@ def tearDown(self):
shutil.rmtree(self.dummy_dir)

def _assert_files_equal(self, file_1, file_2):
with open(file_1, "r", encoding='utf-8') as f:
with open(file_1, "r", encoding="utf-8") as f:
lines_1 = f.readlines()
with open(file_2, "r", encoding="utf-8") as f:
lines_2 = f.readlines()
Expand Down

0 comments on commit 89aa083

Please sign in to comment.