From e65448421fb228d48292eba247bd5f7edb92ea87 Mon Sep 17 00:00:00 2001 From: jsharpna Date: Mon, 24 Aug 2020 10:35:02 -0700 Subject: [PATCH 01/12] fixed geo test --- jhu/tests/test_geo.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jhu/tests/test_geo.py b/jhu/tests/test_geo.py index 444ea58f0..cf7cee21f 100644 --- a/jhu/tests/test_geo.py +++ b/jhu/tests/test_geo.py @@ -20,7 +20,7 @@ def test_incorrect_geo(self): ) with pytest.raises(ValueError): - geo_map(df, "département", 'new_counts') + geo_map(df, "département") def test_county(self): df = pd.DataFrame( @@ -45,7 +45,7 @@ def test_county(self): df = df.append(df_mega) - new_df = geo_map(df, "county", 'new_counts') + new_df = geo_map(df, "county") exp_incidence = df["new_counts"] / df["population"] * 100000 exp_cprop = df["cumulative_counts"] / df["population"] * 100000 @@ -78,7 +78,7 @@ def test_state(self): df = df.append(df_mega) - new_df = geo_map(df, "state", 'new_counts') + new_df = geo_map(df, "state") exp_incidence = np.array([27 + 5, 13 + 10]) / np.array([2500, 25]) * 100000 exp_cprop = np.array([165 + 30, 60 + 100]) / np.array([2500, 25]) * 100000 @@ -114,7 +114,7 @@ def test_hrr(self): # df = df.append(df_mega) - new_df = geo_map(df, "hrr", 'new_counts') + new_df = geo_map(df, "hrr") exp_incidence = np.array([13, 27]) / np.array([25, 2500]) * 100000 exp_cprop = np.array([60, 165]) / np.array([25, 2500]) * 100000 @@ -145,7 +145,7 @@ def test_msa(self): # df = df.append(df_mega) - new_df = geo_map(df, "msa", 'new_counts') + new_df = geo_map(df, "msa") assert new_df["geo_id"].isin([31420, 49340]).all() assert new_df["timestamp"].isin(["2020-02-15"]).all() From eabc03289d7b55a28ce8042d9f527e7634bfcef9 Mon Sep 17 00:00:00 2001 From: Dmitry Shemetov Date: Tue, 25 Aug 2020 14:01:56 -0700 Subject: [PATCH 02/12] Part of fix to smoother test, not done --- jhu/delphi_jhu/run.py | 8 ++++++-- jhu/delphi_jhu/smooth.py | 4 ++-- jhu/tests/test_smooth.py | 12 +++++++----- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/jhu/delphi_jhu/run.py b/jhu/delphi_jhu/run.py index ac06304ad..e7196f01a 100644 --- a/jhu/delphi_jhu/run.py +++ b/jhu/delphi_jhu/run.py @@ -93,11 +93,15 @@ def run_module(): df = dfs[metric] # Aggregate to appropriate geographic resolution df = geo_map(df, geo_res) - df["val"] = SMOOTHERS_MAP[smoother][0](df[sensor].values) + df.set_index(["timestamp", "geo_id"], inplace=True) + # df["val"] = SMOOTHERS_MAP[smoother][0](df[sensor].values) + # df["val"] = df.groupby("geo_id").apply(SMOOTHERS_MAP[smoother][0])[sensor].values + df["val"] = df[sensor].groupby(level=1).transform(seven_day_moving_average) df["se"] = np.nan df["sample_size"] = np.nan # Drop early entries where data insufficient for smoothing - df = df.loc[~df["val"].isnull(), :] + df = df[~df["val"].isnull()] + df = df.reset_index() sensor_name = SENSOR_NAME_MAP[sensor][0] # if (SENSOR_NAME_MAP[sensor][1] or SMOOTHERS_MAP[smoother][2]): # metric = f"wip_{metric}" diff --git a/jhu/delphi_jhu/smooth.py b/jhu/delphi_jhu/smooth.py index a6c944fc2..d6d4d5e8e 100644 --- a/jhu/delphi_jhu/smooth.py +++ b/jhu/delphi_jhu/smooth.py @@ -31,7 +31,7 @@ def kday_moving_average(x, k): ''' if not isinstance(k, int): raise ValueError('k must be int.') - # temp = np.append(np.zeros(k - 1), x) - temp = np.append(np.nan*np.ones(k-1), x) + temp = np.append(np.zeros(k - 1), x) + # temp = np.append(np.nan*np.ones(k-1), x) y = np.convolve(temp, np.ones(k, dtype=int), 'valid') / k return y diff --git a/jhu/tests/test_smooth.py b/jhu/tests/test_smooth.py index 37f908f84..748ad872a 100644 --- a/jhu/tests/test_smooth.py +++ b/jhu/tests/test_smooth.py @@ -10,17 +10,17 @@ class TestSmooth: def test_output_files_smoothed(self, run_as_module): - dates = [str(x) for x in range(20200701, 20200730)] + dates = [str(x) for x in range(20200303, 20200310)] smoothed = pd.read_csv( - join("../receiving", - f"{dates[-1]}_state_confirmed_7dav_cumulative_num.csv") + join("./receiving", + f"{dates[-1]}_county_confirmed_7dav_cumulative_num.csv") ) raw = pd.concat([ pd.read_csv( - join("../receiving", - f"{date}_state_confirmed_cumulative_num.csv") + join("./receiving", + f"{date}_county_confirmed_cumulative_num.csv") ) for date in dates ]) @@ -28,3 +28,5 @@ def test_output_files_smoothed(self, run_as_module): df = pd.merge(smoothed, raw, on='geo_id', suffixes=('_smoothed', '_raw')) assert np.allclose(df['val_smoothed'].values, df['val_raw'].values) + +# TestSmooth().test_output_files_smoothed(1) From 58343f21a318acaf3925c14ce54152079608d60f Mon Sep 17 00:00:00 2001 From: Dmitry Shemetov Date: Tue, 25 Aug 2020 17:15:46 -0700 Subject: [PATCH 03/12] Fix smoother test --- jhu/.gitignore | 1 + jhu/delphi_jhu/run.py | 4 +- jhu/delphi_jhu/smooth.py | 4 +- jhu/tests/receiving/.gitignore | 120 --------------------------------- jhu/tests/test_smooth.py | 12 ++-- 5 files changed, 11 insertions(+), 130 deletions(-) delete mode 100644 jhu/tests/receiving/.gitignore diff --git a/jhu/.gitignore b/jhu/.gitignore index 552154e09..03e7e268e 100644 --- a/jhu/.gitignore +++ b/jhu/.gitignore @@ -5,6 +5,7 @@ params.json # Do not commit output files receiving/*.csv +tests/receiving/*.csv # Remove macOS files .DS_Store diff --git a/jhu/delphi_jhu/run.py b/jhu/delphi_jhu/run.py index e7196f01a..7d8260a2d 100644 --- a/jhu/delphi_jhu/run.py +++ b/jhu/delphi_jhu/run.py @@ -94,9 +94,7 @@ def run_module(): # Aggregate to appropriate geographic resolution df = geo_map(df, geo_res) df.set_index(["timestamp", "geo_id"], inplace=True) - # df["val"] = SMOOTHERS_MAP[smoother][0](df[sensor].values) - # df["val"] = df.groupby("geo_id").apply(SMOOTHERS_MAP[smoother][0])[sensor].values - df["val"] = df[sensor].groupby(level=1).transform(seven_day_moving_average) + df["val"] = df[sensor].groupby(level=1).transform(SMOOTHERS_MAP[smoother][0]) df["se"] = np.nan df["sample_size"] = np.nan # Drop early entries where data insufficient for smoothing diff --git a/jhu/delphi_jhu/smooth.py b/jhu/delphi_jhu/smooth.py index d6d4d5e8e..a6c944fc2 100644 --- a/jhu/delphi_jhu/smooth.py +++ b/jhu/delphi_jhu/smooth.py @@ -31,7 +31,7 @@ def kday_moving_average(x, k): ''' if not isinstance(k, int): raise ValueError('k must be int.') - temp = np.append(np.zeros(k - 1), x) - # temp = np.append(np.nan*np.ones(k-1), x) + # temp = np.append(np.zeros(k - 1), x) + temp = np.append(np.nan*np.ones(k-1), x) y = np.convolve(temp, np.ones(k, dtype=int), 'valid') / k return y diff --git a/jhu/tests/receiving/.gitignore b/jhu/tests/receiving/.gitignore deleted file mode 100644 index 552154e09..000000000 --- a/jhu/tests/receiving/.gitignore +++ /dev/null @@ -1,120 +0,0 @@ -# You should hard commit a prototype for this file, but we -# want to avoid accidental adding of API tokens and other -# private data parameters -params.json - -# Do not commit output files -receiving/*.csv - -# Remove macOS files -.DS_Store - -# virtual environment -dview/ - -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -coverage.xml -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -.hypothesis/ -.pytest_cache/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -.static_storage/ -.media/ -local_settings.py - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# pyenv -.python-version - -# celery beat schedule file -celerybeat-schedule - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ diff --git a/jhu/tests/test_smooth.py b/jhu/tests/test_smooth.py index 748ad872a..303f7dab0 100644 --- a/jhu/tests/test_smooth.py +++ b/jhu/tests/test_smooth.py @@ -14,19 +14,21 @@ def test_output_files_smoothed(self, run_as_module): smoothed = pd.read_csv( join("./receiving", - f"{dates[-1]}_county_confirmed_7dav_cumulative_num.csv") + f"{dates[-1]}_state_confirmed_7dav_cumulative_num.csv") ) + # Build a dataframe out of the individual day files raw = pd.concat([ pd.read_csv( join("./receiving", - f"{date}_county_confirmed_cumulative_num.csv") + f"{date}_state_confirmed_cumulative_num.csv") ) for date in dates ]) - + # Compute the mean across the time values; order doesn't matter + # this corresponds to the smoothed value on the last day + # 2020-03-10 raw = raw.groupby('geo_id')['val'].mean() - df = pd.merge(smoothed, raw, on='geo_id', suffixes=('_smoothed', '_raw')) + df = pd.merge(smoothed, raw, on='geo_id', suffixes=('_smoothed', '_raw')) assert np.allclose(df['val_smoothed'].values, df['val_raw'].values) -# TestSmooth().test_output_files_smoothed(1) From a3a582cd8100a1b1aa68e26f10e2dba69ffaa54a Mon Sep 17 00:00:00 2001 From: Vishakha <59063647+vishakha1812@users.noreply.github.com> Date: Thu, 27 Aug 2020 13:38:03 -0700 Subject: [PATCH 04/12] Add receiving directory --- jhu/tests/receiving/.gitignore | 1 + 1 file changed, 1 insertion(+) create mode 100644 jhu/tests/receiving/.gitignore diff --git a/jhu/tests/receiving/.gitignore b/jhu/tests/receiving/.gitignore new file mode 100644 index 000000000..16f2dc5fa --- /dev/null +++ b/jhu/tests/receiving/.gitignore @@ -0,0 +1 @@ +*.csv \ No newline at end of file From 361cd3859407464b7a6969e3a88b004648af7008 Mon Sep 17 00:00:00 2001 From: Brian Clark Date: Thu, 27 Aug 2020 16:54:53 -0400 Subject: [PATCH 05/12] Update gitignore to fix merge conflict --- jhu/tests/receiving/.gitignore | 122 ++++++++++++++++++++++++++++++++- 1 file changed, 121 insertions(+), 1 deletion(-) diff --git a/jhu/tests/receiving/.gitignore b/jhu/tests/receiving/.gitignore index 16f2dc5fa..274875adb 100644 --- a/jhu/tests/receiving/.gitignore +++ b/jhu/tests/receiving/.gitignore @@ -1 +1,121 @@ -*.csv \ No newline at end of file +# You should hard commit a prototype for this file, but we +*.csv +# want to avoid accidental adding of API tokens and other +# private data parameters +params.json + +# Do not commit output files +receiving/*.csv + +# Remove macOS files +.DS_Store + +# virtual environment +dview/ + +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +coverage.xml +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +.static_storage/ +.media/ +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ \ No newline at end of file From 274ac893f13d40730f09451e6d763a8931a8d69f Mon Sep 17 00:00:00 2001 From: Brian Clark Date: Thu, 27 Aug 2020 16:59:29 -0400 Subject: [PATCH 06/12] Update gitignore to fix merge conflict --- jhu/tests/receiving/.gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/jhu/tests/receiving/.gitignore b/jhu/tests/receiving/.gitignore index 274875adb..3c515981b 100644 --- a/jhu/tests/receiving/.gitignore +++ b/jhu/tests/receiving/.gitignore @@ -1,5 +1,4 @@ # You should hard commit a prototype for this file, but we -*.csv # want to avoid accidental adding of API tokens and other # private data parameters params.json From 1ad2a5218299460f63170856c36dd04b722731f8 Mon Sep 17 00:00:00 2001 From: Brian Clark Date: Thu, 27 Aug 2020 17:04:09 -0400 Subject: [PATCH 07/12] Update gitignore to fix merge conflict --- jhu/tests/receiving/.gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jhu/tests/receiving/.gitignore b/jhu/tests/receiving/.gitignore index 3c515981b..552154e09 100644 --- a/jhu/tests/receiving/.gitignore +++ b/jhu/tests/receiving/.gitignore @@ -117,4 +117,4 @@ venv.bak/ /site # mypy -.mypy_cache/ \ No newline at end of file +.mypy_cache/ From 78c667401778bf4df8c3dc399fb495f811c4175a Mon Sep 17 00:00:00 2001 From: Brian Clark Date: Thu, 27 Aug 2020 17:07:43 -0400 Subject: [PATCH 08/12] Update gitignore --- jhu/tests/receiving/.gitignore | 121 +-------------------------------- 1 file changed, 1 insertion(+), 120 deletions(-) diff --git a/jhu/tests/receiving/.gitignore b/jhu/tests/receiving/.gitignore index 552154e09..afed0735d 100644 --- a/jhu/tests/receiving/.gitignore +++ b/jhu/tests/receiving/.gitignore @@ -1,120 +1 @@ -# You should hard commit a prototype for this file, but we -# want to avoid accidental adding of API tokens and other -# private data parameters -params.json - -# Do not commit output files -receiving/*.csv - -# Remove macOS files -.DS_Store - -# virtual environment -dview/ - -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -coverage.xml -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -.hypothesis/ -.pytest_cache/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -.static_storage/ -.media/ -local_settings.py - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# pyenv -.python-version - -# celery beat schedule file -celerybeat-schedule - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ +*.csv From fc25a0de37632e84ab781e7225159b29c3a2332e Mon Sep 17 00:00:00 2001 From: Brian Clark Date: Thu, 27 Aug 2020 17:18:55 -0400 Subject: [PATCH 09/12] Fix merge conflict, add gitkeep to pin directory --- jhu/tests/receiving/.gitignore | 121 ++++++++++++++++++++++++++++++++- 1 file changed, 120 insertions(+), 1 deletion(-) diff --git a/jhu/tests/receiving/.gitignore b/jhu/tests/receiving/.gitignore index afed0735d..552154e09 100644 --- a/jhu/tests/receiving/.gitignore +++ b/jhu/tests/receiving/.gitignore @@ -1 +1,120 @@ -*.csv +# You should hard commit a prototype for this file, but we +# want to avoid accidental adding of API tokens and other +# private data parameters +params.json + +# Do not commit output files +receiving/*.csv + +# Remove macOS files +.DS_Store + +# virtual environment +dview/ + +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +coverage.xml +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +.static_storage/ +.media/ +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/ From 96fa5f5bee46395bd8673073450d6d19c6153090 Mon Sep 17 00:00:00 2001 From: Brian Clark Date: Thu, 27 Aug 2020 17:19:30 -0400 Subject: [PATCH 10/12] Really add gitkeep --- jhu/tests/receiving/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 jhu/tests/receiving/.gitkeep diff --git a/jhu/tests/receiving/.gitkeep b/jhu/tests/receiving/.gitkeep new file mode 100644 index 000000000..e69de29bb From 4c0109d62eebd83a1b1929b31c0688e5f99660ad Mon Sep 17 00:00:00 2001 From: Brian Clark Date: Thu, 27 Aug 2020 17:25:49 -0400 Subject: [PATCH 11/12] Add the gitignore we really want --- jhu/tests/receiving/.gitignore | 121 +-------------------------------- 1 file changed, 1 insertion(+), 120 deletions(-) diff --git a/jhu/tests/receiving/.gitignore b/jhu/tests/receiving/.gitignore index 552154e09..afed0735d 100644 --- a/jhu/tests/receiving/.gitignore +++ b/jhu/tests/receiving/.gitignore @@ -1,120 +1 @@ -# You should hard commit a prototype for this file, but we -# want to avoid accidental adding of API tokens and other -# private data parameters -params.json - -# Do not commit output files -receiving/*.csv - -# Remove macOS files -.DS_Store - -# virtual environment -dview/ - -# Byte-compiled / optimized / DLL files -__pycache__/ -*.py[cod] -*$py.class - -# C extensions -*.so - -# Distribution / packaging -coverage.xml -.Python -build/ -develop-eggs/ -dist/ -downloads/ -eggs/ -.eggs/ -lib/ -lib64/ -parts/ -sdist/ -var/ -wheels/ -*.egg-info/ -.installed.cfg -*.egg -MANIFEST - -# PyInstaller -# Usually these files are written by a python script from a template -# before PyInstaller builds the exe, so as to inject date/other infos into it. -*.manifest -*.spec - -# Installer logs -pip-log.txt -pip-delete-this-directory.txt - -# Unit test / coverage reports -htmlcov/ -.tox/ -.coverage -.coverage.* -.cache -nosetests.xml -coverage.xml -*.cover -.hypothesis/ -.pytest_cache/ - -# Translations -*.mo -*.pot - -# Django stuff: -*.log -.static_storage/ -.media/ -local_settings.py - -# Flask stuff: -instance/ -.webassets-cache - -# Scrapy stuff: -.scrapy - -# Sphinx documentation -docs/_build/ - -# PyBuilder -target/ - -# Jupyter Notebook -.ipynb_checkpoints - -# pyenv -.python-version - -# celery beat schedule file -celerybeat-schedule - -# SageMath parsed files -*.sage.py - -# Environments -.env -.venv -env/ -venv/ -ENV/ -env.bak/ -venv.bak/ - -# Spyder project settings -.spyderproject -.spyproject - -# Rope project settings -.ropeproject - -# mkdocs documentation -/site - -# mypy -.mypy_cache/ +*.csv From 31649e21dcdd13581a961b5c04add153baada632 Mon Sep 17 00:00:00 2001 From: Brian Clark Date: Thu, 27 Aug 2020 17:29:48 -0400 Subject: [PATCH 12/12] Add necessary gitignore --- jhu/tests/receiving/.gitignore | 121 ++++++++++++++++++++++++++++++++- 1 file changed, 120 insertions(+), 1 deletion(-) diff --git a/jhu/tests/receiving/.gitignore b/jhu/tests/receiving/.gitignore index afed0735d..552154e09 100644 --- a/jhu/tests/receiving/.gitignore +++ b/jhu/tests/receiving/.gitignore @@ -1 +1,120 @@ -*.csv +# You should hard commit a prototype for this file, but we +# want to avoid accidental adding of API tokens and other +# private data parameters +params.json + +# Do not commit output files +receiving/*.csv + +# Remove macOS files +.DS_Store + +# virtual environment +dview/ + +# Byte-compiled / optimized / DLL files +__pycache__/ +*.py[cod] +*$py.class + +# C extensions +*.so + +# Distribution / packaging +coverage.xml +.Python +build/ +develop-eggs/ +dist/ +downloads/ +eggs/ +.eggs/ +lib/ +lib64/ +parts/ +sdist/ +var/ +wheels/ +*.egg-info/ +.installed.cfg +*.egg +MANIFEST + +# PyInstaller +# Usually these files are written by a python script from a template +# before PyInstaller builds the exe, so as to inject date/other infos into it. +*.manifest +*.spec + +# Installer logs +pip-log.txt +pip-delete-this-directory.txt + +# Unit test / coverage reports +htmlcov/ +.tox/ +.coverage +.coverage.* +.cache +nosetests.xml +coverage.xml +*.cover +.hypothesis/ +.pytest_cache/ + +# Translations +*.mo +*.pot + +# Django stuff: +*.log +.static_storage/ +.media/ +local_settings.py + +# Flask stuff: +instance/ +.webassets-cache + +# Scrapy stuff: +.scrapy + +# Sphinx documentation +docs/_build/ + +# PyBuilder +target/ + +# Jupyter Notebook +.ipynb_checkpoints + +# pyenv +.python-version + +# celery beat schedule file +celerybeat-schedule + +# SageMath parsed files +*.sage.py + +# Environments +.env +.venv +env/ +venv/ +ENV/ +env.bak/ +venv.bak/ + +# Spyder project settings +.spyderproject +.spyproject + +# Rope project settings +.ropeproject + +# mkdocs documentation +/site + +# mypy +.mypy_cache/