Skip to content

Commit ea9f124

Browse files
committed
Merge branch 'tickets/DM-54319'
2 parents 9f66ed8 + b8ed22f commit ea9f124

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

doc/changes/DM-54319.bugfix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fixed - not being able to be in a name specified in PipelineGraph select.

python/lsst/pipe/base/pipeline_graph/expressions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def make_lexer(cls) -> Any: # unspecified PLY type.
8484

8585
# Identifiers are alphanumeric, and may have a T:, D:, or S: prefix.
8686
def t_IDENTIFIER(self, t: LexToken) -> LexToken:
87-
r"""([TDS]:)?\w+"""
87+
r"""([TDS]:)?[\w-]+"""
8888
t.type = "IDENTIFIER"
8989
return t
9090

tests/test_pipeline_graph_expressions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_identifiers(self):
4444
self.assertEqual(pge.parse("D:c_4"), pge.IdentifierNode(qualifier="D", label="c_4"))
4545
self.assertEqual(pge.parse("S:d_5"), pge.IdentifierNode(qualifier="S", label="d_5"))
4646
with self.assertRaises(InvalidExpressionError):
47-
pge.parse("a-3")
47+
pge.parse("a+3")
4848
with self.assertRaises(InvalidExpressionError):
4949
pge.parse("G:d1")
5050

0 commit comments

Comments
 (0)