Skip to content

Commit

Permalink
fix csv header check
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeslabreche committed Dec 31, 2020
1 parent 29a1ba8 commit 08cf2dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion home/exp1000/acquire_and_label_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ def write_metadata(self, csv_filename, metadata):

# If file exists it means that it has a header already.
existing_csv_file = Path(csv_filename)
has_header = existing_csv_file.is_file():
has_header = existing_csv_file.is_file()

# Open CSV file and write an image metadata row for the acquired image.
with open(csv_filename, 'a', newline='') as csv_file:
Expand Down

0 comments on commit 08cf2dc

Please sign in to comment.