Commit 9aa58afa authored by Jait Dixit's avatar Jait Dixit

Enable coverage report

parent cd593c77
Pipeline #9668 failed with stage
in 28 minutes and 54 seconds
......@@ -15,3 +15,4 @@
build
.idea
.coverage
......@@ -64,7 +64,11 @@ test_mpi_fftw_hdf5:
- ci/install_libsharp.sh
- ci/install_pyfftw.sh
- python setup.py build_ext --inplace
- nosetests -vv
- >
nosetests -vv --with-coverage --cover-package=nifty --cover-inclusive
--cover-branches
- >
coverage report | grep TOTAL | awk '{ print "TOTAL: "$6; }'
release_image_master:
image: docker:latest
......
This diff is collapsed.
......@@ -3,6 +3,7 @@ scipy
cython
nose
nose-parameterized
coverage
git+https://gitlab.mpcdf.mpg.de/ift/mpi_dummy.git
git+https://gitlab.mpcdf.mpg.de/ift/keepers.git
git+https://gitlab.mpcdf.mpg.de/ift/D2O.git
......@@ -55,7 +55,7 @@ from spaces import *
from operators import *
from probing import *
#from probing import *
from sugar import *
......
# -*- coding: utf-8 -*-
from prober import Prober
from diagonal_prober import *
from trace_prober import *
# -*- coding: utf-8 -*-
from prober import Prober
class DiagonalProber(Prober):
# ---Mandatory properties and methods---
def finish_probe(self, probe, pre_result):
return probe[1].conjugate()*pre_result
# from prober import Prober
#
#
# class DiagonalProber(Prober):
#
# # ---Mandatory properties and methods---
# def finish_probe(self, probe, pre_result):
# return probe[1].conjugate()*pre_result
# -*- coding: utf-8 -*-
from prober import Prober
class TraceProber(Prober):
# ---Mandatory properties and methods---
def finish_probe(self, probe, pre_result):
return probe[1].conjugate().weight(power=-1).dot(pre_result)
# from prober import Prober
#
#
# class TraceProber(Prober):
#
# # ---Mandatory properties and methods---
# def finish_probe(self, probe, pre_result):
# return probe[1].conjugate().weight(power=-1).dot(pre_result)
......@@ -150,8 +150,7 @@ from keepers import Loggable,\
Versionable
class Space(Versionable, Loggable, Plottable, object):
class Space(Versionable, Loggable, object):
"""
.. __ __
.. /__/ / /_
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment