def main():
global logger
logger = logging.getLogger('compare-viewer-json')
if (len(sys.argv) != 3):
sys.stderr.write("**** ERROR: Wrong number of arguments.\n")
sys.stderr.write("Usage: compare-viewer-json.py <file1> <file2> \n")
sys.exit(1)
# Read the 1st file and create a DNA structure object from it.
file_name1 = sys.argv[1]
dna_structure1 = DnaStructure(file_name1)
dna_structure1.read_json(file_name1)
logger.info("")
# Read the 2nd file and create a DNA structure object from it.
file_name2 = sys.argv[2]
dna_structure2 = DnaStructure(file_name2)
dna_structure2.read_json(file_name2)
# Compare the data.
if not dna_structure1.compare(dna_structure2):
sys.exit(1)
评论列表
文章目录