Skip to content

Conversation

ahcorde
Copy link

@ahcorde ahcorde commented Jul 25, 2025

Related with #27

Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
Signed-off-by: Alejandro Hernandez Cordero <[email protected]>
@ahcorde ahcorde requested review from 130s and arne48 September 4, 2025 09:18
Copy link
Member

@130s 130s left a comment

Choose a reason for hiding this comment

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

Not very familiar with this codebase so my comments are rather just comments.

Curious to see test result. Looks like there's a test that calls the very function that is being changed, generate_dotcode.
Then, IIUC, the test is NOT executed on CI (a result from this PR)? If so better run the test on CI.

@@ -95,6 +95,14 @@ def generate_dotcode(self,
self.listen_duration = 0

yaml_data = tf2_frame_srv.call(FrameGraph.Request()).frame_yaml

def my_construct_mapping(self, node, deep=False):
data = self.construct_mapping_org(node, deep)
Copy link
Member

Choose a reason for hiding this comment

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

Does self.construct_mapping_org reference properly? I can't find the definition of such a symbol.

data = self.construct_mapping_org(node, deep)
return {(str(key) if isinstance(key, int) else key): data[key] for key in data}

yaml.SafeLoader.construct_mapping_org = yaml.SafeLoader.construct_mapping
Copy link
Member

Choose a reason for hiding this comment

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

Is there a usecase for yaml.SafeLoader.construct_mapping_org?

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.

2 participants