File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
tokenomics_decentralization Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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 ():
Original file line number Diff line number Diff line change @@ -144,13 +144,13 @@ def increment_date(date, by):
144144def 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
156156def get_input_directories ():
You can’t perform that action at this time.
0 commit comments