mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/file-setup.git
synced 2024-12-26 11:24:19 +00:00
Test
This commit is contained in:
parent
d57dac2e15
commit
c67f1defb8
@ -12,7 +12,6 @@ Author: Stephan Porada <sporada@uni-bielefeld.de>
|
|||||||
|
|
||||||
import os
|
import os
|
||||||
import argparse
|
import argparse
|
||||||
import subprocess
|
|
||||||
|
|
||||||
|
|
||||||
def parse_arguments():
|
def parse_arguments():
|
||||||
@ -25,8 +24,10 @@ def parse_arguments():
|
|||||||
|
|
||||||
def merge_images(input_dir, output_dir):
|
def merge_images(input_dir, output_dir):
|
||||||
os.makedirs(output_dir, exist_ok=True)
|
os.makedirs(output_dir, exist_ok=True)
|
||||||
|
os.makedirs(os.path.join(output_dir, 'testfile.txt'))
|
||||||
os.system('ls -v {i}/*.* >> {i}file_list.txt'.format(i=input_dir))
|
os.system('ls -v {i}/*.* >> {i}file_list.txt'.format(i=input_dir))
|
||||||
os.system('convert @{i}/file_list.txt {o}/combined.tiff'.format(i=input_dir, o=output_dir))
|
os.system('convert @{i}/file_list.txt {o}/combined.tiff'.format(i=input_dir,
|
||||||
|
o=output_dir))
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
|
Loading…
Reference in New Issue
Block a user