Skip to content

Commit

Permalink
Allow obs_query/var_query=None syntax (#194)
Browse files Browse the repository at this point in the history
Co-authored-by: John Kerl <kerl.john.@gmail.com>
  • Loading branch information
johnkerl and John Kerl authored Apr 24, 2024
1 parent 1f87546 commit 39f2aff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python-spec/src/somacore/query/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ def __init__(
if measurement_name not in experiment.ms:
raise ValueError("Measurement does not exist in the experiment")

# Users often like to pass `foo=None` and we should let them
obs_query = obs_query or axis.AxisQuery()
var_query = var_query or axis.AxisQuery()

self.experiment = experiment
self.measurement_name = measurement_name

Expand Down

0 comments on commit 39f2aff

Please sign in to comment.