Skip to content

Fix function call #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def plot():
Plots the data contained in the output file
"""
logging.info('Plotting data..')
output_dir = hlp.get_output_directories()[0]
output_dir = hlp.get_output_directory()

figures_path = output_dir / 'figures'
if not figures_path.is_dir():
Expand Down
4 changes: 2 additions & 2 deletions tokenomics_decentralization/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,13 @@ def increment_date(date, by):
def get_output_directory():
"""
Reads the config file and retrieves the output directories
:returns: a list of directories that might contain the db files
:returns: the directory to use for the output files
"""
config = get_config_data()
sources = ' - '.join(get_active_source_keywords())
if not sources:
sources = 'No clustering'
return [pathlib.Path(db_dir).resolve() for db_dir in config['output_directories']][0] / sources
return pathlib.Path(config['output_directories'][0]).resolve() / sources


def get_input_directories():
Expand Down
Loading