Skip to content

Commit

Permalink
Remove duplicate test file
Browse files Browse the repository at this point in the history
  • Loading branch information
phschiele committed May 13, 2024
1 parent 24f4c35 commit a0a5dac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 522 deletions.
4 changes: 4 additions & 0 deletions dsp/cone_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ def scalar_multiply(self, scalar: float) -> KRepresentation:

@classmethod
def constant_repr(cls, value: float | int) -> KRepresentation:
if not isinstance(value, (float, int)):
assert value.size == 1
value = np.squeeze(value)

return KRepresentation(
f=cp.Constant(0),
t=cp.Constant(0),
Expand Down
Loading

0 comments on commit a0a5dac

Please sign in to comment.