Skip to content

Properly match TDC name#30

Merged
nvaytet merged 1 commit into
mainfrom
properly-match-tdc-name
Sep 11, 2024
Merged

Properly match TDC name#30
nvaytet merged 1 commit into
mainfrom
properly-match-tdc-name

Conversation

@jl-wynen
Copy link
Copy Markdown
Member

@jl-wynen jl-wynen requested a review from nvaytet September 11, 2024 13:01
Copy link
Copy Markdown
Member

@nvaytet nvaytet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Slightly annoying diff to read... ;-)

Comment thread src/chexus/validators.py
def validate(self, node: Dataset | Group) -> Violation | None:
if node.name == 'top_dead_center':
if 'value' in node.children:
if node.name.rsplit("/", 1)[-1] == "top_dead_center":
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never know if rsplit or endswith("/top_dead_center") is better...

@nvaytet nvaytet merged commit db3be5b into main Sep 11, 2024
@nvaytet nvaytet deleted the properly-match-tdc-name branch September 11, 2024 13:44
@SimonHeybrock
Copy link
Copy Markdown
Member

Slightly annoying diff to read... ;-)

Yes, next time, please reject PRs that have unrelated (and unintentional) big formatting changes!

@jl-wynen jl-wynen mentioned this pull request Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants