From b25d5b30bd2225c814bc6ab045892587fcc582e6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ivar=20H=C3=A4rnqvist?= <ivaha717@student.liu.se>
Date: Wed, 15 Apr 2020 23:59:22 +0200
Subject: [PATCH] fix method order in Butterfly

---
 b_asic/core_operations.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/b_asic/core_operations.py b/b_asic/core_operations.py
index 517ccd50..98523fbb 100644
--- a/b_asic/core_operations.py
+++ b/b_asic/core_operations.py
@@ -223,9 +223,9 @@ class Butterfly(AbstractOperation):
     def __init__(self, src0: Optional[SignalSourceProvider] = None, src1: Optional[SignalSourceProvider] = None, name: Name = ""):
         super().__init__(input_count = 2, output_count = 2, name = name, input_sources = [src0, src1])
 
-    def evaluate(self, a, b):
-        return a + b, a - b
-
     @property
     def type_name(self) -> TypeName:
         return "bfly"
+
+    def evaluate(self, a, b):
+        return a + b, a - b
-- 
GitLab