Skip to content

Commit f764b1a

Browse files
committed
more fixes to python scripts
1 parent 84286a3 commit f764b1a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

modularity.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import subprocess
22

3+
BIANCHI_BIN_DIR = '/home/jec/bianchi-progs/'
4+
35
def ideal_gen_coeffs(I):
46
return " ".join([str(c) for c in list(I.gens_reduced()[0])])
57

@@ -19,7 +21,7 @@ def check_modularity(E, primes, verbose=False):
1921
if verbose:
2022
print("command line: {}".format(cmd))
2123
pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
22-
shell=True, text=True, cwd='/home/jec/bianchi-progs/')
24+
shell=True, text=True, cwd=BIANCHI_BIN_DIR)
2325
if pipe.returncode:
2426
return None
2527
outputlines = [str(L) for L in pipe.stdout.readlines()]

modularity_modp.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import subprocess
22

3+
BIANCHI_BIN_DIR = '/home/jec/bianchi-progs/'
4+
35
def ideal_gen_coeffs(I):
46
return " ".join([str(c) for c in list(I.gens_reduced()[0])])
57

@@ -19,7 +21,7 @@ def check_modularity_modp(E, primes, p=3, verbose=False):
1921
if verbose:
2022
print("command line: {}".format(cmd))
2123
pipe = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
22-
shell=True, text=True, cwd='/home/jec/bianchi-progs/')
24+
shell=True, text=True, cwd=BIANCHI_BIN_DIR)
2325
if pipe.returncode:
2426
return None
2527
outputlines = [str(L) for L in pipe.stdout.readlines()]

0 commit comments

Comments
 (0)