Skip to content

Commit

Permalink
Merge pull request #18 from jacquelinegarrahan/tf_fix
Browse files Browse the repository at this point in the history
BUG: Appropriately account for the tensorflow version
  • Loading branch information
jacquelinegarrahan authored Oct 16, 2020
2 parents 95ff861 + 631af12 commit de27a07
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion conda-recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ test:
requires:
- pytest
commands:
- pip install tensorflow
- py.test --pyargs lume_model

about:
Expand Down
4 changes: 1 addition & 3 deletions lume_model/tests/keras/test_model.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import pytest
import sys
import tensorflow
from lume_model import utils
from lume_model.variables import InputVariable, OutputVariable


@pytest.mark.skipif(tensorflow.version != "2.3.1", reason="Incompatible tf version.")
def test_model_from_yaml(config_file):
pytest.importorskip("tensorflow")
pytest.importorskip("tensorflow", minversion="2.3.1")
model = utils.model_from_yaml(config_file)
model.random_evaluate()

Expand Down

0 comments on commit de27a07

Please sign in to comment.