Skip to content

Commit

Permalink
removed converter usage
Browse files Browse the repository at this point in the history
  • Loading branch information
bfrosik committed Jan 14, 2022
1 parent 303b353 commit 0f014ef
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 18 deletions.
4 changes: 0 additions & 4 deletions scripts/cdi_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import cohere.src_py.utilities.utils as ut
import importlib
import config_verifier as ver
import convertconfig as conv


def select_file(start_dir):
Expand Down Expand Up @@ -365,9 +364,6 @@ def load_main(self, load_dir):
-------
nothing
"""
# convert configuration files if needed
conv.convert(os.path.join(load_dir, 'conf'))

conf = os.path.join(load_dir, 'conf', 'config')
try:
conf_map = ut.read_config(conf)
Expand Down
5 changes: 1 addition & 4 deletions scripts/format_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import cohere.src_py.utilities.utils as ut
import config_verifier as ver
import alien_tools as at
import convertconfig as conv


__author__ = "Barbara Frosik"
__copyright__ = "Copyright (c) 2016, UChicago Argonne, LLC."
Expand Down Expand Up @@ -169,9 +169,6 @@ def data(experiment_dir):
"""
print ('formating data')

# convert configuration files if needed
conv.convert(os.path.join(experiment_dir, 'conf'))

prep_file = os.path.join(experiment_dir, 'prep', 'prep_data.tif')
if os.path.isfile(prep_file):
prep(prep_file, experiment_dir)
Expand Down
4 changes: 0 additions & 4 deletions scripts/run_disp.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
from functools import partial
from multiprocessing import Pool, cpu_count
import importlib
import convertconfig as conv


def process_dir(geometry, rampups, crop, res_dir):
Expand Down Expand Up @@ -134,9 +133,6 @@ def get_conf_dict(experiment_dir):
return None
conf_dir = os.path.join(experiment_dir, 'conf')

# convert configuration files if needed
conv.convert(conf_dir)

conf = os.path.join(conf_dir, 'config_disp')
# verify configuration file
if not ver.ver_config_disp(conf):
Expand Down
3 changes: 0 additions & 3 deletions scripts/run_prep.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
import os
import sys
import importlib
import convertconfig as conv


def handle_prep(experiment_dir, *args, **kwargs):
Expand All @@ -41,8 +40,6 @@ def handle_prep(experiment_dir, *args, **kwargs):
directory with experiment files
"""
print ('preaparing data')
# convert configuration files if needed
conv.convert(os.path.join(experiment_dir, 'conf'))

try:
main_conf_file = os.path.join(experiment_dir, *("conf", "config"))
Expand Down
4 changes: 1 addition & 3 deletions scripts/run_rec.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import cohere.src_py.utilities.utils as ut
import config_verifier as ver
import time
import convertconfig as conv


MEM_FACTOR = 1500
ADJUST = 0.0
Expand Down Expand Up @@ -164,8 +164,6 @@ def manage_reconstruction(proc, experiment_dir, rec_id=None):

# the rec_id is a postfix added to config_rec configuration file. If defined, use this configuration.
conf_dir = os.path.join(experiment_dir, 'conf')
# convert configuration files if needed
conv.convert(conf_dir)

if rec_id is None:
conf_file = os.path.join(conf_dir, 'config_rec')
Expand Down

0 comments on commit 0f014ef

Please sign in to comment.