GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 22-22 lines in 2 locations

VoltCycle/core.py 1 location

@@ 107-128 (lines=22) @@
104
    return data
105
106
107
def plot_fig(dict_cycle, n):
108
    """For basic plotting of the cycle data
109
  
110
    Parameters
111
    __________
112
    dict: dictionary of dataframes for all the cycles
113
    n: number of cycles
114
115
    Saves the plot in a file called cycle.png 
116
    """
117
118
    for i in range(n):
119
        print(i+1)
120
        df = data_frame(dict_cycle, i+1)
121
        plt.plot(df.Potential, df.Current, label = "Cycle{}".format(i+1))
122
        
123
    #print(df.head())
124
    plt.xlabel('Voltage')
125
    plt.ylabel('Current')
126
    plt.legend()
127
    plt.savefig('cycle.png')
128
    print('executed')
129
130
131
#split forward and backward sweping data, to make it easier for processing.

VoltCycle/submodule/file_read.py 1 location

@@ 99-120 (lines=22) @@
96
    data  = pd.DataFrame(zippedList, columns = ['Potential' , 'Current'])
97
    return data
98
    
99
def plot_fig(dict_cycle, n):
100
    """For basic plotting of the cycle data
101
  
102
    Parameters
103
    __________
104
    dict: dictionary of dataframes for all the cycles
105
    n: number of cycles
106
107
    Saves the plot in a file called cycle.png 
108
    """
109
110
    for i in range(n):
111
        print(i+1)
112
        df = data_frame(dict_cycle, i+1)
113
        plt.plot(df.Potential, df.Current, label = "Cycle{}".format(i+1))
114
        
115
    print(df.head())
116
    plt.xlabel('Voltage')
117
    plt.ylabel('Current')
118
    plt.legend()
119
    plt.savefig('cycle.png')
120
    print('executed')
121