Skip to content

Commit

Permalink
make fake test data float by default to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
fsoubelet committed Nov 25, 2024
1 parent 33ac076 commit 24ce234
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/unit/test_coupling.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,13 @@ def test_coupling_rdt_bump_cmatrix_compare():

def generate_fake_data(n) -> tfs.TfsDataFrame:
qx, qy = 1.31, 1.32
df = tfs.TfsDataFrame(0,
index=[str(i) for i in range(n)],
columns=[S, f"{ALPHA}{X}", f"{ALPHA}{Y}", f"{BETA}{X}", f"{BETA}{Y}",
f"{PHASE_ADV}{X}", f"{PHASE_ADV}{Y}", "R11", "R12", "R21", "R22"],
headers={f"{TUNE}1": qx, f"{TUNE}2": qy}
)
df = tfs.TfsDataFrame(
0.0,
index=[str(i) for i in range(n)],
columns=[S, f"{ALPHA}{X}", f"{ALPHA}{Y}", f"{BETA}{X}", f"{BETA}{Y}",
f"{PHASE_ADV}{X}", f"{PHASE_ADV}{Y}", "R11", "R12", "R21", "R22"],
headers={f"{TUNE}1": qx, f"{TUNE}2": qy},
)

r = np.random.rand(n)
df[S] = np.linspace(0, n, n)
Expand Down

0 comments on commit 24ce234

Please sign in to comment.