Skip to content

Commit

Permalink
Fixed one more bug in xml2palette where the description was not parse…
Browse files Browse the repository at this point in the history
…d correctly
  • Loading branch information
james-strauss-uwa committed Aug 4, 2022
1 parent cb55534 commit ddaeb14
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/create-palettes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ jobs:
- name: Create palettes
run: |
python3 tools/xml2palette/xml2palette.py -i ./ -t daliuge -o $OUTPUT_FILENAME.palette
python3 tools/xml2palette/xml2palette.py -i ./ -t template -o $OUTPUT_FILENAME-template.palette
python3 tools/xml2palette/xml2palette.py -i ./ -t daliuge -o $OUTPUT_FILENAME.palette -p
python3 tools/xml2palette/xml2palette.py -i ./ -t template -o $OUTPUT_FILENAME-template.palette -p
- name: Commit palettes to EAGLE
env:
Expand Down
6 changes: 3 additions & 3 deletions tools/xml2palette/xml2palette.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def parse_description(value):
# NOTE: color, x, y, width, height are not specified in palette node, they will be set by the EAGLE importer
def create_palette_node_from_params(params):
text = ""
description = ""
node_description = ""
category = ""
tag = ""
construct = ""
Expand Down Expand Up @@ -413,7 +413,7 @@ def create_palette_node_from_params(params):
elif key == "text":
text = value
elif key == "description":
description = value
node_description = value
else:
internal_name = key
(
Expand Down Expand Up @@ -515,7 +515,7 @@ def create_palette_node_from_params(params):
"drawOrderHint": 0,
"key": get_next_key(),
"text": text,
"description": description,
"description": node_description,
"collapsed": False,
"showPorts": False,
"streaming": False,
Expand Down

0 comments on commit ddaeb14

Please sign in to comment.