From af4513a194c50c158cc5a9c490be6eea0cf26fbb Mon Sep 17 00:00:00 2001 From: Martin Kuban <martin.kuban@physik.hu-berlin.de> Date: Mon, 8 Jun 2020 16:54:25 +0200 Subject: [PATCH] Added test structure --- nomad_dos_fingerprints/DOSfingerprint.py | 14 ++++++++++++++ requirements.txt | 2 ++ tests/test_functional.py | 5 +++++ 3 files changed, 21 insertions(+) create mode 100644 nomad_dos_fingerprints/DOSfingerprint.py create mode 100644 tests/test_functional.py diff --git a/nomad_dos_fingerprints/DOSfingerprint.py b/nomad_dos_fingerprints/DOSfingerprint.py new file mode 100644 index 0000000..de519b5 --- /dev/null +++ b/nomad_dos_fingerprints/DOSfingerprint.py @@ -0,0 +1,14 @@ +import numpy as np +from bitarray import bitarray + +ELECTRON_CHARGE = 1.602176565e-19 + +class DOSFingerprint(): + + def __init__(self): + self.bins = [] + self.indices = [] + + + def calculate(dos_energies, dos_values, grid_id): + pass diff --git a/requirements.txt b/requirements.txt index e69de29..9955dec 100644 --- a/requirements.txt +++ b/requirements.txt @@ -0,0 +1,2 @@ +pytest +pytest-cov diff --git a/tests/test_functional.py b/tests/test_functional.py new file mode 100644 index 0000000..690ce8f --- /dev/null +++ b/tests/test_functional.py @@ -0,0 +1,5 @@ +from nomad_dos_fingerprints import DOSFingerprint() +import pytest, os + +def test_fingerprint_values(): + pass -- GitLab