Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • wenxuan.jia/pygwinc
  • sean-leavey/pygwinc
  • sebastian.steinlechner/pygwinc
  • nicholas.demos/pygwinc
  • chris.whittle/pygwinc
  • raymond.robie/pygwinc
  • mateusz.bawaj/pygwinc
  • anchal.gupta/pygwinc
  • 40m/pygwinc
  • evan.hall/pygwinc
  • kevin.kuns/pygwinc
  • geoffrey-lovelace/pygwinc
  • brittany.kamai/pygwinc
  • daniel-brown/pygwinc
  • lee-mcculler/pygwinc
  • jameson.rollins/pygwinc
  • gwinc/pygwinc
17 results
Show changes
Commits on Source (2)
......@@ -2,8 +2,6 @@ import argparse
import numpy as np
import matplotlib.pyplot as plt
import inspiral_range
from . import IFOS, PLOT_STYLE
from .. import load_budget
......@@ -38,13 +36,20 @@ def main():
for name, budget in budgets.items():
data = budget.calc()
BNS_range = inspiral_range.range(freq, data)
label = '{name:<{pad}} {bns:>6.0f} Mpc'.format(
try:
import inspiral_range
label_range = ' {:>6.0f} Mpc'.format(
inspiral_range.range(freq, data),
)
except ModuleNotFoundError:
label_range = ''
label = '{name:<{pad}}{range}'.format(
name=name,
pad=range_pad,
bns=BNS_range,
range=label_range,
)
ax.loglog(freq, np.sqrt(data), label=label)
ax.loglog(freq, np.sqrt(data), label=label, lw=2)
ax.grid(
True,
......