fjxmlzn / DoppelGANger

[IMC 2020 (Best Paper Finalist)] Using GANs for Sharing Networked Time Series Data: Challenges, Initial Promise, and Open Questions
http://arxiv.org/abs/1909.13403
BSD 3-Clause Clear License
296 stars 75 forks source link

Python 3 compatibility #2

Closed loehndorf closed 4 years ago

loehndorf commented 4 years ago

The code is only compatible to Python 2.7. I would propose a pull request but could not get it to work with Python 3.

Here is a workaround for the time being:

import subprocess 
process = subprocess.Popen("python2.7 doppelganger.py",
    shell=True,stdout=subprocess.PIPE,
    stderr=subprocess.PIPE
)
output, error = process.communicate()

It is only a building block, but maybe this is useful for anybody who wants to use it from Python 3 now.