Skip to content

Commit fae3edf

Browse files
authored
Merge pull request #18 from ottowayi/develop
program-scoped tag names fix
2 parents a9f9d97 + dbafa09 commit fae3edf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pycomm3/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
# SOFTWARE.
2525
#
2626

27-
__version_info__ = (0, 4, 2)
27+
__version_info__ = (0, 4, 4)
2828
__version__ = '.'.join(f'{x}' for x in __version_info__)
2929

3030
from typing import NamedTuple, Any, Union, Optional

pycomm3/clx.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __init__(self, ip_address: str, *args, slot: int = 0, large_packets: bool =
8787
self._cache = None
8888

8989
self._data_types = {}
90-
self._program_names = []
90+
self._program_names = set()
9191
self._tags = {}
9292

9393
self.attribs['ip address'] = ip_address
@@ -344,7 +344,7 @@ def _isolating_user_tag(self, all_tags, program=None):
344344
for tag in all_tags:
345345
name = tag['tag_name'].decode()
346346
if 'Program:' in name:
347-
self._program_names.append(name)
347+
self._program_names.add(name.replace('Program:', ''))
348348
continue
349349
if ':' in name or '__' in name:
350350
continue

0 commit comments

Comments
 (0)