jbrusey / cogent-house

Cogent House is a system for sensing temperature, humidity, CO2, Air Quality, VOC, hot water consumption, and electricity consumption within the home. It has been developed by the [http://cogentcomputing.org Cogent Computing Applied Research Centre] at Coventry University. Cogent House is developed using TinyOS and Python.
4 stars 2 forks source link

Yield Script does not deal with Resets #90

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the Yield Script

What is the expected output? What do you see instead?

* Expected to get a Yield,
* Get a Error instead

Output (printing this / after)

(datetime.datetime(2014, 3, 27, 8, 56, 16), 147L) (datetime.datetime(2014, 3, 
27, 9, 6, 15), 148L)
(datetime.datetime(2014, 3, 27, 9, 6, 15), 148L) (datetime.datetime(2014, 3, 
27, 9, 7, 47), 0L)
Traceback (most recent call last):
  File "sip_yield.py", line 127, in <module>
    yld = calc_yield(nodeStates,256,300)
  File "sip_yield.py", line 89, in calc_yield
    (weight, amb) = weighting(this, after, wrap=wrap, period=period)
  File "sip_yield.py", line 64, in weighting
    (missed, amb) = missing(seq1, seq2, time_slots, wrap)
  File "sip_yield.py", line 53, in missing
    if is_ambiguous(low_bnd, up_bnd):
  File "sip_yield.py", line 38, in is_ambiguous
    assert up_bnd >= low_bnd
AssertionError

Original issue reported on code.google.com by DjGoldsm...@googlemail.com on 13 May 2014 at 3:18

GoogleCodeExporter commented 9 years ago
Will look into this asap

Original comment by james.br...@gmail.com on 17 May 2014 at 6:47

GoogleCodeExporter commented 9 years ago
weird - I don't even have sip_yield.py - possibly this is Ross' new one? 
reassigning to him

Original comment by james.br...@gmail.com on 17 May 2014 at 7:11

GoogleCodeExporter commented 9 years ago
This is the new version, some work has been done to rectify this by checking on 
localtime

Original comment by Ross.Wil...@gmail.com on 17 May 2014 at 9:47

GoogleCodeExporter commented 9 years ago
This is the new version, some work has been done to rectify this by checking on 
localtime

Original comment by Ross.Wil...@gmail.com on 17 May 2014 at 9:47

GoogleCodeExporter commented 9 years ago
where is the code though?

Original comment by james.br...@gmail.com on 29 May 2014 at 5:37