summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Patrick <github@danielpatrick.dev>2024-03-03 08:54:14 +0000
committerGunnar Morling <gunnar.morling@googlemail.com>2024-03-03 13:10:15 +0100
commit6125ba4dfa8deff90ae3ef9df705d64faaa83c5e (patch)
tree793748444aeebc0ee408953f435f8fdb080a167a
parent6daa93cca188eef12454c6061a25b1906cab57e7 (diff)
Explicit float in commented out code
-rwxr-xr-xsrc/main/python/create_measurements.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/python/create_measurements.py b/src/main/python/create_measurements.py
index 52e9fc1..a429e8b 100755
--- a/src/main/python/create_measurements.py
+++ b/src/main/python/create_measurements.py
@@ -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