File: code_support.py

package info (click to toggle)
yt 4.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,084 kB
  • sloc: python: 132,484; ansic: 5,628; cpp: 1,588; javascript: 352; makefile: 138; sh: 43; csh: 36
file content (121 lines) | stat: -rw-r--r-- 2,610 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
vals = [
    "FluidQuantities",
    "Particles",
    "Parameters",
    "Units",
    "ReadOnDemand",
    "LoadRawData",
    "LevelOfSupport",
    "ContactPerson",
]


class CodeSupport:
    def __init__(self, **kwargs):
        self.support = {}
        for v in vals:
            self.support[v] = "N"
        for k, v in kwargs.items():
            if k in vals:
                self.support[k] = v


Y = "Y"
N = "N"

code_names = ["Enzo", "Orion", "FLASH", "RAMSES", "Chombo", "Gadget", "ART", "ZEUS"]


codes = dict(
    Enzo=CodeSupport(
        FluidQuantities=Y,
        Particles=Y,
        Parameters=Y,
        Units=Y,
        ReadOnDemand=Y,
        LoadRawData=Y,
        ContactPerson="Matt Turk",
        LevelOfSupport="Full",
    ),
    Orion=CodeSupport(
        FluidQuantities=Y,
        Particles=N,
        Parameters=Y,
        Units=Y,
        ReadOnDemand=Y,
        LoadRawData=Y,
        ContactPerson="Jeff Oishi",
        LevelOfSupport="Full",
    ),
    FLASH=CodeSupport(
        FluidQuantities=Y,
        Particles=N,
        Parameters=N,
        Units=Y,
        ReadOnDemand=Y,
        LoadRawData=Y,
        ContactPerson="John !ZuHone",
        LevelOfSupport="Partial",
    ),
    RAMSES=CodeSupport(
        FluidQuantities=Y,
        Particles=N,
        Parameters=N,
        Units=N,
        ReadOnDemand=Y,
        LoadRawData=Y,
        ContactPerson="Matt Turk",
        LevelOfSupport="Partial",
    ),
    Chombo=CodeSupport(
        FluidQuantities=Y,
        Particles=N,
        Parameters=N,
        Units=N,
        ReadOnDemand=Y,
        LoadRawData=Y,
        ContactPerson="Jeff Oishi",
        LevelOfSupport="Partial",
    ),
    Gadget=CodeSupport(
        FluidQuantities=N,
        Particles=Y,
        Parameters=Y,
        Units=Y,
        ReadOnDemand=N,
        LoadRawData=N,
        ContactPerson="Chris Moody",
        LevelOfSupport="Partial",
    ),
    ART=CodeSupport(
        FluidQuantities=N,
        Particles=N,
        Parameters=N,
        Units=N,
        ReadOnDemand=N,
        LoadRawData=N,
        ContactPerson="Matt Turk",
        LevelOfSupport="None",
    ),
    ZEUS=CodeSupport(
        FluidQuantities=N,
        Particles=N,
        Parameters=N,
        Units=N,
        ReadOnDemand=N,
        LoadRawData=N,
        ContactPerson="Matt Turk",
        LevelOfSupport="None",
    ),
)

print("|| . ||", end=" ")
for c in code_names:
    print(f"{c} || ", end=" ")
print()

for vn in vals:
    print(f"|| !{vn} ||", end=" ")
    for c in code_names:
        print(f"{codes[c].support[vn]} || ", end=" ")
    print()