Skip to content

Commit 74b8bc4

Browse files
committed
CA-538 Fix typo in unit test with xdelta.
1 parent ea52fb3 commit 74b8bc4

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

tests/test_SourceVITA49.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ def connectOutputData(self,portName= "dataShort_out"):
9797
self.dataSink = sb.DataSink()
9898
self.comp.connect(self.dataSink,usesPortName=portName)
9999

100-
def pushSriBigEndian(self,xdelta=1,streamID='TestStreamID',mode=0,kw=[]):
100+
def pushSriBigEndian(self,xdelta=1.0,streamID='TestStreamID',mode=0,kw=[]):
101101
kw.append(CF.DataType("dataRef", ossie.properties.to_tc_value(BIG_ENDIAN, 'string')))
102102
self.pushSRI(xdelta, streamID, mode, kw)
103103

104-
def pushSriLittleEndian(self,xdelta=1,streamID='TestStreamID',mode=0,kw=[]):
104+
def pushSriLittleEndian(self,xdelta=1.0,streamID='TestStreamID',mode=0,kw=[]):
105105
kw.append(CF.DataType("dataRef", ossie.properties.to_tc_value(LITTLE_ENDIAN, 'string')))
106106
self.pushSRI(xdelta, streamID, mode, kw)
107107

108-
def pushSRI(self,xdelta=1,streamID='TestStreamID',mode=0,kw=[]):
108+
def pushSRI(self,xdelta=1.0,streamID='TestStreamID',mode=0,kw=[]):
109109
sri = BULKIO.StreamSRI(hversion=1, xstart=0.0, xdelta=xdelta, xunits=1, subsize=0, ystart=0.0, ydelta=0.0, yunits=0, mode=mode, streamID=streamID, blocking=False, keywords=kw)
110110
self.input_vita49_port.pushSRI(sri,timestamp.now())
111111

@@ -408,7 +408,7 @@ def testSendDataBigEndianSI(self):
408408
self.connectOutputData(portName= "dataShort_out")
409409

410410
attachId = self.callAttach(True,0)
411-
self.pushSriBigEndian(xdelta=1/10000,mode=1,streamID="testSendDataSI", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
411+
self.pushSriBigEndian(xdelta=1.0/10000,mode=1,streamID="testSendDataSI", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
412412

413413
self.comp.start()
414414
time.sleep(1)
@@ -424,7 +424,7 @@ def testSendDataBigEndianCI(self):
424424

425425
self.connectOutputData(portName= "dataShort_out")
426426
attachId = self.callAttach(True,1)
427-
self.pushSriBigEndian(xdelta=1/10000,mode=1,streamID="testSendDataCI", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
427+
self.pushSriBigEndian(xdelta=1.0/10000,mode=1,streamID="testSendDataCI", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
428428

429429
self.comp.start()
430430
time.sleep(1)
@@ -441,7 +441,7 @@ def testSendDataBigEndianSF(self):
441441
self.connectOutputData(portName= "dataFloat_out")
442442

443443
attachId = self.callAttach(True,2)
444-
self.pushSriBigEndian(xdelta=1/10000,mode=1,streamID="testSendDataSF", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
444+
self.pushSriBigEndian(xdelta=1.0/10000,mode=1,streamID="testSendDataSF", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
445445

446446
self.comp.start()
447447
time.sleep(1)
@@ -458,7 +458,7 @@ def testSendDataLittleEndianSI(self):
458458
self.connectOutputData(portName= "dataShort_out")
459459

460460
attachId = self.callAttach(True,0)
461-
self.pushSriLittleEndian(xdelta=1/10000,mode=1,streamID="testSendDataSI", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
461+
self.pushSriLittleEndian(xdelta=1.0/10000,mode=1,streamID="testSendDataSI", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
462462

463463
self.comp.start()
464464
time.sleep(1)
@@ -474,7 +474,7 @@ def testSendDataLittleEndianCI(self):
474474

475475
self.connectOutputData(portName= "dataShort_out")
476476
attachId = self.callAttach(True,1)
477-
self.pushSriLittleEndian(xdelta=1/10000,mode=1,streamID="testSendDataCI", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
477+
self.pushSriLittleEndian(xdelta=1.0/10000,mode=1,streamID="testSendDataCI", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
478478

479479
self.comp.start()
480480
time.sleep(1)
@@ -491,7 +491,7 @@ def testSendDataLittleEndianSF(self):
491491
self.connectOutputData(portName= "dataFloat_out")
492492

493493
attachId = self.callAttach(True,2)
494-
self.pushSriLittleEndian(xdelta=1/10000,mode=1,streamID="testSendDataSF", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
494+
self.pushSriLittleEndian(xdelta=1.0/10000,mode=1,streamID="testSendDataSF", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
495495

496496
self.comp.start()
497497
time.sleep(1)
@@ -508,7 +508,7 @@ def testSendDataDefaultEndianSI(self):
508508
self.connectOutputData(portName= "dataShort_out")
509509

510510
attachId = self.callAttach(True,0)
511-
self.pushSRI(xdelta=1/10000,mode=1,streamID="testSendDataSI", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
511+
self.pushSRI(xdelta=1.0/10000,mode=1,streamID="testSendDataSI", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
512512

513513
self.comp.start()
514514
time.sleep(1)
@@ -524,7 +524,7 @@ def testSendDataDefaultEndianCI(self):
524524

525525
self.connectOutputData(portName= "dataShort_out")
526526
attachId = self.callAttach(True,1)
527-
self.pushSRI(xdelta=1/10000,mode=1,streamID="testSendDataCI", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
527+
self.pushSRI(xdelta=1.0/10000,mode=1,streamID="testSendDataCI", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
528528

529529
self.comp.start()
530530
time.sleep(1)
@@ -541,7 +541,7 @@ def testSendDataDefaultEndianSF(self):
541541
self.connectOutputData(portName= "dataFloat_out")
542542

543543
attachId = self.callAttach(True,2)
544-
self.pushSRI(xdelta=1/10000,mode=1,streamID="testSendDataSF", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
544+
self.pushSRI(xdelta=1.0/10000,mode=1,streamID="testSendDataSF", kw=[CF.DataType("COL_RF", ossie.properties.to_tc_value(100000000, 'double'))])
545545

546546
self.comp.start()
547547
time.sleep(1)

0 commit comments

Comments
 (0)