Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:ropod-project/mrta into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
argenos committed Sep 25, 2019
2 parents 00c6937 + 7d8c472 commit d87a38e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 39 deletions.
2 changes: 1 addition & 1 deletion mrs/ccu.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import logging
import time

from fleet_management.api import API
from fmlib.api import API
from fleet_management.config.config import FMSBuilder
from fmlib.db.mongo import Store
from fmlib.db.queries import get_tasks_by_status
Expand Down
10 changes: 5 additions & 5 deletions mrs/utils/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from ropod.utils.timestamp import TimeStamp
from ropod.utils.uuid import generate_uuid

from fmlib.models.tasks import Task, TaskRequest
from mrs.db.models.task import TaskLot
from fmlib.models.tasks import Task
from fmlib.models.requests import TransportationRequest
from mrs.db.models.performance.task import TaskPerformance
from mrs.db.models.performance.dataset import DatasetPerformance

Expand Down Expand Up @@ -38,9 +38,9 @@ def load_yaml_dataset(dataset_path):
task_info.get("latest_start_time"))
hard_constraints = task_info.get("hard_constraints")

request = TaskRequest(request_id=generate_uuid(), pickup_location=start_location,
delivery_location=finish_location, earliest_pickup_time=earliest_start_time,
latest_pickup_time=latest_start_time, hard_constraints=hard_constraints)
request = TransportationRequest(request_id=generate_uuid(), pickup_location=start_location,
delivery_location=finish_location, earliest_pickup_time=earliest_start_time,
latest_pickup_time=latest_start_time, hard_constraints=hard_constraints)

task = Task.create_new(task_id=task_id, request=request)

Expand Down
33 changes: 0 additions & 33 deletions mrs/utils/models.py

This file was deleted.

0 comments on commit d87a38e

Please sign in to comment.