mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/file-setup.git
synced 2025-01-13 03:30:35 +00:00
Add things
This commit is contained in:
parent
7a35ad928d
commit
d57dac2e15
@ -12,6 +12,7 @@ Author: Stephan Porada <sporada@uni-bielefeld.de>
|
||||
|
||||
import os
|
||||
import argparse
|
||||
import subprocess
|
||||
|
||||
|
||||
def parse_arguments():
|
||||
@ -23,11 +24,9 @@ def parse_arguments():
|
||||
|
||||
|
||||
def merge_images(input_dir, output_dir):
|
||||
os.system('mkdir {}'.format(output_dir))
|
||||
os.system('ls -v {}/*.* >> file_list.txt'.format(input_dir))
|
||||
os.system('convert @file_list.txt {}/combined.tiff'.format(output_dir))
|
||||
os.system('cat "file_list.txt" | xargs rm')
|
||||
os.system('rm file_list.txt')
|
||||
os.makedirs(output_dir, exist_ok=True)
|
||||
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))
|
||||
|
||||
|
||||
def main():
|
||||
|
Loading…
x
Reference in New Issue
Block a user