Skip to content

Commit

Permalink
debugging prints
Browse files Browse the repository at this point in the history
  • Loading branch information
prayush committed Jun 25, 2024
1 parent 05541b8 commit 9a360b8
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pycbc/waveform/waveform.py
Original file line number Diff line number Diff line change
Expand Up @@ -593,16 +593,23 @@ def get_td_waveform(template=None, **kwargs):
os.environ["ModePNOrder"] = "8"
os.environ["InspiralEndRadius"] = "4.0"

verbose = input_params.get("verbose", False)
if "eccentricity" in input_params:
eccentricity = float(input_params.get("eccentricity", 0))
else:
eccentricity = float(input_params.get("alpha", 0))
if verbose:
print(f"Using eccentricity from `alpha` column, value = {eccentricity}")

if "mean_anomaly" in input_params:
mean_anomaly = float(input_params.get("mean_anomaly", 0))
elif "mean_per_ano" in input_params:
mean_anomaly = float(input_params.get("mean_per_ano", 0))
else:
mean_anomaly = float(input_params.get("alpha1", 0))
if verbose:
print(f"Using mean_anomaly from `alpha1` column, value = {mean_anomaly}")

esigma_params = dict(
mass1=float(input_params["mass1"]),
mass2=float(input_params["mass2"]),
Expand Down

0 comments on commit 9a360b8

Please sign in to comment.