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 = 31-31 lines in 2 locations

practice/core.py 1 location

@@ 316-346 (lines=31) @@
313
    return index_list
314
315
316
def peak_values(DataFrame_x, DataFrame_y):
317
    """Outputs x (potentials) and y (currents) values from data indices
318
        given by peak_detection function.
319
320
       ----------
321
       Parameters
322
       ----------
323
       DataFrame_x : should be in the form of a pandas DataFrame column.
324
         For example, df['potentials'] could be input as the column of x
325
         data.
326
327
        DataFrame_y : should be in the form of a pandas DataFrame column.
328
          For example, df['currents'] could be input as the column of y
329
          data.
330
331
       Returns
332
       -------
333
       Result : numpy array of coordinates at peaks in the following order:
334
         potential of peak on top curve, current of peak on top curve,
335
         potential of peak on bottom curve, current of peak on bottom curve"""
336
    index = peak_detection_fxn(DataFrame_y)
337
    potential1, potential2 = split(DataFrame_x)
338
    current1, current2 = split(DataFrame_y)
339
    Peak_values = []
340
    Peak_values.append(potential2[(index[0])])  # TOPX (bottom part of curve is
341
    # the first part of DataFrame)
342
    Peak_values.append(current2[(index[0])])  # TOPY
343
    Peak_values.append(potential1[(index[1])])  # BOTTOMX
344
    Peak_values.append(current1[(index[1])])  # BOTTOMY
345
    Peak_array = np.array(Peak_values)
346
    return Peak_array
347
348
349
def del_potential(DataFrame_x, DataFrame_y):

practice/dash_resumable_upload.py 1 location

@@ 316-346 (lines=31) @@
313
    return index_list
314
315
316
def peak_values(DataFrame_x, DataFrame_y):
317
    """Outputs x (potentials) and y (currents) values from data indices
318
        given by peak_detection function.
319
320
       ----------
321
       Parameters
322
       ----------
323
       DataFrame_x : should be in the form of a pandas DataFrame column.
324
         For example, df['potentials'] could be input as the column of x
325
         data.
326
327
        DataFrame_y : should be in the form of a pandas DataFrame column.
328
          For example, df['currents'] could be input as the column of y
329
          data.
330
331
       Returns
332
       -------
333
       Result : numpy array of coordinates at peaks in the following order:
334
         potential of peak on top curve, current of peak on top curve,
335
         potential of peak on bottom curve, current of peak on bottom curve"""
336
    index = peak_detection_fxn(DataFrame_y)
337
    potential1, potential2 = split(DataFrame_x)
338
    current1, current2 = split(DataFrame_y)
339
    Peak_values = []
340
    Peak_values.append(potential2[(index[0])])  # TOPX (bottom part of curve is
341
    # the first part of DataFrame)
342
    Peak_values.append(current2[(index[0])])  # TOPY
343
    Peak_values.append(potential1[(index[1])])  # BOTTOMX
344
    Peak_values.append(current1[(index[1])])  # BOTTOMY
345
    Peak_array = np.array(Peak_values)
346
    return Peak_array
347
348
349
def del_potential(DataFrame_x, DataFrame_y):