1
0
Fork 0
master
Pietro 4 years ago
parent c6a19ea86a
commit 8dfabb72c4
  1. 4
      PyCTBN/PyCTBN/structure_graph/trajectory_generator.py
  2. 1
      example.py

@ -26,8 +26,8 @@ class TrajectoryGenerator(object):
def __init__(self, importer: AbstractImporter = None, variables: list = None, dyn_str: list = None, dyn_cims: dict = None): def __init__(self, importer: AbstractImporter = None, variables: list = None, dyn_str: list = None, dyn_cims: dict = None):
"""Constructor Method """Constructor Method
It parses and elaborates the data fetched from importer in order to make the objects structure It parses and elaborates the data fetched from importer (if defined, otherwise variables, dyn_str and dyn_cims are used)
more suitable for the forthcoming trajectory generation in order to make the objects structure more suitable for the forthcoming trajectory generation
""" """
self._importer = importer self._importer = importer

@ -12,7 +12,6 @@ card = 3
vals = [card for l in labels] vals = [card for l in labels]
cim_min = 1 cim_min = 1
cim_max = 3 cim_max = 3
ng = NetworkGenerator(labels, vals) ng = NetworkGenerator(labels, vals)
ng.generate_graph(0.3) ng.generate_graph(0.3)
ng.generate_cims(cim_min, cim_max) ng.generate_cims(cim_min, cim_max)