Skip to content

Commit

Permalink
Writing a description of the simulation to the log (only for excel)
Browse files Browse the repository at this point in the history
  • Loading branch information
squoilin committed Feb 3, 2020
1 parent de868c9 commit 2115236
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dispaset/preprocessing/data_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ def load_config_excel(ConfigFile,AbsPath=True):
sheet = wb.sheet_by_name('main')

config = {}
config['Description'] = sheet.cell_value(5, 1)
config['SimulationDirectory'] = sheet.cell_value(17, 2)
config['WriteExcel'] = sheet.cell_value(18, 2)
config['WriteGDX'] = sheet.cell_value(19, 2)
Expand Down Expand Up @@ -483,7 +484,8 @@ def read_truefalse(sheet, rowstart, colstart, rowstop, colstop, colapart=1):

logging.info("Using config file " + ConfigFile + " to build the simulation environment")
logging.info("Using " + config['SimulationDirectory'] + " as simulation folder")

logging.info("Description of the simulation: "+ config['Description'])

return config

def load_config_yaml(filename,AbsPath=True):
Expand Down

0 comments on commit 2115236

Please sign in to comment.