Skip to content

Commit

Permalink
Debug path general config
Browse files Browse the repository at this point in the history
  • Loading branch information
AdrienC21 committed Sep 18, 2023
1 parent da710be commit 31d835c
Show file tree
Hide file tree
Showing 4 changed files with 97 additions and 584 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
==================================

0.3.2 (2023/09/18)
--------------------

- Debug like 0.3.1

0.3.1 (2023/09/18)
--------------------

Expand Down
2 changes: 1 addition & 1 deletion ccsd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

__author__ = "Adrien Carrel"
__email__ = "a.carrel@hotmail.fr"
__version__ = "0.3.1"
__version__ = "0.3.2"

__all__ = ["src", "data"]
7 changes: 5 additions & 2 deletions ccsd/src/parsers/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,16 @@ def get_config(config: str, seed: int, folder: str = "./") -> EasyDict:
return config


def get_general_config() -> EasyDict:
def get_general_config(folder: str = "./") -> EasyDict:
"""Get the general configuration.
Args:
folder (str, optional): folder where the config folder is located. Defaults to "./".
Returns:
EasyDict: general configuration.
"""
config_dir = os.path.join("config", "general_config.yaml")
config_dir = os.path.join(folder, "config", "general_config.yaml")
config = EasyDict(yaml.load(open(config_dir, "r"), Loader=yaml.FullLoader))

return config
Loading

0 comments on commit 31d835c

Please sign in to comment.