-
Notifications
You must be signed in to change notification settings - Fork 31
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 #26 from prakaa/master
Logging + repo reorg
- Loading branch information
Showing
36 changed files
with
6,956 additions
and
4,415 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 |
---|---|---|
|
@@ -26,3 +26,4 @@ nemosis/raw_aemo_data/* | |
NEMOSIS.exe | ||
nemosis/smoke_tests.py | ||
nemosis/check_new_bid_table_functionality.py | ||
*.pyc |
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,12 @@ | ||
import logging | ||
|
||
from nemosis import dynamic_data_compiler | ||
|
||
logging.getLogger("nemosis").setLevel(logging.WARNING) | ||
|
||
start_time = '2017/01/01 00:00:00' | ||
end_time = '2017/01/01 00:05:00' | ||
table = 'DISPATCHPRICE' | ||
raw_data_cache = 'D:/nemosis_cache' | ||
|
||
price_data = dynamic_data_compiler(start_time, end_time, table, raw_data_cache) |
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,3 +1,11 @@ | ||
import logging | ||
import sys | ||
from . import data_fetch_methods | ||
from .data_fetch_methods import * | ||
name = "osdan" | ||
|
||
name = "osdan" | ||
|
||
logging.getLogger(__name__).addHandler(logging.NullHandler()) | ||
logging.basicConfig( | ||
stream=sys.stdout, level=logging.INFO, format="%(levelname)s: %(message)s" | ||
) |
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 |
---|---|---|
|
@@ -11,4 +11,4 @@ class DataMismatchError(Exception): | |
|
||
|
||
class DataFormatError(Exception): | ||
pass | ||
pass |
Oops, something went wrong.