Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pybindsrc/module.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ PYBIND11_MODULE(_daq_conffwk_py, m)

m.doc() = "Python interface to the conffwk package"; // optional module docstring

register_conffwk(m);
register_conffwkobject(m);
register_conffwk(m);
}

} // namespace dunedaq::conffwk::python
18 changes: 18 additions & 0 deletions python/conffwk/dal.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,6 +573,23 @@ def pyoksTypes(cls):
"""Returns a join of this class and base class names"""
return cls.__okstypes__

# The following four classes enable type checking for FSM objects, which are a part of
# the OKS schema, but are not generated by the DAL generator.
class FSMData(DalBase):
"""This class is used to represent any FSM data object in the system. """
pass

class FSMTransition(DalBase):
"""This class is used to represent any FSM transition object in the system. """
pass

class FSMxTransition(DalBase):
"""This class is used to represent any FSM pre/post transition object in the system. """
pass

class FSMAction(DalBase):
"""This class is used to represent any FSM action object in the system. """
pass

def get_classes(m):
"""Returns a map with classes in a module, the key is the class name."""
Expand Down Expand Up @@ -727,3 +744,4 @@ def module(name, schema, other_dals=[], backend='oksconflibs', db=None):
for k in generate(db, other_dals):
retval.__dict__[k.pyclassName()] = k
return retval

Empty file added python/conffwk/py.typed
Empty file.
Loading