diff options
| -rw-r--r-- | GlobalLandTemperaturesByCity.csv | 3 | ||||
| -rw-r--r-- | database.db | 3 | ||||
| -rw-r--r-- | time_series_model.py | 2 | ||||
| -rw-r--r-- | zipper.py | 14 |
4 files changed, 21 insertions, 1 deletions
diff --git a/GlobalLandTemperaturesByCity.csv b/GlobalLandTemperaturesByCity.csv new file mode 100644 index 0000000..b980b00 --- /dev/null +++ b/GlobalLandTemperaturesByCity.csv @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9be86b51487f10e811a0ab43a75946739dfe7bea2342ddcd1f6bc48d51b8c493 +size 532830464 diff --git a/database.db b/database.db new file mode 100644 index 0000000..055da59 --- /dev/null +++ b/database.db @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4e543fc52dfaba299c76e4eaf8451a1291487ac2af315cc600975d244cbb7e5b +size 156913664 diff --git a/time_series_model.py b/time_series_model.py index 6528ac0..15b8dce 100644 --- a/time_series_model.py +++ b/time_series_model.py @@ -36,4 +36,4 @@ with open(filename_in, mode="rb") as fin, open(filename_out, mode="wb") as fout: data = fin.read() print("Compressing Pickle File for Version Control...") compressed_data = zlib.compress(data, zlib.Z_BEST_COMPRESSION) - fout.write(compressed_data)
\ No newline at end of file + fout.write(compressed_data) diff --git a/zipper.py b/zipper.py new file mode 100644 index 0000000..bc5ada7 --- /dev/null +++ b/zipper.py @@ -0,0 +1,14 @@ +import zlib +from os.path import exists +from os import remove + + +filename_in = "arima.pkl" +filename_out = "arima.compressed" +if exists(filename_out): + remove(filename_out) +with open(filename_in, mode="rb") as fin, open(filename_out, mode="wb") as fout: + data = fin.read() + print("Compressing Pickle File for Version Control...") + compressed_data = zlib.compress(data, zlib.Z_BEST_COMPRESSION) + fout.write(compressed_data)
\ No newline at end of file |
