# Path: swhlab/indexing/indexing.py
# def doStuff(ABFfolder,analyze=False,convert=False,index=True,overwrite=True,
#             launch=True):
#     """Inelegant for now, but lets you manually analyze every ABF in a folder."""
#     IN=INDEX(ABFfolder)
#     if analyze:
#         IN.analyzeAll()
#     if convert:
#         IN.convertImages()


import os
import sys
import matplotlib.pyplot as plt
import numpy as np
from swhlab.indexing.indexing import doStuff
"""
Given a project folder (with ABFs and micrographs), convert
all images to JPG, color adjust micrographs, add scale bars, etc.
then create an index.html page
"""

if not os.path.abspath('../../../') in sys.path:
    sys.path.append('../../../')

if __name__=="__main__":
    ABFfolder=R"X:\Data\2P01\2016\2017-01-09 AT1"

# Path: swhlab/indexing/indexing.py
# def doStuff(ABFfolder,analyze=False,convert=False,index=True,overwrite=True,
#             launch=True):
#     """Inelegant for now, but lets you manually analyze every ABF in a folder."""
#     IN=INDEX(ABFfolder)
#     if analyze:
#         IN.analyzeAll()
#     if convert:
#         IN.convertImages()


# Path: doc/uses/project indexing/01.py
import os
import sys
import matplotlib.pyplot as plt
import numpy as np
from swhlab.indexing.indexing import doStuff

"""
Given a project folder (with ABFs and micrographs), convert
all images to JPG, color adjust micrographs, add scale bars, etc.
then create an index.html page
"""

if not os.path.abspath('../../../') in sys.path:
    sys.path.append('../../../')

if __name__=="__main__":
    ABFfolder=R"X:\Data\2P01\2016\2017-01-09 AT1"

    doStuff(ABFfolder,analyze=True,convert=True,index=True,overwrite=True)