Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Mytime Problems
#1
Hi
I'm getting the error with the use of mytime. Is this part of a library?
Thank you, Dave

Error:
Traceback (most recent call last): File "C:/Users/David/PycharmProjects/pythonProject2/venv/init_collapse.py", line 233, in <module> print("%.8f" % mytime, file=output) NameError: name 'mytime' is not defined
with open(file_ls, "w") as output:
    output.write("%d %d %d" % (np.shape(kxx)[1], np.shape(kxx)[0], collapse_steps))
    for ii in np.arange((np.shape(kxx)[1])):
            print("%.8f" % (kxx[0, ii]), file=output)
   ### for ii in arrange(shape(kyy)[0]):
    for ii in np.arange(np.shape(kyy)[0] - 1, -1, -1):
            print("%.8f" % (kyy[ii, 0]), file=output)
    for ii in np.arange(collapse_steps):
            print("%.8f" % mytime, file=output)]
Reply
#2
What is mytime? I don't see it as a package anywhere. Can you list the imports at the top of the module? That might provide some hits.
Reply


Forum Jump:

User Panel Messages

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