Source code for blissoda.demo.id12
import os
try:
from bliss import setup_globals
except ImportError:
setup_globals = None
from ..id12.converter import Id12Hdf5ToAsciiConverter
from . import EWOKS_RESULTS_DIR
[docs]
class DemoId12Hdf5ToSpecConverter(Id12Hdf5ToAsciiConverter):
def __init__(self, **defaults) -> None:
root_dir = os.path.join(EWOKS_RESULTS_DIR, "id12", "inhouse")
defaults.setdefault(
"external_proposal_outdir", os.path.join(root_dir, "EXTERNAL")
)
defaults.setdefault(
"inhouse_proposal_outdir", os.path.join(root_dir, "INHOUSE2")
)
defaults.setdefault("test_proposal_outdir", os.path.join(root_dir, "NOBACKUP"))
super().__init__(**defaults)
if setup_globals is None:
id12_converter = None
else:
id12_converter = DemoId12Hdf5ToSpecConverter()