Skip to content

new program to filter tm-master.nmp by region - #102

Merged
jteresco merged 1 commit into
masterfrom
nmpfilter
Sep 8, 2018
Merged

new program to filter tm-master.nmp by region#102
jteresco merged 1 commit into
masterfrom
nmpfilter

Conversation

@yakra

@yakrayakra commented Sep 8, 2018

Copy link
Copy Markdown
Contributor

We don't necessarily have to call it "nmpfilter", if anyone has anything better to call it. ("nmpregions" or something for example, maybe?)
OTOH, what else could there be that we'd want to filter tm-master.nmp by?

@jteresco
jteresco merged commit f912b7c into masterSep 8, 2018
@yakra
yakra deleted the nmpfilter branch September 12, 2018 04:55
@yakra

Copy link
Copy Markdown
ContributorAuthor

OTOH, what else could there be that we'd want to filter tm-master.nmp by?

  • filter by country
  • filter out FPs
  • filter in LI entries

Stay tuned!

@jteresco

Copy link
Copy Markdown
Contributor

Filtering types of NMPs might be better to do in HDX by a couple checkboxes to show/hide things that are green/yellow/red, but I have no objection to creating such filters with the nmpfilter or other programs that will create smaller files with only what you're looking to see.

@yakra

yakra commented Sep 21, 2018

Copy link
Copy Markdown
ContributorAuthor

In the meantime, filtering out FPs was very simple, only 23 lines of code.
I found "nmpfpfilter" useful to create smaller files which I could order by filesize in my GUI shell, and get a good indication of the relative progress to be made in each region. I don't propose adding nmpfpfilter to siteupdate, or generating its files automatically at all, but I figure it makes sense to add it to the repo and make it available for anyone else who'd want to use it.

"nmplifilter", I've not written yet, but would be a simple modification to one line of nmpfpfilter. Allowing only LI entries through can give people an easy clutter-free place to start working by either fixing or marking these pairs as FP.
Also enables searching out intentional NMPs, to reposition them to enable the Intersecting Routes feature, and break false multiplexes by adding shaping points instead.
Yes, it would be less convenient than a show only "Looks Intentional" pairs option in the HDX, but if I can do it right now with only one line of code, hey why not.

nmpbycountry may be useful to those maintaining the 16 multi-region countries, though I expect for the most part we'd be doing more work with the individual nmpbyregion files. May still be of general interest though.

Sign up for freeto 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

@yakra@jteresco