What we do here

Test the tie file object. Create a tie, make a conf file attach the tie and later, fetch the serie and plot it. Ties are black marks on the serie plot().


In [ ]:
import Match
%matplotlib inline

In [ ]:
tt = Match.Tie("testtie.tie")

tt.set_tie(1000, 2000., label = "A")
tt.set_tie(1500.0, 2500., label ="B")
tt.report()
print "Save: ", tt.save()

In [ ]:
# Createa  conf file and attach the tie
mcf = Match.MatchConfFile("test.conf")
mcf.setSeries(1, "LR04core")
mcf.setSeries(2, "LR04core")
mcf.guessParameters()
mcf.generateSpeeds(1,1)
mcf.targetspeed = "1:1"

# attacht
mcf.tiefile = tt.filename

In [ ]:
# Ask the serie from the conf file, it should come with the tie set
mcf.getSeries(1).plot()

In [ ]:
mcf.getSeries(2).plot()