Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 29, 2024
1 parent c457203 commit 6781117
Showing 1 changed file with 18 additions and 15 deletions.
33 changes: 18 additions & 15 deletions app/host/plotting_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
from math import pi

# import extinction
import numpy as np
import pandas as pd
import prospect.io.read_results as reader
Expand All @@ -14,31 +13,32 @@
from astropy.wcs import WCS
from bokeh.embed import components
from bokeh.layouts import gridplot
# from bokeh.models import Circle
from bokeh.models import ColumnDataSource
from bokeh.models import HoverTool
from bokeh.models import LabelSet
from bokeh.models import Range1d
from bokeh.palettes import Category20
from bokeh.plotting import ColumnDataSource
from bokeh.plotting import figure
from bokeh.transform import cumsum
from host.models import Filter
from host.photometric_calibration import maggies_to_mJy
from host.prospector import build_obs
# import extinction
# from bokeh.models import Circle
# from bokeh.models import Cross
# from bokeh.models import Ellipse
# from bokeh.models import Grid
from bokeh.models import HoverTool
from bokeh.models import LabelSet
# from bokeh.models import Legend
# from bokeh.models import LinearAxis
# from bokeh.models import LogColorMapper
# from bokeh.models import Plot
from bokeh.models import Range1d
# from bokeh.models import Scatter
from bokeh.palettes import Category20
from bokeh.plotting import ColumnDataSource
from bokeh.plotting import figure
# from bokeh.plotting import show
from bokeh.transform import cumsum
# from host.catalog_photometry import filter_information
# from host.host_utils import survey_list
from host.models import Filter
from host.photometric_calibration import maggies_to_mJy
# from host.photometric_calibration import mJy_to_maggies
# from host.prospector import build_model
from host.prospector import build_obs

# from .models import Aperture

Expand Down Expand Up @@ -151,7 +151,7 @@ def plot_cutout_image(
"legend_label": f"{transient.name}",
"size": 30,
"line_width": 2,
"marker": 'cross',
"marker": "cross",
}
plot_position(
transient, wcs, plotting_kwargs=transient_kwargs, plotting_func=fig.scatter
Expand All @@ -163,10 +163,13 @@ def plot_cutout_image(
"size": 25,
"line_width": 2,
"line_color": "red",
"marker": 'x',
"marker": "x",
}
plot_position(
transient.host, wcs, plotting_kwargs=host_kwargs, plotting_func=fig.scatter
transient.host,
wcs,
plotting_kwargs=host_kwargs,
plotting_func=fig.scatter,
)
if global_aperture.exists():
filter_name = global_aperture[0].cutout.filter.name
Expand Down

0 comments on commit 6781117

Please sign in to comment.