# Path: group_testing/wet_lab.py
# class WetLab:
# class WetLabCSV(WetLab):
#   def __init__(self,
#                num_patients: int = 2,
#                freeze_diseased: bool = True,
#                base_infection_rate: Union[float, Iterable[float]] = 0.05,
#                specificity: Union[float, Iterable[float]] = 0.97,
#                sensitivity: Union[float, Iterable[float]] = 0.85):
#   def reset(self, rng):
#   def group_tests_outputs(self, rng, groups):
#   def __init__(self, filename: str = None):
#   def reset(self, rng):
#   def group_tests_outputs(self, rng, groups):
#   def to_csv(self, groups: np.ndarray, marginals: np.ndarray):
#     def to_list(arr):


from absl.testing import absltest
from group_testing import wet_lab
import jax
import jax.numpy as np
import jax.test_util
# coding=utf-8
# Copyright 2020 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Tests for the wet lab."""



class WetLabTest(jax.test_util.JaxTestCase):

  def setUp(self):
    super().setUp()
    self.rng = jax.random.PRNGKey(0)

  def test_reset_frozen(self):
    num_patients = 10

# Path: group_testing/wet_lab.py
# class WetLab:
# class WetLabCSV(WetLab):
#   def __init__(self,
#                num_patients: int = 2,
#                freeze_diseased: bool = True,
#                base_infection_rate: Union[float, Iterable[float]] = 0.05,
#                specificity: Union[float, Iterable[float]] = 0.97,
#                sensitivity: Union[float, Iterable[float]] = 0.85):
#   def reset(self, rng):
#   def group_tests_outputs(self, rng, groups):
#   def __init__(self, filename: str = None):
#   def reset(self, rng):
#   def group_tests_outputs(self, rng, groups):
#   def to_csv(self, groups: np.ndarray, marginals: np.ndarray):
#     def to_list(arr):


# Path: group_testing/wet_lab_test.py
from absl.testing import absltest
from group_testing import wet_lab
import jax
import jax.numpy as np
import jax.test_util

# coding=utf-8
# Copyright 2020 Google LLC.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Lint as: python3
"""Tests for the wet lab."""



class WetLabTest(jax.test_util.JaxTestCase):

  def setUp(self):
    super().setUp()
    self.rng = jax.random.PRNGKey(0)

  def test_reset_frozen(self):
    num_patients = 10

    wetlab = wet_lab.WetLab(num_patients=num_patients, freeze_diseased=True)