Skip to content

Commit

Permalink
🐛 fixed program-scoped tags in get_tag_info
Browse files Browse the repository at this point in the history
  • Loading branch information
ottowayi committed May 16, 2022
1 parent d93c846 commit 04d999b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/releases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
Release History
===============

1.2.7
=====

LogixDriver
-----------

- |:bug:| fixed issue with program-scoped tags in `get_tag_info` #216

1.2.6
=====

Expand Down
2 changes: 1 addition & 1 deletion pycomm3/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
# SOFTWARE.
#

__version_info__ = (1, 2, 6)
__version_info__ = (1, 2, 7)
__version__ = ".".join(f"{x}" for x in __version_info__)
2 changes: 2 additions & 0 deletions pycomm3/logix_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1243,6 +1243,8 @@ def get_tag_info(self, tag_name: str) -> Optional[dict]:
"""
base, *attrs = tag_name.split(".")
if base.startswith("Program:"):
base = f"{base}.{attrs.pop(0)}"
return self._get_tag_info(base, attrs)

def _get_tag_info(self, base, attrs) -> Optional[dict]:
Expand Down

0 comments on commit 04d999b

Please sign in to comment.