Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
georgeyiasemis committed Nov 10, 2023
1 parent c0e9cbb commit 11d5995
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions projects/CMRxRecon/tools/create_data_dir.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@
logger = logging.getLogger("CreateTrainingData")
logger.setLevel(logging.INFO)

# Create a file handler and set the format
log_file = "./CreateTrainingData.log"
file_handler = logging.FileHandler(log_file)
formatter = logging.Formatter("%(asctime)s - %(name)s - %(levelname)s - %(message)s")
file_handler.setFormatter(formatter)

# Add the file handler to the logger
logger.addHandler(file_handler)

# Define the available options for the 'data_type' argument
DATA_TYPES = ["Cine", "Mapping"]

Expand Down

0 comments on commit 11d5995

Please sign in to comment.