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 = 27-27 lines in 4 locations

voltcycle/core.py 1 location

@@ 481-507 (lines=27) @@
478
    return half_wave_potential
479
480
481
def peak_heights(DataFrame_x, DataFrame_y):
482
    """Outputs heights of minimum peak and maximum
483
         peak from cyclic voltammetry data.
484
485
       Parameters
486
       ----------
487
       DataFrame_x : should be in the form of a pandas DataFrame column.
488
         For example, df['potentials'] could be input as the column of x
489
         data.
490
491
        DataFrame_y : should be in the form of a pandas DataFrame column.
492
          For example, df['currents'] could be input as the column of y
493
          data.
494
495
        Returns
496
        -------
497
        Results: height of maximum peak, height of minimum peak
498
          in that order in the form of a list."""
499
    current_max = peak_values(DataFrame_x, DataFrame_y)[1]
500
    current_min = peak_values(DataFrame_x, DataFrame_y)[3]
501
    x1, x2 = split(DataFrame_x)
502
    y1, y2 = split(DataFrame_y)
503
    line_at_min = linear_background(x1, y1)[peak_detection_fxn(DataFrame_y)[1]]
504
    line_at_max = linear_background(x2, y2)[peak_detection_fxn(DataFrame_y)[0]]
505
    height_of_max = current_max - line_at_max
506
    height_of_min = abs(current_min - line_at_min)
507
    return [height_of_max, height_of_min]
508
509
510
def peak_ratio(DataFrame_x, DataFrame_y):

practice/dash_resumable_upload.py 1 location

@@ 393-419 (lines=27) @@
390
    return half_wave_potential
391
392
393
def peak_heights(DataFrame_x, DataFrame_y):
394
    """Outputs heights of minimum peak and maximum
395
         peak from cyclic voltammetry data.
396
397
       Parameters
398
       ----------
399
       DataFrame_x : should be in the form of a pandas DataFrame column.
400
         For example, df['potentials'] could be input as the column of x
401
         data.
402
403
        DataFrame_y : should be in the form of a pandas DataFrame column.
404
          For example, df['currents'] could be input as the column of y
405
          data.
406
407
        Returns
408
        -------
409
        Results: height of maximum peak, height of minimum peak
410
          in that order in the form of a list."""
411
    current_max = peak_values(DataFrame_x, DataFrame_y)[1]
412
    current_min = peak_values(DataFrame_x, DataFrame_y)[3]
413
    x1, x2 = split(DataFrame_x)
414
    y1, y2 = split(DataFrame_y)
415
    line_at_min = linear_background(x1, y1)[peak_detection_fxn(DataFrame_y)[1]]
416
    line_at_max = linear_background(x2, y2)[peak_detection_fxn(DataFrame_y)[0]]
417
    height_of_max = current_max - line_at_max
418
    height_of_min = abs(current_min - line_at_min)
419
    return [height_of_max, height_of_min]
420
421
422
def peak_ratio(DataFrame_x, DataFrame_y):

practice/core.py 1 location

@@ 393-419 (lines=27) @@
390
    return half_wave_potential
391
392
393
def peak_heights(DataFrame_x, DataFrame_y):
394
    """Outputs heights of minimum peak and maximum
395
         peak from cyclic voltammetry data.
396
397
       Parameters
398
       ----------
399
       DataFrame_x : should be in the form of a pandas DataFrame column.
400
         For example, df['potentials'] could be input as the column of x
401
         data.
402
403
        DataFrame_y : should be in the form of a pandas DataFrame column.
404
          For example, df['currents'] could be input as the column of y
405
          data.
406
407
        Returns
408
        -------
409
        Results: height of maximum peak, height of minimum peak
410
          in that order in the form of a list."""
411
    current_max = peak_values(DataFrame_x, DataFrame_y)[1]
412
    current_min = peak_values(DataFrame_x, DataFrame_y)[3]
413
    x1, x2 = split(DataFrame_x)
414
    y1, y2 = split(DataFrame_y)
415
    line_at_min = linear_background(x1, y1)[peak_detection_fxn(DataFrame_y)[1]]
416
    line_at_max = linear_background(x2, y2)[peak_detection_fxn(DataFrame_y)[0]]
417
    height_of_max = current_max - line_at_max
418
    height_of_min = abs(current_min - line_at_min)
419
    return [height_of_max, height_of_min]
420
421
422
def peak_ratio(DataFrame_x, DataFrame_y):

voltcycle/submodule/calculations.py 1 location

@@ 81-107 (lines=27) @@
78
    return half_wave_potential
79
80
81
def peak_heights(DataFrame_x, DataFrame_y):
82
    """Outputs heights of minimum peak and maximum
83
         peak from cyclic voltammetry data.
84
85
       Parameters
86
       ----------
87
       DataFrame_x : should be in the form of a pandas DataFrame column.
88
         For example, df['potentials'] could be input as the column of x
89
         data.
90
91
        DataFrame_y : should be in the form of a pandas DataFrame column.
92
          For example, df['currents'] could be input as the column of y
93
          data.
94
95
        Returns
96
        -------
97
        Results: height of maximum peak, height of minimum peak
98
          in that order in the form of a list."""
99
    current_max = peak_values(DataFrame_x, DataFrame_y)[1]
100
    current_min = peak_values(DataFrame_x, DataFrame_y)[3]
101
    x1, x2 = split(DataFrame_x)
102
    y1, y2 = split(DataFrame_y)
103
    line_at_min = linear_background(x1, y1)[peak_detection(DataFrame_y)[1]]
104
    line_at_max = linear_background(x2, y2)[peak_detection(DataFrame_y)[0]]
105
    height_of_max = current_max - line_at_max
106
    height_of_min = abs(current_min - line_at_min)
107
    return [height_of_max, height_of_min]
108
109
110
def peak_ratio(DataFrame_x, DataFrame_y):