diff --git a/gwsumm/plot/triggers/core.py b/gwsumm/plot/triggers/core.py index 025b500f..30d66d0f 100644 --- a/gwsumm/plot/triggers/core.py +++ b/gwsumm/plot/triggers/core.py @@ -296,7 +296,7 @@ def add_loudest_event(self, ax, table, rank, *columns, **kwargs): colstr = get_column_string(col) # format row value try: - valstr = f"{row[col]:.2f}".rstrip('.0') + valstr = f"{row[col]:.2f}".removesuffix('.00') except ValueError: # not float()able valstr = str(row[col]) txt.append(f'{colstr} = {valstr}') diff --git a/pyproject.toml b/pyproject.toml index 57fe73da..63e68827 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,7 +40,7 @@ dependencies = [ "astropy >=3.0.0", "gwdatafind >=1.1.1", "gwdetchar >=2.2.6", - "gwpy >=2.0.0", + "gwpy >=2.0.0, <=3.0.8", "gwtrigfind", "lalsuite", "ligo-segments", @@ -53,7 +53,7 @@ dependencies = [ "pygments >=2.7.0", "python-dateutil", "python-ligo-lw", - "scipy >=1.2.0", + "scipy >=1.2.0, <1.14", ] dynamic = ["version"]