Hi all,
This is a bit in the weeds for me, and I'd enjoy some clarification.
I have a xdressed struct and a function that returns it:
h/cc:
class ArcFlow
std::vector<ArcFlow> execute_exchange(Params& params, std::string db_path = "");
xdressrc:
stlcontainers = [
('vector', 'int'),
('vector', 'float'),
('vector', 'ArcFlow'),
('vector', ('vector', 'int')),
('map', 'int', 'float'),
('map', 'int', 'int'),
('map', 'int', 'bool'),
('map', 'int', ('vector', 'int')),
('map', 'int', ('vector', 'float')),
('map', 'int', ('vector', ('vector', 'int'))),
('map', 'int', ('map', 'int', ('vector', 'float'))),
]
However, when I call the function
from cyclopts.execute import Params, execute_exchange
from cyclopts.dtypes import xd_arcflow
obs = execute_exchange(params)
I get the following error:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/gidden/phd/cyclopts/tests/test_execute.py", line 12, in test_null
obs = execute_exchange(params)
File "execute.pyx", line 314, in cyclopts.execute.execute_exchange (/home/gidden/phd/cyclopts/build/cyclopts/execute.cxx:7095)
NameError: name 'dtypes' is not defined
Any suggestions? I'd be happy to provide more data as requested.
Cheers,
--
Matthew Gidden
Ph.D. Candidate, Nuclear Engineering