File tree 2 files changed +3
-3
lines changed
tokenomics_decentralization
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ def plot():
21
21
Plots the data contained in the output file
22
22
"""
23
23
logging .info ('Plotting data..' )
24
- output_dir = hlp .get_output_directories ()[ 0 ]
24
+ output_dir = hlp .get_output_directory ()
25
25
26
26
figures_path = output_dir / 'figures'
27
27
if not figures_path .is_dir ():
Original file line number Diff line number Diff line change @@ -144,13 +144,13 @@ def increment_date(date, by):
144
144
def get_output_directory ():
145
145
"""
146
146
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
148
148
"""
149
149
config = get_config_data ()
150
150
sources = ' - ' .join (get_active_source_keywords ())
151
151
if not sources :
152
152
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
154
154
155
155
156
156
def get_input_directories ():
You can’t perform that action at this time.
0 commit comments