<commit_before># -*- coding: utf-8 -*-
# This is a test file and will be replaced by a jupyter notebook example in the tutorial section when easyplot functionality is done.

if __name__ == "__main__":
    import cellpy
    import easyplot

    files = [   
            #"./data/raw/20160805_test001_45_cc_01.res",
            #"./data/raw/20160805_test001_45_cc_01_copy.res",
            #"./data/20210430_seam10_01_01_cc_01_Channel_48_Wb_1.xlsx.csv",
            #"./data/20210430_seam10_01_02_cc_01_Channel_49_Wb_1.xlsx.csv"
            #"20210624_seam12_07_01_cc_02",
            #"20210624_seam12_07_02_cc_02",
            #"20210624_seam12_07_03_cc_02",
            "20210628_seam12_04_01_cc_01",
            #"20210628_seam12_04_02_cc_02",
            #"20210628_seam12_04_03_cc_01",
            #"20210628_seam12_05_01_cc_01",
            #"20210628_seam12_05_02_cc_01",
            #"20210628_seam12_05_03_cc_01",
            #"20210628_seam12_06_01_cc_01",
            #"20210628_seam12_06_02_cc_02",
            #"20210628_seam12_06_03_cc_01",
            "20210628_seam12_07_01_cc_01",
            #"20210628_seam12_07_02_cc_01",
            #"20210628_seam12_07_03_cc_01",
            #"20210630_seam13_01_01_cc_01",
            #"20210630_seam13_01_02_cc_01",
            #"20210630_seam13_01_03_cc",
            #"20210630_seam13_02_01_cc_01",
            #"20210630_seam13_02_02_cc_01",
            #"20210630_seam13_02_03_cc_01",
            #"20210630_seam13_03_01_cc_01",
            #"20210630_seam13_03_02_cc_01",
            #"20210630_seam13_03_03_cc_01",
            #"20210630_seam13_04_01_cc_01",
            #"20210630_seam13_04_02_cc_01",
            #"20210630_seam13_04_03_cc_01",
            ]

    nicknames = None #["Seam10_01_01", "Seam10_01_02"]

    ezplt = easyplot.EasyPlot(files, nicknames,
        cyclelife_plot = False,
        cyclelife_percentage = False,
        cyclelife_coulombic_efficiency = True,
        cyclelife_coulombic_efficiency_ylabel = "Coulombic efficiency [%]",
        cyclelife_xlabel = "Cycles",
        cyclelife_ylabel = r"Capacity $\left[\frac{mAh}{g}\right]$",
        cyclelife_ylabel_percent = "Capacity retention [%]",
        cyclelife_legend_outside = True, # if True, the legend is placed outside the plot
        galvanostatic_plot = True,
        galvanostatic_potlim = (0,1),     #min and max limit on potential-axis
        galvanostatic_caplim = None,
        galvanostatic_xlabel = r"Capacity $\left[\frac{mAh}{g}\right]$",
        galvanostatic_ylabel = "Cell potential [V]",
        dqdv_plot = True,
        dqdv_potlim = None,     #min and max limit on potential-axis
        dqdv_dqlim = None,
        dqdv_xlabel = "Cell potential [V]",
        dqdv_ylabel = r"dQ/dV $\left[\frac{mAh}{gV}\right]$",
        specific_cycles = None,#[]
        all_in_one = True,
        only_dischg = True,
        only_chg = False,
        outpath = "./ezplots/deleteme/",
        figsize = (6,4), # 6 inches wide, 4 inches tall
        figres = 100, # Dots per inch
        figtitle = None, # None = original filepath
    )
    ezplt.set_arbin_sql_credentials("localhost", "sa", "Amund1234", "SQL Server")
    #ezplt.help()
    ezplt.plot()<commit_msg>#162, This is good for further development of easyplot<commit_after># -*- coding: utf-8 -*-
# This is a test file and will be replaced by a jupyter notebook example in the tutorial section when easyplot functionality is done.

if __name__ == "__main__":
    import cellpy
    import easyplot

    files = [   
            #"./data/raw/20160805_test001_45_cc_01.res",
            #"./data/raw/20160805_test001_45_cc_01_copy.res",
            #"./data/20210430_seam10_01_01_cc_01_Channel_48_Wb_1.xlsx.csv",
            #"./data/20210430_seam10_01_02_cc_01_Channel_49_Wb_1.xlsx.csv"
            #"20210624_seam12_07_01_cc_02",
            #"20210624_seam12_07_02_cc_02",
            #"20210624_seam12_07_03_cc_02",
            #"20210628_seam12_04_01_cc_01",
            #"20210628_seam12_04_02_cc_02",
            #"20210628_seam12_04_03_cc_01",
            #"20210628_seam12_05_01_cc_01",
            #"20210628_seam12_05_02_cc_01",
            #"20210628_seam12_05_03_cc_01",
            #"20210628_seam12_06_01_cc_01",
            #"20210628_seam12_06_02_cc_02",
            #"20210628_seam12_06_03_cc_01",
            "20210628_seam12_07_01_cc_01",
            "20210628_seam12_07_02_cc_01",
            "20210628_seam12_07_03_cc_01",
            "20210630_seam13_01_01_cc_01",
            #"20210630_seam13_01_02_cc_01",
            #"20210630_seam13_01_03_cc",
            #"20210630_seam13_02_01_cc_01",
            #"20210630_seam13_02_02_cc_01",
            #"20210630_seam13_02_03_cc_01",
            #"20210630_seam13_03_01_cc_01",
            #"20210630_seam13_03_02_cc_01",
            #"20210630_seam13_03_03_cc_01",
            #"20210630_seam13_04_01_cc_01",
            #"20210630_seam13_04_02_cc_01",
            #"20210630_seam13_04_03_cc_01",
            ]

    nicknames = None #["Seam10_01_01", "Seam10_01_02"]

    ezplt = easyplot.EasyPlot(files, nicknames,
        cyclelife_plot = True,
        cyclelife_percentage = True,
        cyclelife_coulombic_efficiency = True,
        cyclelife_coulombic_efficiency_ylabel = "Coulombic efficiency [%]",
        cyclelife_xlabel = "Cycles",
        cyclelife_ylabel = r"Capacity $\left[\frac{mAh}{g}\right]$",
        cyclelife_ylabel_percent = "Capacity retention [%]",
        cyclelife_legend_outside = True, # if True, the legend is placed outside the plot
        galvanostatic_plot = True,
        galvanostatic_potlim = (0,1),     #min and max limit on potential-axis
        galvanostatic_caplim = None,
        galvanostatic_xlabel = r"Capacity $\left[\frac{mAh}{g}\right]$",
        galvanostatic_ylabel = "Cell potential [V]",
        dqdv_plot = True,
        dqdv_potlim = None,     #min and max limit on potential-axis
        dqdv_dqlim = None,
        dqdv_xlabel = "Cell potential [V]",
        dqdv_ylabel = r"dQ/dV $\left[\frac{mAh}{gV}\right]$",
        specific_cycles = None,#[]
        exclude_cycles = [1, 5, 10,11,12],#[]
        all_in_one = True,
        only_dischg = True,
        only_chg = False,
        outpath = "./ezplots/deleteme/",
        figsize = (6,4), # 6 inches wide, 4 inches tall
        figres = 100, # Dots per inch
        figtitle = None, # None = original filepath
    )
    ezplt.set_arbin_sql_credentials("localhost", "sa", "Amund1234", "SQL Server")
    #ezplt.help()
    ezplt.plot()
{'fraction_non_alphanumeric': 0.1049808429118774, 'fraction_numerical': 0.16229885057471263, 'mean_word_length': 2.566120218579235, 'pattern_counts': {'":': 2, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5601830', 'n_tokens_mistral': 3123, 'n_tokens_neox': 2470, 'n_words': 357}