Skip to content

Commit

Permalink
Explicit float in commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
danielpatrickdotdev authored and gunnarmorling committed Mar 3, 2024
1 parent 6daa93c commit 6125ba4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/python/create_measurements.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def estimate_file_size(weather_station_names, num_rows_to_create):
total_name_bytes = sum(len(s.encode("utf-8")) for s in weather_station_names)
avg_name_bytes = total_name_bytes / float(len(weather_station_names))

# avg_temp_bytes = sum(len(str(n / 10)) for n in range(-999, 1000)) / 1999
# avg_temp_bytes = sum(len(str(n / 10.0)) for n in range(-999, 1000)) / 1999
avg_temp_bytes = 4.400200100050025

# add 2 for separator and newline
Expand Down

0 comments on commit 6125ba4

Please sign in to comment.