You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ABBREV_AS_CHOP_BANNER
The route's chopped routes .csv file entry has the Abbrev erroneously entered into the Banner field. Info value is the line number in the chopped routes .csv file.
(none flagged)
ABBREV_AS_CON_BANNER
The route's connected routes .csv file entry has the chopped route's Abbrev entered as its Banner. Info value is the line number in the connected routes .csv file.
EXTRA_CHOP_ABBREV
The route's Abbrev is erroneously included at the end of the Route field in the chopped routes .csv file. Info value is the line number in the chopped routes .csv file.
mexemex.autnauecaeca;;;;EXTRA_CHOP_ABBREV;51
EXTRA_CON_ABBREV
The route's Abbrev is erroneously included at the end of the Route field in the connected routes .csv file. Info value is the line number in the connected routes .csv file.
^^ What the? How does a commit linked only to a comment here without a keyword like "close" that was never merged to TravelMapping:master close this?
Reopened!
EXTRA_CON_ABBREV
The route's Abbrev is erroneously included at the end of the Route field in the connected routes .csv file.
Info value is the line number in the connected routes .csv file.
CON_ROUTE_MISMATCH doesn't include the line number -- NordSyd <-> NordSyk is the Info here.
We don't know whether it's the chopped or connected CSV that's the issue, and I figured listing the mismatched banners themselves would be most useful.
The ones that include the line number are:
ABBREV_AS_CHOP_BANNER
ABBREV_AS_CON_BANNER
EXTRA_CHOP_ABBREV
EXTRA_CON_ABBREV
But anyway, to address your point:
The idea here is that datacheck.php can link to the appropriate .csv file, with the offending line highlighted.
I'll send a PM via the forum to how it's currently implemented on lab2.
Still being able to see the system name, if only looking at the error in datacheck.log or on GitHub or the forum etc., would be an added plus, yes. E.G., isrh_con.csv#L5. Know which file it is without having to click on the link.
Doing it this way would let datacheck.php load faster. Right now, it does a DB query to look up the system name. Unnecessary.
EXTRA_CON_ABBREV
The route's Abbrev is erroneously included at the end of the Route field in the connected routes .csv file.
Info value is the line number in the connected routes .csv file.
No, it is the other way round. The route name was incomplete, see last commit above.
Autobahnzubringer means freeway distributor road
Making sure I understand correctly:
Autobahnzubringer Bremen-Arsten is the proper name, with AutZubArs being its truncated Route name (the way you fixed it in the commit)?
(Presumably choosing Ars because two AutZubBres would be a problem?)
No, it is the other way round
So, the final part of what should be the Route name was erroneously left off in the chopped CSV, and included in the Abbrev field instead.
Unfortunately, the datacheck can't really tell which of the 2 is happening. But at least we know something is off...
I should change the description to more clearly describe the causes:
2 potential underlying causes:
The route's Abbrev is erroneously included at the end of the Route field in the connected routes .csv file.
The final part of the route name was left off the chopped .csv file's Route field, and included in the Abbrev field instead.
The 2nd case really has nothing to do with the _con.csv file, making the EXTRA_CON_ABBREV code a bit misleading here.
I could change it to something less suggestive of the 1st case, e.g. CHOP_ABBREV_CON_NAME.
I separated out extra_con & extra_chop and made them their own error because I thought it's useful to note that there's something going on with the abbrev; it can help zero in on what needs fixing.
Perhaps deube.autzubsch;;;;CON_ROUTE_MISMATCH;AutZub <-> AutZubSch
or even mexemex.autnauecaeca;;;;CON_ROUTE_MISMATCH;AutNauEcaEca <-> AutNauEca
are just as useful & clear.
A problem with the current draft is that the link from datacheck.php for EXTRA_CON_ABBREV is to the _con.csv file on GitHub. Not good when, as in this case, the problem is actually in the chopped .csv file.
Hmm... Maybe just sticking with CON_ROUTE_MISMATCH is the way to go?
Autobahnzubringer Bremen-Arsten is the proper name, with AutZubArs being its truncated Route name (the way you fixed it in the commit)?
yep!
Unfortunately, the datacheck can't really tell which of the 2 is happening. [...]
The 2nd case really has nothing to do with the _con.csv file, making the EXTRA_CON_ABBREV code a bit misleading here.
Exactly. I just want to point out that your description was "incomplete" because there is also a 2nd case.
We don't know whether it's the chopped or connected CSV that's the issue, and I figured listing the mismatched banners themselves would be most useful.
The idea here is that datacheck.php can link to the appropriate .csv file, with the offending line highlighted.
That's a discrepance. You can only link to the file (or even line number of the file ❗) when you know:
System name
chopped or connected csv
The latter is quite ambitious. That's why I suggested to output the system name. It helps more than anything else because I know that there are only two files I need to open and check.
The route name (and line number of any unknown csv file) is fine* with numbered routes (e.g. NOR Rv41 is either in norrv.csv or norrv_con.csv) but useless with named routes. In case of Norway, a named route could be in normot, norntv, eursf or eurtr, and I would need to check up to eight csv files.
*However, the line number directs either to the chopped or connected route file. The line number is sometimes the very same but often different. So, the line number is also potentially misleading.
Exactly. I just want to point out that your description was "incomplete" because there is also a 2nd case.
Yup. Having to write all that extra description for contributors to keep in their heads overcomplicates things.
I've gotten rid of EXTRA_CON_ABBREV & EXTRA_CHOP_ABBREV and folded them back into CON_ROUTE_MISMATCH. It's an easier concept to understand. Keep it simple.
Boom! Gone!
Also added the .csv filename to ABBREV_AS_CHOP_BANNER & ABBREV_AS_CON_BANNER. After all the fixes from the last couple days, we have:
You can only link to the file (or even line number of the file ❗) when you know:
System name
This is always known. The original draft changes to datacheck.php got it thru a DB lookup, but there are better ways...
Ways more helpful to the user that simplify the page code & let it load faster.
chopped or connected csv
Known for ABBREV_AS_CHOP_BANNER & ABBREV_AS_CON_BANNER errors. These now have the system .csv filename included, as in the above examples.
EXTRA_CON_ABBREV & EXTRA_CHOP_ABBREV are gone now, so nothing to worry about there anymore.
The route name (and line number of any unknown csv file) is fine* ... *However, the line number directs either to the chopped or connected route file. The line number is sometimes the very same but often different. So, the line number is also potentially misleading.
The .csv file is known, so the remaining errors that still include a line number will link right to that line highlighted on GitHub. No ambiguity.
I plan to keep CON_BANNER_MISMATCH as-is, and not include a system name.
I think the most informative use of the Info field here is to show a snippet of the relevant data that got the error flagged, as is done with VISIBLE_DISTANCE, SHARP_ANGLE, DUPLICATE_COORDS and the rest that use the Info field.
With any of the existing datachecks, like a waypoint label error, a contributor already has to know what system a route is in in order to open the file on disk (or GitHub) anyway.
Most of the time, a contributor will recognize the root listed, and know what system it's in. And if not?
In case of Norway, a named route could be in normot, norntv, eursf or eurtr, and I would need to check up to eight csv files.
For CON_ROUTE_MISMATCH & CON_BANNER_MISMATCH, since we don't know which .csv file the error is in, we don't attempt to link to the file. These will have the same old link to the HB.
If you forget what system a route is in, just click the link and look at the top-left corner above the shield for the system name & code. Then close the browser tab or hit the Back button, etc.
With all the original errors from before the datachecks' implementation cleared out, this should happen rarely going forward. When it does, you'll know what systems you were working on at the time. :)
Here, it should be apparent we have an extra Abbrev erroneously included in the name. Left = chopped, right = connected.
Click on the mexemex.autnauecaeca link and you'll see that with its extraneous Eca in the chopped Route name as well as the Abbrev, it expands to a .list name of AutNauEcaEcaEca!
Good thing I messed up! It exposed a bug in the new code...
usatxf.csv#L331 usatxf;TX;FM339;Spr;MtC;Mount Calm;tx.fm0339;
Root should be tx.fm0339sprmtc
usatxf_con.csv#L331 usatxf;FM339;Spr;Mount Calm;tx.fm0339mtc
Root should be tx.fm0339sprmtc
First, an ErrorList error is flagged, must have been for tx.fm0339mtc not being a valid root; wasn't paying too close attention.
Then, the C++ version crashes. I bet it's trying to dereference a null pointer.
Haven't tried the Python version yet, but it should have the same problem. Good thing here is, the info I get when it crashes will tell me where to look! Edit:
[78.0] ABORTING due to 4 errors:
1: Duplicate root in usatxf.csv: tx.fm0339 already in usatxf.csv
2: Could not find Route matching ConnectedRoute root tx.fm0339mtc in system usatxf.
3: No roots in usatxf_con.csv line: usatxf;FM339;Spr;Mount Calm;tx.fm0339mtc
4: usatxf.csv: root tx.fm0339 not matched by any connected route root.
Clarity?
3. No roots -> no valid root. There's a root there; it's just not valid.
4. TLDR, we've gotta look at error 1, notice that tx.fm0339 is a duplicate, and figure things out from there.
Activity
check chop/con .csv Route+Banner parity
yakra commentedon May 28, 2021
ABBREV_AS_CHOP_BANNER
The route's chopped routes .csv file entry has the Abbrev erroneously entered into the Banner field.
Infovalue is the line number in the chopped routes .csv file.ABBREV_AS_CON_BANNER
The route's connected routes .csv file entry has the chopped route's Abbrev entered as its Banner.
Infovalue is the line number in the connected routes .csv file.CON_BANNER_MISMATCH
The route's Banner field in its chopped routes .csv file mismatches the Banner field in its connected routes .csv file.
CON_ROUTE_MISMATCH
The route's Route field in its chopped routes .csv file mismatches the Route field in its connected routes .csv file.
EXTRA_CHOP_ABBREV
The route's Abbrev is erroneously included at the end of the Route field in the chopped routes .csv file.
Infovalue is the line number in the chopped routes .csv file.EXTRA_CON_ABBREV
The route's Abbrev is erroneously included at the end of the Route field in the connected routes .csv file.
Infovalue is the line number in the connected routes .csv file.Ping @Bickendan @Duke87ofST @mapcat @michihdeu @neroute2 @ntallyn @ovoss @si404 @the-spui-ninja
fixes per TravelMapping/DataProcessing#423
yakra commentedon May 28, 2021
^^ What the? How does a commit linked only to a comment here without a keyword like "close" that was never merged to TravelMapping:master close this?
Reopened!
michihdeu commentedon May 29, 2021
@yakra Thanks! The system name as additional info would help to find the correct csv, e.g.
could be swemot or eursf etc.
The line number is useless IMO
AUT ABBREV_AS_CON_BANNER error
NOR ABBREV_AS_CON_BANNER
CHE CON_ROUTE_MISMATCH
1 remaining item
NOR CON_ROUTE_MISMATCH
LTU CON_ROUTE_MISMATCH
SWE CON_ROUTE_MISMATCH
BE/HB EXTRA_CON_ABBREV
michihdeu commentedon May 29, 2021
No, it is the other way round. The route name was incomplete, see last commit above.
Autobahnzubringer means freeway distributor road
yakra commentedon May 29, 2021
@michihdeu wrote:
CON_ROUTE_MISMATCH doesn't include the line number --
NordSyd <-> NordSykis theInfohere.We don't know whether it's the chopped or connected CSV that's the issue, and I figured listing the mismatched banners themselves would be most useful.
The ones that include the line number are:
But anyway, to address your point:
The idea here is that datacheck.php can link to the appropriate .csv file, with the offending line highlighted.
I'll send a PM via the forum to how it's currently implemented on lab2.
isrh_con.csv#L5. Know which file it is without having to click on the link.yakra commentedon May 29, 2021
@michihdeu wrote:
Making sure I understand correctly:
Autobahnzubringer Bremen-Arsten is the proper name, with
AutZubArsbeing its truncatedRoutename (the way you fixed it in the commit)?(Presumably choosing Ars because two
AutZubBres would be a problem?)So, the final part of what should be the Route name was erroneously left off in the chopped CSV, and included in the Abbrev field instead.
Unfortunately, the datacheck can't really tell which of the 2 is happening. But at least we know something is off...
I should change the description to more clearly describe the causes:
The 2nd case really has nothing to do with the _con.csv file, making the
EXTRA_CON_ABBREVcode a bit misleading here.I could change it to something less suggestive of the 1st case, e.g.
CHOP_ABBREV_CON_NAME.yakra commentedon May 29, 2021
Another option is to fold EXTRA_CON_ABBREV back into CON_ROUTE_MISMATCH.
It's really just a specialized case of CON_ROUTE_MISMATCH:
I separated out extra_con & extra_chop and made them their own error because I thought it's useful to note that there's something going on with the abbrev; it can help zero in on what needs fixing.
Perhaps
deube.autzubsch;;;;CON_ROUTE_MISMATCH;AutZub <-> AutZubSchor even
mexemex.autnauecaeca;;;;CON_ROUTE_MISMATCH;AutNauEcaEca <-> AutNauEcaare just as useful & clear.
A problem with the current draft is that the link from datacheck.php for EXTRA_CON_ABBREV is to the _con.csv file on GitHub. Not good when, as in this case, the problem is actually in the chopped .csv file.
Hmm... Maybe just sticking with CON_ROUTE_MISMATCH is the way to go?
michihdeu commentedon May 30, 2021
yep!
Exactly. I just want to point out that your description was "incomplete" because there is also a 2nd case.
michihdeu commentedon May 30, 2021
That's a discrepance. You can only link to the file (or even line number of the file ❗) when you know:
The latter is quite ambitious. That's why I suggested to output the system name. It helps more than anything else because I know that there are only two files I need to open and check.
The route name (and line number of any unknown csv file) is fine* with numbered routes (e.g. NOR Rv41 is either in norrv.csv or norrv_con.csv) but useless with named routes. In case of Norway, a named route could be in normot, norntv, eursf or eurtr, and I would need to check up to eight csv files.
*However, the line number directs either to the chopped or connected route file. The line number is sometimes the very same but often different. So, the line number is also potentially misleading.
yakra commentedon May 30, 2021
Yup. Having to write all that extra description for contributors to keep in their heads overcomplicates things.
I've gotten rid of
EXTRA_CON_ABBREV&EXTRA_CHOP_ABBREVand folded them back into CON_ROUTE_MISMATCH. It's an easier concept to understand. Keep it simple.Boom! Gone!
Also added the .csv filename to
ABBREV_AS_CHOP_BANNER&ABBREV_AS_CON_BANNER.After all the fixes from the last couple days, we have:
This is always known. The original draft changes to datacheck.php got it thru a DB lookup, but there are better ways...
Ways more helpful to the user that simplify the page code & let it load faster.
Known for
ABBREV_AS_CHOP_BANNER&ABBREV_AS_CON_BANNERerrors.These now have the system .csv filename included, as in the above examples.
EXTRA_CON_ABBREV&EXTRA_CHOP_ABBREVare gone now, so nothing to worry about there anymore.The .csv file is known, so the remaining errors that still include a line number will link right to that line highlighted on GitHub. No ambiguity.
I plan to keep
CON_BANNER_MISMATCHas-is, and not include a system name.I think the most informative use of the
Infofield here is to show a snippet of the relevant data that got the error flagged, as is done withVISIBLE_DISTANCE,SHARP_ANGLE,DUPLICATE_COORDSand the rest that use theInfofield.With any of the existing datachecks, like a waypoint label error, a contributor already has to know what system a route is in in order to open the file on disk (or GitHub) anyway.
Most of the time, a contributor will recognize the root listed, and know what system it's in. And if not?
For
CON_ROUTE_MISMATCH&CON_BANNER_MISMATCH, since we don't know which .csv file the error is in, we don't attempt to link to the file. These will have the same old link to the HB.DISCONNECTED_ROUTE)If you forget what system a route is in, just click the link and look at the top-left corner above the shield for the system name & code. Then close the browser tab or hit the Back button, etc.
With all the original errors from before the datachecks' implementation cleared out, this should happen rarely going forward. When it does, you'll know what systems you were working on at the time. :)
Is an error in the chopped or connected file?
Here, the root is a clue. It'll usually match one and not the other. Chances are there's 1 error not 2, and it's the odd one out.
Here, it should be apparent we have an extra
Abbreverroneously included in the name. Left = chopped, right = connected.Click on the mexemex.autnauecaeca link and you'll see that with its extraneous
Ecain the chopped Route name as well as theAbbrev, it expands to a .list name ofAutNauEcaEcaEca!These specific examples are admittedly less clear. Opening up 2 .csv files ain't so bad. :)
Most of the time these should be pretty intuitive, similar to
CON_ROUTE_MISMATCH. Some imaginary examples:yakra commentedon Jun 8, 2021
🐛
Good thing I messed up! It exposed a bug in the new code...
usatxf.csv#L331
usatxf;TX;FM339;Spr;MtC;Mount Calm;tx.fm0339;Root should be tx.fm0339sprmtc
usatxf_con.csv#L331
usatxf;FM339;Spr;Mount Calm;tx.fm0339mtcRoot should be tx.fm0339sprmtc
First, an
ErrorListerror is flagged, must have been fortx.fm0339mtcnot being a valid root; wasn't paying too close attention.Then, the C++ version crashes. I bet it's trying to dereference a null pointer.
Haven't tried the Python version yet, but it should have the same problem. Good thing here is, the info I get when it crashes will tell me where to look!
Edit:
yakra commentedon Jun 9, 2021
Fixed. The results of the bad usatxf data:
Clarity?
3.
No roots->no valid root. There's a root there; it's just not valid.4. TLDR, we've gotta look at error 1, notice that
tx.fm0339is a duplicate, and figure things out from there.check chop/con .csv Route+Banner parity