Skip to content

out_folder in defaultDict is prone to errors #1459

@reneSchm

Description

@reneSchm

Bug description

The path is set via splitting the current file directory at "memilio", which usually works as intended, i.e. setting the out_folder to "memilio/data". However, if there is another directory called memilio, e.g. "Projects/memilio/memilio" or if the git repo was renamed, out_folder is set to "memilio/../data" or "memilio/pycode/memilio-epidata/memilio/epidata", respectively.

Version

Windows

To reproduce

  1. Either
  • clone memilio into a directory, which already contains memilio in its path.
  • rename the memilio project directory
  1. Check defultDict["out_folder"]

Trying to use downloaded files from epidata with python examples or some simulations will also fail.

Relevant log output

Add any relevant information, e.g. used compiler, screenshots.

Checklist

  • Attached labels, especially loc:: or model:: labels.
  • Linked to project

Metadata

Metadata

Assignees

No one assigned

    Labels

    class::bugBugs found in the softwareloc::data handlingThis issue concerns any kind of data handling.

    Type

    No type

    Projects

    Status

    Product Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions