Skip to content

TypeError on the Only Tension Test Example 1 #4

@subedinaresh

Description

@subedinaresh

I am trying to run the "VC_Tensile-Only_Calibration_Example_1" notebook in my Windows 10 PC using Jupyter Notebook in Anaconda 3 environment. When I ran the second cell in the given example (without any change) the program gives TypeError after fist iteration (exact error message below).

Do I need anything additional except Python and RESSPyLab to run the program?

Thank you.


C:\Anaconda3\lib\site-packages\RESSPyLab\scipy_dumper.py in dump(self, x, state)
32 np.savetxt(fi, x.reshape((1, len(x))), fmt='%7.6e')
33 with open(self.function_file, 'ab') as fi:
---> 34 fi.write('{0}, {1:5.4e}, {2:5.4e}\n'.format(it_num, f_val, norm_grad_lag))

TypeError: a bytes-like object is required, not 'str'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions