<commit_before>"""

Pre-process DICOM files in a study folder

"""

import logging
import os

from datetime import datetime, timedelta
from functools import partial
from airflow import DAG
from airflow.operators import BashOperator, SlackAPIPostOperator
from airflow_spm.operators import SpmPipelineOperator
from airflow_freespace.operators import FreeSpaceSensor
from airflow_pipeline.operators import PreparePipelineOperator, PythonPipelineOperator
from airflow import configuration

from util import dicom_import
from util import nifti_import


# constants

DAG_NAME = 'mri_pre_process_dicom'

pipelines_path = str(configuration.get('mri', 'PIPELINES_PATH'))<commit_msg>Remove unused import<commit_after>"""

Pre-process DICOM files in a study folder

"""

import logging
import os

from datetime import datetime, timedelta
from airflow import DAG
from airflow.operators import BashOperator, SlackAPIPostOperator
from airflow_spm.operators import SpmPipelineOperator
from airflow_freespace.operators import FreeSpaceSensor
from airflow_pipeline.operators import PreparePipelineOperator, PythonPipelineOperator
from airflow import configuration

from util import dicom_import
from util import nifti_import


# constants

DAG_NAME = 'mri_pre_process_dicom'

pipelines_path = str(configuration.get('mri', 'PIPELINES_PATH'))
{'fraction_non_alphanumeric': 0.04837490551776266, 'fraction_numerical': 0.0, 'mean_word_length': 7.43312101910828, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4705449', 'n_tokens_mistral': 384, 'n_tokens_neox': 383, 'n_words': 119}