Skip to content

Commit

Permalink
remove comments from generated dcfs
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanpdx committed Nov 9, 2023
1 parent f2206f3 commit 543aa3a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions oresat_configs/scripts/gen_dcf.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ def _objects_lines(od: canopen.ObjectDictionary, indexes: list) -> list:
def _variable_lines(variable: canopen.objectdictionary.Variable, index: int, subindex=None) -> list:
lines = []

if variable.description:
for i in variable.description.split("\n"):
lines.append(f";{i}")

if subindex is None:
lines.append(f"[{index:X}]")
else:
Expand All @@ -183,10 +179,6 @@ def _variable_lines(variable: canopen.objectdictionary.Variable, index: int, sub
def _array_lines(array: canopen.objectdictionary.Array, index: int) -> list:
lines = []

if array.description:
for i in array.description.split("\n"):
lines.append(f";{i}")

lines.append(f"[{index:X}]")

lines.append(f"ParameterName={array.name}")
Expand All @@ -203,10 +195,6 @@ def _array_lines(array: canopen.objectdictionary.Array, index: int) -> list:
def _record_lines(record: canopen.objectdictionary.Record, index: int) -> list:
lines = []

if record.description:
for i in record.description.split("\n"):
lines.append(f";{i}")

lines.append(f"[{index:X}]")

lines.append(f"ParameterName={record.name}")
Expand Down

0 comments on commit 543aa3a

Please sign in to comment.