You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
print('initiating matlab; this may take some time. For repeated testing one could use the optional input eng as an already initiated matlab engine')
51
+
warnings.warn('Initiating MATLAB; this may take some time. For repeated testing one could use the optional input eng as an already initiated MATLAB engine', UserWarning, stacklevel=2)
51
52
self.eng=matlab.engine.start_matlab()
52
53
self.keep_alive=False
53
54
else:
@@ -100,7 +101,7 @@ def clean(self):
100
101
try:
101
102
self.eng.quit()
102
103
exceptExceptionase:
103
-
print(f"Warning: Failed to quit MATLAB engine cleanly: {e}")
104
+
warnings.warn(f"Failed to quit MATLAB engine cleanly: {e}", UserWarning, stacklevel=2)
print('warning, bounds for D* and D are equal, this will likely cause fitting errors. Setting D_upper to 99 percent of D_upper')
57
+
warnings.warn('Bounds for D* and D are equal, this will likely cause fitting errors. Setting D_upper to 99 percent of D_upper', UserWarning, stacklevel=2)
print('note that the bounds in the network are soft bounds and implemented by a sigmoid transform. In order for the network to be sensitive over the range, we extend the bounds ny 30%')
69
+
warnings.warn('Note that the bounds in the network are soft bounds and implemented by a sigmoid transform. In order for the network to be sensitive over the range, we extend the bounds by 30%', UserWarning, stacklevel=2)
0 commit comments