Port to python 3

pull/17/head
Cees Bassa 2019-04-28 11:01:31 +02:00
parent 850182db3d
commit eaba87e686
4 changed files with 4 additions and 4 deletions

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import print_function
import sys
import os

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import print_function
import numpy as np
from astropy.io import ascii

View File

@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import print_function
import glob
import numpy as np

View File

@ -47,7 +47,7 @@ def find_hough3d_lines(fname, ntrkmin=20, dr=8):
return []
# Clean output (a bit cluncky)
cleaned_output = output.replace("npoints=", "")
cleaned_output = output.decode("utf-8").replace("npoints=", "")
cleaned_output = cleaned_output.replace(", a=(", " ")
cleaned_output = cleaned_output.replace("), b=(", " ")
cleaned_output = cleaned_output.replace(")", "")