Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
"full" does not work
#1
Hello, a program hast he following line:

Moth_fitness=numpy.full(N,float("inf"))
When I try to run the program that has this line of code I receive this:

AttributeError: 'module' object has no attribute 'full'
What can I do to make it work OR to replace it (I don't know what "inf" means)

Can I replace it with:

for i in range(0,N):
             #do something with "Moth_fitness" 
Reply


Messages In This Thread
"full" does not work - by coltson - Oct-31-2020, 11:18 PM
RE: "full" does not work - by ndc85430 - Nov-01-2020, 05:58 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020