-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
romainsacchi
authored and
romainsacchi
committed
Mar 21, 2024
1 parent
92bfc36
commit 7e09cfe
Showing
9 changed files
with
502 additions
and
557 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ | |
], | ||
regions=[ | ||
"WEU", | ||
"USA", | ||
#"USA", | ||
], | ||
scenarios=[scenario], | ||
years=[ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
from pathlib import Path | ||
|
||
__version__ = (0, 0, 1) | ||
__all__ = ("__version__", "DATA_DIR", "Pathways") | ||
__all__ = ("__version__", "Pathways") | ||
|
||
DATA_DIR = Path(__file__).resolve().parent / "data" | ||
|
||
from .pathways import Pathways |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
""" | ||
This module contains constants for the filesystem paths used by Pathways. | ||
""" | ||
|
||
from pathlib import Path | ||
import platformdirs | ||
|
||
# Directories for data which comes with Pathways | ||
DATA_DIR = Path(__file__).resolve().parent / "data" | ||
|
||
# Directories for user-created data | ||
USER_DATA_BASE_DIR = platformdirs.user_data_path(appname="pathways", appauthor="pylca") | ||
USER_DATA_BASE_DIR.mkdir(parents=True, exist_ok=True) | ||
|
||
DIR_CACHED_DB = USER_DATA_BASE_DIR / "cache" | ||
DIR_CACHED_DB.mkdir(parents=True, exist_ok=True) | ||
|
||
USER_LOGS_DIR = platformdirs.user_log_path(appname="pathways", appauthor="pylca") | ||
USER_LOGS_DIR.mkdir(parents=True, exist_ok=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.