Skip to content

Commit

Permalink
Fixed #480
Browse files Browse the repository at this point in the history
  • Loading branch information
khoroshevskyi committed Jul 12, 2024
1 parent 88264c3 commit 835b1c0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions peppy/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
SAMPLE_MODS_KEY = "sample_modifiers"
PROJ_MODS_KEY = "project_modifiers"
NAME_TABLE_ATTR = "sample_table"
CONSTANT_KEY = "append"
APPEND_KEY = "append"
REMOVE_KEY = "remove"
DUPLICATED_KEY = "duplicate"
DERIVED_KEY = "derive"
Expand All @@ -33,11 +33,11 @@
AMENDMENTS_KEY = "amend"
ACTIVE_AMENDMENTS_KEY = "_" + AMENDMENTS_KEY
SAMPLE_EDIT_FLAG_KEY = "_samples_touched"
SAMPLE_MODIFIERS = [CONSTANT_KEY, IMPLIED_KEY, DERIVED_KEY, DUPLICATED_KEY, REMOVE_KEY]
SAMPLE_MODIFIERS = [APPEND_KEY, IMPLIED_KEY, DERIVED_KEY, DUPLICATED_KEY, REMOVE_KEY]
PROJECT_MODIFIERS = [CFG_IMPORTS_KEY, AMENDMENTS_KEY]
PROJECT_CONSTANTS = [
"REQUIRED_VERSION",
"CONSTANT_KEY",
"APPEND_KEY",
"DERIVED_SOURCES_KEY",
"DERIVED_KEY",
"SAMPLE_MODS_KEY",
Expand Down
6 changes: 3 additions & 3 deletions peppy/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
CONFIG_FILE_KEY,
CONFIG_KEY,
CONFIG_VERSION_KEY,
CONSTANT_KEY,
APPEND_KEY,
DERIVED_ATTRS_KEY,
DERIVED_KEY,
DERIVED_SOURCES_KEY,
Expand Down Expand Up @@ -587,8 +587,8 @@ def attr_constants(self):
Update each Sample with constants declared by a Project.
If Project does not declare constants, no update occurs.
"""
if self._modifier_exists(CONSTANT_KEY):
to_append = self[CONFIG_KEY][SAMPLE_MODS_KEY][CONSTANT_KEY]
if self._modifier_exists(APPEND_KEY):
to_append = self[CONFIG_KEY][SAMPLE_MODS_KEY][APPEND_KEY]
_LOGGER.debug("Applying constant attributes: {}".format(to_append))

for s in track(
Expand Down

0 comments on commit 835b1c0

Please sign in to comment.