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

added lines argument to add_xml_location #51

Closed
wants to merge 3 commits into from

Conversation

johannesWen
Copy link

@johannesWen johannesWen commented Dec 17, 2024

Description

Added a "lines" argumnet to the add_xml_location function. This is useful to find the XML element easier in the whole opendrive file.

Usage can be seen in asam-ev/qc-opendrive#124

Main changes

  1. Added lines attribute to class XMLLocationType
  2. Added lines argument to add_xml_location()
  3. Test update

How was the PR tested?

  1. Pytests successful

Signed-off-by: Johannes Wenninger <johannes.wenninger@lcm.at>
Signed-off-by: Johannes Wenninger <johannes.wenninger@lcm.at>
Signed-off-by: Johannes Wenninger <johannes.wenninger@lcm.at>
@andreaskern74
Copy link
Contributor

Hey @johannesWen,

Thanks for contributing to this project!

I think your use case is that it is easier to find the issue in the source file as a human, because the xpath is not really good readable. See also asam-ev/qc-opendrive#121 regarding this topic.

If you want to see the line numbers in the source code, there are three things to know:

Nevertheless, I totally understand that people just want to use qc-opendrive without the pooling/reporting . Probably it's possible to adapt this PR that it creates <FileLocation/>. Then it is still compliant to the specification.

@johannesWen
Copy link
Author

Hi @andreaskern74,

yes, this would be exactly the use case, to use qc-opendrive as a library without the Report GUI.
I will see, how I can adapt the PR.

@johannesWen
Copy link
Author

Hi @andreaskern74,

I just added an add_file_location() to all checks in qc-opendrive (asam-ev/qc-opendrive@dae5d1f).
I'm not sure if this is an appropriate solution, but it doesn't require a change of the specification.

@johannesWen
Copy link
Author

Resolved by PR asam-ev/qc-opendrive#124

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