From 14933b877f742fa6628e852fe3ef951d20ab6a2d Mon Sep 17 00:00:00 2001 From: Steve Nyemba Date: Wed, 12 May 2021 10:28:33 -0500 Subject: [PATCH] bug fix with dates --- pipeline.py | 4 +--- setup.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pipeline.py b/pipeline.py index b6e808f..3644a7e 100644 --- a/pipeline.py +++ b/pipeline.py @@ -259,8 +259,6 @@ class Components : _df[name] = _df[name].apply(lambda value: '' if str(value) == 'NaT' else str(value)[:10]) #_df[name] = _df[name].dt.date # _df[name] = pd.to_datetime(_df[name].fillna(''),errors='coerce') - else: - print ([' ** ',name,_item['type']]) else: if _item['type'] == 'INTEGER' : _type = np.int64 @@ -660,7 +658,7 @@ if __name__ == '__main__' : # We need to harmonize the keys if any at all in this case we do this for shuffle or generate operations # print (['finalize' in SYS_ARGS, ('generate' in SYS_ARGS or 'shuffle' in SYS_ARGS) ]) - if 'finalize' in SYS_ARGS or ('generate' in SYS_ARGS or 'shuffle' in SYS_ARGS) : + if 'autopilot' in SYS_ARGS or 'finalize' in SYS_ARGS or ('generate' in SYS_ARGS or 'shuffle' in SYS_ARGS) : # # We should pull all the primary keys and regenerate them in order to insure some form of consistency # diff --git a/setup.py b/setup.py index 7e014c7..eb8ea4d 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ import sys def read(fname): return open(os.path.join(os.path.dirname(__file__), fname)).read() args = {"name":"data-maker", - "version":"1.4.7.4", + "version":"1.4.7.5", "author":"Vanderbilt University Medical Center","author_email":"steve.l.nyemba@vanderbilt.edu","license":"MIT", "packages":find_packages(),"keywords":["healthcare","data","transport","protocol"]} args["install_requires"] = ['data-transport@git+https://dev.the-phi.com/git/steve/data-transport.git','tensorflow==1.15','pandas','pandas-gbq','pymongo']