File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import os
22import sys
3+ from warnings import warn
34
45import numpy as np
56
@@ -154,7 +155,7 @@ def _register_flows(self):
154155
155156 if len (extras ) > 0 :
156157 for opt in extras :
157- print (f'WARNING: Optimizer "{ opt } " is not part of any flow and will not be executed.' )
158+ warn (f'WARNING: Optimizer "{ opt } " is not part of any flow and will not be executed.' )
158159
159160 ip_flow_requirements = [
160161 'optimize' ,
Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ def _register_flows(self):
104104
105105 if len (extras ) > 0 :
106106 for opt in extras :
107- print (f'WARNING: Optimizer "{ opt } " is not part of any flow and will not be executed.' )
107+ warn (f'WARNING: Optimizer "{ opt } " is not part of any flow and will not be executed.' )
108108
109109 ip_flow_requirements = [
110110 'optimize' ,
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ def _register_flows(self):
148148
149149 if len (extras ) > 0 :
150150 for opt in extras :
151- print (f'WARNING: Optimizer "{ opt } " is not part of any flow and will not be executed.' )
151+ warn (f'WARNING: Optimizer "{ opt } " is not part of any flow and will not be executed.' )
152152
153153 ip_flow_requirements = [
154154 'optimize' ,
You can’t perform that action at this time.
0 commit comments