Skip to content

Commit

Permalink
Fixed building of time triggered plans
Browse files Browse the repository at this point in the history
  • Loading branch information
alvalentini committed Nov 7, 2023
1 parent ee20c0f commit d8273e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion up_lpg/lpg_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit d8273e2

Please sign in to comment.