pierrepo / PBxplore

A suite of tools to explore protein structures with Protein Blocks :snake:
https://pbxplore.readthedocs.org/en/latest/
MIT License
28 stars 17 forks source link

Improvements of PBstat and creation of regression tests #72

Closed HubLot closed 8 years ago

HubLot commented 8 years ago

Hi,

In this PR, you will find a first step in the modularization of PBstat. I changed a little bit the PBstat.py:

Since in Python, there is a clear distinction between bytes and str, the line :

 (out, err) = proc.communicate(transfac_content)

was not working. I change it to specifiy the coding:

 (out, err) = proc.communicate(transfac_content.encode('UTF-8'))

I also created a few regressions tests :