Commit 2b464795 authored by Georgios Dagkakis's avatar Georgios Dagkakis

plugin deleted. Not used anymore

parent 34705be0
from copy import copy
import json
import time
import random
import operator
from datetime import datetime
from dream.plugins import plugin
class BatchesShiftAttributes(plugin.InputPreparationPlugin):
""" Input preparation
set the shift attributes in the Batch instance
"""
def preprocess(self, data):
""" set the shift attributes in the Batch instance
"""
nodes=data['graph']['node']
for node_id, node in nodes.iteritems():
interruptions=node.get('interruptions',None)
if interruptions:
shift=interruptions.get('shift',None)
if shift:
interruptions['shift']['thresholdTimeIsOnShift']=0
interruptions['shift']['receiveBeforeEndThreshold']=7
interruptions['shift']['endUnfinished']=1
return data
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment