Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: tidy up graph analyzing #595

Merged
merged 6 commits into from Oct 26, 2023

Conversation

jnussbaum
Copy link
Collaborator

No description provided.

@linear
Copy link

linear bot commented Oct 26, 2023

@@ -30,19 +30,18 @@ def analyse_circles_in_data(xml_filepath: Path, tracer_output_file: str, save_tr
max_stack_depth=3,
)
tracer.start()
tree = etree.parse(xml_filepath)
root = tree.getroot()
root = parse_and_clean_xml_file(xml_filepath)
Copy link
Collaborator Author

@jnussbaum jnussbaum Oct 26, 2023

Choose a reason for hiding this comment

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

This function transforms the special tags <annotation>, <region>, and <link> to their technically correct form <resource restype="Annotation">, <resource restype="Region">, and <resource restype="LinkObj">. This is necessary, otherwise these special tags aren't considered when analyzing the links

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Here I just improved the flow of information: It's not necessary for _create_info_from_xml_for_graph_from_one_resource() to return subject_id. This can be extracted on the caller side.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Now, _create_info_from_xml_for_graph_from_one_resource() doesn't return the subject_id any more. So, the tests become easier, because they don't have to test this unnecessary thing any more.

@jnussbaum jnussbaum changed the title Wip/DEV-2848-implement-new-stashing-in-production chore: tidy up graph analyzing Oct 26, 2023
@jnussbaum jnussbaum merged commit f2d4488 into main Oct 26, 2023
6 of 7 checks passed
@jnussbaum jnussbaum deleted the wip/DEV-2848-implement-new-stashing-in-production branch October 26, 2023 07:42
@daschbot daschbot mentioned this pull request Oct 26, 2023
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.

None yet

1 participant