Skip to content

Commit 86b7bc3

Browse files
Merge pull request #58 from hman523/feature/GSG-155
GSG-155: Changed data_available to property instead of function in python
2 parents 3a29c8b + 7c3ee6f commit 86b7bc3

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

2_hello_world/python/HelloWorldSubscriber.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def run_example(domain_id, sample_count):
6464
status_condition = dds.StatusCondition(reader)
6565

6666
# Enable the 'data available' status.
67-
status_condition.enabled_statuses = dds.StatusMask.data_available()
67+
status_condition.enabled_statuses = dds.StatusMask.DATA_AVAILABLE
6868

6969
# Initialize samples_read to zero
7070
samples_read = 0

3_streaming_data/python/ChocolateFactorySubscriber.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def run_example(domain_id, sample_count, sensor_id):
5959
status_condition = dds.StatusCondition(reader)
6060

6161
# Enable the 'data available' status.
62-
status_condition.enabled_statuses = dds.StatusMask.data_available()
62+
status_condition.enabled_statuses = dds.StatusMask.DATA_AVAILABLE
6363

6464
# Associate a handler with the status condition. This will run when the
6565
# condition is triggered, in the context of the dispatch call (see below)

4_keys_instances/python/monitoring_ctrl_application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def run_example(domain_id, lots_to_process, sensor_id):
127127
# Obtain the DataReader's Status Condition
128128
status_condition = dds.StatusCondition(reader)
129129
# Enable the 'data available' status.
130-
status_condition.enabled_statuses = dds.StatusMask.data_available()
130+
status_condition.enabled_statuses = dds.StatusMask.DATA_AVAILABLE
131131

132132
# Associate a handler with the status condition. This will run when the
133133
# condition is triggered, in the context of the dispatch call (see below)
@@ -143,7 +143,7 @@ def handler(_):
143143
temperature_status_condition = dds.StatusCondition(reader)
144144

145145
temperature_status_condition.enabled_statuses = (
146-
dds.StatusMask.data_available()
146+
dds.StatusMask.DATA_AVAILABLE
147147
)
148148

149149
def temperature_handler(_):

4_keys_instances/python/tempering_application.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def run_example(domain_id, sensor_id):
134134
# Obtain the DataReader's Status Condition
135135
status_condition = dds.StatusCondition(lot_state_reader)
136136
# Enable the 'data available' status.
137-
status_condition.enabled_statuses = dds.StatusMask.data_available()
137+
status_condition.enabled_statuses = dds.StatusMask.DATA_AVAILABLE
138138

139139
# Associate a handler with the status condition. This will run when the
140140
# condition is triggered, in the context of the dispatch call (see below)

0 commit comments

Comments
 (0)