-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added process_file and updates for data flow test (#19)
* added mac * added process_file for data flow test * merge from upstream * Update pyproject.toml * Update pyproject.toml * Update conf.py * Update pyproject.toml * copy and paste error fix * black format
- Loading branch information
Showing
7 changed files
with
301 additions
and
47 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
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,23 +1,25 @@ | ||
# Licensed under Apache License v2 - see LICENSE.rst | ||
import os.path | ||
|
||
from hermes_core import log | ||
from hermes_spani.io.file_tools import read_file | ||
|
||
try: | ||
from ._version import version as __version__ | ||
from ._version import version_tuple | ||
except ImportError: | ||
__version__ = "unknown version" | ||
version_tuple = (0, 0, "unknown version") | ||
from hermes_spani.io.file_tools import read_file | ||
|
||
# from hermes_core.util.config import load_config, print_config | ||
# from hermes_core.util.logger import _init_log | ||
__all__ = ["log", "read_file"] | ||
|
||
# Load user configuration | ||
# config = load_config() | ||
INST_NAME = "spani" | ||
INST_SHORTNAME = "spn" | ||
INST_TARGETNAME = "SPANI" | ||
INST_TO_SHORTNAME = {INST_NAME: INST_SHORTNAME} | ||
INST_TO_TARGETNAME = {INST_NAME: INST_TARGETNAME} | ||
|
||
# log = _init_log(config=config) | ||
_package_directory = os.path.dirname(os.path.abspath(__file__)) | ||
_data_directory = os.path.abspath(os.path.join(_package_directory, "data")) | ||
|
||
# Then you can be explicit to control what ends up in the namespace, | ||
# __all__ = ["config", "print_config", "do_primes"] | ||
# __all__ = ["read_file"] | ||
log.debug(f"hermes_spani version: {__version__}") | ||
log.info(f"hermes_spani version: {__version__}") |
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 @@ | ||
from .file_tools import * |
Oops, something went wrong.