-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from kinegratii/develop
Release 4.1.0
- Loading branch information
Showing
41 changed files
with
999 additions
and
252 deletions.
There are no files selected for viewing
This file was deleted.
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
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
include borax/calendars/FestivalData.csv | ||
include borax/calendars/dataset/FestivalData.csv | ||
include borax/calendars/dataset/festivals_ext1.csv |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
__version__ = '4.0.0' | ||
__version__ = '4.1.0' | ||
__author__ = 'kinegratii' |
File renamed without changes.
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,16 @@ | ||
from pathlib import Path | ||
|
||
__all__ = ['get_festival_dataset_path'] | ||
|
||
_FILE_DICT = { | ||
'basic': 'FestivalData.csv', | ||
'ext1': 'festivals_ext1.csv', | ||
'zh-Hans': 'FestivalData.csv' | ||
} | ||
|
||
|
||
def get_festival_dataset_path(identifier: str) -> Path: | ||
"""Return the full path for festival dataset csv file.""" | ||
if identifier not in _FILE_DICT: | ||
raise ValueError(f'Festival Dataset {identifier} not found!') | ||
return Path(__file__).parent / _FILE_DICT.get(identifier) |
Oops, something went wrong.