Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

Commit

Permalink
Remove six dependency (#332)
Browse files Browse the repository at this point in the history
Remove dependency on six in `waveforms.py` - no longer needed as we are only supporting Python 3 and above.

Authors:
  - Adam Thompson (@awthomp)

Approvers:
  - AJ Schmidt (@ajschmidt8)
  - Brad Rees (@BradReesWork)

URL: #332
  • Loading branch information
awthomp authored Mar 3, 2021
1 parent e14ee99 commit ee33964
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions python/cusignal/waveforms/waveforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
import cupy as cp
import numpy as np

from six import string_types


_square_kernel = cp.ElementwiseKernel(
"T t, T w",
Expand Down Expand Up @@ -234,7 +232,7 @@ def gausspulse(
# pi^2/a * fc^2 * bw^2 /4=-log(ref)
a = -((np.pi * fc * bw) ** 2) / (4.0 * np.log(ref))

if isinstance(t, string_types):
if isinstance(t, str):
if t == "cutoff": # compute cut_off point
# Solve exp(-a tc**2) = tref for tc
# tc = sqrt(-log(tref) / a) where tref = 10^(tpr/20)
Expand Down

0 comments on commit ee33964

Please sign in to comment.