Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ for func in interface_view.functions:
funcs.sort(key=lambda f: f.name.lower())

# Get functions deployed to the target partition
if "TARGET" not in values or not values["TARGET"]:
raise Exception("This template requires TARGET to be defined and pointing to the desired partition name")
target_partition_name = values["TARGET"]

deployed_funcs = []
Expand All @@ -29,6 +31,9 @@ for node in deployment_view.nodes:
target_node = node
target_partition = partition

if target_partition is None:
raise Exception("TARGET partition not found, please check your Deployment View and TARGET definition ({})".format(target_partition_name))

deployed_func_names = [f.name for f in target_partition.functions]
for fun in funcs:
if fun.name in deployed_func_names:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ for func in interface_view.functions:
funcs.sort(key=lambda f: f.name.lower())

# Get functions deployed to the target partition
if "TARGET" not in values or not values["TARGET"]:
raise Exception("This template requires TARGET to be defined and pointing to the desired partition name")
target_partition_name = values["TARGET"]

deployed_funcs = []
Expand All @@ -27,6 +29,9 @@ for node in deployment_view.nodes:
if partition.name == target_partition_name:
target_partition = partition

if target_partition is None:
raise Exception("TARGET partition not found, please check your Deployment View and TARGET definition ({})".format(target_partition_name))

deployed_func_names = [f.name for f in target_partition.functions]
for fun in funcs:
if fun.name in deployed_func_names:
Expand Down
5 changes: 5 additions & 0 deletions data/ecss-template/ecss-e-st-40c_4_3_software_behaviour.tmplt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ for func in interface_view.functions:
funcs.sort(key=lambda f: f.name.lower())

# Get functions deployed to the target partition
if "TARGET" not in values or not values["TARGET"]:
raise Exception("This template requires TARGET to be defined and pointing to the desired partition name")
target_partition_name = values["TARGET"]

deployed_funcs = []
Expand All @@ -26,6 +28,9 @@ for node in deployment_view.nodes:
for partition in node.partitions:
if partition.name == target_partition_name:
target_partition = partition

if target_partition is None:
raise Exception("TARGET partition not found, please check your Deployment View and TARGET definition ({})".format(target_partition_name))

deployed_func_names = [f.name for f in target_partition.functions]
for fun in funcs:
Expand Down
5 changes: 5 additions & 0 deletions data/ecss-template/ecss-e-st-40c_4_4_interfaces_context.tmplt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ for func in interface_view.functions:
funcs.sort(key=lambda f: f.name.lower())

# Get functions deployed to the target partition
if "TARGET" not in values or not values["TARGET"]:
raise Exception("This template requires TARGET to be defined and pointing to the desired partition name")
target_partition_name = values["TARGET"]

deployed_funcs = []
Expand All @@ -32,6 +34,9 @@ for node in deployment_view.nodes:
for partition in node.partitions:
if partition.name == target_partition_name:
target_partition = partition

if target_partition is None:
raise Exception("TARGET partition not found, please check your Deployment View and TARGET definition ({})".format(target_partition_name))

deployed_func_names = [f.name for f in target_partition.functions]
for fun in funcs:
Expand Down
11 changes: 9 additions & 2 deletions data/ecss-template/ecss-e-st-40c_4_6_memory.tmplt
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<%
memories = system_object_types["on_board_memory"]
try:
memories = system_object_types["on_board_memory"]
except Exception:
memories = None
%>
% if memories is None:
No on-board memories
% else:
| ID | Name | Size | Alignment |
| - | - | - | - |
% for idx, memory in enumerate(memories.instances):
|${memory.values["ID"]}|${memory.values["Name"]}|${memory.values["Size"]}|${memory.values["Alignment"]}|
% endfor
% endfor
% endif
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ for func in interface_view.functions:
funcs.sort(key=lambda f: f.name.lower())

# Get functions deployed to the target partition
if "TARGET" not in values or not values["TARGET"]:
raise Exception("This template requires TARGET to be defined and pointing to the desired partition name")
target_partition_name = values["TARGET"]

deployed_funcs = []
Expand All @@ -28,6 +30,9 @@ for node in deployment_view.nodes:
if partition.name == target_partition_name:
target_node = node
target_partition = partition

if target_partition is None:
raise Exception("TARGET partition not found, please check your Deployment View and TARGET definition ({})".format(target_partition_name))

deployed_func_names = [f.name for f in target_partition.functions]
for fun in funcs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ for func in interface_view.functions:
funcs.sort(key=lambda f: f.name.lower())

# Get functions deployed to the target partition
if "TARGET" not in values or not values["TARGET"]:
raise Exception("This template requires TARGET to be defined and pointing to the desired partition name")
target_partition_name = values["TARGET"]

deployed_funcs = []
Expand All @@ -26,6 +28,9 @@ for node in deployment_view.nodes:
for partition in node.partitions:
if partition.name == target_partition_name:
target_partition = partition

if target_partition is None:
raise Exception("TARGET partition not found, please check your Deployment View and TARGET definition ({})".format(target_partition_name))

deployed_func_names = [f.name for f in target_partition.functions]
for fun in funcs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ for func in interface_view.functions:
funcs.sort(key=lambda f: f.name.lower())

# Get functions deployed to the target partition
if "TARGET" not in values or not values["TARGET"]:
raise Exception("This template requires TARGET to be defined and pointing to the desired partition name")
target_partition_name = values["TARGET"]

deployed_funcs = []
Expand All @@ -26,6 +28,9 @@ for node in deployment_view.nodes:
for partition in node.partitions:
if partition.name == target_partition_name:
target_partition = partition

if target_partition is None:
raise Exception("TARGET partition not found, please check your Deployment View and TARGET definition ({})".format(target_partition_name))

deployed_func_names = [f.name for f in target_partition.functions]
for fun in funcs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ for func in interface_view.functions:
funcs.sort(key=lambda f: f.name.lower() if f is not None and hasattr(f, 'name') else '')

# Get functions deployed to the target partition
if "TARGET" not in values or not values["TARGET"]:
raise Exception("This template requires TARGET to be defined and pointing to the desired partition name")
target_partition_name = values["TARGET"]

deployed_funcs = []
Expand All @@ -34,6 +36,9 @@ for node in deployment_view.nodes:
if partition is not None and hasattr(partition, 'name') and partition.name == target_partition_name:
target_partition = partition

if target_partition is None:
raise Exception("TARGET partition not found, please check your Deployment View and TARGET definition ({})".format(target_partition_name))

if target_partition is None:
print(f"WARNING: Target partition '{target_partition_name}' not found")
deployed_func_names = []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ for func in interface_view.functions:
funcs.extend(get_function_children(func))

# Get functions deployed to the target partition
if "TARGET" not in values or not values["TARGET"]:
raise Exception("This template requires TARGET to be defined and pointing to the desired partition name")
target_partition_name = values["TARGET"]

deployed_funcs = []
Expand All @@ -24,6 +26,9 @@ for node in deployment_view.nodes:
for partition in node.partitions:
if partition.name == target_partition_name:
target_partition = partition

if target_partition is None:
raise Exception("TARGET partition not found, please check your Deployment View and TARGET definition ({})".format(target_partition_name))

deployed_func_names = [f.name for f in target_partition.functions]
for fun in funcs:
Expand Down