Skip to content

Commit

Permalink
really remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jashcraf committed Nov 8, 2023
1 parent e3ec110 commit 4336634
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions tests/test_materials.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,26 +3,26 @@
import pytest
import os

def test_create_index_model():
# def test_create_index_model():

# TODO: The file import system doesn't work on the GH Actions test
# # TODO: The file import system doesn't work on the GH Actions test

# prealloc lists
reference = []
test = []
# # prealloc lists
# reference = []
# test = []

# pick a complex material and a dielectric
materials = ['Al','HfO2']
# # pick a complex material and a dielectric
# materials = ['Al','HfO2']

# load refractive indices from a certain wavelength
wvl = [0.51660,0.5060]
ns = [0.51427,1.9083754098692]
ks = [4.95111,0]
for material,wave,n,k in zip(materials,wvl,ns,ks):
n_callable = mat.create_index_model(material)
# # load refractive indices from a certain wavelength
# wvl = [0.51660,0.5060]
# ns = [0.51427,1.9083754098692]
# ks = [4.95111,0]
# for material,wave,n,k in zip(materials,wvl,ns,ks):
# n_callable = mat.create_index_model(material)

reference.append(n + 1j*k)
test.append(n_callable(wave))
# reference.append(n + 1j*k)
# test.append(n_callable(wave))

# np.testing.assert_allclose(reference,test)
pass
# # np.testing.assert_allclose(reference,test)
# pass

0 comments on commit 4336634

Please sign in to comment.