Commit 58cc0d4a authored by Pierre Marijon's avatar Pierre Marijon

Replace logging in parser by return value

parent 3ebbb658
......@@ -79,6 +79,7 @@ p.graph # get an networkx graph where overlap are store
```
## Bug report
## Bug report
For bug report you can send e-mail to pierre.marijon@inria.fr or create [issue](https://gitlab.inria.fr/pmarijon/paf2gfa/issues)
import os
import sys
import time
import logging
import argparse
from paf2gfa import Parser
def main(args=None):
......@@ -41,7 +43,9 @@ def main(args=None):
parser.parse_line(line)
if arg["progression"] and time.time() - last_time > 2:
parser.parse_line(line)
res = parser.parse_line(line)
if res is not None:
logging.warning(str(res))
precent = format((arg["paf"].tell() * 100) / file_size, '.2f')
precent += "%"
sys.stdout.write(precent)
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment