diff --git a/.gitignore b/eda-explorer/.gitignore similarity index 100% rename from .gitignore rename to eda-explorer/.gitignore diff --git a/AccelerometerFeatureExtractionScript.py b/eda-explorer/AccelerometerFeatureExtractionScript.py similarity index 100% rename from AccelerometerFeatureExtractionScript.py rename to eda-explorer/AccelerometerFeatureExtractionScript.py diff --git a/ArtifactClassifiers.py b/eda-explorer/ArtifactClassifiers.py similarity index 99% rename from ArtifactClassifiers.py rename to eda-explorer/ArtifactClassifiers.py index 045f4f5..f3761dd 100644 --- a/ArtifactClassifiers.py +++ b/eda-explorer/ArtifactClassifiers.py @@ -576,7 +576,7 @@ def multiclass_classifier(): binary_predictions = predict_binary_classifier(binary_test_data) import pickle - f2 = open('/Users/sarataylor/Dev/eda-explorer-public/SVMBinary.p', 'rb') + f2 = open('/Users/sarataylor/Dev/eda-explorer-explorer-public/SVMBinary.p', 'rb') s2 = f2.read() clf = pickle.loads(s2) @@ -591,7 +591,7 @@ def multiclass_classifier(): multi_predictions = predict_multiclass_classifier(test_data) - f2 = open('/Users/sarataylor/Dev/eda-explorer-public/SVMMulticlass.p', 'rb') + f2 = open('/Users/sarataylor/Dev/eda-explorer-explorer-public/SVMMulticlass.p', 'rb') s2 = f2.read() clf = pickle.loads(s2) diff --git a/EDA-Artifact-Detection-Script.py b/eda-explorer/EDA-Artifact-Detection-Script.py similarity index 100% rename from EDA-Artifact-Detection-Script.py rename to eda-explorer/EDA-Artifact-Detection-Script.py diff --git a/EDA-Peak-Detection-Script.py b/eda-explorer/EDA-Peak-Detection-Script.py similarity index 100% rename from EDA-Peak-Detection-Script.py rename to eda-explorer/EDA-Peak-Detection-Script.py diff --git a/eda-explorer/__init__.py b/eda-explorer/__init__.py new file mode 100644 index 0000000..9be8f2c --- /dev/null +++ b/eda-explorer/__init__.py @@ -0,0 +1,2 @@ +from . import EDA-Artifact-Detection-Script +from . import EDA-Peak-Detection-Script \ No newline at end of file diff --git a/classify.py b/eda-explorer/classify.py similarity index 100% rename from classify.py rename to eda-explorer/classify.py diff --git a/load_files.py b/eda-explorer/load_files.py similarity index 100% rename from load_files.py rename to eda-explorer/load_files.py diff --git a/requirements.txt b/eda-explorer/requirements.txt similarity index 100% rename from requirements.txt rename to eda-explorer/requirements.txt diff --git a/setup.cfg b/setup.cfg new file mode 100644 index 0000000..9d5f797 --- /dev/null +++ b/setup.cfg @@ -0,0 +1,3 @@ +# Inside of setup.cfg +[metadata] +description-file = README.md \ No newline at end of file diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..a8d7af4 --- /dev/null +++ b/setup.py @@ -0,0 +1,35 @@ +from distutils.core import setup +setup( + name='eda-explorer', # How you named your package folder (MyLib) + packages=['eda-explorer'], # Chose the same as "name" + version='0.1', # Start with a small number and increase it with every change you make + license='MIT', # Chose a license + description='Scripts to detect artifacts and in electrodermal activity (EDA) data', + author='Taylor, S., Jaques, N., Chen, W., Fedor, S., Sano, A., & Picard, R.', # Type in your name + author_email='natashamjaques@gmail.com', # Type in your E-Mail + url='https://github.com/MITMediaLabAffectiveComputing/eda-explorer', + download_url='https://github.com/MITMediaLabAffectiveComputing/eda-explorer/archive/v_01.tar.gz', + keywords=['EDA', 'ARTIFACT', 'PEAK'], # Keywords that define your package best + install_requires=[ + 'numpy', + 'pandas', + 'matplotlib', + 'sklearn', + 'pickle', + 'PyWavelets', + 'scipy', + 'pprint', + ], + classifiers=[ + 'Development Status :: 3 - Alpha', # Chose either "3 - Alpha", "4 - Beta" or "5 - Production/Stable" as the + # current state of your package + 'Intended Audience :: Developers', # Define that your audience are developers + 'Topic :: Software Development :: Build Tools', + 'License :: OSI Approved :: MIT License', # Again, pick a license + 'Programming Language :: Python :: 3', # Specify which pyhton versions that you want to support + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', + ], +) \ No newline at end of file