-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add cli command for generating datasets
- Loading branch information
1 parent
0244b45
commit ef1e7cf
Showing
3 changed files
with
20 additions
and
2 deletions.
There are no files selected for viewing
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 +1 @@ | ||
0.5.0 | ||
0.6.0 |
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,14 @@ | ||
import sys | ||
import subprocess | ||
import logging | ||
|
||
from news_signals.log import create_logger | ||
|
||
|
||
logger = create_logger(__name__, level=logging.INFO) | ||
|
||
|
||
def generate_dataset(): | ||
logger.info("Generating dataset via cli command `generate-dataset`") | ||
print(f"Args: {sys.argv[1:]}") | ||
sys.exit(subprocess.call([sys.executable, 'bin/generate_dataset.py'] + sys.argv[1:])) |
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