Skip to content

Priority 1 dev#16

Merged
atibaut merged 3 commits into
OpRa-CEN:priority_1_devfrom
atibaut:priority_1_dev
Mar 9, 2026
Merged

Priority 1 dev#16
atibaut merged 3 commits into
OpRa-CEN:priority_1_devfrom
atibaut:priority_1_dev

Conversation

@atibaut
Copy link
Copy Markdown
Collaborator

@atibaut atibaut commented Mar 9, 2026

some new examples, some typos fixed in xsd (descriptions).

Copilot AI review requested due to automatic review settings March 9, 2026 10:30
@atibaut atibaut merged commit 9c77fff into OpRa-CEN:priority_1_dev Mar 9, 2026
1 of 2 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds new XML example files, clarifies XSD documentation descriptions, and updates the project file to reference new/renamed schema files and examples.

Changes:

  • Improved XSD documentation in opra_statistics_support.xsd with clearer numerator/denominator descriptions
  • Added new example XML files: PlannedFleetDimensions.xml, PlannedCapacityIndicator.xml, and CancelledDatedVehicleJourneys.xml
  • Updated OpRa.xpr to reference renamed/new schema files and the new example

Reviewed changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
xsd/opra_framework/opra_reusableComponents/opra_statistics_support.xsd Clarified group and element documentation with numerator/denominator terminology
examples/PlannedFleetDimensions.xml New example for planned fleet dimensions for a line and operating day
examples/PlannedCapacityIndicator.xml New example for planned capacity indicator across line and journey pattern
examples/CancelledDatedVehicleJourneys.xml New example for cancelled dated vehicle journeys with occurrence statistics
OpRa.xpr Added new example and schema file references, replaced renamed schema entries
OJP Updated submodule commit reference
NeTEx Updated submodule commit reference
.gitignore Added .tmp and docs to ignored paths

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<netex:OperatingDayRef ref="Test:OperatingDay:2026-03-01"/>
<netex:VehicleTypeRef ref="Test:VT:bus:regular"/>
<RollingStockType>selfPropelled</RollingStockType>
<NumberOfVehiclesTotal>24</NumberOfVehiclesTotal>
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

The numbers appear internally inconsistent: NumberOfVehiclesRequired (20) + NumberOfVehiclesInReserve (2) = 22, which does not equal NumberOfVehiclesTotal (24). Additionally, NumberOfVehiclesAvailable (22) equals Required + Reserve but not Total. If NumberOfVehiclesAvailable is intended to be Total minus some unavailable vehicles, the values should add up correctly. Reviewers/consumers of this example may be confused by values that don't reconcile. Consider aligning these numbers so they reflect a coherent scenario (e.g., Total=24, Available=22, Required=20, InReserve=2, and clarify that 2 of the 24 are unavailable).

Suggested change
<NumberOfVehiclesTotal>24</NumberOfVehiclesTotal>
<NumberOfVehiclesTotal>22</NumberOfVehiclesTotal>

Copilot uses AI. Check for mistakes.
<netex:JourneyPatternRef ref="Test:JP:10:T1-T3a"/>
<!-- Numerator: journeys cancelled in the scope above -->
<NumberOfOccurrences>2</NumberOfOccurrences>
<PercentageOfOccurrences>0.0270</PercentageOfOccurrences>
Copy link

Copilot AI Mar 9, 2026

Choose a reason for hiding this comment

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

The percentage value 0.0270 does not match the numerator/denominator values given: 2 cancelled out of 74 total journeys = 2/74 ≈ 0.02703, which as a percentage would be approximately 2.703 (if expressed as a percentage, i.e. 0–100 scale) or 0.02703 (if expressed as a decimal proportion, i.e. 0–1 scale). If PercentageType uses a 0–100 scale, the value should be approximately 2.703 rather than 0.0270. Please verify the expected scale of PercentageType and correct the value accordingly.

Suggested change
<PercentageOfOccurrences>0.0270</PercentageOfOccurrences>
<PercentageOfOccurrences>2.703</PercentageOfOccurrences>

Copilot uses AI. Check for mistakes.
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