Skip to content

Commit

Permalink
Revert "1 4 0 update"
Browse files Browse the repository at this point in the history
  • Loading branch information
planglois925 authored Dec 2, 2024
1 parent 9b9f4a3 commit 99d8a1f
Show file tree
Hide file tree
Showing 15 changed files with 2,189 additions and 3,241 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,3 @@ Thumbs.db

# IDE files
.idea
.Rproj.user
veris.Rproj
.Rhistory
Binary file modified VERIS_Standard_Excel.xlsx
Binary file not shown.
276 changes: 0 additions & 276 deletions bin/convert_1.3.7_to_1.4.0.py

This file was deleted.

10 changes: 5 additions & 5 deletions bin/mergeSchema.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ def merge(schema, labels):
logging.debug(key)
raise
try:
schema = deepSetAttr(schema, "{0}{1}".format(rchop(name, "properties."), "enum").split("."), list(deepGetAttr(labels, key).keys()))
schema = deepSetAttr(schema, "{0}{1}".format(rchop(name, "properties."), "enum").split("."), deepGetAttr(labels, key).keys())
except:
logging.warning("{0}{1}".format(rchop(name, "properties."), "enum"))
logging.debug("{0}{1}".format(rchop(name, "properties."), "enum"))
raise

return schema
Expand All @@ -158,7 +158,7 @@ def enums(schema, labels):
if args.enum is not None:
veris_enum = copy.deepcopy(labels)
for key in keys:
veris_enum = deepSetAttr(veris_enum, key, list(deepGetAttr(labels, key).keys()))
veris_enum = deepSetAttr(veris_enum, key, deepGetAttr(labels, key).keys())
return veris_enum


Expand All @@ -176,8 +176,8 @@ def enums(schema, labels):
help="the labels file. (Normally '../verisc-labels.json'.", required=True) #, default=DEFAULTLABELS)
parser.add_argument("-o", "--output",
help="the location of the merged output file. (Normally '../verisc-merged.json'.)", required=True) #, default=MERGED)
parser.add_argument("-e", "--enum", help="The name of the output enums file if desired. (Normally '../verisc-enum.json'.)", default=None)
parser.add_argument("-k", "--keynames", help="The name of the output keynames file if desired. (normally '../keynames-real.txt'.)", default=None)
parser.add_argument("-e", "--enum", help="The name of the enums file if desired. (Normally '../verisc-enum.json'.)", default=None)
parser.add_argument("-k", "--keynames", help="The name of the keynames file if desired. (normally '../keynames-real.txt'.)", default=None)
parser.add_argument("-l", "--logging", choices=["critical", "warning", "info", "debug"],
help="Minimum logging level to display",
default="warning")
Expand Down
Loading

0 comments on commit 99d8a1f

Please sign in to comment.