content stringlengths 7 1.05M | fixed_cases stringlengths 1 1.28M |
|---|---|
async def dm(user, **kwargs):
"""functions the same as a send function"""
dm = user.dm_channel
if dm is None:
dm = await user.create_dm()
await dm.send(**kwargs)
| async def dm(user, **kwargs):
"""functions the same as a send function"""
dm = user.dm_channel
if dm is None:
dm = await user.create_dm()
await dm.send(**kwargs) |
{
SchemaConfigRoot: {
SchemaType: SchemaTypeArray,
SchemaRule: [
CheckForeachAsType(PDBConst.DB)
]
},
PDBConst.DB: {
SchemaType: SchemaTypeDict,
SchemaRule: [
HasKey(PDBConst.Name, PDBConst.Tables)
]
},
PDBConst.Name: {
SchemaType: SchemaTypeString
},
PDBConst.Tables: {
SchemaType: SchemaTypeArray,
SchemaRule: [
CheckForeachAsType(PDBConst.Table)
]
},
PDBConst.Table: {
SchemaType: SchemaTypeDict,
SchemaRule: [
HasKey(PDBConst.Name, PDBConst.Columns)
]
},
PDBConst.Columns: {
SchemaType: SchemaTypeArray,
SchemaRule: [
CheckForeachAsType(PDBConst.Column)
]
},
PDBConst.Column: {
SchemaType: SchemaTypeDict,
SchemaRule: [
HasKey(PDBConst.Name, PDBConst.Attributes)
]
},
PDBConst.Attributes: {
SchemaType: SchemaTypeArray
},
PDBConst.Initials: {
SchemaType: SchemaTypeArray,
},
PDBConst.Value: {
SchemaType: SchemaTypeString
},
PDBConst.PrimaryKey: {
SchemaType: SchemaTypeArray
}
}
| {SchemaConfigRoot: {SchemaType: SchemaTypeArray, SchemaRule: [check_foreach_as_type(PDBConst.DB)]}, PDBConst.DB: {SchemaType: SchemaTypeDict, SchemaRule: [has_key(PDBConst.Name, PDBConst.Tables)]}, PDBConst.Name: {SchemaType: SchemaTypeString}, PDBConst.Tables: {SchemaType: SchemaTypeArray, SchemaRule: [check_foreach_as_type(PDBConst.Table)]}, PDBConst.Table: {SchemaType: SchemaTypeDict, SchemaRule: [has_key(PDBConst.Name, PDBConst.Columns)]}, PDBConst.Columns: {SchemaType: SchemaTypeArray, SchemaRule: [check_foreach_as_type(PDBConst.Column)]}, PDBConst.Column: {SchemaType: SchemaTypeDict, SchemaRule: [has_key(PDBConst.Name, PDBConst.Attributes)]}, PDBConst.Attributes: {SchemaType: SchemaTypeArray}, PDBConst.Initials: {SchemaType: SchemaTypeArray}, PDBConst.Value: {SchemaType: SchemaTypeString}, PDBConst.PrimaryKey: {SchemaType: SchemaTypeArray}} |
class Card(object):
"""Cards in the deck."""
pass
| class Card(object):
"""Cards in the deck."""
pass |
class OSContainerError(Exception):
"""General container data processing error"""
def __init__(self, *args, **kwargs):
super(OSContainerError, self).__init__(*args, **kwargs)
| class Oscontainererror(Exception):
"""General container data processing error"""
def __init__(self, *args, **kwargs):
super(OSContainerError, self).__init__(*args, **kwargs) |
# Time: init:O(len(nums)), update: O(logn), sumRange: O(logn)
# Space: init:O(len(nums)), update: O(1), sumRange: O(1)
class NumArray:
def __init__(self, nums: List[int]):
self.n = len(nums)
self.arr = [None]*(2*self.n-1)
last_row_index = 0
for index in range(self.n-1, 2*self.n-1):
self.arr[index] = nums[last_row_index]
last_row_index+=1
for index in range(self.n-2,-1,-1):
self.arr[index] = self.arr[index*2+1] + self.arr[index*2+2]
# print(self.arr)
def update(self, i: int, val: int) -> None:
i = self.n+i-1
diff = val-self.arr[i]
while i>=0:
self.arr[i]+=diff
if i%2==0: # right_child
i = i//2-1
else: # left_child
i = i//2
# print(self.arr)
def sumRange(self, i: int, j: int) -> int:
i = self.n+i-1
j = self.n+j-1
cur_sum = 0
while i<=j:
# print(i,j)
if i%2==0: # right_child
cur_sum+=self.arr[i]
i+=1
if j%2==1: # left_child
cur_sum+=self.arr[j]
j-=1
i = i//2 # index i is guaranteed to be left_child
j = j//2-1 # index j is guaranteed to be right_child
return cur_sum
# Your NumArray object will be instantiated and called as such:
# obj = NumArray(nums)
# obj.update(i,val)
# param_2 = obj.sumRange(i,j)
| class Numarray:
def __init__(self, nums: List[int]):
self.n = len(nums)
self.arr = [None] * (2 * self.n - 1)
last_row_index = 0
for index in range(self.n - 1, 2 * self.n - 1):
self.arr[index] = nums[last_row_index]
last_row_index += 1
for index in range(self.n - 2, -1, -1):
self.arr[index] = self.arr[index * 2 + 1] + self.arr[index * 2 + 2]
def update(self, i: int, val: int) -> None:
i = self.n + i - 1
diff = val - self.arr[i]
while i >= 0:
self.arr[i] += diff
if i % 2 == 0:
i = i // 2 - 1
else:
i = i // 2
def sum_range(self, i: int, j: int) -> int:
i = self.n + i - 1
j = self.n + j - 1
cur_sum = 0
while i <= j:
if i % 2 == 0:
cur_sum += self.arr[i]
i += 1
if j % 2 == 1:
cur_sum += self.arr[j]
j -= 1
i = i // 2
j = j // 2 - 1
return cur_sum |
# Author: Melissa Perez
# Date: --/--/--
# Description:
# Definition for singly-linked list.
# class ListNode:
# def __init__(self, val=0, next=None):
# self.val = val
# self.next = next
class Solution:
def addTwoNumbers(self, l1: Optional[ListNode], l2: Optional[ListNode]) -> Optional[ListNode]:
l1_runner = l1
l2_runner = l2
sum_list = ListNode()
sum_list_runner = sum_list
carry = 0
while l1_runner or l2_runner:
if l1_runner and l2_runner:
digit_sum = l1_runner.val + l2_runner.val + carry
elif l2_runner is None:
digit_sum = carry + l1_runner.val
elif l1_runner is None:
digit_sum = carry + l2_runner.val
result = digit_sum % 10
carry = 1 if digit_sum >= 10 else 0
sum_list_runner.next = ListNode(val=result)
sum_list_runner = sum_list_runner.next
if l2_runner is not None:
l2_runner = l2_runner.next
if l1_runner is not None:
l1_runner = l1_runner.next
if carry:
sum_list_runner.next = ListNode(val=carry)
return sum_list.next | class Solution:
def add_two_numbers(self, l1: Optional[ListNode], l2: Optional[ListNode]) -> Optional[ListNode]:
l1_runner = l1
l2_runner = l2
sum_list = list_node()
sum_list_runner = sum_list
carry = 0
while l1_runner or l2_runner:
if l1_runner and l2_runner:
digit_sum = l1_runner.val + l2_runner.val + carry
elif l2_runner is None:
digit_sum = carry + l1_runner.val
elif l1_runner is None:
digit_sum = carry + l2_runner.val
result = digit_sum % 10
carry = 1 if digit_sum >= 10 else 0
sum_list_runner.next = list_node(val=result)
sum_list_runner = sum_list_runner.next
if l2_runner is not None:
l2_runner = l2_runner.next
if l1_runner is not None:
l1_runner = l1_runner.next
if carry:
sum_list_runner.next = list_node(val=carry)
return sum_list.next |
""" Contains a class that implements an unweighted and undirected graph.
This module implements an API that define the fundamental graph operations. It contains only one class, called Graph,
that implements an unweighted and undirected graph.
@Author: Gabriel Nogueira (Talendar)
"""
class Graph:
""" Implementation of an unweighted and undirected graph.
Attributes:
_adj_lists: Stores the adjacency lists for the graph's vertices. Each index is associated with a vertex.
_symbol2index: Dictionary that maps the name of a vertex (string) to its index.
_index2symbol: Maps the index of a vertex to its name (string).
"""
def __init__(self):
""" Inits an empty unweighted and undirected graph. """
self._adj_lists = []
self._symbol2index = {}
self._index2symbol = []
def num_vertices(self):
""" Returns the number of vertices in the graph. """
return len(self._adj_lists)
def nameof(self, v):
""" Given the index of a vertex, returns its name.
:param v: The index of the vertex (index).
:return: The name of the vertex (string).
"""
return self._index2symbol[v]
def indexof(self, v):
""" Given a vertex's name, returns its index.
:param v: Name of the vertex.
:return: The index of the vertex.
"""
return self._symbol2index[v]
def contains(self, v):
""" Checks whether the graph contains the given vertex.
:param v: The vertex's index (integer) or name (string).
:return: True if the vertex is in the graph and False otherwise.
"""
if type(v) is int:
return 0 <= v < len(self._adj_lists)
else:
return v in self._symbol2index
def add_vertex(self, v: str):
""" Adds a vertex to the graph.
:param v: String containing an unique identifier for the vertex.
:return: -
:raises ValueError: The vertex is already present in the graph.
"""
if self.contains(v):
raise ValueError("The vertex is already present in the graph!")
self._adj_lists.append([])
self._symbol2index[v] = len(self._adj_lists) - 1
self._index2symbol.append(v)
def add_edge(self, v, w):
""" Adds an edge connecting the vertices v and w.
Use this method to add an undirected and unweighted edge connecting the vertices v and w. If either v or w is
not yet present in the graph, this method will add it. The params v and w expects strings containing unique
identifiers for v and w, respectively. This method doesn't check whether the two vertices are already
neighbours, so it allows the adding of multiple edges between a same pair of vertices!
:param v: String containing the ID (name) of a vertex (present in the graph or yet to be added).
:param w: String containing the ID (name) of a vertex (present in the graph or yet to be added).
:return: -
"""
if v not in self._symbol2index:
self.add_vertex(v)
if w not in self._symbol2index:
self.add_vertex(w)
self._adj_lists[ self.indexof(v) ].append( self.indexof(w) )
self._adj_lists[ self.indexof(w) ].append( self.indexof(v) )
def adj(self, v):
""" Returns the adjacency list of vertex v.
Use this function in order to retrieve a list containing all the neighbours of the given vertex.
:param v: The index (integer) or name (string) of the vertex.
:return: The adjacency list of the vertex (list containing the indexes of v's neighbours). Returns an empty list
if v has no neighbours.
"""
if type(v) is int:
return self._adj_lists[v]
else:
return self._adj_lists[ self.indexof(v) ]
def __str__(self):
""" Represents the graph in a string.
Each line of the string represents a vertex followed by its adjacency list.
:return: A string representing the graph.
"""
lines_list = []
for i, v in enumerate(self._adj_lists):
lines_list.append( "> %s[%d]: " % (self.nameof(i), i) +
"".join(["%s[%d] " % (self.nameof(w), w) for w in v]) + "\n")
return "".join(lines_list)
def read_graph():
""" Creates a graph from the information retrieved from STDIN.
:return: The generated graph.
"""
graph = Graph()
edges_count = int(input())
for i in range(edges_count):
v, w = input().split(" ")
graph.add_edge(v, w)
return graph
| """ Contains a class that implements an unweighted and undirected graph.
This module implements an API that define the fundamental graph operations. It contains only one class, called Graph,
that implements an unweighted and undirected graph.
@Author: Gabriel Nogueira (Talendar)
"""
class Graph:
""" Implementation of an unweighted and undirected graph.
Attributes:
_adj_lists: Stores the adjacency lists for the graph's vertices. Each index is associated with a vertex.
_symbol2index: Dictionary that maps the name of a vertex (string) to its index.
_index2symbol: Maps the index of a vertex to its name (string).
"""
def __init__(self):
""" Inits an empty unweighted and undirected graph. """
self._adj_lists = []
self._symbol2index = {}
self._index2symbol = []
def num_vertices(self):
""" Returns the number of vertices in the graph. """
return len(self._adj_lists)
def nameof(self, v):
""" Given the index of a vertex, returns its name.
:param v: The index of the vertex (index).
:return: The name of the vertex (string).
"""
return self._index2symbol[v]
def indexof(self, v):
""" Given a vertex's name, returns its index.
:param v: Name of the vertex.
:return: The index of the vertex.
"""
return self._symbol2index[v]
def contains(self, v):
""" Checks whether the graph contains the given vertex.
:param v: The vertex's index (integer) or name (string).
:return: True if the vertex is in the graph and False otherwise.
"""
if type(v) is int:
return 0 <= v < len(self._adj_lists)
else:
return v in self._symbol2index
def add_vertex(self, v: str):
""" Adds a vertex to the graph.
:param v: String containing an unique identifier for the vertex.
:return: -
:raises ValueError: The vertex is already present in the graph.
"""
if self.contains(v):
raise value_error('The vertex is already present in the graph!')
self._adj_lists.append([])
self._symbol2index[v] = len(self._adj_lists) - 1
self._index2symbol.append(v)
def add_edge(self, v, w):
""" Adds an edge connecting the vertices v and w.
Use this method to add an undirected and unweighted edge connecting the vertices v and w. If either v or w is
not yet present in the graph, this method will add it. The params v and w expects strings containing unique
identifiers for v and w, respectively. This method doesn't check whether the two vertices are already
neighbours, so it allows the adding of multiple edges between a same pair of vertices!
:param v: String containing the ID (name) of a vertex (present in the graph or yet to be added).
:param w: String containing the ID (name) of a vertex (present in the graph or yet to be added).
:return: -
"""
if v not in self._symbol2index:
self.add_vertex(v)
if w not in self._symbol2index:
self.add_vertex(w)
self._adj_lists[self.indexof(v)].append(self.indexof(w))
self._adj_lists[self.indexof(w)].append(self.indexof(v))
def adj(self, v):
""" Returns the adjacency list of vertex v.
Use this function in order to retrieve a list containing all the neighbours of the given vertex.
:param v: The index (integer) or name (string) of the vertex.
:return: The adjacency list of the vertex (list containing the indexes of v's neighbours). Returns an empty list
if v has no neighbours.
"""
if type(v) is int:
return self._adj_lists[v]
else:
return self._adj_lists[self.indexof(v)]
def __str__(self):
""" Represents the graph in a string.
Each line of the string represents a vertex followed by its adjacency list.
:return: A string representing the graph.
"""
lines_list = []
for (i, v) in enumerate(self._adj_lists):
lines_list.append('> %s[%d]: ' % (self.nameof(i), i) + ''.join(['%s[%d] ' % (self.nameof(w), w) for w in v]) + '\n')
return ''.join(lines_list)
def read_graph():
""" Creates a graph from the information retrieved from STDIN.
:return: The generated graph.
"""
graph = graph()
edges_count = int(input())
for i in range(edges_count):
(v, w) = input().split(' ')
graph.add_edge(v, w)
return graph |
class Solution(object):
def maxProfit(self, prices):
if not prices or len(prices)<=1: return 0
N = len(prices)
buy = [-prices[0], max(-prices[1], -prices[0])]
sell = [0, max(prices[1]+buy[0], 0)]
for i in xrange(2, N):
buy.append(max(sell[i-2]-prices[i], buy[i-1]))
sell.append(max(prices[i]+buy[i-1], sell[i-1]))
return max(buy[-1], sell[-1], 0)
"""
Three rules:
1. Need to buy before sell.
2. After sell, next day need to rest (cannot buy).
3. When buying, we spend money, which is a negative profit.
There are two possible end state. buy or sell. So we need to consider both.
Only considering prices 0~i, buy[i] stores the max profit that the last action is "buy".
Only considering prices 0~i, sell[i] stores the max profit that the last action is "sell".
Let's sort this out.
When i==0:
buy: -prices[0]
sell: 0, since we cannot sell at i==0.
When i==1:
buy: max(-prices[1], -prices[0])
Now, we must not have sell yet. So no need to consider it.
If we buy at i==1, the profit will be `-prices[1]`. But we also had the option not to buy. buy[0] is the max profit if we don't buy at i==1.
Again, we are considering, when the end state is "buy", what is the max profit?
Thus, `max(-prices[1], buy[0])`.
sell: max(prices[1]+buy[0], 0)
If we sell at i==1, the profit will be `prices[1]+buy[0]`. But we also had the option not to sell. 0 is the max profit if we don't sell at i==1.
Again, we are considering, when the end state is "sell", what is the max profit?
Thus, `max(prices[1]+buy[0], sell[0])`
When i>=2:
""" | class Solution(object):
def max_profit(self, prices):
if not prices or len(prices) <= 1:
return 0
n = len(prices)
buy = [-prices[0], max(-prices[1], -prices[0])]
sell = [0, max(prices[1] + buy[0], 0)]
for i in xrange(2, N):
buy.append(max(sell[i - 2] - prices[i], buy[i - 1]))
sell.append(max(prices[i] + buy[i - 1], sell[i - 1]))
return max(buy[-1], sell[-1], 0)
'\nThree rules:\n1. Need to buy before sell.\n2. After sell, next day need to rest (cannot buy).\n3. When buying, we spend money, which is a negative profit.\n\nThere are two possible end state. buy or sell. So we need to consider both.\nOnly considering prices 0~i, buy[i] stores the max profit that the last action is "buy".\nOnly considering prices 0~i, sell[i] stores the max profit that the last action is "sell".\n\nLet\'s sort this out.\nWhen i==0:\nbuy: -prices[0]\nsell: 0, since we cannot sell at i==0.\n\nWhen i==1:\nbuy: max(-prices[1], -prices[0])\nNow, we must not have sell yet. So no need to consider it.\nIf we buy at i==1, the profit will be `-prices[1]`. But we also had the option not to buy. buy[0] is the max profit if we don\'t buy at i==1.\nAgain, we are considering, when the end state is "buy", what is the max profit?\nThus, `max(-prices[1], buy[0])`.\n\nsell: max(prices[1]+buy[0], 0)\nIf we sell at i==1, the profit will be `prices[1]+buy[0]`. But we also had the option not to sell. 0 is the max profit if we don\'t sell at i==1.\nAgain, we are considering, when the end state is "sell", what is the max profit?\nThus, `max(prices[1]+buy[0], sell[0])`\n\nWhen i>=2:\n\n\n\n\n' |
namespace = "reflex_takktile2"
takktile2_config = {}
all_joint_names = ["%s_f1"%namespace,
"%s_f2"%namespace,
"%s_f3"%namespace,
"%s_preshape"%namespace]
joint_limits = [{'lower': 0.0, 'upper': 3.14},
{'lower': 0.0, 'upper': 3.14},
{'lower': 0.0, 'upper': 3.14},
{'lower': 0.0, 'upper': 3.14/2}]
takktile2_config['all_joint_names'] = all_joint_names
takktile2_config['joint_limits'] = joint_limits | namespace = 'reflex_takktile2'
takktile2_config = {}
all_joint_names = ['%s_f1' % namespace, '%s_f2' % namespace, '%s_f3' % namespace, '%s_preshape' % namespace]
joint_limits = [{'lower': 0.0, 'upper': 3.14}, {'lower': 0.0, 'upper': 3.14}, {'lower': 0.0, 'upper': 3.14}, {'lower': 0.0, 'upper': 3.14 / 2}]
takktile2_config['all_joint_names'] = all_joint_names
takktile2_config['joint_limits'] = joint_limits |
r"""
tk.PanedWindow based
"""
class Handler:
pass
| """
tk.PanedWindow based
"""
class Handler:
pass |
class Paths(object):
qradio_path = ''
python_path = ''
def __init__(self):
qradio_path = 'path_to_cli_qradio.py'
python_path = ''
| class Paths(object):
qradio_path = ''
python_path = ''
def __init__(self):
qradio_path = 'path_to_cli_qradio.py'
python_path = '' |
# Copyright (c) 2010 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
'variables': {
'chromium_code': 1, # Use higher warning level.
},
'target_defaults': {
'conditions': [
# Linux shared libraries should always be built -fPIC.
#
# TODO(ajwong): For internal pepper plugins, which are statically linked
# into chrome, do we want to build w/o -fPIC? If so, how can we express
# that in the build system?
['OS=="linux" or OS=="openbsd" or OS=="freebsd" or OS=="solaris"', {
'cflags': ['-fPIC', '-fvisibility=hidden'],
# This is needed to make the Linux shlib build happy. Without this,
# -fvisibility=hidden gets stripped by the exclusion in common.gypi
# that is triggered when a shared library build is specified.
'cflags/': [['include', '^-fvisibility=hidden$']],
}],
],
},
'includes': [
'ppapi_cpp.gypi',
'ppapi_gl.gypi',
'ppapi_shared_proxy.gypi',
'ppapi_tests.gypi',
],
}
| {'variables': {'chromium_code': 1}, 'target_defaults': {'conditions': [['OS=="linux" or OS=="openbsd" or OS=="freebsd" or OS=="solaris"', {'cflags': ['-fPIC', '-fvisibility=hidden'], 'cflags/': [['include', '^-fvisibility=hidden$']]}]]}, 'includes': ['ppapi_cpp.gypi', 'ppapi_gl.gypi', 'ppapi_shared_proxy.gypi', 'ppapi_tests.gypi']} |
'''
basic datatypes
---------------
bool -> boolean
int -> integer
float -> decimals/float
str -> string
dict -> dictionaries (aka. hash map in some languages)
list -> lists (aka. arrays in some langauges)
tuples -> basically lists, but immutable
None -> special object, singleton that means, well, nothing.
'''
# there's no variable declaration/initialization - just name as you go
# variable names may contain A-Z, a-z, 0-9, _, but cannot start with a number.
foo = 'bar' # set variable named foo to contain string 'bar'
total = 1 * 2 * 3 # set variable named total to result of 1 x 2 x 3 (6)
# Booleans
# --------
# there's true... and there's false
truth = True
falsehood = False
# Integers/Floats
# ---------------
# integers are just numbers
integer_1 = 1
the_ultimate_answer_to_question_of_life_universe_and_everything = 42
# declare a float by just using . naturally in math
pi = 3.1415926535897932384626433832795028841971693
# Strings
# -------
# a string is typically surrounded by '', ""
foo1 = "bar"
foo2 = 'bar' # no difference
# a '' quoted string cannot contain '
# a "" quoted string cannot contain "
# (unless you escape it)
foo3 = "\"bar\""
foo4 = '\rbar\''
# so it's better to mix them
foo5 = '"bar"'
foo6 = "'bar'"
# a string must finish on the same line, unless you use \ at the end
foo7 = "a multiple\
line string"
# alternatively, use ''' and """ to denote multi-line strings without having
# any of the above difficulties
foo8 = '''python is a simple
yet complicated programming
language for "adults"'''
# use index to access string position
print(foo1[0])
# and slicing to indicate a sub-string
print(foo7[2:10])
# there are many useful, built-in string methods
'python'.title() # Python
'uppercase'.upper() # UPPERCASE
'LOWERCASE'.lower() # lowercase
'a b c'.split() # ['a', 'b', 'c']
' a good day '.strip() # 'a good day'
# concatenate strings by adding them
ironman = "Tony" + " " + "Stark"
# Dictionary
# ----------
# a dictionary comprises of key-value pairs
# dictionaries are unordered (order of insertion is lost)
character = {}
character['firstname'] = "tony"
character['lastname'] = "stark"
character['nickname'] = "ironman"
# alternatively, create it in one shot
character = {'firstname': 'tony', 'lastname': 'stark', 'nickname': 'ironman'}
# some basic methods of a dictionary
print(character['firstname'], character['lastname'])
charater.pop('firstname')
charater.setdefault('home_automation', 'J.A.R.V.I.S')
character.update(firstname = "Tony", lastname = "Stark")
all_keys = character.keys()
all_values = character.values()
key_value_pairs = character.items()
# Lists & Tuples
# --------------
# lists are extremly versatile, and can contain anything (including other lists)
# lists are ordered.
movies = ['A New Hope', 'The Empire Strikes Back', 'Return of the Jedi']
combo = ["Arthur Dent", 42, list1]
# lists are indexed by integer position starting from 0
# negative numbers starts from the end of the list (starting from -1)
print(movies[0], movies[1], movies[2])
print(movies[-1], movies[-2], movies[-3])
# typical list operations
movies.append("The Phantom Menace")
movies.extend(["Attack of the Clones", "Revenge of the Sith"])
movies[0] = "Episode IV - A New Hope"
combo.pop(-1) # -1 means last item
# slicing worsk too
movies[3:] # everything from 3 onwards
# tuples are the exact same as lists, but you cannot modify it.
movies = ('A New Hope', 'The Empire Strikes Back', 'Return of the Jedi')
# None
# ----
# None is special
nothing = None
# Typecasting
# -----------
# many things can be casted around
number = "42" # starting with a string
number = int(number) # cast to integer
number = str(number) # casted back to string
languages = ['Python', 'C#', 'Ruby'] # start with a list
languages = tuple(languages) # cast to tuple | """
basic datatypes
---------------
bool -> boolean
int -> integer
float -> decimals/float
str -> string
dict -> dictionaries (aka. hash map in some languages)
list -> lists (aka. arrays in some langauges)
tuples -> basically lists, but immutable
None -> special object, singleton that means, well, nothing.
"""
foo = 'bar'
total = 1 * 2 * 3
truth = True
falsehood = False
integer_1 = 1
the_ultimate_answer_to_question_of_life_universe_and_everything = 42
pi = 3.141592653589793
foo1 = 'bar'
foo2 = 'bar'
foo3 = '"bar"'
foo4 = "\rbar'"
foo5 = '"bar"'
foo6 = "'bar'"
foo7 = 'a multipleline string'
foo8 = 'python is a simple\nyet complicated programming\nlanguage for "adults"'
print(foo1[0])
print(foo7[2:10])
'python'.title()
'uppercase'.upper()
'LOWERCASE'.lower()
'a b c'.split()
' a good day '.strip()
ironman = 'Tony' + ' ' + 'Stark'
character = {}
character['firstname'] = 'tony'
character['lastname'] = 'stark'
character['nickname'] = 'ironman'
character = {'firstname': 'tony', 'lastname': 'stark', 'nickname': 'ironman'}
print(character['firstname'], character['lastname'])
charater.pop('firstname')
charater.setdefault('home_automation', 'J.A.R.V.I.S')
character.update(firstname='Tony', lastname='Stark')
all_keys = character.keys()
all_values = character.values()
key_value_pairs = character.items()
movies = ['A New Hope', 'The Empire Strikes Back', 'Return of the Jedi']
combo = ['Arthur Dent', 42, list1]
print(movies[0], movies[1], movies[2])
print(movies[-1], movies[-2], movies[-3])
movies.append('The Phantom Menace')
movies.extend(['Attack of the Clones', 'Revenge of the Sith'])
movies[0] = 'Episode IV - A New Hope'
combo.pop(-1)
movies[3:]
movies = ('A New Hope', 'The Empire Strikes Back', 'Return of the Jedi')
nothing = None
number = '42'
number = int(number)
number = str(number)
languages = ['Python', 'C#', 'Ruby']
languages = tuple(languages) |
class Bike:
name = ''
color= ' '
price = 0
def info(self, name, color, price):
self.name, self.color, self.price = name,color,price
print("{}: {} and {}".format(self.name,self.color,self.price))
| class Bike:
name = ''
color = ' '
price = 0
def info(self, name, color, price):
(self.name, self.color, self.price) = (name, color, price)
print('{}: {} and {}'.format(self.name, self.color, self.price)) |
#
# PySNMP MIB module DISMAN-EXPRESSION-MIB (http://pysnmp.sf.net)
# ASN.1 source http://mibs.snmplabs.com:80/asn1/DISMAN-EXPRESSION-MIB
# Produced by pysmi-0.0.7 at Sun Feb 14 00:07:59 2016
# On host bldfarm platform Linux version 4.1.13-100.fc21.x86_64 by user goose
# Using Python version 3.5.0 (default, Jan 5 2016, 17:11:52)
#
( ObjectIdentifier, Integer, OctetString, ) = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "Integer", "OctetString")
( NamedValues, ) = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
( ConstraintsUnion, ValueSizeConstraint, ConstraintsIntersection, SingleValueConstraint, ValueRangeConstraint, ) = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "ValueSizeConstraint", "ConstraintsIntersection", "SingleValueConstraint", "ValueRangeConstraint")
( SnmpAdminString, ) = mibBuilder.importSymbols("SNMP-FRAMEWORK-MIB", "SnmpAdminString")
( ModuleCompliance, NotificationGroup, ObjectGroup, ) = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "NotificationGroup", "ObjectGroup")
( sysUpTime, ) = mibBuilder.importSymbols("SNMPv2-MIB", "sysUpTime")
( Gauge32, Bits, Unsigned32, Counter64, ObjectIdentity, zeroDotZero, TimeTicks, ModuleIdentity, Integer32, IpAddress, Counter32, mib_2, iso, NotificationType, MibIdentifier, MibScalar, MibTable, MibTableRow, MibTableColumn, ) = mibBuilder.importSymbols("SNMPv2-SMI", "Gauge32", "Bits", "Unsigned32", "Counter64", "ObjectIdentity", "zeroDotZero", "TimeTicks", "ModuleIdentity", "Integer32", "IpAddress", "Counter32", "mib-2", "iso", "NotificationType", "MibIdentifier", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn")
( DisplayString, TruthValue, TimeStamp, TextualConvention, RowStatus, ) = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TruthValue", "TimeStamp", "TextualConvention", "RowStatus")
dismanExpressionMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 90)).setRevisions(("2000-10-16 00:00",))
if mibBuilder.loadTexts: dismanExpressionMIB.setLastUpdated('200010160000Z')
if mibBuilder.loadTexts: dismanExpressionMIB.setOrganization('IETF Distributed Management Working Group')
if mibBuilder.loadTexts: dismanExpressionMIB.setContactInfo('Ramanathan Kavasseri\n Cisco Systems, Inc.\n 170 West Tasman Drive,\n San Jose CA 95134-1706.\n Phone: +1 408 527 2446\n Email: ramk@cisco.com')
if mibBuilder.loadTexts: dismanExpressionMIB.setDescription('The MIB module for defining expressions of MIB objects for\n management purposes.')
dismanExpressionMIBObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 1))
expResource = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 1, 1))
expDefine = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 1, 2))
expValue = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 1, 3))
expResourceDeltaMinimum = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(-1,-1),ValueRangeConstraint(1,600),))).setUnits('seconds').setMaxAccess("readwrite")
if mibBuilder.loadTexts: expResourceDeltaMinimum.setDescription("The minimum expExpressionDeltaInterval this system will\n accept. A system may use the larger values of this minimum to\n lessen the impact of constantly computing deltas. For larger\n delta sampling intervals the system samples less often and\n suffers less overhead. This object provides a way to enforce\n such lower overhead for all expressions created after it is\n set.\n\n The value -1 indicates that expResourceDeltaMinimum is\n irrelevant as the system will not accept 'deltaValue' as a\n value for expObjectSampleType.\n\n Unless explicitly resource limited, a system's value for\n this object should be 1, allowing as small as a 1 second\n interval for ongoing delta sampling.\n\n Changing this value will not invalidate an existing setting\n of expObjectSampleType.")
expResourceDeltaWildcardInstanceMaximum = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 2), Unsigned32()).setUnits('instances').setMaxAccess("readwrite")
if mibBuilder.loadTexts: expResourceDeltaWildcardInstanceMaximum.setDescription("For every instance of a deltaValue object, one dynamic instance\n entry is needed for holding the instance value from the previous\n sample, i.e. to maintain state.\n\n This object limits maximum number of dynamic instance entries\n this system will support for wildcarded delta objects in\n expressions. For a given delta expression, the number of\n dynamic instances is the number of values that meet all criteria\n to exist times the number of delta values in the expression.\n\n A value of 0 indicates no preset limit, that is, the limit\n is dynamic based on system operation and resources.\n\n Unless explicitly resource limited, a system's value for\n this object should be 0.\n\n\n Changing this value will not eliminate or inhibit existing delta\n wildcard instance objects but will prevent the creation of more\n such objects.\n\n An attempt to allocate beyond the limit results in expErrorCode\n being tooManyWildcardValues for that evaluation attempt.")
expResourceDeltaWildcardInstances = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 3), Gauge32()).setUnits('instances').setMaxAccess("readonly")
if mibBuilder.loadTexts: expResourceDeltaWildcardInstances.setDescription('The number of currently active instance entries as\n defined for expResourceDeltaWildcardInstanceMaximum.')
expResourceDeltaWildcardInstancesHigh = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 4), Gauge32()).setUnits('instances').setMaxAccess("readonly")
if mibBuilder.loadTexts: expResourceDeltaWildcardInstancesHigh.setDescription('The highest value of expResourceDeltaWildcardInstances\n that has occurred since initialization of the managed\n system.')
expResourceDeltaWildcardInstanceResourceLacks = MibScalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 5), Counter32()).setUnits('instances').setMaxAccess("readonly")
if mibBuilder.loadTexts: expResourceDeltaWildcardInstanceResourceLacks.setDescription('The number of times this system could not evaluate an\n expression because that would have created a value instance in\n excess of expResourceDeltaWildcardInstanceMaximum.')
expExpressionTable = MibTable((1, 3, 6, 1, 2, 1, 90, 1, 2, 1), )
if mibBuilder.loadTexts: expExpressionTable.setDescription('A table of expression definitions.')
expExpressionEntry = MibTableRow((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1), ).setIndexNames((0, "DISMAN-EXPRESSION-MIB", "expExpressionOwner"), (0, "DISMAN-EXPRESSION-MIB", "expExpressionName"))
if mibBuilder.loadTexts: expExpressionEntry.setDescription("Information about a single expression. New expressions\n can be created using expExpressionRowStatus.\n\n To create an expression first create the named entry in this\n table. Then use expExpressionName to populate expObjectTable.\n For expression evaluation to succeed all related entries in\n expExpressionTable and expObjectTable must be 'active'. If\n these conditions are not met the corresponding values in\n expValue simply are not instantiated.\n\n Deleting an entry deletes all related entries in expObjectTable\n and expErrorTable.\n\n Because of the relationships among the multiple tables for an\n expression (expExpressionTable, expObjectTable, and\n expValueTable) and the SNMP rules for independence in setting\n object values, it is necessary to do final error checking when\n an expression is evaluated, that is, when one of its instances\n in expValueTable is read or a delta interval expires. Earlier\n checking need not be done and an implementation may not impose\n any ordering on the creation of objects related to an\n expression.\n\n To maintain security of MIB information, when creating a new row in\n this table, the managed system must record the security credentials\n of the requester. These security credentials are the parameters\n necessary as inputs to isAccessAllowed from the Architecture for\n\n Describing SNMP Management Frameworks. When obtaining the objects\n that make up the expression, the system must (conceptually) use\n isAccessAllowed to ensure that it does not violate security.\n\n The evaluation of the expression takes place under the\n security credentials of the creator of its expExpressionEntry.\n\n Values of read-write objects in this table may be changed\n\n at any time.")
expExpressionOwner = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 1), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(0,32)))
if mibBuilder.loadTexts: expExpressionOwner.setDescription('The owner of this entry. The exact semantics of this\n string are subject to the security policy defined by the\n security administrator.')
expExpressionName = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 2), SnmpAdminString().subtype(subtypeSpec=ValueSizeConstraint(1,32)))
if mibBuilder.loadTexts: expExpressionName.setDescription('The name of the expression. This is locally unique, within\n the scope of an expExpressionOwner.')
expExpression = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 3), OctetString().subtype(subtypeSpec=ValueSizeConstraint(1,1024))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: expExpression.setDescription("The expression to be evaluated. This object is the same\n as a DisplayString (RFC 1903) except for its maximum length.\n\n Except for the variable names the expression is in ANSI C\n syntax. Only the subset of ANSI C operators and functions\n listed here is allowed.\n\n Variables are expressed as a dollar sign ('$') and an\n\n integer that corresponds to an expObjectIndex. An\n example of a valid expression is:\n\n ($1-$5)*100\n\n Expressions must not be recursive, that is although an expression\n may use the results of another expression, it must not contain\n any variable that is directly or indirectly a result of its own\n evaluation. The managed system must check for recursive\n expressions.\n\n The only allowed operators are:\n\n ( )\n - (unary)\n + - * / %\n & | ^ << >> ~\n ! && || == != > >= < <=\n\n Note the parentheses are included for parenthesizing the\n expression, not for casting data types.\n\n The only constant types defined are:\n\n int (32-bit signed)\n long (64-bit signed)\n unsigned int\n unsigned long\n hexadecimal\n character\n string\n oid\n\n The default type for a positive integer is int unless it is too\n large in which case it is long.\n\n All but oid are as defined for ANSI C. Note that a\n hexadecimal constant may end up as a scalar or an array of\n 8-bit integers. A string constant is enclosed in double\n quotes and may contain back-slashed individual characters\n as in ANSI C.\n\n An oid constant comprises 32-bit, unsigned integers and at\n least one period, for example:\n\n 0.\n .0\n 1.3.6.1\n\n No additional leading or trailing subidentifiers are automatically\n added to an OID constant. The constant is taken as expressed.\n\n Integer-typed objects are treated as 32- or 64-bit, signed\n or unsigned integers, as appropriate. The results of\n mixing them are as for ANSI C, including the type of the\n result. Note that a 32-bit value is thus promoted to 64 bits\n only in an operation with a 64-bit value. There is no\n provision for larger values to handle overflow.\n\n Relative to SNMP data types, a resulting value becomes\n unsigned when calculating it uses any unsigned value,\n including a counter. To force the final value to be of\n data type counter the expression must explicitly use the\n counter32() or counter64() function (defined below).\n\n OCTET STRINGS and OBJECT IDENTIFIERs are treated as\n one-dimensioned arrays of unsigned 8-bit integers and\n unsigned 32-bit integers, respectively.\n\n IpAddresses are treated as 32-bit, unsigned integers in\n network byte order, that is, the hex version of 255.0.0.0 is\n 0xff000000.\n\n Conditional expressions result in a 32-bit, unsigned integer\n of value 0 for false or 1 for true. When an arbitrary value\n is used as a boolean 0 is false and non-zero is true.\n\n Rules for the resulting data type from an operation, based on\n the operator:\n\n For << and >> the result is the same as the left hand operand.\n\n For &&, ||, ==, !=, <, <=, >, and >= the result is always\n Unsigned32.\n\n For unary - the result is always Integer32.\n\n For +, -, *, /, %, &, |, and ^ the result is promoted according\n to the following rules, in order from most to least preferred:\n\n If left hand and right hand operands are the same type,\n use that.\n\n If either side is Counter64, use that.\n\n If either side is IpAddress, use that.\n\n\n If either side is TimeTicks, use that.\n\n If either side is Counter32, use that.\n\n Otherwise use Unsigned32.\n\n The following rules say what operators apply with what data\n types. Any combination not explicitly defined does not work.\n\n For all operators any of the following can be the left hand or\n right hand operand: Integer32, Counter32, Unsigned32, Counter64.\n\n The operators +, -, *, /, %, <, <=, >, and >= work with\n TimeTicks.\n\n The operators &, |, and ^ work with IpAddress.\n\n The operators << and >> work with IpAddress but only as the\n left hand operand.\n\n The + operator performs a concatenation of two OCTET STRINGs or\n two OBJECT IDENTIFIERs.\n\n The operators &, | perform bitwise operations on OCTET STRINGs.\n If the OCTET STRING happens to be a DisplayString the results\n may be meaningless, but the agent system does not check this as\n some such systems do not have this information.\n\n The operators << and >> perform bitwise operations on OCTET\n STRINGs appearing as the left hand operand.\n\n The only functions defined are:\n\n counter32\n counter64\n arraySection\n stringBegins\n stringEnds\n stringContains\n oidBegins\n oidEnds\n oidContains\n average\n maximum\n minimum\n sum\n exists\n\n\n The following function definitions indicate their parameters by\n naming the data type of the parameter in the parameter's position\n in the parameter list. The parameter must be of the type indicated\n and generally may be a constant, a MIB object, a function, or an\n expression.\n\n counter32(integer) - wrapped around an integer value counter32\n forces Counter32 as a data type.\n\n counter64(integer) - similar to counter32 except that the\n resulting data type is 'counter64'.\n\n arraySection(array, integer, integer) - selects a piece of an\n array (i.e. part of an OCTET STRING or OBJECT IDENTIFIER). The\n integer arguments are in the range 0 to 4,294,967,295. The\n first is an initial array index (one-dimensioned) and the second\n is an ending array index. A value of 0 indicates first or last\n element, respectively. If the first element is larger than the\n array length the result is 0 length. If the second integer is\n less than or equal to the first, the result is 0 length. If the\n second is larger than the array length it indicates last\n element.\n\n stringBegins/Ends/Contains(octetString, octetString) - looks for\n the second string (which can be a string constant) in the first\n and returns the one-dimensioned arrayindex where the match began.\n A return value of 0 indicates no match (i.e. boolean false).\n\n oidBegins/Ends/Contains(oid, oid) - looks for the second OID\n (which can be an OID constant) in the first and returns the\n the one-dimensioned index where the match began. A return value\n of 0 indicates no match (i.e. boolean false).\n\n average/maximum/minimum(integer) - calculates the average,\n minimum, or maximum value of the integer valued object over\n multiple sample times. If the object disappears for any\n sample period, the accumulation and the resulting value object\n cease to exist until the object reappears at which point the\n calculation starts over.\n\n sum(integerObject*) - sums all available values of the\n wildcarded integer object, resulting in an integer scalar. Must\n be used with caution as it wraps on overflow with no\n notification.\n\n exists(anyTypeObject) - verifies the object instance exists. A\n return value of 0 indicates NoSuchInstance (i.e. boolean\n false).")
expExpressionValueType = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8,))).clone(namedValues=NamedValues(("counter32", 1), ("unsigned32", 2), ("timeTicks", 3), ("integer32", 4), ("ipAddress", 5), ("octetString", 6), ("objectId", 7), ("counter64", 8),)).clone('counter32')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: expExpressionValueType.setDescription('The type of the expression value. One and only one of the\n value objects in expValueTable will be instantiated to match\n this type.\n\n If the result of the expression can not be made into this type,\n an invalidOperandType error will occur.')
expExpressionComment = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 5), SnmpAdminString().clone(hexValue="")).setMaxAccess("readcreate")
if mibBuilder.loadTexts: expExpressionComment.setDescription('A comment to explain the use or meaning of the expression.')
expExpressionDeltaInterval = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0,86400))).setUnits('seconds').setMaxAccess("readcreate")
if mibBuilder.loadTexts: expExpressionDeltaInterval.setDescription("Sampling interval for objects in this expression with\n expObjectSampleType 'deltaValue'.\n\n This object has no effect if the the expression has no\n deltaValue objects.\n\n A value of 0 indicates no automated sampling. In this case\n the delta is the difference from the last time the expression\n was evaluated. Note that this is subject to unpredictable\n delta times in the face of retries or multiple managers.\n\n A value greater than zero is the number of seconds between\n automated samples.\n\n Until the delta interval has expired once the delta for the\n\n object is effectively not instantiated and evaluating\n the expression has results as if the object itself were not\n instantiated.\n\n Note that delta values potentially consume large amounts of\n system CPU and memory. Delta state and processing must\n continue constantly even if the expression is not being used.\n That is, the expression is being evaluated every delta interval,\n even if no application is reading those values. For wildcarded\n objects this can be substantial overhead.\n\n Note that delta intervals, external expression value sampling\n intervals and delta intervals for expressions within other\n expressions can have unusual interactions as they are impossible\n to synchronize accurately. In general one interval embedded\n below another must be enough shorter that the higher sample\n sees relatively smooth, predictable behavior. So, for example,\n to avoid the higher level getting the same sample twice, the\n lower level should sample at least twice as fast as the higher\n level does.")
expExpressionPrefix = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 7), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: expExpressionPrefix.setDescription('An object prefix to assist an application in determining\n the instance indexing to use in expValueTable, relieving the\n application of the need to scan the expObjectTable to\n determine such a prefix.\n\n See expObjectTable for information on wildcarded objects.\n\n If the expValueInstance portion of the value OID may\n be treated as a scalar (that is, normally, 0) the value of\n expExpressionPrefix is zero length, that is, no OID at all.\n Note that zero length implies a null OID, not the OID 0.0.\n\n Otherwise, the value of expExpressionPrefix is the expObjectID\n value of any one of the wildcarded objects for the expression.\n This is sufficient, as the remainder, that is, the instance\n fragment relevant to instancing the values, must be the same for\n all wildcarded objects in the expression.')
expExpressionErrors = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: expExpressionErrors.setDescription('The number of errors encountered while evaluating this\n expression.\n\n Note that an object in the expression not being accessible,\n is not considered an error. An example of an inaccessible\n object is when the object is excluded from the view of the\n user whose security credentials are used in the expression\n evaluation. In such cases, it is a legitimate condition\n that causes the corresponding expression value not to be\n instantiated.')
expExpressionEntryStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 9), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: expExpressionEntryStatus.setDescription('The control that allows creation and deletion of entries.')
expErrorTable = MibTable((1, 3, 6, 1, 2, 1, 90, 1, 2, 2), )
if mibBuilder.loadTexts: expErrorTable.setDescription('A table of expression errors.')
expErrorEntry = MibTableRow((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1), ).setIndexNames((0, "DISMAN-EXPRESSION-MIB", "expExpressionOwner"), (0, "DISMAN-EXPRESSION-MIB", "expExpressionName"))
if mibBuilder.loadTexts: expErrorEntry.setDescription('Information about errors in processing an expression.\n\n Entries appear in this table only when there is a matching\n expExpressionEntry and then only when there has been an\n error for that expression as reflected by the error codes\n defined for expErrorCode.')
expErrorTime = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 1), TimeStamp()).setMaxAccess("readonly")
if mibBuilder.loadTexts: expErrorTime.setDescription('The value of sysUpTime the last time an error caused a\n failure to evaluate this expression.')
expErrorIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: expErrorIndex.setDescription('The one-dimensioned character array index into\n expExpression for where the error occurred. The value\n zero indicates irrelevance.')
expErrorCode = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11,))).clone(namedValues=NamedValues(("invalidSyntax", 1), ("undefinedObjectIndex", 2), ("unrecognizedOperator", 3), ("unrecognizedFunction", 4), ("invalidOperandType", 5), ("unmatchedParenthesis", 6), ("tooManyWildcardValues", 7), ("recursion", 8), ("deltaTooShort", 9), ("resourceUnavailable", 10), ("divideByZero", 11),))).setMaxAccess("readonly")
if mibBuilder.loadTexts: expErrorCode.setDescription("The error that occurred. In the following explanations the\n expected timing of the error is in parentheses. 'S' means\n the error occurs on a Set request. 'E' means the error\n\n occurs on the attempt to evaluate the expression either due to\n Get from expValueTable or in ongoing delta processing.\n\n invalidSyntax the value sent for expExpression is not\n valid Expression MIB expression syntax\n (S)\n undefinedObjectIndex an object reference ($n) in\n expExpression does not have a matching\n instance in expObjectTable (E)\n unrecognizedOperator the value sent for expExpression held an\n unrecognized operator (S)\n unrecognizedFunction the value sent for expExpression held an\n unrecognized function name (S)\n invalidOperandType an operand in expExpression is not the\n right type for the associated operator\n or result (SE)\n unmatchedParenthesis the value sent for expExpression is not\n correctly parenthesized (S)\n tooManyWildcardValues evaluating the expression exceeded the\n limit set by\n expResourceDeltaWildcardInstanceMaximum\n (E)\n recursion through some chain of embedded\n expressions the expression invokes itself\n (E)\n deltaTooShort the delta for the next evaluation passed\n before the system could evaluate the\n present sample (E)\n resourceUnavailable some resource, typically dynamic memory,\n was unavailable (SE)\n divideByZero an attempt to divide by zero occurred\n (E)\n\n For the errors that occur when the attempt is made to set\n expExpression Set request fails with the SNMP error code\n 'wrongValue'. Such failures refer to the most recent failure to\n Set expExpression, not to the present value of expExpression\n which must be either unset or syntactically correct.\n\n Errors that occur during evaluation for a Get* operation return\n the SNMP error code 'genErr' except for 'tooManyWildcardValues'\n and 'resourceUnavailable' which return the SNMP error code\n 'resourceUnavailable'.")
expErrorInstance = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 4), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: expErrorInstance.setDescription('The expValueInstance being evaluated when the error\n occurred. A zero-length indicates irrelevance.')
expObjectTable = MibTable((1, 3, 6, 1, 2, 1, 90, 1, 2, 3), )
if mibBuilder.loadTexts: expObjectTable.setDescription('A table of object definitions for each expExpression.\n\n Wildcarding instance IDs:\n\n It is legal to omit all or part of the instance portion for\n some or all of the objects in an expression. (See the\n DESCRIPTION of expObjectID for details. However, note that\n if more than one object in the same expression is wildcarded\n in this way, they all must be objects where that portion of\n the instance is the same. In other words, all objects may be\n in the same SEQUENCE or in different SEQUENCEs but with the\n same semantic index value (e.g., a value of ifIndex)\n for the wildcarded portion.')
expObjectEntry = MibTableRow((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1), ).setIndexNames((0, "DISMAN-EXPRESSION-MIB", "expExpressionOwner"), (0, "DISMAN-EXPRESSION-MIB", "expExpressionName"), (0, "DISMAN-EXPRESSION-MIB", "expObjectIndex"))
if mibBuilder.loadTexts: expObjectEntry.setDescription('Information about an object. An application uses\n expObjectEntryStatus to create entries in this table while\n in the process of defining an expression.\n\n Values of read-create objects in this table may be\n changed at any time.')
expObjectIndex = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 1), Unsigned32().subtype(subtypeSpec=ValueRangeConstraint(1,4294967295)))
if mibBuilder.loadTexts: expObjectIndex.setDescription("Within an expression, a unique, numeric identification for an\n object. Prefixed with a dollar sign ('$') this is used to\n reference the object in the corresponding expExpression.")
expObjectID = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 2), ObjectIdentifier()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: expObjectID.setDescription('The OBJECT IDENTIFIER (OID) of this object. The OID may be\n fully qualified, meaning it includes a complete instance\n identifier part (e.g., ifInOctets.1 or sysUpTime.0), or it\n may not be fully qualified, meaning it may lack all or part\n of the instance identifier. If the expObjectID is not fully\n qualified, then expObjectWildcard must be set to true(1).\n The value of the expression will be multiple\n values, as if done for a GetNext sweep of the object.\n\n An object here may itself be the result of an expression but\n recursion is not allowed.\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.')
expObjectIDWildcard = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 3), TruthValue().clone('false')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: expObjectIDWildcard.setDescription('A true value indicates the expObjecID of this row is a wildcard\n object. False indicates that expObjectID is fully instanced.\n If all expObjectWildcard values for a given expression are FALSE,\n\n expExpressionPrefix will reflect a scalar object (i.e. will\n be 0.0).\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.')
expObjectSampleType = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3,))).clone(namedValues=NamedValues(("absoluteValue", 1), ("deltaValue", 2), ("changedValue", 3),)).clone('absoluteValue')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: expObjectSampleType.setDescription("The method of sampling the selected variable.\n\n An 'absoluteValue' is simply the present value of the object.\n\n A 'deltaValue' is the present value minus the previous value,\n which was sampled expExpressionDeltaInterval seconds ago.\n This is intended primarily for use with SNMP counters, which are\n meaningless as an 'absoluteValue', but may be used with any\n integer-based value.\n\n A 'changedValue' is a boolean for whether the present value is\n different from the previous value. It is applicable to any data\n type and results in an Unsigned32 with value 1 if the object's\n value is changed and 0 if not. In all other respects it is as a\n 'deltaValue' and all statements and operation regarding delta\n values apply to changed values.\n\n When an expression contains both delta and absolute values\n the absolute values are obtained at the end of the delta\n period.")
sysUpTimeInstance = MibIdentifier((1, 3, 6, 1, 2, 1, 1, 3, 0))
expObjectDeltaDiscontinuityID = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 5), ObjectIdentifier().clone((1, 3, 6, 1, 2, 1, 1, 3, 0))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: expObjectDeltaDiscontinuityID.setDescription("The OBJECT IDENTIFIER (OID) of a TimeTicks, TimeStamp, or\n DateAndTime object that indicates a discontinuity in the value\n at expObjectID.\n\n\n This object is instantiated only if expObjectSampleType is\n 'deltaValue' or 'changedValue'.\n\n The OID may be for a leaf object (e.g. sysUpTime.0) or may\n be wildcarded to match expObjectID.\n\n This object supports normal checking for a discontinuity in a\n counter. Note that if this object does not point to sysUpTime\n discontinuity checking must still check sysUpTime for an overall\n discontinuity.\n\n If the object identified is not accessible no discontinuity\n check will be made.")
expObjectDiscontinuityIDWildcard = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 6), TruthValue().clone('false')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: expObjectDiscontinuityIDWildcard.setDescription("A true value indicates the expObjectDeltaDiscontinuityID of\n this row is a wildcard object. False indicates that\n expObjectDeltaDiscontinuityID is fully instanced.\n\n This object is instantiated only if expObjectSampleType is\n 'deltaValue' or 'changedValue'.\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.")
expObjectDiscontinuityIDType = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3,))).clone(namedValues=NamedValues(("timeTicks", 1), ("timeStamp", 2), ("dateAndTime", 3),)).clone('timeTicks')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: expObjectDiscontinuityIDType.setDescription("The value 'timeTicks' indicates the expObjectDeltaDiscontinuityID\n of this row is of syntax TimeTicks. The value 'timeStamp' indicates\n syntax TimeStamp. The value 'dateAndTime indicates syntax\n DateAndTime.\n\n This object is instantiated only if expObjectSampleType is\n 'deltaValue' or 'changedValue'.")
expObjectConditional = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 8), ObjectIdentifier().clone((0, 0))).setMaxAccess("readcreate")
if mibBuilder.loadTexts: expObjectConditional.setDescription('The OBJECT IDENTIFIER (OID) of an object that overrides\n whether the instance of expObjectID is to be considered\n usable. If the value of the object at expObjectConditional\n is 0 or not instantiated, the object at expObjectID is\n treated as if it is not instantiated. In other words,\n expObjectConditional is a filter that controls whether or\n not to use the value at expObjectID.\n\n The OID may be for a leaf object (e.g. sysObjectID.0) or may be\n wildcarded to match expObjectID. If expObject is wildcarded and\n expObjectID in the same row is not, the wild portion of\n expObjectConditional must match the wildcarding of the rest of\n the expression. If no object in the expression is wildcarded\n but expObjectConditional is, use the lexically first instance\n (if any) of expObjectConditional.\n\n If the value of expObjectConditional is 0.0 operation is\n as if the value pointed to by expObjectConditional is a\n non-zero (true) value.\n\n Note that expObjectConditional can not trivially use an object\n of syntax TruthValue, since the underlying value is not 0 or 1.')
expObjectConditionalWildcard = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 9), TruthValue().clone('false')).setMaxAccess("readcreate")
if mibBuilder.loadTexts: expObjectConditionalWildcard.setDescription('A true value indicates the expObjectConditional of this row is\n a wildcard object. False indicates that expObjectConditional is\n fully instanced.\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.')
expObjectEntryStatus = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 10), RowStatus()).setMaxAccess("readcreate")
if mibBuilder.loadTexts: expObjectEntryStatus.setDescription('The control that allows creation/deletion of entries.\n\n Objects in this table may be changed while\n expObjectEntryStatus is in any state.')
expValueTable = MibTable((1, 3, 6, 1, 2, 1, 90, 1, 3, 1), )
if mibBuilder.loadTexts: expValueTable.setDescription('A table of values from evaluated expressions.')
expValueEntry = MibTableRow((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1), ).setIndexNames((0, "DISMAN-EXPRESSION-MIB", "expExpressionOwner"), (0, "DISMAN-EXPRESSION-MIB", "expExpressionName"), (1, "DISMAN-EXPRESSION-MIB", "expValueInstance"))
if mibBuilder.loadTexts: expValueEntry.setDescription("A single value from an evaluated expression. For a given\n instance, only one 'Val' object in the conceptual row will be\n instantiated, that is, the one with the appropriate type for\n the value. For values that contain no objects of\n expObjectSampleType 'deltaValue' or 'changedValue', reading a\n value from the table causes the evaluation of the expression\n for that value. For those that contain a 'deltaValue' or\n 'changedValue' the value read is as of the last sampling\n interval.\n\n If in the attempt to evaluate the expression one or more\n of the necessary objects is not available, the corresponding\n entry in this table is effectively not instantiated.\n\n To maintain security of MIB information, when creating a new\n row in this table, the managed system must record the security\n credentials of the requester. These security credentials are\n the parameters necessary as inputs to isAccessAllowed from\n [RFC2571]. When obtaining the objects that make up the\n expression, the system must (conceptually) use isAccessAllowed to\n ensure that it does not violate security.\n\n The evaluation of that expression takes place under the\n\n security credentials of the creator of its expExpressionEntry.\n\n To maintain security of MIB information, expression evaluation must\n take place using security credentials for the implied Gets of the\n objects in the expression as inputs (conceptually) to\n isAccessAllowed from the Architecture for Describing SNMP\n Management Frameworks. These are the security credentials of the\n creator of the corresponding expExpressionEntry.")
expValueInstance = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 1), ObjectIdentifier())
if mibBuilder.loadTexts: expValueInstance.setDescription("The final instance portion of a value's OID according to\n the wildcarding in instances of expObjectID for the\n expression. The prefix of this OID fragment is 0.0,\n leading to the following behavior.\n\n If there is no wildcarding, the value is 0.0.0. In other\n words, there is one value which standing alone would have\n been a scalar with a 0 at the end of its OID.\n\n If there is wildcarding, the value is 0.0 followed by\n a value that the wildcard can take, thus defining one value\n instance for each real, possible value of the wildcard.\n So, for example, if the wildcard worked out to be an ifIndex,\n there is an expValueInstance for each applicable ifIndex.")
expValueCounter32Val = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: expValueCounter32Val.setDescription("The value when expExpressionValueType is 'counter32'.")
expValueUnsigned32Val = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 3), Unsigned32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: expValueUnsigned32Val.setDescription("The value when expExpressionValueType is 'unsigned32'.")
expValueTimeTicksVal = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 4), TimeTicks()).setMaxAccess("readonly")
if mibBuilder.loadTexts: expValueTimeTicksVal.setDescription("The value when expExpressionValueType is 'timeTicks'.")
expValueInteger32Val = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: expValueInteger32Val.setDescription("The value when expExpressionValueType is 'integer32'.")
expValueIpAddressVal = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 6), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: expValueIpAddressVal.setDescription("The value when expExpressionValueType is 'ipAddress'.")
expValueOctetStringVal = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 7), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0,65536))).setMaxAccess("readonly")
if mibBuilder.loadTexts: expValueOctetStringVal.setDescription("The value when expExpressionValueType is 'octetString'.")
expValueOidVal = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 8), ObjectIdentifier()).setMaxAccess("readonly")
if mibBuilder.loadTexts: expValueOidVal.setDescription("The value when expExpressionValueType is 'objectId'.")
expValueCounter64Val = MibTableColumn((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 9), Counter64()).setMaxAccess("readonly")
if mibBuilder.loadTexts: expValueCounter64Val.setDescription("The value when expExpressionValueType is 'counter64'.")
dismanExpressionMIBConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 3))
dismanExpressionMIBCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 3, 1))
dismanExpressionMIBGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 90, 3, 2))
dismanExpressionMIBCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 90, 3, 1, 1)).setObjects(*(("DISMAN-EXPRESSION-MIB", "dismanExpressionResourceGroup"), ("DISMAN-EXPRESSION-MIB", "dismanExpressionDefinitionGroup"), ("DISMAN-EXPRESSION-MIB", "dismanExpressionValueGroup"),))
if mibBuilder.loadTexts: dismanExpressionMIBCompliance.setDescription('The compliance statement for entities which implement\n the Expression MIB.')
dismanExpressionResourceGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 90, 3, 2, 1)).setObjects(*(("DISMAN-EXPRESSION-MIB", "expResourceDeltaMinimum"), ("DISMAN-EXPRESSION-MIB", "expResourceDeltaWildcardInstanceMaximum"), ("DISMAN-EXPRESSION-MIB", "expResourceDeltaWildcardInstances"), ("DISMAN-EXPRESSION-MIB", "expResourceDeltaWildcardInstancesHigh"), ("DISMAN-EXPRESSION-MIB", "expResourceDeltaWildcardInstanceResourceLacks"),))
if mibBuilder.loadTexts: dismanExpressionResourceGroup.setDescription('Expression definition resource management.')
dismanExpressionDefinitionGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 90, 3, 2, 2)).setObjects(*(("DISMAN-EXPRESSION-MIB", "expExpression"), ("DISMAN-EXPRESSION-MIB", "expExpressionValueType"), ("DISMAN-EXPRESSION-MIB", "expExpressionComment"), ("DISMAN-EXPRESSION-MIB", "expExpressionDeltaInterval"), ("DISMAN-EXPRESSION-MIB", "expExpressionPrefix"), ("DISMAN-EXPRESSION-MIB", "expExpressionErrors"), ("DISMAN-EXPRESSION-MIB", "expExpressionEntryStatus"), ("DISMAN-EXPRESSION-MIB", "expErrorTime"), ("DISMAN-EXPRESSION-MIB", "expErrorIndex"), ("DISMAN-EXPRESSION-MIB", "expErrorCode"), ("DISMAN-EXPRESSION-MIB", "expErrorInstance"), ("DISMAN-EXPRESSION-MIB", "expObjectID"), ("DISMAN-EXPRESSION-MIB", "expObjectIDWildcard"), ("DISMAN-EXPRESSION-MIB", "expObjectSampleType"), ("DISMAN-EXPRESSION-MIB", "expObjectDeltaDiscontinuityID"), ("DISMAN-EXPRESSION-MIB", "expObjectDiscontinuityIDWildcard"), ("DISMAN-EXPRESSION-MIB", "expObjectDiscontinuityIDType"), ("DISMAN-EXPRESSION-MIB", "expObjectConditional"), ("DISMAN-EXPRESSION-MIB", "expObjectConditionalWildcard"), ("DISMAN-EXPRESSION-MIB", "expObjectEntryStatus"),))
if mibBuilder.loadTexts: dismanExpressionDefinitionGroup.setDescription('Expression definition.')
dismanExpressionValueGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 90, 3, 2, 3)).setObjects(*(("DISMAN-EXPRESSION-MIB", "expValueCounter32Val"), ("DISMAN-EXPRESSION-MIB", "expValueUnsigned32Val"), ("DISMAN-EXPRESSION-MIB", "expValueTimeTicksVal"), ("DISMAN-EXPRESSION-MIB", "expValueInteger32Val"), ("DISMAN-EXPRESSION-MIB", "expValueIpAddressVal"), ("DISMAN-EXPRESSION-MIB", "expValueOctetStringVal"), ("DISMAN-EXPRESSION-MIB", "expValueOidVal"), ("DISMAN-EXPRESSION-MIB", "expValueCounter64Val"),))
if mibBuilder.loadTexts: dismanExpressionValueGroup.setDescription('Expression value.')
mibBuilder.exportSymbols("DISMAN-EXPRESSION-MIB", dismanExpressionMIBCompliances=dismanExpressionMIBCompliances, expExpressionComment=expExpressionComment, expObjectDiscontinuityIDType=expObjectDiscontinuityIDType, expObjectDiscontinuityIDWildcard=expObjectDiscontinuityIDWildcard, expValueTable=expValueTable, expResource=expResource, expExpressionPrefix=expExpressionPrefix, expObjectTable=expObjectTable, expValueIpAddressVal=expValueIpAddressVal, expObjectDeltaDiscontinuityID=expObjectDeltaDiscontinuityID, expErrorInstance=expErrorInstance, expObjectEntry=expObjectEntry, dismanExpressionResourceGroup=dismanExpressionResourceGroup, expObjectConditional=expObjectConditional, expExpressionEntryStatus=expExpressionEntryStatus, expExpressionTable=expExpressionTable, expValueCounter32Val=expValueCounter32Val, expErrorTable=expErrorTable, PYSNMP_MODULE_ID=dismanExpressionMIB, expExpressionDeltaInterval=expExpressionDeltaInterval, expValueInstance=expValueInstance, expExpression=expExpression, expValueTimeTicksVal=expValueTimeTicksVal, expErrorTime=expErrorTime, expResourceDeltaWildcardInstanceResourceLacks=expResourceDeltaWildcardInstanceResourceLacks, expValueEntry=expValueEntry, dismanExpressionMIB=dismanExpressionMIB, dismanExpressionMIBGroups=dismanExpressionMIBGroups, expObjectIndex=expObjectIndex, expObjectConditionalWildcard=expObjectConditionalWildcard, dismanExpressionMIBObjects=dismanExpressionMIBObjects, expValueOidVal=expValueOidVal, dismanExpressionMIBConformance=dismanExpressionMIBConformance, expResourceDeltaMinimum=expResourceDeltaMinimum, sysUpTimeInstance=sysUpTimeInstance, expResourceDeltaWildcardInstances=expResourceDeltaWildcardInstances, expExpressionEntry=expExpressionEntry, expExpressionValueType=expExpressionValueType, expObjectSampleType=expObjectSampleType, expErrorCode=expErrorCode, expDefine=expDefine, expExpressionErrors=expExpressionErrors, expValueUnsigned32Val=expValueUnsigned32Val, expValueCounter64Val=expValueCounter64Val, expExpressionOwner=expExpressionOwner, dismanExpressionDefinitionGroup=dismanExpressionDefinitionGroup, dismanExpressionMIBCompliance=dismanExpressionMIBCompliance, expObjectID=expObjectID, expErrorIndex=expErrorIndex, expResourceDeltaWildcardInstancesHigh=expResourceDeltaWildcardInstancesHigh, expValueOctetStringVal=expValueOctetStringVal, expObjectEntryStatus=expObjectEntryStatus, dismanExpressionValueGroup=dismanExpressionValueGroup, expObjectIDWildcard=expObjectIDWildcard, expExpressionName=expExpressionName, expErrorEntry=expErrorEntry, expValueInteger32Val=expValueInteger32Val, expResourceDeltaWildcardInstanceMaximum=expResourceDeltaWildcardInstanceMaximum, expValue=expValue)
| (object_identifier, integer, octet_string) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'Integer', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, value_size_constraint, constraints_intersection, single_value_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'ValueSizeConstraint', 'ConstraintsIntersection', 'SingleValueConstraint', 'ValueRangeConstraint')
(snmp_admin_string,) = mibBuilder.importSymbols('SNMP-FRAMEWORK-MIB', 'SnmpAdminString')
(module_compliance, notification_group, object_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'NotificationGroup', 'ObjectGroup')
(sys_up_time,) = mibBuilder.importSymbols('SNMPv2-MIB', 'sysUpTime')
(gauge32, bits, unsigned32, counter64, object_identity, zero_dot_zero, time_ticks, module_identity, integer32, ip_address, counter32, mib_2, iso, notification_type, mib_identifier, mib_scalar, mib_table, mib_table_row, mib_table_column) = mibBuilder.importSymbols('SNMPv2-SMI', 'Gauge32', 'Bits', 'Unsigned32', 'Counter64', 'ObjectIdentity', 'zeroDotZero', 'TimeTicks', 'ModuleIdentity', 'Integer32', 'IpAddress', 'Counter32', 'mib-2', 'iso', 'NotificationType', 'MibIdentifier', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn')
(display_string, truth_value, time_stamp, textual_convention, row_status) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TruthValue', 'TimeStamp', 'TextualConvention', 'RowStatus')
disman_expression_mib = module_identity((1, 3, 6, 1, 2, 1, 90)).setRevisions(('2000-10-16 00:00',))
if mibBuilder.loadTexts:
dismanExpressionMIB.setLastUpdated('200010160000Z')
if mibBuilder.loadTexts:
dismanExpressionMIB.setOrganization('IETF Distributed Management Working Group')
if mibBuilder.loadTexts:
dismanExpressionMIB.setContactInfo('Ramanathan Kavasseri\n Cisco Systems, Inc.\n 170 West Tasman Drive,\n San Jose CA 95134-1706.\n Phone: +1 408 527 2446\n Email: ramk@cisco.com')
if mibBuilder.loadTexts:
dismanExpressionMIB.setDescription('The MIB module for defining expressions of MIB objects for\n management purposes.')
disman_expression_mib_objects = mib_identifier((1, 3, 6, 1, 2, 1, 90, 1))
exp_resource = mib_identifier((1, 3, 6, 1, 2, 1, 90, 1, 1))
exp_define = mib_identifier((1, 3, 6, 1, 2, 1, 90, 1, 2))
exp_value = mib_identifier((1, 3, 6, 1, 2, 1, 90, 1, 3))
exp_resource_delta_minimum = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 1), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(-1, -1), value_range_constraint(1, 600)))).setUnits('seconds').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
expResourceDeltaMinimum.setDescription("The minimum expExpressionDeltaInterval this system will\n accept. A system may use the larger values of this minimum to\n lessen the impact of constantly computing deltas. For larger\n delta sampling intervals the system samples less often and\n suffers less overhead. This object provides a way to enforce\n such lower overhead for all expressions created after it is\n set.\n\n The value -1 indicates that expResourceDeltaMinimum is\n irrelevant as the system will not accept 'deltaValue' as a\n value for expObjectSampleType.\n\n Unless explicitly resource limited, a system's value for\n this object should be 1, allowing as small as a 1 second\n interval for ongoing delta sampling.\n\n Changing this value will not invalidate an existing setting\n of expObjectSampleType.")
exp_resource_delta_wildcard_instance_maximum = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 2), unsigned32()).setUnits('instances').setMaxAccess('readwrite')
if mibBuilder.loadTexts:
expResourceDeltaWildcardInstanceMaximum.setDescription("For every instance of a deltaValue object, one dynamic instance\n entry is needed for holding the instance value from the previous\n sample, i.e. to maintain state.\n\n This object limits maximum number of dynamic instance entries\n this system will support for wildcarded delta objects in\n expressions. For a given delta expression, the number of\n dynamic instances is the number of values that meet all criteria\n to exist times the number of delta values in the expression.\n\n A value of 0 indicates no preset limit, that is, the limit\n is dynamic based on system operation and resources.\n\n Unless explicitly resource limited, a system's value for\n this object should be 0.\n\n\n Changing this value will not eliminate or inhibit existing delta\n wildcard instance objects but will prevent the creation of more\n such objects.\n\n An attempt to allocate beyond the limit results in expErrorCode\n being tooManyWildcardValues for that evaluation attempt.")
exp_resource_delta_wildcard_instances = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 3), gauge32()).setUnits('instances').setMaxAccess('readonly')
if mibBuilder.loadTexts:
expResourceDeltaWildcardInstances.setDescription('The number of currently active instance entries as\n defined for expResourceDeltaWildcardInstanceMaximum.')
exp_resource_delta_wildcard_instances_high = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 4), gauge32()).setUnits('instances').setMaxAccess('readonly')
if mibBuilder.loadTexts:
expResourceDeltaWildcardInstancesHigh.setDescription('The highest value of expResourceDeltaWildcardInstances\n that has occurred since initialization of the managed\n system.')
exp_resource_delta_wildcard_instance_resource_lacks = mib_scalar((1, 3, 6, 1, 2, 1, 90, 1, 1, 5), counter32()).setUnits('instances').setMaxAccess('readonly')
if mibBuilder.loadTexts:
expResourceDeltaWildcardInstanceResourceLacks.setDescription('The number of times this system could not evaluate an\n expression because that would have created a value instance in\n excess of expResourceDeltaWildcardInstanceMaximum.')
exp_expression_table = mib_table((1, 3, 6, 1, 2, 1, 90, 1, 2, 1))
if mibBuilder.loadTexts:
expExpressionTable.setDescription('A table of expression definitions.')
exp_expression_entry = mib_table_row((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1)).setIndexNames((0, 'DISMAN-EXPRESSION-MIB', 'expExpressionOwner'), (0, 'DISMAN-EXPRESSION-MIB', 'expExpressionName'))
if mibBuilder.loadTexts:
expExpressionEntry.setDescription("Information about a single expression. New expressions\n can be created using expExpressionRowStatus.\n\n To create an expression first create the named entry in this\n table. Then use expExpressionName to populate expObjectTable.\n For expression evaluation to succeed all related entries in\n expExpressionTable and expObjectTable must be 'active'. If\n these conditions are not met the corresponding values in\n expValue simply are not instantiated.\n\n Deleting an entry deletes all related entries in expObjectTable\n and expErrorTable.\n\n Because of the relationships among the multiple tables for an\n expression (expExpressionTable, expObjectTable, and\n expValueTable) and the SNMP rules for independence in setting\n object values, it is necessary to do final error checking when\n an expression is evaluated, that is, when one of its instances\n in expValueTable is read or a delta interval expires. Earlier\n checking need not be done and an implementation may not impose\n any ordering on the creation of objects related to an\n expression.\n\n To maintain security of MIB information, when creating a new row in\n this table, the managed system must record the security credentials\n of the requester. These security credentials are the parameters\n necessary as inputs to isAccessAllowed from the Architecture for\n\n Describing SNMP Management Frameworks. When obtaining the objects\n that make up the expression, the system must (conceptually) use\n isAccessAllowed to ensure that it does not violate security.\n\n The evaluation of the expression takes place under the\n security credentials of the creator of its expExpressionEntry.\n\n Values of read-write objects in this table may be changed\n\n at any time.")
exp_expression_owner = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 1), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(0, 32)))
if mibBuilder.loadTexts:
expExpressionOwner.setDescription('The owner of this entry. The exact semantics of this\n string are subject to the security policy defined by the\n security administrator.')
exp_expression_name = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 2), snmp_admin_string().subtype(subtypeSpec=value_size_constraint(1, 32)))
if mibBuilder.loadTexts:
expExpressionName.setDescription('The name of the expression. This is locally unique, within\n the scope of an expExpressionOwner.')
exp_expression = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 3), octet_string().subtype(subtypeSpec=value_size_constraint(1, 1024))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
expExpression.setDescription("The expression to be evaluated. This object is the same\n as a DisplayString (RFC 1903) except for its maximum length.\n\n Except for the variable names the expression is in ANSI C\n syntax. Only the subset of ANSI C operators and functions\n listed here is allowed.\n\n Variables are expressed as a dollar sign ('$') and an\n\n integer that corresponds to an expObjectIndex. An\n example of a valid expression is:\n\n ($1-$5)*100\n\n Expressions must not be recursive, that is although an expression\n may use the results of another expression, it must not contain\n any variable that is directly or indirectly a result of its own\n evaluation. The managed system must check for recursive\n expressions.\n\n The only allowed operators are:\n\n ( )\n - (unary)\n + - * / %\n & | ^ << >> ~\n ! && || == != > >= < <=\n\n Note the parentheses are included for parenthesizing the\n expression, not for casting data types.\n\n The only constant types defined are:\n\n int (32-bit signed)\n long (64-bit signed)\n unsigned int\n unsigned long\n hexadecimal\n character\n string\n oid\n\n The default type for a positive integer is int unless it is too\n large in which case it is long.\n\n All but oid are as defined for ANSI C. Note that a\n hexadecimal constant may end up as a scalar or an array of\n 8-bit integers. A string constant is enclosed in double\n quotes and may contain back-slashed individual characters\n as in ANSI C.\n\n An oid constant comprises 32-bit, unsigned integers and at\n least one period, for example:\n\n 0.\n .0\n 1.3.6.1\n\n No additional leading or trailing subidentifiers are automatically\n added to an OID constant. The constant is taken as expressed.\n\n Integer-typed objects are treated as 32- or 64-bit, signed\n or unsigned integers, as appropriate. The results of\n mixing them are as for ANSI C, including the type of the\n result. Note that a 32-bit value is thus promoted to 64 bits\n only in an operation with a 64-bit value. There is no\n provision for larger values to handle overflow.\n\n Relative to SNMP data types, a resulting value becomes\n unsigned when calculating it uses any unsigned value,\n including a counter. To force the final value to be of\n data type counter the expression must explicitly use the\n counter32() or counter64() function (defined below).\n\n OCTET STRINGS and OBJECT IDENTIFIERs are treated as\n one-dimensioned arrays of unsigned 8-bit integers and\n unsigned 32-bit integers, respectively.\n\n IpAddresses are treated as 32-bit, unsigned integers in\n network byte order, that is, the hex version of 255.0.0.0 is\n 0xff000000.\n\n Conditional expressions result in a 32-bit, unsigned integer\n of value 0 for false or 1 for true. When an arbitrary value\n is used as a boolean 0 is false and non-zero is true.\n\n Rules for the resulting data type from an operation, based on\n the operator:\n\n For << and >> the result is the same as the left hand operand.\n\n For &&, ||, ==, !=, <, <=, >, and >= the result is always\n Unsigned32.\n\n For unary - the result is always Integer32.\n\n For +, -, *, /, %, &, |, and ^ the result is promoted according\n to the following rules, in order from most to least preferred:\n\n If left hand and right hand operands are the same type,\n use that.\n\n If either side is Counter64, use that.\n\n If either side is IpAddress, use that.\n\n\n If either side is TimeTicks, use that.\n\n If either side is Counter32, use that.\n\n Otherwise use Unsigned32.\n\n The following rules say what operators apply with what data\n types. Any combination not explicitly defined does not work.\n\n For all operators any of the following can be the left hand or\n right hand operand: Integer32, Counter32, Unsigned32, Counter64.\n\n The operators +, -, *, /, %, <, <=, >, and >= work with\n TimeTicks.\n\n The operators &, |, and ^ work with IpAddress.\n\n The operators << and >> work with IpAddress but only as the\n left hand operand.\n\n The + operator performs a concatenation of two OCTET STRINGs or\n two OBJECT IDENTIFIERs.\n\n The operators &, | perform bitwise operations on OCTET STRINGs.\n If the OCTET STRING happens to be a DisplayString the results\n may be meaningless, but the agent system does not check this as\n some such systems do not have this information.\n\n The operators << and >> perform bitwise operations on OCTET\n STRINGs appearing as the left hand operand.\n\n The only functions defined are:\n\n counter32\n counter64\n arraySection\n stringBegins\n stringEnds\n stringContains\n oidBegins\n oidEnds\n oidContains\n average\n maximum\n minimum\n sum\n exists\n\n\n The following function definitions indicate their parameters by\n naming the data type of the parameter in the parameter's position\n in the parameter list. The parameter must be of the type indicated\n and generally may be a constant, a MIB object, a function, or an\n expression.\n\n counter32(integer) - wrapped around an integer value counter32\n forces Counter32 as a data type.\n\n counter64(integer) - similar to counter32 except that the\n resulting data type is 'counter64'.\n\n arraySection(array, integer, integer) - selects a piece of an\n array (i.e. part of an OCTET STRING or OBJECT IDENTIFIER). The\n integer arguments are in the range 0 to 4,294,967,295. The\n first is an initial array index (one-dimensioned) and the second\n is an ending array index. A value of 0 indicates first or last\n element, respectively. If the first element is larger than the\n array length the result is 0 length. If the second integer is\n less than or equal to the first, the result is 0 length. If the\n second is larger than the array length it indicates last\n element.\n\n stringBegins/Ends/Contains(octetString, octetString) - looks for\n the second string (which can be a string constant) in the first\n and returns the one-dimensioned arrayindex where the match began.\n A return value of 0 indicates no match (i.e. boolean false).\n\n oidBegins/Ends/Contains(oid, oid) - looks for the second OID\n (which can be an OID constant) in the first and returns the\n the one-dimensioned index where the match began. A return value\n of 0 indicates no match (i.e. boolean false).\n\n average/maximum/minimum(integer) - calculates the average,\n minimum, or maximum value of the integer valued object over\n multiple sample times. If the object disappears for any\n sample period, the accumulation and the resulting value object\n cease to exist until the object reappears at which point the\n calculation starts over.\n\n sum(integerObject*) - sums all available values of the\n wildcarded integer object, resulting in an integer scalar. Must\n be used with caution as it wraps on overflow with no\n notification.\n\n exists(anyTypeObject) - verifies the object instance exists. A\n return value of 0 indicates NoSuchInstance (i.e. boolean\n false).")
exp_expression_value_type = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8))).clone(namedValues=named_values(('counter32', 1), ('unsigned32', 2), ('timeTicks', 3), ('integer32', 4), ('ipAddress', 5), ('octetString', 6), ('objectId', 7), ('counter64', 8))).clone('counter32')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
expExpressionValueType.setDescription('The type of the expression value. One and only one of the\n value objects in expValueTable will be instantiated to match\n this type.\n\n If the result of the expression can not be made into this type,\n an invalidOperandType error will occur.')
exp_expression_comment = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 5), snmp_admin_string().clone(hexValue='')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
expExpressionComment.setDescription('A comment to explain the use or meaning of the expression.')
exp_expression_delta_interval = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 86400))).setUnits('seconds').setMaxAccess('readcreate')
if mibBuilder.loadTexts:
expExpressionDeltaInterval.setDescription("Sampling interval for objects in this expression with\n expObjectSampleType 'deltaValue'.\n\n This object has no effect if the the expression has no\n deltaValue objects.\n\n A value of 0 indicates no automated sampling. In this case\n the delta is the difference from the last time the expression\n was evaluated. Note that this is subject to unpredictable\n delta times in the face of retries or multiple managers.\n\n A value greater than zero is the number of seconds between\n automated samples.\n\n Until the delta interval has expired once the delta for the\n\n object is effectively not instantiated and evaluating\n the expression has results as if the object itself were not\n instantiated.\n\n Note that delta values potentially consume large amounts of\n system CPU and memory. Delta state and processing must\n continue constantly even if the expression is not being used.\n That is, the expression is being evaluated every delta interval,\n even if no application is reading those values. For wildcarded\n objects this can be substantial overhead.\n\n Note that delta intervals, external expression value sampling\n intervals and delta intervals for expressions within other\n expressions can have unusual interactions as they are impossible\n to synchronize accurately. In general one interval embedded\n below another must be enough shorter that the higher sample\n sees relatively smooth, predictable behavior. So, for example,\n to avoid the higher level getting the same sample twice, the\n lower level should sample at least twice as fast as the higher\n level does.")
exp_expression_prefix = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 7), object_identifier()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
expExpressionPrefix.setDescription('An object prefix to assist an application in determining\n the instance indexing to use in expValueTable, relieving the\n application of the need to scan the expObjectTable to\n determine such a prefix.\n\n See expObjectTable for information on wildcarded objects.\n\n If the expValueInstance portion of the value OID may\n be treated as a scalar (that is, normally, 0) the value of\n expExpressionPrefix is zero length, that is, no OID at all.\n Note that zero length implies a null OID, not the OID 0.0.\n\n Otherwise, the value of expExpressionPrefix is the expObjectID\n value of any one of the wildcarded objects for the expression.\n This is sufficient, as the remainder, that is, the instance\n fragment relevant to instancing the values, must be the same for\n all wildcarded objects in the expression.')
exp_expression_errors = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
expExpressionErrors.setDescription('The number of errors encountered while evaluating this\n expression.\n\n Note that an object in the expression not being accessible,\n is not considered an error. An example of an inaccessible\n object is when the object is excluded from the view of the\n user whose security credentials are used in the expression\n evaluation. In such cases, it is a legitimate condition\n that causes the corresponding expression value not to be\n instantiated.')
exp_expression_entry_status = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 1, 1, 9), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
expExpressionEntryStatus.setDescription('The control that allows creation and deletion of entries.')
exp_error_table = mib_table((1, 3, 6, 1, 2, 1, 90, 1, 2, 2))
if mibBuilder.loadTexts:
expErrorTable.setDescription('A table of expression errors.')
exp_error_entry = mib_table_row((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1)).setIndexNames((0, 'DISMAN-EXPRESSION-MIB', 'expExpressionOwner'), (0, 'DISMAN-EXPRESSION-MIB', 'expExpressionName'))
if mibBuilder.loadTexts:
expErrorEntry.setDescription('Information about errors in processing an expression.\n\n Entries appear in this table only when there is a matching\n expExpressionEntry and then only when there has been an\n error for that expression as reflected by the error codes\n defined for expErrorCode.')
exp_error_time = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 1), time_stamp()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
expErrorTime.setDescription('The value of sysUpTime the last time an error caused a\n failure to evaluate this expression.')
exp_error_index = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
expErrorIndex.setDescription('The one-dimensioned character array index into\n expExpression for where the error occurred. The value\n zero indicates irrelevance.')
exp_error_code = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11))).clone(namedValues=named_values(('invalidSyntax', 1), ('undefinedObjectIndex', 2), ('unrecognizedOperator', 3), ('unrecognizedFunction', 4), ('invalidOperandType', 5), ('unmatchedParenthesis', 6), ('tooManyWildcardValues', 7), ('recursion', 8), ('deltaTooShort', 9), ('resourceUnavailable', 10), ('divideByZero', 11)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
expErrorCode.setDescription("The error that occurred. In the following explanations the\n expected timing of the error is in parentheses. 'S' means\n the error occurs on a Set request. 'E' means the error\n\n occurs on the attempt to evaluate the expression either due to\n Get from expValueTable or in ongoing delta processing.\n\n invalidSyntax the value sent for expExpression is not\n valid Expression MIB expression syntax\n (S)\n undefinedObjectIndex an object reference ($n) in\n expExpression does not have a matching\n instance in expObjectTable (E)\n unrecognizedOperator the value sent for expExpression held an\n unrecognized operator (S)\n unrecognizedFunction the value sent for expExpression held an\n unrecognized function name (S)\n invalidOperandType an operand in expExpression is not the\n right type for the associated operator\n or result (SE)\n unmatchedParenthesis the value sent for expExpression is not\n correctly parenthesized (S)\n tooManyWildcardValues evaluating the expression exceeded the\n limit set by\n expResourceDeltaWildcardInstanceMaximum\n (E)\n recursion through some chain of embedded\n expressions the expression invokes itself\n (E)\n deltaTooShort the delta for the next evaluation passed\n before the system could evaluate the\n present sample (E)\n resourceUnavailable some resource, typically dynamic memory,\n was unavailable (SE)\n divideByZero an attempt to divide by zero occurred\n (E)\n\n For the errors that occur when the attempt is made to set\n expExpression Set request fails with the SNMP error code\n 'wrongValue'. Such failures refer to the most recent failure to\n Set expExpression, not to the present value of expExpression\n which must be either unset or syntactically correct.\n\n Errors that occur during evaluation for a Get* operation return\n the SNMP error code 'genErr' except for 'tooManyWildcardValues'\n and 'resourceUnavailable' which return the SNMP error code\n 'resourceUnavailable'.")
exp_error_instance = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 2, 1, 4), object_identifier()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
expErrorInstance.setDescription('The expValueInstance being evaluated when the error\n occurred. A zero-length indicates irrelevance.')
exp_object_table = mib_table((1, 3, 6, 1, 2, 1, 90, 1, 2, 3))
if mibBuilder.loadTexts:
expObjectTable.setDescription('A table of object definitions for each expExpression.\n\n Wildcarding instance IDs:\n\n It is legal to omit all or part of the instance portion for\n some or all of the objects in an expression. (See the\n DESCRIPTION of expObjectID for details. However, note that\n if more than one object in the same expression is wildcarded\n in this way, they all must be objects where that portion of\n the instance is the same. In other words, all objects may be\n in the same SEQUENCE or in different SEQUENCEs but with the\n same semantic index value (e.g., a value of ifIndex)\n for the wildcarded portion.')
exp_object_entry = mib_table_row((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1)).setIndexNames((0, 'DISMAN-EXPRESSION-MIB', 'expExpressionOwner'), (0, 'DISMAN-EXPRESSION-MIB', 'expExpressionName'), (0, 'DISMAN-EXPRESSION-MIB', 'expObjectIndex'))
if mibBuilder.loadTexts:
expObjectEntry.setDescription('Information about an object. An application uses\n expObjectEntryStatus to create entries in this table while\n in the process of defining an expression.\n\n Values of read-create objects in this table may be\n changed at any time.')
exp_object_index = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 1), unsigned32().subtype(subtypeSpec=value_range_constraint(1, 4294967295)))
if mibBuilder.loadTexts:
expObjectIndex.setDescription("Within an expression, a unique, numeric identification for an\n object. Prefixed with a dollar sign ('$') this is used to\n reference the object in the corresponding expExpression.")
exp_object_id = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 2), object_identifier()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
expObjectID.setDescription('The OBJECT IDENTIFIER (OID) of this object. The OID may be\n fully qualified, meaning it includes a complete instance\n identifier part (e.g., ifInOctets.1 or sysUpTime.0), or it\n may not be fully qualified, meaning it may lack all or part\n of the instance identifier. If the expObjectID is not fully\n qualified, then expObjectWildcard must be set to true(1).\n The value of the expression will be multiple\n values, as if done for a GetNext sweep of the object.\n\n An object here may itself be the result of an expression but\n recursion is not allowed.\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.')
exp_object_id_wildcard = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 3), truth_value().clone('false')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
expObjectIDWildcard.setDescription('A true value indicates the expObjecID of this row is a wildcard\n object. False indicates that expObjectID is fully instanced.\n If all expObjectWildcard values for a given expression are FALSE,\n\n expExpressionPrefix will reflect a scalar object (i.e. will\n be 0.0).\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.')
exp_object_sample_type = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('absoluteValue', 1), ('deltaValue', 2), ('changedValue', 3))).clone('absoluteValue')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
expObjectSampleType.setDescription("The method of sampling the selected variable.\n\n An 'absoluteValue' is simply the present value of the object.\n\n A 'deltaValue' is the present value minus the previous value,\n which was sampled expExpressionDeltaInterval seconds ago.\n This is intended primarily for use with SNMP counters, which are\n meaningless as an 'absoluteValue', but may be used with any\n integer-based value.\n\n A 'changedValue' is a boolean for whether the present value is\n different from the previous value. It is applicable to any data\n type and results in an Unsigned32 with value 1 if the object's\n value is changed and 0 if not. In all other respects it is as a\n 'deltaValue' and all statements and operation regarding delta\n values apply to changed values.\n\n When an expression contains both delta and absolute values\n the absolute values are obtained at the end of the delta\n period.")
sys_up_time_instance = mib_identifier((1, 3, 6, 1, 2, 1, 1, 3, 0))
exp_object_delta_discontinuity_id = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 5), object_identifier().clone((1, 3, 6, 1, 2, 1, 1, 3, 0))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
expObjectDeltaDiscontinuityID.setDescription("The OBJECT IDENTIFIER (OID) of a TimeTicks, TimeStamp, or\n DateAndTime object that indicates a discontinuity in the value\n at expObjectID.\n\n\n This object is instantiated only if expObjectSampleType is\n 'deltaValue' or 'changedValue'.\n\n The OID may be for a leaf object (e.g. sysUpTime.0) or may\n be wildcarded to match expObjectID.\n\n This object supports normal checking for a discontinuity in a\n counter. Note that if this object does not point to sysUpTime\n discontinuity checking must still check sysUpTime for an overall\n discontinuity.\n\n If the object identified is not accessible no discontinuity\n check will be made.")
exp_object_discontinuity_id_wildcard = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 6), truth_value().clone('false')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
expObjectDiscontinuityIDWildcard.setDescription("A true value indicates the expObjectDeltaDiscontinuityID of\n this row is a wildcard object. False indicates that\n expObjectDeltaDiscontinuityID is fully instanced.\n\n This object is instantiated only if expObjectSampleType is\n 'deltaValue' or 'changedValue'.\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.")
exp_object_discontinuity_id_type = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('timeTicks', 1), ('timeStamp', 2), ('dateAndTime', 3))).clone('timeTicks')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
expObjectDiscontinuityIDType.setDescription("The value 'timeTicks' indicates the expObjectDeltaDiscontinuityID\n of this row is of syntax TimeTicks. The value 'timeStamp' indicates\n syntax TimeStamp. The value 'dateAndTime indicates syntax\n DateAndTime.\n\n This object is instantiated only if expObjectSampleType is\n 'deltaValue' or 'changedValue'.")
exp_object_conditional = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 8), object_identifier().clone((0, 0))).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
expObjectConditional.setDescription('The OBJECT IDENTIFIER (OID) of an object that overrides\n whether the instance of expObjectID is to be considered\n usable. If the value of the object at expObjectConditional\n is 0 or not instantiated, the object at expObjectID is\n treated as if it is not instantiated. In other words,\n expObjectConditional is a filter that controls whether or\n not to use the value at expObjectID.\n\n The OID may be for a leaf object (e.g. sysObjectID.0) or may be\n wildcarded to match expObjectID. If expObject is wildcarded and\n expObjectID in the same row is not, the wild portion of\n expObjectConditional must match the wildcarding of the rest of\n the expression. If no object in the expression is wildcarded\n but expObjectConditional is, use the lexically first instance\n (if any) of expObjectConditional.\n\n If the value of expObjectConditional is 0.0 operation is\n as if the value pointed to by expObjectConditional is a\n non-zero (true) value.\n\n Note that expObjectConditional can not trivially use an object\n of syntax TruthValue, since the underlying value is not 0 or 1.')
exp_object_conditional_wildcard = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 9), truth_value().clone('false')).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
expObjectConditionalWildcard.setDescription('A true value indicates the expObjectConditional of this row is\n a wildcard object. False indicates that expObjectConditional is\n fully instanced.\n\n NOTE: The simplest implementations of this MIB may not allow\n wildcards.')
exp_object_entry_status = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 2, 3, 1, 10), row_status()).setMaxAccess('readcreate')
if mibBuilder.loadTexts:
expObjectEntryStatus.setDescription('The control that allows creation/deletion of entries.\n\n Objects in this table may be changed while\n expObjectEntryStatus is in any state.')
exp_value_table = mib_table((1, 3, 6, 1, 2, 1, 90, 1, 3, 1))
if mibBuilder.loadTexts:
expValueTable.setDescription('A table of values from evaluated expressions.')
exp_value_entry = mib_table_row((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1)).setIndexNames((0, 'DISMAN-EXPRESSION-MIB', 'expExpressionOwner'), (0, 'DISMAN-EXPRESSION-MIB', 'expExpressionName'), (1, 'DISMAN-EXPRESSION-MIB', 'expValueInstance'))
if mibBuilder.loadTexts:
expValueEntry.setDescription("A single value from an evaluated expression. For a given\n instance, only one 'Val' object in the conceptual row will be\n instantiated, that is, the one with the appropriate type for\n the value. For values that contain no objects of\n expObjectSampleType 'deltaValue' or 'changedValue', reading a\n value from the table causes the evaluation of the expression\n for that value. For those that contain a 'deltaValue' or\n 'changedValue' the value read is as of the last sampling\n interval.\n\n If in the attempt to evaluate the expression one or more\n of the necessary objects is not available, the corresponding\n entry in this table is effectively not instantiated.\n\n To maintain security of MIB information, when creating a new\n row in this table, the managed system must record the security\n credentials of the requester. These security credentials are\n the parameters necessary as inputs to isAccessAllowed from\n [RFC2571]. When obtaining the objects that make up the\n expression, the system must (conceptually) use isAccessAllowed to\n ensure that it does not violate security.\n\n The evaluation of that expression takes place under the\n\n security credentials of the creator of its expExpressionEntry.\n\n To maintain security of MIB information, expression evaluation must\n take place using security credentials for the implied Gets of the\n objects in the expression as inputs (conceptually) to\n isAccessAllowed from the Architecture for Describing SNMP\n Management Frameworks. These are the security credentials of the\n creator of the corresponding expExpressionEntry.")
exp_value_instance = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 1), object_identifier())
if mibBuilder.loadTexts:
expValueInstance.setDescription("The final instance portion of a value's OID according to\n the wildcarding in instances of expObjectID for the\n expression. The prefix of this OID fragment is 0.0,\n leading to the following behavior.\n\n If there is no wildcarding, the value is 0.0.0. In other\n words, there is one value which standing alone would have\n been a scalar with a 0 at the end of its OID.\n\n If there is wildcarding, the value is 0.0 followed by\n a value that the wildcard can take, thus defining one value\n instance for each real, possible value of the wildcard.\n So, for example, if the wildcard worked out to be an ifIndex,\n there is an expValueInstance for each applicable ifIndex.")
exp_value_counter32_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
expValueCounter32Val.setDescription("The value when expExpressionValueType is 'counter32'.")
exp_value_unsigned32_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 3), unsigned32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
expValueUnsigned32Val.setDescription("The value when expExpressionValueType is 'unsigned32'.")
exp_value_time_ticks_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 4), time_ticks()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
expValueTimeTicksVal.setDescription("The value when expExpressionValueType is 'timeTicks'.")
exp_value_integer32_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
expValueInteger32Val.setDescription("The value when expExpressionValueType is 'integer32'.")
exp_value_ip_address_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 6), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
expValueIpAddressVal.setDescription("The value when expExpressionValueType is 'ipAddress'.")
exp_value_octet_string_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 7), octet_string().subtype(subtypeSpec=value_size_constraint(0, 65536))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
expValueOctetStringVal.setDescription("The value when expExpressionValueType is 'octetString'.")
exp_value_oid_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 8), object_identifier()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
expValueOidVal.setDescription("The value when expExpressionValueType is 'objectId'.")
exp_value_counter64_val = mib_table_column((1, 3, 6, 1, 2, 1, 90, 1, 3, 1, 1, 9), counter64()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
expValueCounter64Val.setDescription("The value when expExpressionValueType is 'counter64'.")
disman_expression_mib_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 90, 3))
disman_expression_mib_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 90, 3, 1))
disman_expression_mib_groups = mib_identifier((1, 3, 6, 1, 2, 1, 90, 3, 2))
disman_expression_mib_compliance = module_compliance((1, 3, 6, 1, 2, 1, 90, 3, 1, 1)).setObjects(*(('DISMAN-EXPRESSION-MIB', 'dismanExpressionResourceGroup'), ('DISMAN-EXPRESSION-MIB', 'dismanExpressionDefinitionGroup'), ('DISMAN-EXPRESSION-MIB', 'dismanExpressionValueGroup')))
if mibBuilder.loadTexts:
dismanExpressionMIBCompliance.setDescription('The compliance statement for entities which implement\n the Expression MIB.')
disman_expression_resource_group = object_group((1, 3, 6, 1, 2, 1, 90, 3, 2, 1)).setObjects(*(('DISMAN-EXPRESSION-MIB', 'expResourceDeltaMinimum'), ('DISMAN-EXPRESSION-MIB', 'expResourceDeltaWildcardInstanceMaximum'), ('DISMAN-EXPRESSION-MIB', 'expResourceDeltaWildcardInstances'), ('DISMAN-EXPRESSION-MIB', 'expResourceDeltaWildcardInstancesHigh'), ('DISMAN-EXPRESSION-MIB', 'expResourceDeltaWildcardInstanceResourceLacks')))
if mibBuilder.loadTexts:
dismanExpressionResourceGroup.setDescription('Expression definition resource management.')
disman_expression_definition_group = object_group((1, 3, 6, 1, 2, 1, 90, 3, 2, 2)).setObjects(*(('DISMAN-EXPRESSION-MIB', 'expExpression'), ('DISMAN-EXPRESSION-MIB', 'expExpressionValueType'), ('DISMAN-EXPRESSION-MIB', 'expExpressionComment'), ('DISMAN-EXPRESSION-MIB', 'expExpressionDeltaInterval'), ('DISMAN-EXPRESSION-MIB', 'expExpressionPrefix'), ('DISMAN-EXPRESSION-MIB', 'expExpressionErrors'), ('DISMAN-EXPRESSION-MIB', 'expExpressionEntryStatus'), ('DISMAN-EXPRESSION-MIB', 'expErrorTime'), ('DISMAN-EXPRESSION-MIB', 'expErrorIndex'), ('DISMAN-EXPRESSION-MIB', 'expErrorCode'), ('DISMAN-EXPRESSION-MIB', 'expErrorInstance'), ('DISMAN-EXPRESSION-MIB', 'expObjectID'), ('DISMAN-EXPRESSION-MIB', 'expObjectIDWildcard'), ('DISMAN-EXPRESSION-MIB', 'expObjectSampleType'), ('DISMAN-EXPRESSION-MIB', 'expObjectDeltaDiscontinuityID'), ('DISMAN-EXPRESSION-MIB', 'expObjectDiscontinuityIDWildcard'), ('DISMAN-EXPRESSION-MIB', 'expObjectDiscontinuityIDType'), ('DISMAN-EXPRESSION-MIB', 'expObjectConditional'), ('DISMAN-EXPRESSION-MIB', 'expObjectConditionalWildcard'), ('DISMAN-EXPRESSION-MIB', 'expObjectEntryStatus')))
if mibBuilder.loadTexts:
dismanExpressionDefinitionGroup.setDescription('Expression definition.')
disman_expression_value_group = object_group((1, 3, 6, 1, 2, 1, 90, 3, 2, 3)).setObjects(*(('DISMAN-EXPRESSION-MIB', 'expValueCounter32Val'), ('DISMAN-EXPRESSION-MIB', 'expValueUnsigned32Val'), ('DISMAN-EXPRESSION-MIB', 'expValueTimeTicksVal'), ('DISMAN-EXPRESSION-MIB', 'expValueInteger32Val'), ('DISMAN-EXPRESSION-MIB', 'expValueIpAddressVal'), ('DISMAN-EXPRESSION-MIB', 'expValueOctetStringVal'), ('DISMAN-EXPRESSION-MIB', 'expValueOidVal'), ('DISMAN-EXPRESSION-MIB', 'expValueCounter64Val')))
if mibBuilder.loadTexts:
dismanExpressionValueGroup.setDescription('Expression value.')
mibBuilder.exportSymbols('DISMAN-EXPRESSION-MIB', dismanExpressionMIBCompliances=dismanExpressionMIBCompliances, expExpressionComment=expExpressionComment, expObjectDiscontinuityIDType=expObjectDiscontinuityIDType, expObjectDiscontinuityIDWildcard=expObjectDiscontinuityIDWildcard, expValueTable=expValueTable, expResource=expResource, expExpressionPrefix=expExpressionPrefix, expObjectTable=expObjectTable, expValueIpAddressVal=expValueIpAddressVal, expObjectDeltaDiscontinuityID=expObjectDeltaDiscontinuityID, expErrorInstance=expErrorInstance, expObjectEntry=expObjectEntry, dismanExpressionResourceGroup=dismanExpressionResourceGroup, expObjectConditional=expObjectConditional, expExpressionEntryStatus=expExpressionEntryStatus, expExpressionTable=expExpressionTable, expValueCounter32Val=expValueCounter32Val, expErrorTable=expErrorTable, PYSNMP_MODULE_ID=dismanExpressionMIB, expExpressionDeltaInterval=expExpressionDeltaInterval, expValueInstance=expValueInstance, expExpression=expExpression, expValueTimeTicksVal=expValueTimeTicksVal, expErrorTime=expErrorTime, expResourceDeltaWildcardInstanceResourceLacks=expResourceDeltaWildcardInstanceResourceLacks, expValueEntry=expValueEntry, dismanExpressionMIB=dismanExpressionMIB, dismanExpressionMIBGroups=dismanExpressionMIBGroups, expObjectIndex=expObjectIndex, expObjectConditionalWildcard=expObjectConditionalWildcard, dismanExpressionMIBObjects=dismanExpressionMIBObjects, expValueOidVal=expValueOidVal, dismanExpressionMIBConformance=dismanExpressionMIBConformance, expResourceDeltaMinimum=expResourceDeltaMinimum, sysUpTimeInstance=sysUpTimeInstance, expResourceDeltaWildcardInstances=expResourceDeltaWildcardInstances, expExpressionEntry=expExpressionEntry, expExpressionValueType=expExpressionValueType, expObjectSampleType=expObjectSampleType, expErrorCode=expErrorCode, expDefine=expDefine, expExpressionErrors=expExpressionErrors, expValueUnsigned32Val=expValueUnsigned32Val, expValueCounter64Val=expValueCounter64Val, expExpressionOwner=expExpressionOwner, dismanExpressionDefinitionGroup=dismanExpressionDefinitionGroup, dismanExpressionMIBCompliance=dismanExpressionMIBCompliance, expObjectID=expObjectID, expErrorIndex=expErrorIndex, expResourceDeltaWildcardInstancesHigh=expResourceDeltaWildcardInstancesHigh, expValueOctetStringVal=expValueOctetStringVal, expObjectEntryStatus=expObjectEntryStatus, dismanExpressionValueGroup=dismanExpressionValueGroup, expObjectIDWildcard=expObjectIDWildcard, expExpressionName=expExpressionName, expErrorEntry=expErrorEntry, expValueInteger32Val=expValueInteger32Val, expResourceDeltaWildcardInstanceMaximum=expResourceDeltaWildcardInstanceMaximum, expValue=expValue) |
q = int(input())
for i in range(q):
l1,r1,l2,r2 = map(int, input().split())
if l2 < l1 and r2 < r1:
print(l1, l2)
else:
print(l1,r2)
| q = int(input())
for i in range(q):
(l1, r1, l2, r2) = map(int, input().split())
if l2 < l1 and r2 < r1:
print(l1, l2)
else:
print(l1, r2) |
"proto_scala_library.bzl provides a scala_library for proto files."
load("@io_bazel_rules_scala//scala:scala.bzl", "scala_library")
def proto_scala_library(**kwargs):
scala_library(**kwargs)
| """proto_scala_library.bzl provides a scala_library for proto files."""
load('@io_bazel_rules_scala//scala:scala.bzl', 'scala_library')
def proto_scala_library(**kwargs):
scala_library(**kwargs) |
isbn = input().split('-')
offset = 0
weight = 1
for i in range(3):
for j in isbn[i]:
offset = offset + int(j) * weight
weight += 1
offset = offset % 11
if offset == 10 and isbn[3] == 'X':
print('Right')
elif offset < 10 and str(offset) == isbn[3]:
print('Right')
else:
if offset == 10:
offset = 'X'
print('-'.join([isbn[0], isbn[1], isbn[2], str(offset)]))
| isbn = input().split('-')
offset = 0
weight = 1
for i in range(3):
for j in isbn[i]:
offset = offset + int(j) * weight
weight += 1
offset = offset % 11
if offset == 10 and isbn[3] == 'X':
print('Right')
elif offset < 10 and str(offset) == isbn[3]:
print('Right')
else:
if offset == 10:
offset = 'X'
print('-'.join([isbn[0], isbn[1], isbn[2], str(offset)])) |
def find_missing( current_list, target_list ):
return [ x for x in target_list if x not in current_list ]
def compare( current_list, target_list ):
additions_list = find_missing( current_list, target_list )
deletions_list = find_missing( target_list, current_list )
return { 'additions': additions_list, 'deletions': deletions_list }
| def find_missing(current_list, target_list):
return [x for x in target_list if x not in current_list]
def compare(current_list, target_list):
additions_list = find_missing(current_list, target_list)
deletions_list = find_missing(target_list, current_list)
return {'additions': additions_list, 'deletions': deletions_list} |
def __len__(self):
"""Method to behave like a list and iterate in the object"""
if self.nb_simu != None:
return self.nb_simu
else:
return len(self.output_list)
| def __len__(self):
"""Method to behave like a list and iterate in the object"""
if self.nb_simu != None:
return self.nb_simu
else:
return len(self.output_list) |
#
# PySNMP MIB module Wellfleet-AT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/Wellfleet-AT-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 21:32:44 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ValueSizeConstraint, SingleValueConstraint, ValueRangeConstraint, ConstraintsUnion, ConstraintsIntersection = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ValueRangeConstraint", "ConstraintsUnion", "ConstraintsIntersection")
NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance")
ObjectIdentity, MibIdentifier, ModuleIdentity, Bits, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, Gauge32, TimeTicks, Integer32, Unsigned32, IpAddress, Counter64, NotificationType, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "ObjectIdentity", "MibIdentifier", "ModuleIdentity", "Bits", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Gauge32", "TimeTicks", "Integer32", "Unsigned32", "IpAddress", "Counter64", "NotificationType", "Counter32")
DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention")
wfAppletalkGroup, = mibBuilder.importSymbols("Wellfleet-COMMON-MIB", "wfAppletalkGroup")
wfAppleBase = MibIdentifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1))
wfAppleBaseDelete = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleBaseDelete.setStatus('mandatory')
wfAppleBaseDisable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleBaseDisable.setStatus('mandatory')
wfAppleBaseState = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3), ("notpres", 4))).clone('down')).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleBaseState.setStatus('mandatory')
wfAppleBaseDebugLevel = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 4), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleBaseDebugLevel.setStatus('mandatory')
wfAppleBaseDdpQueLen = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 5), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 2147483647)).clone(20)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleBaseDdpQueLen.setStatus('mandatory')
wfAppleBaseHomedPort = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 6), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleBaseHomedPort.setStatus('mandatory')
wfAppleBaseTotalNets = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 7), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleBaseTotalNets.setStatus('mandatory')
wfAppleBaseTotalZones = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 8), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleBaseTotalZones.setStatus('mandatory')
wfAppleBaseTotalZoneNames = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 9), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleBaseTotalZoneNames.setStatus('mandatory')
wfAppleBaseTotalAarpEntries = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 10), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleBaseTotalAarpEntries.setStatus('mandatory')
wfAppleBaseEstimatedNets = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 11), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleBaseEstimatedNets.setStatus('mandatory')
wfAppleBaseEstimatedHosts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 12), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleBaseEstimatedHosts.setStatus('mandatory')
wfAppleMacIPBaseDelete = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 13), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('deleted')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleMacIPBaseDelete.setStatus('mandatory')
wfAppleMacIPBaseDisable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 14), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleMacIPBaseDisable.setStatus('mandatory')
wfAppleMacIPBaseState = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 15), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3), ("notpres", 4))).clone('down')).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleMacIPBaseState.setStatus('mandatory')
wfAppleMacIPZone = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 16), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleMacIPZone.setStatus('mandatory')
wfMacIPAddress1 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 17), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfMacIPAddress1.setStatus('mandatory')
wfMacIPLowerIpAddress1 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 18), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfMacIPLowerIpAddress1.setStatus('mandatory')
wfMacIPUpperIpAddress1 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 19), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfMacIPUpperIpAddress1.setStatus('mandatory')
wfMacIPAddress2 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 20), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfMacIPAddress2.setStatus('mandatory')
wfMacIPLowerIpAddress2 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 21), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfMacIPLowerIpAddress2.setStatus('mandatory')
wfMacIPUpperIpAddress2 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 22), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfMacIPUpperIpAddress2.setStatus('mandatory')
wfMacIPAddress3 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 23), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfMacIPAddress3.setStatus('mandatory')
wfMacIPLowerIpAddress3 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 24), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfMacIPLowerIpAddress3.setStatus('mandatory')
wfMacIPUpperIpAddress3 = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 25), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 254)).clone(1)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfMacIPUpperIpAddress3.setStatus('mandatory')
wfAppleMacIPAddressTimeOut = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 26), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255)).clone(5)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleMacIPAddressTimeOut.setStatus('mandatory')
wfAppleMacIPServerRequests = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 27), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleMacIPServerRequests.setStatus('mandatory')
wfAppleMacIPServerResponces = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 28), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleMacIPServerResponces.setStatus('mandatory')
wfAppleRtmpTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2), )
if mibBuilder.loadTexts: wfAppleRtmpTable.setStatus('mandatory')
wfAppleRtmpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleRtmpNetStart"), (0, "Wellfleet-AT-MIB", "wfAppleRtmpNetEnd"))
if mibBuilder.loadTexts: wfAppleRtmpEntry.setStatus('mandatory')
wfAppleRtmpNetStart = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleRtmpNetStart.setStatus('mandatory')
wfAppleRtmpNetEnd = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleRtmpNetEnd.setStatus('mandatory')
wfAppleRtmpPort = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleRtmpPort.setStatus('mandatory')
wfAppleRtmpHops = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 4), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleRtmpHops.setStatus('mandatory')
wfAppleRtmpNextHopNet = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleRtmpNextHopNet.setStatus('mandatory')
wfAppleRtmpNextHopNode = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 6), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleRtmpNextHopNode.setStatus('mandatory')
wfAppleRtmpState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("good", 1), ("suspect", 2), ("goingbad", 3), ("bad", 4)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleRtmpState.setStatus('mandatory')
wfAppleRtmpProto = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 8), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3))).clone(namedValues=NamedValues(("rtmp", 1), ("aurp", 2), ("static", 3)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleRtmpProto.setStatus('mandatory')
wfAppleRtmpAurpNextHopIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 9), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleRtmpAurpNextHopIpAddress.setStatus('mandatory')
wfApplePortTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3), )
if mibBuilder.loadTexts: wfApplePortTable.setStatus('mandatory')
wfApplePortEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfApplePortCircuit"))
if mibBuilder.loadTexts: wfApplePortEntry.setStatus('mandatory')
wfApplePortDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortDelete.setStatus('mandatory')
wfApplePortDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortDisable.setStatus('mandatory')
wfApplePortCircuit = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortCircuit.setStatus('mandatory')
wfApplePortState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2))).clone('down')).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortState.setStatus('mandatory')
wfApplePortType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 5), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortType.setStatus('mandatory')
wfApplePortCksumDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortCksumDisable.setStatus('mandatory')
wfApplePortTrEndStation = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortTrEndStation.setStatus('mandatory')
wfApplePortGniForever = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 8), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortGniForever.setStatus('obsolete')
wfApplePortAarpFlush = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 9), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortAarpFlush.setStatus('mandatory')
wfApplePortMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 10), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortMacAddress.setStatus('mandatory')
wfApplePortNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 11), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortNodeId.setStatus('mandatory')
wfApplePortNetwork = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 12), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortNetwork.setStatus('mandatory')
wfApplePortNetStart = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 13), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortNetStart.setStatus('mandatory')
wfApplePortNetEnd = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 14), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortNetEnd.setStatus('mandatory')
wfApplePortDfltZone = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 15), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortDfltZone.setStatus('mandatory')
wfApplePortCurMacAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 16), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortCurMacAddress.setStatus('mandatory')
wfApplePortCurNodeId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortCurNodeId.setStatus('mandatory')
wfApplePortCurNetwork = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 18), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortCurNetwork.setStatus('mandatory')
wfApplePortCurNetStart = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 19), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortCurNetStart.setStatus('mandatory')
wfApplePortCurNetEnd = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 20), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortCurNetEnd.setStatus('mandatory')
wfApplePortCurDfltZone = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 21), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortCurDfltZone.setStatus('mandatory')
wfApplePortAarpProbeRxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortAarpProbeRxs.setStatus('mandatory')
wfApplePortAarpProbeTxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortAarpProbeTxs.setStatus('mandatory')
wfApplePortAarpReqRxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortAarpReqRxs.setStatus('mandatory')
wfApplePortAarpReqTxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortAarpReqTxs.setStatus('mandatory')
wfApplePortAarpRspRxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortAarpRspRxs.setStatus('mandatory')
wfApplePortAarpRspTxs = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 27), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortAarpRspTxs.setStatus('mandatory')
wfApplePortDdpOutRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 28), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortDdpOutRequests.setStatus('mandatory')
wfApplePortDdpInReceives = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 29), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortDdpInReceives.setStatus('mandatory')
wfApplePortDdpInLocalDatagrams = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 30), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortDdpInLocalDatagrams.setStatus('mandatory')
wfApplePortDdpNoProtocolHandlers = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 31), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortDdpNoProtocolHandlers.setStatus('mandatory')
wfApplePortDdpTooShortErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 32), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortDdpTooShortErrors.setStatus('mandatory')
wfApplePortDdpTooLongErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 33), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortDdpTooLongErrors.setStatus('mandatory')
wfApplePortDdpChecksumErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 34), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortDdpChecksumErrors.setStatus('mandatory')
wfApplePortDdpForwRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 35), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortDdpForwRequests.setStatus('mandatory')
wfApplePortDdpOutNoRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 36), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortDdpOutNoRoutes.setStatus('mandatory')
wfApplePortDdpBroadcastErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 37), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortDdpBroadcastErrors.setStatus('mandatory')
wfApplePortDdpHopCountErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 38), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortDdpHopCountErrors.setStatus('mandatory')
wfApplePortRtmpInDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 39), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortRtmpInDataPkts.setStatus('mandatory')
wfApplePortRtmpOutDataPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 40), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortRtmpOutDataPkts.setStatus('mandatory')
wfApplePortRtmpInRequestPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 41), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortRtmpInRequestPkts.setStatus('mandatory')
wfApplePortRtmpNextIREqualChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 42), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortRtmpNextIREqualChanges.setStatus('mandatory')
wfApplePortRtmpNextIRLessChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 43), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortRtmpNextIRLessChanges.setStatus('mandatory')
wfApplePortRtmpRouteDeletes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 44), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortRtmpRouteDeletes.setStatus('mandatory')
wfApplePortRtmpNetworkMismatchErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 45), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortRtmpNetworkMismatchErrors.setStatus('mandatory')
wfApplePortRtmpRoutingTableOverflows = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 46), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortRtmpRoutingTableOverflows.setStatus('mandatory')
wfApplePortZipInZipQueries = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 47), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipInZipQueries.setStatus('mandatory')
wfApplePortZipInZipReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 48), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipInZipReplies.setStatus('mandatory')
wfApplePortZipOutZipReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 49), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipOutZipReplies.setStatus('mandatory')
wfApplePortZipInZipExtendedReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 50), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipInZipExtendedReplies.setStatus('mandatory')
wfApplePortZipOutZipExtendedReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 51), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipOutZipExtendedReplies.setStatus('mandatory')
wfApplePortZipInGetZoneLists = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 52), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipInGetZoneLists.setStatus('mandatory')
wfApplePortZipOutGetZoneListReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 53), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipOutGetZoneListReplies.setStatus('mandatory')
wfApplePortZipInGetLocalZones = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 54), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipInGetLocalZones.setStatus('mandatory')
wfApplePortZipOutGetLocalZoneReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 55), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipOutGetLocalZoneReplies.setStatus('mandatory')
wfApplePortZipInGetMyZones = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 56), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipInGetMyZones.setStatus('obsolete')
wfApplePortZipOutGetMyZoneReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 57), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipOutGetMyZoneReplies.setStatus('obsolete')
wfApplePortZipZoneConflictErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 58), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipZoneConflictErrors.setStatus('mandatory')
wfApplePortZipInGetNetInfos = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 59), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipInGetNetInfos.setStatus('mandatory')
wfApplePortZipOutGetNetInfoReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 60), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipOutGetNetInfoReplies.setStatus('mandatory')
wfApplePortZipZoneOutInvalids = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 61), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipZoneOutInvalids.setStatus('mandatory')
wfApplePortZipAddressInvalids = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 62), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipAddressInvalids.setStatus('mandatory')
wfApplePortZipOutGetNetInfos = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 63), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipOutGetNetInfos.setStatus('mandatory')
wfApplePortZipInGetNetInfoReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 64), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipInGetNetInfoReplies.setStatus('mandatory')
wfApplePortZipOutZipQueries = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 65), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipOutZipQueries.setStatus('mandatory')
wfApplePortZipInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 66), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortZipInErrors.setStatus('mandatory')
wfApplePortNbpInLookUpRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 67), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortNbpInLookUpRequests.setStatus('mandatory')
wfApplePortNbpInLookUpReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 68), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortNbpInLookUpReplies.setStatus('mandatory')
wfApplePortNbpInBroadcastRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 69), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortNbpInBroadcastRequests.setStatus('mandatory')
wfApplePortNbpInForwardRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 70), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortNbpInForwardRequests.setStatus('mandatory')
wfApplePortNbpOutLookUpRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 71), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortNbpOutLookUpRequests.setStatus('mandatory')
wfApplePortNbpOutLookUpReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 72), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortNbpOutLookUpReplies.setStatus('mandatory')
wfApplePortNbpOutBroadcastRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 73), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortNbpOutBroadcastRequests.setStatus('mandatory')
wfApplePortNbpOutForwardRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 74), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortNbpOutForwardRequests.setStatus('mandatory')
wfApplePortNbpRegistrationFailures = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 75), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortNbpRegistrationFailures.setStatus('mandatory')
wfApplePortNbpInErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 76), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortNbpInErrors.setStatus('mandatory')
wfApplePortEchoRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 77), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortEchoRequests.setStatus('mandatory')
wfApplePortEchoReplies = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 78), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfApplePortEchoReplies.setStatus('mandatory')
wfApplePortInterfaceCost = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 79), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(15))).clone(namedValues=NamedValues(("cost", 15)))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortInterfaceCost.setStatus('mandatory')
wfApplePortWanBroadcastAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 80), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortWanBroadcastAddress.setStatus('mandatory')
wfApplePortWanSplitHorizonDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 81), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortWanSplitHorizonDisable.setStatus('mandatory')
wfApplePortZoneFilterType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 82), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("allow", 1), ("deny", 2), ("partallow", 3), ("partdeny", 4))).clone('deny')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortZoneFilterType.setStatus('mandatory')
wfApplePortMacIPDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 83), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfApplePortMacIPDisable.setStatus('mandatory')
wfAppleLclZoneTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4), )
if mibBuilder.loadTexts: wfAppleLclZoneTable.setStatus('mandatory')
wfAppleLclZoneEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleLclZonePortCircuit"), (0, "Wellfleet-AT-MIB", "wfAppleLclZoneIndex"))
if mibBuilder.loadTexts: wfAppleLclZoneEntry.setStatus('mandatory')
wfAppleLclZoneDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleLclZoneDelete.setStatus('mandatory')
wfAppleLclZonePortCircuit = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleLclZonePortCircuit.setStatus('mandatory')
wfAppleLclZoneIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleLclZoneIndex.setStatus('mandatory')
wfAppleLclZoneName = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 4), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleLclZoneName.setStatus('mandatory')
wfAppleAarpTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5), )
if mibBuilder.loadTexts: wfAppleAarpTable.setStatus('mandatory')
wfAppleAarpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleAarpNet"), (0, "Wellfleet-AT-MIB", "wfAppleAarpNode"), (0, "Wellfleet-AT-MIB", "wfAppleAarpIfIndex"))
if mibBuilder.loadTexts: wfAppleAarpEntry.setStatus('mandatory')
wfAppleAarpIfIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAarpIfIndex.setStatus('mandatory')
wfAppleAarpNet = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAarpNet.setStatus('mandatory')
wfAppleAarpNode = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAarpNode.setStatus('mandatory')
wfAppleAarpPhysAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 4), OctetString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAarpPhysAddress.setStatus('mandatory')
wfAppleZipTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6), )
if mibBuilder.loadTexts: wfAppleZipTable.setStatus('mandatory')
wfAppleZipEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleZipZoneNetStart"), (0, "Wellfleet-AT-MIB", "wfAppleZipIndex"))
if mibBuilder.loadTexts: wfAppleZipEntry.setStatus('mandatory')
wfAppleZipZoneNetStart = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 1), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleZipZoneNetStart.setStatus('mandatory')
wfAppleZipZoneNetEnd = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 2), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleZipZoneNetEnd.setStatus('mandatory')
wfAppleZipIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 3), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleZipIndex.setStatus('mandatory')
wfAppleZipZoneName = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 4), DisplayString()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleZipZoneName.setStatus('mandatory')
wfAppleZipZoneState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("valid", 1), ("invalid", 2)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleZipZoneState.setStatus('mandatory')
wfAppleZoneFilterTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7), )
if mibBuilder.loadTexts: wfAppleZoneFilterTable.setStatus('mandatory')
wfAppleZoneFilterEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleZoneFilterIndex"))
if mibBuilder.loadTexts: wfAppleZoneFilterEntry.setStatus('mandatory')
wfAppleZoneFilterDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleZoneFilterDelete.setStatus('mandatory')
wfAppleZoneFilterCircuit = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 2), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleZoneFilterCircuit.setStatus('mandatory')
wfAppleZoneFilterIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 3), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleZoneFilterIpAddress.setStatus('mandatory')
wfAppleZoneFilterCircuitType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("rtmp", 1), ("aurp", 2))).clone('rtmp')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleZoneFilterCircuitType.setStatus('mandatory')
wfAppleZoneFilterIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 5), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleZoneFilterIndex.setStatus('mandatory')
wfAppleZoneFilterName = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 6), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleZoneFilterName.setStatus('mandatory')
wfAppleAurpBase = MibIdentifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8))
wfAppleAurpBaseDelete = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpBaseDelete.setStatus('mandatory')
wfAppleAurpBaseDisable = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpBaseDisable.setStatus('mandatory')
wfAppleAurpBaseState = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("up", 1), ("down", 2), ("init", 3), ("notpres", 4))).clone('down')).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpBaseState.setStatus('mandatory')
wfAppleAurpBaseDomain = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 4), OctetString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpBaseDomain.setStatus('mandatory')
wfAppleAurpBaseIpAddress = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 5), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpBaseIpAddress.setStatus('mandatory')
wfAppleAurpBasePromiscuous = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("notpromisc", 1), ("promisc", 2))).clone('notpromisc')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpBasePromiscuous.setStatus('mandatory')
wfAppleAurpBaseInAcceptedOpenReqs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpBaseInAcceptedOpenReqs.setStatus('mandatory')
wfAppleAurpBaseInRejectedOpenReqs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpBaseInRejectedOpenReqs.setStatus('mandatory')
wfAppleAurpBaseInRouterDowns = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpBaseInRouterDowns.setStatus('mandatory')
wfAppleAurpBaseInPktsNoPeers = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpBaseInPktsNoPeers.setStatus('mandatory')
wfAppleAurpBaseInInvalidVerions = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpBaseInInvalidVerions.setStatus('mandatory')
wfAppleAurpTable = MibTable((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9), )
if mibBuilder.loadTexts: wfAppleAurpTable.setStatus('mandatory')
wfAppleAurpEntry = MibTableRow((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1), ).setIndexNames((0, "Wellfleet-AT-MIB", "wfAppleAurpEntryIpAddress"))
if mibBuilder.loadTexts: wfAppleAurpEntry.setStatus('mandatory')
wfAppleAurpEntryDelete = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 1), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("created", 1), ("deleted", 2))).clone('created')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpEntryDelete.setStatus('mandatory')
wfAppleAurpEntryDisable = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('enabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpEntryDisable.setStatus('mandatory')
wfAppleAurpEntryState = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("up", 1), ("down", 2))).clone('down')).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryState.setStatus('mandatory')
wfAppleAurpEntryIpAddress = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 4), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryIpAddress.setStatus('mandatory')
wfAppleAurpEntryZoneFilterType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("allow", 1), ("deny", 2), ("partallow", 3), ("partdeny", 4))).clone('deny')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpEntryZoneFilterType.setStatus('mandatory')
wfAppleAurpEntryTimeoutCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 1000)).clone(3)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpEntryTimeoutCommand.setStatus('mandatory')
wfAppleAurpEntryRetryCommand = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 100)).clone(3)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpEntryRetryCommand.setStatus('mandatory')
wfAppleAurpEntryUpdateRate = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(10, 604800)).clone(30)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpEntryUpdateRate.setStatus('mandatory')
wfAppleAurpEntryLhfTimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 9), Integer32().subtype(subtypeSpec=ValueRangeConstraint(30, 31536000)).clone(90)).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpEntryLhfTimeout.setStatus('mandatory')
wfAppleAurpEntryHopCountReduction = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 10), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("enabled", 1), ("disabled", 2))).clone('disabled')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpEntryHopCountReduction.setStatus('mandatory')
wfAppleAurpEntryInterfaceCost = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 11), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpEntryInterfaceCost.setStatus('mandatory')
wfAppleAurpEntrySuiFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 12), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(30720))).clone(namedValues=NamedValues(("all", 30720))).clone('all')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpEntrySuiFlags.setStatus('mandatory')
wfAppleAurpEntryType = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 13), Integer32()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpEntryType.setStatus('mandatory')
wfAppleAurpEntryPeerDomainId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 14), IpAddress()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryPeerDomainId.setStatus('mandatory')
wfAppleAurpEntryPeerUpdateRate = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 15), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryPeerUpdateRate.setStatus('mandatory')
wfAppleAurpEntryPeerEnvironment = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 16), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryPeerEnvironment.setStatus('mandatory')
wfAppleAurpEntryPeerSuiFlags = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 17), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryPeerSuiFlags.setStatus('mandatory')
wfAppleAurpEntryCliConnId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 18), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryCliConnId.setStatus('mandatory')
wfAppleAurpEntrySrvConnId = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 19), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntrySrvConnId.setStatus('mandatory')
wfAppleAurpEntryCliSeqNum = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 20), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryCliSeqNum.setStatus('mandatory')
wfAppleAurpEntrySrvSeqNum = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 21), Integer32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntrySrvSeqNum.setStatus('mandatory')
wfAppleAurpEntryCommandRetries = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 22), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryCommandRetries.setStatus('mandatory')
wfAppleAurpEntryInDelayedDuplicates = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 23), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInDelayedDuplicates.setStatus('mandatory')
wfAppleAurpEntryInInvalidConnIds = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 24), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInInvalidConnIds.setStatus('mandatory')
wfAppleAurpEntryInInvalidCommands = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 25), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInInvalidCommands.setStatus('mandatory')
wfAppleAurpEntryInInvalidSubCodes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 26), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInInvalidSubCodes.setStatus('mandatory')
wfAppleAurpEntryInPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 27), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInPkts.setStatus('mandatory')
wfAppleAurpEntryOutPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 28), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutPkts.setStatus('mandatory')
wfAppleAurpEntryInDdpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 29), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInDdpPkts.setStatus('mandatory')
wfAppleAurpEntryOutDdpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 30), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutDdpPkts.setStatus('mandatory')
wfAppleAurpEntryOutNoRoutes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 31), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutNoRoutes.setStatus('mandatory')
wfAppleAurpEntryHopCountErrors = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 32), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryHopCountErrors.setStatus('mandatory')
wfAppleAurpEntryHopCountAdjustments = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 33), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryHopCountAdjustments.setStatus('mandatory')
wfAppleAurpEntryInAurpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 34), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInAurpPkts.setStatus('mandatory')
wfAppleAurpEntryOutAurpPkts = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 35), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutAurpPkts.setStatus('mandatory')
wfAppleAurpEntryInOpenRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 36), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInOpenRequests.setStatus('mandatory')
wfAppleAurpEntryOutOpenRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 37), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutOpenRequests.setStatus('mandatory')
wfAppleAurpEntryInOpenResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 38), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInOpenResponses.setStatus('mandatory')
wfAppleAurpEntryOutOpenResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 39), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutOpenResponses.setStatus('mandatory')
wfAppleAurpEntryInRiRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 40), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInRiRequests.setStatus('mandatory')
wfAppleAurpEntryOutRiRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 41), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutRiRequests.setStatus('mandatory')
wfAppleAurpEntryInRiResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 42), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInRiResponses.setStatus('mandatory')
wfAppleAurpEntryOutRiResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 43), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutRiResponses.setStatus('mandatory')
wfAppleAurpEntryInRiAcks = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 44), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInRiAcks.setStatus('mandatory')
wfAppleAurpEntryOutRiAcks = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 45), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutRiAcks.setStatus('mandatory')
wfAppleAurpEntryInRiUpdates = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 46), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInRiUpdates.setStatus('mandatory')
wfAppleAurpEntryOutRiUpdates = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 47), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutRiUpdates.setStatus('mandatory')
wfAppleAurpEntryInUpdateNullEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 48), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNullEvents.setStatus('mandatory')
wfAppleAurpEntryOutUpdateNullEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 49), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNullEvents.setStatus('mandatory')
wfAppleAurpEntryInUpdateNetAdds = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 50), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetAdds.setStatus('mandatory')
wfAppleAurpEntryOutUpdateNetAdds = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 51), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetAdds.setStatus('mandatory')
wfAppleAurpEntryInUpdateNetDeletes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 52), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetDeletes.setStatus('mandatory')
wfAppleAurpEntryOutUpdateNetDeletes = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 53), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetDeletes.setStatus('mandatory')
wfAppleAurpEntryInUpdateNetRouteChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 54), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetRouteChanges.setStatus('mandatory')
wfAppleAurpEntryOutUpdateNetRouteChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 55), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetRouteChanges.setStatus('mandatory')
wfAppleAurpEntryInUpdateNetDistanceChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 56), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateNetDistanceChanges.setStatus('mandatory')
wfAppleAurpEntryOutUpdateNetDistanceChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 57), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateNetDistanceChanges.setStatus('mandatory')
wfAppleAurpEntryInUpdateZoneChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 58), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateZoneChanges.setStatus('mandatory')
wfAppleAurpEntryOutUpdateZoneChanges = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 59), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateZoneChanges.setStatus('mandatory')
wfAppleAurpEntryInUpdateInvalidEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 60), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInUpdateInvalidEvents.setStatus('mandatory')
wfAppleAurpEntryOutUpdateInvalidEvents = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 61), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutUpdateInvalidEvents.setStatus('mandatory')
wfAppleAurpEntryInZiRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 62), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInZiRequests.setStatus('mandatory')
wfAppleAurpEntryOutZiRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 63), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutZiRequests.setStatus('mandatory')
wfAppleAurpEntryInZiResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 64), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInZiResponses.setStatus('mandatory')
wfAppleAurpEntryOutZiResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 65), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutZiResponses.setStatus('mandatory')
wfAppleAurpEntryInGdzlRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 66), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInGdzlRequests.setStatus('mandatory')
wfAppleAurpEntryOutGdzlRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 67), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutGdzlRequests.setStatus('mandatory')
wfAppleAurpEntryInGdzlResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 68), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInGdzlResponses.setStatus('mandatory')
wfAppleAurpEntryOutGdzlResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 69), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutGdzlResponses.setStatus('mandatory')
wfAppleAurpEntryInGznRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 70), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInGznRequests.setStatus('mandatory')
wfAppleAurpEntryOutGznRequests = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 71), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutGznRequests.setStatus('mandatory')
wfAppleAurpEntryInGznResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 72), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInGznResponses.setStatus('mandatory')
wfAppleAurpEntryOutGznResponses = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 73), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutGznResponses.setStatus('mandatory')
wfAppleAurpEntryInTickles = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 74), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInTickles.setStatus('mandatory')
wfAppleAurpEntryOutTickles = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 75), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutTickles.setStatus('mandatory')
wfAppleAurpEntryInTickleAcks = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 76), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInTickleAcks.setStatus('mandatory')
wfAppleAurpEntryOutTickleAcks = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 77), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutTickleAcks.setStatus('mandatory')
wfAppleAurpEntryInRouterDowns = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 78), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryInRouterDowns.setStatus('mandatory')
wfAppleAurpEntryOutRouterDowns = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 79), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAurpEntryOutRouterDowns.setStatus('mandatory')
wfAppleAurpEntryZoneFiltDfltZone = MibTableColumn((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 80), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: wfAppleAurpEntryZoneFiltDfltZone.setStatus('mandatory')
wfAppleAggrStats = MibIdentifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10))
wfAppleAggrInPkts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 1), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAggrInPkts.setStatus('mandatory')
wfAppleAggrOutPkts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 2), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAggrOutPkts.setStatus('mandatory')
wfAppleAggrFwdDatagrams = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 3), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAggrFwdDatagrams.setStatus('mandatory')
wfAppleAggrInXsumErrs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 4), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAggrInXsumErrs.setStatus('mandatory')
wfAppleAggrInHopCountErrs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 5), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAggrInHopCountErrs.setStatus('mandatory')
wfAppleAggrInTooShorts = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 6), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAggrInTooShorts.setStatus('mandatory')
wfAppleAggrInTooLongs = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 7), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAggrInTooLongs.setStatus('mandatory')
wfAppleAggrOutNoRoutes = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 8), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAggrOutNoRoutes.setStatus('mandatory')
wfAppleAggrInLocalDests = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 9), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAggrInLocalDests.setStatus('mandatory')
wfAppleAggrInRtmps = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 10), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAggrInRtmps.setStatus('mandatory')
wfAppleAggrOutRtmps = MibScalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 11), Counter32()).setMaxAccess("readonly")
if mibBuilder.loadTexts: wfAppleAggrOutRtmps.setStatus('mandatory')
mibBuilder.exportSymbols("Wellfleet-AT-MIB", wfAppleZipZoneNetStart=wfAppleZipZoneNetStart, wfAppleAurpEntryOutRiAcks=wfAppleAurpEntryOutRiAcks, wfAppleBaseEstimatedHosts=wfAppleBaseEstimatedHosts, wfApplePortAarpRspTxs=wfApplePortAarpRspTxs, wfAppleAurpBaseDomain=wfAppleAurpBaseDomain, wfAppleAurpEntryInRiUpdates=wfAppleAurpEntryInRiUpdates, wfAppleAurpEntryOutGznRequests=wfAppleAurpEntryOutGznRequests, wfAppleZoneFilterCircuitType=wfAppleZoneFilterCircuitType, wfApplePortZipInZipQueries=wfApplePortZipInZipQueries, wfApplePortNodeId=wfApplePortNodeId, wfApplePortAarpProbeTxs=wfApplePortAarpProbeTxs, wfAppleAurpEntryInUpdateNullEvents=wfAppleAurpEntryInUpdateNullEvents, wfAppleAurpEntryOutUpdateInvalidEvents=wfAppleAurpEntryOutUpdateInvalidEvents, wfApplePortWanBroadcastAddress=wfApplePortWanBroadcastAddress, wfAppleAurpBasePromiscuous=wfAppleAurpBasePromiscuous, wfApplePortEntry=wfApplePortEntry, wfApplePortNetStart=wfApplePortNetStart, wfAppleAurpEntryLhfTimeout=wfAppleAurpEntryLhfTimeout, wfAppleAurpEntryPeerUpdateRate=wfAppleAurpEntryPeerUpdateRate, wfAppleAarpNet=wfAppleAarpNet, wfAppleAurpEntryRetryCommand=wfAppleAurpEntryRetryCommand, wfAppleAurpEntryInDdpPkts=wfAppleAurpEntryInDdpPkts, wfAppleAurpEntryState=wfAppleAurpEntryState, wfAppleAggrInTooLongs=wfAppleAggrInTooLongs, wfMacIPLowerIpAddress2=wfMacIPLowerIpAddress2, wfAppleAurpEntryInTickleAcks=wfAppleAurpEntryInTickleAcks, wfApplePortZipInGetNetInfos=wfApplePortZipInGetNetInfos, wfAppleBaseState=wfAppleBaseState, wfAppleAggrInRtmps=wfAppleAggrInRtmps, wfAppleAurpBaseDelete=wfAppleAurpBaseDelete, wfAppleLclZoneIndex=wfAppleLclZoneIndex, wfApplePortAarpReqTxs=wfApplePortAarpReqTxs, wfAppleZoneFilterEntry=wfAppleZoneFilterEntry, wfApplePortDdpForwRequests=wfApplePortDdpForwRequests, wfAppleAurpEntry=wfAppleAurpEntry, wfApplePortInterfaceCost=wfApplePortInterfaceCost, wfAppleBaseTotalZones=wfAppleBaseTotalZones, wfAppleAurpEntryInUpdateInvalidEvents=wfAppleAurpEntryInUpdateInvalidEvents, wfApplePortCircuit=wfApplePortCircuit, wfAppleMacIPBaseDelete=wfAppleMacIPBaseDelete, wfAppleAurpEntryOutOpenRequests=wfAppleAurpEntryOutOpenRequests, wfAppleAggrOutNoRoutes=wfAppleAggrOutNoRoutes, wfAppleZoneFilterTable=wfAppleZoneFilterTable, wfApplePortGniForever=wfApplePortGniForever, wfApplePortNbpInBroadcastRequests=wfApplePortNbpInBroadcastRequests, wfAppleAurpEntryOutUpdateNullEvents=wfAppleAurpEntryOutUpdateNullEvents, wfApplePortZipOutGetNetInfos=wfApplePortZipOutGetNetInfos, wfAppleLclZoneTable=wfAppleLclZoneTable, wfMacIPAddress2=wfMacIPAddress2, wfAppleAurpEntryInInvalidCommands=wfAppleAurpEntryInInvalidCommands, wfAppleAurpEntryInAurpPkts=wfAppleAurpEntryInAurpPkts, wfAppleAurpEntryOutOpenResponses=wfAppleAurpEntryOutOpenResponses, wfAppleAurpEntryInGdzlResponses=wfAppleAurpEntryInGdzlResponses, wfApplePortDdpOutNoRoutes=wfApplePortDdpOutNoRoutes, wfAppleZipEntry=wfAppleZipEntry, wfAppleAurpBaseInRejectedOpenReqs=wfAppleAurpBaseInRejectedOpenReqs, wfApplePortDdpInLocalDatagrams=wfApplePortDdpInLocalDatagrams, wfApplePortCurNetEnd=wfApplePortCurNetEnd, wfAppleLclZoneName=wfAppleLclZoneName, wfAppleAurpBaseInInvalidVerions=wfAppleAurpBaseInInvalidVerions, wfAppleAurpEntryOutRiRequests=wfAppleAurpEntryOutRiRequests, wfAppleAggrOutRtmps=wfAppleAggrOutRtmps, wfApplePortDdpBroadcastErrors=wfApplePortDdpBroadcastErrors, wfAppleAurpBaseInRouterDowns=wfAppleAurpBaseInRouterDowns, wfAppleAurpBaseInPktsNoPeers=wfAppleAurpBaseInPktsNoPeers, wfApplePortZipAddressInvalids=wfApplePortZipAddressInvalids, wfAppleAurpEntryInGznResponses=wfAppleAurpEntryInGznResponses, wfApplePortRtmpRouteDeletes=wfApplePortRtmpRouteDeletes, wfAppleZipIndex=wfAppleZipIndex, wfApplePortDelete=wfApplePortDelete, wfAppleAurpEntryInRiResponses=wfAppleAurpEntryInRiResponses, wfApplePortTrEndStation=wfApplePortTrEndStation, wfAppleAurpEntryOutUpdateZoneChanges=wfAppleAurpEntryOutUpdateZoneChanges, wfAppleAurpEntryInGdzlRequests=wfAppleAurpEntryInGdzlRequests, wfApplePortDdpTooLongErrors=wfApplePortDdpTooLongErrors, wfAppleAarpNode=wfAppleAarpNode, wfAppleRtmpHops=wfAppleRtmpHops, wfAppleBaseTotalAarpEntries=wfAppleBaseTotalAarpEntries, wfApplePortRtmpInDataPkts=wfApplePortRtmpInDataPkts, wfAppleAurpBaseInAcceptedOpenReqs=wfAppleAurpBaseInAcceptedOpenReqs, wfAppleAurpEntryHopCountReduction=wfAppleAurpEntryHopCountReduction, wfApplePortDdpOutRequests=wfApplePortDdpOutRequests, wfApplePortNbpInLookUpRequests=wfApplePortNbpInLookUpRequests, wfAppleAurpEntryOutUpdateNetAdds=wfAppleAurpEntryOutUpdateNetAdds, wfApplePortZipOutZipReplies=wfApplePortZipOutZipReplies, wfAppleAurpEntryOutPkts=wfAppleAurpEntryOutPkts, wfApplePortZipInGetZoneLists=wfApplePortZipInGetZoneLists, wfAppleAurpEntryCliSeqNum=wfAppleAurpEntryCliSeqNum, wfAppleAurpEntryPeerDomainId=wfAppleAurpEntryPeerDomainId, wfAppleAurpEntryHopCountAdjustments=wfAppleAurpEntryHopCountAdjustments, wfApplePortRtmpNextIREqualChanges=wfApplePortRtmpNextIREqualChanges, wfAppleAurpEntryOutRiResponses=wfAppleAurpEntryOutRiResponses, wfAppleAarpEntry=wfAppleAarpEntry, wfApplePortRtmpNetworkMismatchErrors=wfApplePortRtmpNetworkMismatchErrors, wfAppleAurpEntryInUpdateZoneChanges=wfAppleAurpEntryInUpdateZoneChanges, wfApplePortZipInGetLocalZones=wfApplePortZipInGetLocalZones, wfAppleMacIPBaseDisable=wfAppleMacIPBaseDisable, wfAppleAurpBaseIpAddress=wfAppleAurpBaseIpAddress, wfAppleAurpEntryDisable=wfAppleAurpEntryDisable, wfAppleAurpEntryInOpenRequests=wfAppleAurpEntryInOpenRequests, wfApplePortState=wfApplePortState, wfMacIPAddress1=wfMacIPAddress1, wfAppleAggrStats=wfAppleAggrStats, wfMacIPUpperIpAddress3=wfMacIPUpperIpAddress3, wfApplePortRtmpRoutingTableOverflows=wfApplePortRtmpRoutingTableOverflows, wfAppleAurpEntryInRiAcks=wfAppleAurpEntryInRiAcks, wfAppleAurpEntryOutZiResponses=wfAppleAurpEntryOutZiResponses, wfApplePortAarpReqRxs=wfApplePortAarpReqRxs, wfApplePortCurNodeId=wfApplePortCurNodeId, wfApplePortDdpChecksumErrors=wfApplePortDdpChecksumErrors, wfAppleZipZoneName=wfAppleZipZoneName, wfApplePortEchoReplies=wfApplePortEchoReplies, wfMacIPAddress3=wfMacIPAddress3, wfApplePortMacAddress=wfApplePortMacAddress, wfAppleZoneFilterDelete=wfAppleZoneFilterDelete, wfApplePortRtmpInRequestPkts=wfApplePortRtmpInRequestPkts, wfApplePortNbpOutForwardRequests=wfApplePortNbpOutForwardRequests, wfAppleAurpEntryPeerSuiFlags=wfAppleAurpEntryPeerSuiFlags, wfAppleZoneFilterIpAddress=wfAppleZoneFilterIpAddress, wfAppleAurpEntryOutZiRequests=wfAppleAurpEntryOutZiRequests, wfAppleLclZoneDelete=wfAppleLclZoneDelete, wfAppleAurpEntryInUpdateNetAdds=wfAppleAurpEntryInUpdateNetAdds, wfAppleMacIPServerResponces=wfAppleMacIPServerResponces, wfApplePortCurNetStart=wfApplePortCurNetStart, wfApplePortZipOutZipExtendedReplies=wfApplePortZipOutZipExtendedReplies, wfApplePortCksumDisable=wfApplePortCksumDisable, wfAppleRtmpPort=wfAppleRtmpPort, wfAppleRtmpNetEnd=wfAppleRtmpNetEnd, wfApplePortNbpOutBroadcastRequests=wfApplePortNbpOutBroadcastRequests, wfAppleAurpEntryZoneFiltDfltZone=wfAppleAurpEntryZoneFiltDfltZone, wfAppleBaseTotalNets=wfAppleBaseTotalNets, wfAppleAurpEntryCliConnId=wfAppleAurpEntryCliConnId, wfAppleZoneFilterName=wfAppleZoneFilterName, wfAppleAurpEntrySrvSeqNum=wfAppleAurpEntrySrvSeqNum, wfAppleAurpEntryInInvalidConnIds=wfAppleAurpEntryInInvalidConnIds, wfApplePortDisable=wfApplePortDisable, wfApplePortZipOutZipQueries=wfApplePortZipOutZipQueries, wfApplePortType=wfApplePortType, wfApplePortNbpInLookUpReplies=wfApplePortNbpInLookUpReplies, wfApplePortWanSplitHorizonDisable=wfApplePortWanSplitHorizonDisable, wfAppleRtmpTable=wfAppleRtmpTable, wfAppleAurpBaseDisable=wfAppleAurpBaseDisable, wfAppleAurpEntryCommandRetries=wfAppleAurpEntryCommandRetries, wfAppleRtmpNetStart=wfAppleRtmpNetStart, wfApplePortZipZoneConflictErrors=wfApplePortZipZoneConflictErrors, wfAppleAurpEntryOutRiUpdates=wfAppleAurpEntryOutRiUpdates, wfApplePortEchoRequests=wfApplePortEchoRequests, wfAppleAurpEntryOutRouterDowns=wfAppleAurpEntryOutRouterDowns, wfApplePortAarpProbeRxs=wfApplePortAarpProbeRxs, wfAppleBaseDebugLevel=wfAppleBaseDebugLevel, wfAppleBaseDdpQueLen=wfAppleBaseDdpQueLen, wfAppleMacIPZone=wfAppleMacIPZone, wfApplePortTable=wfApplePortTable, wfMacIPLowerIpAddress1=wfMacIPLowerIpAddress1, wfAppleRtmpEntry=wfAppleRtmpEntry, wfAppleAurpEntryOutAurpPkts=wfAppleAurpEntryOutAurpPkts, wfAppleLclZonePortCircuit=wfAppleLclZonePortCircuit, wfAppleBaseDelete=wfAppleBaseDelete, wfApplePortZipZoneOutInvalids=wfApplePortZipZoneOutInvalids, wfAppleRtmpProto=wfAppleRtmpProto, wfApplePortZipInZipExtendedReplies=wfApplePortZipInZipExtendedReplies, wfApplePortMacIPDisable=wfApplePortMacIPDisable, wfAppleAurpEntryOutTickles=wfAppleAurpEntryOutTickles, wfAppleRtmpAurpNextHopIpAddress=wfAppleRtmpAurpNextHopIpAddress, wfAppleAurpEntryInZiResponses=wfAppleAurpEntryInZiResponses, wfApplePortDdpNoProtocolHandlers=wfApplePortDdpNoProtocolHandlers, wfMacIPUpperIpAddress1=wfMacIPUpperIpAddress1, wfAppleZipZoneNetEnd=wfAppleZipZoneNetEnd, wfAppleMacIPAddressTimeOut=wfAppleMacIPAddressTimeOut, wfAppleAurpEntryInDelayedDuplicates=wfAppleAurpEntryInDelayedDuplicates, wfAppleAggrInPkts=wfAppleAggrInPkts, wfAppleAurpBase=wfAppleAurpBase, wfAppleAurpEntryInZiRequests=wfAppleAurpEntryInZiRequests, wfApplePortNbpInForwardRequests=wfApplePortNbpInForwardRequests, wfApplePortNbpInErrors=wfApplePortNbpInErrors, wfAppleZoneFilterCircuit=wfAppleZoneFilterCircuit, wfAppleAurpEntryPeerEnvironment=wfAppleAurpEntryPeerEnvironment, wfAppleLclZoneEntry=wfAppleLclZoneEntry, wfAppleAurpEntryInTickles=wfAppleAurpEntryInTickles, wfAppleAurpEntryInUpdateNetDeletes=wfAppleAurpEntryInUpdateNetDeletes, wfAppleAurpEntryOutNoRoutes=wfAppleAurpEntryOutNoRoutes, wfApplePortDdpInReceives=wfApplePortDdpInReceives, wfAppleZoneFilterIndex=wfAppleZoneFilterIndex, wfAppleBaseHomedPort=wfAppleBaseHomedPort, wfApplePortZoneFilterType=wfApplePortZoneFilterType, wfAppleBaseTotalZoneNames=wfAppleBaseTotalZoneNames, wfApplePortCurMacAddress=wfApplePortCurMacAddress, wfAppleAurpEntryIpAddress=wfAppleAurpEntryIpAddress, wfAppleAggrInTooShorts=wfAppleAggrInTooShorts, wfApplePortZipInZipReplies=wfApplePortZipInZipReplies, wfApplePortZipOutGetLocalZoneReplies=wfApplePortZipOutGetLocalZoneReplies, wfMacIPUpperIpAddress2=wfMacIPUpperIpAddress2, wfAppleAurpEntryInUpdateNetRouteChanges=wfAppleAurpEntryInUpdateNetRouteChanges, wfAppleAggrInHopCountErrs=wfAppleAggrInHopCountErrs, wfAppleZipTable=wfAppleZipTable, wfAppleAurpEntryInPkts=wfAppleAurpEntryInPkts, wfAppleAurpBaseState=wfAppleAurpBaseState, wfApplePortNetwork=wfApplePortNetwork, wfApplePortZipInErrors=wfApplePortZipInErrors, wfAppleBase=wfAppleBase, wfApplePortAarpRspRxs=wfApplePortAarpRspRxs, wfAppleAurpEntryOutDdpPkts=wfAppleAurpEntryOutDdpPkts, wfMacIPLowerIpAddress3=wfMacIPLowerIpAddress3, wfAppleAurpTable=wfAppleAurpTable, wfAppleAurpEntryInRiRequests=wfAppleAurpEntryInRiRequests, wfAppleAggrInXsumErrs=wfAppleAggrInXsumErrs, wfApplePortCurNetwork=wfApplePortCurNetwork, wfApplePortZipOutGetZoneListReplies=wfApplePortZipOutGetZoneListReplies, wfApplePortZipOutGetMyZoneReplies=wfApplePortZipOutGetMyZoneReplies, wfAppleRtmpNextHopNet=wfAppleRtmpNextHopNet, wfAppleAggrInLocalDests=wfAppleAggrInLocalDests, wfApplePortNetEnd=wfApplePortNetEnd, wfAppleBaseEstimatedNets=wfAppleBaseEstimatedNets, wfAppleAurpEntryInterfaceCost=wfAppleAurpEntryInterfaceCost, wfAppleAurpEntryInOpenResponses=wfAppleAurpEntryInOpenResponses, wfAppleAurpEntryOutGdzlRequests=wfAppleAurpEntryOutGdzlRequests, wfAppleAurpEntryOutUpdateNetDistanceChanges=wfAppleAurpEntryOutUpdateNetDistanceChanges, wfAppleAurpEntryHopCountErrors=wfAppleAurpEntryHopCountErrors, wfAppleAurpEntrySrvConnId=wfAppleAurpEntrySrvConnId, wfAppleAarpTable=wfAppleAarpTable, wfAppleAggrOutPkts=wfAppleAggrOutPkts, wfAppleAurpEntryType=wfAppleAurpEntryType, wfAppleAurpEntryDelete=wfAppleAurpEntryDelete, wfApplePortRtmpNextIRLessChanges=wfApplePortRtmpNextIRLessChanges, wfApplePortRtmpOutDataPkts=wfApplePortRtmpOutDataPkts, wfAppleAarpPhysAddress=wfAppleAarpPhysAddress, wfAppleAurpEntryInUpdateNetDistanceChanges=wfAppleAurpEntryInUpdateNetDistanceChanges, wfApplePortDfltZone=wfApplePortDfltZone, wfAppleRtmpState=wfAppleRtmpState, wfAppleAurpEntryUpdateRate=wfAppleAurpEntryUpdateRate, wfAppleRtmpNextHopNode=wfAppleRtmpNextHopNode, wfApplePortZipInGetMyZones=wfApplePortZipInGetMyZones, wfAppleAurpEntryInGznRequests=wfAppleAurpEntryInGznRequests, wfApplePortZipOutGetNetInfoReplies=wfApplePortZipOutGetNetInfoReplies, wfApplePortCurDfltZone=wfApplePortCurDfltZone, wfAppleAurpEntryOutUpdateNetDeletes=wfAppleAurpEntryOutUpdateNetDeletes, wfAppleAurpEntryOutGdzlResponses=wfAppleAurpEntryOutGdzlResponses, wfAppleZipZoneState=wfAppleZipZoneState, wfApplePortAarpFlush=wfApplePortAarpFlush, wfApplePortDdpTooShortErrors=wfApplePortDdpTooShortErrors, wfApplePortZipInGetNetInfoReplies=wfApplePortZipInGetNetInfoReplies, wfAppleAurpEntryTimeoutCommand=wfAppleAurpEntryTimeoutCommand, wfAppleAurpEntryInInvalidSubCodes=wfAppleAurpEntryInInvalidSubCodes, wfAppleAurpEntryOutGznResponses=wfAppleAurpEntryOutGznResponses, wfApplePortNbpOutLookUpReplies=wfApplePortNbpOutLookUpReplies, wfAppleBaseDisable=wfAppleBaseDisable, wfAppleMacIPBaseState=wfAppleMacIPBaseState, wfAppleAurpEntryOutUpdateNetRouteChanges=wfAppleAurpEntryOutUpdateNetRouteChanges, wfAppleAurpEntryInRouterDowns=wfAppleAurpEntryInRouterDowns, wfAppleAarpIfIndex=wfAppleAarpIfIndex, wfAppleAurpEntryZoneFilterType=wfAppleAurpEntryZoneFilterType, wfApplePortDdpHopCountErrors=wfApplePortDdpHopCountErrors, wfAppleAurpEntrySuiFlags=wfAppleAurpEntrySuiFlags, wfApplePortNbpOutLookUpRequests=wfApplePortNbpOutLookUpRequests)
mibBuilder.exportSymbols("Wellfleet-AT-MIB", wfAppleAurpEntryOutTickleAcks=wfAppleAurpEntryOutTickleAcks, wfAppleMacIPServerRequests=wfAppleMacIPServerRequests, wfAppleAggrFwdDatagrams=wfAppleAggrFwdDatagrams, wfApplePortNbpRegistrationFailures=wfApplePortNbpRegistrationFailures)
| (integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(value_size_constraint, single_value_constraint, value_range_constraint, constraints_union, constraints_intersection) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ValueRangeConstraint', 'ConstraintsUnion', 'ConstraintsIntersection')
(notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance')
(object_identity, mib_identifier, module_identity, bits, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, gauge32, time_ticks, integer32, unsigned32, ip_address, counter64, notification_type, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'ObjectIdentity', 'MibIdentifier', 'ModuleIdentity', 'Bits', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Gauge32', 'TimeTicks', 'Integer32', 'Unsigned32', 'IpAddress', 'Counter64', 'NotificationType', 'Counter32')
(display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention')
(wf_appletalk_group,) = mibBuilder.importSymbols('Wellfleet-COMMON-MIB', 'wfAppletalkGroup')
wf_apple_base = mib_identifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1))
wf_apple_base_delete = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleBaseDelete.setStatus('mandatory')
wf_apple_base_disable = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleBaseDisable.setStatus('mandatory')
wf_apple_base_state = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3), ('notpres', 4))).clone('down')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleBaseState.setStatus('mandatory')
wf_apple_base_debug_level = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 4), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleBaseDebugLevel.setStatus('mandatory')
wf_apple_base_ddp_que_len = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 5), integer32().subtype(subtypeSpec=value_range_constraint(10, 2147483647)).clone(20)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleBaseDdpQueLen.setStatus('mandatory')
wf_apple_base_homed_port = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 6), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleBaseHomedPort.setStatus('mandatory')
wf_apple_base_total_nets = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 7), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleBaseTotalNets.setStatus('mandatory')
wf_apple_base_total_zones = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 8), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleBaseTotalZones.setStatus('mandatory')
wf_apple_base_total_zone_names = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 9), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleBaseTotalZoneNames.setStatus('mandatory')
wf_apple_base_total_aarp_entries = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 10), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleBaseTotalAarpEntries.setStatus('mandatory')
wf_apple_base_estimated_nets = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 11), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleBaseEstimatedNets.setStatus('mandatory')
wf_apple_base_estimated_hosts = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 12), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleBaseEstimatedHosts.setStatus('mandatory')
wf_apple_mac_ip_base_delete = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 13), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('deleted')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleMacIPBaseDelete.setStatus('mandatory')
wf_apple_mac_ip_base_disable = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 14), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleMacIPBaseDisable.setStatus('mandatory')
wf_apple_mac_ip_base_state = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 15), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3), ('notpres', 4))).clone('down')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleMacIPBaseState.setStatus('mandatory')
wf_apple_mac_ip_zone = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 16), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleMacIPZone.setStatus('mandatory')
wf_mac_ip_address1 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 17), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfMacIPAddress1.setStatus('mandatory')
wf_mac_ip_lower_ip_address1 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 18), integer32().subtype(subtypeSpec=value_range_constraint(1, 254)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfMacIPLowerIpAddress1.setStatus('mandatory')
wf_mac_ip_upper_ip_address1 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 19), integer32().subtype(subtypeSpec=value_range_constraint(1, 254)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfMacIPUpperIpAddress1.setStatus('mandatory')
wf_mac_ip_address2 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 20), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfMacIPAddress2.setStatus('mandatory')
wf_mac_ip_lower_ip_address2 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 21), integer32().subtype(subtypeSpec=value_range_constraint(1, 254)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfMacIPLowerIpAddress2.setStatus('mandatory')
wf_mac_ip_upper_ip_address2 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 22), integer32().subtype(subtypeSpec=value_range_constraint(1, 254)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfMacIPUpperIpAddress2.setStatus('mandatory')
wf_mac_ip_address3 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 23), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfMacIPAddress3.setStatus('mandatory')
wf_mac_ip_lower_ip_address3 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 24), integer32().subtype(subtypeSpec=value_range_constraint(1, 254)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfMacIPLowerIpAddress3.setStatus('mandatory')
wf_mac_ip_upper_ip_address3 = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 25), integer32().subtype(subtypeSpec=value_range_constraint(1, 254)).clone(1)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfMacIPUpperIpAddress3.setStatus('mandatory')
wf_apple_mac_ip_address_time_out = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 26), integer32().subtype(subtypeSpec=value_range_constraint(1, 255)).clone(5)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleMacIPAddressTimeOut.setStatus('mandatory')
wf_apple_mac_ip_server_requests = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 27), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleMacIPServerRequests.setStatus('mandatory')
wf_apple_mac_ip_server_responces = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 1, 28), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleMacIPServerResponces.setStatus('mandatory')
wf_apple_rtmp_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2))
if mibBuilder.loadTexts:
wfAppleRtmpTable.setStatus('mandatory')
wf_apple_rtmp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1)).setIndexNames((0, 'Wellfleet-AT-MIB', 'wfAppleRtmpNetStart'), (0, 'Wellfleet-AT-MIB', 'wfAppleRtmpNetEnd'))
if mibBuilder.loadTexts:
wfAppleRtmpEntry.setStatus('mandatory')
wf_apple_rtmp_net_start = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleRtmpNetStart.setStatus('mandatory')
wf_apple_rtmp_net_end = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleRtmpNetEnd.setStatus('mandatory')
wf_apple_rtmp_port = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleRtmpPort.setStatus('mandatory')
wf_apple_rtmp_hops = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 4), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleRtmpHops.setStatus('mandatory')
wf_apple_rtmp_next_hop_net = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleRtmpNextHopNet.setStatus('mandatory')
wf_apple_rtmp_next_hop_node = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 6), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleRtmpNextHopNode.setStatus('mandatory')
wf_apple_rtmp_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('good', 1), ('suspect', 2), ('goingbad', 3), ('bad', 4)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleRtmpState.setStatus('mandatory')
wf_apple_rtmp_proto = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 8), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3))).clone(namedValues=named_values(('rtmp', 1), ('aurp', 2), ('static', 3)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleRtmpProto.setStatus('mandatory')
wf_apple_rtmp_aurp_next_hop_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 2, 1, 9), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleRtmpAurpNextHopIpAddress.setStatus('mandatory')
wf_apple_port_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3))
if mibBuilder.loadTexts:
wfApplePortTable.setStatus('mandatory')
wf_apple_port_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1)).setIndexNames((0, 'Wellfleet-AT-MIB', 'wfApplePortCircuit'))
if mibBuilder.loadTexts:
wfApplePortEntry.setStatus('mandatory')
wf_apple_port_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortDelete.setStatus('mandatory')
wf_apple_port_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortDisable.setStatus('mandatory')
wf_apple_port_circuit = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortCircuit.setStatus('mandatory')
wf_apple_port_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2))).clone('down')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortState.setStatus('mandatory')
wf_apple_port_type = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 5), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortType.setStatus('mandatory')
wf_apple_port_cksum_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortCksumDisable.setStatus('mandatory')
wf_apple_port_tr_end_station = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 7), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortTrEndStation.setStatus('mandatory')
wf_apple_port_gni_forever = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 8), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortGniForever.setStatus('obsolete')
wf_apple_port_aarp_flush = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 9), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortAarpFlush.setStatus('mandatory')
wf_apple_port_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 10), octet_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortMacAddress.setStatus('mandatory')
wf_apple_port_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 11), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortNodeId.setStatus('mandatory')
wf_apple_port_network = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 12), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortNetwork.setStatus('mandatory')
wf_apple_port_net_start = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 13), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortNetStart.setStatus('mandatory')
wf_apple_port_net_end = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 14), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortNetEnd.setStatus('mandatory')
wf_apple_port_dflt_zone = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 15), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortDfltZone.setStatus('mandatory')
wf_apple_port_cur_mac_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 16), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortCurMacAddress.setStatus('mandatory')
wf_apple_port_cur_node_id = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 17), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortCurNodeId.setStatus('mandatory')
wf_apple_port_cur_network = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 18), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortCurNetwork.setStatus('mandatory')
wf_apple_port_cur_net_start = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 19), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortCurNetStart.setStatus('mandatory')
wf_apple_port_cur_net_end = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 20), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortCurNetEnd.setStatus('mandatory')
wf_apple_port_cur_dflt_zone = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 21), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortCurDfltZone.setStatus('mandatory')
wf_apple_port_aarp_probe_rxs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortAarpProbeRxs.setStatus('mandatory')
wf_apple_port_aarp_probe_txs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortAarpProbeTxs.setStatus('mandatory')
wf_apple_port_aarp_req_rxs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortAarpReqRxs.setStatus('mandatory')
wf_apple_port_aarp_req_txs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortAarpReqTxs.setStatus('mandatory')
wf_apple_port_aarp_rsp_rxs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 26), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortAarpRspRxs.setStatus('mandatory')
wf_apple_port_aarp_rsp_txs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 27), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortAarpRspTxs.setStatus('mandatory')
wf_apple_port_ddp_out_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 28), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortDdpOutRequests.setStatus('mandatory')
wf_apple_port_ddp_in_receives = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 29), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortDdpInReceives.setStatus('mandatory')
wf_apple_port_ddp_in_local_datagrams = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 30), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortDdpInLocalDatagrams.setStatus('mandatory')
wf_apple_port_ddp_no_protocol_handlers = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 31), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortDdpNoProtocolHandlers.setStatus('mandatory')
wf_apple_port_ddp_too_short_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 32), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortDdpTooShortErrors.setStatus('mandatory')
wf_apple_port_ddp_too_long_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 33), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortDdpTooLongErrors.setStatus('mandatory')
wf_apple_port_ddp_checksum_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 34), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortDdpChecksumErrors.setStatus('mandatory')
wf_apple_port_ddp_forw_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 35), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortDdpForwRequests.setStatus('mandatory')
wf_apple_port_ddp_out_no_routes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 36), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortDdpOutNoRoutes.setStatus('mandatory')
wf_apple_port_ddp_broadcast_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 37), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortDdpBroadcastErrors.setStatus('mandatory')
wf_apple_port_ddp_hop_count_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 38), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortDdpHopCountErrors.setStatus('mandatory')
wf_apple_port_rtmp_in_data_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 39), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortRtmpInDataPkts.setStatus('mandatory')
wf_apple_port_rtmp_out_data_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 40), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortRtmpOutDataPkts.setStatus('mandatory')
wf_apple_port_rtmp_in_request_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 41), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortRtmpInRequestPkts.setStatus('mandatory')
wf_apple_port_rtmp_next_ir_equal_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 42), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortRtmpNextIREqualChanges.setStatus('mandatory')
wf_apple_port_rtmp_next_ir_less_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 43), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortRtmpNextIRLessChanges.setStatus('mandatory')
wf_apple_port_rtmp_route_deletes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 44), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortRtmpRouteDeletes.setStatus('mandatory')
wf_apple_port_rtmp_network_mismatch_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 45), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortRtmpNetworkMismatchErrors.setStatus('mandatory')
wf_apple_port_rtmp_routing_table_overflows = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 46), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortRtmpRoutingTableOverflows.setStatus('mandatory')
wf_apple_port_zip_in_zip_queries = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 47), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipInZipQueries.setStatus('mandatory')
wf_apple_port_zip_in_zip_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 48), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipInZipReplies.setStatus('mandatory')
wf_apple_port_zip_out_zip_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 49), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipOutZipReplies.setStatus('mandatory')
wf_apple_port_zip_in_zip_extended_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 50), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipInZipExtendedReplies.setStatus('mandatory')
wf_apple_port_zip_out_zip_extended_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 51), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipOutZipExtendedReplies.setStatus('mandatory')
wf_apple_port_zip_in_get_zone_lists = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 52), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipInGetZoneLists.setStatus('mandatory')
wf_apple_port_zip_out_get_zone_list_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 53), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipOutGetZoneListReplies.setStatus('mandatory')
wf_apple_port_zip_in_get_local_zones = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 54), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipInGetLocalZones.setStatus('mandatory')
wf_apple_port_zip_out_get_local_zone_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 55), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipOutGetLocalZoneReplies.setStatus('mandatory')
wf_apple_port_zip_in_get_my_zones = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 56), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipInGetMyZones.setStatus('obsolete')
wf_apple_port_zip_out_get_my_zone_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 57), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipOutGetMyZoneReplies.setStatus('obsolete')
wf_apple_port_zip_zone_conflict_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 58), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipZoneConflictErrors.setStatus('mandatory')
wf_apple_port_zip_in_get_net_infos = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 59), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipInGetNetInfos.setStatus('mandatory')
wf_apple_port_zip_out_get_net_info_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 60), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipOutGetNetInfoReplies.setStatus('mandatory')
wf_apple_port_zip_zone_out_invalids = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 61), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipZoneOutInvalids.setStatus('mandatory')
wf_apple_port_zip_address_invalids = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 62), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipAddressInvalids.setStatus('mandatory')
wf_apple_port_zip_out_get_net_infos = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 63), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipOutGetNetInfos.setStatus('mandatory')
wf_apple_port_zip_in_get_net_info_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 64), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipInGetNetInfoReplies.setStatus('mandatory')
wf_apple_port_zip_out_zip_queries = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 65), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipOutZipQueries.setStatus('mandatory')
wf_apple_port_zip_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 66), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortZipInErrors.setStatus('mandatory')
wf_apple_port_nbp_in_look_up_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 67), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortNbpInLookUpRequests.setStatus('mandatory')
wf_apple_port_nbp_in_look_up_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 68), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortNbpInLookUpReplies.setStatus('mandatory')
wf_apple_port_nbp_in_broadcast_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 69), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortNbpInBroadcastRequests.setStatus('mandatory')
wf_apple_port_nbp_in_forward_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 70), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortNbpInForwardRequests.setStatus('mandatory')
wf_apple_port_nbp_out_look_up_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 71), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortNbpOutLookUpRequests.setStatus('mandatory')
wf_apple_port_nbp_out_look_up_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 72), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortNbpOutLookUpReplies.setStatus('mandatory')
wf_apple_port_nbp_out_broadcast_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 73), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortNbpOutBroadcastRequests.setStatus('mandatory')
wf_apple_port_nbp_out_forward_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 74), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortNbpOutForwardRequests.setStatus('mandatory')
wf_apple_port_nbp_registration_failures = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 75), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortNbpRegistrationFailures.setStatus('mandatory')
wf_apple_port_nbp_in_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 76), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortNbpInErrors.setStatus('mandatory')
wf_apple_port_echo_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 77), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortEchoRequests.setStatus('mandatory')
wf_apple_port_echo_replies = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 78), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfApplePortEchoReplies.setStatus('mandatory')
wf_apple_port_interface_cost = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 79), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(15))).clone(namedValues=named_values(('cost', 15)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortInterfaceCost.setStatus('mandatory')
wf_apple_port_wan_broadcast_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 80), octet_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortWanBroadcastAddress.setStatus('mandatory')
wf_apple_port_wan_split_horizon_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 81), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortWanSplitHorizonDisable.setStatus('mandatory')
wf_apple_port_zone_filter_type = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 82), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('allow', 1), ('deny', 2), ('partallow', 3), ('partdeny', 4))).clone('deny')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortZoneFilterType.setStatus('mandatory')
wf_apple_port_mac_ip_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 3, 1, 83), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfApplePortMacIPDisable.setStatus('mandatory')
wf_apple_lcl_zone_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4))
if mibBuilder.loadTexts:
wfAppleLclZoneTable.setStatus('mandatory')
wf_apple_lcl_zone_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1)).setIndexNames((0, 'Wellfleet-AT-MIB', 'wfAppleLclZonePortCircuit'), (0, 'Wellfleet-AT-MIB', 'wfAppleLclZoneIndex'))
if mibBuilder.loadTexts:
wfAppleLclZoneEntry.setStatus('mandatory')
wf_apple_lcl_zone_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleLclZoneDelete.setStatus('mandatory')
wf_apple_lcl_zone_port_circuit = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleLclZonePortCircuit.setStatus('mandatory')
wf_apple_lcl_zone_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleLclZoneIndex.setStatus('mandatory')
wf_apple_lcl_zone_name = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 4, 1, 4), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleLclZoneName.setStatus('mandatory')
wf_apple_aarp_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5))
if mibBuilder.loadTexts:
wfAppleAarpTable.setStatus('mandatory')
wf_apple_aarp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1)).setIndexNames((0, 'Wellfleet-AT-MIB', 'wfAppleAarpNet'), (0, 'Wellfleet-AT-MIB', 'wfAppleAarpNode'), (0, 'Wellfleet-AT-MIB', 'wfAppleAarpIfIndex'))
if mibBuilder.loadTexts:
wfAppleAarpEntry.setStatus('mandatory')
wf_apple_aarp_if_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAarpIfIndex.setStatus('mandatory')
wf_apple_aarp_net = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAarpNet.setStatus('mandatory')
wf_apple_aarp_node = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAarpNode.setStatus('mandatory')
wf_apple_aarp_phys_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 5, 1, 4), octet_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAarpPhysAddress.setStatus('mandatory')
wf_apple_zip_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6))
if mibBuilder.loadTexts:
wfAppleZipTable.setStatus('mandatory')
wf_apple_zip_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1)).setIndexNames((0, 'Wellfleet-AT-MIB', 'wfAppleZipZoneNetStart'), (0, 'Wellfleet-AT-MIB', 'wfAppleZipIndex'))
if mibBuilder.loadTexts:
wfAppleZipEntry.setStatus('mandatory')
wf_apple_zip_zone_net_start = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 1), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleZipZoneNetStart.setStatus('mandatory')
wf_apple_zip_zone_net_end = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 2), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleZipZoneNetEnd.setStatus('mandatory')
wf_apple_zip_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 3), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleZipIndex.setStatus('mandatory')
wf_apple_zip_zone_name = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 4), display_string()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleZipZoneName.setStatus('mandatory')
wf_apple_zip_zone_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 6, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('valid', 1), ('invalid', 2)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleZipZoneState.setStatus('mandatory')
wf_apple_zone_filter_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7))
if mibBuilder.loadTexts:
wfAppleZoneFilterTable.setStatus('mandatory')
wf_apple_zone_filter_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1)).setIndexNames((0, 'Wellfleet-AT-MIB', 'wfAppleZoneFilterIndex'))
if mibBuilder.loadTexts:
wfAppleZoneFilterEntry.setStatus('mandatory')
wf_apple_zone_filter_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleZoneFilterDelete.setStatus('mandatory')
wf_apple_zone_filter_circuit = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 2), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleZoneFilterCircuit.setStatus('mandatory')
wf_apple_zone_filter_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 3), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleZoneFilterIpAddress.setStatus('mandatory')
wf_apple_zone_filter_circuit_type = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('rtmp', 1), ('aurp', 2))).clone('rtmp')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleZoneFilterCircuitType.setStatus('mandatory')
wf_apple_zone_filter_index = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 5), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleZoneFilterIndex.setStatus('mandatory')
wf_apple_zone_filter_name = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 7, 1, 6), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleZoneFilterName.setStatus('mandatory')
wf_apple_aurp_base = mib_identifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8))
wf_apple_aurp_base_delete = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpBaseDelete.setStatus('mandatory')
wf_apple_aurp_base_disable = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpBaseDisable.setStatus('mandatory')
wf_apple_aurp_base_state = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('up', 1), ('down', 2), ('init', 3), ('notpres', 4))).clone('down')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpBaseState.setStatus('mandatory')
wf_apple_aurp_base_domain = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 4), octet_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpBaseDomain.setStatus('mandatory')
wf_apple_aurp_base_ip_address = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 5), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpBaseIpAddress.setStatus('mandatory')
wf_apple_aurp_base_promiscuous = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 6), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('notpromisc', 1), ('promisc', 2))).clone('notpromisc')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpBasePromiscuous.setStatus('mandatory')
wf_apple_aurp_base_in_accepted_open_reqs = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpBaseInAcceptedOpenReqs.setStatus('mandatory')
wf_apple_aurp_base_in_rejected_open_reqs = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpBaseInRejectedOpenReqs.setStatus('mandatory')
wf_apple_aurp_base_in_router_downs = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpBaseInRouterDowns.setStatus('mandatory')
wf_apple_aurp_base_in_pkts_no_peers = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpBaseInPktsNoPeers.setStatus('mandatory')
wf_apple_aurp_base_in_invalid_verions = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 8, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpBaseInInvalidVerions.setStatus('mandatory')
wf_apple_aurp_table = mib_table((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9))
if mibBuilder.loadTexts:
wfAppleAurpTable.setStatus('mandatory')
wf_apple_aurp_entry = mib_table_row((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1)).setIndexNames((0, 'Wellfleet-AT-MIB', 'wfAppleAurpEntryIpAddress'))
if mibBuilder.loadTexts:
wfAppleAurpEntry.setStatus('mandatory')
wf_apple_aurp_entry_delete = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 1), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('created', 1), ('deleted', 2))).clone('created')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpEntryDelete.setStatus('mandatory')
wf_apple_aurp_entry_disable = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('enabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpEntryDisable.setStatus('mandatory')
wf_apple_aurp_entry_state = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('up', 1), ('down', 2))).clone('down')).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryState.setStatus('mandatory')
wf_apple_aurp_entry_ip_address = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 4), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryIpAddress.setStatus('mandatory')
wf_apple_aurp_entry_zone_filter_type = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 5), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('allow', 1), ('deny', 2), ('partallow', 3), ('partdeny', 4))).clone('deny')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpEntryZoneFilterType.setStatus('mandatory')
wf_apple_aurp_entry_timeout_command = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 1000)).clone(3)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpEntryTimeoutCommand.setStatus('mandatory')
wf_apple_aurp_entry_retry_command = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 100)).clone(3)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpEntryRetryCommand.setStatus('mandatory')
wf_apple_aurp_entry_update_rate = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(10, 604800)).clone(30)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpEntryUpdateRate.setStatus('mandatory')
wf_apple_aurp_entry_lhf_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 9), integer32().subtype(subtypeSpec=value_range_constraint(30, 31536000)).clone(90)).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpEntryLhfTimeout.setStatus('mandatory')
wf_apple_aurp_entry_hop_count_reduction = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 10), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('enabled', 1), ('disabled', 2))).clone('disabled')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpEntryHopCountReduction.setStatus('mandatory')
wf_apple_aurp_entry_interface_cost = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 11), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpEntryInterfaceCost.setStatus('mandatory')
wf_apple_aurp_entry_sui_flags = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 12), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(30720))).clone(namedValues=named_values(('all', 30720))).clone('all')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpEntrySuiFlags.setStatus('mandatory')
wf_apple_aurp_entry_type = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 13), integer32()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpEntryType.setStatus('mandatory')
wf_apple_aurp_entry_peer_domain_id = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 14), ip_address()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryPeerDomainId.setStatus('mandatory')
wf_apple_aurp_entry_peer_update_rate = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 15), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryPeerUpdateRate.setStatus('mandatory')
wf_apple_aurp_entry_peer_environment = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 16), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryPeerEnvironment.setStatus('mandatory')
wf_apple_aurp_entry_peer_sui_flags = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 17), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryPeerSuiFlags.setStatus('mandatory')
wf_apple_aurp_entry_cli_conn_id = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 18), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryCliConnId.setStatus('mandatory')
wf_apple_aurp_entry_srv_conn_id = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 19), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntrySrvConnId.setStatus('mandatory')
wf_apple_aurp_entry_cli_seq_num = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 20), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryCliSeqNum.setStatus('mandatory')
wf_apple_aurp_entry_srv_seq_num = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 21), integer32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntrySrvSeqNum.setStatus('mandatory')
wf_apple_aurp_entry_command_retries = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 22), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryCommandRetries.setStatus('mandatory')
wf_apple_aurp_entry_in_delayed_duplicates = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 23), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInDelayedDuplicates.setStatus('mandatory')
wf_apple_aurp_entry_in_invalid_conn_ids = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 24), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInInvalidConnIds.setStatus('mandatory')
wf_apple_aurp_entry_in_invalid_commands = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 25), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInInvalidCommands.setStatus('mandatory')
wf_apple_aurp_entry_in_invalid_sub_codes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 26), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInInvalidSubCodes.setStatus('mandatory')
wf_apple_aurp_entry_in_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 27), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInPkts.setStatus('mandatory')
wf_apple_aurp_entry_out_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 28), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutPkts.setStatus('mandatory')
wf_apple_aurp_entry_in_ddp_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 29), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInDdpPkts.setStatus('mandatory')
wf_apple_aurp_entry_out_ddp_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 30), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutDdpPkts.setStatus('mandatory')
wf_apple_aurp_entry_out_no_routes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 31), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutNoRoutes.setStatus('mandatory')
wf_apple_aurp_entry_hop_count_errors = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 32), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryHopCountErrors.setStatus('mandatory')
wf_apple_aurp_entry_hop_count_adjustments = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 33), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryHopCountAdjustments.setStatus('mandatory')
wf_apple_aurp_entry_in_aurp_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 34), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInAurpPkts.setStatus('mandatory')
wf_apple_aurp_entry_out_aurp_pkts = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 35), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutAurpPkts.setStatus('mandatory')
wf_apple_aurp_entry_in_open_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 36), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInOpenRequests.setStatus('mandatory')
wf_apple_aurp_entry_out_open_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 37), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutOpenRequests.setStatus('mandatory')
wf_apple_aurp_entry_in_open_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 38), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInOpenResponses.setStatus('mandatory')
wf_apple_aurp_entry_out_open_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 39), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutOpenResponses.setStatus('mandatory')
wf_apple_aurp_entry_in_ri_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 40), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInRiRequests.setStatus('mandatory')
wf_apple_aurp_entry_out_ri_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 41), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutRiRequests.setStatus('mandatory')
wf_apple_aurp_entry_in_ri_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 42), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInRiResponses.setStatus('mandatory')
wf_apple_aurp_entry_out_ri_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 43), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutRiResponses.setStatus('mandatory')
wf_apple_aurp_entry_in_ri_acks = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 44), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInRiAcks.setStatus('mandatory')
wf_apple_aurp_entry_out_ri_acks = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 45), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutRiAcks.setStatus('mandatory')
wf_apple_aurp_entry_in_ri_updates = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 46), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInRiUpdates.setStatus('mandatory')
wf_apple_aurp_entry_out_ri_updates = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 47), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutRiUpdates.setStatus('mandatory')
wf_apple_aurp_entry_in_update_null_events = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 48), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInUpdateNullEvents.setStatus('mandatory')
wf_apple_aurp_entry_out_update_null_events = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 49), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutUpdateNullEvents.setStatus('mandatory')
wf_apple_aurp_entry_in_update_net_adds = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 50), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInUpdateNetAdds.setStatus('mandatory')
wf_apple_aurp_entry_out_update_net_adds = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 51), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutUpdateNetAdds.setStatus('mandatory')
wf_apple_aurp_entry_in_update_net_deletes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 52), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInUpdateNetDeletes.setStatus('mandatory')
wf_apple_aurp_entry_out_update_net_deletes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 53), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutUpdateNetDeletes.setStatus('mandatory')
wf_apple_aurp_entry_in_update_net_route_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 54), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInUpdateNetRouteChanges.setStatus('mandatory')
wf_apple_aurp_entry_out_update_net_route_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 55), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutUpdateNetRouteChanges.setStatus('mandatory')
wf_apple_aurp_entry_in_update_net_distance_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 56), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInUpdateNetDistanceChanges.setStatus('mandatory')
wf_apple_aurp_entry_out_update_net_distance_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 57), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutUpdateNetDistanceChanges.setStatus('mandatory')
wf_apple_aurp_entry_in_update_zone_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 58), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInUpdateZoneChanges.setStatus('mandatory')
wf_apple_aurp_entry_out_update_zone_changes = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 59), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutUpdateZoneChanges.setStatus('mandatory')
wf_apple_aurp_entry_in_update_invalid_events = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 60), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInUpdateInvalidEvents.setStatus('mandatory')
wf_apple_aurp_entry_out_update_invalid_events = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 61), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutUpdateInvalidEvents.setStatus('mandatory')
wf_apple_aurp_entry_in_zi_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 62), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInZiRequests.setStatus('mandatory')
wf_apple_aurp_entry_out_zi_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 63), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutZiRequests.setStatus('mandatory')
wf_apple_aurp_entry_in_zi_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 64), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInZiResponses.setStatus('mandatory')
wf_apple_aurp_entry_out_zi_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 65), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutZiResponses.setStatus('mandatory')
wf_apple_aurp_entry_in_gdzl_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 66), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInGdzlRequests.setStatus('mandatory')
wf_apple_aurp_entry_out_gdzl_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 67), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutGdzlRequests.setStatus('mandatory')
wf_apple_aurp_entry_in_gdzl_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 68), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInGdzlResponses.setStatus('mandatory')
wf_apple_aurp_entry_out_gdzl_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 69), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutGdzlResponses.setStatus('mandatory')
wf_apple_aurp_entry_in_gzn_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 70), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInGznRequests.setStatus('mandatory')
wf_apple_aurp_entry_out_gzn_requests = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 71), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutGznRequests.setStatus('mandatory')
wf_apple_aurp_entry_in_gzn_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 72), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInGznResponses.setStatus('mandatory')
wf_apple_aurp_entry_out_gzn_responses = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 73), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutGznResponses.setStatus('mandatory')
wf_apple_aurp_entry_in_tickles = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 74), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInTickles.setStatus('mandatory')
wf_apple_aurp_entry_out_tickles = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 75), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutTickles.setStatus('mandatory')
wf_apple_aurp_entry_in_tickle_acks = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 76), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInTickleAcks.setStatus('mandatory')
wf_apple_aurp_entry_out_tickle_acks = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 77), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutTickleAcks.setStatus('mandatory')
wf_apple_aurp_entry_in_router_downs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 78), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryInRouterDowns.setStatus('mandatory')
wf_apple_aurp_entry_out_router_downs = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 79), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAurpEntryOutRouterDowns.setStatus('mandatory')
wf_apple_aurp_entry_zone_filt_dflt_zone = mib_table_column((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 9, 1, 80), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
wfAppleAurpEntryZoneFiltDfltZone.setStatus('mandatory')
wf_apple_aggr_stats = mib_identifier((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10))
wf_apple_aggr_in_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 1), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAggrInPkts.setStatus('mandatory')
wf_apple_aggr_out_pkts = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 2), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAggrOutPkts.setStatus('mandatory')
wf_apple_aggr_fwd_datagrams = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 3), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAggrFwdDatagrams.setStatus('mandatory')
wf_apple_aggr_in_xsum_errs = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 4), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAggrInXsumErrs.setStatus('mandatory')
wf_apple_aggr_in_hop_count_errs = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 5), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAggrInHopCountErrs.setStatus('mandatory')
wf_apple_aggr_in_too_shorts = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 6), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAggrInTooShorts.setStatus('mandatory')
wf_apple_aggr_in_too_longs = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 7), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAggrInTooLongs.setStatus('mandatory')
wf_apple_aggr_out_no_routes = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 8), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAggrOutNoRoutes.setStatus('mandatory')
wf_apple_aggr_in_local_dests = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 9), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAggrInLocalDests.setStatus('mandatory')
wf_apple_aggr_in_rtmps = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 10), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAggrInRtmps.setStatus('mandatory')
wf_apple_aggr_out_rtmps = mib_scalar((1, 3, 6, 1, 4, 1, 18, 3, 5, 4, 10, 11), counter32()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
wfAppleAggrOutRtmps.setStatus('mandatory')
mibBuilder.exportSymbols('Wellfleet-AT-MIB', wfAppleZipZoneNetStart=wfAppleZipZoneNetStart, wfAppleAurpEntryOutRiAcks=wfAppleAurpEntryOutRiAcks, wfAppleBaseEstimatedHosts=wfAppleBaseEstimatedHosts, wfApplePortAarpRspTxs=wfApplePortAarpRspTxs, wfAppleAurpBaseDomain=wfAppleAurpBaseDomain, wfAppleAurpEntryInRiUpdates=wfAppleAurpEntryInRiUpdates, wfAppleAurpEntryOutGznRequests=wfAppleAurpEntryOutGznRequests, wfAppleZoneFilterCircuitType=wfAppleZoneFilterCircuitType, wfApplePortZipInZipQueries=wfApplePortZipInZipQueries, wfApplePortNodeId=wfApplePortNodeId, wfApplePortAarpProbeTxs=wfApplePortAarpProbeTxs, wfAppleAurpEntryInUpdateNullEvents=wfAppleAurpEntryInUpdateNullEvents, wfAppleAurpEntryOutUpdateInvalidEvents=wfAppleAurpEntryOutUpdateInvalidEvents, wfApplePortWanBroadcastAddress=wfApplePortWanBroadcastAddress, wfAppleAurpBasePromiscuous=wfAppleAurpBasePromiscuous, wfApplePortEntry=wfApplePortEntry, wfApplePortNetStart=wfApplePortNetStart, wfAppleAurpEntryLhfTimeout=wfAppleAurpEntryLhfTimeout, wfAppleAurpEntryPeerUpdateRate=wfAppleAurpEntryPeerUpdateRate, wfAppleAarpNet=wfAppleAarpNet, wfAppleAurpEntryRetryCommand=wfAppleAurpEntryRetryCommand, wfAppleAurpEntryInDdpPkts=wfAppleAurpEntryInDdpPkts, wfAppleAurpEntryState=wfAppleAurpEntryState, wfAppleAggrInTooLongs=wfAppleAggrInTooLongs, wfMacIPLowerIpAddress2=wfMacIPLowerIpAddress2, wfAppleAurpEntryInTickleAcks=wfAppleAurpEntryInTickleAcks, wfApplePortZipInGetNetInfos=wfApplePortZipInGetNetInfos, wfAppleBaseState=wfAppleBaseState, wfAppleAggrInRtmps=wfAppleAggrInRtmps, wfAppleAurpBaseDelete=wfAppleAurpBaseDelete, wfAppleLclZoneIndex=wfAppleLclZoneIndex, wfApplePortAarpReqTxs=wfApplePortAarpReqTxs, wfAppleZoneFilterEntry=wfAppleZoneFilterEntry, wfApplePortDdpForwRequests=wfApplePortDdpForwRequests, wfAppleAurpEntry=wfAppleAurpEntry, wfApplePortInterfaceCost=wfApplePortInterfaceCost, wfAppleBaseTotalZones=wfAppleBaseTotalZones, wfAppleAurpEntryInUpdateInvalidEvents=wfAppleAurpEntryInUpdateInvalidEvents, wfApplePortCircuit=wfApplePortCircuit, wfAppleMacIPBaseDelete=wfAppleMacIPBaseDelete, wfAppleAurpEntryOutOpenRequests=wfAppleAurpEntryOutOpenRequests, wfAppleAggrOutNoRoutes=wfAppleAggrOutNoRoutes, wfAppleZoneFilterTable=wfAppleZoneFilterTable, wfApplePortGniForever=wfApplePortGniForever, wfApplePortNbpInBroadcastRequests=wfApplePortNbpInBroadcastRequests, wfAppleAurpEntryOutUpdateNullEvents=wfAppleAurpEntryOutUpdateNullEvents, wfApplePortZipOutGetNetInfos=wfApplePortZipOutGetNetInfos, wfAppleLclZoneTable=wfAppleLclZoneTable, wfMacIPAddress2=wfMacIPAddress2, wfAppleAurpEntryInInvalidCommands=wfAppleAurpEntryInInvalidCommands, wfAppleAurpEntryInAurpPkts=wfAppleAurpEntryInAurpPkts, wfAppleAurpEntryOutOpenResponses=wfAppleAurpEntryOutOpenResponses, wfAppleAurpEntryInGdzlResponses=wfAppleAurpEntryInGdzlResponses, wfApplePortDdpOutNoRoutes=wfApplePortDdpOutNoRoutes, wfAppleZipEntry=wfAppleZipEntry, wfAppleAurpBaseInRejectedOpenReqs=wfAppleAurpBaseInRejectedOpenReqs, wfApplePortDdpInLocalDatagrams=wfApplePortDdpInLocalDatagrams, wfApplePortCurNetEnd=wfApplePortCurNetEnd, wfAppleLclZoneName=wfAppleLclZoneName, wfAppleAurpBaseInInvalidVerions=wfAppleAurpBaseInInvalidVerions, wfAppleAurpEntryOutRiRequests=wfAppleAurpEntryOutRiRequests, wfAppleAggrOutRtmps=wfAppleAggrOutRtmps, wfApplePortDdpBroadcastErrors=wfApplePortDdpBroadcastErrors, wfAppleAurpBaseInRouterDowns=wfAppleAurpBaseInRouterDowns, wfAppleAurpBaseInPktsNoPeers=wfAppleAurpBaseInPktsNoPeers, wfApplePortZipAddressInvalids=wfApplePortZipAddressInvalids, wfAppleAurpEntryInGznResponses=wfAppleAurpEntryInGznResponses, wfApplePortRtmpRouteDeletes=wfApplePortRtmpRouteDeletes, wfAppleZipIndex=wfAppleZipIndex, wfApplePortDelete=wfApplePortDelete, wfAppleAurpEntryInRiResponses=wfAppleAurpEntryInRiResponses, wfApplePortTrEndStation=wfApplePortTrEndStation, wfAppleAurpEntryOutUpdateZoneChanges=wfAppleAurpEntryOutUpdateZoneChanges, wfAppleAurpEntryInGdzlRequests=wfAppleAurpEntryInGdzlRequests, wfApplePortDdpTooLongErrors=wfApplePortDdpTooLongErrors, wfAppleAarpNode=wfAppleAarpNode, wfAppleRtmpHops=wfAppleRtmpHops, wfAppleBaseTotalAarpEntries=wfAppleBaseTotalAarpEntries, wfApplePortRtmpInDataPkts=wfApplePortRtmpInDataPkts, wfAppleAurpBaseInAcceptedOpenReqs=wfAppleAurpBaseInAcceptedOpenReqs, wfAppleAurpEntryHopCountReduction=wfAppleAurpEntryHopCountReduction, wfApplePortDdpOutRequests=wfApplePortDdpOutRequests, wfApplePortNbpInLookUpRequests=wfApplePortNbpInLookUpRequests, wfAppleAurpEntryOutUpdateNetAdds=wfAppleAurpEntryOutUpdateNetAdds, wfApplePortZipOutZipReplies=wfApplePortZipOutZipReplies, wfAppleAurpEntryOutPkts=wfAppleAurpEntryOutPkts, wfApplePortZipInGetZoneLists=wfApplePortZipInGetZoneLists, wfAppleAurpEntryCliSeqNum=wfAppleAurpEntryCliSeqNum, wfAppleAurpEntryPeerDomainId=wfAppleAurpEntryPeerDomainId, wfAppleAurpEntryHopCountAdjustments=wfAppleAurpEntryHopCountAdjustments, wfApplePortRtmpNextIREqualChanges=wfApplePortRtmpNextIREqualChanges, wfAppleAurpEntryOutRiResponses=wfAppleAurpEntryOutRiResponses, wfAppleAarpEntry=wfAppleAarpEntry, wfApplePortRtmpNetworkMismatchErrors=wfApplePortRtmpNetworkMismatchErrors, wfAppleAurpEntryInUpdateZoneChanges=wfAppleAurpEntryInUpdateZoneChanges, wfApplePortZipInGetLocalZones=wfApplePortZipInGetLocalZones, wfAppleMacIPBaseDisable=wfAppleMacIPBaseDisable, wfAppleAurpBaseIpAddress=wfAppleAurpBaseIpAddress, wfAppleAurpEntryDisable=wfAppleAurpEntryDisable, wfAppleAurpEntryInOpenRequests=wfAppleAurpEntryInOpenRequests, wfApplePortState=wfApplePortState, wfMacIPAddress1=wfMacIPAddress1, wfAppleAggrStats=wfAppleAggrStats, wfMacIPUpperIpAddress3=wfMacIPUpperIpAddress3, wfApplePortRtmpRoutingTableOverflows=wfApplePortRtmpRoutingTableOverflows, wfAppleAurpEntryInRiAcks=wfAppleAurpEntryInRiAcks, wfAppleAurpEntryOutZiResponses=wfAppleAurpEntryOutZiResponses, wfApplePortAarpReqRxs=wfApplePortAarpReqRxs, wfApplePortCurNodeId=wfApplePortCurNodeId, wfApplePortDdpChecksumErrors=wfApplePortDdpChecksumErrors, wfAppleZipZoneName=wfAppleZipZoneName, wfApplePortEchoReplies=wfApplePortEchoReplies, wfMacIPAddress3=wfMacIPAddress3, wfApplePortMacAddress=wfApplePortMacAddress, wfAppleZoneFilterDelete=wfAppleZoneFilterDelete, wfApplePortRtmpInRequestPkts=wfApplePortRtmpInRequestPkts, wfApplePortNbpOutForwardRequests=wfApplePortNbpOutForwardRequests, wfAppleAurpEntryPeerSuiFlags=wfAppleAurpEntryPeerSuiFlags, wfAppleZoneFilterIpAddress=wfAppleZoneFilterIpAddress, wfAppleAurpEntryOutZiRequests=wfAppleAurpEntryOutZiRequests, wfAppleLclZoneDelete=wfAppleLclZoneDelete, wfAppleAurpEntryInUpdateNetAdds=wfAppleAurpEntryInUpdateNetAdds, wfAppleMacIPServerResponces=wfAppleMacIPServerResponces, wfApplePortCurNetStart=wfApplePortCurNetStart, wfApplePortZipOutZipExtendedReplies=wfApplePortZipOutZipExtendedReplies, wfApplePortCksumDisable=wfApplePortCksumDisable, wfAppleRtmpPort=wfAppleRtmpPort, wfAppleRtmpNetEnd=wfAppleRtmpNetEnd, wfApplePortNbpOutBroadcastRequests=wfApplePortNbpOutBroadcastRequests, wfAppleAurpEntryZoneFiltDfltZone=wfAppleAurpEntryZoneFiltDfltZone, wfAppleBaseTotalNets=wfAppleBaseTotalNets, wfAppleAurpEntryCliConnId=wfAppleAurpEntryCliConnId, wfAppleZoneFilterName=wfAppleZoneFilterName, wfAppleAurpEntrySrvSeqNum=wfAppleAurpEntrySrvSeqNum, wfAppleAurpEntryInInvalidConnIds=wfAppleAurpEntryInInvalidConnIds, wfApplePortDisable=wfApplePortDisable, wfApplePortZipOutZipQueries=wfApplePortZipOutZipQueries, wfApplePortType=wfApplePortType, wfApplePortNbpInLookUpReplies=wfApplePortNbpInLookUpReplies, wfApplePortWanSplitHorizonDisable=wfApplePortWanSplitHorizonDisable, wfAppleRtmpTable=wfAppleRtmpTable, wfAppleAurpBaseDisable=wfAppleAurpBaseDisable, wfAppleAurpEntryCommandRetries=wfAppleAurpEntryCommandRetries, wfAppleRtmpNetStart=wfAppleRtmpNetStart, wfApplePortZipZoneConflictErrors=wfApplePortZipZoneConflictErrors, wfAppleAurpEntryOutRiUpdates=wfAppleAurpEntryOutRiUpdates, wfApplePortEchoRequests=wfApplePortEchoRequests, wfAppleAurpEntryOutRouterDowns=wfAppleAurpEntryOutRouterDowns, wfApplePortAarpProbeRxs=wfApplePortAarpProbeRxs, wfAppleBaseDebugLevel=wfAppleBaseDebugLevel, wfAppleBaseDdpQueLen=wfAppleBaseDdpQueLen, wfAppleMacIPZone=wfAppleMacIPZone, wfApplePortTable=wfApplePortTable, wfMacIPLowerIpAddress1=wfMacIPLowerIpAddress1, wfAppleRtmpEntry=wfAppleRtmpEntry, wfAppleAurpEntryOutAurpPkts=wfAppleAurpEntryOutAurpPkts, wfAppleLclZonePortCircuit=wfAppleLclZonePortCircuit, wfAppleBaseDelete=wfAppleBaseDelete, wfApplePortZipZoneOutInvalids=wfApplePortZipZoneOutInvalids, wfAppleRtmpProto=wfAppleRtmpProto, wfApplePortZipInZipExtendedReplies=wfApplePortZipInZipExtendedReplies, wfApplePortMacIPDisable=wfApplePortMacIPDisable, wfAppleAurpEntryOutTickles=wfAppleAurpEntryOutTickles, wfAppleRtmpAurpNextHopIpAddress=wfAppleRtmpAurpNextHopIpAddress, wfAppleAurpEntryInZiResponses=wfAppleAurpEntryInZiResponses, wfApplePortDdpNoProtocolHandlers=wfApplePortDdpNoProtocolHandlers, wfMacIPUpperIpAddress1=wfMacIPUpperIpAddress1, wfAppleZipZoneNetEnd=wfAppleZipZoneNetEnd, wfAppleMacIPAddressTimeOut=wfAppleMacIPAddressTimeOut, wfAppleAurpEntryInDelayedDuplicates=wfAppleAurpEntryInDelayedDuplicates, wfAppleAggrInPkts=wfAppleAggrInPkts, wfAppleAurpBase=wfAppleAurpBase, wfAppleAurpEntryInZiRequests=wfAppleAurpEntryInZiRequests, wfApplePortNbpInForwardRequests=wfApplePortNbpInForwardRequests, wfApplePortNbpInErrors=wfApplePortNbpInErrors, wfAppleZoneFilterCircuit=wfAppleZoneFilterCircuit, wfAppleAurpEntryPeerEnvironment=wfAppleAurpEntryPeerEnvironment, wfAppleLclZoneEntry=wfAppleLclZoneEntry, wfAppleAurpEntryInTickles=wfAppleAurpEntryInTickles, wfAppleAurpEntryInUpdateNetDeletes=wfAppleAurpEntryInUpdateNetDeletes, wfAppleAurpEntryOutNoRoutes=wfAppleAurpEntryOutNoRoutes, wfApplePortDdpInReceives=wfApplePortDdpInReceives, wfAppleZoneFilterIndex=wfAppleZoneFilterIndex, wfAppleBaseHomedPort=wfAppleBaseHomedPort, wfApplePortZoneFilterType=wfApplePortZoneFilterType, wfAppleBaseTotalZoneNames=wfAppleBaseTotalZoneNames, wfApplePortCurMacAddress=wfApplePortCurMacAddress, wfAppleAurpEntryIpAddress=wfAppleAurpEntryIpAddress, wfAppleAggrInTooShorts=wfAppleAggrInTooShorts, wfApplePortZipInZipReplies=wfApplePortZipInZipReplies, wfApplePortZipOutGetLocalZoneReplies=wfApplePortZipOutGetLocalZoneReplies, wfMacIPUpperIpAddress2=wfMacIPUpperIpAddress2, wfAppleAurpEntryInUpdateNetRouteChanges=wfAppleAurpEntryInUpdateNetRouteChanges, wfAppleAggrInHopCountErrs=wfAppleAggrInHopCountErrs, wfAppleZipTable=wfAppleZipTable, wfAppleAurpEntryInPkts=wfAppleAurpEntryInPkts, wfAppleAurpBaseState=wfAppleAurpBaseState, wfApplePortNetwork=wfApplePortNetwork, wfApplePortZipInErrors=wfApplePortZipInErrors, wfAppleBase=wfAppleBase, wfApplePortAarpRspRxs=wfApplePortAarpRspRxs, wfAppleAurpEntryOutDdpPkts=wfAppleAurpEntryOutDdpPkts, wfMacIPLowerIpAddress3=wfMacIPLowerIpAddress3, wfAppleAurpTable=wfAppleAurpTable, wfAppleAurpEntryInRiRequests=wfAppleAurpEntryInRiRequests, wfAppleAggrInXsumErrs=wfAppleAggrInXsumErrs, wfApplePortCurNetwork=wfApplePortCurNetwork, wfApplePortZipOutGetZoneListReplies=wfApplePortZipOutGetZoneListReplies, wfApplePortZipOutGetMyZoneReplies=wfApplePortZipOutGetMyZoneReplies, wfAppleRtmpNextHopNet=wfAppleRtmpNextHopNet, wfAppleAggrInLocalDests=wfAppleAggrInLocalDests, wfApplePortNetEnd=wfApplePortNetEnd, wfAppleBaseEstimatedNets=wfAppleBaseEstimatedNets, wfAppleAurpEntryInterfaceCost=wfAppleAurpEntryInterfaceCost, wfAppleAurpEntryInOpenResponses=wfAppleAurpEntryInOpenResponses, wfAppleAurpEntryOutGdzlRequests=wfAppleAurpEntryOutGdzlRequests, wfAppleAurpEntryOutUpdateNetDistanceChanges=wfAppleAurpEntryOutUpdateNetDistanceChanges, wfAppleAurpEntryHopCountErrors=wfAppleAurpEntryHopCountErrors, wfAppleAurpEntrySrvConnId=wfAppleAurpEntrySrvConnId, wfAppleAarpTable=wfAppleAarpTable, wfAppleAggrOutPkts=wfAppleAggrOutPkts, wfAppleAurpEntryType=wfAppleAurpEntryType, wfAppleAurpEntryDelete=wfAppleAurpEntryDelete, wfApplePortRtmpNextIRLessChanges=wfApplePortRtmpNextIRLessChanges, wfApplePortRtmpOutDataPkts=wfApplePortRtmpOutDataPkts, wfAppleAarpPhysAddress=wfAppleAarpPhysAddress, wfAppleAurpEntryInUpdateNetDistanceChanges=wfAppleAurpEntryInUpdateNetDistanceChanges, wfApplePortDfltZone=wfApplePortDfltZone, wfAppleRtmpState=wfAppleRtmpState, wfAppleAurpEntryUpdateRate=wfAppleAurpEntryUpdateRate, wfAppleRtmpNextHopNode=wfAppleRtmpNextHopNode, wfApplePortZipInGetMyZones=wfApplePortZipInGetMyZones, wfAppleAurpEntryInGznRequests=wfAppleAurpEntryInGznRequests, wfApplePortZipOutGetNetInfoReplies=wfApplePortZipOutGetNetInfoReplies, wfApplePortCurDfltZone=wfApplePortCurDfltZone, wfAppleAurpEntryOutUpdateNetDeletes=wfAppleAurpEntryOutUpdateNetDeletes, wfAppleAurpEntryOutGdzlResponses=wfAppleAurpEntryOutGdzlResponses, wfAppleZipZoneState=wfAppleZipZoneState, wfApplePortAarpFlush=wfApplePortAarpFlush, wfApplePortDdpTooShortErrors=wfApplePortDdpTooShortErrors, wfApplePortZipInGetNetInfoReplies=wfApplePortZipInGetNetInfoReplies, wfAppleAurpEntryTimeoutCommand=wfAppleAurpEntryTimeoutCommand, wfAppleAurpEntryInInvalidSubCodes=wfAppleAurpEntryInInvalidSubCodes, wfAppleAurpEntryOutGznResponses=wfAppleAurpEntryOutGznResponses, wfApplePortNbpOutLookUpReplies=wfApplePortNbpOutLookUpReplies, wfAppleBaseDisable=wfAppleBaseDisable, wfAppleMacIPBaseState=wfAppleMacIPBaseState, wfAppleAurpEntryOutUpdateNetRouteChanges=wfAppleAurpEntryOutUpdateNetRouteChanges, wfAppleAurpEntryInRouterDowns=wfAppleAurpEntryInRouterDowns, wfAppleAarpIfIndex=wfAppleAarpIfIndex, wfAppleAurpEntryZoneFilterType=wfAppleAurpEntryZoneFilterType, wfApplePortDdpHopCountErrors=wfApplePortDdpHopCountErrors, wfAppleAurpEntrySuiFlags=wfAppleAurpEntrySuiFlags, wfApplePortNbpOutLookUpRequests=wfApplePortNbpOutLookUpRequests)
mibBuilder.exportSymbols('Wellfleet-AT-MIB', wfAppleAurpEntryOutTickleAcks=wfAppleAurpEntryOutTickleAcks, wfAppleMacIPServerRequests=wfAppleMacIPServerRequests, wfAppleAggrFwdDatagrams=wfAppleAggrFwdDatagrams, wfApplePortNbpRegistrationFailures=wfApplePortNbpRegistrationFailures) |
# https://paiza.jp/poh/hatsukoi/challenge/hatsukoi_hair4
def func1(des):
count = 0
for [d, e] in des:
if d == e:
count += 1
if count >= 3:
print('OK')
else:
print('NG')
def func2(des):
count = 0
for d,e in des:
if d == e:
count += 1
return 'OK' if count >= 3 else 'NG'
def func3(des):
is_same = lambda d, e: d == e
count = len([[d, e] for d, e in des if is_same(d, e)])
return 'OK' if count >= 3 else 'NG'
def display(s):
print(s)
if __name__ == '__main__':
des = [input().split(' ') for _ in range(5)]
display(func3(des)) | def func1(des):
count = 0
for [d, e] in des:
if d == e:
count += 1
if count >= 3:
print('OK')
else:
print('NG')
def func2(des):
count = 0
for (d, e) in des:
if d == e:
count += 1
return 'OK' if count >= 3 else 'NG'
def func3(des):
is_same = lambda d, e: d == e
count = len([[d, e] for (d, e) in des if is_same(d, e)])
return 'OK' if count >= 3 else 'NG'
def display(s):
print(s)
if __name__ == '__main__':
des = [input().split(' ') for _ in range(5)]
display(func3(des)) |
class Solution:
def interpret(self, command: str) -> str:
result = ""
for i in range(len(command)):
if command[i] == 'G':
result += command[i]
elif command[i] == '(':
if command[i+1] == ')':
result += 'o'
else:
result += 'al'
return result | class Solution:
def interpret(self, command: str) -> str:
result = ''
for i in range(len(command)):
if command[i] == 'G':
result += command[i]
elif command[i] == '(':
if command[i + 1] == ')':
result += 'o'
else:
result += 'al'
return result |
# cook your dish here
for i in range(int(input())):
x=int(input())
cars=x//4
left=x-(cars*4)
bikes=left//2
leftafter=left-(bikes*2)
if bikes>0:
print("YES")
else:
print("NO")
| for i in range(int(input())):
x = int(input())
cars = x // 4
left = x - cars * 4
bikes = left // 2
leftafter = left - bikes * 2
if bikes > 0:
print('YES')
else:
print('NO') |
"""Constants for JSON keys used primarily in the PR recorder."""
class TOP_LEVEL:
"""The top-level keys."""
REPO_SLUG = "repoSlug"
class PR:
"""Keys for PR metadata."""
SECTION_KEY = "prMetadata"
URL = "url"
CREATED_AT = "createdAt"
CLOSED_AT = "closedAt"
MERGED_AT = "mergedAt"
REPO_SLUG = "repoSlug"
NUMBER = "number"
STATE = "state"
IS_MERGED = "isMerged"
class DIFF:
"""Keys for diff data."""
SECTION_KEY = "diffs"
INITIAL = "initial"
FINAL = "final"
class RECORD:
"""Keys for record metadata."""
SECTION_KEY = "recordMetadata"
CREATED_AT = "createdAt"
LAST_MODIFIED = "lastModified"
IS_LEGACY = "isLegacyRecord"
class MANUAL_EDITS:
"""Keys for the manual edits data."""
SECTION_KEY = "manualEdits"
BEFORE_OPEN_PR = "beforeOpenPr"
AFTER_OPEN_PR = "afterOpenPr"
class SORALD_STATS:
"""Keys for the Sorald statistics."""
SECTION_KEY = "soraldStatistics"
REPAIRS = "repairs"
RULE_KEY = "ruleKey"
VIOLATIONS_BEFORE = "nbViolationsBefore"
VIOLATIONS_AFTER = "nbViolationsAfter"
NUM_PERFORMED_REPAIRS = "nbPerformedRepairs"
NUM_CRASHED_REPAIRS = "nbCrashedRepairs"
class LEGACY:
REPO_SLUG = "repo_slug"
PR_URL = "PR_url"
RULE_KEY = "rule_id"
NUM_VIOLATIONS = "nb_violations"
| """Constants for JSON keys used primarily in the PR recorder."""
class Top_Level:
"""The top-level keys."""
repo_slug = 'repoSlug'
class Pr:
"""Keys for PR metadata."""
section_key = 'prMetadata'
url = 'url'
created_at = 'createdAt'
closed_at = 'closedAt'
merged_at = 'mergedAt'
repo_slug = 'repoSlug'
number = 'number'
state = 'state'
is_merged = 'isMerged'
class Diff:
"""Keys for diff data."""
section_key = 'diffs'
initial = 'initial'
final = 'final'
class Record:
"""Keys for record metadata."""
section_key = 'recordMetadata'
created_at = 'createdAt'
last_modified = 'lastModified'
is_legacy = 'isLegacyRecord'
class Manual_Edits:
"""Keys for the manual edits data."""
section_key = 'manualEdits'
before_open_pr = 'beforeOpenPr'
after_open_pr = 'afterOpenPr'
class Sorald_Stats:
"""Keys for the Sorald statistics."""
section_key = 'soraldStatistics'
repairs = 'repairs'
rule_key = 'ruleKey'
violations_before = 'nbViolationsBefore'
violations_after = 'nbViolationsAfter'
num_performed_repairs = 'nbPerformedRepairs'
num_crashed_repairs = 'nbCrashedRepairs'
class Legacy:
repo_slug = 'repo_slug'
pr_url = 'PR_url'
rule_key = 'rule_id'
num_violations = 'nb_violations' |
NUMBERS = (-10, -21, -4, -45, -66, -93, 11)
def count_positives(lst: list[int] | tuple[int]) -> int:
return len([num for num in lst if num >= 1])
# return len(list(filter(lambda x: x >= 0, lst)))
POS_COUNT = count_positives(NUMBERS)
if __name__ == "__main__":
print(f"Positive numbers in the list: {POS_COUNT}.")
print(f"Negative numbers in the list: {len(NUMBERS) - POS_COUNT}.")
| numbers = (-10, -21, -4, -45, -66, -93, 11)
def count_positives(lst: list[int] | tuple[int]) -> int:
return len([num for num in lst if num >= 1])
pos_count = count_positives(NUMBERS)
if __name__ == '__main__':
print(f'Positive numbers in the list: {POS_COUNT}.')
print(f'Negative numbers in the list: {len(NUMBERS) - POS_COUNT}.') |
#!/usr/bin/python3
CARDS = """Hesper Starkey
Paracelsus
Archibald Alderton
Elladora Ketteridge
Gaspard Shingleton
Glover Hipworth
Gregory the Smarmy
Laverne DeMontmorency
Ignatia Wildsmith
Sacharissa Tugwood
Glanmore Peakes
Balfour Blane
Felix Summerbee
Greta Catchlove
Honouria Nutcombe
Gifford Ollerton
Jocunda Sykes
Quong Po
Dorcas Wellbeloved
Merwyn the Malicious
Morgan le Fay
Crispin Cronk
Ethelred the EverReady
Beatrix Bloxam
Alberta Toothill
Xavier Rastrick
Yardley Platt
Dymphna Furmage
Fulbert the Fearful
Wendelin the Weird
Tilly Toke
Carlotta Pinkstone
Edgar Stroulger
Havelock Sweeting
Flavius Belby
Justus Pilliwickle
Norvel Twonk
Oswald Beamish
Cornelius Agrippa
Gulliver Pokeby
Newt Scamander
Glenda Chittock
Adalbert Waffling
Perpetua Fancourt
Cassandra Vablatsky
Mopsus
Blenheim Stalk
Alberic Grunnion
Merlin
Elfrida Clagg
Grogan Stump
Burdock Muldoon
Almerick Sawbridge
Artemisia Lufkin
Gondoline Oliphant
Montague Knightley
Harry Potter
Derwent Shimpling
Gunhilda of Gorsemoor
Cliodne
Beaumont Marjoribanks
Chauncey Oldridge
Mungo Bonham
Wilfred Elphick
Bridget Wenlock
Godric Gryffindor
Miranda Goshawk
Salazar Slytherin
Queen Maeve
Helga Hufflepuff
Rowena Ravenclaw
Hengist of Woodcroft
Daisy Dodderidge
Albus Dumbledore
Donaghan Tremlett
Musidora Barkwith
Gideon Crumb
Herman Wintringham
Kirley Duke
Myron Wagtail
Orsino Thruston
Celestina Warbeck
Heathcote Barbary
Merton Graves
Bowman Wright
Joscelind Wadcock
Gwenog Jones
Cyprian Youdle
Devlin Whitehorn
Dunbar Oglethorpe
Leopoldina Smethwyck
Roderick Plumpton
Roland Kegg
Herpo the Foul
Andros the Invincible
Uric the Oddball
Lord Stoddard Withers
Circe
Mirabella Plunkett
Bertie Bott
Thaddeus Thurkell
Unknown""".split('\n')
rom = open("hp1.gbc", "rb")
class NotPointerException(ValueError): pass
def readpointer(bank=None):
if not bank: bank = rom.tell()/0x4000
s = readshort()
if 0x4000 > s or 0x8000 <= s:
raise NotPointerException(s)
return (bank * 0x4000) + (s - 0x4000)
def readshort():
return readbyte() + (readbyte() << 8)
def readbyte():
return ord(rom.read(1))
decks = []
for d in range(4):
sets = []
for i in range(3):
set_ = []
rom.seek(6*0x4000 + 0x1ad5 + i*2)
x = readshort()
rom.seek(x)
num = readbyte()
x += 1
for c in range(num):
rom.seek(x+c)
rom.seek(6*0x4000 + 0x1aff + readbyte()*4 + d)
set_.append(readbyte())
sets.append(set_)
decks.append(sets)
for d, sets in enumerate(decks):
print("When collecting deck {}:".format(d))
for i, set_ in enumerate(sets):
print(" Set {} cards:".format(i))
for c in set_:
print(" - {}. {}".format(c, CARDS[c]))
print
print("---")
| cards = 'Hesper Starkey\nParacelsus\nArchibald Alderton\nElladora Ketteridge\nGaspard Shingleton\nGlover Hipworth\nGregory the Smarmy\nLaverne DeMontmorency\nIgnatia Wildsmith\nSacharissa Tugwood\nGlanmore Peakes\nBalfour Blane\nFelix Summerbee\nGreta Catchlove\nHonouria Nutcombe\nGifford Ollerton\nJocunda Sykes\nQuong Po\nDorcas Wellbeloved\nMerwyn the Malicious\nMorgan le Fay\nCrispin Cronk\nEthelred the EverReady\nBeatrix Bloxam\nAlberta Toothill\nXavier Rastrick\nYardley Platt\nDymphna Furmage\nFulbert the Fearful\nWendelin the Weird\nTilly Toke\nCarlotta Pinkstone\nEdgar Stroulger\nHavelock Sweeting\nFlavius Belby\nJustus Pilliwickle\nNorvel Twonk\nOswald Beamish\nCornelius Agrippa\nGulliver Pokeby\nNewt Scamander\nGlenda Chittock\nAdalbert Waffling\nPerpetua Fancourt\nCassandra Vablatsky\nMopsus\nBlenheim Stalk\nAlberic Grunnion\nMerlin\nElfrida Clagg\nGrogan Stump\nBurdock Muldoon\nAlmerick Sawbridge\nArtemisia Lufkin\nGondoline Oliphant\nMontague Knightley\nHarry Potter\nDerwent Shimpling\nGunhilda of Gorsemoor\nCliodne\nBeaumont Marjoribanks\nChauncey Oldridge\nMungo Bonham\nWilfred Elphick\nBridget Wenlock\nGodric Gryffindor\nMiranda Goshawk\nSalazar Slytherin\nQueen Maeve\nHelga Hufflepuff\nRowena Ravenclaw\nHengist of Woodcroft\nDaisy Dodderidge\nAlbus Dumbledore\nDonaghan Tremlett\nMusidora Barkwith\nGideon Crumb\nHerman Wintringham\nKirley Duke\nMyron Wagtail\nOrsino Thruston\nCelestina Warbeck\nHeathcote Barbary\nMerton Graves\nBowman Wright\nJoscelind Wadcock\nGwenog Jones\nCyprian Youdle\nDevlin Whitehorn\nDunbar Oglethorpe\nLeopoldina Smethwyck\nRoderick Plumpton\nRoland Kegg\nHerpo the Foul\nAndros the Invincible\nUric the Oddball\nLord Stoddard Withers\nCirce\nMirabella Plunkett\nBertie Bott\nThaddeus Thurkell\nUnknown'.split('\n')
rom = open('hp1.gbc', 'rb')
class Notpointerexception(ValueError):
pass
def readpointer(bank=None):
if not bank:
bank = rom.tell() / 16384
s = readshort()
if 16384 > s or 32768 <= s:
raise not_pointer_exception(s)
return bank * 16384 + (s - 16384)
def readshort():
return readbyte() + (readbyte() << 8)
def readbyte():
return ord(rom.read(1))
decks = []
for d in range(4):
sets = []
for i in range(3):
set_ = []
rom.seek(6 * 16384 + 6869 + i * 2)
x = readshort()
rom.seek(x)
num = readbyte()
x += 1
for c in range(num):
rom.seek(x + c)
rom.seek(6 * 16384 + 6911 + readbyte() * 4 + d)
set_.append(readbyte())
sets.append(set_)
decks.append(sets)
for (d, sets) in enumerate(decks):
print('When collecting deck {}:'.format(d))
for (i, set_) in enumerate(sets):
print(' Set {} cards:'.format(i))
for c in set_:
print(' - {}. {}'.format(c, CARDS[c]))
print
print('---') |
class train_config:
datasets = {'glove':{'N':1183514,'d':100},
'Sift-128':{'N':1000000, 'd':128}
}
dataset_name = 'glove'
inp_dim = datasets[dataset_name]['d']
n_classes = datasets[dataset_name]['N']
####
n_cores = 1 # core count for TF REcord data loader
B = 3000
R = 16
gpus = [4,5,6,7]
num_gpus = len(gpus)
batch_size = 256
hidden_dim = 1024
####
train_data_loc = '../../LTH/data/'+dataset_name+'/'
tfrecord_loc = '../../LTH/data/'+dataset_name+'/tfrecords/'
model_save_loc = '../saved_models/'+dataset_name+'/b_'+str(B)+'/'
lookups_loc = '../lookups/'+dataset_name+'/b_'+str(B)+'/'
logfolder = '../logs/'+dataset_name+'/b_'+str(B)+'/'
# Only used if training multiple repetitions from the same script
R_per_gpu = 2
| class Train_Config:
datasets = {'glove': {'N': 1183514, 'd': 100}, 'Sift-128': {'N': 1000000, 'd': 128}}
dataset_name = 'glove'
inp_dim = datasets[dataset_name]['d']
n_classes = datasets[dataset_name]['N']
n_cores = 1
b = 3000
r = 16
gpus = [4, 5, 6, 7]
num_gpus = len(gpus)
batch_size = 256
hidden_dim = 1024
train_data_loc = '../../LTH/data/' + dataset_name + '/'
tfrecord_loc = '../../LTH/data/' + dataset_name + '/tfrecords/'
model_save_loc = '../saved_models/' + dataset_name + '/b_' + str(B) + '/'
lookups_loc = '../lookups/' + dataset_name + '/b_' + str(B) + '/'
logfolder = '../logs/' + dataset_name + '/b_' + str(B) + '/'
r_per_gpu = 2 |
def palindrome(s):
l = len(s)
if l == 0 or l == 1:
return True
return (s[0] == s[l-1]) and palindrome(s[1:l-1])
| def palindrome(s):
l = len(s)
if l == 0 or l == 1:
return True
return s[0] == s[l - 1] and palindrome(s[1:l - 1]) |
n = int(input())
sum = 0
for i in range(n):
num = int(input())
sum += num
print(sum) | n = int(input())
sum = 0
for i in range(n):
num = int(input())
sum += num
print(sum) |
# noqa: D104
# pylint: disable=missing-module-docstring
__version__ = "0.0.18"
| __version__ = '0.0.18' |
class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def __repr__(self):
return "{} => (l: {}, r: {})".format(
self.data, self.left, self.right)
def get_tree(seq):
head = Node(seq[-1])
if len(seq) == 1:
return head
for i in range(len(seq) - 1):
if seq[i] > head.data:
sep_ind = i
break
leq, gt = seq[:sep_ind], seq[sep_ind:-1]
head.left = get_tree(leq) if leq else None
head.right = get_tree(gt) if gt else None
return head
# Tests
tree = get_tree([2, 4, 3, 8, 7, 5])
assert tree.data == 5
assert tree.left.data == 3
assert tree.right.data == 7
assert tree.left.left.data == 2
assert tree.left.right.data == 4
assert tree.right.right.data == 8
| class Node:
def __init__(self, data):
self.data = data
self.left = None
self.right = None
def __repr__(self):
return '{} => (l: {}, r: {})'.format(self.data, self.left, self.right)
def get_tree(seq):
head = node(seq[-1])
if len(seq) == 1:
return head
for i in range(len(seq) - 1):
if seq[i] > head.data:
sep_ind = i
break
(leq, gt) = (seq[:sep_ind], seq[sep_ind:-1])
head.left = get_tree(leq) if leq else None
head.right = get_tree(gt) if gt else None
return head
tree = get_tree([2, 4, 3, 8, 7, 5])
assert tree.data == 5
assert tree.left.data == 3
assert tree.right.data == 7
assert tree.left.left.data == 2
assert tree.left.right.data == 4
assert tree.right.right.data == 8 |
#Definicion de variables y otros
print("ajercicio 01: Area de un Trianfulo ")
#Datos de entrada mediante dispositivos de entrada
b=int(input("Ingrese Base:"))
h=int(input("Ingrese altura:"))
#preceso
area=(b*h)/2
#datos de salida
print("El area es:", area)
| print('ajercicio 01: Area de un Trianfulo ')
b = int(input('Ingrese Base:'))
h = int(input('Ingrese altura:'))
area = b * h / 2
print('El area es:', area) |
#!/usr/bin/env python
"""
Difficulty: 4
You are stuck on the Moon and need to get back to Earth! To be able to get back to
Earth, we need to solve a linear system of equations. Don't ask how solving a linear
system of equation helps you getting back to the Earth. It just does.
Unfortunately, the Internet connection on the Moon is very bad. Therefore, we cannot
download third-party libraries (like numpy) to solve the task for us. We can only use
list comprehension and (maybe) built-in modules in python.
In addition, because the Internet is very bad, we generally need to solve each task with
A SINGLE LINE OF CODE (that do not exceed 88 characters), indentation included[1].
We need to implement the following methods:
* transpose [easy]
* matrix multiplication [easy]
* submatrix [medium]
* determinant [hard]
If all methods are correctly implemented, we will be able to solve the linear system of
equations, and hopefully we will get back to Earth. :-)
---
The solution should be the insertion a single line of code for all functions that we
need to define (see above). One exception, though: you can use several lines on the
`determinant` function (which should be around 1 - 10 lines inserted if solved
appropriately).
The solution need not have good performance. We don't design tests that have large
inputs. So a slow solution is completely fine!
[1] if you feel sneaky, you can adjust the indendation level to a single space instead
of the current 4 spaces, and you get 3 extra characters available!
"""
##############################################################################
# Helper functions
##############################################################################
def shape(X):
I, J = len(X), len(X[0])
return I, J
def add(X, value):
"""Add `value` to all elements of `X`"""
return [[a + value for a in row] for row in X]
def mul(X, factor):
"""Multiply `factor` to all elements of `X`"""
return [[a * factor for a in row] for row in X]
def dot(x, y):
"""Dot product of two lists of equal length"""
return sum(x_ * y_ for (x_, y_) in zip(x, y))
##############################################################################
# Solve these
##############################################################################
def transpose(X):
"""Transpose of a matrix `X`.
Implement the transpose operator with only one line of code! More than one line of
code do not qualify.
See [1] for definition.
Args:
X: list of lists, with `len(X) == i` and `len(X[0]) == j` and i, j > 0.
References:
[1] https://en.wikipedia.org/wiki/Transpose
"""
raise NotImplementedError
def matmul(X, Y):
"""Matric multiplication of two matrices `X` and `Y`.
Implement the matrix multiplication operator with only one line of code!
More than one line of code do not qualify.
See [1] for definition.
Notes:
Use the `dot` helper function if you like. Maybe you also want to use
some previously defined helper function, as well. :-)
Args:
X: list of lists, with `len(X) == I` and `len(X[0]) == J` and I, J > 0.
Y: list of lists. with `len(Y) == J` and `len(X[0]) == k` and J, K > 0.
References:
[1] https://en.wikipedia.org/wiki/Matrix_multiplication
"""
raise NotImplementedError
assert len(X[0]) == len(Y), "Shape mismatch. Can't do matrix multiplication."
def submatrix(X, i, j):
"""Calculate the submatrix of `X` by removing row `i` and column `j`.
See [1] for reference.
Args;
X: list of lists, with `len(X) == I` and `len(X[0]) == J` and I > 0
Returns:
Y: A list of lists, with `len(Y) == I-1` and `len(Y[0]) == J - 1`
Example:
>>> X = [[1, 2, 3],
>>> [4, 5, 6],
>>> [7, 8, 9]]
>>> submatrix(X, 1, 1)
[[1, 3],
[7, 9]]
References:
[1] https://en.wikipedia.org/wiki/Minor_(linear_algebra)
"""
raise NotImplementedError
I, J = shape(X)
assert I > 1 or J > 1, "Matrix too small to find submatrix"
def determinant(X) -> float:
"""Determinant of a matrix `X`.
Determinant calculation must be done using Laplace expansion. See [1] for an
example. For simplicity, you can just do Laplace expansion along the first row.
The implementation should be foremost CORRECT and CLEAN. We don't care about
performance. If we wanted performance, we would probably not implement matrix
operations directly in Python, and we would certainly not use the Laplace expansion
method. There's not much to do on the Moon anyways, so algorithm speed is no
problem.
Args:
X: list of lists, with `len(X) == I` and `len(X[0]) == I` with I > 0
Returns:
The determinant of matrix `X` (a single float value).
Notes:
The matrix `X` is square! We cannot find the determinant of non-square matrices.
Also, we expect that you will implement a recursive function here, because the
Laplace transform has a more-or-less recursive definition.
References:
[1] https://en.wikipedia.org/wiki/Laplace_expansion
"""
raise NotImplementedError
# NOTE: You can use more than 1 line of code to implement this. :-)
| """
Difficulty: 4
You are stuck on the Moon and need to get back to Earth! To be able to get back to
Earth, we need to solve a linear system of equations. Don't ask how solving a linear
system of equation helps you getting back to the Earth. It just does.
Unfortunately, the Internet connection on the Moon is very bad. Therefore, we cannot
download third-party libraries (like numpy) to solve the task for us. We can only use
list comprehension and (maybe) built-in modules in python.
In addition, because the Internet is very bad, we generally need to solve each task with
A SINGLE LINE OF CODE (that do not exceed 88 characters), indentation included[1].
We need to implement the following methods:
* transpose [easy]
* matrix multiplication [easy]
* submatrix [medium]
* determinant [hard]
If all methods are correctly implemented, we will be able to solve the linear system of
equations, and hopefully we will get back to Earth. :-)
---
The solution should be the insertion a single line of code for all functions that we
need to define (see above). One exception, though: you can use several lines on the
`determinant` function (which should be around 1 - 10 lines inserted if solved
appropriately).
The solution need not have good performance. We don't design tests that have large
inputs. So a slow solution is completely fine!
[1] if you feel sneaky, you can adjust the indendation level to a single space instead
of the current 4 spaces, and you get 3 extra characters available!
"""
def shape(X):
(i, j) = (len(X), len(X[0]))
return (I, J)
def add(X, value):
"""Add `value` to all elements of `X`"""
return [[a + value for a in row] for row in X]
def mul(X, factor):
"""Multiply `factor` to all elements of `X`"""
return [[a * factor for a in row] for row in X]
def dot(x, y):
"""Dot product of two lists of equal length"""
return sum((x_ * y_ for (x_, y_) in zip(x, y)))
def transpose(X):
"""Transpose of a matrix `X`.
Implement the transpose operator with only one line of code! More than one line of
code do not qualify.
See [1] for definition.
Args:
X: list of lists, with `len(X) == i` and `len(X[0]) == j` and i, j > 0.
References:
[1] https://en.wikipedia.org/wiki/Transpose
"""
raise NotImplementedError
def matmul(X, Y):
"""Matric multiplication of two matrices `X` and `Y`.
Implement the matrix multiplication operator with only one line of code!
More than one line of code do not qualify.
See [1] for definition.
Notes:
Use the `dot` helper function if you like. Maybe you also want to use
some previously defined helper function, as well. :-)
Args:
X: list of lists, with `len(X) == I` and `len(X[0]) == J` and I, J > 0.
Y: list of lists. with `len(Y) == J` and `len(X[0]) == k` and J, K > 0.
References:
[1] https://en.wikipedia.org/wiki/Matrix_multiplication
"""
raise NotImplementedError
assert len(X[0]) == len(Y), "Shape mismatch. Can't do matrix multiplication."
def submatrix(X, i, j):
"""Calculate the submatrix of `X` by removing row `i` and column `j`.
See [1] for reference.
Args;
X: list of lists, with `len(X) == I` and `len(X[0]) == J` and I > 0
Returns:
Y: A list of lists, with `len(Y) == I-1` and `len(Y[0]) == J - 1`
Example:
>>> X = [[1, 2, 3],
>>> [4, 5, 6],
>>> [7, 8, 9]]
>>> submatrix(X, 1, 1)
[[1, 3],
[7, 9]]
References:
[1] https://en.wikipedia.org/wiki/Minor_(linear_algebra)
"""
raise NotImplementedError
(i, j) = shape(X)
assert I > 1 or J > 1, 'Matrix too small to find submatrix'
def determinant(X) -> float:
"""Determinant of a matrix `X`.
Determinant calculation must be done using Laplace expansion. See [1] for an
example. For simplicity, you can just do Laplace expansion along the first row.
The implementation should be foremost CORRECT and CLEAN. We don't care about
performance. If we wanted performance, we would probably not implement matrix
operations directly in Python, and we would certainly not use the Laplace expansion
method. There's not much to do on the Moon anyways, so algorithm speed is no
problem.
Args:
X: list of lists, with `len(X) == I` and `len(X[0]) == I` with I > 0
Returns:
The determinant of matrix `X` (a single float value).
Notes:
The matrix `X` is square! We cannot find the determinant of non-square matrices.
Also, we expect that you will implement a recursive function here, because the
Laplace transform has a more-or-less recursive definition.
References:
[1] https://en.wikipedia.org/wiki/Laplace_expansion
"""
raise NotImplementedError |
class ClassicalModel(object):
"""
The model for a classical erasure channel.
"""
def __init__(self):
self._length = 0
self._transmission_p = 1.0
@property
def length(self):
"""
Length of the channel in Km
Returns:
(float) : Length of the channel in Km
"""
return self._length
@length.setter
def length(self, length):
"""
Set the length of the channel
Args:
length (float) : Length of the channel in m
"""
if not isinstance(length, int) and not isinstance(length, float):
raise ValueError("Length must be float or int")
elif length < 0:
raise ValueError("Length must be non-negative")
else:
self._length = length
@property
def transmission_p(self):
"""
Transmission probability of the channel
Returns:
(float) : Probability that a qubit is transmitted
"""
return self._transmission_p
@transmission_p.setter
def transmission_p(self, probability):
"""
Set the transmission probability of the channel
Args
probability (float) : Probability that a classical packet is transmitted
"""
if not isinstance(probability, int) and not isinstance(probability, float):
raise ValueError("Transmission probability must be float or int")
elif probability < 0 or probability > 1:
raise ValueError("Transmission probability must lie in the interval [0, 1]")
else:
self._transmission_p = probability
| class Classicalmodel(object):
"""
The model for a classical erasure channel.
"""
def __init__(self):
self._length = 0
self._transmission_p = 1.0
@property
def length(self):
"""
Length of the channel in Km
Returns:
(float) : Length of the channel in Km
"""
return self._length
@length.setter
def length(self, length):
"""
Set the length of the channel
Args:
length (float) : Length of the channel in m
"""
if not isinstance(length, int) and (not isinstance(length, float)):
raise value_error('Length must be float or int')
elif length < 0:
raise value_error('Length must be non-negative')
else:
self._length = length
@property
def transmission_p(self):
"""
Transmission probability of the channel
Returns:
(float) : Probability that a qubit is transmitted
"""
return self._transmission_p
@transmission_p.setter
def transmission_p(self, probability):
"""
Set the transmission probability of the channel
Args
probability (float) : Probability that a classical packet is transmitted
"""
if not isinstance(probability, int) and (not isinstance(probability, float)):
raise value_error('Transmission probability must be float or int')
elif probability < 0 or probability > 1:
raise value_error('Transmission probability must lie in the interval [0, 1]')
else:
self._transmission_p = probability |
def collatz ( n ):
'''
collatz: According to Collatz Conjecture generates a sequence that terminates at 1.
n: positive integer that starts the sequence
'''
# recursion unrolling
while n != 1:
print(n)
if n % 2 ==0: # n is even
n //= 2
else: # n is odd
n = n * 3 + 1
print(n)
# recursive collatz conjecture
def collatz ( n ):
print(n)
if n == 1: # base case
return
if n % 2 == 0: # n is even
n = n // 2
else: # n is odd
n = n * 3 + 1
return collatz(n)
collatz(4)
| def collatz(n):
"""
collatz: According to Collatz Conjecture generates a sequence that terminates at 1.
n: positive integer that starts the sequence
"""
while n != 1:
print(n)
if n % 2 == 0:
n //= 2
else:
n = n * 3 + 1
print(n)
def collatz(n):
print(n)
if n == 1:
return
if n % 2 == 0:
n = n // 2
else:
n = n * 3 + 1
return collatz(n)
collatz(4) |
# hello4.py
def hello():
print("Hello, world!")
def test():
hello()
if __name__ == '__main__': test() | def hello():
print('Hello, world!')
def test():
hello()
if __name__ == '__main__':
test() |
#! python3
# aoc_07.py
# Advent of code:
# https://adventofcode.com/2021/day/7
# https://adventofcode.com/2021/day/7#part2
#
def part_one(input) -> int:
with open(input, 'r') as f:
data = [[int(x) for x in line.strip()] for line in f.readlines()]
return 0
def part_two(input) -> int:
with open(input, 'r') as f:
data = [[int(x) for x in line.strip()] for line in f.readlines()]
return 0
if __name__ == "__main__":
example_path = "./aoc_xx_example.txt"
input_path = "./aoc_xx_input.txt"
print("---Part One---")
print(part_one(example_path))
print(part_one(input_path))
print("---Part Two---")
print(part_two(input_path)) | def part_one(input) -> int:
with open(input, 'r') as f:
data = [[int(x) for x in line.strip()] for line in f.readlines()]
return 0
def part_two(input) -> int:
with open(input, 'r') as f:
data = [[int(x) for x in line.strip()] for line in f.readlines()]
return 0
if __name__ == '__main__':
example_path = './aoc_xx_example.txt'
input_path = './aoc_xx_input.txt'
print('---Part One---')
print(part_one(example_path))
print(part_one(input_path))
print('---Part Two---')
print(part_two(input_path)) |
#
# Copyright 2021 Ocean Protocol Foundation
# SPDX-License-Identifier: Apache-2.0
#
ddo_dict = {
"id": "did:op:e16a777d1f146dba369cf98d212f34c17d9de516fcda5c9546076cf043ba6e37",
"version": "4.1.0",
"chain_id": 8996,
"metadata": {
"created": "2021-12-29T13:34:27",
"updated": "2021-12-29T13:34:27",
"description": "Asset description",
"copyrightHolder": "Asset copyright holder",
"name": "Asset name",
"author": "Asset Author",
"license": "CC-0",
"links": ["https://google.com"],
"contentLanguage": "en-US",
"categories": ["category 1"],
"tags": ["tag 1"],
"additionalInformation": {},
"type": "dataset",
},
"services": [
{
"index": 0,
"id": "compute_1",
"type": "compute",
"name": "compute_1",
"description": "compute_1",
"datatokenAddress": "0x0951D2558F897317e5a68d1b9e743156D1681168",
"serviceEndpoint": "http://172.15.0.4:8030/api/services",
"files": "0x0442b53536ebb3f1ee0301288efc7a14b9f807e9d104647ca052b0fb67954440bf18f9b5143c94ac5e7dedbefacccbf38783728de2f4c8af8468dca630e1e92e5c7c03cb82b4956fcfecb9fe6f19771df19e7e8dd06b4d6665bbe5b3d5bf5dbf5781b4f3ee97c7864a98d903df4acea2ad39176aed782b3faad82808ca4709382ccd8fa42561830069293d7cd6685696a54fc752f6d78fe7b3ed598636c5447fa593ffe4929280f3e6720f159251474035a29bdc11ae73150d3871600010dd97bd7de63cb64b338d4f5c1a9b70c082df801864a7d4f6c19e5568361e3cf6a3e795f5ae7c8972019405c113a33b5ae09a4dd5cdeff0",
"timeout": 3600,
"compute": {
"namespace": "test",
"allowRawAlgorithm": True,
"allowNetworkAccess": False,
"publisherTrustedAlgorithmPublishers": [],
"publisherTrustedAlgorithms": [
{
"did": "did:op:706d7452b1a25b183051fe02f2ad902d54fc45a43fdcee26b20f21684b5dee72",
"filesChecksum": "09903ddb8459c7ade1ea2bb639207c47f3474a060ae4ace9ba9581c71b9a3f54",
"containerSectionChecksum": "743e3591b4c035906be7dbc9eb592089d096be3b2d752f8d8d52917dd609f31f",
}
],
},
},
{
"index": 1,
"id": "access_1",
"type": "access",
"name": "name doesn't affect tests",
"description": "decription doesn't affect tests",
"datatokenAddress": "0x12d1d7BaF6fE43805391097A63301ACfcF5f5720",
"serviceEndpoint": "http://172.15.0.4:8030",
"files": "0x0487db5b45655d0ce74cf6e4707c2dd40509cb4d8f80af76758790b4ab715d7658a1f71ee1ee744e7af87275113bd0fde5f8362431934407c8e8bd6f20b1216de4f94cb3d03b975b5c61c5c9e6ac3373e50fc2d181c1b2808f9bca18a59180b77baad213c4dda70ddd866e6cbb0d6eae1036b6e0e8e8c2e17ca0e55180b2afb00acaa27bc343117457bb8d56d670d1e42ed6834b52c4a7f2eb035cb4bd98e24e5ba28935b67071d77d0edcd914572da492c72d0c049ed47d37a84b56a6be311b27fde9aea893afe408d2e96ce330e46443c2ee02ba5ee8757c5d3ef917de9863d13f843fb37794accad4d029c960fe4a56c3cc3d70",
"timeout": 3600,
"compute_dict": None,
},
],
"credentials": {"allow": [], "deny": []},
"nft": {
"address": "0x7358776DACe83a4b48E698645F32B043481daCBA",
"name": "Data NFT 1",
"symbol": "DNFT1",
"state": 0,
"owner": "0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e",
"created": "2021-12-29T13:34:28",
},
"datatokens": [
{
"address": "0x0951D2558F897317e5a68d1b9e743156D1681168",
"name": "Datatoken 1",
"symbol": "DT1",
"serviceId": "compute_1",
}
],
"event": {
"tx": "0xa73c332ba8d9615c438e7773d8f8db6a258cc615e43e47130e5500a9da729cea",
"block": 121,
"from": "0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e",
"contract": "0x7358776DACe83a4b48E698645F32B043481daCBA",
"datetime": "2021-12-29T13:34:28",
},
"stats": {"consumes": -1, "isInPurgatory": "false"},
}
alg_ddo_dict = {
"id": "did:op:706d7452b1a25b183051fe02f2ad902d54fc45a43fdcee26b20f21684b5dee72",
"version": "4.1.0",
"chain_id": 8996,
"metadata": {
"created": "2021-12-29T13:34:18",
"updated": "2021-12-29T13:34:18",
"description": "Asset description",
"copyrightHolder": "Asset copyright holder",
"name": "Asset name",
"author": "Asset Author",
"license": "CC-0",
"links": ["https://google.com"],
"contentLanguage": "en-US",
"categories": ["category 1"],
"tags": ["tag 1"],
"additionalInformation": {},
"type": "algorithm",
"algorithm": {
"language": "python",
"version": "0.1.0",
"container": {
"entrypoint": "run.sh",
"image": "my-docker-image",
"tag": "latest",
"checksum": "44e10daa6637893f4276bb8d7301eb35306ece50f61ca34dcab550",
},
},
},
"services": [
{
"index": 0,
"id": "b4d208d6-0074-4002-9dd1-02d5d0ad352e",
"type": "access",
"name": "name doesn't affect tests",
"description": "decription doesn't affect tests",
"datatokenAddress": "0x12d1d7BaF6fE43805391097A63301ACfcF5f5720",
"serviceEndpoint": "http://172.15.0.4:8030",
"files": "0x0487db5b45655d0ce74cf6e4707c2dd40509cb4d8f80af76758790b4ab715d7658a1f71ee1ee744e7af87275113bd0fde5f8362431934407c8e8bd6f20b1216de4f94cb3d03b975b5c61c5c9e6ac3373e50fc2d181c1b2808f9bca18a59180b77baad213c4dda70ddd866e6cbb0d6eae1036b6e0e8e8c2e17ca0e55180b2afb00acaa27bc343117457bb8d56d670d1e42ed6834b52c4a7f2eb035cb4bd98e24e5ba28935b67071d77d0edcd914572da492c72d0c049ed47d37a84b56a6be311b27fde9aea893afe408d2e96ce330e46443c2ee02ba5ee8757c5d3ef917de9863d13f843fb37794accad4d029c960fe4a56c3cc3d70",
"timeout": 3600,
"compute_dict": None,
},
{
"index": 1,
"id": "compute_1",
"type": "compute",
"name": "compute_1",
"description": "compute_1",
"datatokenAddress": "0x0951D2558F897317e5a68d1b9e743156D1681168",
"serviceEndpoint": "http://172.15.0.4:8030/api/services",
"files": "0x0442b53536ebb3f1ee0301288efc7a14b9f807e9d104647ca052b0fb67954440bf18f9b5143c94ac5e7dedbefacccbf38783728de2f4c8af8468dca630e1e92e5c7c03cb82b4956fcfecb9fe6f19771df19e7e8dd06b4d6665bbe5b3d5bf5dbf5781b4f3ee97c7864a98d903df4acea2ad39176aed782b3faad82808ca4709382ccd8fa42561830069293d7cd6685696a54fc752f6d78fe7b3ed598636c5447fa593ffe4929280f3e6720f159251474035a29bdc11ae73150d3871600010dd97bd7de63cb64b338d4f5c1a9b70c082df801864a7d4f6c19e5568361e3cf6a3e795f5ae7c8972019405c113a33b5ae09a4dd5cdeff0",
"timeout": 3600,
"compute": {
"namespace": "test",
"allowRawAlgorithm": True,
"allowNetworkAccess": False,
"publisherTrustedAlgorithmPublishers": [],
"publisherTrustedAlgorithms": [
{
"did": "did:op:706d7452b1a25b183051fe02f2ad902d54fc45a43fdcee26b20f21684b5dee72",
"filesChecksum": "09903ddb8459c7ade1ea2bb639207c47f3474a060ae4ace9ba9581c71b9a3f54",
"containerSectionChecksum": "743e3591b4c035906be7dbc9eb592089d096be3b2d752f8d8d52917dd609f31f",
}
],
},
},
],
"credentials": {"allow": [], "deny": []},
"nft": {
"address": "0xa072B0D477fae1aBE3537Ff66A8389B184E18F4d",
"name": "Data NFT 1",
"symbol": "DNFT1",
"state": 0,
"owner": "0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e",
"created": "2021-12-29T13:34:20",
},
"datatokens": [
{
"address": "0x12d1d7BaF6fE43805391097A63301ACfcF5f5720",
"name": "Datatoken 1",
"symbol": "DT1",
"serviceId": "b4d208d6-0074-4002-9dd1-02d5d0ad352e",
}
],
"event": {
"tx": "0x09366c3bf4b24eabbe6de4a1ee63c07fca82c768fcff76e18e8dd461197f2aba",
"block": 116,
"from": "0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e",
"contract": "0xa072B0D477fae1aBE3537Ff66A8389B184E18F4d",
"datetime": "2021-12-29T13:34:20",
},
"stats": {"consumes": -1, "isInPurgatory": "false"},
}
| ddo_dict = {'id': 'did:op:e16a777d1f146dba369cf98d212f34c17d9de516fcda5c9546076cf043ba6e37', 'version': '4.1.0', 'chain_id': 8996, 'metadata': {'created': '2021-12-29T13:34:27', 'updated': '2021-12-29T13:34:27', 'description': 'Asset description', 'copyrightHolder': 'Asset copyright holder', 'name': 'Asset name', 'author': 'Asset Author', 'license': 'CC-0', 'links': ['https://google.com'], 'contentLanguage': 'en-US', 'categories': ['category 1'], 'tags': ['tag 1'], 'additionalInformation': {}, 'type': 'dataset'}, 'services': [{'index': 0, 'id': 'compute_1', 'type': 'compute', 'name': 'compute_1', 'description': 'compute_1', 'datatokenAddress': '0x0951D2558F897317e5a68d1b9e743156D1681168', 'serviceEndpoint': 'http://172.15.0.4:8030/api/services', 'files': '0x0442b53536ebb3f1ee0301288efc7a14b9f807e9d104647ca052b0fb67954440bf18f9b5143c94ac5e7dedbefacccbf38783728de2f4c8af8468dca630e1e92e5c7c03cb82b4956fcfecb9fe6f19771df19e7e8dd06b4d6665bbe5b3d5bf5dbf5781b4f3ee97c7864a98d903df4acea2ad39176aed782b3faad82808ca4709382ccd8fa42561830069293d7cd6685696a54fc752f6d78fe7b3ed598636c5447fa593ffe4929280f3e6720f159251474035a29bdc11ae73150d3871600010dd97bd7de63cb64b338d4f5c1a9b70c082df801864a7d4f6c19e5568361e3cf6a3e795f5ae7c8972019405c113a33b5ae09a4dd5cdeff0', 'timeout': 3600, 'compute': {'namespace': 'test', 'allowRawAlgorithm': True, 'allowNetworkAccess': False, 'publisherTrustedAlgorithmPublishers': [], 'publisherTrustedAlgorithms': [{'did': 'did:op:706d7452b1a25b183051fe02f2ad902d54fc45a43fdcee26b20f21684b5dee72', 'filesChecksum': '09903ddb8459c7ade1ea2bb639207c47f3474a060ae4ace9ba9581c71b9a3f54', 'containerSectionChecksum': '743e3591b4c035906be7dbc9eb592089d096be3b2d752f8d8d52917dd609f31f'}]}}, {'index': 1, 'id': 'access_1', 'type': 'access', 'name': "name doesn't affect tests", 'description': "decription doesn't affect tests", 'datatokenAddress': '0x12d1d7BaF6fE43805391097A63301ACfcF5f5720', 'serviceEndpoint': 'http://172.15.0.4:8030', 'files': '0x0487db5b45655d0ce74cf6e4707c2dd40509cb4d8f80af76758790b4ab715d7658a1f71ee1ee744e7af87275113bd0fde5f8362431934407c8e8bd6f20b1216de4f94cb3d03b975b5c61c5c9e6ac3373e50fc2d181c1b2808f9bca18a59180b77baad213c4dda70ddd866e6cbb0d6eae1036b6e0e8e8c2e17ca0e55180b2afb00acaa27bc343117457bb8d56d670d1e42ed6834b52c4a7f2eb035cb4bd98e24e5ba28935b67071d77d0edcd914572da492c72d0c049ed47d37a84b56a6be311b27fde9aea893afe408d2e96ce330e46443c2ee02ba5ee8757c5d3ef917de9863d13f843fb37794accad4d029c960fe4a56c3cc3d70', 'timeout': 3600, 'compute_dict': None}], 'credentials': {'allow': [], 'deny': []}, 'nft': {'address': '0x7358776DACe83a4b48E698645F32B043481daCBA', 'name': 'Data NFT 1', 'symbol': 'DNFT1', 'state': 0, 'owner': '0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e', 'created': '2021-12-29T13:34:28'}, 'datatokens': [{'address': '0x0951D2558F897317e5a68d1b9e743156D1681168', 'name': 'Datatoken 1', 'symbol': 'DT1', 'serviceId': 'compute_1'}], 'event': {'tx': '0xa73c332ba8d9615c438e7773d8f8db6a258cc615e43e47130e5500a9da729cea', 'block': 121, 'from': '0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e', 'contract': '0x7358776DACe83a4b48E698645F32B043481daCBA', 'datetime': '2021-12-29T13:34:28'}, 'stats': {'consumes': -1, 'isInPurgatory': 'false'}}
alg_ddo_dict = {'id': 'did:op:706d7452b1a25b183051fe02f2ad902d54fc45a43fdcee26b20f21684b5dee72', 'version': '4.1.0', 'chain_id': 8996, 'metadata': {'created': '2021-12-29T13:34:18', 'updated': '2021-12-29T13:34:18', 'description': 'Asset description', 'copyrightHolder': 'Asset copyright holder', 'name': 'Asset name', 'author': 'Asset Author', 'license': 'CC-0', 'links': ['https://google.com'], 'contentLanguage': 'en-US', 'categories': ['category 1'], 'tags': ['tag 1'], 'additionalInformation': {}, 'type': 'algorithm', 'algorithm': {'language': 'python', 'version': '0.1.0', 'container': {'entrypoint': 'run.sh', 'image': 'my-docker-image', 'tag': 'latest', 'checksum': '44e10daa6637893f4276bb8d7301eb35306ece50f61ca34dcab550'}}}, 'services': [{'index': 0, 'id': 'b4d208d6-0074-4002-9dd1-02d5d0ad352e', 'type': 'access', 'name': "name doesn't affect tests", 'description': "decription doesn't affect tests", 'datatokenAddress': '0x12d1d7BaF6fE43805391097A63301ACfcF5f5720', 'serviceEndpoint': 'http://172.15.0.4:8030', 'files': '0x0487db5b45655d0ce74cf6e4707c2dd40509cb4d8f80af76758790b4ab715d7658a1f71ee1ee744e7af87275113bd0fde5f8362431934407c8e8bd6f20b1216de4f94cb3d03b975b5c61c5c9e6ac3373e50fc2d181c1b2808f9bca18a59180b77baad213c4dda70ddd866e6cbb0d6eae1036b6e0e8e8c2e17ca0e55180b2afb00acaa27bc343117457bb8d56d670d1e42ed6834b52c4a7f2eb035cb4bd98e24e5ba28935b67071d77d0edcd914572da492c72d0c049ed47d37a84b56a6be311b27fde9aea893afe408d2e96ce330e46443c2ee02ba5ee8757c5d3ef917de9863d13f843fb37794accad4d029c960fe4a56c3cc3d70', 'timeout': 3600, 'compute_dict': None}, {'index': 1, 'id': 'compute_1', 'type': 'compute', 'name': 'compute_1', 'description': 'compute_1', 'datatokenAddress': '0x0951D2558F897317e5a68d1b9e743156D1681168', 'serviceEndpoint': 'http://172.15.0.4:8030/api/services', 'files': '0x0442b53536ebb3f1ee0301288efc7a14b9f807e9d104647ca052b0fb67954440bf18f9b5143c94ac5e7dedbefacccbf38783728de2f4c8af8468dca630e1e92e5c7c03cb82b4956fcfecb9fe6f19771df19e7e8dd06b4d6665bbe5b3d5bf5dbf5781b4f3ee97c7864a98d903df4acea2ad39176aed782b3faad82808ca4709382ccd8fa42561830069293d7cd6685696a54fc752f6d78fe7b3ed598636c5447fa593ffe4929280f3e6720f159251474035a29bdc11ae73150d3871600010dd97bd7de63cb64b338d4f5c1a9b70c082df801864a7d4f6c19e5568361e3cf6a3e795f5ae7c8972019405c113a33b5ae09a4dd5cdeff0', 'timeout': 3600, 'compute': {'namespace': 'test', 'allowRawAlgorithm': True, 'allowNetworkAccess': False, 'publisherTrustedAlgorithmPublishers': [], 'publisherTrustedAlgorithms': [{'did': 'did:op:706d7452b1a25b183051fe02f2ad902d54fc45a43fdcee26b20f21684b5dee72', 'filesChecksum': '09903ddb8459c7ade1ea2bb639207c47f3474a060ae4ace9ba9581c71b9a3f54', 'containerSectionChecksum': '743e3591b4c035906be7dbc9eb592089d096be3b2d752f8d8d52917dd609f31f'}]}}], 'credentials': {'allow': [], 'deny': []}, 'nft': {'address': '0xa072B0D477fae1aBE3537Ff66A8389B184E18F4d', 'name': 'Data NFT 1', 'symbol': 'DNFT1', 'state': 0, 'owner': '0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e', 'created': '2021-12-29T13:34:20'}, 'datatokens': [{'address': '0x12d1d7BaF6fE43805391097A63301ACfcF5f5720', 'name': 'Datatoken 1', 'symbol': 'DT1', 'serviceId': 'b4d208d6-0074-4002-9dd1-02d5d0ad352e'}], 'event': {'tx': '0x09366c3bf4b24eabbe6de4a1ee63c07fca82c768fcff76e18e8dd461197f2aba', 'block': 116, 'from': '0xBE5449a6A97aD46c8558A3356267Ee5D2731ab5e', 'contract': '0xa072B0D477fae1aBE3537Ff66A8389B184E18F4d', 'datetime': '2021-12-29T13:34:20'}, 'stats': {'consumes': -1, 'isInPurgatory': 'false'}} |
def solve(n, ss):
inp_arr_unsorted = [int(k) for k in ss.split(' ')]
inp_arr = sorted(inp_arr_unsorted)[::-1]
flag = False
counter = 0
n_fix = n
candidate_ans = 0
while not flag:
if inp_arr[counter] <= n:
flag = True
candidate_ans = n
else:
counter += 1
n -= 1
flag = (counter == n_fix)
candidate_ans += 1
return candidate_ans
t = int(input())
for ___ in range(t):
n = int(input())
if n == 1:
if int(input()) == 1:
answer = 2
else:
answer = 1
else:
inp_str = input()
answer = solve(n, inp_str)
print(answer) | def solve(n, ss):
inp_arr_unsorted = [int(k) for k in ss.split(' ')]
inp_arr = sorted(inp_arr_unsorted)[::-1]
flag = False
counter = 0
n_fix = n
candidate_ans = 0
while not flag:
if inp_arr[counter] <= n:
flag = True
candidate_ans = n
else:
counter += 1
n -= 1
flag = counter == n_fix
candidate_ans += 1
return candidate_ans
t = int(input())
for ___ in range(t):
n = int(input())
if n == 1:
if int(input()) == 1:
answer = 2
else:
answer = 1
else:
inp_str = input()
answer = solve(n, inp_str)
print(answer) |
#
# PySNMP MIB module ALVARION-AAA-CLIENT-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ALVARION-AAA-CLIENT-MIB
# Produced by pysmi-0.3.4 at Wed May 1 11:21:57 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
alvarionMgmtV2, = mibBuilder.importSymbols("ALVARION-SMI", "alvarionMgmtV2")
AlvarionServerIndex, AlvarionProfileIndex, AlvarionServerIndexOrZero = mibBuilder.importSymbols("ALVARION-TC", "AlvarionServerIndex", "AlvarionProfileIndex", "AlvarionServerIndexOrZero")
OctetString, Integer, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "OctetString", "Integer", "ObjectIdentifier")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsUnion, SingleValueConstraint, ConstraintsIntersection, ValueSizeConstraint, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsUnion", "SingleValueConstraint", "ConstraintsIntersection", "ValueSizeConstraint", "ValueRangeConstraint")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
TimeTicks, ObjectIdentity, IpAddress, iso, MibIdentifier, Counter32, Counter64, NotificationType, MibScalar, MibTable, MibTableRow, MibTableColumn, Unsigned32, Gauge32, Integer32, ModuleIdentity, Bits = mibBuilder.importSymbols("SNMPv2-SMI", "TimeTicks", "ObjectIdentity", "IpAddress", "iso", "MibIdentifier", "Counter32", "Counter64", "NotificationType", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Unsigned32", "Gauge32", "Integer32", "ModuleIdentity", "Bits")
TextualConvention, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString")
alvarionAAAClientMIB = ModuleIdentity((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5))
if mibBuilder.loadTexts: alvarionAAAClientMIB.setLastUpdated('200710310000Z')
if mibBuilder.loadTexts: alvarionAAAClientMIB.setOrganization('Alvarion Ltd.')
if mibBuilder.loadTexts: alvarionAAAClientMIB.setContactInfo('Alvarion Ltd. Postal: 21a HaBarzel St. P.O. Box 13139 Tel-Aviv 69710 Israel Phone: +972 3 645 6262')
if mibBuilder.loadTexts: alvarionAAAClientMIB.setDescription('Alvarion AAA Client MIB file.')
alvarionAAAClientObjects = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1))
alvarionAAAProfileGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1))
alvarionAAAServerGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2))
alvarionAAAProfileTable = MibTable((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1), )
if mibBuilder.loadTexts: alvarionAAAProfileTable.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAProfileTable.setDescription('A table defining the AAA server profiles currently configured on the device.')
alvarionAAAProfileEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1), ).setIndexNames((0, "ALVARION-AAA-CLIENT-MIB", "alvarionAAAProfileIndex"))
if mibBuilder.loadTexts: alvarionAAAProfileEntry.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAProfileEntry.setDescription('A AAA server profile configured in the device. alvarionAAAProfileIndex - Uniquely identifies the profile within the profile table.')
alvarionAAAProfileIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 1), AlvarionProfileIndex())
if mibBuilder.loadTexts: alvarionAAAProfileIndex.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAProfileIndex.setDescription('Specifies the index of the AAA server profile.')
alvarionAAAProfileName = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 2), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: alvarionAAAProfileName.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAProfileName.setDescription('Specifies the name of the AAA server profile.')
alvarionAAAProfilePrimaryServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 3), AlvarionServerIndexOrZero()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alvarionAAAProfilePrimaryServerIndex.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAProfilePrimaryServerIndex.setDescription('Indicates the index number of the primary server profile in the table. A value of zero indicates that no AAA server is defined.')
alvarionAAAProfileSecondaryServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 4), AlvarionServerIndexOrZero()).setMaxAccess("readonly")
if mibBuilder.loadTexts: alvarionAAAProfileSecondaryServerIndex.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAProfileSecondaryServerIndex.setDescription('Indicates the index number of the secondary server profile in the table. A value of zero indicates that no AAA server is defined.')
alvarionAAAServerTable = MibTable((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1), )
if mibBuilder.loadTexts: alvarionAAAServerTable.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAServerTable.setDescription('A table containing the AAA servers currently configured on the device.')
alvarionAAAServerEntry = MibTableRow((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1), ).setIndexNames((0, "ALVARION-AAA-CLIENT-MIB", "alvarionAAAServerIndex"))
if mibBuilder.loadTexts: alvarionAAAServerEntry.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAServerEntry.setDescription('An AAA server configured on the device. alvarionAAAServerIndex - Uniquely identifies a server inside the server table.')
alvarionAAAServerIndex = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 1), AlvarionServerIndex())
if mibBuilder.loadTexts: alvarionAAAServerIndex.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAServerIndex.setDescription('Specifies the index of the AAA server in the table.')
alvarionAAAAuthenProtocol = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1))).clone(namedValues=NamedValues(("radius", 1)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alvarionAAAAuthenProtocol.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAAuthenProtocol.setDescription('Indicates the protocol used by the AAA client to communicate with the AAA server.')
alvarionAAAAuthenMethod = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4, 5))).clone(namedValues=NamedValues(("pap", 1), ("chap", 2), ("mschap", 3), ("mschapv2", 4), ("eapMd5", 5)))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alvarionAAAAuthenMethod.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAAuthenMethod.setDescription('Indicates the authentication method used by the AAA client to authenticate users via the AAA server.')
alvarionAAAServerName = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 4), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 15))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: alvarionAAAServerName.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAServerName.setDescription("Specifies the IP address of the AAA server. The string must be a valid IP address in the format 'nnn.nnn.nnn.nnn' Where 'nnn' is a number in the range [0..255]. The '.' character is mandatory between the fields.")
alvarionAAASharedSecret = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 5), DisplayString()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: alvarionAAASharedSecret.setStatus('current')
if mibBuilder.loadTexts: alvarionAAASharedSecret.setDescription('Specifies the shared secret used by the AAA client and the AAA server. This attribute should only be set if AAA traffic between the AAA client and server is sent through a VPN tunnel. Reading this attribute will always return a zero-length string.')
alvarionAAAAuthenticationPort = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alvarionAAAAuthenticationPort.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAAuthenticationPort.setDescription('Indicates the port number used by the AAA client to send authentication requests to the AAA server.')
alvarionAAAAccountingPort = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 7), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 65535))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alvarionAAAAccountingPort.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAAccountingPort.setDescription('Indicates the port number used by the AAA client to send accounting information to the AAA server.')
alvarionAAATimeout = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 8), Integer32().subtype(subtypeSpec=ValueRangeConstraint(3, 100))).setUnits('seconds').setMaxAccess("readonly")
if mibBuilder.loadTexts: alvarionAAATimeout.setStatus('current')
if mibBuilder.loadTexts: alvarionAAATimeout.setDescription('Indicates how long the AAA client will wait for an answer to an authentication request.')
alvarionAAANASId = MibTableColumn((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 9), OctetString().subtype(subtypeSpec=ValueSizeConstraint(0, 253))).setMaxAccess("readonly")
if mibBuilder.loadTexts: alvarionAAANASId.setStatus('current')
if mibBuilder.loadTexts: alvarionAAANASId.setDescription('Indicates the network access server ID to be sent by the AAA client in each authentication request sent to the AAA server.')
alvarionAAAClientMIBConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2))
alvarionAAAClientMIBCompliances = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 1))
alvarionAAAClientMIBGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 2))
alvarionAAAClientMIBCompliance = ModuleCompliance((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 1, 1)).setObjects(("ALVARION-AAA-CLIENT-MIB", "alvarionAAAProfileMIBGroup"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAAClientMIBGroup"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
alvarionAAAClientMIBCompliance = alvarionAAAClientMIBCompliance.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAClientMIBCompliance.setDescription('The compliance statement for entities which implement the Alvarion AAA client MIB.')
alvarionAAAProfileMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 2, 1)).setObjects(("ALVARION-AAA-CLIENT-MIB", "alvarionAAAProfileName"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAAProfilePrimaryServerIndex"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAAProfileSecondaryServerIndex"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
alvarionAAAProfileMIBGroup = alvarionAAAProfileMIBGroup.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAProfileMIBGroup.setDescription('A collection of objects providing the AAA profile capability.')
alvarionAAAClientMIBGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 2, 2)).setObjects(("ALVARION-AAA-CLIENT-MIB", "alvarionAAAAuthenProtocol"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAAAuthenMethod"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAAServerName"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAASharedSecret"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAAAuthenticationPort"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAAAccountingPort"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAATimeout"), ("ALVARION-AAA-CLIENT-MIB", "alvarionAAANASId"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
alvarionAAAClientMIBGroup = alvarionAAAClientMIBGroup.setStatus('current')
if mibBuilder.loadTexts: alvarionAAAClientMIBGroup.setDescription('A collection of objects providing the AAA client MIB capability.')
mibBuilder.exportSymbols("ALVARION-AAA-CLIENT-MIB", alvarionAAAProfilePrimaryServerIndex=alvarionAAAProfilePrimaryServerIndex, alvarionAAAServerTable=alvarionAAAServerTable, alvarionAAAClientMIBGroup=alvarionAAAClientMIBGroup, alvarionAAAAuthenMethod=alvarionAAAAuthenMethod, alvarionAAAAuthenticationPort=alvarionAAAAuthenticationPort, alvarionAAAClientObjects=alvarionAAAClientObjects, PYSNMP_MODULE_ID=alvarionAAAClientMIB, alvarionAAAAccountingPort=alvarionAAAAccountingPort, alvarionAAAServerIndex=alvarionAAAServerIndex, alvarionAAANASId=alvarionAAANASId, alvarionAAAClientMIBConformance=alvarionAAAClientMIBConformance, alvarionAAAClientMIB=alvarionAAAClientMIB, alvarionAAAProfileIndex=alvarionAAAProfileIndex, alvarionAAASharedSecret=alvarionAAASharedSecret, alvarionAAAClientMIBCompliance=alvarionAAAClientMIBCompliance, alvarionAAAClientMIBGroups=alvarionAAAClientMIBGroups, alvarionAAAClientMIBCompliances=alvarionAAAClientMIBCompliances, alvarionAAAProfileEntry=alvarionAAAProfileEntry, alvarionAAAAuthenProtocol=alvarionAAAAuthenProtocol, alvarionAAAProfileTable=alvarionAAAProfileTable, alvarionAAAProfileName=alvarionAAAProfileName, alvarionAAAServerEntry=alvarionAAAServerEntry, alvarionAAAServerName=alvarionAAAServerName, alvarionAAATimeout=alvarionAAATimeout, alvarionAAAProfileMIBGroup=alvarionAAAProfileMIBGroup, alvarionAAAProfileGroup=alvarionAAAProfileGroup, alvarionAAAServerGroup=alvarionAAAServerGroup, alvarionAAAProfileSecondaryServerIndex=alvarionAAAProfileSecondaryServerIndex)
| (alvarion_mgmt_v2,) = mibBuilder.importSymbols('ALVARION-SMI', 'alvarionMgmtV2')
(alvarion_server_index, alvarion_profile_index, alvarion_server_index_or_zero) = mibBuilder.importSymbols('ALVARION-TC', 'AlvarionServerIndex', 'AlvarionProfileIndex', 'AlvarionServerIndexOrZero')
(octet_string, integer, object_identifier) = mibBuilder.importSymbols('ASN1', 'OctetString', 'Integer', 'ObjectIdentifier')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_union, single_value_constraint, constraints_intersection, value_size_constraint, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsUnion', 'SingleValueConstraint', 'ConstraintsIntersection', 'ValueSizeConstraint', 'ValueRangeConstraint')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(time_ticks, object_identity, ip_address, iso, mib_identifier, counter32, counter64, notification_type, mib_scalar, mib_table, mib_table_row, mib_table_column, unsigned32, gauge32, integer32, module_identity, bits) = mibBuilder.importSymbols('SNMPv2-SMI', 'TimeTicks', 'ObjectIdentity', 'IpAddress', 'iso', 'MibIdentifier', 'Counter32', 'Counter64', 'NotificationType', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Unsigned32', 'Gauge32', 'Integer32', 'ModuleIdentity', 'Bits')
(textual_convention, display_string) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString')
alvarion_aaa_client_mib = module_identity((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5))
if mibBuilder.loadTexts:
alvarionAAAClientMIB.setLastUpdated('200710310000Z')
if mibBuilder.loadTexts:
alvarionAAAClientMIB.setOrganization('Alvarion Ltd.')
if mibBuilder.loadTexts:
alvarionAAAClientMIB.setContactInfo('Alvarion Ltd. Postal: 21a HaBarzel St. P.O. Box 13139 Tel-Aviv 69710 Israel Phone: +972 3 645 6262')
if mibBuilder.loadTexts:
alvarionAAAClientMIB.setDescription('Alvarion AAA Client MIB file.')
alvarion_aaa_client_objects = mib_identifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1))
alvarion_aaa_profile_group = mib_identifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1))
alvarion_aaa_server_group = mib_identifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2))
alvarion_aaa_profile_table = mib_table((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1))
if mibBuilder.loadTexts:
alvarionAAAProfileTable.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAProfileTable.setDescription('A table defining the AAA server profiles currently configured on the device.')
alvarion_aaa_profile_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1)).setIndexNames((0, 'ALVARION-AAA-CLIENT-MIB', 'alvarionAAAProfileIndex'))
if mibBuilder.loadTexts:
alvarionAAAProfileEntry.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAProfileEntry.setDescription('A AAA server profile configured in the device. alvarionAAAProfileIndex - Uniquely identifies the profile within the profile table.')
alvarion_aaa_profile_index = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 1), alvarion_profile_index())
if mibBuilder.loadTexts:
alvarionAAAProfileIndex.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAProfileIndex.setDescription('Specifies the index of the AAA server profile.')
alvarion_aaa_profile_name = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 2), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
alvarionAAAProfileName.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAProfileName.setDescription('Specifies the name of the AAA server profile.')
alvarion_aaa_profile_primary_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 3), alvarion_server_index_or_zero()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alvarionAAAProfilePrimaryServerIndex.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAProfilePrimaryServerIndex.setDescription('Indicates the index number of the primary server profile in the table. A value of zero indicates that no AAA server is defined.')
alvarion_aaa_profile_secondary_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 1, 1, 1, 4), alvarion_server_index_or_zero()).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alvarionAAAProfileSecondaryServerIndex.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAProfileSecondaryServerIndex.setDescription('Indicates the index number of the secondary server profile in the table. A value of zero indicates that no AAA server is defined.')
alvarion_aaa_server_table = mib_table((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1))
if mibBuilder.loadTexts:
alvarionAAAServerTable.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAServerTable.setDescription('A table containing the AAA servers currently configured on the device.')
alvarion_aaa_server_entry = mib_table_row((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1)).setIndexNames((0, 'ALVARION-AAA-CLIENT-MIB', 'alvarionAAAServerIndex'))
if mibBuilder.loadTexts:
alvarionAAAServerEntry.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAServerEntry.setDescription('An AAA server configured on the device. alvarionAAAServerIndex - Uniquely identifies a server inside the server table.')
alvarion_aaa_server_index = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 1), alvarion_server_index())
if mibBuilder.loadTexts:
alvarionAAAServerIndex.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAServerIndex.setDescription('Specifies the index of the AAA server in the table.')
alvarion_aaa_authen_protocol = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 2), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1))).clone(namedValues=named_values(('radius', 1)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alvarionAAAAuthenProtocol.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAAuthenProtocol.setDescription('Indicates the protocol used by the AAA client to communicate with the AAA server.')
alvarion_aaa_authen_method = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4, 5))).clone(namedValues=named_values(('pap', 1), ('chap', 2), ('mschap', 3), ('mschapv2', 4), ('eapMd5', 5)))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alvarionAAAAuthenMethod.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAAuthenMethod.setDescription('Indicates the authentication method used by the AAA client to authenticate users via the AAA server.')
alvarion_aaa_server_name = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 4), octet_string().subtype(subtypeSpec=value_size_constraint(0, 15))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
alvarionAAAServerName.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAServerName.setDescription("Specifies the IP address of the AAA server. The string must be a valid IP address in the format 'nnn.nnn.nnn.nnn' Where 'nnn' is a number in the range [0..255]. The '.' character is mandatory between the fields.")
alvarion_aaa_shared_secret = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 5), display_string()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
alvarionAAASharedSecret.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAASharedSecret.setDescription('Specifies the shared secret used by the AAA client and the AAA server. This attribute should only be set if AAA traffic between the AAA client and server is sent through a VPN tunnel. Reading this attribute will always return a zero-length string.')
alvarion_aaa_authentication_port = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alvarionAAAAuthenticationPort.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAAuthenticationPort.setDescription('Indicates the port number used by the AAA client to send authentication requests to the AAA server.')
alvarion_aaa_accounting_port = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 7), integer32().subtype(subtypeSpec=value_range_constraint(1, 65535))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alvarionAAAAccountingPort.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAAccountingPort.setDescription('Indicates the port number used by the AAA client to send accounting information to the AAA server.')
alvarion_aaa_timeout = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 8), integer32().subtype(subtypeSpec=value_range_constraint(3, 100))).setUnits('seconds').setMaxAccess('readonly')
if mibBuilder.loadTexts:
alvarionAAATimeout.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAATimeout.setDescription('Indicates how long the AAA client will wait for an answer to an authentication request.')
alvarion_aaanas_id = mib_table_column((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 1, 2, 1, 1, 9), octet_string().subtype(subtypeSpec=value_size_constraint(0, 253))).setMaxAccess('readonly')
if mibBuilder.loadTexts:
alvarionAAANASId.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAANASId.setDescription('Indicates the network access server ID to be sent by the AAA client in each authentication request sent to the AAA server.')
alvarion_aaa_client_mib_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2))
alvarion_aaa_client_mib_compliances = mib_identifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 1))
alvarion_aaa_client_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 2))
alvarion_aaa_client_mib_compliance = module_compliance((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 1, 1)).setObjects(('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAProfileMIBGroup'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAClientMIBGroup'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
alvarion_aaa_client_mib_compliance = alvarionAAAClientMIBCompliance.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAClientMIBCompliance.setDescription('The compliance statement for entities which implement the Alvarion AAA client MIB.')
alvarion_aaa_profile_mib_group = object_group((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 2, 1)).setObjects(('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAProfileName'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAProfilePrimaryServerIndex'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAProfileSecondaryServerIndex'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
alvarion_aaa_profile_mib_group = alvarionAAAProfileMIBGroup.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAProfileMIBGroup.setDescription('A collection of objects providing the AAA profile capability.')
alvarion_aaa_client_mib_group = object_group((1, 3, 6, 1, 4, 1, 12394, 1, 10, 5, 5, 2, 2, 2)).setObjects(('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAAuthenProtocol'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAAuthenMethod'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAServerName'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAASharedSecret'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAAuthenticationPort'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAAAccountingPort'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAATimeout'), ('ALVARION-AAA-CLIENT-MIB', 'alvarionAAANASId'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
alvarion_aaa_client_mib_group = alvarionAAAClientMIBGroup.setStatus('current')
if mibBuilder.loadTexts:
alvarionAAAClientMIBGroup.setDescription('A collection of objects providing the AAA client MIB capability.')
mibBuilder.exportSymbols('ALVARION-AAA-CLIENT-MIB', alvarionAAAProfilePrimaryServerIndex=alvarionAAAProfilePrimaryServerIndex, alvarionAAAServerTable=alvarionAAAServerTable, alvarionAAAClientMIBGroup=alvarionAAAClientMIBGroup, alvarionAAAAuthenMethod=alvarionAAAAuthenMethod, alvarionAAAAuthenticationPort=alvarionAAAAuthenticationPort, alvarionAAAClientObjects=alvarionAAAClientObjects, PYSNMP_MODULE_ID=alvarionAAAClientMIB, alvarionAAAAccountingPort=alvarionAAAAccountingPort, alvarionAAAServerIndex=alvarionAAAServerIndex, alvarionAAANASId=alvarionAAANASId, alvarionAAAClientMIBConformance=alvarionAAAClientMIBConformance, alvarionAAAClientMIB=alvarionAAAClientMIB, alvarionAAAProfileIndex=alvarionAAAProfileIndex, alvarionAAASharedSecret=alvarionAAASharedSecret, alvarionAAAClientMIBCompliance=alvarionAAAClientMIBCompliance, alvarionAAAClientMIBGroups=alvarionAAAClientMIBGroups, alvarionAAAClientMIBCompliances=alvarionAAAClientMIBCompliances, alvarionAAAProfileEntry=alvarionAAAProfileEntry, alvarionAAAAuthenProtocol=alvarionAAAAuthenProtocol, alvarionAAAProfileTable=alvarionAAAProfileTable, alvarionAAAProfileName=alvarionAAAProfileName, alvarionAAAServerEntry=alvarionAAAServerEntry, alvarionAAAServerName=alvarionAAAServerName, alvarionAAATimeout=alvarionAAATimeout, alvarionAAAProfileMIBGroup=alvarionAAAProfileMIBGroup, alvarionAAAProfileGroup=alvarionAAAProfileGroup, alvarionAAAServerGroup=alvarionAAAServerGroup, alvarionAAAProfileSecondaryServerIndex=alvarionAAAProfileSecondaryServerIndex) |
begin_unit
comment|'# All Rights Reserved.'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl|'\n'
comment|'# not use this file except in compliance with the License. You may obtain'
nl|'\n'
comment|'# a copy of the License at'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# http://www.apache.org/licenses/LICENSE-2.0'
nl|'\n'
comment|'#'
nl|'\n'
comment|'# Unless required by applicable law or agreed to in writing, software'
nl|'\n'
comment|'# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT'
nl|'\n'
comment|'# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the'
nl|'\n'
comment|'# License for the specific language governing permissions and limitations'
nl|'\n'
comment|'# under the License.'
nl|'\n'
nl|'\n'
string|'"""Serial consoles module."""'
newline|'\n'
nl|'\n'
name|'import'
name|'socket'
newline|'\n'
nl|'\n'
name|'from'
name|'oslo_log'
name|'import'
name|'log'
name|'as'
name|'logging'
newline|'\n'
name|'import'
name|'six'
op|'.'
name|'moves'
newline|'\n'
nl|'\n'
name|'import'
name|'nova'
op|'.'
name|'conf'
newline|'\n'
name|'from'
name|'nova'
name|'import'
name|'exception'
newline|'\n'
name|'from'
name|'nova'
op|'.'
name|'i18n'
name|'import'
name|'_LW'
newline|'\n'
name|'from'
name|'nova'
name|'import'
name|'utils'
newline|'\n'
nl|'\n'
DECL|variable|LOG
name|'LOG'
op|'='
name|'logging'
op|'.'
name|'getLogger'
op|'('
name|'__name__'
op|')'
newline|'\n'
nl|'\n'
DECL|variable|ALLOCATED_PORTS
name|'ALLOCATED_PORTS'
op|'='
name|'set'
op|'('
op|')'
comment|'# in-memory set of already allocated ports'
newline|'\n'
DECL|variable|SERIAL_LOCK
name|'SERIAL_LOCK'
op|'='
string|"'serial-lock'"
newline|'\n'
nl|'\n'
DECL|variable|CONF
name|'CONF'
op|'='
name|'nova'
op|'.'
name|'conf'
op|'.'
name|'CONF'
newline|'\n'
nl|'\n'
comment|'# TODO(sahid): Add a method to initialize ALOCATED_PORTS with the'
nl|'\n'
comment|'# already binded TPC port(s). (cf from danpb: list all running guests and'
nl|'\n'
comment|'# query the XML in libvirt driver to find out the TCP port(s) it uses).'
nl|'\n'
nl|'\n'
nl|'\n'
op|'@'
name|'utils'
op|'.'
name|'synchronized'
op|'('
name|'SERIAL_LOCK'
op|')'
newline|'\n'
DECL|function|acquire_port
name|'def'
name|'acquire_port'
op|'('
name|'host'
op|')'
op|':'
newline|'\n'
indent|' '
string|'"""Returns a free TCP port on host.\n\n Find and returns a free TCP port on \'host\' in the range\n of \'CONF.serial_console.port_range\'.\n """'
newline|'\n'
nl|'\n'
name|'start'
op|','
name|'stop'
op|'='
name|'_get_port_range'
op|'('
op|')'
newline|'\n'
nl|'\n'
name|'for'
name|'port'
name|'in'
name|'six'
op|'.'
name|'moves'
op|'.'
name|'range'
op|'('
name|'start'
op|','
name|'stop'
op|')'
op|':'
newline|'\n'
indent|' '
name|'if'
op|'('
name|'host'
op|','
name|'port'
op|')'
name|'in'
name|'ALLOCATED_PORTS'
op|':'
newline|'\n'
indent|' '
name|'continue'
newline|'\n'
dedent|''
name|'try'
op|':'
newline|'\n'
indent|' '
name|'_verify_port'
op|'('
name|'host'
op|','
name|'port'
op|')'
newline|'\n'
name|'ALLOCATED_PORTS'
op|'.'
name|'add'
op|'('
op|'('
name|'host'
op|','
name|'port'
op|')'
op|')'
newline|'\n'
name|'return'
name|'port'
newline|'\n'
dedent|''
name|'except'
name|'exception'
op|'.'
name|'SocketPortInUseException'
name|'as'
name|'e'
op|':'
newline|'\n'
indent|' '
name|'LOG'
op|'.'
name|'warning'
op|'('
name|'e'
op|'.'
name|'format_message'
op|'('
op|')'
op|')'
newline|'\n'
nl|'\n'
dedent|''
dedent|''
name|'raise'
name|'exception'
op|'.'
name|'SocketPortRangeExhaustedException'
op|'('
name|'host'
op|'='
name|'host'
op|')'
newline|'\n'
nl|'\n'
nl|'\n'
dedent|''
op|'@'
name|'utils'
op|'.'
name|'synchronized'
op|'('
name|'SERIAL_LOCK'
op|')'
newline|'\n'
DECL|function|release_port
name|'def'
name|'release_port'
op|'('
name|'host'
op|','
name|'port'
op|')'
op|':'
newline|'\n'
indent|' '
string|'"""Release TCP port to be used next time."""'
newline|'\n'
name|'ALLOCATED_PORTS'
op|'.'
name|'discard'
op|'('
op|'('
name|'host'
op|','
name|'port'
op|')'
op|')'
newline|'\n'
nl|'\n'
nl|'\n'
DECL|function|_get_port_range
dedent|''
name|'def'
name|'_get_port_range'
op|'('
op|')'
op|':'
newline|'\n'
indent|' '
name|'config_range'
op|'='
name|'CONF'
op|'.'
name|'serial_console'
op|'.'
name|'port_range'
newline|'\n'
name|'try'
op|':'
newline|'\n'
indent|' '
name|'start'
op|','
name|'stop'
op|'='
name|'map'
op|'('
name|'int'
op|','
name|'config_range'
op|'.'
name|'split'
op|'('
string|"':'"
op|')'
op|')'
newline|'\n'
name|'if'
name|'start'
op|'>='
name|'stop'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'ValueError'
newline|'\n'
dedent|''
dedent|''
name|'except'
name|'ValueError'
op|':'
newline|'\n'
indent|' '
name|'default_port_range'
op|'='
name|'nova'
op|'.'
name|'conf'
op|'.'
name|'serial_console'
op|'.'
name|'DEFAULT_PORT_RANGE'
newline|'\n'
name|'LOG'
op|'.'
name|'warning'
op|'('
name|'_LW'
op|'('
string|'"serial_console.port_range should be <num>:<num>. "'
nl|'\n'
string|'"Given value %(port_range)s could not be parsed. "'
nl|'\n'
string|'"Taking the default port range %(default)s."'
op|')'
op|','
nl|'\n'
op|'{'
string|"'port_range'"
op|':'
name|'config_range'
op|','
nl|'\n'
string|"'default'"
op|':'
name|'default_port_range'
op|'}'
op|')'
newline|'\n'
name|'start'
op|','
name|'stop'
op|'='
name|'map'
op|'('
name|'int'
op|','
name|'default_port_range'
op|'.'
name|'split'
op|'('
string|"':'"
op|')'
op|')'
newline|'\n'
dedent|''
name|'return'
name|'start'
op|','
name|'stop'
newline|'\n'
nl|'\n'
nl|'\n'
DECL|function|_verify_port
dedent|''
name|'def'
name|'_verify_port'
op|'('
name|'host'
op|','
name|'port'
op|')'
op|':'
newline|'\n'
indent|' '
name|'s'
op|'='
name|'socket'
op|'.'
name|'socket'
op|'('
op|')'
newline|'\n'
name|'try'
op|':'
newline|'\n'
indent|' '
name|'s'
op|'.'
name|'bind'
op|'('
op|'('
name|'host'
op|','
name|'port'
op|')'
op|')'
newline|'\n'
dedent|''
name|'except'
name|'socket'
op|'.'
name|'error'
name|'as'
name|'e'
op|':'
newline|'\n'
indent|' '
name|'raise'
name|'exception'
op|'.'
name|'SocketPortInUseException'
op|'('
nl|'\n'
name|'host'
op|'='
name|'host'
op|','
name|'port'
op|'='
name|'port'
op|','
name|'error'
op|'='
name|'e'
op|')'
newline|'\n'
dedent|''
name|'finally'
op|':'
newline|'\n'
indent|' '
name|'s'
op|'.'
name|'close'
op|'('
op|')'
newline|'\n'
dedent|''
dedent|''
endmarker|''
end_unit
| begin_unit
comment | '# All Rights Reserved.'
nl | '\n'
comment | '#'
nl | '\n'
comment | '# Licensed under the Apache License, Version 2.0 (the "License"); you may'
nl | '\n'
comment | '# not use this file except in compliance with the License. You may obtain'
nl | '\n'
comment | '# a copy of the License at'
nl | '\n'
comment | '#'
nl | '\n'
comment | '# http://www.apache.org/licenses/LICENSE-2.0'
nl | '\n'
comment | '#'
nl | '\n'
comment | '# Unless required by applicable law or agreed to in writing, software'
nl | '\n'
comment | '# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT'
nl | '\n'
comment | '# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the'
nl | '\n'
comment | '# License for the specific language governing permissions and limitations'
nl | '\n'
comment | '# under the License.'
nl | '\n'
nl | '\n'
string | '"""Serial consoles module."""'
newline | '\n'
nl | '\n'
name | 'import'
name | 'socket'
newline | '\n'
nl | '\n'
name | 'from'
name | 'oslo_log'
name | 'import'
name | 'log'
name | 'as'
name | 'logging'
newline | '\n'
name | 'import'
name | 'six'
op | '.'
name | 'moves'
newline | '\n'
nl | '\n'
name | 'import'
name | 'nova'
op | '.'
name | 'conf'
newline | '\n'
name | 'from'
name | 'nova'
name | 'import'
name | 'exception'
newline | '\n'
name | 'from'
name | 'nova'
op | '.'
name | 'i18n'
name | 'import'
name | '_LW'
newline | '\n'
name | 'from'
name | 'nova'
name | 'import'
name | 'utils'
newline | '\n'
nl | '\n'
DECL | variable | LOG
name | 'LOG'
op | '='
name | 'logging'
op | '.'
name | 'getLogger'
op | '('
name | '__name__'
op | ')'
newline | '\n'
nl | '\n'
DECL | variable | ALLOCATED_PORTS
name | 'ALLOCATED_PORTS'
op | '='
name | 'set'
op | '('
op | ')'
comment | '# in-memory set of already allocated ports'
newline | '\n'
DECL | variable | SERIAL_LOCK
name | 'SERIAL_LOCK'
op | '='
string | "'serial-lock'"
newline | '\n'
nl | '\n'
DECL | variable | CONF
name | 'CONF'
op | '='
name | 'nova'
op | '.'
name | 'conf'
op | '.'
name | 'CONF'
newline | '\n'
nl | '\n'
comment | '# TODO(sahid): Add a method to initialize ALOCATED_PORTS with the'
nl | '\n'
comment | '# already binded TPC port(s). (cf from danpb: list all running guests and'
nl | '\n'
comment | '# query the XML in libvirt driver to find out the TCP port(s) it uses).'
nl | '\n'
nl | '\n'
nl | '\n'
op | '@'
name | 'utils'
op | '.'
name | 'synchronized'
op | '('
name | 'SERIAL_LOCK'
op | ')'
newline | '\n'
DECL | function | acquire_port
name | 'def'
name | 'acquire_port'
op | '('
name | 'host'
op | ')'
op | ':'
newline | '\n'
indent | ' '
string | '"""Returns a free TCP port on host.\n\n Find and returns a free TCP port on \'host\' in the range\n of \'CONF.serial_console.port_range\'.\n """'
newline | '\n'
nl | '\n'
name | 'start'
op | ','
name | 'stop'
op | '='
name | '_get_port_range'
op | '('
op | ')'
newline | '\n'
nl | '\n'
name | 'for'
name | 'port'
name | 'in'
name | 'six'
op | '.'
name | 'moves'
op | '.'
name | 'range'
op | '('
name | 'start'
op | ','
name | 'stop'
op | ')'
op | ':'
newline | '\n'
indent | ' '
name | 'if'
op | '('
name | 'host'
op | ','
name | 'port'
op | ')'
name | 'in'
name | 'ALLOCATED_PORTS'
op | ':'
newline | '\n'
indent | ' '
name | 'continue'
newline | '\n'
dedent | ''
name | 'try'
op | ':'
newline | '\n'
indent | ' '
name | '_verify_port'
op | '('
name | 'host'
op | ','
name | 'port'
op | ')'
newline | '\n'
name | 'ALLOCATED_PORTS'
op | '.'
name | 'add'
op | '('
op | '('
name | 'host'
op | ','
name | 'port'
op | ')'
op | ')'
newline | '\n'
name | 'return'
name | 'port'
newline | '\n'
dedent | ''
name | 'except'
name | 'exception'
op | '.'
name | 'SocketPortInUseException'
name | 'as'
name | 'e'
op | ':'
newline | '\n'
indent | ' '
name | 'LOG'
op | '.'
name | 'warning'
op | '('
name | 'e'
op | '.'
name | 'format_message'
op | '('
op | ')'
op | ')'
newline | '\n'
nl | '\n'
dedent | ''
dedent | ''
name | 'raise'
name | 'exception'
op | '.'
name | 'SocketPortRangeExhaustedException'
op | '('
name | 'host'
op | '='
name | 'host'
op | ')'
newline | '\n'
nl | '\n'
nl | '\n'
dedent | ''
op | '@'
name | 'utils'
op | '.'
name | 'synchronized'
op | '('
name | 'SERIAL_LOCK'
op | ')'
newline | '\n'
DECL | function | release_port
name | 'def'
name | 'release_port'
op | '('
name | 'host'
op | ','
name | 'port'
op | ')'
op | ':'
newline | '\n'
indent | ' '
string | '"""Release TCP port to be used next time."""'
newline | '\n'
name | 'ALLOCATED_PORTS'
op | '.'
name | 'discard'
op | '('
op | '('
name | 'host'
op | ','
name | 'port'
op | ')'
op | ')'
newline | '\n'
nl | '\n'
nl | '\n'
DECL | function | _get_port_range
dedent | ''
name | 'def'
name | '_get_port_range'
op | '('
op | ')'
op | ':'
newline | '\n'
indent | ' '
name | 'config_range'
op | '='
name | 'CONF'
op | '.'
name | 'serial_console'
op | '.'
name | 'port_range'
newline | '\n'
name | 'try'
op | ':'
newline | '\n'
indent | ' '
name | 'start'
op | ','
name | 'stop'
op | '='
name | 'map'
op | '('
name | 'int'
op | ','
name | 'config_range'
op | '.'
name | 'split'
op | '('
string | "':'"
op | ')'
op | ')'
newline | '\n'
name | 'if'
name | 'start'
op | '>='
name | 'stop'
op | ':'
newline | '\n'
indent | ' '
name | 'raise'
name | 'ValueError'
newline | '\n'
dedent | ''
dedent | ''
name | 'except'
name | 'ValueError'
op | ':'
newline | '\n'
indent | ' '
name | 'default_port_range'
op | '='
name | 'nova'
op | '.'
name | 'conf'
op | '.'
name | 'serial_console'
op | '.'
name | 'DEFAULT_PORT_RANGE'
newline | '\n'
name | 'LOG'
op | '.'
name | 'warning'
op | '('
name | '_LW'
op | '('
string | '"serial_console.port_range should be <num>:<num>. "'
nl | '\n'
string | '"Given value %(port_range)s could not be parsed. "'
nl | '\n'
string | '"Taking the default port range %(default)s."'
op | ')'
op | ','
nl | '\n'
op | '{'
string | "'port_range'"
op | ':'
name | 'config_range'
op | ','
nl | '\n'
string | "'default'"
op | ':'
name | 'default_port_range'
op | '}'
op | ')'
newline | '\n'
name | 'start'
op | ','
name | 'stop'
op | '='
name | 'map'
op | '('
name | 'int'
op | ','
name | 'default_port_range'
op | '.'
name | 'split'
op | '('
string | "':'"
op | ')'
op | ')'
newline | '\n'
dedent | ''
name | 'return'
name | 'start'
op | ','
name | 'stop'
newline | '\n'
nl | '\n'
nl | '\n'
DECL | function | _verify_port
dedent | ''
name | 'def'
name | '_verify_port'
op | '('
name | 'host'
op | ','
name | 'port'
op | ')'
op | ':'
newline | '\n'
indent | ' '
name | 's'
op | '='
name | 'socket'
op | '.'
name | 'socket'
op | '('
op | ')'
newline | '\n'
name | 'try'
op | ':'
newline | '\n'
indent | ' '
name | 's'
op | '.'
name | 'bind'
op | '('
op | '('
name | 'host'
op | ','
name | 'port'
op | ')'
op | ')'
newline | '\n'
dedent | ''
name | 'except'
name | 'socket'
op | '.'
name | 'error'
name | 'as'
name | 'e'
op | ':'
newline | '\n'
indent | ' '
name | 'raise'
name | 'exception'
op | '.'
name | 'SocketPortInUseException'
op | '('
nl | '\n'
name | 'host'
op | '='
name | 'host'
op | ','
name | 'port'
op | '='
name | 'port'
op | ','
name | 'error'
op | '='
name | 'e'
op | ')'
newline | '\n'
dedent | ''
name | 'finally'
op | ':'
newline | '\n'
indent | ' '
name | 's'
op | '.'
name | 'close'
op | '('
op | ')'
newline | '\n'
dedent | ''
dedent | ''
endmarker | ''
end_unit |
chosenNumber = int(input("Number? "))
rangeNumber = 100
previousNumber = 0
count = 0
while count != 10:
count += 1
rangeNumber = (100 - previousNumber) // 2
previousNumber = rangeNumber + previousNumber
print("rangeNumber: %i; previousNumber: %i; try: %i" % (rangeNumber, previousNumber, count))
if previousNumber == chosenNumber:
exit()
| chosen_number = int(input('Number? '))
range_number = 100
previous_number = 0
count = 0
while count != 10:
count += 1
range_number = (100 - previousNumber) // 2
previous_number = rangeNumber + previousNumber
print('rangeNumber: %i; previousNumber: %i; try: %i' % (rangeNumber, previousNumber, count))
if previousNumber == chosenNumber:
exit() |
'''
Copyright (c) 2012-2017, Agora Games, LLC All rights reserved.
https://github.com/agoragames/kairos/blob/master/LICENSE.txt
'''
class KairosException(Exception):
'''Base class for all kairos exceptions'''
class UnknownInterval(KairosException):
'''The requested interval is not configured.'''
| """
Copyright (c) 2012-2017, Agora Games, LLC All rights reserved.
https://github.com/agoragames/kairos/blob/master/LICENSE.txt
"""
class Kairosexception(Exception):
"""Base class for all kairos exceptions"""
class Unknowninterval(KairosException):
"""The requested interval is not configured.""" |
"""
What you will lean:
- What is a while loop
- How to write a while
- starting conditions for while loops
- Exit conditions for while loops
Okay so now we know if a "thing" is True of False. Now let's use that tool for something more powerful: loops.
We will first do "while loops".
Pretend you are drunk and on a mary-go-round:
You friend bet that you cannot stay on for 10 loops on the mary-go-round. So of course you say you can. You get on
and they start pushing you in circles. Now each you complete a rotation you count 1 closer to 10. Once you get to
10 you get off - and promptly puke. BUT THIS IS A FOR LOOP! while count < 10 go spin more then increase count.
Note how in example 1 we create a starting condition (1)and an ending condition (10). Then we increase the value of
out variable by 1 each time. IF WE DIDN't WE BE IN A INFINITE LOOP! As long as the expression i < 10 evaluates to
True we keep running the loop.
If we run Example 1 how what is the largest number printed? ... Think about why this is the case
What you need to do:
Pt 1
- Create a while loop that prints 0,2,4,6,8,10
- Create a while loop that prints 10,7,4,1
Pt 2
In Example 3 ...
- Change the value of run to True
- inside the while loop create an if statement that checks if k is the 4th multiple of 15. If this is True set run to
False
Pt 3
Challenge Problem (reuse your code form module 5!):
Create a program that can ...
- Create a while loop that counts from 0 to 100.
- If the number count is divisible by only 3 print "foo"
- If the number count is divisible by only 5 print "bar"
- If the number count is divisible by both 5 and 3 print foobarr
- If the number count is not divisible by either 3 or 5 print the number
The first several rows of output should look like this:
1
2
foo
4
bar
foo
7
8
foo
9
bar
11
foo
13
14
foobar
"""
# EX 1
i = 1 # starting condition
while i < 10:
print(i)
i += 1 # this is the same as i = 1 + 1
# Ex 2
t = 10
while t > 0:
print(t)
t -= 1 # this is the same as t = t - 1
# Ex 3
run = False
k = 1
while run:
print(k)
k += 1
| """
What you will lean:
- What is a while loop
- How to write a while
- starting conditions for while loops
- Exit conditions for while loops
Okay so now we know if a "thing" is True of False. Now let's use that tool for something more powerful: loops.
We will first do "while loops".
Pretend you are drunk and on a mary-go-round:
You friend bet that you cannot stay on for 10 loops on the mary-go-round. So of course you say you can. You get on
and they start pushing you in circles. Now each you complete a rotation you count 1 closer to 10. Once you get to
10 you get off - and promptly puke. BUT THIS IS A FOR LOOP! while count < 10 go spin more then increase count.
Note how in example 1 we create a starting condition (1)and an ending condition (10). Then we increase the value of
out variable by 1 each time. IF WE DIDN't WE BE IN A INFINITE LOOP! As long as the expression i < 10 evaluates to
True we keep running the loop.
If we run Example 1 how what is the largest number printed? ... Think about why this is the case
What you need to do:
Pt 1
- Create a while loop that prints 0,2,4,6,8,10
- Create a while loop that prints 10,7,4,1
Pt 2
In Example 3 ...
- Change the value of run to True
- inside the while loop create an if statement that checks if k is the 4th multiple of 15. If this is True set run to
False
Pt 3
Challenge Problem (reuse your code form module 5!):
Create a program that can ...
- Create a while loop that counts from 0 to 100.
- If the number count is divisible by only 3 print "foo"
- If the number count is divisible by only 5 print "bar"
- If the number count is divisible by both 5 and 3 print foobarr
- If the number count is not divisible by either 3 or 5 print the number
The first several rows of output should look like this:
1
2
foo
4
bar
foo
7
8
foo
9
bar
11
foo
13
14
foobar
"""
i = 1
while i < 10:
print(i)
i += 1
t = 10
while t > 0:
print(t)
t -= 1
run = False
k = 1
while run:
print(k)
k += 1 |
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
def test1():
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
print(letters)
letters[2:5] = ['C', 'D', 'E']
print(letters)
letters[2:5] = []
print(letters)
letters[:] = []
print(letters)
def test2():
print('\ntest2')
a = ['a', 'b', 'c']
n = [1, 2, 3]
x = [a, n]
print(x)
print(x[0])
print(x[0][1])
def main():
test1()
test2()
if __name__ == "__main__":
main()
| def test1():
letters = ['a', 'b', 'c', 'd', 'e', 'f', 'g']
print(letters)
letters[2:5] = ['C', 'D', 'E']
print(letters)
letters[2:5] = []
print(letters)
letters[:] = []
print(letters)
def test2():
print('\ntest2')
a = ['a', 'b', 'c']
n = [1, 2, 3]
x = [a, n]
print(x)
print(x[0])
print(x[0][1])
def main():
test1()
test2()
if __name__ == '__main__':
main() |
DEFAULT_DOMAIN = "messages"
DEFAULT_LOCALE_DIR_NAME = "locale"
DEFAULT_IGNORE_PATTERNS = [
".*",
"*~",
"CVS",
"__pycache__",
"*.pyc",
]
DEFAULT_KEYWORDS = [
"_", "gettext",
"L_", "gettext_lazy",
"N_:1,2", "ngettext:1,2",
"LN_:1,2", "ngettext_lazy:1,2",
"P_:1c,2", "pgettext:1c,2",
"LP_:1c,2", "pgettext_lazy:1c,2",
"NP_:1c,2,3", "npgettext:1c,2,3",
"LNP_:1c,2,3", "npgettext_lazy:1c,2,3",
]
| default_domain = 'messages'
default_locale_dir_name = 'locale'
default_ignore_patterns = ['.*', '*~', 'CVS', '__pycache__', '*.pyc']
default_keywords = ['_', 'gettext', 'L_', 'gettext_lazy', 'N_:1,2', 'ngettext:1,2', 'LN_:1,2', 'ngettext_lazy:1,2', 'P_:1c,2', 'pgettext:1c,2', 'LP_:1c,2', 'pgettext_lazy:1c,2', 'NP_:1c,2,3', 'npgettext:1c,2,3', 'LNP_:1c,2,3', 'npgettext_lazy:1c,2,3'] |
"""Function for building a diatomic molecule."""
def create_diatomic_molecule_geometry(species1, species2, bond_length):
"""Create a molecular geometry for a diatomic molecule.
Args:
species1 (str): Chemical symbol of the first atom, e.g. 'H'.
species2 (str): Chemical symbol of the second atom.
bond_length (float): bond distance.
Returns:
dict: a dictionary containing the coordinates of the atoms.
"""
geometry = {"sites": [
{'species': species1, 'x': 0, 'y': 0, 'z': 0},
{'species': species2, 'x': 0, 'y': 0, 'z': bond_length}
]}
return geometry
| """Function for building a diatomic molecule."""
def create_diatomic_molecule_geometry(species1, species2, bond_length):
"""Create a molecular geometry for a diatomic molecule.
Args:
species1 (str): Chemical symbol of the first atom, e.g. 'H'.
species2 (str): Chemical symbol of the second atom.
bond_length (float): bond distance.
Returns:
dict: a dictionary containing the coordinates of the atoms.
"""
geometry = {'sites': [{'species': species1, 'x': 0, 'y': 0, 'z': 0}, {'species': species2, 'x': 0, 'y': 0, 'z': bond_length}]}
return geometry |
X_threads = 16*2
Y_threads = 1
Invoc_count = 2
start_index = 0
end_index = 0
src_list = ["needle_kernel.cu", "needle.h"]
SHARED_MEM_USE = True
total_shared_mem_size = 2.18*1024
domi_list = [233]
domi_val = [0]
| x_threads = 16 * 2
y_threads = 1
invoc_count = 2
start_index = 0
end_index = 0
src_list = ['needle_kernel.cu', 'needle.h']
shared_mem_use = True
total_shared_mem_size = 2.18 * 1024
domi_list = [233]
domi_val = [0] |
# -*- coding: utf-8 -*-
__author__ = 'luckydonald'
CHARS_UNESCAPED = ["\\", "\n", "\r", "\t", "\b", "\a", "'"]
CHARS_ESCAPED = ["\\\\", "\\n", "\\r", "\\t", "\\b", "\\a", "\\'"]
def suppress_context(exc):
exc.__context__ = None
return exc
def escape(string):
for i in range(0, 7):
string = string.replace(CHARS_UNESCAPED[i], CHARS_ESCAPED[i])
return string.join(["'", "'"]) # wrap with single quotes.
def coroutine(func):
"""
Skips to the first yield when the generator is created.
Used as decorator, @coroutine
:param func: function (generator) with yield.
:return: generator
"""
def start(*args, **kwargs):
try:
cr = func(*args, **kwargs)
try:
next(cr)
except NameError: # not defined, python 2
cr.next()
return cr
except StopIteration:
return
except KeyboardInterrupt:
raise StopIteration
return start | __author__ = 'luckydonald'
chars_unescaped = ['\\', '\n', '\r', '\t', '\x08', '\x07', "'"]
chars_escaped = ['\\\\', '\\n', '\\r', '\\t', '\\b', '\\a', "\\'"]
def suppress_context(exc):
exc.__context__ = None
return exc
def escape(string):
for i in range(0, 7):
string = string.replace(CHARS_UNESCAPED[i], CHARS_ESCAPED[i])
return string.join(["'", "'"])
def coroutine(func):
"""
Skips to the first yield when the generator is created.
Used as decorator, @coroutine
:param func: function (generator) with yield.
:return: generator
"""
def start(*args, **kwargs):
try:
cr = func(*args, **kwargs)
try:
next(cr)
except NameError:
cr.next()
return cr
except StopIteration:
return
except KeyboardInterrupt:
raise StopIteration
return start |
#! /usr/bin/env python3
# coding: utf-8
def main():
file1 = open('input', 'r')
Lines = file1.readlines()
valid_passwords = 0
numbers = []
# Strips the newline character
for line in Lines:
print(line)
firstPosition = int(line.split('-')[0])
secondPosition = int(line.split('-')[1].split(' ')[0])
letter = line.split('-')[1].split(' ')[1].split(':')[0]
password = line.split(': ')[1]
firstValid = letter == password[firstPosition-1]
secondValid = letter == password[secondPosition-1]
print("Line : firstPosition={}, secondPosition={}, letter={}, password={}, firstValid={}, secondValid={}".format(firstPosition,secondPosition,letter,password, firstValid, secondValid))
if firstValid ^ secondValid:
valid_passwords += 1
print("Result: {}".format(valid_passwords))
if __name__ == '__main__':
main() | def main():
file1 = open('input', 'r')
lines = file1.readlines()
valid_passwords = 0
numbers = []
for line in Lines:
print(line)
first_position = int(line.split('-')[0])
second_position = int(line.split('-')[1].split(' ')[0])
letter = line.split('-')[1].split(' ')[1].split(':')[0]
password = line.split(': ')[1]
first_valid = letter == password[firstPosition - 1]
second_valid = letter == password[secondPosition - 1]
print('Line : firstPosition={}, secondPosition={}, letter={}, password={}, firstValid={}, secondValid={}'.format(firstPosition, secondPosition, letter, password, firstValid, secondValid))
if firstValid ^ secondValid:
valid_passwords += 1
print('Result: {}'.format(valid_passwords))
if __name__ == '__main__':
main() |
# -*- coding: utf-8 -*-
"""
Created on Wed Apr 22 17:21:06 2020
@author: Ravi
"""
def MazeRunner(n,s):
ans = ''
for i in s:
if i=='S':
ans+='E'
else:
ans+='S'
return ans
t = int(input())
for i in range(t):
n = int(input())
s = input()
ans = MazeRunner(n,s)
print("Case "+"#"+str(i)+": "+str(ans)) | """
Created on Wed Apr 22 17:21:06 2020
@author: Ravi
"""
def maze_runner(n, s):
ans = ''
for i in s:
if i == 'S':
ans += 'E'
else:
ans += 'S'
return ans
t = int(input())
for i in range(t):
n = int(input())
s = input()
ans = maze_runner(n, s)
print('Case ' + '#' + str(i) + ': ' + str(ans)) |
recipes_tuple = {
"Chicken and chips": [
("chicken", 100),
("potatoes", 3),
("salt", 1),
("malt vinegar", 5),
],
}
recipes_dict = {
"Chicken and chips": {
"chicken": 100,
"potatoes": 3,
"salt": 1,
"malt vinegar": 5,
},
}
# using tuples
for recipe, ingredients in recipes_tuple.items():
print(f"Ingredients for {recipe}")
for ingredient, quantity in ingredients: # ingredients is a tuple
print(ingredient, quantity, sep=', ')
print()
# using a dictionary
for recipe, ingredients in recipes_dict.items():
print(f"Ingredients for {recipe}")
for ingredient, quantity in ingredients.items(): # ingredients is a dict
print(ingredient, quantity, sep=', ')
| recipes_tuple = {'Chicken and chips': [('chicken', 100), ('potatoes', 3), ('salt', 1), ('malt vinegar', 5)]}
recipes_dict = {'Chicken and chips': {'chicken': 100, 'potatoes': 3, 'salt': 1, 'malt vinegar': 5}}
for (recipe, ingredients) in recipes_tuple.items():
print(f'Ingredients for {recipe}')
for (ingredient, quantity) in ingredients:
print(ingredient, quantity, sep=', ')
print()
for (recipe, ingredients) in recipes_dict.items():
print(f'Ingredients for {recipe}')
for (ingredient, quantity) in ingredients.items():
print(ingredient, quantity, sep=', ') |
# =====================================
# generator=datazen
# version=2.1.0
# hash=8d04b157255269c7d7ec7a9f5e0e3e02
# =====================================
"""
Useful defaults and other package metadata.
"""
DESCRIPTION = "A collection of core Python utilities."
PKG_NAME = "vcorelib"
VERSION = "0.10.5"
DEFAULT_INDENT = 2
DEFAULT_ENCODING = "utf-8"
| """
Useful defaults and other package metadata.
"""
description = 'A collection of core Python utilities.'
pkg_name = 'vcorelib'
version = '0.10.5'
default_indent = 2
default_encoding = 'utf-8' |
class Scorer:
"""
Base class for an estimator scoring object.
"""
def __call__(self, estimator, X, y, sample_weight=None):
"""
Parameters
----------
estimator: Estimator
The fit estimator to score.
X: array-like, shape (n_samples, n_features)
The covariate data to used for scoring.
y: array-like, shape (n_samples, ) or (n_samples, n_responses)
The response data to used for scoring.
sample_weight: None, array-like (n_samples, )
(Optional) Sample weight to use for scoring.
Output
------
scores: float
The scores. For measures of fit larger scores should always indicate better fit.
"""
raise NotImplementedError("Subclass should overwrite")
@property
def name(self):
"""
Output
------
name: str
Name of this scoring object.
"""
raise NotImplementedError("Subclass should overwrite")
class MultiScorer:
"""
Base class for an estimator scoring object returning multiple scores.
Parameters
----------
default: str
Name of the default score to use.
Attributes
----------
name: str
Name of this score.
"""
def __call__(self, estimator, X, y, sample_weight=None):
"""
Output
------
scores: dict of float
The scores. For measures of fit larger scores should always indicate better fit.
"""
raise NotImplementedError("Subclass should overwrite")
| class Scorer:
"""
Base class for an estimator scoring object.
"""
def __call__(self, estimator, X, y, sample_weight=None):
"""
Parameters
----------
estimator: Estimator
The fit estimator to score.
X: array-like, shape (n_samples, n_features)
The covariate data to used for scoring.
y: array-like, shape (n_samples, ) or (n_samples, n_responses)
The response data to used for scoring.
sample_weight: None, array-like (n_samples, )
(Optional) Sample weight to use for scoring.
Output
------
scores: float
The scores. For measures of fit larger scores should always indicate better fit.
"""
raise not_implemented_error('Subclass should overwrite')
@property
def name(self):
"""
Output
------
name: str
Name of this scoring object.
"""
raise not_implemented_error('Subclass should overwrite')
class Multiscorer:
"""
Base class for an estimator scoring object returning multiple scores.
Parameters
----------
default: str
Name of the default score to use.
Attributes
----------
name: str
Name of this score.
"""
def __call__(self, estimator, X, y, sample_weight=None):
"""
Output
------
scores: dict of float
The scores. For measures of fit larger scores should always indicate better fit.
"""
raise not_implemented_error('Subclass should overwrite') |
class RequestsError(Exception):
pass
def report_error(response):
"""
Report an error from a REST request.
response
A response object corresponding to an API request.
The caller will be responsible for checking the
status code for an error.
"""
url = response.url
msg = (f'requests_error: {response.content}\nurl: {url} ')
raise RequestsError(msg)
| class Requestserror(Exception):
pass
def report_error(response):
"""
Report an error from a REST request.
response
A response object corresponding to an API request.
The caller will be responsible for checking the
status code for an error.
"""
url = response.url
msg = f'requests_error: {response.content}\nurl: {url} '
raise requests_error(msg) |
# always and forever
MAGZP_REF = 30.0
# this is always true for the DES
POSITION_OFFSET = 1
# never change these
MEDSCONF = 'y3v02'
PIFF_RUN = 'y3a1-v29'
| magzp_ref = 30.0
position_offset = 1
medsconf = 'y3v02'
piff_run = 'y3a1-v29' |
#Ejercicio 1002
'''
radio = input()
radio = float(radio)
pi = float(3.14159)
A = (pi*(radio**2))
print ("A={:.4f}".format(A))
*/
'''
#Ejercicio 1003
'''
A = input()
B = input()
A = int(A)
B = int(B)
SOMA = A+B
print("SOMA = {0}".format(SOMA))
'''
#Ejercicio 1004
'''
A = input()
B = input()
A = int(A)
B = int(B)
PROD = A*B
print("PROD = {0}".format(PROD))
'''
#Ejercicio 1005
'''
A = input()
B = input()
A = float(A)
B = float(B)
PROD = ((A*.35)+(B*.75))/1.1
print ("MEDIA = {:.5f}".format(PROD))
'''
#Ejercicio 1006
'''
A = input()
B = input()
C = input()
A = float(A)
B = float(B)
C = float(C)
PROD = ((A*.2)+(B*.3)+(C*.5))
print ("MEDIA = {:.1f}".format(PROD))
''' | """
radio = input()
radio = float(radio)
pi = float(3.14159)
A = (pi*(radio**2))
print ("A={:.4f}".format(A))
*/
"""
'\nA = input()\nB = input()\n\nA = int(A)\nB = int(B)\n\nSOMA = A+B\n\nprint("SOMA = {0}".format(SOMA))\n'
'\nA = input()\nB = input()\n\nA = int(A)\nB = int(B)\n\nPROD = A*B\n\nprint("PROD = {0}".format(PROD))\n'
'\nA = input()\nB = input()\n\nA = float(A)\nB = float(B)\n\n\nPROD = ((A*.35)+(B*.75))/1.1\n\nprint ("MEDIA = {:.5f}".format(PROD))\n'
'\nA = input()\nB = input()\nC = input()\n\nA = float(A)\nB = float(B)\nC = float(C)\n\nPROD = ((A*.2)+(B*.3)+(C*.5))\n\nprint ("MEDIA = {:.1f}".format(PROD)) \n' |
'''
@author: Jakob Prange (jakpra)
@copyright: Copyright 2020, Jakob Prange
@license: Apache 2.0
'''
def open_par(s):
return s == '('
def close_par(s):
return s == ')'
def open_angle(s):
return s == '<'
def close_angle(s):
return s == '>'
def open_bracket(s):
return s == '['
def close_bracket(s):
return s == ']'
def slash(s):
return s in ('/', '\\')
def one_bit(s):
return s == '1'
def zero_bit(s):
return s == '0'
def tree_node(s):
return s == 'T'
def leaf_node(s):
return s == 'L'
| """
@author: Jakob Prange (jakpra)
@copyright: Copyright 2020, Jakob Prange
@license: Apache 2.0
"""
def open_par(s):
return s == '('
def close_par(s):
return s == ')'
def open_angle(s):
return s == '<'
def close_angle(s):
return s == '>'
def open_bracket(s):
return s == '['
def close_bracket(s):
return s == ']'
def slash(s):
return s in ('/', '\\')
def one_bit(s):
return s == '1'
def zero_bit(s):
return s == '0'
def tree_node(s):
return s == 'T'
def leaf_node(s):
return s == 'L' |
def fact(n):
f = 1
while(n>=1):
f = f * n
n-= 1
print(f)
def main():
n = int(input("Enter a number: "))
fact(n)
if __name__ == "__main__":
main() | def fact(n):
f = 1
while n >= 1:
f = f * n
n -= 1
print(f)
def main():
n = int(input('Enter a number: '))
fact(n)
if __name__ == '__main__':
main() |
for i in range(nBlocks):
# Load new block of data from CSV file
xTrain = createSparseTable('./mldata/20newsgroups.coo.' + str(i + 1) + '.csv', nFeatures)
# Load new block of labels from CSV file
labelsDataSource = FileDataSource(
'./mldata/20newsgroups.labels.' + str(i + 1) + '.csv',
DataSourceIface.doAllocateNumericTable, DataSourceIface.doDictionaryFromContext
)
labelsDataSource.loadDataBlock()
yTrain = labelsDataSource.getNumericTable()
# Set input
#
# YOUR CODE HERE
#
# There are two pieces of input to be set: data and labels. You should
# use the 'input.set' member methods of the nbTrain algorithm object.
# The input IDs to use are 'classifier.training.data' and 'classifier.training.labels'
# respectively.
nbTrain.input.set(classifier.training.data,xTrain)
nbTrain.input.set(classifier.training.labels,yTrain)
# Compute
#
# YOUR CODE HERE
#
# Call the 'compute()' method of your algorithm object to update the partial model.
nbTrain.compute()
model = nbTrain.finalizeCompute().get(classifier.training.model) | for i in range(nBlocks):
x_train = create_sparse_table('./mldata/20newsgroups.coo.' + str(i + 1) + '.csv', nFeatures)
labels_data_source = file_data_source('./mldata/20newsgroups.labels.' + str(i + 1) + '.csv', DataSourceIface.doAllocateNumericTable, DataSourceIface.doDictionaryFromContext)
labelsDataSource.loadDataBlock()
y_train = labelsDataSource.getNumericTable()
nbTrain.input.set(classifier.training.data, xTrain)
nbTrain.input.set(classifier.training.labels, yTrain)
nbTrain.compute()
model = nbTrain.finalizeCompute().get(classifier.training.model) |
# -*- coding: UTF-8 -*-
logger.info("Loading 6 objects to table households_type...")
# fields: id, name
loader.save(create_households_type(1,['Married couple', 'Ehepaar', 'Couple mari\xe9']))
loader.save(create_households_type(2,['Divorced couple', 'Geschiedenes Paar', 'Couple divorc\xe9']))
loader.save(create_households_type(3,['Factual household', 'Faktischer Haushalt', 'Cohabitation de fait']))
loader.save(create_households_type(4,['Legal cohabitation', 'Legale Wohngemeinschaft', 'Cohabitation l\xe9gale']))
loader.save(create_households_type(5,['Isolated', 'Getrennt', 'Isol\xe9']))
loader.save(create_households_type(6,['Other', 'Sonstige', 'Autre']))
loader.flush_deferred_objects()
| logger.info('Loading 6 objects to table households_type...')
loader.save(create_households_type(1, ['Married couple', 'Ehepaar', 'Couple marié']))
loader.save(create_households_type(2, ['Divorced couple', 'Geschiedenes Paar', 'Couple divorcé']))
loader.save(create_households_type(3, ['Factual household', 'Faktischer Haushalt', 'Cohabitation de fait']))
loader.save(create_households_type(4, ['Legal cohabitation', 'Legale Wohngemeinschaft', 'Cohabitation légale']))
loader.save(create_households_type(5, ['Isolated', 'Getrennt', 'Isolé']))
loader.save(create_households_type(6, ['Other', 'Sonstige', 'Autre']))
loader.flush_deferred_objects() |
"""
Python program to solve N Queen
Problem using backtracking
"""
global N
def printSolution(board):
for i in range(N):
for j in range(N):
print(board[i][j], end="")
print()
def isSafe(board, row, col):
# Check this row on left side
for i in range(col):
if board[row][i] == 1:
return False
# Check upper diagonal on left side
for i, j in zip(range(row, -1, -1), range(col, -1, -1)):
if board[i][j] == 1:
return False
# Check lower diagonal on left side
for i, j in zip(range(row, N, 1), range(col, -1, -1)):
if board[i][j] == 1:
return False
return True
def solveNQUtil(board, col):
# base case: If all queens are placed
# then return true
if col >= N:
return True
# Consider this column and try placing
# this queen in all rows one by one
for i in range(N):
if isSafe(board, i, col):
# Place this queen in board[i][col]
board[i][col] = 1
# recur to place rest of the queens
if solveNQUtil(board, col + 1) == True:
return True
# If placing queen in board[i][col
# doesn't lead to a solution, then
# queen from board[i][col]
board[i][col] = 0
# if the queen can not be placed in any row in
# this column col then return false
return False
def solveNQ():
board = [ [0, 0, 0, 0],
[0, 0, 0, 0],
[0, 0, 0, 0],
[0, 0, 0, 0]
]
if solveNQUtil(board, 0) == False:
print("Solution does not exist")
return False
printSolution(board)
return True
if __name__ == "__main__":
N = 4
solveNQ()
| """
Python program to solve N Queen
Problem using backtracking
"""
global N
def print_solution(board):
for i in range(N):
for j in range(N):
print(board[i][j], end='')
print()
def is_safe(board, row, col):
for i in range(col):
if board[row][i] == 1:
return False
for (i, j) in zip(range(row, -1, -1), range(col, -1, -1)):
if board[i][j] == 1:
return False
for (i, j) in zip(range(row, N, 1), range(col, -1, -1)):
if board[i][j] == 1:
return False
return True
def solve_nq_util(board, col):
if col >= N:
return True
for i in range(N):
if is_safe(board, i, col):
board[i][col] = 1
if solve_nq_util(board, col + 1) == True:
return True
board[i][col] = 0
return False
def solve_nq():
board = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
if solve_nq_util(board, 0) == False:
print('Solution does not exist')
return False
print_solution(board)
return True
if __name__ == '__main__':
n = 4
solve_nq() |
user = {
'name' : 'magdy' ,
'age' : ' 23 ' ,
'country' : ' egypt'
}
print(user)
print(type(user))
print(user.values())
print(user.keys())
print(len(user))
print(user['name'])
print(user['age'])
print("="*50) # separator
user['friend'] = 'sameh'
print(user)
user.update({'father' : 'edwar' , 'mother' : " mariam"})
print(user)
print("="*50) # separator
all_items = user.items()
print(all_items)
a = ('magdy' , ' sameh' , ' peter' )
b = ('name_1' , 'name_2' , 'name_3')
DICT = dict.fromkeys(b,a)
print(DICT)
| user = {'name': 'magdy', 'age': ' 23 ', 'country': ' egypt'}
print(user)
print(type(user))
print(user.values())
print(user.keys())
print(len(user))
print(user['name'])
print(user['age'])
print('=' * 50)
user['friend'] = 'sameh'
print(user)
user.update({'father': 'edwar', 'mother': ' mariam'})
print(user)
print('=' * 50)
all_items = user.items()
print(all_items)
a = ('magdy', ' sameh', ' peter')
b = ('name_1', 'name_2', 'name_3')
dict = dict.fromkeys(b, a)
print(DICT) |
""" Leetcode 62 - Unique Paths
https://leetcode.com/problems/unique-paths/
1. self-implement BFS: Time Limit Exceeded
2. self-implement DP: Time: 32ms(57.17%) Memory: 13.8MB(68.02%)
"""
class Solution1:
""" self-implement BFS """
def unique_paths(self, m: int, n: int) -> int:
if m == 1 and n == 1:
return 1
x, y = 1, 1
go_down = (1, 0)
go_right = (0, 1)
count = 0
stack = [(x, y)]
while stack:
x, y = stack.pop()
print(x, y)
for dx, dy in [go_down, go_right]:
if x+dx == n and y+dy == m:
count += 1
elif x+dx <= n and y+dy <= m:
stack.insert(0, (x+dx, y+dy))
return count
class Solution2:
""" self-implement DP """
def unique_paths(self, m, n):
mat = [[1 for i in range(m)] for j in range(n)]
for x in range(1, n):
for y in range(1, m):
mat[x][y] = mat[x-1][y] + mat[x][y-1]
return mat[n-1][m-1]
if __name__ == '__main__':
m = 23
n = 12
res = Solution2().unique_paths(m, n)
print(res)
| """ Leetcode 62 - Unique Paths
https://leetcode.com/problems/unique-paths/
1. self-implement BFS: Time Limit Exceeded
2. self-implement DP: Time: 32ms(57.17%) Memory: 13.8MB(68.02%)
"""
class Solution1:
""" self-implement BFS """
def unique_paths(self, m: int, n: int) -> int:
if m == 1 and n == 1:
return 1
(x, y) = (1, 1)
go_down = (1, 0)
go_right = (0, 1)
count = 0
stack = [(x, y)]
while stack:
(x, y) = stack.pop()
print(x, y)
for (dx, dy) in [go_down, go_right]:
if x + dx == n and y + dy == m:
count += 1
elif x + dx <= n and y + dy <= m:
stack.insert(0, (x + dx, y + dy))
return count
class Solution2:
""" self-implement DP """
def unique_paths(self, m, n):
mat = [[1 for i in range(m)] for j in range(n)]
for x in range(1, n):
for y in range(1, m):
mat[x][y] = mat[x - 1][y] + mat[x][y - 1]
return mat[n - 1][m - 1]
if __name__ == '__main__':
m = 23
n = 12
res = solution2().unique_paths(m, n)
print(res) |
class Solution(object):
def mySqrt(self, x):
"""
:type x: int
:rtype: int
"""
left = 0
right = x+1
while left < right:
mid = (left+right)//2
if mid*mid > x:
right = mid
elif mid*mid < x:
left = mid+1
else:
return mid
return left-1
sol = Solution()
# Test Case1, answer should be 1
x1 = 1
answer1 = sol.mySqrt(x1)
print(answer1)
# Test Case2, answer should be 2
x2 = 5
answer2 = sol.mySqrt(x2)
print(answer2)
# Test Case3, answer should be 3
x3 = 11
answer3 = sol.mySqrt(x3)
print(answer3)
# Test Case4, answer should be 0
x4 = 0
answer4 = sol.mySqrt(x4)
print(answer4)
| class Solution(object):
def my_sqrt(self, x):
"""
:type x: int
:rtype: int
"""
left = 0
right = x + 1
while left < right:
mid = (left + right) // 2
if mid * mid > x:
right = mid
elif mid * mid < x:
left = mid + 1
else:
return mid
return left - 1
sol = solution()
x1 = 1
answer1 = sol.mySqrt(x1)
print(answer1)
x2 = 5
answer2 = sol.mySqrt(x2)
print(answer2)
x3 = 11
answer3 = sol.mySqrt(x3)
print(answer3)
x4 = 0
answer4 = sol.mySqrt(x4)
print(answer4) |
def minimum():
l= [8, 6, 4, 8, 4, 50, 2, 7]
i=0
min=l[i]
while i<len(l):
if l[i]<min:
min=l[i]
i=i+1
print(min)
minimum() | def minimum():
l = [8, 6, 4, 8, 4, 50, 2, 7]
i = 0
min = l[i]
while i < len(l):
if l[i] < min:
min = l[i]
i = i + 1
print(min)
minimum() |
name = "ada lovelace"
#print(name.title())
#name refers to a the string "ada lovelace". The title *method* changes each word
#to title-case.
#A method is a specific function or group of funcitons that python can perform on
# a piece of data.
name = "adA LoveLace"
#print(name.upper())
#print(name.lower())
#print(name.title())
#Use variables within strings
first_name = "ada"
last_name = "lovelace"
full_name = f"{first_name} {last_name}"
#Important: put the letter f immediately before the opening quotation marks
# put braces around any variable names
#This is an 'f-string'
print(full_name)
print(f'{full_name.title()}') | name = 'ada lovelace'
name = 'adA LoveLace'
first_name = 'ada'
last_name = 'lovelace'
full_name = f'{first_name} {last_name}'
print(full_name)
print(f'{full_name.title()}') |
def chunks(l, n):
'''
:rtype list
split a list into a list of sublists
'''
n = max(1, n)
return [l[i:i + n] for i in range(0, len(l), n)]
| def chunks(l, n):
"""
:rtype list
split a list into a list of sublists
"""
n = max(1, n)
return [l[i:i + n] for i in range(0, len(l), n)] |
#memotong array bisa dengan menggunakan fungsi del
#dengan cara memasukkan angka dari urutan array
#array variable
#data array
a = ['medan', 'banjarmasin', 'jakarta', 'pekanbaru']
#saya ingin memotong array dengan menyisakan medan dan pekanbaru
del a[1:3]
print(a)
#hmm sepertinya jika menggunakan fungsi del akan dihitung dari 1
#bukan dari 0
| a = ['medan', 'banjarmasin', 'jakarta', 'pekanbaru']
del a[1:3]
print(a) |
"""
Empty pytest settings.
"""
SECRET_KEY = 'dummy secret key' # nosec
INSTALLED_APPS = [
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.admin',
'django.contrib.messages',
'site_config_client',
]
FEATURES = {}
MIDDLEWARE = [
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
]
TEMPLATES = [
{
'BACKEND': 'django.template.backends.django.DjangoTemplates',
'DIRS': [],
'APP_DIRS': True,
'OPTIONS': {
'context_processors': [
'django.template.context_processors.debug',
'django.template.context_processors.request',
'django.contrib.auth.context_processors.auth',
'django.contrib.messages.context_processors.messages',
],
},
},
]
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
| """
Empty pytest settings.
"""
secret_key = 'dummy secret key'
installed_apps = ['django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.admin', 'django.contrib.messages', 'site_config_client']
features = {}
middleware = ['django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware']
templates = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'APP_DIRS': True, 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}]
databases = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:'}} |
"""
Tuples are ecnlosed in parenthesis.
The values inside a tuple cannot be
changed.
"""
#declaring a tuple
flush = (1, 3, 4, 5)
print(flush[0]) #This will index 1 out of the tuple | """
Tuples are ecnlosed in parenthesis.
The values inside a tuple cannot be
changed.
"""
flush = (1, 3, 4, 5)
print(flush[0]) |
# Project Picframe
# Copyright 2021, Alef Solutions, Inc.
#
# Permission is hereby granted, free of charge, to any person obtaining a copy# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
"""
picframe_settings.py holds the user-configurable settings for the
frame.
"""
############################################################
#
# PFSettings
# This class holds user-configurable settings values.
#
class PFSettings:
"""
This class holds user-configurable settings values. All of these
can also be configured on the command line.
"""
##########################################################
# Where should logging information be sent? If log_to_stdout is set
# to true, it ignores log_directory and sends logging information to
# stdout. Otherwise it creates a logfile and puts it into the log
# directory. The logfile name is picframe_<timestamp>.log
log_to_stdout = True
log_directory = '/tmp'
##########################################################
# Debug level. CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET
debug_level = 'INFO'
##########################################################
# Should the images be displayed fullscreen? You can also specify a
# default non-fullscreen size by setting the geom. If it is
# set to None, it defaults to 400x400
fullscreen = False
geometry_str = "400x400"
##########################################################
# The fullscreen_geom is calculated by the program and is
# generally right unless you are on linux and using more than
# one monitor, in which case it WILL BE WRONG.
# Put in the form of fullscreen_geom_str = "1920x1080"
fullscreen_geom_str = "1920x1080"
##########################################################
# How long should an image be displayed (in seconds)?
display_time = 30
##########################################################
# Should the screen go dark during certain hours? If not, set the
# blackout_hour to None. Otherwise set the values using a 24 hour
# clock time.
#blackout_hour = None
blackout_hour = 23
blackout_minute = 0
end_blackout_hour = 7
end_blackout_minute = 15
##########################################################
# How long (minutes) should the motion sensor wait to see motion before
# blacking out the screen. Setting to None or 0 disables the motion
# detector.
# You can also disable the motion detector by setting
# use_motion_detector = False
# If you set motion_sensor_timeout to a usable number, you can toggle
# the motion sensor on and off using the keyboard.
motion_sensor_timeout = 15
use_motion_sensor = True
##########################################################
# Where should images be sourced from?
# Options are "Google Drive", "Filesystem"
image_source = 'Filesystem'
#image_source = 'Google Drive'
# Settings if for Filesystem
# image_paths can be a single path, the path to a single file,
# or a list of comma separated paths.
#image_paths = ('/mnt/c/tmp/images/IMG_1275.JPG',)
#image_paths = ('/mnt/c/tmp/images/',)
image_paths = ('/mnt/pibackup/',)
#image_paths = ('../images/black.png',)
#image_paths = ('/mnt/c/Users/andym/Pictures/',)
# Settings if for Google Drive (if used)
# If there is a root level directory to start in, can save a lot of time
# not traversing the rest. If the desired directory is at root level,
# then give both.
gdrive_root_folder = "PicFrame"
# The directory the photos are in. It may be the same as the
# ROOT_FOLDER_TITLE
gdrive_photos_folder = "PicFrame"
############################################################
############################################################
#
# Advanced settings. Adjust these carefully
#
############################################################
#
# Video settings:
#
# camera_port is useful if you have two video cameras and the
# wrong one is being selected. If that is the case, first try
# to set it to 1, then -1.
# default:
# camera_port = 0
camera_port = 0
# pixel_threshold identifies how many pixels need to change
# before a difference is tagged as motion. If the camera is
# lousy, light flickers, or small movements are common, this
# can be increased.
# default:
# pixel_threshold = 10
pixel_threshold = 15
# TIMER_STEP is the amount of time in seconds to increase or decrease
# the display time by when the keyboard toggle is used.
timer_step = 10
| """
picframe_settings.py holds the user-configurable settings for the
frame.
"""
class Pfsettings:
"""
This class holds user-configurable settings values. All of these
can also be configured on the command line.
"""
log_to_stdout = True
log_directory = '/tmp'
debug_level = 'INFO'
fullscreen = False
geometry_str = '400x400'
fullscreen_geom_str = '1920x1080'
display_time = 30
blackout_hour = 23
blackout_minute = 0
end_blackout_hour = 7
end_blackout_minute = 15
motion_sensor_timeout = 15
use_motion_sensor = True
image_source = 'Filesystem'
image_paths = ('/mnt/pibackup/',)
gdrive_root_folder = 'PicFrame'
gdrive_photos_folder = 'PicFrame'
camera_port = 0
pixel_threshold = 15
timer_step = 10 |
#
# PySNMP MIB module HUAWEI-SLOG-EUDM-MIB (http://snmplabs.com/pysmi)
# ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/HUAWEI-SLOG-EUDM-MIB
# Produced by pysmi-0.3.4 at Mon Apr 29 19:36:46 2019
# On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4
# Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15)
#
ObjectIdentifier, OctetString, Integer = mibBuilder.importSymbols("ASN1", "ObjectIdentifier", "OctetString", "Integer")
NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues")
ConstraintsIntersection, ConstraintsUnion, ValueSizeConstraint, ValueRangeConstraint, SingleValueConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ConstraintsIntersection", "ConstraintsUnion", "ValueSizeConstraint", "ValueRangeConstraint", "SingleValueConstraint")
hwDatacomm, = mibBuilder.importSymbols("HUAWEI-MIB", "hwDatacomm")
ModuleCompliance, ObjectGroup, NotificationGroup = mibBuilder.importSymbols("SNMPv2-CONF", "ModuleCompliance", "ObjectGroup", "NotificationGroup")
Counter32, ObjectIdentity, ModuleIdentity, Gauge32, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, Counter64, Unsigned32, MibIdentifier, NotificationType, Bits, IpAddress, Integer32 = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "ObjectIdentity", "ModuleIdentity", "Gauge32", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "Counter64", "Unsigned32", "MibIdentifier", "NotificationType", "Bits", "IpAddress", "Integer32")
TextualConvention, DisplayString, TruthValue = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "DisplayString", "TruthValue")
hwSLOGEudm = ModuleIdentity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2))
if mibBuilder.loadTexts: hwSLOGEudm.setLastUpdated('200304081633Z')
if mibBuilder.loadTexts: hwSLOGEudm.setOrganization('Huawei Technologies co.,Ltd.')
class FlowLogType(TextualConvention, Integer32):
status = 'current'
subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2))
namedValues = NamedValues(("flowLogSysLog", 1), ("flowLogExport", 2))
hwSLOG = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16))
hwSLogEudmGlobalCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 1))
hwSLogEudmAttackLogInterval = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hwSLogEudmAttackLogInterval.setStatus('current')
hwSLogEudmFlowLogInterval = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hwSLogEudmFlowLogInterval.setStatus('current')
hwSLogEudmStreamLogInterval = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hwSLogEudmStreamLogInterval.setStatus('current')
hwSLogEudmFlowLogMode = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 1, 4), FlowLogType().clone('flowLogSysLog')).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hwSLogEudmFlowLogMode.setStatus('current')
hwSLogEudmServerIP = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 1, 5), IpAddress()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hwSLogEudmServerIP.setStatus('current')
hwSLogEudmServerPort = MibScalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 1, 6), Integer32().subtype(subtypeSpec=ValueRangeConstraint(0, 65535))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hwSLogEudmServerPort.setStatus('current')
hwSLogInterZoneEnableCfg = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 2))
hwSLogEudmFlowLogEnableTable = MibTable((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 2, 1), )
if mibBuilder.loadTexts: hwSLogEudmFlowLogEnableTable.setStatus('current')
hwSLogEudmFlowLogEnableEntry = MibTableRow((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 2, 1, 1), ).setIndexNames((0, "HUAWEI-SLOG-EUDM-MIB", "hwSLogFlowEnableZoneID1"), (0, "HUAWEI-SLOG-EUDM-MIB", "hwSLogFlowEnableZoneID2"))
if mibBuilder.loadTexts: hwSLogEudmFlowLogEnableEntry.setStatus('current')
hwSLogFlowEnableZoneID1 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 2, 1, 1, 1), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16)))
if mibBuilder.loadTexts: hwSLogFlowEnableZoneID1.setStatus('current')
hwSLogFlowEnableZoneID2 = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 2, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 16)))
if mibBuilder.loadTexts: hwSLogFlowEnableZoneID2.setStatus('current')
hwSLogEudmFlowEnableFlag = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 2, 1, 1, 3), TruthValue()).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hwSLogEudmFlowEnableFlag.setStatus('current')
hwSLogEudmEnableHostAcl = MibTableColumn((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 2, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(ValueRangeConstraint(0, 0), ValueRangeConstraint(2000, 3999), ))).setMaxAccess("readwrite")
if mibBuilder.loadTexts: hwSLogEudmEnableHostAcl.setStatus('current')
hwSLOGEudmConformance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 3))
hwSLOGEudmCompliance = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 3, 1))
hwSLOGEudmMibGroups = MibIdentifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 3, 2))
hwSLOGEudmGlobalCfgGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 3, 2, 1)).setObjects(("HUAWEI-SLOG-EUDM-MIB", "hwSLogEudmAttackLogInterval"), ("HUAWEI-SLOG-EUDM-MIB", "hwSLogEudmStreamLogInterval"), ("HUAWEI-SLOG-EUDM-MIB", "hwSLogEudmFlowLogMode"), ("HUAWEI-SLOG-EUDM-MIB", "hwSLogEudmFlowLogInterval"), ("HUAWEI-SLOG-EUDM-MIB", "hwSLogEudmServerIP"), ("HUAWEI-SLOG-EUDM-MIB", "hwSLogEudmServerPort"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwSLOGEudmGlobalCfgGroup = hwSLOGEudmGlobalCfgGroup.setStatus('current')
hwSLOGEudmFlowLogEnableGroup = ObjectGroup((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 3, 2, 2)).setObjects(("HUAWEI-SLOG-EUDM-MIB", "hwSLogEudmFlowEnableFlag"), ("HUAWEI-SLOG-EUDM-MIB", "hwSLogEudmEnableHostAcl"))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hwSLOGEudmFlowLogEnableGroup = hwSLOGEudmFlowLogEnableGroup.setStatus('current')
mibBuilder.exportSymbols("HUAWEI-SLOG-EUDM-MIB", hwSLOG=hwSLOG, hwSLogFlowEnableZoneID1=hwSLogFlowEnableZoneID1, FlowLogType=FlowLogType, hwSLogEudmServerIP=hwSLogEudmServerIP, hwSLOGEudmMibGroups=hwSLOGEudmMibGroups, hwSLogEudmServerPort=hwSLogEudmServerPort, hwSLOGEudmFlowLogEnableGroup=hwSLOGEudmFlowLogEnableGroup, hwSLogEudmStreamLogInterval=hwSLogEudmStreamLogInterval, hwSLogEudmAttackLogInterval=hwSLogEudmAttackLogInterval, PYSNMP_MODULE_ID=hwSLOGEudm, hwSLogEudmFlowLogEnableEntry=hwSLogEudmFlowLogEnableEntry, hwSLOGEudmCompliance=hwSLOGEudmCompliance, hwSLogEudmEnableHostAcl=hwSLogEudmEnableHostAcl, hwSLogEudmFlowLogMode=hwSLogEudmFlowLogMode, hwSLogInterZoneEnableCfg=hwSLogInterZoneEnableCfg, hwSLOGEudmConformance=hwSLOGEudmConformance, hwSLogEudmFlowEnableFlag=hwSLogEudmFlowEnableFlag, hwSLogFlowEnableZoneID2=hwSLogFlowEnableZoneID2, hwSLogEudmFlowLogInterval=hwSLogEudmFlowLogInterval, hwSLOGEudm=hwSLOGEudm, hwSLOGEudmGlobalCfgGroup=hwSLOGEudmGlobalCfgGroup, hwSLogEudmFlowLogEnableTable=hwSLogEudmFlowLogEnableTable, hwSLogEudmGlobalCfg=hwSLogEudmGlobalCfg)
| (object_identifier, octet_string, integer) = mibBuilder.importSymbols('ASN1', 'ObjectIdentifier', 'OctetString', 'Integer')
(named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues')
(constraints_intersection, constraints_union, value_size_constraint, value_range_constraint, single_value_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueSizeConstraint', 'ValueRangeConstraint', 'SingleValueConstraint')
(hw_datacomm,) = mibBuilder.importSymbols('HUAWEI-MIB', 'hwDatacomm')
(module_compliance, object_group, notification_group) = mibBuilder.importSymbols('SNMPv2-CONF', 'ModuleCompliance', 'ObjectGroup', 'NotificationGroup')
(counter32, object_identity, module_identity, gauge32, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, counter64, unsigned32, mib_identifier, notification_type, bits, ip_address, integer32) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter32', 'ObjectIdentity', 'ModuleIdentity', 'Gauge32', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'Counter64', 'Unsigned32', 'MibIdentifier', 'NotificationType', 'Bits', 'IpAddress', 'Integer32')
(textual_convention, display_string, truth_value) = mibBuilder.importSymbols('SNMPv2-TC', 'TextualConvention', 'DisplayString', 'TruthValue')
hw_slog_eudm = module_identity((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2))
if mibBuilder.loadTexts:
hwSLOGEudm.setLastUpdated('200304081633Z')
if mibBuilder.loadTexts:
hwSLOGEudm.setOrganization('Huawei Technologies co.,Ltd.')
class Flowlogtype(TextualConvention, Integer32):
status = 'current'
subtype_spec = Integer32.subtypeSpec + constraints_union(single_value_constraint(1, 2))
named_values = named_values(('flowLogSysLog', 1), ('flowLogExport', 2))
hw_slog = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16))
hw_s_log_eudm_global_cfg = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 1))
hw_s_log_eudm_attack_log_interval = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hwSLogEudmAttackLogInterval.setStatus('current')
hw_s_log_eudm_flow_log_interval = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hwSLogEudmFlowLogInterval.setStatus('current')
hw_s_log_eudm_stream_log_interval = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 1, 3), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hwSLogEudmStreamLogInterval.setStatus('current')
hw_s_log_eudm_flow_log_mode = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 1, 4), flow_log_type().clone('flowLogSysLog')).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hwSLogEudmFlowLogMode.setStatus('current')
hw_s_log_eudm_server_ip = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 1, 5), ip_address()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hwSLogEudmServerIP.setStatus('current')
hw_s_log_eudm_server_port = mib_scalar((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 1, 6), integer32().subtype(subtypeSpec=value_range_constraint(0, 65535))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hwSLogEudmServerPort.setStatus('current')
hw_s_log_inter_zone_enable_cfg = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 2))
hw_s_log_eudm_flow_log_enable_table = mib_table((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 2, 1))
if mibBuilder.loadTexts:
hwSLogEudmFlowLogEnableTable.setStatus('current')
hw_s_log_eudm_flow_log_enable_entry = mib_table_row((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 2, 1, 1)).setIndexNames((0, 'HUAWEI-SLOG-EUDM-MIB', 'hwSLogFlowEnableZoneID1'), (0, 'HUAWEI-SLOG-EUDM-MIB', 'hwSLogFlowEnableZoneID2'))
if mibBuilder.loadTexts:
hwSLogEudmFlowLogEnableEntry.setStatus('current')
hw_s_log_flow_enable_zone_id1 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 2, 1, 1, 1), integer32().subtype(subtypeSpec=value_range_constraint(1, 16)))
if mibBuilder.loadTexts:
hwSLogFlowEnableZoneID1.setStatus('current')
hw_s_log_flow_enable_zone_id2 = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 2, 1, 1, 2), integer32().subtype(subtypeSpec=value_range_constraint(1, 16)))
if mibBuilder.loadTexts:
hwSLogFlowEnableZoneID2.setStatus('current')
hw_s_log_eudm_flow_enable_flag = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 2, 1, 1, 3), truth_value()).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hwSLogEudmFlowEnableFlag.setStatus('current')
hw_s_log_eudm_enable_host_acl = mib_table_column((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 2, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(value_range_constraint(0, 0), value_range_constraint(2000, 3999)))).setMaxAccess('readwrite')
if mibBuilder.loadTexts:
hwSLogEudmEnableHostAcl.setStatus('current')
hw_slog_eudm_conformance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 3))
hw_slog_eudm_compliance = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 3, 1))
hw_slog_eudm_mib_groups = mib_identifier((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 3, 2))
hw_slog_eudm_global_cfg_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 3, 2, 1)).setObjects(('HUAWEI-SLOG-EUDM-MIB', 'hwSLogEudmAttackLogInterval'), ('HUAWEI-SLOG-EUDM-MIB', 'hwSLogEudmStreamLogInterval'), ('HUAWEI-SLOG-EUDM-MIB', 'hwSLogEudmFlowLogMode'), ('HUAWEI-SLOG-EUDM-MIB', 'hwSLogEudmFlowLogInterval'), ('HUAWEI-SLOG-EUDM-MIB', 'hwSLogEudmServerIP'), ('HUAWEI-SLOG-EUDM-MIB', 'hwSLogEudmServerPort'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_slog_eudm_global_cfg_group = hwSLOGEudmGlobalCfgGroup.setStatus('current')
hw_slog_eudm_flow_log_enable_group = object_group((1, 3, 6, 1, 4, 1, 2011, 5, 25, 16, 2, 3, 2, 2)).setObjects(('HUAWEI-SLOG-EUDM-MIB', 'hwSLogEudmFlowEnableFlag'), ('HUAWEI-SLOG-EUDM-MIB', 'hwSLogEudmEnableHostAcl'))
if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0):
hw_slog_eudm_flow_log_enable_group = hwSLOGEudmFlowLogEnableGroup.setStatus('current')
mibBuilder.exportSymbols('HUAWEI-SLOG-EUDM-MIB', hwSLOG=hwSLOG, hwSLogFlowEnableZoneID1=hwSLogFlowEnableZoneID1, FlowLogType=FlowLogType, hwSLogEudmServerIP=hwSLogEudmServerIP, hwSLOGEudmMibGroups=hwSLOGEudmMibGroups, hwSLogEudmServerPort=hwSLogEudmServerPort, hwSLOGEudmFlowLogEnableGroup=hwSLOGEudmFlowLogEnableGroup, hwSLogEudmStreamLogInterval=hwSLogEudmStreamLogInterval, hwSLogEudmAttackLogInterval=hwSLogEudmAttackLogInterval, PYSNMP_MODULE_ID=hwSLOGEudm, hwSLogEudmFlowLogEnableEntry=hwSLogEudmFlowLogEnableEntry, hwSLOGEudmCompliance=hwSLOGEudmCompliance, hwSLogEudmEnableHostAcl=hwSLogEudmEnableHostAcl, hwSLogEudmFlowLogMode=hwSLogEudmFlowLogMode, hwSLogInterZoneEnableCfg=hwSLogInterZoneEnableCfg, hwSLOGEudmConformance=hwSLOGEudmConformance, hwSLogEudmFlowEnableFlag=hwSLogEudmFlowEnableFlag, hwSLogFlowEnableZoneID2=hwSLogFlowEnableZoneID2, hwSLogEudmFlowLogInterval=hwSLogEudmFlowLogInterval, hwSLOGEudm=hwSLOGEudm, hwSLOGEudmGlobalCfgGroup=hwSLOGEudmGlobalCfgGroup, hwSLogEudmFlowLogEnableTable=hwSLogEudmFlowLogEnableTable, hwSLogEudmGlobalCfg=hwSLogEudmGlobalCfg) |
# -*- coding: utf-8 -*-
"""
This source code file is licensed under the GNU General Public License Version 3.
For full details, please refer to the file "LICENSE.txt" which is provided as part of this source code package.
Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
"""
SETTING_FILENAME = 'filename'
SETTING_RECENT_FILES = 'recentFiles'
SETTING_WIN_SIZE = 'window/size'
SETTING_WIN_POSE = 'window/position'
SETTING_WIN_GEOMETRY = 'window/geometry'
SETTING_LINE_COLOR = 'line/color'
SETTING_FILL_COLOR = 'fill/color'
SETTING_ADVANCE_MODE = 'advanced'
SETTING_WIN_STATE = 'window/state'
SETTING_SAVE_DIR = 'savedir'
SETTING_PAINT_LABEL = 'paintlabel'
SETTING_LAST_OPEN_DIR = 'lastOpenDir'
SETTING_AUTO_SAVE = 'autosave'
SETTING_SINGLE_CLASS = 'singleclass'
FORMAT_PASCALVOC='PascalVOC'
FORMAT_YOLO='YOLO'
SETTING_DRAW_SQUARE = 'draw/square'
DEFAULT_ENCODING = 'utf-8'
| """
This source code file is licensed under the GNU General Public License Version 3.
For full details, please refer to the file "LICENSE.txt" which is provided as part of this source code package.
Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
"""
setting_filename = 'filename'
setting_recent_files = 'recentFiles'
setting_win_size = 'window/size'
setting_win_pose = 'window/position'
setting_win_geometry = 'window/geometry'
setting_line_color = 'line/color'
setting_fill_color = 'fill/color'
setting_advance_mode = 'advanced'
setting_win_state = 'window/state'
setting_save_dir = 'savedir'
setting_paint_label = 'paintlabel'
setting_last_open_dir = 'lastOpenDir'
setting_auto_save = 'autosave'
setting_single_class = 'singleclass'
format_pascalvoc = 'PascalVOC'
format_yolo = 'YOLO'
setting_draw_square = 'draw/square'
default_encoding = 'utf-8' |
class MljarException(Exception):
"""Base exception class for this module"""
pass
class TokenException(MljarException):
pass
class DataReadException(MljarException):
pass
class JSONReadException(MljarException):
pass
class NotFoundException(MljarException):
pass
class AuthenticationException(MljarException):
pass
class BadRequestException(MljarException):
pass
class BadValueException(MljarException):
pass
class UnknownProjectTask(MljarException):
pass
class IncorrectInputDataException(MljarException):
pass
class FileUploadException(MljarException):
pass
class CreateProjectException(MljarException):
pass
class CreateDatasetException(MljarException):
pass
class CreateExperimentException(MljarException):
pass
class UndefinedExperimentException(MljarException):
pass
class DatasetUnknownException(MljarException):
pass
class PredictionDownloadException(MljarException):
pass
| class Mljarexception(Exception):
"""Base exception class for this module"""
pass
class Tokenexception(MljarException):
pass
class Datareadexception(MljarException):
pass
class Jsonreadexception(MljarException):
pass
class Notfoundexception(MljarException):
pass
class Authenticationexception(MljarException):
pass
class Badrequestexception(MljarException):
pass
class Badvalueexception(MljarException):
pass
class Unknownprojecttask(MljarException):
pass
class Incorrectinputdataexception(MljarException):
pass
class Fileuploadexception(MljarException):
pass
class Createprojectexception(MljarException):
pass
class Createdatasetexception(MljarException):
pass
class Createexperimentexception(MljarException):
pass
class Undefinedexperimentexception(MljarException):
pass
class Datasetunknownexception(MljarException):
pass
class Predictiondownloadexception(MljarException):
pass |
class Invitation ():
def __init__(self, _id, sender, recipient):
self._id = _id
self.sender = sender
self.recipient = recipient
def __repr__(self):
return f'Invitation({self._id}, {self.sender}, {self.recipient})'
| class Invitation:
def __init__(self, _id, sender, recipient):
self._id = _id
self.sender = sender
self.recipient = recipient
def __repr__(self):
return f'Invitation({self._id}, {self.sender}, {self.recipient})' |
class Brackets():
# You are given an expression with numbers, brackets and operators.
# For this task only the brackets matter.
# Brackets come in three flavors: "{}" "()" or "[]".
# Brackets are used to determine scope or to restrict some expression.
# If a bracket is open, then it must be closed with a closing bracket of the same type.
# The scope of a bracket must not intersected by another bracket.
# In this task you should make a decision, whether to correct an expression or not based on the brackets.
# Do not worry about operators and operands.
#
# Input:
# - An expression with different of types brackets as a string (unicode).
#
# Output:
# - A verdict on the correctness of the expression in boolean (True or False).
#
# Precondition:
# - There are only brackets ("{}" "()" or "[]"), digits or operators ("+" "-" "*" "/").
# - 0 < len(expression) < 103
def checkio(expression):
opening = '({['
closing = ')}]'
mapping = dict(zip(opening, closing))
queue = []
for letter in expression:
if letter in opening:
queue.append(mapping[letter])
elif letter in closing:
if not queue or letter != queue.pop():
return False
return not queue
#These "asserts" using only for self-checking and not necessary for auto-testing
if __name__ == '__main__':
assert checkio("((5+3)*2+1)") == True, "Simple"
assert checkio("{[(3+1)+2]+}") == True, "Different types"
assert checkio("(3+{1-1)}") == False, ") is alone inside {}"
assert checkio("[1+1]+(2*2)-{3/3}") == True, "Different operators"
assert checkio("(({[(((1)-2)+3)-3]/3}-3)") == False, "One is redundant"
assert checkio("2+3") == True, "No brackets, no problem"
print("The local tests are done.") | class Brackets:
def checkio(expression):
opening = '({['
closing = ')}]'
mapping = dict(zip(opening, closing))
queue = []
for letter in expression:
if letter in opening:
queue.append(mapping[letter])
elif letter in closing:
if not queue or letter != queue.pop():
return False
return not queue
if __name__ == '__main__':
assert checkio('((5+3)*2+1)') == True, 'Simple'
assert checkio('{[(3+1)+2]+}') == True, 'Different types'
assert checkio('(3+{1-1)}') == False, ') is alone inside {}'
assert checkio('[1+1]+(2*2)-{3/3}') == True, 'Different operators'
assert checkio('(({[(((1)-2)+3)-3]/3}-3)') == False, 'One is redundant'
assert checkio('2+3') == True, 'No brackets, no problem'
print('The local tests are done.') |
logo = '''
_____ _ _ _____ _
| __|_ _ ___ ___ ___ | |_| |_ ___ | | |_ _ _____| |_ ___ ___
| | | | | -_|_ -|_ -| | _| | -_| | | | | | | | . | -_| _|
|_____|___|___|___|___| |_| |_|_|___| |_|___|___|_|_|_|___|___|_|
''' | logo = '\n _____ _ _ _____ _ \n| __|_ _ ___ ___ ___ | |_| |_ ___ | | |_ _ _____| |_ ___ ___ \n| | | | | -_|_ -|_ -| | _| | -_| | | | | | | | . | -_| _|\n|_____|___|___|___|___| |_| |_|_|___| |_|___|___|_|_|_|___|___|_| \n' |
def test():
print('software installed')
print('a new version')
print('version update')
| def test():
print('software installed')
print('a new version')
print('version update') |
#!/usr/bin/python3
"""
DOWNLOAD ALL THE PROBLEMS OF CODE FORCE
"""
CODEF_SET_URLS = list()
CODEF_SET_URLS.append("https://codeforces.com/problemset")
CODEF_SET_URLS.append("https://codeforces.com/problemset/acmsguru")
print("Code Forces Scrapping.")
| """
DOWNLOAD ALL THE PROBLEMS OF CODE FORCE
"""
codef_set_urls = list()
CODEF_SET_URLS.append('https://codeforces.com/problemset')
CODEF_SET_URLS.append('https://codeforces.com/problemset/acmsguru')
print('Code Forces Scrapping.') |
# The Rabin-Karp Algorithm for Pattern Searching
# uses hashing to find patterns in text
# It is O(nm)
# ascii values go up to 255, so use 256 as a large prime number
d = 256
def rk(text, pat, q):
# q is a prime number for hashing
M = len(pat)
N = len(text)
i = 0
j = 0
pHash = 0
tHash = 0
hash = 1
for i in range(0, M-1):
hash = (hash*d)%q
# calculate the hash value of the pattern
# and the window
for i in range(0, M):
pHash = (d*pHash + ord(pat[i]))%q
tHash = (d*tHash + ord(text[i]))%q
# slide the pattern over text one by one
for i in range(0, N-M+1):
# check the hash values of current window of text and pattern
# if hash values match, the check characters one by one
if pHash == tHash:
# check for characters one by one
for j in range(0, M):
if text[i+j] != pat[j]:
break
j += 1
if j == M:
print("Pattern found at index ", i)
# Calculate the hash value for the next window
# Remove leading and trailing digit
if i < N-M:
tHash = (d*(tHash-ord(text[i])*hash) + ord(text[i+M]))%q
if tHash < 0:
tHash = tHash + q
text = "TEEST AND TEEEST AND TEEEEST"
pat = "EE"
num = 101
rk(text, pat, num)
| d = 256
def rk(text, pat, q):
m = len(pat)
n = len(text)
i = 0
j = 0
p_hash = 0
t_hash = 0
hash = 1
for i in range(0, M - 1):
hash = hash * d % q
for i in range(0, M):
p_hash = (d * pHash + ord(pat[i])) % q
t_hash = (d * tHash + ord(text[i])) % q
for i in range(0, N - M + 1):
if pHash == tHash:
for j in range(0, M):
if text[i + j] != pat[j]:
break
j += 1
if j == M:
print('Pattern found at index ', i)
if i < N - M:
t_hash = (d * (tHash - ord(text[i]) * hash) + ord(text[i + M])) % q
if tHash < 0:
t_hash = tHash + q
text = 'TEEST AND TEEEST AND TEEEEST'
pat = 'EE'
num = 101
rk(text, pat, num) |
#!/usr/bin/env python3
### PRIME FACTORIZATION ###
# The program make the user enter a number and find all prime factors (if there are any) and display them.
# Firstly, we define "factors", "prime" and "prime_factors".
factors = lambda a: [n for n in range(1, a + 1) if not a % n]
prime = lambda a: len(factors(a)) == 2
prime_factors = lambda a: list(filter(prime, factors(a)))
# Then, we create the prime factorization function.
def primefact(a):
a = int(a)
x = prime_factors(a)
if prime(a):
return str(a)
else:
return str(x[0]) + '*' + primefact(a / x[0])
if __name__ == '__main__':
print("Welcome to the Prime Factorization program! Please enter a number to continue or 'exit' to leave.")
num = 0
while True:
if num:
print(primefact(num))
print(">>>",end='')
num = input()
if num == 'exit':
break
| factors = lambda a: [n for n in range(1, a + 1) if not a % n]
prime = lambda a: len(factors(a)) == 2
prime_factors = lambda a: list(filter(prime, factors(a)))
def primefact(a):
a = int(a)
x = prime_factors(a)
if prime(a):
return str(a)
else:
return str(x[0]) + '*' + primefact(a / x[0])
if __name__ == '__main__':
print("Welcome to the Prime Factorization program! Please enter a number to continue or 'exit' to leave.")
num = 0
while True:
if num:
print(primefact(num))
print('>>>', end='')
num = input()
if num == 'exit':
break |
t=int(input())
while(t>0):
t=t-1
n,k=map(int,input().split())
n1=n
k1=k
l=[]
while(k1>1):
if(n%k!=0):
firstn=int(n/k)+1
elif(k==2):
firstn=int(n/2)+1
else:
firstn=int(n/k)
l.append(firstn)
n=n-firstn
k1=k1-1
l.append(n)
if(n1==(k*(k+1)/2)):
print('0')
elif(n1<(k*(k+1)/2)):
print('-1')
elif(k>=n1):
print('-1')
else:
l1=[i*i-i for i in l]
p=1
for i in l1:
p*=i
print(p%((10**9)+7))
| t = int(input())
while t > 0:
t = t - 1
(n, k) = map(int, input().split())
n1 = n
k1 = k
l = []
while k1 > 1:
if n % k != 0:
firstn = int(n / k) + 1
elif k == 2:
firstn = int(n / 2) + 1
else:
firstn = int(n / k)
l.append(firstn)
n = n - firstn
k1 = k1 - 1
l.append(n)
if n1 == k * (k + 1) / 2:
print('0')
elif n1 < k * (k + 1) / 2:
print('-1')
elif k >= n1:
print('-1')
else:
l1 = [i * i - i for i in l]
p = 1
for i in l1:
p *= i
print(p % (10 ** 9 + 7)) |
expected_output = {
"vrf": {
"default": {
"associations": {
"address": {
"172.31.32.2": {
"local_mode": {
"active": {
"isconfigured": {
"True": {
"selected": False,
"unsynced": False,
"address": "172.31.32.2",
"isconfigured": True,
"authenticated": False,
"sane": False,
"valid": False,
"master": False,
"stratum": 5,
"refid": "172.31.32.1",
"input_time": "AFE252C1.6DBDDFF2 (00:12:01.428 PDT Mon Jul 5 1993)",
"peer_interface": "172.31.32.1",
"poll": "1024",
"vrf": "default",
"local_mode": "active",
"peer": {
"172.31.32.1": {
"local_mode": {
"active": {
"poll": 64,
"local_mode": "active",
}
}
}
},
"root_delay_msec": "137.77",
"root_disp": "142.75",
"reach": "376",
"sync_dist": "215.363",
"delay_msec": "4.23",
"offset_msec": "-8.587",
"dispersion": "1.62",
"jitter_msec": "None",
"precision": "2**19",
"version": 4,
"assoc_name": "192.168.1.55",
"assoc_id": 1,
"ntp_statistics": {
"packet_received": 60,
"packet_sent": 60,
"packet_dropped": 0,
},
"originate_time": "AFE252E2.3AC0E887 (00:12:34.229 PDT Tue Oct 4 2011)",
"receive_time": "AFE252E2.3D7E464D (00:12:34.240 PDT Mon Jan 1 1900)",
"transmit_time": "AFE25301.6F83E753 (00:13:05.435 PDT Tue Oct 4 2011)",
"filtdelay": "4.23 4.14 2.41 5.95 2.37 2.33 4.26 4.33",
"filtoffset": "-8.59 -8.82 -9.91 -8.42 -10.51 -10.77 -10.13 -10.11",
"filterror": "0.50 1.48 2.46 3.43 4.41 5.39 6.36 7.34",
}
}
}
}
},
"192.168.13.33": {
"local_mode": {
"client": {
"isconfigured": {
"True": {
"selected": True,
"unsynced": False,
"address": "192.168.13.33",
"isconfigured": True,
"authenticated": False,
"sane": True,
"valid": True,
"master": False,
"stratum": 3,
"refid": "192.168.1.111",
"input_time": "AFE24F0E.14283000 (23:56:14.078 PDT Sun Jul 4 1993)",
"peer_interface": "192.168.1.111",
"poll": "128",
"vrf": "default",
"local_mode": "client",
"peer": {
"192.168.1.111": {
"local_mode": {
"server": {
"poll": 128,
"local_mode": "server",
}
}
}
},
"root_delay_msec": "83.72",
"root_disp": "217.77",
"reach": "377",
"sync_dist": "264.633",
"delay_msec": "4.07",
"offset_msec": "3.483",
"dispersion": "2.33",
"jitter_msec": "None",
"precision": "2**6",
"version": 3,
"assoc_name": "myserver",
"assoc_id": 2,
"ntp_statistics": {
"packet_received": 0,
"packet_sent": 0,
"packet_dropped": 0,
},
"originate_time": "AFE252B9.713E9000 (00:11:53.442 PDT Tue Oct 4 2011)",
"receive_time": "AFE252B9.7124E14A (00:11:53.441 PDT Mon Jan 1 1900)",
"transmit_time": "AFE252B9.6F625195 (00:11:53.435 PDT Mon Jan 1 1900)",
"filtdelay": "6.47 4.07 3.94 3.86 7.31 7.20 9.52 8.71",
"filtoffset": "3.63 3.48 3.06 2.82 4.51 4.57 4.28 4.59",
"filterror": "0.00 1.95 3.91 4.88 5.84 6.82 7.80 8.77",
}
}
}
}
},
"192.168.13.57": {
"local_mode": {
"client": {
"isconfigured": {
"True": {
"selected": False,
"unsynced": False,
"address": "192.168.13.57",
"isconfigured": True,
"authenticated": False,
"sane": True,
"valid": True,
"master": True,
"stratum": 3,
"refid": "192.168.1.111",
"input_time": "AFE252DC.1F2B3000 (00:12:28.121 PDT Mon Jul 5 1993)",
"peer_interface": "192.168.1.111",
"poll": "128",
"vrf": "default",
"local_mode": "client",
"peer": {
"192.168.1.111": {
"local_mode": {
"server": {
"poll": 128,
"local_mode": "server",
}
}
}
},
"root_delay_msec": "125.50",
"root_disp": "115.80",
"reach": "377",
"sync_dist": "186.157",
"delay_msec": "7.86",
"offset_msec": "11.176",
"dispersion": "3.62",
"jitter_msec": "None",
"precision": "2**6",
"version": 2,
"assoc_name": "myserver",
"assoc_id": 2,
"ntp_statistics": {
"packet_received": 0,
"packet_sent": 0,
"packet_dropped": 0,
},
"originate_time": "AFE252DE.77C29000 (00:12:30.467 PDT Tue Oct 4 2011)",
"receive_time": "AFE252DE.7B2AE40B (00:12:30.481 PDT Mon Jan 1 1900)",
"transmit_time": "AFE252DE.6E6D12E4 (00:12:30.431 PDT Mon Jan 1 1900)",
"filtdelay": "49.21 7.86 8.18 8.80 4.30 4.24 7.58 6.42",
"filtoffset": "11.30 11.18 11.13 11.28 8.91 9.09 9.27 9.57",
"filterror": "0.00 1.95 3.91 4.88 5.78 6.76 7.74 8.71",
}
}
}
}
},
}
}
}
}
}
| expected_output = {'vrf': {'default': {'associations': {'address': {'172.31.32.2': {'local_mode': {'active': {'isconfigured': {'True': {'selected': False, 'unsynced': False, 'address': '172.31.32.2', 'isconfigured': True, 'authenticated': False, 'sane': False, 'valid': False, 'master': False, 'stratum': 5, 'refid': '172.31.32.1', 'input_time': 'AFE252C1.6DBDDFF2 (00:12:01.428 PDT Mon Jul 5 1993)', 'peer_interface': '172.31.32.1', 'poll': '1024', 'vrf': 'default', 'local_mode': 'active', 'peer': {'172.31.32.1': {'local_mode': {'active': {'poll': 64, 'local_mode': 'active'}}}}, 'root_delay_msec': '137.77', 'root_disp': '142.75', 'reach': '376', 'sync_dist': '215.363', 'delay_msec': '4.23', 'offset_msec': '-8.587', 'dispersion': '1.62', 'jitter_msec': 'None', 'precision': '2**19', 'version': 4, 'assoc_name': '192.168.1.55', 'assoc_id': 1, 'ntp_statistics': {'packet_received': 60, 'packet_sent': 60, 'packet_dropped': 0}, 'originate_time': 'AFE252E2.3AC0E887 (00:12:34.229 PDT Tue Oct 4 2011)', 'receive_time': 'AFE252E2.3D7E464D (00:12:34.240 PDT Mon Jan 1 1900)', 'transmit_time': 'AFE25301.6F83E753 (00:13:05.435 PDT Tue Oct 4 2011)', 'filtdelay': '4.23 4.14 2.41 5.95 2.37 2.33 4.26 4.33', 'filtoffset': '-8.59 -8.82 -9.91 -8.42 -10.51 -10.77 -10.13 -10.11', 'filterror': '0.50 1.48 2.46 3.43 4.41 5.39 6.36 7.34'}}}}}, '192.168.13.33': {'local_mode': {'client': {'isconfigured': {'True': {'selected': True, 'unsynced': False, 'address': '192.168.13.33', 'isconfigured': True, 'authenticated': False, 'sane': True, 'valid': True, 'master': False, 'stratum': 3, 'refid': '192.168.1.111', 'input_time': 'AFE24F0E.14283000 (23:56:14.078 PDT Sun Jul 4 1993)', 'peer_interface': '192.168.1.111', 'poll': '128', 'vrf': 'default', 'local_mode': 'client', 'peer': {'192.168.1.111': {'local_mode': {'server': {'poll': 128, 'local_mode': 'server'}}}}, 'root_delay_msec': '83.72', 'root_disp': '217.77', 'reach': '377', 'sync_dist': '264.633', 'delay_msec': '4.07', 'offset_msec': '3.483', 'dispersion': '2.33', 'jitter_msec': 'None', 'precision': '2**6', 'version': 3, 'assoc_name': 'myserver', 'assoc_id': 2, 'ntp_statistics': {'packet_received': 0, 'packet_sent': 0, 'packet_dropped': 0}, 'originate_time': 'AFE252B9.713E9000 (00:11:53.442 PDT Tue Oct 4 2011)', 'receive_time': 'AFE252B9.7124E14A (00:11:53.441 PDT Mon Jan 1 1900)', 'transmit_time': 'AFE252B9.6F625195 (00:11:53.435 PDT Mon Jan 1 1900)', 'filtdelay': '6.47 4.07 3.94 3.86 7.31 7.20 9.52 8.71', 'filtoffset': '3.63 3.48 3.06 2.82 4.51 4.57 4.28 4.59', 'filterror': '0.00 1.95 3.91 4.88 5.84 6.82 7.80 8.77'}}}}}, '192.168.13.57': {'local_mode': {'client': {'isconfigured': {'True': {'selected': False, 'unsynced': False, 'address': '192.168.13.57', 'isconfigured': True, 'authenticated': False, 'sane': True, 'valid': True, 'master': True, 'stratum': 3, 'refid': '192.168.1.111', 'input_time': 'AFE252DC.1F2B3000 (00:12:28.121 PDT Mon Jul 5 1993)', 'peer_interface': '192.168.1.111', 'poll': '128', 'vrf': 'default', 'local_mode': 'client', 'peer': {'192.168.1.111': {'local_mode': {'server': {'poll': 128, 'local_mode': 'server'}}}}, 'root_delay_msec': '125.50', 'root_disp': '115.80', 'reach': '377', 'sync_dist': '186.157', 'delay_msec': '7.86', 'offset_msec': '11.176', 'dispersion': '3.62', 'jitter_msec': 'None', 'precision': '2**6', 'version': 2, 'assoc_name': 'myserver', 'assoc_id': 2, 'ntp_statistics': {'packet_received': 0, 'packet_sent': 0, 'packet_dropped': 0}, 'originate_time': 'AFE252DE.77C29000 (00:12:30.467 PDT Tue Oct 4 2011)', 'receive_time': 'AFE252DE.7B2AE40B (00:12:30.481 PDT Mon Jan 1 1900)', 'transmit_time': 'AFE252DE.6E6D12E4 (00:12:30.431 PDT Mon Jan 1 1900)', 'filtdelay': '49.21 7.86 8.18 8.80 4.30 4.24 7.58 6.42', 'filtoffset': '11.30 11.18 11.13 11.28 8.91 9.09 9.27 9.57', 'filterror': '0.00 1.95 3.91 4.88 5.78 6.76 7.74 8.71'}}}}}}}}}} |
"""Test User API resources"""
def test_user_list__get_200(app, client, db, user):
res = client.get("/users/")
res_json = res.get_json()
assert res.status_code == 200
assert len(res_json) == 1
assert res_json[0]["id"] == str(user.id)
def test_user_list__post_200(app, client, db):
payload = [{"email": "gandalf@gmail.com", "password": "MinesofMoria68"}]
res = client.post("/users/", json=payload)
res_json = res.get_json()
assert res.status_code == 200
assert len(res_json) == 1
def test_user_list__post_422(app, client, db):
payload = [{"i_should_not_be_here": "me_too"}]
res = client.post("/users/", json=payload)
assert res.status_code == 422
| """Test User API resources"""
def test_user_list__get_200(app, client, db, user):
res = client.get('/users/')
res_json = res.get_json()
assert res.status_code == 200
assert len(res_json) == 1
assert res_json[0]['id'] == str(user.id)
def test_user_list__post_200(app, client, db):
payload = [{'email': 'gandalf@gmail.com', 'password': 'MinesofMoria68'}]
res = client.post('/users/', json=payload)
res_json = res.get_json()
assert res.status_code == 200
assert len(res_json) == 1
def test_user_list__post_422(app, client, db):
payload = [{'i_should_not_be_here': 'me_too'}]
res = client.post('/users/', json=payload)
assert res.status_code == 422 |
"""
expo.commands.app
~~~~~~~~~~~~~~~~~
hikari Application Command Handler.
:copyright: 2022 VincentRPS
:license: Apache-2.0
"""
# This is a COMING-SOON feature.
# it shouldn't be priority currently.
| """
expo.commands.app
~~~~~~~~~~~~~~~~~
hikari Application Command Handler.
:copyright: 2022 VincentRPS
:license: Apache-2.0
""" |
"""
Utils functions
"""
def print_bytes_int(value):
array = []
for val in value:
array.append(val)
print(array)
def print_bytes_bit(value):
array = []
for val in value:
for j in range(7, -1, -1):
array.append((val >> j) % 2)
print(array)
| """
Utils functions
"""
def print_bytes_int(value):
array = []
for val in value:
array.append(val)
print(array)
def print_bytes_bit(value):
array = []
for val in value:
for j in range(7, -1, -1):
array.append((val >> j) % 2)
print(array) |
school = {
"Cavell": ["Claim"],
"Master": ["Austin1975", "Wittgenstein2009"],
"Most cited": [
"Burge2010",
"Davidson2013",
"Dummett1973",
"Fodor1983",
"Frege1948",
"Kripke1980",
"Lewis2002",
"Putnam2004",
"Quine2013",
"Russell1967",
"Williamson2002",
"Wright1992",
],
"Anti-teorethical": [
"Anscombe",
"Baier1991",
"Diamond1995",
"Foot2002",
"MacIntyre2007",
"McDowell1994",
"Murdoch2013",
"Williams2011",
"Winch1990",
],
}
print("\\begin{center}\n\\begin{tabular}{|r l l|}")
print("\\hline")
print("Author & Title & Category \\\\")
print("\\hline")
for cat in school.keys():
for bib in school[cat]:
print("\\citeauthor{" + bib + "} & \\citetitle{" + bib + "} & " + cat + " \\\\")
print("\\hline")
print("\\end{tabular}\n\\end{center}")
year = {
"must_we_mean_what_we_say": 1969,
"the_claim_of_reason_1": "1972, 1979",
"the_senses_of_walden_1": "1972, 1980",
"the_world_viewed_1": "1971, 1979",
"pursuits_of_happiness": 1981,
"themes_out_of_school": 1984,
"a_pitch_of_philosophy": 1994,
"cities_of_words": 2004,
"conditions_handsome_and_unhandsome": 1990,
"contesting_tears": 1996,
"in_quest_of_the_ordinary": 1988,
"philosophical_passages": 1995,
"this_new_yet_unapproachable_america": 1988,
"little_did_i_know": 2010,
"philosophy_the_day_after": 2005,
}
bibs = {
"must_we_mean_what_we_say": "Must",
"the_claim_of_reason_1": "Claim",
"the_senses_of_walden_1": "Senses",
"the_world_viewed_1": "World",
"pursuits_of_happiness": "Pursuits",
"themes_out_of_school": "Themes",
"a_pitch_of_philosophy": "aPitch",
"cities_of_words": "Cities",
"conditions_handsome_and_unhandsome": "Conditions",
"contesting_tears": "Contesting",
"in_quest_of_the_ordinary": "inQuest",
"philosophical_passages": "Philosophical",
"this_new_yet_unapproachable_america": "thisNew",
"little_did_i_know": "Little",
"philosophy_the_day_after": "Philosophy",
}
print("\\begin{center}\n\\begin{tabular}{|r l l|}")
print("\\hline")
print("Title & 1st and enlarged Editions & Used Edition \\\\")
print("\\hline")
for bib in bibs.keys():
print(
"\\citetitle{"
+ bibs[bib]
+ "} & \\ "
+ str(year[bib])
+ " & \\citeyear{"
+ bibs[bib]
+ "} \\\\"
)
print("\\hline")
print("\\end{tabular}\n\\end{center}")
| school = {'Cavell': ['Claim'], 'Master': ['Austin1975', 'Wittgenstein2009'], 'Most cited': ['Burge2010', 'Davidson2013', 'Dummett1973', 'Fodor1983', 'Frege1948', 'Kripke1980', 'Lewis2002', 'Putnam2004', 'Quine2013', 'Russell1967', 'Williamson2002', 'Wright1992'], 'Anti-teorethical': ['Anscombe', 'Baier1991', 'Diamond1995', 'Foot2002', 'MacIntyre2007', 'McDowell1994', 'Murdoch2013', 'Williams2011', 'Winch1990']}
print('\\begin{center}\n\\begin{tabular}{|r l l|}')
print('\\hline')
print('Author & Title & Category \\\\')
print('\\hline')
for cat in school.keys():
for bib in school[cat]:
print('\\citeauthor{' + bib + '} & \\citetitle{' + bib + '} & ' + cat + ' \\\\')
print('\\hline')
print('\\end{tabular}\n\\end{center}')
year = {'must_we_mean_what_we_say': 1969, 'the_claim_of_reason_1': '1972, 1979', 'the_senses_of_walden_1': '1972, 1980', 'the_world_viewed_1': '1971, 1979', 'pursuits_of_happiness': 1981, 'themes_out_of_school': 1984, 'a_pitch_of_philosophy': 1994, 'cities_of_words': 2004, 'conditions_handsome_and_unhandsome': 1990, 'contesting_tears': 1996, 'in_quest_of_the_ordinary': 1988, 'philosophical_passages': 1995, 'this_new_yet_unapproachable_america': 1988, 'little_did_i_know': 2010, 'philosophy_the_day_after': 2005}
bibs = {'must_we_mean_what_we_say': 'Must', 'the_claim_of_reason_1': 'Claim', 'the_senses_of_walden_1': 'Senses', 'the_world_viewed_1': 'World', 'pursuits_of_happiness': 'Pursuits', 'themes_out_of_school': 'Themes', 'a_pitch_of_philosophy': 'aPitch', 'cities_of_words': 'Cities', 'conditions_handsome_and_unhandsome': 'Conditions', 'contesting_tears': 'Contesting', 'in_quest_of_the_ordinary': 'inQuest', 'philosophical_passages': 'Philosophical', 'this_new_yet_unapproachable_america': 'thisNew', 'little_did_i_know': 'Little', 'philosophy_the_day_after': 'Philosophy'}
print('\\begin{center}\n\\begin{tabular}{|r l l|}')
print('\\hline')
print('Title & 1st and enlarged Editions & Used Edition \\\\')
print('\\hline')
for bib in bibs.keys():
print('\\citetitle{' + bibs[bib] + '} & \\ ' + str(year[bib]) + ' & \\citeyear{' + bibs[bib] + '} \\\\')
print('\\hline')
print('\\end{tabular}\n\\end{center}') |
print("{}, {}, {}".format("a", "b", "c")) #By default position; most common
print("{2}, {1}, {0}".format("a", "b", "c")) #By numbered position
print("Coordinates: {latitude}, {longitude}".format(latitude="37.24N", longitude="-115.81W")) #By name; automatically handles format
print("Coordinates: {latitude}, {longitude}".format(latitude="37.24", longitude="-115.81")) #Automatically handles number types
name = "Camelot"
print(f"Look, it's {name}!") #f-string
# f-string calling function
def to_lowercase(value):
return value.lower()
print(f"That model looks like {to_lowercase(name)}.")
| print('{}, {}, {}'.format('a', 'b', 'c'))
print('{2}, {1}, {0}'.format('a', 'b', 'c'))
print('Coordinates: {latitude}, {longitude}'.format(latitude='37.24N', longitude='-115.81W'))
print('Coordinates: {latitude}, {longitude}'.format(latitude='37.24', longitude='-115.81'))
name = 'Camelot'
print(f"Look, it's {name}!")
def to_lowercase(value):
return value.lower()
print(f'That model looks like {to_lowercase(name)}.') |
##########################################################
# Author: Raghav Sikaria
# LinkedIn: https://www.linkedin.com/in/raghavsikaria/
# Github: https://github.com/raghavsikaria
# Last Update: 12-5-2020
# Project: LeetCode May 31 Day 2020 Challenge - Day 12
##########################################################
# QUESTION
# This question is from the abovementioned challenge and can be found here on LeetCode: https://leetcode.com/explore/featured/card/may-leetcoding-challenge/535/week-2-may-8th-may-14th/3327/
############################################################################
# You are given a sorted array consisting of only integers where every element appears exactly twice, except for one element which appears exactly once. Find this single element that appears only once.
# Example 1:
# Input: [1,1,2,3,3,4,4,8,8]
# Output: 2
# Example 2:
# Input: [3,3,7,7,10,11,11]
# Output: 10
# Note: Your solution should run in O(log n) time and O(1) space.
############################################################################
# ACCEPTED SOLUTION #1
# This solution ensures O(n) Time and O(1) Space Complexity
# XOR Approach
# NOTE: But here we don't make use of the information
# that the Array is sorted
class Solution:
def singleNonDuplicate(self, nums: List[int]) -> int:
answer = 0
for i in nums: answer ^= i
return answer
# ACCEPTED SOLUTION #2
# MODIFIED Binary Search
# PERSONAL COMMENTS: Had never modified a Binary Search for
# this type of use. Blew my mind completely.
# [NEW LEARNING][SOURCE]: https://www.geeksforgeeks.org/find-the-element-that-appears-once-in-a-sorted-array/
class Solution_:
def singleNonDuplicate(self, nums: List[int]) -> int:
answer = -1
low = 0
high = len(nums) - 1
while low <= high:
if low == high:
answer = nums[low]
break
mid = low + (high - low)//2
if mid%2 == 0:
if nums[mid] == nums[mid+1]: low = mid + 2
else: high = mid
else:
if nums[mid] == nums[mid-1]: low = mid + 1
else: high = mid - 1
return answer | class Solution:
def single_non_duplicate(self, nums: List[int]) -> int:
answer = 0
for i in nums:
answer ^= i
return answer
class Solution_:
def single_non_duplicate(self, nums: List[int]) -> int:
answer = -1
low = 0
high = len(nums) - 1
while low <= high:
if low == high:
answer = nums[low]
break
mid = low + (high - low) // 2
if mid % 2 == 0:
if nums[mid] == nums[mid + 1]:
low = mid + 2
else:
high = mid
elif nums[mid] == nums[mid - 1]:
low = mid + 1
else:
high = mid - 1
return answer |
"""
Program: momentum.py
Project 2.11
Given an object's mass and velocity, compute its momentum
and kinetic energy.
"""
# Request the input
mass = float(input("Enter the object's mass: "))
velocity = float(input("Enter the object's velocity: "))
# Compute the results
momentum = mass * velocity
kineticEnergy = (mass * velocity ** 2) / 2
# Display the results
print("The object's momentum is", momentum)
print("The object's kinetic energy is", kineticEnergy)
| """
Program: momentum.py
Project 2.11
Given an object's mass and velocity, compute its momentum
and kinetic energy.
"""
mass = float(input("Enter the object's mass: "))
velocity = float(input("Enter the object's velocity: "))
momentum = mass * velocity
kinetic_energy = mass * velocity ** 2 / 2
print("The object's momentum is", momentum)
print("The object's kinetic energy is", kineticEnergy) |
def gb_syn():
return [
['MT-CO1','cox1','COX1','COI','coi','cytochome oxidase 1','cytochome oxidase I',
'cytochome oxidase subunit 1','cytochome oxidase subunit I',
'cox I','coxI', 'cytochrome c oxidase subunit I','CO1','cytochrome oxidase subunit 1',
'cytochrome oxidase subunit I'],
['MT-CO2','cox2','COX2','COII','coii','cytochome oxidase 2','cytochome oxidase II',
'cytochome oxidase subunit 2','cytochome oxidase subunit II','cox II',
'cytochrome c oxidase subunit II'],
['MT-CO3','cox3','COX3','COIII','coiii','cytochome oxidase 3',
'cytochome oxidase III','cytochome oxidase subunit 3','cytochome oxidase subunit III'
,'cox III','cytochrome c oxidase subunit III'],
['18s','18S','SSU rRNA','18S ribosomal RNA','small subunit 18S ribosomal RNA', '18S rRNA'],
['28s','28S','LSU rRNA','28S ribosomal RNA','28S large subunit ribosomal RNA'],
['MT-ATP6','atp6','ATP6','atpase6','atpase 6','ATPase6','ATPASE6'],
['MT-ATP8','atp8','ATP8','atpase8','atpase 8','ATPase8','ATPASE8'],
['ATP9','atp9'],
['MT-CYB','cytochrome-b','cytb','CYTB','Cytb', 'cytochrome B','cytochrome b','Cb',
'CytB','Cyt_B','Cyt_b','cytB','cyt_b'],
['ef1a','Ef1a', 'elongation factor 1-alpha','elongation factor-1 alpha',
'ef1-alpha','elongation factor 1 alpha'],
['MT-ND1','nd1','ND1','nadh1','NADH1','nadh 1','NADH 1',
'NADH dehydrogenase subunit 1','NADH dehydrogenase subunit I','nad1','nadh1'],
['MT-ND2','nd2','ND2','nadh2','NADH2','nadh 2','NADH 2','NADH dehydrogenase subunit 2',
'NADH dehydrogenase subunit II','nad2','nadh2'],
['MT-ND3','nd3','ND3','nadh3','NADH3','nadh 3','NADH 3','NADH dehydrogenase subunit 3',
'NADH dehydrogenase subunit III','nad3','nadh3'],
['MT-ND4','nd4','ND4','nadh4','NADH4','nadh 4','NADH 4','NADH dehydrogenase subunit 4',
'NADH dehydrogenase subunit IV','nad4','nadh4'],
['MT-ND4L','nd4l','ND4L','nad4l','nadh4l', 'nadh4L', 'NADH dehydrogenase subunit 4l',
'NADH dehydrogenase subunit 4L'],
['MT-ND5','nd5','ND5','nad5', 'nadh5','NADH5','nadh 5','NADH 5','NADH dehydrogenase subunit 5',
'NADH dehydrogenase subunit V'],
['MT-ND6','nd6','ND6','nad6','nadh6','NADH6','nadh 6','NADH 6','NADH dehydrogenase subunit 6',
'NADH dehydrogenase subunit VI'],
['rrnS','12srRNA','12s rRNA','12S ribosomal RNA','12S rRNA','12S r RNA',
'12S small subunit ribosomal RNA','12 S rRNA','rrns','s-rRNA'],
['rrnL','16srRNA','16s rRNA','16S ribosomal RNA','16S rRNA'],
['C_mos', 'C-mos','c-mos','C-MOS'],
['GAPDH','gapdh'],
['RNApol2','RNApolII','RNA polymerase II']
] | def gb_syn():
return [['MT-CO1', 'cox1', 'COX1', 'COI', 'coi', 'cytochome oxidase 1', 'cytochome oxidase I', 'cytochome oxidase subunit 1', 'cytochome oxidase subunit I', 'cox I', 'coxI', 'cytochrome c oxidase subunit I', 'CO1', 'cytochrome oxidase subunit 1', 'cytochrome oxidase subunit I'], ['MT-CO2', 'cox2', 'COX2', 'COII', 'coii', 'cytochome oxidase 2', 'cytochome oxidase II', 'cytochome oxidase subunit 2', 'cytochome oxidase subunit II', 'cox II', 'cytochrome c oxidase subunit II'], ['MT-CO3', 'cox3', 'COX3', 'COIII', 'coiii', 'cytochome oxidase 3', 'cytochome oxidase III', 'cytochome oxidase subunit 3', 'cytochome oxidase subunit III', 'cox III', 'cytochrome c oxidase subunit III'], ['18s', '18S', 'SSU rRNA', '18S ribosomal RNA', 'small subunit 18S ribosomal RNA', '18S rRNA'], ['28s', '28S', 'LSU rRNA', '28S ribosomal RNA', '28S large subunit ribosomal RNA'], ['MT-ATP6', 'atp6', 'ATP6', 'atpase6', 'atpase 6', 'ATPase6', 'ATPASE6'], ['MT-ATP8', 'atp8', 'ATP8', 'atpase8', 'atpase 8', 'ATPase8', 'ATPASE8'], ['ATP9', 'atp9'], ['MT-CYB', 'cytochrome-b', 'cytb', 'CYTB', 'Cytb', 'cytochrome B', 'cytochrome b', 'Cb', 'CytB', 'Cyt_B', 'Cyt_b', 'cytB', 'cyt_b'], ['ef1a', 'Ef1a', 'elongation factor 1-alpha', 'elongation factor-1 alpha', 'ef1-alpha', 'elongation factor 1 alpha'], ['MT-ND1', 'nd1', 'ND1', 'nadh1', 'NADH1', 'nadh 1', 'NADH 1', 'NADH dehydrogenase subunit 1', 'NADH dehydrogenase subunit I', 'nad1', 'nadh1'], ['MT-ND2', 'nd2', 'ND2', 'nadh2', 'NADH2', 'nadh 2', 'NADH 2', 'NADH dehydrogenase subunit 2', 'NADH dehydrogenase subunit II', 'nad2', 'nadh2'], ['MT-ND3', 'nd3', 'ND3', 'nadh3', 'NADH3', 'nadh 3', 'NADH 3', 'NADH dehydrogenase subunit 3', 'NADH dehydrogenase subunit III', 'nad3', 'nadh3'], ['MT-ND4', 'nd4', 'ND4', 'nadh4', 'NADH4', 'nadh 4', 'NADH 4', 'NADH dehydrogenase subunit 4', 'NADH dehydrogenase subunit IV', 'nad4', 'nadh4'], ['MT-ND4L', 'nd4l', 'ND4L', 'nad4l', 'nadh4l', 'nadh4L', 'NADH dehydrogenase subunit 4l', 'NADH dehydrogenase subunit 4L'], ['MT-ND5', 'nd5', 'ND5', 'nad5', 'nadh5', 'NADH5', 'nadh 5', 'NADH 5', 'NADH dehydrogenase subunit 5', 'NADH dehydrogenase subunit V'], ['MT-ND6', 'nd6', 'ND6', 'nad6', 'nadh6', 'NADH6', 'nadh 6', 'NADH 6', 'NADH dehydrogenase subunit 6', 'NADH dehydrogenase subunit VI'], ['rrnS', '12srRNA', '12s rRNA', '12S ribosomal RNA', '12S rRNA', '12S r RNA', '12S small subunit ribosomal RNA', '12 S rRNA', 'rrns', 's-rRNA'], ['rrnL', '16srRNA', '16s rRNA', '16S ribosomal RNA', '16S rRNA'], ['C_mos', 'C-mos', 'c-mos', 'C-MOS'], ['GAPDH', 'gapdh'], ['RNApol2', 'RNApolII', 'RNA polymerase II']] |
BACKUP = {
# MAIN USER ID: BACKUP USER ID
# MAIN CHAT ID: BACKUP CHAT ID
-1001111111111: -1002222222222,
}
DEBUG = False # log outgoing events
| backup = {-1001111111111: -1002222222222}
debug = False |
"""data_index contains all of the quantities calculated by the compute functions.
label = (str) Title of the quantity in LaTeX format.
units = (str) Units of the quantity in LaTeX format.
units_long (str) Full units without abbreviations.
description (str) Description of the quantity.
fun = (str) Function name in compute_funs.py that computes the quantity.
dim = (int) Dimension of the quantity: 0-D, 1-D, or 3-D.
"""
data_index = {}
# flux coordinates
data_index["rho"] = {
"label": "\\rho",
"units": "~",
"units_long": "None",
"description": "Radial coordinate, proportional to the square root of the toroidal flux",
"fun": "compute_flux_coords",
"dim": 1,
}
data_index["theta"] = {
"label": "\\theta",
"units": "rad",
"units_long": "radians",
"description": "Poloidal angular coordinate (geometric, not magnetic)",
"fun": "compute_flux_coords",
"dim": 1,
}
data_index["zeta"] = {
"label": "\\zeta",
"units": "rad",
"units_long": "radians",
"description": "Toroidal angular coordinate, equal to the geometric toroidal angle",
"fun": "compute_flux_coords",
"dim": 1,
}
# toroidal flux
data_index["psi"] = {
"label": "\\psi = \\Psi / (2 \\pi)",
"units": "Wb",
"units_long": "Webers",
"description": "Toroidal flux",
"fun": "compute_toroidal_flux",
"dim": 1,
}
data_index["psi_r"] = {
"label": "\\psi' = \\partial_{\\rho} \\Psi / (2 \\pi)",
"units": "Wb",
"units_long": "Webers",
"description": "Toroidal flux, first radial derivative",
"fun": "compute_toroidal_flux",
"dim": 1,
}
data_index["psi_rr"] = {
"label": "\\psi'' = \\partial_{\\rho\\rho} \\Psi / (2 \\pi)",
"units": "Wb",
"units_long": "Webers",
"description": "Toroidal flux, second radial derivative",
"fun": "compute_toroidal_flux",
"dim": 1,
}
# R
data_index["R"] = {
"label": "R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 0, 0]],
}
data_index["R_r"] = {
"label": "\\partial_{\\rho} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, first radial derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[1, 0, 0]],
}
data_index["R_t"] = {
"label": "\\partial_{\\theta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, first poloidal derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 1, 0]],
}
data_index["R_z"] = {
"label": "\\partial_{\\zeta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, first toroidal derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 0, 1]],
}
data_index["R_rr"] = {
"label": "\\partial_{\\rho\\rho} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, second radial derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[2, 0, 0]],
}
data_index["R_tt"] = {
"label": "\\partial_{\\theta\\theta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, second poloidal derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 2, 0]],
}
data_index["R_zz"] = {
"label": "\\partial_{\\zeta\\zeta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, second toroidal derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 0, 2]],
}
data_index["R_rt"] = {
"label": "\\partial_{\\rho\\theta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, second derivative wrt to radius and poloidal angle",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[1, 1, 0]],
}
data_index["R_rz"] = {
"label": "\\partial_{\\rho\\zeta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, second derivative wrt to radius and toroidal angle",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[1, 0, 1]],
}
data_index["R_tz"] = {
"label": "\\partial_{\\theta\\zeta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, second derivative wrt to poloidal and toroidal angles",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 1, 1]],
}
data_index["R_rrr"] = {
"label": "\\partial_{\\rho\\rho\\rho} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, third radial derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[3, 0, 0]],
}
data_index["R_ttt"] = {
"label": "\\partial_{\\theta\\theta\\theta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, third poloidal derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 3, 0]],
}
data_index["R_zzz"] = {
"label": "\\partial_{\\zeta\\zeta\\zeta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, third toroidal derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 0, 3]],
}
data_index["R_rrt"] = {
"label": "\\partial_{\\rho\\rho\\theta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, third derivative, wrt to radius twice and poloidal angle",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[2, 1, 0]],
}
data_index["R_rtt"] = {
"label": "\\partial_{\\rho\\theta\\theta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, third derivative wrt to radius and poloidal angle twice",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[1, 2, 0]],
}
data_index["R_rrz"] = {
"label": "\\partial_{\\rho\\rho\\zeta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, third derivative wrt to radius twice and toroidal angle",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[2, 0, 1]],
}
data_index["R_rzz"] = {
"label": "\\partial_{\\rho\\zeta\\zeta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, third derivative wrt to radius and toroidal angle twice",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[1, 0, 2]],
}
data_index["R_ttz"] = {
"label": "\\partial_{\\theta\\theta\\zeta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, third derivative wrt to poloidal angle twice and toroidal angle",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 2, 1]],
}
data_index["R_tzz"] = {
"label": "\\partial_{\\theta\\zeta\\zeta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, third derivative wrt to poloidal angle and toroidal angle twice",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 1, 2]],
}
data_index["R_rtz"] = {
"label": "\\partial_{\\rho\\theta\\zeta} R",
"units": "m",
"units_long": "meters",
"description": "Major radius in lab frame, third derivative wrt to radius, poloidal angle, and toroidal angle",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[1, 1, 1]],
}
# Z
data_index["Z"] = {
"label": "Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 0, 0]],
}
data_index["Z_r"] = {
"label": "\\partial_{\\rho} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, first radial derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[1, 0, 0]],
}
data_index["Z_t"] = {
"label": "\\partial_{\\theta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, first poloidal derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 1, 0]],
}
data_index["Z_z"] = {
"label": "\\partial_{\\zeta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, first toroidal derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 0, 1]],
}
data_index["Z_rr"] = {
"label": "\\partial_{\\rho\\rho} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, second radial derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[2, 0, 0]],
}
data_index["Z_tt"] = {
"label": "\\partial_{\\theta\\theta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, second poloidal derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 2, 0]],
}
data_index["Z_zz"] = {
"label": "\\partial_{\\zeta\\zeta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, second toroidal derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 0, 2]],
}
data_index["Z_rt"] = {
"label": "\\partial_{\\rho\\theta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, second derivative wrt to radius and poloidal angle",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[1, 1, 0]],
}
data_index["Z_rz"] = {
"label": "\\partial_{\\rho\\zeta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, second derivative wrt to radius and toroidal angle",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[1, 0, 1]],
}
data_index["Z_tz"] = {
"label": "\\partial_{\\theta\\zeta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, second derivative wrt to poloidal and toroidal angles",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 1, 1]],
}
data_index["Z_rrr"] = {
"label": "\\partial_{\\rho\\rho\\rho} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, third radial derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[3, 0, 0]],
}
data_index["Z_ttt"] = {
"label": "\\partial_{\\theta\\theta\\theta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, third poloidal derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 3, 0]],
}
data_index["Z_zzz"] = {
"label": "\\partial_{\\zeta\\zeta\\zeta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, third toroidal derivative",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 0, 3]],
}
data_index["Z_rrt"] = {
"label": "\\partial_{\\rho\\rho\\theta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, third derivative, wrt to radius twice and poloidal angle",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[2, 1, 0]],
}
data_index["Z_rtt"] = {
"label": "\\partial_{\\rho\\theta\\theta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, third derivative wrt to radius and poloidal angle twice",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[1, 2, 0]],
}
data_index["Z_rrz"] = {
"label": "\\partial_{\\rho\\rho\\zeta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, third derivative wrt to radius twice and toroidal angle",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[2, 0, 1]],
}
data_index["Z_rzz"] = {
"label": "\\partial_{\\rho\\zeta\\zeta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, third derivative wrt to radius and toroidal angle twice",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[1, 0, 2]],
}
data_index["Z_ttz"] = {
"label": "\\partial_{\\theta\\theta\\zeta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, third derivative wrt to poloidal angle twice and toroidal angle",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 2, 1]],
}
data_index["Z_tzz"] = {
"label": "\\partial_{\\theta\\zeta\\zeta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, third derivative wrt to poloidal angle and toroidal angle twice",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[0, 1, 2]],
}
data_index["Z_rtz"] = {
"label": "\\partial_{\\rho\\theta\\zeta} Z",
"units": "m",
"units_long": "meters",
"description": "Vertical coordinate in lab frame, third derivative wrt to radius, poloidal angle, and toroidal angle",
"fun": "compute_toroidal_coords",
"dim": 1,
"R_derivs": [[1, 1, 1]],
}
# cartesian coordinates
data_index["phi"] = {
"label": "\\phi = \\zeta",
"units": "rad",
"units_long": "radians",
"description": "Toroidal angle in lab frame",
"fun": "compute_cartesian_coords",
"dim": 1,
"R_derivs": [[0, 0, 0]],
}
data_index["X"] = {
"label": "X = R \\cos{\\phi}",
"units": "m",
"units_long": "meters",
"description": "Cartesian X coordinate",
"fun": "compute_cartesian_coords",
"dim": 1,
"R_derivs": [[0, 0, 0]],
}
data_index["Y"] = {
"label": "Y = R \\sin{\\phi}",
"units": "m",
"units_long": "meters",
"description": "Cartesian Y coordinate",
"fun": "compute_cartesian_coords",
"dim": 1,
"R_derivs": [[0, 0, 0]],
}
# lambda
data_index["lambda"] = {
"label": "\\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[0, 0, 0]],
}
data_index["lambda_r"] = {
"label": "\\partial_{\\rho} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, first radial derivative",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[1, 0, 0]],
}
data_index["lambda_t"] = {
"label": "\\partial_{\\theta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, first poloidal derivative",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[0, 1, 0]],
}
data_index["lambda_z"] = {
"label": "\\partial_{\\zeta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, first toroidal derivative",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[0, 0, 1]],
}
data_index["lambda_rr"] = {
"label": "\\partial_{\\rho\\rho} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, second radial derivative",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[2, 0, 0]],
}
data_index["lambda_tt"] = {
"label": "\\partial_{\\theta\\theta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, second poloidal derivative",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[0, 2, 0]],
}
data_index["lambda_zz"] = {
"label": "\\partial_{\\zeta\\zeta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, second toroidal derivative",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[0, 0, 2]],
}
data_index["lambda_rt"] = {
"label": "\\partial_{\\rho\\theta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, second derivative wrt to radius and poloidal angle",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[1, 1, 0]],
}
data_index["lambda_rz"] = {
"label": "\\partial_{\\rho\\zeta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, second derivative wrt to radius and toroidal angle",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[1, 0, 1]],
}
data_index["lambda_tz"] = {
"label": "\\partial_{\\theta\\zeta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, second derivative wrt to poloidal and toroidal angles",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[0, 1, 1]],
}
data_index["lambda_rrr"] = {
"label": "\\partial_{\\rho\\rho\\rho} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, third radial derivative",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[3, 0, 0]],
}
data_index["lambda_ttt"] = {
"label": "\\partial_{\\theta\\theta\\theta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, third poloidal derivative",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[0, 3, 0]],
}
data_index["lambda_zzz"] = {
"label": "\\partial_{\\zeta\\zeta\\zeta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, third toroidal derivative",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[0, 0, 3]],
}
data_index["lambda_rrt"] = {
"label": "\\partial_{\\rho\\rho\\theta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, third derivative, wrt to radius twice and poloidal angle",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[2, 1, 0]],
}
data_index["lambda_rtt"] = {
"label": "\\partial_{\\rho\\theta\\theta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, third derivative wrt to radius and poloidal angle twice",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[1, 2, 0]],
}
data_index["lambda_rrz"] = {
"label": "\\partial_{\\rho\\rho\\zeta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, third derivative wrt to radius twice and toroidal angle",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[2, 0, 1]],
}
data_index["lambda_rzz"] = {
"label": "\\partial_{\\rho\\zeta\\zeta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, third derivative wrt to radius and toroidal angle twice",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[1, 0, 2]],
}
data_index["lambda_ttz"] = {
"label": "\\partial_{\\theta\\theta\\zeta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, third derivative wrt to poloidal angle twice and toroidal angle",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[0, 2, 1]],
}
data_index["lambda_tzz"] = {
"label": "\\partial_{\\theta\\zeta\\zeta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, third derivative wrt to poloidal angle and toroidal angle twice",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[0, 1, 2]],
}
data_index["lambda_rtz"] = {
"label": "\\partial_{\\rho\\theta\\zeta} \\lambda",
"units": "rad",
"units_long": "radians",
"description": "Poloidal stream function, third derivative wrt to radius, poloidal angle, and toroidal angle",
"fun": "compute_lambda",
"dim": 1,
"L_derivs": [[1, 1, 1]],
}
# pressure
data_index["p"] = {
"label": "p",
"units": "Pa",
"units_long": "Pascal",
"description": "Pressure",
"fun": "compute_pressure",
"dim": 1,
}
data_index["p_r"] = {
"label": "\\partial_{\\rho} p",
"units": "Pa",
"units_long": "Pascal",
"description": "Pressure, first radial derivative",
"fun": "compute_pressure",
"dim": 1,
}
# rotational transform
data_index["iota"] = {
"label": "\\iota",
"units": "~",
"units_long": "None",
"description": "Rotational transform",
"fun": "compute_rotational_transform",
"dim": 1,
}
data_index["iota_r"] = {
"label": "\\partial_{\\rho} \\iota",
"units": "~",
"units_long": "None",
"description": "Rotational transform, first radial derivative",
"fun": "compute_rotational_transform",
"dim": 1,
}
data_index["iota_rr"] = {
"label": "\\partial_{\\rho\\rho} \\iota",
"units": "~",
"units_long": "None",
"description": "Rotational transform, second radial derivative",
"fun": "compute_rotational_transform",
"dim": 1,
}
# covariant basis
data_index["e_rho"] = {
"label": "\\mathbf{e}_{\\rho}",
"units": "m",
"units_long": "meters",
"description": "Covariant radial basis vector",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[1, 0, 0]],
}
data_index["e_theta"] = {
"label": "\\mathbf{e}_{\\theta}",
"units": "m",
"units_long": "meters",
"description": "Covariant poloidal basis vector",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[0, 1, 0]],
}
data_index["e_zeta"] = {
"label": "\\mathbf{e}_{\\zeta}",
"units": "m",
"units_long": "meters",
"description": "Covariant toroidal basis vector",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[0, 0, 0], [0, 0, 1]],
}
data_index["e_rho_r"] = {
"label": "\\partial_{\\rho} \\mathbf{e}_{\\rho}",
"units": "m",
"units_long": "meters",
"description": "Covariant radial basis vector, derivative wrt radial coordinate",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[2, 0, 0]],
}
data_index["e_rho_t"] = {
"label": "\\partial_{\\theta} \\mathbf{e}_{\\rho}",
"units": "m",
"units_long": "meters",
"description": "Covariant radial basis vector, derivative wrt poloidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[1, 1, 0]],
}
data_index["e_rho_z"] = {
"label": "\\partial_{\\zeta} \\mathbf{e}_{\\rho}",
"units": "m",
"units_long": "meters",
"description": "Covariant radial basis vector, derivative wrt toroidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[1, 0, 1]],
}
data_index["e_theta_r"] = {
"label": "\\partial_{\\rho} \\mathbf{e}_{\\theta}",
"units": "m",
"units_long": "meters",
"description": "Covariant poloidal basis vector, derivative wrt radial coordinate",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[1, 1, 0]],
}
data_index["e_theta_t"] = {
"label": "\\partial_{\\theta} \\mathbf{e}_{\\theta}",
"units": "m",
"units_long": "meters",
"description": "Covariant poloidal basis vector, derivative wrt poloidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[0, 2, 0]],
}
data_index["e_theta_z"] = {
"label": "\\partial_{\\zeta} \\mathbf{e}_{\\theta}",
"units": "m",
"units_long": "meters",
"description": "Covariant poloidal basis vector, derivative wrt toroidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[0, 1, 1]],
}
data_index["e_zeta_r"] = {
"label": "\\partial_{\\rho} \\mathbf{e}_{\\zeta}",
"units": "m",
"units_long": "meters",
"description": "Covariant toroidal basis vector, derivative wrt radial coordinate",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[1, 0, 0], [1, 0, 1]],
}
data_index["e_zeta_t"] = {
"label": "\\partial_{\\theta} \\mathbf{e}_{\\zeta}",
"units": "m",
"units_long": "meters",
"description": "Covariant toroidal basis vector, derivative wrt poloidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[0, 1, 0], [0, 1, 1]],
}
data_index["e_zeta_z"] = {
"label": "\\partial_{\\zeta} \\mathbf{e}_{\\zeta}",
"units": "m",
"units_long": "meters",
"description": "Covariant toroidal basis vector, derivative wrt toroidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[0, 0, 1], [0, 0, 2]],
}
data_index["e_rho_rr"] = {
"label": "\\partial_{\\rho\\rho} \\mathbf{e}_{\\rho}",
"units": "m",
"units_long": "meters",
"description": "Covariant radial basis vector, second derivative wrt radial coordinate",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[3, 0, 0]],
}
data_index["e_rho_tt"] = {
"label": "\\partial_{\\theta\\theta} \\mathbf{e}_{\\rho}",
"units": "m",
"units_long": "meters",
"description": "Covariant radial basis vector, second derivative wrt poloidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[1, 2, 0]],
}
data_index["e_rho_zz"] = {
"label": "\\partial_{\\zeta\\zeta} \\mathbf{e}_{\\rho}",
"units": "m",
"units_long": "meters",
"description": "Covariant radial basis vector, second derivative wrt toroidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[1, 0, 2]],
}
data_index["e_rho_rt"] = {
"label": "\\partial_{\\rho\\theta} \\mathbf{e}_{\\rho}",
"units": "m",
"units_long": "meters",
"description": "Covariant radial basis vector, second derivative wrt radial coordinate and poloidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[2, 1, 0]],
}
data_index["e_rho_rz"] = {
"label": "\\partial_{\\rho\\zeta} \\mathbf{e}_{\\rho}",
"units": "m",
"units_long": "meters",
"description": "Covariant radial basis vector, second derivative wrt radial coordinate and toroidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[2, 1, 0]],
}
data_index["e_rho_tz"] = {
"label": "\\partial_{\\theta\\zeta} \\mathbf{e}_{\\rho}",
"units": "m",
"units_long": "meters",
"description": "Covariant radial basis vector, second derivative wrt poloidal and toroidal angles",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[1, 1, 1]],
}
data_index["e_theta_rr"] = {
"label": "\\partial_{\\rho\\rho} \\mathbf{e}_{\\theta}",
"units": "m",
"units_long": "meters",
"description": "Covariant poloidal basis vector, second derivative wrt radial coordinate",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[2, 1, 0]],
}
data_index["e_theta_tt"] = {
"label": "\\partial_{\\theta\\theta} \\mathbf{e}_{\\theta}",
"units": "m",
"units_long": "meters",
"description": "Covariant poloidal basis vector, second derivative wrt poloidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[0, 3, 0]],
}
data_index["e_theta_zz"] = {
"label": "\\partial_{\\zeta\\zeta} \\mathbf{e}_{\\theta}",
"units": "m",
"units_long": "meters",
"description": "Covariant poloidal basis vector, second derivative wrt toroidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[0, 1, 2]],
}
data_index["e_theta_rt"] = {
"label": "\\partial_{\\rho\\theta} \\mathbf{e}_{\\theta}",
"units": "m",
"units_long": "meters",
"description": "Covariant poloidal basis vector, second derivative wrt radial coordinate and poloidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[1, 2, 0]],
}
data_index["e_theta_rz"] = {
"label": "\\partial_{\\rho\\zeta} \\mathbf{e}_{\\theta}",
"units": "m",
"units_long": "meters",
"description": "Covariant poloidal basis vector, second derivative wrt radial coordinate and toroidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[1, 1, 1]],
}
data_index["e_theta_tz"] = {
"label": "\\partial_{\\theta\\zeta} \\mathbf{e}_{\\theta}",
"units": "m",
"units_long": "meters",
"description": "Covariant poloidal basis vector, second derivative wrt poloidal and toroidal angles",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[0, 2, 1]],
}
data_index["e_zeta_rr"] = {
"label": "\\partial_{\\rho\\rho} \\mathbf{e}_{\\zeta}",
"units": "m",
"units_long": "meters",
"description": "Covariant toroidal basis vector, second derivative wrt radial coordinate",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[2, 0, 0], [2, 0, 1]],
}
data_index["e_zeta_tt"] = {
"label": "\\partial_{\\theta\\theta} \\mathbf{e}_{\\zeta}",
"units": "m",
"units_long": "meters",
"description": "Covariant toroidal basis vector, second derivative wrt poloidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[0, 2, 0], [0, 2, 1]],
}
data_index["e_zeta_zz"] = {
"label": "\\partial_{\\zeta\\zeta} \\mathbf{e}_{\\zeta}",
"units": "m",
"units_long": "meters",
"description": "Covariant toroidal basis vector, second derivative wrt toroidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[0, 0, 2], [0, 0, 3]],
}
data_index["e_zeta_rt"] = {
"label": "\\partial_{\\rho\\theta} \\mathbf{e}_{\\zeta}",
"units": "m",
"units_long": "meters",
"description": "Covariant toroidal basis vector, second derivative wrt radial coordinate and poloidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[1, 1, 0], [1, 1, 1]],
}
data_index["e_zeta_rz"] = {
"label": "\\partial_{\\rho\\zeta} \\mathbf{e}_{\\zeta}",
"units": "m",
"units_long": "meters",
"description": "Covariant toroidal basis vector, second derivative wrt radial coordinate and toroidal angle",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[1, 0, 1], [1, 0, 2]],
}
data_index["e_zeta_tz"] = {
"label": "\\partial_{\\theta\\zeta} \\mathbf{e}_{\\zeta}",
"units": "m",
"units_long": "meters",
"description": "Covariant toroidal basis vector, second derivative wrt poloidal and toroidal angles",
"fun": "compute_covariant_basis",
"dim": 3,
"R_derivs": [[0, 1, 1], [0, 1, 2]],
}
# contravariant basis
data_index["e^rho"] = {
"label": "\\mathbf{e}^{\\rho}",
"units": "m^{-1}",
"units_long": "inverse meters",
"description": "Contravariant radial basis vector",
"fun": "compute_contravariant_basis",
"dim": 3,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["e^theta"] = {
"label": "\\mathbf{e}^{\\theta}",
"units": "m^{-1}",
"units_long": "inverse meters",
"description": "Contravariant poloidal basis vector",
"fun": "compute_contravariant_basis",
"dim": 3,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["e^zeta"] = {
"label": "\\mathbf{e}^{\\zeta}",
"units": "m^{-1}",
"units_long": "inverse meters",
"description": "Contravariant toroidal basis vector",
"fun": "compute_contravariant_basis",
"dim": 3,
"R_derivs": [[0, 0, 0]],
}
# Jacobian
data_index["sqrt(g)"] = {
"label": "\\sqrt{g}",
"units": "m^{3}",
"units_long": "cubic meters",
"description": "Jacobian determinant",
"fun": "compute_jacobian",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["sqrt(g)_r"] = {
"label": "\\partial_{\\rho} \\sqrt{g}",
"units": "m^{3}",
"units_long": "cubic meters",
"description": "Jacobian determinant, derivative wrt radial coordinate",
"fun": "compute_jacobian",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[1, 1, 0],
[1, 0, 1],
],
}
data_index["sqrt(g)_t"] = {
"label": "\\partial_{\\theta} \\sqrt{g}",
"units": "m^{3}",
"units_long": "cubic meters",
"description": "Jacobian determinant, derivative wrt poloidal angle",
"fun": "compute_jacobian",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
],
}
data_index["sqrt(g)_z"] = {
"label": "\\partial_{\\zeta} \\sqrt{g}",
"units": "m^{3}",
"units_long": "cubic meters",
"description": "Jacobian determinant, derivative wrt toroidal angle",
"fun": "compute_jacobian",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["sqrt(g)_rr"] = {
"label": "\\partial_{\\rho\\rho} \\sqrt{g}",
"units": "m^{3}",
"units_long": "cubic meters",
"description": "Jacobian determinant, second derivative wrt radial coordinate",
"fun": "compute_jacobian",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[1, 1, 0],
[1, 0, 1],
[3, 0, 0],
[2, 1, 0],
[2, 0, 1],
],
}
data_index["sqrt(g)_tt"] = {
"label": "\\partial_{\\theta\\theta} \\sqrt{g}",
"units": "m^{3}",
"units_long": "cubic meters",
"description": "Jacobian determinant, second derivative wrt poloidal angle",
"fun": "compute_jacobian",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
[0, 3, 0],
[1, 2, 0],
[0, 2, 1],
],
}
data_index["sqrt(g)_zz"] = {
"label": "\\partial_{\\zeta\\zeta} \\sqrt{g}",
"units": "m^{3}",
"units_long": "cubic meters",
"description": "Jacobian determinant, second derivative wrt toroidal angle",
"fun": "compute_jacobian",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
[0, 0, 3],
[1, 0, 2],
[0, 1, 2],
],
}
data_index["sqrt(g)_tz"] = {
"label": "\\partial_{\\theta\\zeta} \\sqrt{g}",
"units": "m^{3}",
"units_long": "cubic meters",
"description": "Jacobian determinant, second derivative wrt poloidal and toroidal angles",
"fun": "compute_jacobian",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
[0, 2, 1],
[0, 1, 2],
[1, 1, 1],
],
}
# covariant metric coefficients
data_index["g_rr"] = {
"label": "g_{\\rho\\rho}",
"units": "m^{2}",
"units_long": "square meters",
"description": "Radial/Radial element of covariant metric tensor",
"fun": "compute_covariant_metric_coefficients",
"dim": 1,
"R_derivs": [[1, 0, 0]],
}
data_index["g_tt"] = {
"label": "g_{\\theta\\theta}",
"units": "m^{2}",
"units_long": "square meters",
"description": "Poloidal/Poloidal element of covariant metric tensor",
"fun": "compute_covariant_metric_coefficients",
"dim": 1,
"R_derivs": [[0, 1, 0]],
}
data_index["g_zz"] = {
"label": "g_{\\zeta\\zeta}",
"units": "m^{2}",
"units_long": "square meters",
"description": "Toroidal/Toroidal element of covariant metric tensor",
"fun": "compute_covariant_metric_coefficients",
"dim": 1,
"R_derivs": [[0, 0, 0], [0, 0, 1]],
}
data_index["g_rt"] = {
"label": "g_{\\rho\\theta}",
"units": "m^{2}",
"units_long": "square meters",
"description": "Radial/Poloidal element of covariant metric tensor",
"fun": "compute_covariant_metric_coefficients",
"dim": 1,
"R_derivs": [[1, 0, 0], [0, 1, 0]],
}
data_index["g_rz"] = {
"label": "g_{\\rho\\zeta}",
"units": "m^{2}",
"units_long": "square meters",
"description": "Radial/Toroidal element of covariant metric tensor",
"fun": "compute_covariant_metric_coefficients",
"dim": 1,
"R_derivs": [[1, 0, 0], [0, 0, 1]],
}
data_index["g_tz"] = {
"label": "g_{\\theta\\zeta}",
"units": "m^{2}",
"units_long": "square meters",
"description": "Poloidal/Toroidal element of covariant metric tensor",
"fun": "compute_covariant_metric_coefficients",
"dim": 1,
"R_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
# contravariant metric coefficients
data_index["g^rr"] = {
"label": "g^{\\rho\\rho}",
"units": "m^{-2}",
"units_long": "inverse square meters",
"description": "Radial/Radial element of contravariant metric tensor",
"fun": "compute_contravariant_metric_coefficients",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["g^tt"] = {
"label": "g^{\\theta\\theta}",
"units": "m^{-2}",
"units_long": "inverse square meters",
"description": "Poloidal/Poloidal element of contravariant metric tensor",
"fun": "compute_contravariant_metric_coefficients",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["g^zz"] = {
"label": "g^{\\zeta\\zeta}",
"units": "m^{-2}",
"units_long": "inverse square meters",
"description": "Toroidal/Toroidal element of contravariant metric tensor",
"fun": "compute_contravariant_metric_coefficients",
"dim": 1,
"R_derivs": [[0, 0, 0]],
}
data_index["g^rt"] = {
"label": "g^{\\rho\\theta}",
"units": "m^{-2}",
"units_long": "inverse square meters",
"description": "Radial/Poloidal element of contravariant metric tensor",
"fun": "compute_contravariant_metric_coefficients",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["g^rz"] = {
"label": "g^{\\rho\\zeta}",
"units": "m^{-2}",
"units_long": "inverse square meters",
"description": "Radial/Toroidal element of contravariant metric tensor",
"fun": "compute_contravariant_metric_coefficients",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["g^tz"] = {
"label": "g^{\\theta\\zeta}",
"units": "m^{-2}",
"units_long": "inverse square meters",
"description": "Poloidal/Toroidal element of contravariant metric tensor",
"fun": "compute_contravariant_metric_coefficients",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["|grad(rho)|"] = {
"label": "|\\nabla \\rho|",
"units": "m^{-1}",
"units_long": "inverse meters",
"description": "Magnitude of contravariant radial basis vector",
"fun": "compute_contravariant_metric_coefficients",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["|grad(theta)|"] = {
"label": "|\\nabla \\theta|",
"units": "m^{-1}",
"units_long": "inverse meters",
"description": "Magnitude of contravariant poloidal basis vector",
"fun": "compute_contravariant_metric_coefficients",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["|grad(zeta)|"] = {
"label": "|\\nabla \\zeta|",
"units": "m^{-1}",
"units_long": "inverse meters",
"description": "Magnitude of contravariant toroidal basis vector",
"fun": "compute_contravariant_metric_coefficients",
"dim": 1,
"R_derivs": [[0, 0, 0]],
}
# contravariant magnetic field
data_index["B0"] = {
"label": "\\psi' / \\sqrt{g}",
"units": "T m^{-1}",
"units_long": "Tesla / meters",
"description": "",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0]],
}
data_index["B^rho"] = {
"label": "B^{\\rho}",
"units": "T m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant radial component of magnetic field",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [[0, 0, 0]],
"L_derivs": [[0, 0, 0]],
}
data_index["B^theta"] = {
"label": "B^{\\theta}",
"units": "T m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant poloidal component of magnetic field",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 0, 1]],
}
data_index["B^zeta"] = {
"label": "B^{\\zeta}",
"units": "T m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant toroidal component of magnetic field",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0]],
}
data_index["B"] = {
"label": "\\mathbf{B}",
"units": "T",
"units_long": "Tesla",
"description": "Magnetic field",
"fun": "compute_contravariant_magnetic_field",
"dim": 3,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["B_R"] = {
"label": "B_{R}",
"units": "T",
"units_long": "Tesla",
"description": "Radial component of magnetic field in lab frame",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["B_phi"] = {
"label": "B_{\\phi}",
"units": "T",
"units_long": "Tesla",
"description": "Toroidal component of magnetic field in lab frame",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["B_Z"] = {
"label": "B_{Z}",
"units": "T",
"units_long": "Tesla",
"description": "Vertical component of magnetic field in lab frame",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["B0_r"] = {
"label": "\\psi'' / \\sqrt{g} - \\psi' \\partial_{\\rho} \\sqrt{g} / g",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[1, 1, 0],
[1, 0, 1],
],
"L_derivs": [[0, 0, 0]],
}
data_index["B^theta_r"] = {
"label": "\\partial_{\\rho} B^{\\theta}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant poloidal component of magnetic field, derivative wrt radial coordinate",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[1, 1, 0],
[1, 0, 1],
],
"L_derivs": [[0, 0, 0], [0, 0, 1], [1, 0, 1]],
}
data_index["B^zeta_r"] = {
"label": "\\partial_{\\rho} B^{\\zeta}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant toroidal component of magnetic field, derivative wrt radial coordinate",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[1, 1, 0],
[1, 0, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [1, 1, 0]],
}
data_index["B_r"] = {
"label": "\\partial_{\\rho} \\mathbf{B}",
"units": "T",
"units_long": "Tesla",
"description": "Magnetic field, derivative wrt radial coordinate",
"fun": "compute_contravariant_magnetic_field",
"dim": 3,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[1, 1, 0],
[1, 0, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [1, 0, 1], [1, 1, 0]],
}
data_index["B0_t"] = {
"label": "-\\psi' \\partial_{\\theta} \\sqrt{g} / g",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0]],
}
data_index["B^theta_t"] = {
"label": "\\partial_{\\theta} B^{\\theta}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant poloidal component of magnetic field, derivative wrt poloidal angle",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 0, 1], [0, 1, 1]],
}
data_index["B^zeta_t"] = {
"label": "\\partial_{\\theta} B^{\\zeta}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant toroidal component of magnetic field, derivative wrt poloidal angle",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 2, 0]],
}
data_index["B_t"] = {
"label": "\\partial_{\\theta} \\mathbf{B}",
"units": "T",
"units_long": "Tesla",
"description": "Magnetic field, derivative wrt poloidal angle",
"fun": "compute_contravariant_magnetic_field",
"dim": 3,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 1, 1]],
}
data_index["B0_z"] = {
"label": "-\\psi' \\partial_{\\zeta} \\sqrt{g} / g",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0]],
}
data_index["B^theta_z"] = {
"label": "\\partial_{\\zeta} B^{\\theta}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant poloidal component of magnetic field, derivative wrt toroidal angle",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 0, 1], [0, 0, 2]],
}
data_index["B^zeta_z"] = {
"label": "\\partial_{\\zeta} B^{\\zeta}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant toroidal component of magnetic field, derivative wrt toroidal angle",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 1, 1]],
}
data_index["B_z"] = {
"label": "\\partial_{\\zeta} \\mathbf{B}",
"units": "T",
"units_long": "Tesla",
"description": "Magnetic field, derivative wrt toroidal angle",
"fun": "compute_contravariant_magnetic_field",
"dim": 3,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1]],
}
data_index["B0_tt"] = {
"label": "-\\psi' \\partial_{\\theta\\theta} \\sqrt{g} / g + "
+ "2 \\psi' (\\partial_{\\theta} \\sqrt{g})^2 / (\\sqrt{g})^{3}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
[0, 3, 0],
[1, 2, 0],
[0, 2, 1],
],
"L_derivs": [[0, 0, 0]],
}
data_index["B^theta_tt"] = {
"label": "\\partial_{\\theta\\theta} B^{\\theta}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant poloidal component of magnetic field, second derivative wrt poloidal angle",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
[0, 3, 0],
[1, 2, 0],
[0, 2, 1],
],
"L_derivs": [[0, 0, 0], [0, 0, 1], [0, 1, 1], [0, 2, 1]],
}
data_index["B^zeta_tt"] = {
"label": "\\partial_{\\theta\\theta} B^{\\zeta}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant toroidal component of magnetic field, second derivative wrt poloidal angle",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
[0, 3, 0],
[1, 2, 0],
[0, 2, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 2, 0], [0, 3, 0]],
}
data_index["B0_zz"] = {
"label": "-\\psi' \\partial_{\\zeta\\zeta} \\sqrt{g} / g + "
+ "2 \\psi' (\\partial_{\\zeta} \\sqrt{g})^2 / (\\sqrt{g})^{3}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
[0, 0, 3],
[1, 0, 2],
[0, 1, 2],
],
"L_derivs": [[0, 0, 0]],
}
data_index["B^theta_zz"] = {
"label": "\\partial_{\\zeta\\zeta} B^{\\theta}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant poloidal component of magnetic field, second derivative wrt toroidal angle",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
[0, 0, 3],
[1, 0, 2],
[0, 1, 2],
],
"L_derivs": [[0, 0, 0], [0, 0, 1], [0, 0, 2], [0, 0, 3]],
}
data_index["B^zeta_zz"] = {
"label": "\\partial_{\\zeta\\zeta} B^{\\zeta}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant toroidal component of magnetic field, second derivative wrt toroidal angle",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
[0, 0, 3],
[1, 0, 2],
[0, 1, 2],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 1, 1], [0, 1, 2]],
}
data_index["B0_tz"] = {
"label": "-\\psi' \\partial_{\\theta\\zeta} \\sqrt{g} / g + "
+ "2 \\psi' \\partial_{\\theta} \\sqrt{g} \\partial_{\\zeta} \\sqrt{g} / "
+ "(\\sqrt{g})^{3}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
[0, 2, 1],
[0, 1, 2],
[1, 1, 1],
],
"L_derivs": [[0, 0, 0]],
}
data_index["B^theta_tz"] = {
"label": "\\partial_{\\theta\\zeta} B^{\\theta}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant poloidal component of magnetic field, second derivative wrt poloidal and toroidal angles",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
[0, 2, 1],
[0, 1, 2],
[1, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1], [0, 1, 2]],
}
data_index["B^zeta_tz"] = {
"label": "\\partial_{\\theta\\zeta} B^{\\zeta}",
"units": "T \\cdot m^{-1}",
"units_long": "Tesla / meters",
"description": "Contravariant toroidal component of magnetic field, second derivative wrt poloidal and toroidal angles",
"fun": "compute_contravariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
[0, 2, 1],
[0, 1, 2],
[1, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 2, 0], [0, 1, 1], [0, 2, 1]],
}
# covariant magnetic field
data_index["B_rho"] = {
"label": "B_{\\rho}",
"units": "T \\cdot m",
"units_long": "Tesla * meters",
"description": "Covariant radial component of magnetic field",
"fun": "compute_covariant_magnetic_field",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["B_theta"] = {
"label": "B_{\\theta}",
"units": "T \\cdot m",
"units_long": "Tesla * meters",
"description": "Covariant poloidal component of magnetic field",
"fun": "compute_covariant_magnetic_field",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["B_zeta"] = {
"label": "B_{\\zeta}",
"units": "T \\cdot m",
"units_long": "Tesla * meters",
"description": "Covariant toroidal component of magnetic field",
"fun": "compute_covariant_magnetic_field",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["B_rho_r"] = {
"label": "\\partial_{\\rho} B_{\\rho}",
"units": "T \\cdot m",
"units_long": "Tesla * meters",
"description": "Covariant radial component of magnetic field, derivative wrt radial coordinate",
"fun": "compute_covariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[1, 1, 0],
[1, 0, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [1, 1, 0], [1, 0, 1]],
}
data_index["B_theta_r"] = {
"label": "\\partial_{\\rho} B_{\\theta}",
"units": "T \\cdot m",
"units_long": "Tesla * meters",
"description": "Covariant poloidal component of magnetic field, derivative wrt radial coordinate",
"fun": "compute_covariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[1, 1, 0],
[1, 0, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [1, 1, 0], [1, 0, 1]],
}
data_index["B_zeta_r"] = {
"label": "\\partial_{\\rho} B_{\\zeta}",
"units": "T \\cdot m",
"units_long": "Tesla * meters",
"description": "Covariant toroidal component of magnetic field, derivative wrt radial coordinate",
"fun": "compute_covariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[1, 1, 0],
[1, 0, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [1, 1, 0], [1, 0, 1]],
}
data_index["B_rho_t"] = {
"label": "\\partial_{\\theta} B_{\\rho}",
"units": "T \\cdot m",
"units_long": "Tesla * meters",
"description": "Covariant radial component of magnetic field, derivative wrt poloidal angle",
"fun": "compute_covariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 1, 1]],
}
data_index["B_theta_t"] = {
"label": "\\partial_{\\theta} B_{\\theta}",
"units": "T \\cdot m",
"units_long": "Tesla * meters",
"description": "Covariant poloidal component of magnetic field, derivative wrt poloidal angle",
"fun": "compute_covariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 1, 1]],
}
data_index["B_zeta_t"] = {
"label": "\\partial_{\\theta} B_{\\zeta}",
"units": "T \\cdot m",
"units_long": "Tesla * meters",
"description": "Covariant toroidal component of magnetic field, derivative wrt poloidal angle",
"fun": "compute_covariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 1, 1]],
}
data_index["B_rho_z"] = {
"label": "\\partial_{\\zeta} B_{\\rho}",
"units": "T \\cdot m",
"units_long": "Tesla * meters",
"description": "Covariant radial component of magnetic field, derivative wrt toroidal angle",
"fun": "compute_covariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1]],
}
data_index["B_theta_z"] = {
"label": "\\partial_{\\zeta} B_{\\theta}",
"units": "T \\cdot m",
"units_long": "Tesla * meters",
"description": "Covariant poloidal component of magnetic field, derivative wrt toroidal angle",
"fun": "compute_covariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1]],
}
data_index["B_zeta_z"] = {
"label": "\\partial_{\\zeta} B_{\\zeta}",
"units": "T \\cdot m",
"units_long": "Tesla * meters",
"description": "Covariant toroidal component of magnetic field, derivative wrt toroidal angle",
"fun": "compute_covariant_magnetic_field",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1]],
}
# magnetic field magnitude
data_index["|B|"] = {
"label": "|\\mathbf{B}|",
"units": "T",
"units_long": "Tesla",
"description": "Magnitude of magnetic field",
"fun": "compute_magnetic_field_magnitude",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["|B|_t"] = {
"label": "\\partial_{\\theta} |\\mathbf{B}|",
"units": "T",
"units_long": "Tesla",
"description": "Magnitude of magnetic field, derivative wrt poloidal angle",
"fun": "compute_magnetic_field_magnitude",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 1, 1]],
}
data_index["|B|_z"] = {
"label": "\\partial_{\\zeta} |\\mathbf{B}|",
"units": "T",
"units_long": "Tesla",
"description": "Magnitude of magnetic field, derivative wrt toroidal angle",
"fun": "compute_magnetic_field_magnitude",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1]],
}
data_index["|B|_tt"] = {
"label": "\\partial_{\\theta\\theta} |\\mathbf{B}|",
"units": "T",
"units_long": "Tesla",
"description": "Magnitude of magnetic field, second derivative wrt poloidal angle",
"fun": "compute_magnetic_field_magnitude",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
[0, 3, 0],
[1, 2, 0],
[0, 2, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 1, 1],
[0, 3, 0],
[0, 2, 1],
],
}
data_index["|B|_zz"] = {
"label": "\\partial_{\\zeta\\zeta} |\\mathbf{B}|",
"units": "T",
"units_long": "Tesla",
"description": "Magnitude of magnetic field, second derivative wrt toroidal angle",
"fun": "compute_magnetic_field_magnitude",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
[0, 0, 3],
[1, 0, 2],
[0, 1, 2],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[0, 1, 1],
[0, 0, 3],
[0, 1, 2],
],
}
data_index["|B|_tz"] = {
"label": "\\partial_{\\theta\\zeta} |\\mathbf{B}|",
"units": "T",
"units_long": "Tesla",
"description": "Magnitude of magnetic field, derivative wrt poloidal and toroidal angles",
"fun": "compute_magnetic_field_magnitude",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
[0, 2, 1],
[0, 1, 2],
[1, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[0, 1, 1],
[0, 2, 1],
[0, 1, 2],
],
}
# magnetic pressure gradient
data_index["grad(|B|^2)_rho"] = {
"label": "(\\nabla B^{2})_{\\rho}",
"units": "T^{2}",
"units_long": "Tesla squared",
"description": "Covariant radial component of magnetic pressure gradient",
"fun": "compute_magnetic_pressure_gradient",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[1, 1, 0],
[1, 0, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [1, 1, 0], [1, 0, 1]],
}
data_index["grad(|B|^2)_theta"] = {
"label": "(\\nabla B^{2})_{\\theta}",
"units": "T^{2}",
"units_long": "Tesla squared",
"description": "Covariant poloidal component of magnetic pressure gradient",
"fun": "compute_magnetic_pressure_gradient",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 1, 1]],
}
data_index["grad(|B|^2)_zeta"] = {
"label": "(\\nabla B^{2})_{\\zeta}",
"units": "T^{2}",
"units_long": "Tesla squared",
"description": "Covariant toroidal component of magnetic pressure gradient",
"fun": "compute_magnetic_pressure_gradient",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1]],
}
data_index["grad(|B|^2)"] = {
"label": "\\nabla B^{2}",
"units": "T^{2} \\cdot m^{-1}",
"units_long": "Tesla squared / meters",
"description": "Magnetic pressure gradient",
"fun": "compute_magnetic_pressure_gradient",
"dim": 3,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["|grad(|B|^2)|"] = {
"label": "|\\nabla B^{2}|",
"units": "T^{2} \\cdot m^{-1}",
"units_long": "Tesla squared / meters",
"description": "Magnitude of magnetic pressure gradient",
"fun": "compute_magnetic_pressure_gradient",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
# magnetic tension
data_index["(curl(B)xB)_rho"] = {
"label": "((\\nabla \\times \\mathbf{B}) \\times \\mathbf{B})_{\\rho}",
"units": "T^{2}",
"units_long": "Tesla squared",
"description": "Covariant radial component of Lorentz force",
"fun": "compute_magnetic_tension",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["(curl(B)xB)_theta"] = {
"label": "((\\nabla \\times \\mathbf{B}) \\times \\mathbf{B})_{\\theta}",
"units": "T^{2}",
"units_long": "Tesla squared",
"description": "Covariant poloidal component of Lorentz force",
"fun": "compute_magnetic_tension",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]],
}
data_index["(curl(B)xB)_zeta"] = {
"label": "((\\nabla \\times \\mathbf{B}) \\times \\mathbf{B})_{\\zeta}",
"units": "T^{2}",
"units_long": "Tesla squared",
"description": "Covariant toroidal component of Lorentz force",
"fun": "compute_magnetic_tension",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]],
}
data_index["curl(B)xB"] = {
"label": "(\\nabla \\times \\mathbf{B}) \\times \\mathbf{B}",
"units": "T^{2} \\cdot m^{-1}",
"units_long": "Tesla squared / meters",
"description": "Lorentz force",
"fun": "compute_magnetic_tension",
"dim": 3,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["(B*grad)B"] = {
"label": "(\\mathbf{B} \\cdot \\nabla) \\mathbf{B}",
"units": "T^{2} \\cdot m^{-1}",
"units_long": "Tesla squared / meters",
"description": "Magnetic tension",
"fun": "compute_magnetic_tension",
"dim": 3,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["((B*grad)B)_rho"] = {
"label": "((\\mathbf{B} \\cdot \\nabla) \\mathbf{B})_{\\rho}",
"units": "T^{2}",
"units_long": "Tesla squared",
"description": "Covariant radial component of magnetic tension",
"fun": "compute_magnetic_tension",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["((B*grad)B)_theta"] = {
"label": "((\\mathbf{B} \\cdot \\nabla) \\mathbf{B})_{\\theta}",
"units": "T^{2}",
"units_long": "Tesla squared",
"description": "Covariant poloidal component of magnetic tension",
"fun": "compute_magnetic_tension",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["((B*grad)B)_zeta"] = {
"label": "((\\mathbf{B} \\cdot \\nabla) \\mathbf{B})_{\\zeta}",
"units": "T^{2}",
"units_long": "Tesla squared",
"description": "Covariant toroidal component of magnetic tension",
"fun": "compute_magnetic_tension",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["|(B*grad)B|"] = {
"label": "|(\\mathbf{B} \\cdot \\nabla) \\mathbf{B}|",
"units": "T^2 \\cdot m^{-1}",
"units_long": "Tesla squared / meters",
"description": "Magnitude of magnetic tension",
"fun": "compute_magnetic_tension",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
# B dot grad(B)
data_index["B*grad(|B|)"] = {
"label": "\\mathbf{B} \\cdot \\nabla B",
"units": "T^2 \\cdot m^{-1}",
"units_long": "Tesla squared / meters",
"description": "",
"fun": "compute_B_dot_gradB",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]],
}
data_index["(B*grad(|B|))_t"] = {
"label": "\\partial_{\\theta} (\\mathbf{B} \\cdot \\nabla B)",
"units": "T^2 \\cdot m^{-1}",
"units_long": "Tesla squared / meters",
"description": "",
"fun": "compute_B_dot_gradB",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
[0, 3, 0],
[1, 2, 0],
[0, 2, 1],
[0, 1, 2],
[1, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[0, 1, 1],
[0, 3, 0],
[0, 2, 1],
[0, 1, 2],
],
}
data_index["(B*grad(|B|))_z"] = {
"label": "\\partial_{\\zeta} (\\mathbf{B} \\cdot \\nabla B)",
"units": "T^2 \\cdot m^{-1}",
"units_long": "Tesla squared / meters",
"description": "",
"fun": "compute_B_dot_gradB",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
[0, 0, 3],
[1, 2, 0],
[1, 0, 2],
[0, 2, 1],
[0, 1, 2],
[1, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[0, 1, 1],
[0, 0, 3],
[0, 2, 1],
[0, 1, 2],
],
}
# contravarian current density
data_index["J^rho"] = {
"label": "J^{\\rho}",
"units": "A \\cdot m^{-3}",
"units_long": "Amperes / cubic meter",
"description": "Contravariant radial component of plasma current",
"fun": "compute_contravariant_current_density",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]],
}
data_index["J^theta"] = {
"label": "J^{\\theta}",
"units": "A \\cdot m^{-3}",
"units_long": "Amperes / cubic meter",
"description": "Contravariant poloidal component of plasma current",
"fun": "compute_contravariant_current_density",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["J^zeta"] = {
"label": "J^{\\zeta}",
"units": "A \\cdot m^{-3}",
"units_long": "Amperes / cubic meter",
"description": "Contravariant toroidal component of plasma current",
"fun": "compute_contravariant_current_density",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["J"] = {
"label": "\\mathbf{J}",
"units": "A \\cdot m^{-2}",
"units_long": "Amperes / square meter",
"description": "Plasma current",
"fun": "compute_contravariant_current_density",
"dim": 3,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["J_parallel"] = {
"label": "\\mathbf{J}_{\parallel}",
"units": "A \\cdot m^{-2}",
"units_long": "Amperes / square meter",
"description": "Plasma current parallel to magnetic field",
"fun": "compute_contravariant_current_density",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["div_J_perp"] = {
"label": "\\nabla \\cdot \\mathbf{J}_{\perp}",
"units": "A \\cdot m^{-3}",
"units_long": "Amperes / cubic meter",
"description": "Divergence of Plasma current perpendicular to magnetic field",
"fun": "compute_force_error",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
# force error
data_index["F_rho"] = {
"label": "F_{\\rho}",
"units": "N \\cdot m^{-2}",
"units_long": "Newtons / square meter",
"description": "Covariant radial component of force balance error",
"fun": "compute_force_error",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["F_theta"] = {
"label": "F_{\\theta}",
"units": "N \\cdot m^{-2}",
"units_long": "Newtons / square meter",
"description": "Covariant poloidal component of force balance error",
"fun": "compute_force_error",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]],
}
data_index["F_zeta"] = {
"label": "F_{\\zeta}",
"units": "N \\cdot m^{-2}",
"units_long": "Newtons / square meter",
"description": "Covariant toroidal component of force balance error",
"fun": "compute_force_error",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]],
}
data_index["F_beta"] = {
"label": "F_{\\beta}",
"units": "A",
"units_long": "Amperes",
"description": "Covariant helical component of force balance error",
"fun": "compute_force_error",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]],
}
data_index["F"] = {
"label": "\\mathbf{J} \\times \\mathbf{B} - \\nabla p",
"units": "N \\cdot m^{-3}",
"units_long": "Newtons / cubic meter",
"description": "Force balance error",
"fun": "compute_force_error",
"dim": 3,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["|F|"] = {
"label": "|\\mathbf{J} \\times \\mathbf{B} - \\nabla p|",
"units": "N \\cdot m^{-3}",
"units_long": "Newtons / cubic meter",
"description": "Magnitude of force balance error",
"fun": "compute_force_error",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[2, 0, 0],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
}
data_index["|grad(p)|"] = {
"label": "|\\nabla p|",
"units": "N \\cdot m^{-3}",
"units_long": "Newtons / cubic meter",
"description": "Magnitude of pressure gradient",
"fun": "compute_force_error",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0]],
}
data_index["|beta|"] = {
"label": "|B^{\\theta} \\nabla \\zeta - B^{\\zeta} \\nabla \\theta|",
"units": "T \\cdot m^{-2}",
"units_long": "Tesla / square meter",
"description": "Magnitude of helical basis vector",
"fun": "compute_force_error",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
# quasi-symmetry
data_index["I"] = {
"label": "I",
"units": "T \\cdot m",
"units_long": "Tesla * meters",
"description": "Boozer toroidal current",
"fun": "compute_quasisymmetry_error",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["G"] = {
"label": "G",
"units": "T \\cdot m",
"units_long": "Tesla * meters",
"description": "Boozer poloidal current",
"fun": "compute_quasisymmetry_error",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["nu"] = {
"label": "\\nu = \\zeta_{B} - \\zeta",
"units": "rad",
"units_long": "radians",
"description": "Boozer toroidal stream function",
"fun": "compute_boozer_coords",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["nu_t"] = {
"label": "\\partial_{\\theta} \\nu",
"units": "rad",
"units_long": "radians",
"description": "Boozer toroidal stream function, first poloidal derivative",
"fun": "compute_boozer_coords",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["nu_z"] = {
"label": "\\partial_{\\zeta} \\nu",
"units": "rad",
"units_long": "radians",
"description": "Boozer toroidal stream function, first toroidal derivative",
"fun": "compute_boozer_coords",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["theta_B"] = {
"label": "\\theta_{B}",
"units": "rad",
"units_long": "radians",
"description": "Boozer poloidal angular coordinate",
"fun": "compute_boozer_coords",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["zeta_B"] = {
"label": "\\zeta_{B}",
"units": "rad",
"units_long": "radians",
"description": "Boozer toroidal angular coordinate",
"fun": "compute_boozer_coords",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["sqrt(g)_B"] = {
"label": "\\sqrt{g}_{B}",
"units": "~",
"units_long": "None",
"description": "Jacobian determinant of Boozer coordinates",
"fun": "compute_boozer_coords",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["|B|_mn"] = {
"label": "B_{mn}^{Boozer}",
"units": "T",
"units_long": "Tesla",
"description": "Boozer harmonics of magnetic field",
"fun": "compute_boozer_coords",
"dim": 1,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["B modes"] = {
"label": "Boozer modes",
"units": "",
"units_long": "None",
"description": "Boozer harmonics",
"fun": "compute_boozer_coords",
"dim": 1,
}
data_index["f_C"] = {
"label": "(\\mathbf{B} \\times \\nabla \\psi) \\cdot \\nabla B - "
+ "(M G + N I) / (M \\iota - N) \\mathbf{B} \\cdot \\nabla B",
"units": "T^{3}",
"units_long": "Tesla cubed",
"description": "Two-term quasisymmetry metric",
"fun": "compute_quasisymmetry_error",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]],
}
data_index["f_T"] = {
"label": "\\nabla \\psi \\times \\nabla B \\cdot \\nabla "
+ "(\\mathbf{B} \\cdot \\nabla B)",
"units": "T^{4} \\cdot m^{-2}",
"units_long": "Tesla quarted / square meters",
"description": "Triple product quasisymmetry metric",
"fun": "compute_quasisymmetry_error",
"dim": 1,
"R_derivs": [
[0, 0, 0],
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[1, 1, 0],
[1, 0, 1],
[0, 1, 1],
[0, 3, 0],
[0, 0, 3],
[1, 2, 0],
[1, 0, 2],
[0, 2, 1],
[0, 1, 2],
[1, 1, 1],
],
"L_derivs": [
[0, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 2, 0],
[0, 0, 2],
[0, 1, 1],
[0, 3, 0],
[0, 0, 3],
[0, 2, 1],
[0, 1, 2],
],
}
# energy
data_index["W"] = {
"label": "W",
"units": "J",
"units_long": "Joules",
"description": "Plasma total energy",
"fun": "compute_energy",
"dim": 0,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["W_B"] = {
"label": "W_B",
"units": "J",
"units_long": "Joules",
"description": "Plasma magnetic energy",
"fun": "compute_energy",
"dim": 0,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["W_p"] = {
"label": "W_p",
"units": "J",
"units_long": "Joules",
"description": "Plasma thermodynamic energy",
"fun": "compute_energy",
"dim": 0,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
"L_derivs": [[0, 0, 0]],
}
# geometry
data_index["V"] = {
"label": "V",
"units": "m^{3}",
"units_long": "cubic meters",
"description": "Volume",
"fun": "compute_geometry",
"dim": 0,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["A"] = {
"label": "A",
"units": "m^{2}",
"units_long": "square meters",
"description": "Cross-sectional area",
"fun": "compute_geometry",
"dim": 0,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["R0"] = {
"label": "R_{0}",
"units": "m",
"units_long": "meters",
"description": "Major radius",
"fun": "compute_geometry",
"dim": 0,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["a"] = {
"label": "a",
"units": "m",
"units_long": "meters",
"description": "Minor radius",
"fun": "compute_geometry",
"dim": 0,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
data_index["R0/a"] = {
"label": "R_{0} / a",
"units": "~",
"units_long": "None",
"description": "Aspect ratio",
"fun": "compute_geometry",
"dim": 0,
"R_derivs": [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]],
}
| """data_index contains all of the quantities calculated by the compute functions.
label = (str) Title of the quantity in LaTeX format.
units = (str) Units of the quantity in LaTeX format.
units_long (str) Full units without abbreviations.
description (str) Description of the quantity.
fun = (str) Function name in compute_funs.py that computes the quantity.
dim = (int) Dimension of the quantity: 0-D, 1-D, or 3-D.
"""
data_index = {}
data_index['rho'] = {'label': '\\rho', 'units': '~', 'units_long': 'None', 'description': 'Radial coordinate, proportional to the square root of the toroidal flux', 'fun': 'compute_flux_coords', 'dim': 1}
data_index['theta'] = {'label': '\\theta', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal angular coordinate (geometric, not magnetic)', 'fun': 'compute_flux_coords', 'dim': 1}
data_index['zeta'] = {'label': '\\zeta', 'units': 'rad', 'units_long': 'radians', 'description': 'Toroidal angular coordinate, equal to the geometric toroidal angle', 'fun': 'compute_flux_coords', 'dim': 1}
data_index['psi'] = {'label': '\\psi = \\Psi / (2 \\pi)', 'units': 'Wb', 'units_long': 'Webers', 'description': 'Toroidal flux', 'fun': 'compute_toroidal_flux', 'dim': 1}
data_index['psi_r'] = {'label': "\\psi' = \\partial_{\\rho} \\Psi / (2 \\pi)", 'units': 'Wb', 'units_long': 'Webers', 'description': 'Toroidal flux, first radial derivative', 'fun': 'compute_toroidal_flux', 'dim': 1}
data_index['psi_rr'] = {'label': "\\psi'' = \\partial_{\\rho\\rho} \\Psi / (2 \\pi)", 'units': 'Wb', 'units_long': 'Webers', 'description': 'Toroidal flux, second radial derivative', 'fun': 'compute_toroidal_flux', 'dim': 1}
data_index['R'] = {'label': 'R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 0, 0]]}
data_index['R_r'] = {'label': '\\partial_{\\rho} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, first radial derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[1, 0, 0]]}
data_index['R_t'] = {'label': '\\partial_{\\theta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, first poloidal derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 1, 0]]}
data_index['R_z'] = {'label': '\\partial_{\\zeta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, first toroidal derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 0, 1]]}
data_index['R_rr'] = {'label': '\\partial_{\\rho\\rho} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, second radial derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[2, 0, 0]]}
data_index['R_tt'] = {'label': '\\partial_{\\theta\\theta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, second poloidal derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 2, 0]]}
data_index['R_zz'] = {'label': '\\partial_{\\zeta\\zeta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, second toroidal derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 0, 2]]}
data_index['R_rt'] = {'label': '\\partial_{\\rho\\theta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, second derivative wrt to radius and poloidal angle', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[1, 1, 0]]}
data_index['R_rz'] = {'label': '\\partial_{\\rho\\zeta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, second derivative wrt to radius and toroidal angle', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[1, 0, 1]]}
data_index['R_tz'] = {'label': '\\partial_{\\theta\\zeta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, second derivative wrt to poloidal and toroidal angles', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 1, 1]]}
data_index['R_rrr'] = {'label': '\\partial_{\\rho\\rho\\rho} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, third radial derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[3, 0, 0]]}
data_index['R_ttt'] = {'label': '\\partial_{\\theta\\theta\\theta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, third poloidal derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 3, 0]]}
data_index['R_zzz'] = {'label': '\\partial_{\\zeta\\zeta\\zeta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, third toroidal derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 0, 3]]}
data_index['R_rrt'] = {'label': '\\partial_{\\rho\\rho\\theta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, third derivative, wrt to radius twice and poloidal angle', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[2, 1, 0]]}
data_index['R_rtt'] = {'label': '\\partial_{\\rho\\theta\\theta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, third derivative wrt to radius and poloidal angle twice', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[1, 2, 0]]}
data_index['R_rrz'] = {'label': '\\partial_{\\rho\\rho\\zeta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, third derivative wrt to radius twice and toroidal angle', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[2, 0, 1]]}
data_index['R_rzz'] = {'label': '\\partial_{\\rho\\zeta\\zeta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, third derivative wrt to radius and toroidal angle twice', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[1, 0, 2]]}
data_index['R_ttz'] = {'label': '\\partial_{\\theta\\theta\\zeta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, third derivative wrt to poloidal angle twice and toroidal angle', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 2, 1]]}
data_index['R_tzz'] = {'label': '\\partial_{\\theta\\zeta\\zeta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, third derivative wrt to poloidal angle and toroidal angle twice', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 1, 2]]}
data_index['R_rtz'] = {'label': '\\partial_{\\rho\\theta\\zeta} R', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius in lab frame, third derivative wrt to radius, poloidal angle, and toroidal angle', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[1, 1, 1]]}
data_index['Z'] = {'label': 'Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 0, 0]]}
data_index['Z_r'] = {'label': '\\partial_{\\rho} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, first radial derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[1, 0, 0]]}
data_index['Z_t'] = {'label': '\\partial_{\\theta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, first poloidal derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 1, 0]]}
data_index['Z_z'] = {'label': '\\partial_{\\zeta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, first toroidal derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 0, 1]]}
data_index['Z_rr'] = {'label': '\\partial_{\\rho\\rho} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, second radial derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[2, 0, 0]]}
data_index['Z_tt'] = {'label': '\\partial_{\\theta\\theta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, second poloidal derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 2, 0]]}
data_index['Z_zz'] = {'label': '\\partial_{\\zeta\\zeta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, second toroidal derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 0, 2]]}
data_index['Z_rt'] = {'label': '\\partial_{\\rho\\theta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, second derivative wrt to radius and poloidal angle', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[1, 1, 0]]}
data_index['Z_rz'] = {'label': '\\partial_{\\rho\\zeta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, second derivative wrt to radius and toroidal angle', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[1, 0, 1]]}
data_index['Z_tz'] = {'label': '\\partial_{\\theta\\zeta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, second derivative wrt to poloidal and toroidal angles', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 1, 1]]}
data_index['Z_rrr'] = {'label': '\\partial_{\\rho\\rho\\rho} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, third radial derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[3, 0, 0]]}
data_index['Z_ttt'] = {'label': '\\partial_{\\theta\\theta\\theta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, third poloidal derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 3, 0]]}
data_index['Z_zzz'] = {'label': '\\partial_{\\zeta\\zeta\\zeta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, third toroidal derivative', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 0, 3]]}
data_index['Z_rrt'] = {'label': '\\partial_{\\rho\\rho\\theta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, third derivative, wrt to radius twice and poloidal angle', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[2, 1, 0]]}
data_index['Z_rtt'] = {'label': '\\partial_{\\rho\\theta\\theta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, third derivative wrt to radius and poloidal angle twice', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[1, 2, 0]]}
data_index['Z_rrz'] = {'label': '\\partial_{\\rho\\rho\\zeta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, third derivative wrt to radius twice and toroidal angle', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[2, 0, 1]]}
data_index['Z_rzz'] = {'label': '\\partial_{\\rho\\zeta\\zeta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, third derivative wrt to radius and toroidal angle twice', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[1, 0, 2]]}
data_index['Z_ttz'] = {'label': '\\partial_{\\theta\\theta\\zeta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, third derivative wrt to poloidal angle twice and toroidal angle', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 2, 1]]}
data_index['Z_tzz'] = {'label': '\\partial_{\\theta\\zeta\\zeta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, third derivative wrt to poloidal angle and toroidal angle twice', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[0, 1, 2]]}
data_index['Z_rtz'] = {'label': '\\partial_{\\rho\\theta\\zeta} Z', 'units': 'm', 'units_long': 'meters', 'description': 'Vertical coordinate in lab frame, third derivative wrt to radius, poloidal angle, and toroidal angle', 'fun': 'compute_toroidal_coords', 'dim': 1, 'R_derivs': [[1, 1, 1]]}
data_index['phi'] = {'label': '\\phi = \\zeta', 'units': 'rad', 'units_long': 'radians', 'description': 'Toroidal angle in lab frame', 'fun': 'compute_cartesian_coords', 'dim': 1, 'R_derivs': [[0, 0, 0]]}
data_index['X'] = {'label': 'X = R \\cos{\\phi}', 'units': 'm', 'units_long': 'meters', 'description': 'Cartesian X coordinate', 'fun': 'compute_cartesian_coords', 'dim': 1, 'R_derivs': [[0, 0, 0]]}
data_index['Y'] = {'label': 'Y = R \\sin{\\phi}', 'units': 'm', 'units_long': 'meters', 'description': 'Cartesian Y coordinate', 'fun': 'compute_cartesian_coords', 'dim': 1, 'R_derivs': [[0, 0, 0]]}
data_index['lambda'] = {'label': '\\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[0, 0, 0]]}
data_index['lambda_r'] = {'label': '\\partial_{\\rho} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, first radial derivative', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[1, 0, 0]]}
data_index['lambda_t'] = {'label': '\\partial_{\\theta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, first poloidal derivative', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[0, 1, 0]]}
data_index['lambda_z'] = {'label': '\\partial_{\\zeta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, first toroidal derivative', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[0, 0, 1]]}
data_index['lambda_rr'] = {'label': '\\partial_{\\rho\\rho} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, second radial derivative', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[2, 0, 0]]}
data_index['lambda_tt'] = {'label': '\\partial_{\\theta\\theta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, second poloidal derivative', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[0, 2, 0]]}
data_index['lambda_zz'] = {'label': '\\partial_{\\zeta\\zeta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, second toroidal derivative', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[0, 0, 2]]}
data_index['lambda_rt'] = {'label': '\\partial_{\\rho\\theta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, second derivative wrt to radius and poloidal angle', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[1, 1, 0]]}
data_index['lambda_rz'] = {'label': '\\partial_{\\rho\\zeta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, second derivative wrt to radius and toroidal angle', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[1, 0, 1]]}
data_index['lambda_tz'] = {'label': '\\partial_{\\theta\\zeta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, second derivative wrt to poloidal and toroidal angles', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[0, 1, 1]]}
data_index['lambda_rrr'] = {'label': '\\partial_{\\rho\\rho\\rho} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, third radial derivative', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[3, 0, 0]]}
data_index['lambda_ttt'] = {'label': '\\partial_{\\theta\\theta\\theta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, third poloidal derivative', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[0, 3, 0]]}
data_index['lambda_zzz'] = {'label': '\\partial_{\\zeta\\zeta\\zeta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, third toroidal derivative', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[0, 0, 3]]}
data_index['lambda_rrt'] = {'label': '\\partial_{\\rho\\rho\\theta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, third derivative, wrt to radius twice and poloidal angle', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[2, 1, 0]]}
data_index['lambda_rtt'] = {'label': '\\partial_{\\rho\\theta\\theta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, third derivative wrt to radius and poloidal angle twice', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[1, 2, 0]]}
data_index['lambda_rrz'] = {'label': '\\partial_{\\rho\\rho\\zeta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, third derivative wrt to radius twice and toroidal angle', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[2, 0, 1]]}
data_index['lambda_rzz'] = {'label': '\\partial_{\\rho\\zeta\\zeta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, third derivative wrt to radius and toroidal angle twice', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[1, 0, 2]]}
data_index['lambda_ttz'] = {'label': '\\partial_{\\theta\\theta\\zeta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, third derivative wrt to poloidal angle twice and toroidal angle', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[0, 2, 1]]}
data_index['lambda_tzz'] = {'label': '\\partial_{\\theta\\zeta\\zeta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, third derivative wrt to poloidal angle and toroidal angle twice', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[0, 1, 2]]}
data_index['lambda_rtz'] = {'label': '\\partial_{\\rho\\theta\\zeta} \\lambda', 'units': 'rad', 'units_long': 'radians', 'description': 'Poloidal stream function, third derivative wrt to radius, poloidal angle, and toroidal angle', 'fun': 'compute_lambda', 'dim': 1, 'L_derivs': [[1, 1, 1]]}
data_index['p'] = {'label': 'p', 'units': 'Pa', 'units_long': 'Pascal', 'description': 'Pressure', 'fun': 'compute_pressure', 'dim': 1}
data_index['p_r'] = {'label': '\\partial_{\\rho} p', 'units': 'Pa', 'units_long': 'Pascal', 'description': 'Pressure, first radial derivative', 'fun': 'compute_pressure', 'dim': 1}
data_index['iota'] = {'label': '\\iota', 'units': '~', 'units_long': 'None', 'description': 'Rotational transform', 'fun': 'compute_rotational_transform', 'dim': 1}
data_index['iota_r'] = {'label': '\\partial_{\\rho} \\iota', 'units': '~', 'units_long': 'None', 'description': 'Rotational transform, first radial derivative', 'fun': 'compute_rotational_transform', 'dim': 1}
data_index['iota_rr'] = {'label': '\\partial_{\\rho\\rho} \\iota', 'units': '~', 'units_long': 'None', 'description': 'Rotational transform, second radial derivative', 'fun': 'compute_rotational_transform', 'dim': 1}
data_index['e_rho'] = {'label': '\\mathbf{e}_{\\rho}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant radial basis vector', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[1, 0, 0]]}
data_index['e_theta'] = {'label': '\\mathbf{e}_{\\theta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant poloidal basis vector', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[0, 1, 0]]}
data_index['e_zeta'] = {'label': '\\mathbf{e}_{\\zeta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant toroidal basis vector', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[0, 0, 0], [0, 0, 1]]}
data_index['e_rho_r'] = {'label': '\\partial_{\\rho} \\mathbf{e}_{\\rho}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant radial basis vector, derivative wrt radial coordinate', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[2, 0, 0]]}
data_index['e_rho_t'] = {'label': '\\partial_{\\theta} \\mathbf{e}_{\\rho}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant radial basis vector, derivative wrt poloidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[1, 1, 0]]}
data_index['e_rho_z'] = {'label': '\\partial_{\\zeta} \\mathbf{e}_{\\rho}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant radial basis vector, derivative wrt toroidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[1, 0, 1]]}
data_index['e_theta_r'] = {'label': '\\partial_{\\rho} \\mathbf{e}_{\\theta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant poloidal basis vector, derivative wrt radial coordinate', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[1, 1, 0]]}
data_index['e_theta_t'] = {'label': '\\partial_{\\theta} \\mathbf{e}_{\\theta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant poloidal basis vector, derivative wrt poloidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[0, 2, 0]]}
data_index['e_theta_z'] = {'label': '\\partial_{\\zeta} \\mathbf{e}_{\\theta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant poloidal basis vector, derivative wrt toroidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[0, 1, 1]]}
data_index['e_zeta_r'] = {'label': '\\partial_{\\rho} \\mathbf{e}_{\\zeta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant toroidal basis vector, derivative wrt radial coordinate', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[1, 0, 0], [1, 0, 1]]}
data_index['e_zeta_t'] = {'label': '\\partial_{\\theta} \\mathbf{e}_{\\zeta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant toroidal basis vector, derivative wrt poloidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[0, 1, 0], [0, 1, 1]]}
data_index['e_zeta_z'] = {'label': '\\partial_{\\zeta} \\mathbf{e}_{\\zeta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant toroidal basis vector, derivative wrt toroidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[0, 0, 1], [0, 0, 2]]}
data_index['e_rho_rr'] = {'label': '\\partial_{\\rho\\rho} \\mathbf{e}_{\\rho}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant radial basis vector, second derivative wrt radial coordinate', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[3, 0, 0]]}
data_index['e_rho_tt'] = {'label': '\\partial_{\\theta\\theta} \\mathbf{e}_{\\rho}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant radial basis vector, second derivative wrt poloidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[1, 2, 0]]}
data_index['e_rho_zz'] = {'label': '\\partial_{\\zeta\\zeta} \\mathbf{e}_{\\rho}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant radial basis vector, second derivative wrt toroidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[1, 0, 2]]}
data_index['e_rho_rt'] = {'label': '\\partial_{\\rho\\theta} \\mathbf{e}_{\\rho}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant radial basis vector, second derivative wrt radial coordinate and poloidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[2, 1, 0]]}
data_index['e_rho_rz'] = {'label': '\\partial_{\\rho\\zeta} \\mathbf{e}_{\\rho}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant radial basis vector, second derivative wrt radial coordinate and toroidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[2, 1, 0]]}
data_index['e_rho_tz'] = {'label': '\\partial_{\\theta\\zeta} \\mathbf{e}_{\\rho}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant radial basis vector, second derivative wrt poloidal and toroidal angles', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[1, 1, 1]]}
data_index['e_theta_rr'] = {'label': '\\partial_{\\rho\\rho} \\mathbf{e}_{\\theta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant poloidal basis vector, second derivative wrt radial coordinate', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[2, 1, 0]]}
data_index['e_theta_tt'] = {'label': '\\partial_{\\theta\\theta} \\mathbf{e}_{\\theta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant poloidal basis vector, second derivative wrt poloidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[0, 3, 0]]}
data_index['e_theta_zz'] = {'label': '\\partial_{\\zeta\\zeta} \\mathbf{e}_{\\theta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant poloidal basis vector, second derivative wrt toroidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[0, 1, 2]]}
data_index['e_theta_rt'] = {'label': '\\partial_{\\rho\\theta} \\mathbf{e}_{\\theta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant poloidal basis vector, second derivative wrt radial coordinate and poloidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[1, 2, 0]]}
data_index['e_theta_rz'] = {'label': '\\partial_{\\rho\\zeta} \\mathbf{e}_{\\theta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant poloidal basis vector, second derivative wrt radial coordinate and toroidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[1, 1, 1]]}
data_index['e_theta_tz'] = {'label': '\\partial_{\\theta\\zeta} \\mathbf{e}_{\\theta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant poloidal basis vector, second derivative wrt poloidal and toroidal angles', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[0, 2, 1]]}
data_index['e_zeta_rr'] = {'label': '\\partial_{\\rho\\rho} \\mathbf{e}_{\\zeta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant toroidal basis vector, second derivative wrt radial coordinate', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[2, 0, 0], [2, 0, 1]]}
data_index['e_zeta_tt'] = {'label': '\\partial_{\\theta\\theta} \\mathbf{e}_{\\zeta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant toroidal basis vector, second derivative wrt poloidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[0, 2, 0], [0, 2, 1]]}
data_index['e_zeta_zz'] = {'label': '\\partial_{\\zeta\\zeta} \\mathbf{e}_{\\zeta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant toroidal basis vector, second derivative wrt toroidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[0, 0, 2], [0, 0, 3]]}
data_index['e_zeta_rt'] = {'label': '\\partial_{\\rho\\theta} \\mathbf{e}_{\\zeta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant toroidal basis vector, second derivative wrt radial coordinate and poloidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[1, 1, 0], [1, 1, 1]]}
data_index['e_zeta_rz'] = {'label': '\\partial_{\\rho\\zeta} \\mathbf{e}_{\\zeta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant toroidal basis vector, second derivative wrt radial coordinate and toroidal angle', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[1, 0, 1], [1, 0, 2]]}
data_index['e_zeta_tz'] = {'label': '\\partial_{\\theta\\zeta} \\mathbf{e}_{\\zeta}', 'units': 'm', 'units_long': 'meters', 'description': 'Covariant toroidal basis vector, second derivative wrt poloidal and toroidal angles', 'fun': 'compute_covariant_basis', 'dim': 3, 'R_derivs': [[0, 1, 1], [0, 1, 2]]}
data_index['e^rho'] = {'label': '\\mathbf{e}^{\\rho}', 'units': 'm^{-1}', 'units_long': 'inverse meters', 'description': 'Contravariant radial basis vector', 'fun': 'compute_contravariant_basis', 'dim': 3, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['e^theta'] = {'label': '\\mathbf{e}^{\\theta}', 'units': 'm^{-1}', 'units_long': 'inverse meters', 'description': 'Contravariant poloidal basis vector', 'fun': 'compute_contravariant_basis', 'dim': 3, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['e^zeta'] = {'label': '\\mathbf{e}^{\\zeta}', 'units': 'm^{-1}', 'units_long': 'inverse meters', 'description': 'Contravariant toroidal basis vector', 'fun': 'compute_contravariant_basis', 'dim': 3, 'R_derivs': [[0, 0, 0]]}
data_index['sqrt(g)'] = {'label': '\\sqrt{g}', 'units': 'm^{3}', 'units_long': 'cubic meters', 'description': 'Jacobian determinant', 'fun': 'compute_jacobian', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['sqrt(g)_r'] = {'label': '\\partial_{\\rho} \\sqrt{g}', 'units': 'm^{3}', 'units_long': 'cubic meters', 'description': 'Jacobian determinant, derivative wrt radial coordinate', 'fun': 'compute_jacobian', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [1, 1, 0], [1, 0, 1]]}
data_index['sqrt(g)_t'] = {'label': '\\partial_{\\theta} \\sqrt{g}', 'units': 'm^{3}', 'units_long': 'cubic meters', 'description': 'Jacobian determinant, derivative wrt poloidal angle', 'fun': 'compute_jacobian', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1]]}
data_index['sqrt(g)_z'] = {'label': '\\partial_{\\zeta} \\sqrt{g}', 'units': 'm^{3}', 'units_long': 'cubic meters', 'description': 'Jacobian determinant, derivative wrt toroidal angle', 'fun': 'compute_jacobian', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1]]}
data_index['sqrt(g)_rr'] = {'label': '\\partial_{\\rho\\rho} \\sqrt{g}', 'units': 'm^{3}', 'units_long': 'cubic meters', 'description': 'Jacobian determinant, second derivative wrt radial coordinate', 'fun': 'compute_jacobian', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [1, 1, 0], [1, 0, 1], [3, 0, 0], [2, 1, 0], [2, 0, 1]]}
data_index['sqrt(g)_tt'] = {'label': '\\partial_{\\theta\\theta} \\sqrt{g}', 'units': 'm^{3}', 'units_long': 'cubic meters', 'description': 'Jacobian determinant, second derivative wrt poloidal angle', 'fun': 'compute_jacobian', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1], [0, 3, 0], [1, 2, 0], [0, 2, 1]]}
data_index['sqrt(g)_zz'] = {'label': '\\partial_{\\zeta\\zeta} \\sqrt{g}', 'units': 'm^{3}', 'units_long': 'cubic meters', 'description': 'Jacobian determinant, second derivative wrt toroidal angle', 'fun': 'compute_jacobian', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1], [0, 0, 3], [1, 0, 2], [0, 1, 2]]}
data_index['sqrt(g)_tz'] = {'label': '\\partial_{\\theta\\zeta} \\sqrt{g}', 'units': 'm^{3}', 'units_long': 'cubic meters', 'description': 'Jacobian determinant, second derivative wrt poloidal and toroidal angles', 'fun': 'compute_jacobian', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1], [0, 2, 1], [0, 1, 2], [1, 1, 1]]}
data_index['g_rr'] = {'label': 'g_{\\rho\\rho}', 'units': 'm^{2}', 'units_long': 'square meters', 'description': 'Radial/Radial element of covariant metric tensor', 'fun': 'compute_covariant_metric_coefficients', 'dim': 1, 'R_derivs': [[1, 0, 0]]}
data_index['g_tt'] = {'label': 'g_{\\theta\\theta}', 'units': 'm^{2}', 'units_long': 'square meters', 'description': 'Poloidal/Poloidal element of covariant metric tensor', 'fun': 'compute_covariant_metric_coefficients', 'dim': 1, 'R_derivs': [[0, 1, 0]]}
data_index['g_zz'] = {'label': 'g_{\\zeta\\zeta}', 'units': 'm^{2}', 'units_long': 'square meters', 'description': 'Toroidal/Toroidal element of covariant metric tensor', 'fun': 'compute_covariant_metric_coefficients', 'dim': 1, 'R_derivs': [[0, 0, 0], [0, 0, 1]]}
data_index['g_rt'] = {'label': 'g_{\\rho\\theta}', 'units': 'm^{2}', 'units_long': 'square meters', 'description': 'Radial/Poloidal element of covariant metric tensor', 'fun': 'compute_covariant_metric_coefficients', 'dim': 1, 'R_derivs': [[1, 0, 0], [0, 1, 0]]}
data_index['g_rz'] = {'label': 'g_{\\rho\\zeta}', 'units': 'm^{2}', 'units_long': 'square meters', 'description': 'Radial/Toroidal element of covariant metric tensor', 'fun': 'compute_covariant_metric_coefficients', 'dim': 1, 'R_derivs': [[1, 0, 0], [0, 0, 1]]}
data_index['g_tz'] = {'label': 'g_{\\theta\\zeta}', 'units': 'm^{2}', 'units_long': 'square meters', 'description': 'Poloidal/Toroidal element of covariant metric tensor', 'fun': 'compute_covariant_metric_coefficients', 'dim': 1, 'R_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['g^rr'] = {'label': 'g^{\\rho\\rho}', 'units': 'm^{-2}', 'units_long': 'inverse square meters', 'description': 'Radial/Radial element of contravariant metric tensor', 'fun': 'compute_contravariant_metric_coefficients', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['g^tt'] = {'label': 'g^{\\theta\\theta}', 'units': 'm^{-2}', 'units_long': 'inverse square meters', 'description': 'Poloidal/Poloidal element of contravariant metric tensor', 'fun': 'compute_contravariant_metric_coefficients', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['g^zz'] = {'label': 'g^{\\zeta\\zeta}', 'units': 'm^{-2}', 'units_long': 'inverse square meters', 'description': 'Toroidal/Toroidal element of contravariant metric tensor', 'fun': 'compute_contravariant_metric_coefficients', 'dim': 1, 'R_derivs': [[0, 0, 0]]}
data_index['g^rt'] = {'label': 'g^{\\rho\\theta}', 'units': 'm^{-2}', 'units_long': 'inverse square meters', 'description': 'Radial/Poloidal element of contravariant metric tensor', 'fun': 'compute_contravariant_metric_coefficients', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['g^rz'] = {'label': 'g^{\\rho\\zeta}', 'units': 'm^{-2}', 'units_long': 'inverse square meters', 'description': 'Radial/Toroidal element of contravariant metric tensor', 'fun': 'compute_contravariant_metric_coefficients', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['g^tz'] = {'label': 'g^{\\theta\\zeta}', 'units': 'm^{-2}', 'units_long': 'inverse square meters', 'description': 'Poloidal/Toroidal element of contravariant metric tensor', 'fun': 'compute_contravariant_metric_coefficients', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['|grad(rho)|'] = {'label': '|\\nabla \\rho|', 'units': 'm^{-1}', 'units_long': 'inverse meters', 'description': 'Magnitude of contravariant radial basis vector', 'fun': 'compute_contravariant_metric_coefficients', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['|grad(theta)|'] = {'label': '|\\nabla \\theta|', 'units': 'm^{-1}', 'units_long': 'inverse meters', 'description': 'Magnitude of contravariant poloidal basis vector', 'fun': 'compute_contravariant_metric_coefficients', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['|grad(zeta)|'] = {'label': '|\\nabla \\zeta|', 'units': 'm^{-1}', 'units_long': 'inverse meters', 'description': 'Magnitude of contravariant toroidal basis vector', 'fun': 'compute_contravariant_metric_coefficients', 'dim': 1, 'R_derivs': [[0, 0, 0]]}
data_index['B0'] = {'label': "\\psi' / \\sqrt{g}", 'units': 'T m^{-1}', 'units_long': 'Tesla / meters', 'description': '', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0]]}
data_index['B^rho'] = {'label': 'B^{\\rho}', 'units': 'T m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant radial component of magnetic field', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0]], 'L_derivs': [[0, 0, 0]]}
data_index['B^theta'] = {'label': 'B^{\\theta}', 'units': 'T m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant poloidal component of magnetic field', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 0, 1]]}
data_index['B^zeta'] = {'label': 'B^{\\zeta}', 'units': 'T m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant toroidal component of magnetic field', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0]]}
data_index['B'] = {'label': '\\mathbf{B}', 'units': 'T', 'units_long': 'Tesla', 'description': 'Magnetic field', 'fun': 'compute_contravariant_magnetic_field', 'dim': 3, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['B_R'] = {'label': 'B_{R}', 'units': 'T', 'units_long': 'Tesla', 'description': 'Radial component of magnetic field in lab frame', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['B_phi'] = {'label': 'B_{\\phi}', 'units': 'T', 'units_long': 'Tesla', 'description': 'Toroidal component of magnetic field in lab frame', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['B_Z'] = {'label': 'B_{Z}', 'units': 'T', 'units_long': 'Tesla', 'description': 'Vertical component of magnetic field in lab frame', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['B0_r'] = {'label': "\\psi'' / \\sqrt{g} - \\psi' \\partial_{\\rho} \\sqrt{g} / g", 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': '', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [1, 1, 0], [1, 0, 1]], 'L_derivs': [[0, 0, 0]]}
data_index['B^theta_r'] = {'label': '\\partial_{\\rho} B^{\\theta}', 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant poloidal component of magnetic field, derivative wrt radial coordinate', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [1, 1, 0], [1, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 0, 1], [1, 0, 1]]}
data_index['B^zeta_r'] = {'label': '\\partial_{\\rho} B^{\\zeta}', 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant toroidal component of magnetic field, derivative wrt radial coordinate', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [1, 1, 0], [1, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [1, 1, 0]]}
data_index['B_r'] = {'label': '\\partial_{\\rho} \\mathbf{B}', 'units': 'T', 'units_long': 'Tesla', 'description': 'Magnetic field, derivative wrt radial coordinate', 'fun': 'compute_contravariant_magnetic_field', 'dim': 3, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [1, 1, 0], [1, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [1, 0, 1], [1, 1, 0]]}
data_index['B0_t'] = {'label': "-\\psi' \\partial_{\\theta} \\sqrt{g} / g", 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': '', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1]], 'L_derivs': [[0, 0, 0]]}
data_index['B^theta_t'] = {'label': '\\partial_{\\theta} B^{\\theta}', 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant poloidal component of magnetic field, derivative wrt poloidal angle', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 0, 1], [0, 1, 1]]}
data_index['B^zeta_t'] = {'label': '\\partial_{\\theta} B^{\\zeta}', 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant toroidal component of magnetic field, derivative wrt poloidal angle', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 2, 0]]}
data_index['B_t'] = {'label': '\\partial_{\\theta} \\mathbf{B}', 'units': 'T', 'units_long': 'Tesla', 'description': 'Magnetic field, derivative wrt poloidal angle', 'fun': 'compute_contravariant_magnetic_field', 'dim': 3, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 1, 1]]}
data_index['B0_z'] = {'label': "-\\psi' \\partial_{\\zeta} \\sqrt{g} / g", 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': '', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0]]}
data_index['B^theta_z'] = {'label': '\\partial_{\\zeta} B^{\\theta}', 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant poloidal component of magnetic field, derivative wrt toroidal angle', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 0, 1], [0, 0, 2]]}
data_index['B^zeta_z'] = {'label': '\\partial_{\\zeta} B^{\\zeta}', 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant toroidal component of magnetic field, derivative wrt toroidal angle', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 1, 1]]}
data_index['B_z'] = {'label': '\\partial_{\\zeta} \\mathbf{B}', 'units': 'T', 'units_long': 'Tesla', 'description': 'Magnetic field, derivative wrt toroidal angle', 'fun': 'compute_contravariant_magnetic_field', 'dim': 3, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1]]}
data_index['B0_tt'] = {'label': "-\\psi' \\partial_{\\theta\\theta} \\sqrt{g} / g + " + "2 \\psi' (\\partial_{\\theta} \\sqrt{g})^2 / (\\sqrt{g})^{3}", 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': '', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1], [0, 3, 0], [1, 2, 0], [0, 2, 1]], 'L_derivs': [[0, 0, 0]]}
data_index['B^theta_tt'] = {'label': '\\partial_{\\theta\\theta} B^{\\theta}', 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant poloidal component of magnetic field, second derivative wrt poloidal angle', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1], [0, 3, 0], [1, 2, 0], [0, 2, 1]], 'L_derivs': [[0, 0, 0], [0, 0, 1], [0, 1, 1], [0, 2, 1]]}
data_index['B^zeta_tt'] = {'label': '\\partial_{\\theta\\theta} B^{\\zeta}', 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant toroidal component of magnetic field, second derivative wrt poloidal angle', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1], [0, 3, 0], [1, 2, 0], [0, 2, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 2, 0], [0, 3, 0]]}
data_index['B0_zz'] = {'label': "-\\psi' \\partial_{\\zeta\\zeta} \\sqrt{g} / g + " + "2 \\psi' (\\partial_{\\zeta} \\sqrt{g})^2 / (\\sqrt{g})^{3}", 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': '', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1], [0, 0, 3], [1, 0, 2], [0, 1, 2]], 'L_derivs': [[0, 0, 0]]}
data_index['B^theta_zz'] = {'label': '\\partial_{\\zeta\\zeta} B^{\\theta}', 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant poloidal component of magnetic field, second derivative wrt toroidal angle', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1], [0, 0, 3], [1, 0, 2], [0, 1, 2]], 'L_derivs': [[0, 0, 0], [0, 0, 1], [0, 0, 2], [0, 0, 3]]}
data_index['B^zeta_zz'] = {'label': '\\partial_{\\zeta\\zeta} B^{\\zeta}', 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant toroidal component of magnetic field, second derivative wrt toroidal angle', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1], [0, 0, 3], [1, 0, 2], [0, 1, 2]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 1, 1], [0, 1, 2]]}
data_index['B0_tz'] = {'label': "-\\psi' \\partial_{\\theta\\zeta} \\sqrt{g} / g + " + "2 \\psi' \\partial_{\\theta} \\sqrt{g} \\partial_{\\zeta} \\sqrt{g} / " + '(\\sqrt{g})^{3}', 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': '', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1], [0, 2, 1], [0, 1, 2], [1, 1, 1]], 'L_derivs': [[0, 0, 0]]}
data_index['B^theta_tz'] = {'label': '\\partial_{\\theta\\zeta} B^{\\theta}', 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant poloidal component of magnetic field, second derivative wrt poloidal and toroidal angles', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1], [0, 2, 1], [0, 1, 2], [1, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1], [0, 1, 2]]}
data_index['B^zeta_tz'] = {'label': '\\partial_{\\theta\\zeta} B^{\\zeta}', 'units': 'T \\cdot m^{-1}', 'units_long': 'Tesla / meters', 'description': 'Contravariant toroidal component of magnetic field, second derivative wrt poloidal and toroidal angles', 'fun': 'compute_contravariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1], [0, 2, 1], [0, 1, 2], [1, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 2, 0], [0, 1, 1], [0, 2, 1]]}
data_index['B_rho'] = {'label': 'B_{\\rho}', 'units': 'T \\cdot m', 'units_long': 'Tesla * meters', 'description': 'Covariant radial component of magnetic field', 'fun': 'compute_covariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['B_theta'] = {'label': 'B_{\\theta}', 'units': 'T \\cdot m', 'units_long': 'Tesla * meters', 'description': 'Covariant poloidal component of magnetic field', 'fun': 'compute_covariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['B_zeta'] = {'label': 'B_{\\zeta}', 'units': 'T \\cdot m', 'units_long': 'Tesla * meters', 'description': 'Covariant toroidal component of magnetic field', 'fun': 'compute_covariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['B_rho_r'] = {'label': '\\partial_{\\rho} B_{\\rho}', 'units': 'T \\cdot m', 'units_long': 'Tesla * meters', 'description': 'Covariant radial component of magnetic field, derivative wrt radial coordinate', 'fun': 'compute_covariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [1, 1, 0], [1, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [1, 1, 0], [1, 0, 1]]}
data_index['B_theta_r'] = {'label': '\\partial_{\\rho} B_{\\theta}', 'units': 'T \\cdot m', 'units_long': 'Tesla * meters', 'description': 'Covariant poloidal component of magnetic field, derivative wrt radial coordinate', 'fun': 'compute_covariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [1, 1, 0], [1, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [1, 1, 0], [1, 0, 1]]}
data_index['B_zeta_r'] = {'label': '\\partial_{\\rho} B_{\\zeta}', 'units': 'T \\cdot m', 'units_long': 'Tesla * meters', 'description': 'Covariant toroidal component of magnetic field, derivative wrt radial coordinate', 'fun': 'compute_covariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [1, 1, 0], [1, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [1, 1, 0], [1, 0, 1]]}
data_index['B_rho_t'] = {'label': '\\partial_{\\theta} B_{\\rho}', 'units': 'T \\cdot m', 'units_long': 'Tesla * meters', 'description': 'Covariant radial component of magnetic field, derivative wrt poloidal angle', 'fun': 'compute_covariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 1, 1]]}
data_index['B_theta_t'] = {'label': '\\partial_{\\theta} B_{\\theta}', 'units': 'T \\cdot m', 'units_long': 'Tesla * meters', 'description': 'Covariant poloidal component of magnetic field, derivative wrt poloidal angle', 'fun': 'compute_covariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 1, 1]]}
data_index['B_zeta_t'] = {'label': '\\partial_{\\theta} B_{\\zeta}', 'units': 'T \\cdot m', 'units_long': 'Tesla * meters', 'description': 'Covariant toroidal component of magnetic field, derivative wrt poloidal angle', 'fun': 'compute_covariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 1, 1]]}
data_index['B_rho_z'] = {'label': '\\partial_{\\zeta} B_{\\rho}', 'units': 'T \\cdot m', 'units_long': 'Tesla * meters', 'description': 'Covariant radial component of magnetic field, derivative wrt toroidal angle', 'fun': 'compute_covariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1]]}
data_index['B_theta_z'] = {'label': '\\partial_{\\zeta} B_{\\theta}', 'units': 'T \\cdot m', 'units_long': 'Tesla * meters', 'description': 'Covariant poloidal component of magnetic field, derivative wrt toroidal angle', 'fun': 'compute_covariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1]]}
data_index['B_zeta_z'] = {'label': '\\partial_{\\zeta} B_{\\zeta}', 'units': 'T \\cdot m', 'units_long': 'Tesla * meters', 'description': 'Covariant toroidal component of magnetic field, derivative wrt toroidal angle', 'fun': 'compute_covariant_magnetic_field', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1]]}
data_index['|B|'] = {'label': '|\\mathbf{B}|', 'units': 'T', 'units_long': 'Tesla', 'description': 'Magnitude of magnetic field', 'fun': 'compute_magnetic_field_magnitude', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['|B|_t'] = {'label': '\\partial_{\\theta} |\\mathbf{B}|', 'units': 'T', 'units_long': 'Tesla', 'description': 'Magnitude of magnetic field, derivative wrt poloidal angle', 'fun': 'compute_magnetic_field_magnitude', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 1, 1]]}
data_index['|B|_z'] = {'label': '\\partial_{\\zeta} |\\mathbf{B}|', 'units': 'T', 'units_long': 'Tesla', 'description': 'Magnitude of magnetic field, derivative wrt toroidal angle', 'fun': 'compute_magnetic_field_magnitude', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1]]}
data_index['|B|_tt'] = {'label': '\\partial_{\\theta\\theta} |\\mathbf{B}|', 'units': 'T', 'units_long': 'Tesla', 'description': 'Magnitude of magnetic field, second derivative wrt poloidal angle', 'fun': 'compute_magnetic_field_magnitude', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1], [0, 3, 0], [1, 2, 0], [0, 2, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 1, 1], [0, 3, 0], [0, 2, 1]]}
data_index['|B|_zz'] = {'label': '\\partial_{\\zeta\\zeta} |\\mathbf{B}|', 'units': 'T', 'units_long': 'Tesla', 'description': 'Magnitude of magnetic field, second derivative wrt toroidal angle', 'fun': 'compute_magnetic_field_magnitude', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1], [0, 0, 3], [1, 0, 2], [0, 1, 2]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1], [0, 0, 3], [0, 1, 2]]}
data_index['|B|_tz'] = {'label': '\\partial_{\\theta\\zeta} |\\mathbf{B}|', 'units': 'T', 'units_long': 'Tesla', 'description': 'Magnitude of magnetic field, derivative wrt poloidal and toroidal angles', 'fun': 'compute_magnetic_field_magnitude', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1], [0, 2, 1], [0, 1, 2], [1, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1], [0, 2, 1], [0, 1, 2]]}
data_index['grad(|B|^2)_rho'] = {'label': '(\\nabla B^{2})_{\\rho}', 'units': 'T^{2}', 'units_long': 'Tesla squared', 'description': 'Covariant radial component of magnetic pressure gradient', 'fun': 'compute_magnetic_pressure_gradient', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [1, 1, 0], [1, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [1, 1, 0], [1, 0, 1]]}
data_index['grad(|B|^2)_theta'] = {'label': '(\\nabla B^{2})_{\\theta}', 'units': 'T^{2}', 'units_long': 'Tesla squared', 'description': 'Covariant poloidal component of magnetic pressure gradient', 'fun': 'compute_magnetic_pressure_gradient', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 1, 1]]}
data_index['grad(|B|^2)_zeta'] = {'label': '(\\nabla B^{2})_{\\zeta}', 'units': 'T^{2}', 'units_long': 'Tesla squared', 'description': 'Covariant toroidal component of magnetic pressure gradient', 'fun': 'compute_magnetic_pressure_gradient', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [0, 1, 1]]}
data_index['grad(|B|^2)'] = {'label': '\\nabla B^{2}', 'units': 'T^{2} \\cdot m^{-1}', 'units_long': 'Tesla squared / meters', 'description': 'Magnetic pressure gradient', 'fun': 'compute_magnetic_pressure_gradient', 'dim': 3, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['|grad(|B|^2)|'] = {'label': '|\\nabla B^{2}|', 'units': 'T^{2} \\cdot m^{-1}', 'units_long': 'Tesla squared / meters', 'description': 'Magnitude of magnetic pressure gradient', 'fun': 'compute_magnetic_pressure_gradient', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['(curl(B)xB)_rho'] = {'label': '((\\nabla \\times \\mathbf{B}) \\times \\mathbf{B})_{\\rho}', 'units': 'T^{2}', 'units_long': 'Tesla squared', 'description': 'Covariant radial component of Lorentz force', 'fun': 'compute_magnetic_tension', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['(curl(B)xB)_theta'] = {'label': '((\\nabla \\times \\mathbf{B}) \\times \\mathbf{B})_{\\theta}', 'units': 'T^{2}', 'units_long': 'Tesla squared', 'description': 'Covariant poloidal component of Lorentz force', 'fun': 'compute_magnetic_tension', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]]}
data_index['(curl(B)xB)_zeta'] = {'label': '((\\nabla \\times \\mathbf{B}) \\times \\mathbf{B})_{\\zeta}', 'units': 'T^{2}', 'units_long': 'Tesla squared', 'description': 'Covariant toroidal component of Lorentz force', 'fun': 'compute_magnetic_tension', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]]}
data_index['curl(B)xB'] = {'label': '(\\nabla \\times \\mathbf{B}) \\times \\mathbf{B}', 'units': 'T^{2} \\cdot m^{-1}', 'units_long': 'Tesla squared / meters', 'description': 'Lorentz force', 'fun': 'compute_magnetic_tension', 'dim': 3, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['(B*grad)B'] = {'label': '(\\mathbf{B} \\cdot \\nabla) \\mathbf{B}', 'units': 'T^{2} \\cdot m^{-1}', 'units_long': 'Tesla squared / meters', 'description': 'Magnetic tension', 'fun': 'compute_magnetic_tension', 'dim': 3, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['((B*grad)B)_rho'] = {'label': '((\\mathbf{B} \\cdot \\nabla) \\mathbf{B})_{\\rho}', 'units': 'T^{2}', 'units_long': 'Tesla squared', 'description': 'Covariant radial component of magnetic tension', 'fun': 'compute_magnetic_tension', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['((B*grad)B)_theta'] = {'label': '((\\mathbf{B} \\cdot \\nabla) \\mathbf{B})_{\\theta}', 'units': 'T^{2}', 'units_long': 'Tesla squared', 'description': 'Covariant poloidal component of magnetic tension', 'fun': 'compute_magnetic_tension', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['((B*grad)B)_zeta'] = {'label': '((\\mathbf{B} \\cdot \\nabla) \\mathbf{B})_{\\zeta}', 'units': 'T^{2}', 'units_long': 'Tesla squared', 'description': 'Covariant toroidal component of magnetic tension', 'fun': 'compute_magnetic_tension', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['|(B*grad)B|'] = {'label': '|(\\mathbf{B} \\cdot \\nabla) \\mathbf{B}|', 'units': 'T^2 \\cdot m^{-1}', 'units_long': 'Tesla squared / meters', 'description': 'Magnitude of magnetic tension', 'fun': 'compute_magnetic_tension', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['B*grad(|B|)'] = {'label': '\\mathbf{B} \\cdot \\nabla B', 'units': 'T^2 \\cdot m^{-1}', 'units_long': 'Tesla squared / meters', 'description': '', 'fun': 'compute_B_dot_gradB', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]]}
data_index['(B*grad(|B|))_t'] = {'label': '\\partial_{\\theta} (\\mathbf{B} \\cdot \\nabla B)', 'units': 'T^2 \\cdot m^{-1}', 'units_long': 'Tesla squared / meters', 'description': '', 'fun': 'compute_B_dot_gradB', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1], [0, 3, 0], [1, 2, 0], [0, 2, 1], [0, 1, 2], [1, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1], [0, 3, 0], [0, 2, 1], [0, 1, 2]]}
data_index['(B*grad(|B|))_z'] = {'label': '\\partial_{\\zeta} (\\mathbf{B} \\cdot \\nabla B)', 'units': 'T^2 \\cdot m^{-1}', 'units_long': 'Tesla squared / meters', 'description': '', 'fun': 'compute_B_dot_gradB', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1], [0, 0, 3], [1, 2, 0], [1, 0, 2], [0, 2, 1], [0, 1, 2], [1, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1], [0, 0, 3], [0, 2, 1], [0, 1, 2]]}
data_index['J^rho'] = {'label': 'J^{\\rho}', 'units': 'A \\cdot m^{-3}', 'units_long': 'Amperes / cubic meter', 'description': 'Contravariant radial component of plasma current', 'fun': 'compute_contravariant_current_density', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]]}
data_index['J^theta'] = {'label': 'J^{\\theta}', 'units': 'A \\cdot m^{-3}', 'units_long': 'Amperes / cubic meter', 'description': 'Contravariant poloidal component of plasma current', 'fun': 'compute_contravariant_current_density', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['J^zeta'] = {'label': 'J^{\\zeta}', 'units': 'A \\cdot m^{-3}', 'units_long': 'Amperes / cubic meter', 'description': 'Contravariant toroidal component of plasma current', 'fun': 'compute_contravariant_current_density', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['J'] = {'label': '\\mathbf{J}', 'units': 'A \\cdot m^{-2}', 'units_long': 'Amperes / square meter', 'description': 'Plasma current', 'fun': 'compute_contravariant_current_density', 'dim': 3, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['J_parallel'] = {'label': '\\mathbf{J}_{\\parallel}', 'units': 'A \\cdot m^{-2}', 'units_long': 'Amperes / square meter', 'description': 'Plasma current parallel to magnetic field', 'fun': 'compute_contravariant_current_density', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['div_J_perp'] = {'label': '\\nabla \\cdot \\mathbf{J}_{\\perp}', 'units': 'A \\cdot m^{-3}', 'units_long': 'Amperes / cubic meter', 'description': 'Divergence of Plasma current perpendicular to magnetic field', 'fun': 'compute_force_error', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['F_rho'] = {'label': 'F_{\\rho}', 'units': 'N \\cdot m^{-2}', 'units_long': 'Newtons / square meter', 'description': 'Covariant radial component of force balance error', 'fun': 'compute_force_error', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['F_theta'] = {'label': 'F_{\\theta}', 'units': 'N \\cdot m^{-2}', 'units_long': 'Newtons / square meter', 'description': 'Covariant poloidal component of force balance error', 'fun': 'compute_force_error', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]]}
data_index['F_zeta'] = {'label': 'F_{\\zeta}', 'units': 'N \\cdot m^{-2}', 'units_long': 'Newtons / square meter', 'description': 'Covariant toroidal component of force balance error', 'fun': 'compute_force_error', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]]}
data_index['F_beta'] = {'label': 'F_{\\beta}', 'units': 'A', 'units_long': 'Amperes', 'description': 'Covariant helical component of force balance error', 'fun': 'compute_force_error', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]]}
data_index['F'] = {'label': '\\mathbf{J} \\times \\mathbf{B} - \\nabla p', 'units': 'N \\cdot m^{-3}', 'units_long': 'Newtons / cubic meter', 'description': 'Force balance error', 'fun': 'compute_force_error', 'dim': 3, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['|F|'] = {'label': '|\\mathbf{J} \\times \\mathbf{B} - \\nabla p|', 'units': 'N \\cdot m^{-3}', 'units_long': 'Newtons / cubic meter', 'description': 'Magnitude of force balance error', 'fun': 'compute_force_error', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [2, 0, 0], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]]}
data_index['|grad(p)|'] = {'label': '|\\nabla p|', 'units': 'N \\cdot m^{-3}', 'units_long': 'Newtons / cubic meter', 'description': 'Magnitude of pressure gradient', 'fun': 'compute_force_error', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0]]}
data_index['|beta|'] = {'label': '|B^{\\theta} \\nabla \\zeta - B^{\\zeta} \\nabla \\theta|', 'units': 'T \\cdot m^{-2}', 'units_long': 'Tesla / square meter', 'description': 'Magnitude of helical basis vector', 'fun': 'compute_force_error', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['I'] = {'label': 'I', 'units': 'T \\cdot m', 'units_long': 'Tesla * meters', 'description': 'Boozer toroidal current', 'fun': 'compute_quasisymmetry_error', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['G'] = {'label': 'G', 'units': 'T \\cdot m', 'units_long': 'Tesla * meters', 'description': 'Boozer poloidal current', 'fun': 'compute_quasisymmetry_error', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['nu'] = {'label': '\\nu = \\zeta_{B} - \\zeta', 'units': 'rad', 'units_long': 'radians', 'description': 'Boozer toroidal stream function', 'fun': 'compute_boozer_coords', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['nu_t'] = {'label': '\\partial_{\\theta} \\nu', 'units': 'rad', 'units_long': 'radians', 'description': 'Boozer toroidal stream function, first poloidal derivative', 'fun': 'compute_boozer_coords', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['nu_z'] = {'label': '\\partial_{\\zeta} \\nu', 'units': 'rad', 'units_long': 'radians', 'description': 'Boozer toroidal stream function, first toroidal derivative', 'fun': 'compute_boozer_coords', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['theta_B'] = {'label': '\\theta_{B}', 'units': 'rad', 'units_long': 'radians', 'description': 'Boozer poloidal angular coordinate', 'fun': 'compute_boozer_coords', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['zeta_B'] = {'label': '\\zeta_{B}', 'units': 'rad', 'units_long': 'radians', 'description': 'Boozer toroidal angular coordinate', 'fun': 'compute_boozer_coords', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['sqrt(g)_B'] = {'label': '\\sqrt{g}_{B}', 'units': '~', 'units_long': 'None', 'description': 'Jacobian determinant of Boozer coordinates', 'fun': 'compute_boozer_coords', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['|B|_mn'] = {'label': 'B_{mn}^{Boozer}', 'units': 'T', 'units_long': 'Tesla', 'description': 'Boozer harmonics of magnetic field', 'fun': 'compute_boozer_coords', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['B modes'] = {'label': 'Boozer modes', 'units': '', 'units_long': 'None', 'description': 'Boozer harmonics', 'fun': 'compute_boozer_coords', 'dim': 1}
data_index['f_C'] = {'label': '(\\mathbf{B} \\times \\nabla \\psi) \\cdot \\nabla B - ' + '(M G + N I) / (M \\iota - N) \\mathbf{B} \\cdot \\nabla B', 'units': 'T^{3}', 'units_long': 'Tesla cubed', 'description': 'Two-term quasisymmetry metric', 'fun': 'compute_quasisymmetry_error', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1]]}
data_index['f_T'] = {'label': '\\nabla \\psi \\times \\nabla B \\cdot \\nabla ' + '(\\mathbf{B} \\cdot \\nabla B)', 'units': 'T^{4} \\cdot m^{-2}', 'units_long': 'Tesla quarted / square meters', 'description': 'Triple product quasisymmetry metric', 'fun': 'compute_quasisymmetry_error', 'dim': 1, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [1, 1, 0], [1, 0, 1], [0, 1, 1], [0, 3, 0], [0, 0, 3], [1, 2, 0], [1, 0, 2], [0, 2, 1], [0, 1, 2], [1, 1, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1], [0, 2, 0], [0, 0, 2], [0, 1, 1], [0, 3, 0], [0, 0, 3], [0, 2, 1], [0, 1, 2]]}
data_index['W'] = {'label': 'W', 'units': 'J', 'units_long': 'Joules', 'description': 'Plasma total energy', 'fun': 'compute_energy', 'dim': 0, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['W_B'] = {'label': 'W_B', 'units': 'J', 'units_long': 'Joules', 'description': 'Plasma magnetic energy', 'fun': 'compute_energy', 'dim': 0, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['W_p'] = {'label': 'W_p', 'units': 'J', 'units_long': 'Joules', 'description': 'Plasma thermodynamic energy', 'fun': 'compute_energy', 'dim': 0, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]], 'L_derivs': [[0, 0, 0]]}
data_index['V'] = {'label': 'V', 'units': 'm^{3}', 'units_long': 'cubic meters', 'description': 'Volume', 'fun': 'compute_geometry', 'dim': 0, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['A'] = {'label': 'A', 'units': 'm^{2}', 'units_long': 'square meters', 'description': 'Cross-sectional area', 'fun': 'compute_geometry', 'dim': 0, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['R0'] = {'label': 'R_{0}', 'units': 'm', 'units_long': 'meters', 'description': 'Major radius', 'fun': 'compute_geometry', 'dim': 0, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['a'] = {'label': 'a', 'units': 'm', 'units_long': 'meters', 'description': 'Minor radius', 'fun': 'compute_geometry', 'dim': 0, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]}
data_index['R0/a'] = {'label': 'R_{0} / a', 'units': '~', 'units_long': 'None', 'description': 'Aspect ratio', 'fun': 'compute_geometry', 'dim': 0, 'R_derivs': [[0, 0, 0], [1, 0, 0], [0, 1, 0], [0, 0, 1]]} |
n, x = map(int, input().split())
m = [int(input()) for _ in range(n)]
m.sort()
x -= sum(m)
print(n + x // m[0])
| (n, x) = map(int, input().split())
m = [int(input()) for _ in range(n)]
m.sort()
x -= sum(m)
print(n + x // m[0]) |
#!/usr/bin/python
imagedir = parent + "/oiio-images"
files = [ "dpx_nuke_10bits_rgb.dpx", "dpx_nuke_16bits_rgba.dpx" ]
for f in files:
command += rw_command (imagedir, f)
| imagedir = parent + '/oiio-images'
files = ['dpx_nuke_10bits_rgb.dpx', 'dpx_nuke_16bits_rgba.dpx']
for f in files:
command += rw_command(imagedir, f) |
n = input()
arr = list(map(int, input().split(' ')))
print(arr.count(max(arr)))
| n = input()
arr = list(map(int, input().split(' ')))
print(arr.count(max(arr))) |
cube=[value**3 for value in range(1,10)]
print(cube)
print("Los primero tres numeros de la lista son: " , cube[:3])
print("Los tres numeros centro de la lista son: " , cube[3:6])
print("Los ultimos tres numeros de la lista son: " , cube[6:]) | cube = [value ** 3 for value in range(1, 10)]
print(cube)
print('Los primero tres numeros de la lista son: ', cube[:3])
print('Los tres numeros centro de la lista son: ', cube[3:6])
print('Los ultimos tres numeros de la lista son: ', cube[6:]) |
class Demag(object):
def __init__(self):
pass
def get_mif(self):
mif = '# Demag\n'
mif += 'Specify Oxs_Demag {}\n\n'
return mif
| class Demag(object):
def __init__(self):
pass
def get_mif(self):
mif = '# Demag\n'
mif += 'Specify Oxs_Demag {}\n\n'
return mif |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.