aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriyansh <[email protected]>2021-12-09 02:42:39 -0500
committerPriyansh <[email protected]>2021-12-09 02:42:39 -0500
commitd4e416480fa6b48b951f74936315b4a9e56e7271 (patch)
treef1cb400ae3c756d2f5dea62f2c23704cd03237c0
parentb2f0ad1a902a58449661d1598c663e7e55bd1aba (diff)
parentedb059a07d6c01571c2e2fbb9e08ce42b0ad6b64 (diff)
downloadtemp_pred_arima-d4e416480fa6b48b951f74936315b4a9e56e7271.tar.xz
temp_pred_arima-d4e416480fa6b48b951f74936315b4a9e56e7271.zip
Moving large files to releases
-rw-r--r--GlobalLandTemperaturesByCity.csv3
-rw-r--r--database.db3
-rw-r--r--time_series_model.py2
-rw-r--r--zipper.py14
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