Skip to content
Snippets Groups Projects

Fix tests and code

Merged Samuel Fagerlund requested to merge statespace into master
1 file
+ 0
3
Compare changes
  • Side-by-side
  • Inline
@@ -1898,7 +1898,6 @@ class SFG(AbstractOperation):
for x in delay_loop_list
if x not in state_space_lista
]
print(state_space_lista)
mat_row = len(delay_element_used) + len(output_index_used)
mat_col = len(delay_element_used) + len(input_index_used)
mat_content = np.zeros((mat_row, mat_col))
@@ -1968,13 +1967,11 @@ class SFG(AbstractOperation):
temp_value += int(value)
mat_content[row, column] += temp_value
elif lista[0][0] == 't' and lista[-1][0] == 't':
print("hej")
row = int(lista[-1].replace("t", ""))
column = int(lista[0].replace("t", ""))
temp_value = 1
for element in lista:
if "cmul" in element:
print(self.find_by_id(element).value)
temp_value *= self.find_by_id(element).value
for key, value in addition_with_constant.items():
if key == element:
Loading