Skip to content

Error in defining board file #1

Description

@Masoudzn

Hello,

When I try to run 'RunExperiments_2Dev.py' file I see the following error:

Traceback (most recent call last):
  File "RunExperiments_2Dev.py", line 85, in <module>
    BRD.define_BP(methods[0]._codebook, np.arange(0, 64))
  File "/home/masoud/eclipse-workspace/ACO/TalonPy/boardfile.py", line 69, in define_BP
    np.set_printoptions(threshold=np.nan)
  File "/home/masoud/.local/lib/python3.5/site-packages/numpy/core/arrayprint.py", line 246, in set_printoptions
    floatmode, legacy)
  File "/home/masoud/.local/lib/python3.5/site-packages/numpy/core/arrayprint.py", line 93, in _make_options_dict
    raise ValueError("threshold must be numeric and non-NAN, try "
ValueError: threshold must be numeric and non-NAN, try sys.maxsize for untruncated representation

When I change np.set_printoptions(threshold=np.nan) in line 69 of boardfile.py to np.set_printoptions(threshold=sys.maxsize) the error goes away but the experiments stop at iteration 1.

I use the ethernet connection to connect the routers to the computer that controls them. The IP addresses of the routers are changed accordingly and the connections are successful.

What can cause this error?

Thanks.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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