Skip to content

Commit a0a5dac

Browse files
committed
Remove duplicate test file
1 parent 24f4c35 commit a0a5dac

File tree

2 files changed

+4
-522
lines changed

2 files changed

+4
-522
lines changed

dsp/cone_transforms.py

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ def scalar_multiply(self, scalar: float) -> KRepresentation:
7474

7575
@classmethod
7676
def constant_repr(cls, value: float | int) -> KRepresentation:
77+
if not isinstance(value, (float, int)):
78+
assert value.size == 1
79+
value = np.squeeze(value)
80+
7781
return KRepresentation(
7882
f=cp.Constant(0),
7983
t=cp.Constant(0),

0 commit comments

Comments
 (0)