retain compatibility with python 2.x

This commit is contained in:
Axel Kohlmeyer
2024-01-13 04:56:16 -05:00
parent 5b05112aab
commit a3682e1bd5
2 changed files with 7 additions and 0 deletions

View File

@ -22,6 +22,10 @@
""" """
Import basic modules Import basic modules
""" """
# for python2/3 compatibility
from __future__ import print_function
import sys, os, timeit import sys, os, timeit
from timeit import default_timer as timer from timeit import default_timer as timer

View File

@ -1,5 +1,8 @@
# Setup tool for oxDNA input in LAMMPS format. # Setup tool for oxDNA input in LAMMPS format.
# for python2/3 compatibility
from __future__ import print_function
import math,numpy as np,sys,os import math,numpy as np,sys,os
# system size # system size