def build_sequential(): """ This builds a quick mock sequential datastore with 100 values for each discrete, coils, holding, and input bits/registers. """ data = { 'di' : seqblock(0, [bool(x) for x in range(1, 100)]), 'ci' : seqblock(0, [bool(not x) for x in range(1, 100)]), 'hr' : seqblock(0, [int(x) for x in range(1, 100)]), 'ir' : seqblock(0, [int(2*x) for x in range(1, 100)]), } return data
def build_sequential(): """ This builds a quick mock sequential datastore with 100 values for each discrete, coils, holding, and input bits/registers. """ data = { 'di': seqblock(0, [bool(x) for x in range(1, 100)]), 'ci': seqblock(0, [bool(not x) for x in range(1, 100)]), 'hr': seqblock(0, [int(x) for x in range(1, 100)]), 'ir': seqblock(0, [int(2 * x) for x in range(1, 100)]), } return data