Skip to content

Commit

Permalink
Swap xml with json for seqgen
Browse files Browse the repository at this point in the history
  • Loading branch information
Lex-ari committed Jul 16, 2024
1 parent 2c95a45 commit f1c80ae
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/fprime_gds/common/loaders/cmd_json_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


class CmdJsonLoader(JsonLoader):
"""Class to load xml based command dictionaries"""
"""Class to load json based command dictionaries"""

COMMANDS_FIELD = "commands"

Expand Down
2 changes: 1 addition & 1 deletion src/fprime_gds/common/loaders/event_json_loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@


class EventJsonLoader(JsonLoader):
"""Class to load xml based event dictionaries"""
"""Class to load json based event dictionaries"""

EVENTS_FIELD = "events"

Expand Down
6 changes: 3 additions & 3 deletions src/fprime_gds/common/tools/seqgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
from fprime_gds.common.data_types import exceptions as gseExceptions
from fprime_gds.common.data_types.cmd_data import CmdData, CommandArgumentsException
from fprime_gds.common.encoders.seq_writer import SeqBinaryWriter
from fprime_gds.common.loaders.cmd_xml_loader import CmdXmlLoader
from fprime_gds.common.loaders.cmd_json_loader import CmdJsonLoader
from fprime_gds.common.parsers.seq_file_parser import SeqFileParser

__author__ = "Tim Canham"
Expand Down Expand Up @@ -56,9 +56,9 @@ def generateSequence(inputFile, outputFile, dictionary, timebase, cont=False):
raise SeqGenException(msg)

# Check the user environment:
cmd_xml_dict = CmdXmlLoader()
cmd_json_dict = CmdJsonLoader(dictionary)
try:
(cmd_id_dict, cmd_name_dict, versions) = cmd_xml_dict.construct_dicts(
(cmd_id_dict, cmd_name_dict, versions) = cmd_json_dict.construct_dicts(
dictionary
)
except gseExceptions.GseControllerUndefinedFileException:
Expand Down

0 comments on commit f1c80ae

Please sign in to comment.