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
Parse digits including the - (minus) sign to ensure it is parsed as it should.
I quickly tested to change:
digits_re=re.compile(r'\d+')
To:
digits_re=re.compile(r'-?\d+')
And it parsed the above file sequence correctly as a single sequence. YAY! (Dirty fix?)
Though to have this as a fully reliable implementation I'm imagining some changes need to be made to uncompress and alike to be perfect. Similarly tests should be implemented to also ensure the functionality remains reliable over time.
The text was updated successfully, but these errors were encountered:
Hi Roy, thanks for using pyseq and for reporting this issue.
I'll need to do a bit more testing and write some new unit tests, but I tried your solution and I think it should be fine. There are unit tests in test/test_pyseq.py, and they all pass with this change, including uncompress.
BigRoy
added a commit
to BigRoy/pyseq
that referenced
this issue
Aug 28, 2016
Looks like a little more work will be required here,
>>> s = pyseq.get_sequences(data)[0]
>>> s
<pyseq.Sequence "file.-2-3.jpg">
>>> for i in s: print i
...
file.-001.jpg
file.-002.jpg
file.0000.jpg
file.0001.jpg
file.0003.jpg
The issue seems to be the sort here, so a fancier sorting function will be required:
Problem
When
pyseq
encounters a frame range that is negative it doesn't parse it correctly.For example I have an application that saves out to the following format:
Testing that it parses:
Solution
Parse digits including the
-
(minus) sign to ensure it is parsed as it should.I quickly tested to change:
To:
And it parsed the above file sequence correctly as a single sequence. YAY! (Dirty fix?)
Though to have this as a fully reliable implementation I'm imagining some changes need to be made to
uncompress
and alike to be perfect. Similarly tests should be implemented to also ensure the functionality remains reliable over time.The text was updated successfully, but these errors were encountered: