aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPriyansh <[email protected]>2021-12-09 02:42:39 -0500
committerPriyansh <[email protected]>2021-12-09 02:45:10 -0500
commit6d1cf530b0b4e57b833f5e316030cc8924a08c24 (patch)
tree31fc0ea4d781f123a6346576f0db27022bdfccf7
parentb2f0ad1a902a58449661d1598c663e7e55bd1aba (diff)
parentedb059a07d6c01571c2e2fbb9e08ce42b0ad6b64 (diff)
downloadtemp_pred_arima-6d1cf530b0b4e57b833f5e316030cc8924a08c24.tar.xz
temp_pred_arima-6d1cf530b0b4e57b833f5e316030cc8924a08c24.zip
Moving large files to releases
-rw-r--r--.gitignore5
-rw-r--r--time_series_model.py2
-rw-r--r--zipper.py14
3 files changed, 17 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index c86c938..d431438 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,4 @@
.DS_Store
arima*
-database*
-*.db
-*.csv
+database.db
+GlobalLandTemperaturesByCity.csv
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