Skip to content

Commit

Permalink
Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Nishchal-007 committed Jul 1, 2021
1 parent 29ec9bb commit 7b2238b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/cold-extraction/ColdDataRetriever.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def initialize_Values(valuesDict):
global storescp_processes, niffler_processes, nifflerscp_str, qbniffler_str
global storage_folder, file_path, csv_file, extraction_type, accession_index, patient_index, date_index, date_type, date_format, email, send_email, system_json
global DCM4CHE_BIN, SRC_AET, QUERY_AET, DEST_AET, NIGHTLY_ONLY, START_HOUR, END_HOUR, IS_EXTRACTION_NOT_RUNNING, NIFFLER_ID, MAX_PROCESSES, SEPARATOR
global accessions, patients, dates, niffler_log, resume
global accessions, patients, dates, niffler_log, resume, length

storage_folder = valuesDict['storage_folder']
file_path = valuesDict['file_path']
Expand Down Expand Up @@ -130,6 +130,7 @@ def initialize():


def read_csv():
global length
with open(csv_file, newline='') as f:
reader = csv.reader(f)
next(f)
Expand Down Expand Up @@ -170,6 +171,7 @@ def run_retrieval():

# The core DICOM on-demand retrieve process.
def retrieve():
global length
# For the cases that have the typical EMPI and Accession values together.
if (extraction_type == 'empi_accession'):
# Create our Identifier (query) dataset
Expand Down Expand Up @@ -293,7 +295,7 @@ def run_cold_extraction():
global storescp_processes, niffler_processes, nifflerscp_str, qbniffler_str
global storage_folder, file_path, csv_file, extraction_type, accession_index, patient_index, date_index, date_type, date_format, email, send_email
global DCM4CHE_BIN, SRC_AET, QUERY_AET, DEST_AET, NIGHTLY_ONLY, START_HOUR, END_HOUR, IS_EXTRACTION_NOT_RUNNING, NIFFLER_ID, MAX_PROCESSES, SEPARATOR
global accessions, patients, dates, niffler_log, resume
global accessions, patients, dates, niffler_log, resume, length

config = defaultdict(lambda: None)
# Read Default config.json file
Expand Down

0 comments on commit 7b2238b

Please sign in to comment.