Skip to content

Commit

Permalink
fix: allow de-selection of subjects
Browse files Browse the repository at this point in the history
  • Loading branch information
dbirman committed Dec 10, 2024
1 parent b465809 commit 40165c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions src/aind_qc_portal/projects/project_view.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
import altair as alt

from aind_qc_portal.projects.dataset import mapping, ProjectDataset
from aind_qc_portal.utils import df_timestamp_range, OUTER_STYLE
from aind_qc_portal.utils import OUTER_STYLE, AIND_COLORS
from aind_qc_portal.utils import df_timestamp_range, OUTER_STYLE, AIND_COLORS


class ProjectView():
Expand Down Expand Up @@ -93,7 +92,7 @@ def update_subject_filter(event):
self.dataset.subject_filter = event.new
df_pane.object = self.get_data()

subject_filter = pn.widgets.Select(name="Subject filter", options=list(self.get_subjects()))
subject_filter = pn.widgets.Select(name="Subject filter", options=[""] + list(self.get_subjects()))
subject_filter.param.watch(update_subject_filter, "value")

df_col = pn.Column(subject_filter, df_pane, styles=OUTER_STYLE)
Expand Down
2 changes: 1 addition & 1 deletion src/aind_qc_portal/qc_project_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""
import panel as pn
import param
from aind_qc_portal.utils import OUTER_STYLE, set_background, AIND_COLORS
from aind_qc_portal.utils import set_background
from aind_qc_portal.projects.project_view import ProjectView

pn.extension("vega")
Expand Down

0 comments on commit 40165c5

Please sign in to comment.