diff --git a/setup.py b/setup.py index 72c3227..07db32f 100644 --- a/setup.py +++ b/setup.py @@ -37,7 +37,7 @@ def is_pure(self): return False setup(name='up_lpg', - version='0.0.7.5', + version='0.0.8', description='up_lpg', long_description=long_description, long_description_content_type ="text/markdown", diff --git a/up_lpg/lpg_planner.py b/up_lpg/lpg_planner.py index 61c0b7d..6e090b0 100644 --- a/up_lpg/lpg_planner.py +++ b/up_lpg/lpg_planner.py @@ -77,7 +77,7 @@ def _plan_from_file(self, problem: 'up.model.Problem', plan_filename: str, get_i if tt: start = re.match(r'^([\d.]+):', line).group(1) dur = re.match(r'^[\d.]+:\s*\(\s*[\w?-]+((\s+[\w?-]+)*)\s*\)\s*\[([\d.]+)\]$', line).group(3) - actions.append((start,up.plans.ActionInstance(action, tuple(parameters)),dur)) + actions.append((Fraction(start), up.plans.ActionInstance(action, tuple(parameters)), Fraction(dur))) else: actions.append(up.plans.ActionInstance(action, tuple(parameters))) elif re.match(r'no solution', line):