Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

file encoding to utf8 #753

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/main/python/create_measurements.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def build_weather_station_name_list():
Grabs the weather station names from example data provided in repo and dedups
"""
station_names = []
with open('../../../data/weather_stations.csv', 'r') as file:
with open('../../../data/weather_stations.csv', 'r',encoding="utf8") as file:
file_contents = file.read()
for station in file_contents.splitlines():
if "#" in station:
Expand Down Expand Up @@ -111,7 +111,7 @@ def build_test_data(weather_station_names, num_rows_to_create):
print('Building test data...')

try:
with open("../../../data/measurements.txt", 'w') as file:
with open("../../../data/measurements.txt", 'w',encoding="utf8") as file:
progress = 0
for chunk in range(chunks):

Expand Down