Skip to content

Commit 979e4e8

Browse files
Fix function call (#80)
1 parent e13f1b6 commit 979e4e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

plot.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def plot():
2121
Plots the data contained in the output file
2222
"""
2323
logging.info('Plotting data..')
24-
output_dir = hlp.get_output_directories()[0]
24+
output_dir = hlp.get_output_directory()
2525

2626
figures_path = output_dir / 'figures'
2727
if not figures_path.is_dir():

tokenomics_decentralization/helper.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -144,13 +144,13 @@ def increment_date(date, by):
144144
def get_output_directory():
145145
"""
146146
Reads the config file and retrieves the output directories
147-
:returns: a list of directories that might contain the db files
147+
:returns: the directory to use for the output files
148148
"""
149149
config = get_config_data()
150150
sources = ' - '.join(get_active_source_keywords())
151151
if not sources:
152152
sources = 'No clustering'
153-
return [pathlib.Path(db_dir).resolve() for db_dir in config['output_directories']][0] / sources
153+
return pathlib.Path(config['output_directories'][0]).resolve() / sources
154154

155155

156156
def get_input_directories():

0 commit comments

Comments
 (0)