git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

TypeError: loadtxt() got an unexpected keyword argument 'max_rows'


On 2019-09-03 17:02, alberto wrote:
> Hi,
> I produce a script to elaborate data
> 
> but command line $ python3.4 PlotnhvsvdBTP1.py
> 
> I have this error
> 
> Traceback (most recent call last):
> File "PlotnhvsvdBTP1.py", line 31, in <module>
> UCvol = np.loadtxt(outputtransfile,skiprows=26,max_rows=1,usecols=[1])
> TypeError: loadtxt() got an unexpected keyword argument 'max_rows'
> 
> How could fix it?
> 
> I attacched my files
> 
> https://drive.google.com/file/d/1PgOcuEMFsaAuKTsbU0i0gwg04mDCJJoK/view?usp=sharing
> https://drive.google.com/file/d/13E7vcGQtrOS1lw9RupGThGQ2vSGRfTFG/view?usp=sharing
> https://drive.google.com/file/d/1Z6GKYtHthAyPO3wFHUFK10QweRpclu29/view?usp=sharing
> 
The "max_rows" keyword argument is new in numpy version 1.16.0.

Which version do you have?

Try:

import numpy
print(numpy.__version__)
to find out.