Completed
Push — master ( 6d0d49...6d6a7d )
by Jasper
02:25 queued 57s
created

Context.view()   A

Complexity

Conditions 1

Size

Total Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
1
from niprov.dependencies import Dependencies
2
from niprov.config import Configuration
3
import niprov
4
5
6
class Context(object):
7
8
    def __init__(self):
9
        self.config = Configuration()
10
        self.deps = Dependencies(self.config)
11
12
    def add(self, filepath, **kwargs):
13
        """See :py:mod:`niprov.config`  """
14
        return niprov.adding.add(filepath, dependencies=self.deps, **kwargs)
15
16
    def compare(self, file1, file2):
17
        """See :py:mod:`niprov.comparing`  """
18
        return niprov.comparing.compare(file1, file2, dependencies=self.deps)
19
20
    def discover(self, root):
21
        """See :py:mod:`niprov.discovery`  """
22
        return niprov.discovery.discover(root, dependencies=self.deps)
23
24
    def inspect(self, location):
25
        """See :py:mod:`niprov.inspection`  """
26
        return niprov.inspection.inspect(location, dependencies=self.deps)
27
28
    def log(self, *args, **kwargs):
29
        """See :py:mod:`niprov.logging`  """
30
        return niprov.logging.log(*args, dependencies=self.deps, **kwargs)
31
32
    def markForApproval(self, files):
33
        """See :py:mod:`niprov.approval`  """
34
        return niprov.approval.markForApproval(files, dependencies=self.deps)
35
36
    def markedForApproval(self):
37
        """See :py:mod:`niprov.approval`  """
38
        return niprov.approval.markedForApproval(dependencies=self.deps)
39
40
    def approve(self, filepath):
41
        """See :py:mod:`niprov.approval`  """
42
        return niprov.approval.approve(filepath, dependencies=self.deps)
43
44
    def selectApproved(self, files):
45
        """See :py:mod:`niprov.approval`  """
46
        return niprov.approval.selectApproved(files, dependencies=self.deps)
47
48
    def renameDicoms(self, dicomdir):
49
        """See :py:mod:`niprov.renaming`  """
50
        return niprov.renaming.renameDicoms(dicomdir, dependencies=self.deps)
51
52
    def record(self, *args, **kwargs):
53
        """See :py:mod:`niprov.recording`  """
54
        return niprov.recording.record(*args, dependencies=self.deps, **kwargs)
55
56
    def export(self, *args, **kwargs):
57
        """See :py:mod:`niprov.exporting`  """
58
        return niprov.exporting.export(*args, dependencies=self.deps, **kwargs)
59
60
    def get(self, *args, **kwargs):
61
        """See :py:mod:`niprov.exporting`  """
62
        return niprov.exporting.get(*args, dependencies=self.deps, **kwargs)
63
64
    def print_(self, *args, **kwargs):
65
        """See :py:mod:`niprov.exporting`  """
66
        return niprov.exporting.print_(*args, dependencies=self.deps, **kwargs)
67
68
    def backup(self, *args, **kwargs):
69
        """See :py:mod:`niprov.exporting`  """
70
        return niprov.exporting.backup(*args, dependencies=self.deps, **kwargs)
71
72
    def importp(self, *args, **kwargs):
73
        """See :py:mod:`niprov.importing`  """
74
        return niprov.importing.importp(*args, dependencies=self.deps, **kwargs)
75
76
    def view(self, *args, **kwargs):
77
        """See :py:mod:`niprov.exporting`  """
78
        return niprov.exporting.view(*args, dependencies=self.deps, **kwargs)
79