-
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.
Merge pull request #53 from pepkit/dev
v0.5 release
- Loading branch information
Showing
25 changed files
with
853 additions
and
943 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,5 +1,5 @@ | ||
include divvy/default_config/* | ||
include divvy/default_config/submit_templates/* | ||
include divvy/default_config/divvy_templates/* | ||
include requirements/* | ||
include README.md | ||
include docs/img/divvy_logo.svg |
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 +1 @@ | ||
__version__ = "0.4.1" | ||
__version__ = "0.5.0" |
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 |
---|---|---|
@@ -1,16 +1,17 @@ | ||
""" Package constants """ | ||
|
||
__author__ = "Vince Reuter" | ||
__email__ = "vreuter@virginia.edu" | ||
|
||
import os | ||
|
||
# Compute-related | ||
COMPUTE_SETTINGS_VARNAME = ["DIVCFG", "PEPENV"] | ||
COMPUTE_SETTINGS_VARNAME = ["DIVCFG"] | ||
DEFAULT_COMPUTE_RESOURCES_NAME = "default" | ||
OLD_COMPUTE_KEY = "compute" | ||
NEW_COMPUTE_KEY = "compute_packages" | ||
DEFAULT_CONFIG_FILEPATH = os.path.join( | ||
os.path.dirname(__file__), | ||
"default_config", | ||
"divvy_config.yaml") | ||
COMPUTE_CONSTANTS = [ | ||
"COMPUTE_SETTINGS_VARNAME", "DEFAULT_COMPUTE_RESOURCES_NAME", | ||
"NEW_COMPUTE_KEY"] | ||
"NEW_COMPUTE_KEY", "DEFAULT_CONFIG_FILEPATH"] | ||
|
||
__all__ = COMPUTE_CONSTANTS + ["DEFAULT_COMPUTE_RESOURCES_NAME"] |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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,18 @@ | ||
# Adapters make template variables flexible | ||
|
||
Starting with `divvy v0.5.0` the configuration file can include an `adapters` section, which is used to provide a set of variable mappings that `divvy` uses to populate the submission templates. | ||
|
||
This makes the connection with `divvy` and client software more flexible and more elegant, since the source of the data does not need to follow any particular naming scheme, any mapping can be used and adapted to work with any `divvy` templates. | ||
|
||
## Example | ||
|
||
```yaml | ||
adapters: | ||
CODE: namespace.command | ||
LOGFILE: namespace1.log_file | ||
JOBNAME: user_settings.program.job_name | ||
CORES: processors_number | ||
... | ||
``` | ||
|
||
As you can see in the example `adapters` section above, each adapter is a key-value pair that maps a `divvy` template variable to a target value. The target values can use namespaces (nested mapping). |
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.