Question: I am trying to make a second code to use my first code to analyse my list of files one by one but it does

I am trying to make a second code to use my first code to analyse my list of files one by one but it does not seem to be working . how should the error be resolved

I am trying to make a second code to use my firstcode to analyse my list of files one by one but it

\f(0.0001, 0. 22858, 629.0) (0. 0902, 0. 46266, 629.0) (0. 0003, 0. 69177, 629.0) (0. 0004, 0. 92818, 629.0) (0.0005, 1. 18872, 629.0) ValueError Traceback (most recent call last) in 34 35 mylist=( ['0. 0001. txt' , '0. 0002. txt' , '0. 0003. txt', '0. 0004. txt' , '0. 0005. txt']) --> 36 print (analyse(mylist) ) 37 38 in analyse(listoffiles) 23 peak_absorbances= 24 wavel= -> 25 conc, abbs , wl=processfile(listoffiles) 26 concentration . append (conc) 27 #print(concentration) in processfile(filename) 1 import numpy as np 2 def processfile ( filename) : wl, abbs=np. genfromtxt (filename, skip_header=2, unpack=True) U P WN filename=filename. replace ( ' . txt' , " ' ) filename=float( filename) ValueError: too many values to unpack ( expected 2)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!