Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tests/test_TiO2.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@
import os
from shutil import copytree, rmtree

import elli
import numpy as np
from elli.fitting import ParamsHist
import pytest
from pytest import fixture

import elli
from elli.fitting import ParamsHist


@fixture
def datadir(tmpdir, request):
Expand Down Expand Up @@ -135,6 +137,8 @@ def test_solver4x4_expm(self, si_dispersion, meas_data):

def test_solver4x4_expm_torch(self, si_dispersion, meas_data):
"""The solver4x4 with pytorch propagator is within chi square accuracy"""

_ = pytest.importorskip("torch")
sim_data = (
elli.Structure(elli.AIR, self.Layer, si_dispersion)
.evaluate(
Expand Down