I've perused some similar questions regarding UFuncTypeError but can't use that information to deduce what is wrong with my code in particular. Here's my code:
UFuncTypeError Traceback (most recent call last)
Cell In[6], line 148
145 print('Status Update: Fitting Anodic Sweep #',anodic_count,'...')
147 # define the explicit ranges of voltages to start and end at
--> 148 start_band = [V for V in full_range_V if (V >= Vstart_a_anodic and V <= Vstart_b_anodic)]
149 end_band = [V for V in full_range_V if (V >= Vend_a_anodic and V <= Vend_b_anodic)]
151 # iterate over each possible start and endpoint for the fit
Cell In[6], line 148, in <listcomp>(.0)
145 print('Status Update: Fitting Anodic Sweep #',anodic_count,'...')
147 # define the explicit ranges of voltages to start and end at
--> 148 start_band = [V for V in full_range_V if (V >= Vstart_a_anodic and V <= Vstart_b_anodic)]
149 end_band = [V for V in full_range_V if (V >= Vend_a_anodic and V <= Vend_b_anodic)]
151 # iterate over each possible start and endpoint for the fit
UFuncTypeError: ufunc 'less_equal' did not contain a loop with signature matching types (<class 'numpy.dtypes.Float64DType'>, <class 'numpy.dtypes.StrDType'>) -> None
I tried to have the program read a potential range in an excel document and use it as framework for my lab software.