Closed xrotwang closed 5 years ago
Ah, it's a classic: In https://github.com/lmaurits/phyltr/blob/39bc8962ab2d8df5646536d76a15c7828f3649bd/src/phyltr/plumbing/sources.py#L125-L126 you first check for the last non-whitespace character in line
, and then remove the last character unconditionally, i.e. without calling .strip()
first. Easy fix.
Thanks for catching this! Should be fixed now in develop
?
All good now. Btw. what about doing away with the develop
branch? Would make for a simpler development model, I think.
Yeah, I am pretty open to this. A lot of my projects (e.g. BEASTling too) still have this overly-complicated branch structure I cargo-culted from that popular git blog post, which I've really only found to be a pain, over the years.
I would be very happy if a phyltr 1.0.0 could finally emerge as part of the upcoming D-PLACE hackathon in Jena, and part of that could be simplifying the repo structure.
Yes, a nice, well-tested 1.0 with simple maintenance/development setup would be a good side-effect! One desideratum I'm pondering, is better python API usability - but from first inspection it seems as if the stream handling (including sys.*
access) is baked into the core Command
class - so may not be easily replaced with other generators of trees.
Maybe we (i.e. you :) ) should add a 1.0 milestone, to get things organized.
Just noticed this:
Note that
25
is translated toQUM_
, notQUM
. This seems to happen, becauseQUM
is the last element in thetranslate
list and terminated with;
not,
. Inserting an additional element fixes the problem:results in