hexsha
string | size
int64 | ext
string | lang
string | max_stars_repo_path
string | max_stars_repo_name
string | max_stars_repo_head_hexsha
string | max_stars_repo_licenses
list | max_stars_count
int64 | max_stars_repo_stars_event_min_datetime
string | max_stars_repo_stars_event_max_datetime
string | max_issues_repo_path
string | max_issues_repo_name
string | max_issues_repo_head_hexsha
string | max_issues_repo_licenses
list | max_issues_count
int64 | max_issues_repo_issues_event_min_datetime
string | max_issues_repo_issues_event_max_datetime
string | max_forks_repo_path
string | max_forks_repo_name
string | max_forks_repo_head_hexsha
string | max_forks_repo_licenses
list | max_forks_count
int64 | max_forks_repo_forks_event_min_datetime
string | max_forks_repo_forks_event_max_datetime
string | content
string | avg_line_length
float64 | max_line_length
int64 | alphanum_fraction
float64 | qsc_code_num_words_quality_signal
int64 | qsc_code_num_chars_quality_signal
float64 | qsc_code_mean_word_length_quality_signal
float64 | qsc_code_frac_words_unique_quality_signal
float64 | qsc_code_frac_chars_top_2grams_quality_signal
float64 | qsc_code_frac_chars_top_3grams_quality_signal
float64 | qsc_code_frac_chars_top_4grams_quality_signal
float64 | qsc_code_frac_chars_dupe_5grams_quality_signal
float64 | qsc_code_frac_chars_dupe_6grams_quality_signal
float64 | qsc_code_frac_chars_dupe_7grams_quality_signal
float64 | qsc_code_frac_chars_dupe_8grams_quality_signal
float64 | qsc_code_frac_chars_dupe_9grams_quality_signal
float64 | qsc_code_frac_chars_dupe_10grams_quality_signal
float64 | qsc_code_frac_chars_replacement_symbols_quality_signal
float64 | qsc_code_frac_chars_digital_quality_signal
float64 | qsc_code_frac_chars_whitespace_quality_signal
float64 | qsc_code_size_file_byte_quality_signal
float64 | qsc_code_num_lines_quality_signal
float64 | qsc_code_num_chars_line_max_quality_signal
float64 | qsc_code_num_chars_line_mean_quality_signal
float64 | qsc_code_frac_chars_alphabet_quality_signal
float64 | qsc_code_frac_chars_comments_quality_signal
float64 | qsc_code_cate_xml_start_quality_signal
float64 | qsc_code_frac_lines_dupe_lines_quality_signal
float64 | qsc_code_cate_autogen_quality_signal
float64 | qsc_code_frac_lines_long_string_quality_signal
float64 | qsc_code_frac_chars_string_length_quality_signal
float64 | qsc_code_frac_chars_long_word_length_quality_signal
float64 | qsc_code_frac_lines_string_concat_quality_signal
float64 | qsc_code_cate_encoded_data_quality_signal
float64 | qsc_code_frac_chars_hex_words_quality_signal
float64 | qsc_code_frac_lines_prompt_comments_quality_signal
float64 | qsc_code_frac_lines_assert_quality_signal
float64 | qsc_codepython_cate_ast_quality_signal
float64 | qsc_codepython_frac_lines_func_ratio_quality_signal
float64 | qsc_codepython_cate_var_zero_quality_signal
bool | qsc_codepython_frac_lines_pass_quality_signal
float64 | qsc_codepython_frac_lines_import_quality_signal
float64 | qsc_codepython_frac_lines_simplefunc_quality_signal
float64 | qsc_codepython_score_lines_no_logic_quality_signal
float64 | qsc_codepython_frac_lines_print_quality_signal
float64 | qsc_code_num_words
int64 | qsc_code_num_chars
int64 | qsc_code_mean_word_length
int64 | qsc_code_frac_words_unique
null | qsc_code_frac_chars_top_2grams
int64 | qsc_code_frac_chars_top_3grams
int64 | qsc_code_frac_chars_top_4grams
int64 | qsc_code_frac_chars_dupe_5grams
int64 | qsc_code_frac_chars_dupe_6grams
int64 | qsc_code_frac_chars_dupe_7grams
int64 | qsc_code_frac_chars_dupe_8grams
int64 | qsc_code_frac_chars_dupe_9grams
int64 | qsc_code_frac_chars_dupe_10grams
int64 | qsc_code_frac_chars_replacement_symbols
int64 | qsc_code_frac_chars_digital
int64 | qsc_code_frac_chars_whitespace
int64 | qsc_code_size_file_byte
int64 | qsc_code_num_lines
int64 | qsc_code_num_chars_line_max
int64 | qsc_code_num_chars_line_mean
int64 | qsc_code_frac_chars_alphabet
int64 | qsc_code_frac_chars_comments
int64 | qsc_code_cate_xml_start
int64 | qsc_code_frac_lines_dupe_lines
int64 | qsc_code_cate_autogen
int64 | qsc_code_frac_lines_long_string
int64 | qsc_code_frac_chars_string_length
int64 | qsc_code_frac_chars_long_word_length
int64 | qsc_code_frac_lines_string_concat
null | qsc_code_cate_encoded_data
int64 | qsc_code_frac_chars_hex_words
int64 | qsc_code_frac_lines_prompt_comments
int64 | qsc_code_frac_lines_assert
int64 | qsc_codepython_cate_ast
int64 | qsc_codepython_frac_lines_func_ratio
int64 | qsc_codepython_cate_var_zero
int64 | qsc_codepython_frac_lines_pass
int64 | qsc_codepython_frac_lines_import
int64 | qsc_codepython_frac_lines_simplefunc
int64 | qsc_codepython_score_lines_no_logic
int64 | qsc_codepython_frac_lines_print
int64 | effective
string | hits
int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ad8a641638c537924f23dfa6d00051975e4ccead
| 6,353
|
py
|
Python
|
test/python/test_circuit_combine_extend.py
|
niefermar/CuanticaProgramacion
|
cf066149b4bd769673e83fd774792e9965e5dbc0
|
[
"Apache-2.0"
] | null | null | null |
test/python/test_circuit_combine_extend.py
|
niefermar/CuanticaProgramacion
|
cf066149b4bd769673e83fd774792e9965e5dbc0
|
[
"Apache-2.0"
] | null | null | null |
test/python/test_circuit_combine_extend.py
|
niefermar/CuanticaProgramacion
|
cf066149b4bd769673e83fd774792e9965e5dbc0
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Copyright 2018, IBM.
#
# This source code is licensed under the Apache License, Version 2.0 found in
# the LICENSE.txt file in the root directory of this source tree.
# pylint: disable=invalid-name, unused-import
"""Tests for combining and extending circuits across width and depth"""
import qiskit.extensions.simulator
from qiskit import (ClassicalRegister, QISKitError, QuantumCircuit,
QuantumRegister, execute)
from qiskit.tools.qi.qi import state_fidelity
from .common import QiskitTestCase
class TestCircuitCombineExtend(QiskitTestCase):
"""Test combining and extending of QuantumCircuits."""
def test_combine_circuit_common(self):
"""Test combining two circuits with same registers.
"""
qr = QuantumRegister(2)
cr = ClassicalRegister(2)
qc1 = QuantumCircuit(qr, cr)
qc2 = QuantumCircuit(qr, cr)
qc1.h(qr[0])
qc1.measure(qr[0], cr[0])
qc2.measure(qr[1], cr[1])
new_circuit = qc1 + qc2
backend = 'local_qasm_simulator'
shots = 1024
result = execute(new_circuit, backend=backend, shots=shots, seed=78).result()
counts = result.get_counts()
target = {'00': shots / 2, '01': shots / 2}
threshold = 0.04 * shots
self.assertDictAlmostEqual(counts, target, threshold)
def test_combine_circuit_different(self):
"""Test combining two circuits with different registers.
"""
qr = QuantumRegister(2)
cr = ClassicalRegister(2)
qc1 = QuantumCircuit(qr)
qc1.x(qr)
qc2 = QuantumCircuit(qr, cr)
qc2.measure(qr, cr)
new_circuit = qc1 + qc2
backend = 'local_qasm_simulator'
shots = 1024
result = execute(new_circuit, backend=backend, shots=shots, seed=78).result()
counts = result.get_counts()
target = {'11': shots}
self.assertEqual(counts, target)
def test_combine_circuit_fail(self):
"""Test combining two circuits fails if registers incompatible.
If two circuits have same name register of different size or type
it should raise a QISKitError.
"""
q1 = QuantumRegister(1, "q")
q2 = QuantumRegister(2, "q")
c1 = ClassicalRegister(1, "q")
qc1 = QuantumCircuit(q1)
qc2 = QuantumCircuit(q2)
qc3 = QuantumCircuit(c1)
self.assertRaises(QISKitError, qc1.__add__, qc2)
self.assertRaises(QISKitError, qc1.__add__, qc3)
def test_combine_circuit_extension_instructions(self):
"""Test combining circuits contining barrier, initializer, snapshot
"""
qr = QuantumRegister(2)
cr = ClassicalRegister(2)
qc1 = QuantumCircuit(qr)
desired_vector = [0.5, 0.5, 0.5, 0.5]
qc1.initialize(desired_vector, qr)
qc1.barrier()
qc2 = QuantumCircuit(qr, cr)
qc2.snapshot(slot='1')
qc2.measure(qr, cr)
new_circuit = qc1 + qc2
backend = 'local_qasm_simulator_py'
shots = 1024
result = execute(new_circuit, backend=backend, shots=shots, seed=78).result()
snapshot_vectors = result.get_snapshot()
fidelity = state_fidelity(snapshot_vectors[0], desired_vector)
self.assertGreater(fidelity, 0.99)
counts = result.get_counts()
target = {'00': shots/4, '01': shots/4, '10': shots/4, '11': shots/4}
threshold = 0.04 * shots
self.assertDictAlmostEqual(counts, target, threshold)
def test_extend_circuit(self):
"""Test extending a circuit with same registers.
"""
qr = QuantumRegister(2)
cr = ClassicalRegister(2)
qc1 = QuantumCircuit(qr, cr)
qc2 = QuantumCircuit(qr, cr)
qc1.h(qr[0])
qc1.measure(qr[0], cr[0])
qc2.measure(qr[1], cr[1])
qc1 += qc2
backend = 'local_qasm_simulator'
shots = 1024
result = execute(qc1, backend=backend, shots=shots, seed=78).result()
counts = result.get_counts()
target = {'00': shots / 2, '01': shots / 2}
threshold = 0.04 * shots
self.assertDictAlmostEqual(counts, target, threshold)
def test_extend_circuit_different_registers(self):
"""Test extending a circuit with different registers.
"""
qr = QuantumRegister(2)
cr = ClassicalRegister(2)
qc1 = QuantumCircuit(qr)
qc1.x(qr)
qc2 = QuantumCircuit(qr, cr)
qc2.measure(qr, cr)
qc1 += qc2
backend = 'local_qasm_simulator'
shots = 1024
result = execute(qc1, backend=backend, shots=shots, seed=78).result()
counts = result.get_counts()
target = {'11': shots}
self.assertEqual(counts, target)
def test_extend_circuit_fail(self):
"""Test extending a circuits fails if registers incompatible.
If two circuits have same name register of different size or type
it should raise a QISKitError.
"""
q1 = QuantumRegister(1, "q")
q2 = QuantumRegister(2, "q")
c1 = ClassicalRegister(1, "q")
qc1 = QuantumCircuit(q1)
qc2 = QuantumCircuit(q2)
qc3 = QuantumCircuit(c1)
self.assertRaises(QISKitError, qc1.__iadd__, qc2)
self.assertRaises(QISKitError, qc1.__iadd__, qc3)
def test_extend_circuit_extension_instructions(self):
"""Test extending circuits contining barrier, initializer, snapshot
"""
qr = QuantumRegister(2)
cr = ClassicalRegister(2)
qc1 = QuantumCircuit(qr)
desired_vector = [0.5, 0.5, 0.5, 0.5]
qc1.initialize(desired_vector, qr)
qc1.barrier()
qc2 = QuantumCircuit(qr, cr)
qc2.snapshot(slot='1')
qc2.measure(qr, cr)
qc1 += qc2
backend = 'local_qasm_simulator_py'
shots = 1024
result = execute(qc1, backend=backend, shots=shots, seed=78).result()
snapshot_vectors = result.get_snapshot('1')
fidelity = state_fidelity(snapshot_vectors[0], desired_vector)
self.assertGreater(fidelity, 0.99)
counts = result.get_counts()
target = {'00': shots/4, '01': shots/4, '10': shots/4, '11': shots/4}
threshold = 0.04 * shots
self.assertDictAlmostEqual(counts, target, threshold)
| 35.892655
| 85
| 0.621439
| 735
| 6,353
| 5.258503
| 0.183673
| 0.049677
| 0.037257
| 0.031048
| 0.827426
| 0.782924
| 0.755498
| 0.755498
| 0.755498
| 0.755498
| 0
| 0.04766
| 0.270109
| 6,353
| 176
| 86
| 36.096591
| 0.785853
| 0.164017
| 0
| 0.84127
| 0
| 0
| 0.031316
| 0.008838
| 0
| 0
| 0
| 0
| 0.095238
| 1
| 0.063492
| false
| 0
| 0.031746
| 0
| 0.103175
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d100b58ee3e62b2fb5f04b6aed9be9c48570ba5b
| 204
|
py
|
Python
|
qset/utils/__init__.py
|
QsetAI/qset-python-client
|
9fe2cb409bcb9597780c358504f084d011fd6fcb
|
[
"MIT"
] | null | null | null |
qset/utils/__init__.py
|
QsetAI/qset-python-client
|
9fe2cb409bcb9597780c358504f084d011fd6fcb
|
[
"MIT"
] | null | null | null |
qset/utils/__init__.py
|
QsetAI/qset-python-client
|
9fe2cb409bcb9597780c358504f084d011fd6fcb
|
[
"MIT"
] | null | null | null |
from .pandas_writer import PandasCSVWriter
from .coder import *
from .pandas_writer import *
from .time import *
from .tqdm import *
from .split_file import *
from .builtin import *
from .numeric import *
| 25.5
| 42
| 0.77451
| 28
| 204
| 5.535714
| 0.428571
| 0.387097
| 0.206452
| 0.283871
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.151961
| 204
| 8
| 43
| 25.5
| 0.895954
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
d13f721a69fbd8cb9aecb68720b685ec5808c348
| 21,385
|
py
|
Python
|
tests/hwsim/test_radius.py
|
vanhoefm/apbleed
|
32a78e257170f3adc8ad2e9f7fc3cf221721cab0
|
[
"Unlicense"
] | 19
|
2015-04-02T13:50:00.000Z
|
2022-01-19T02:45:18.000Z
|
tests/hwsim/test_radius.py
|
vanhoefm/apbleed
|
32a78e257170f3adc8ad2e9f7fc3cf221721cab0
|
[
"Unlicense"
] | null | null | null |
tests/hwsim/test_radius.py
|
vanhoefm/apbleed
|
32a78e257170f3adc8ad2e9f7fc3cf221721cab0
|
[
"Unlicense"
] | 11
|
2015-05-18T07:37:12.000Z
|
2021-11-12T10:28:50.000Z
|
# RADIUS tests
# Copyright (c) 2013-2014, Jouni Malinen <j@w1.fi>
#
# This software may be distributed under the terms of the BSD license.
# See README for more details.
import logging
logger = logging.getLogger()
import time
import hostapd
def connect(dev, ssid, wait_connect=True):
dev.connect(ssid, key_mgmt="WPA-EAP", scan_freq="2412",
eap="PSK", identity="psk.user@example.com",
password_hex="0123456789abcdef0123456789abcdef",
wait_connect=wait_connect)
def test_radius_auth_unreachable(dev, apdev):
"""RADIUS Authentication server unreachable"""
params = hostapd.wpa2_eap_params(ssid="radius-auth")
params['auth_server_port'] = "18139"
hostapd.add_ap(apdev[0]['ifname'], params)
hapd = hostapd.Hostapd(apdev[0]['ifname'])
connect(dev[0], "radius-auth", wait_connect=False)
ev = dev[0].wait_event(["CTRL-EVENT-EAP-STARTED"])
if ev is None:
raise Exception("Timeout on EAP start")
logger.info("Checking for RADIUS retries")
time.sleep(4)
mib = hapd.get_mib()
if "radiusAuthClientAccessRequests" not in mib:
raise Exception("Missing MIB fields")
if int(mib["radiusAuthClientAccessRetransmissions"]) < 1:
raise Exception("Missing RADIUS Authentication retransmission")
if int(mib["radiusAuthClientPendingRequests"]) < 1:
raise Exception("Missing pending RADIUS Authentication request")
def test_radius_acct_unreachable(dev, apdev):
"""RADIUS Accounting server unreachable"""
params = hostapd.wpa2_eap_params(ssid="radius-acct")
params['acct_server_addr'] = "127.0.0.1"
params['acct_server_port'] = "18139"
params['acct_server_shared_secret'] = "radius"
hostapd.add_ap(apdev[0]['ifname'], params)
hapd = hostapd.Hostapd(apdev[0]['ifname'])
connect(dev[0], "radius-acct")
logger.info("Checking for RADIUS retries")
time.sleep(4)
mib = hapd.get_mib()
if "radiusAccClientRetransmissions" not in mib:
raise Exception("Missing MIB fields")
if int(mib["radiusAccClientRetransmissions"]) < 2:
raise Exception("Missing RADIUS Accounting retransmissions")
if int(mib["radiusAccClientPendingRequests"]) < 2:
raise Exception("Missing pending RADIUS Accounting requests")
def test_radius_acct(dev, apdev):
"""RADIUS Accounting"""
as_hapd = hostapd.Hostapd("as")
as_mib_start = as_hapd.get_mib(param="radius_server")
params = hostapd.wpa2_eap_params(ssid="radius-acct")
params['acct_server_addr'] = "127.0.0.1"
params['acct_server_port'] = "1813"
params['acct_server_shared_secret'] = "radius"
params['radius_auth_req_attr'] = [ "126:s:Operator", "77:s:testing" ]
params['radius_acct_req_attr'] = [ "126:s:Operator", "77:s:testing" ]
hostapd.add_ap(apdev[0]['ifname'], params)
hapd = hostapd.Hostapd(apdev[0]['ifname'])
connect(dev[0], "radius-acct")
dev[1].connect("radius-acct", key_mgmt="WPA-EAP", scan_freq="2412",
eap="PAX", identity="test-class",
password_hex="0123456789abcdef0123456789abcdef")
dev[2].connect("radius-acct", key_mgmt="WPA-EAP",
eap="GPSK", identity="gpsk-cui",
password="abcdefghijklmnop0123456789abcdef",
scan_freq="2412")
logger.info("Checking for RADIUS counters")
count = 0
while True:
mib = hapd.get_mib()
if int(mib['radiusAccClientResponses']) >= 3:
break
time.sleep(0.1)
count += 1
if count > 10:
raise Exception("Did not receive Accounting-Response packets")
if int(mib['radiusAccClientRetransmissions']) > 0:
raise Exception("Unexpected Accounting-Request retransmission")
as_mib_end = as_hapd.get_mib(param="radius_server")
req_s = int(as_mib_start['radiusAccServTotalRequests'])
req_e = int(as_mib_end['radiusAccServTotalRequests'])
if req_e < req_s + 2:
raise Exception("Unexpected RADIUS server acct MIB value")
acc_s = int(as_mib_start['radiusAuthServAccessAccepts'])
acc_e = int(as_mib_end['radiusAuthServAccessAccepts'])
if acc_e < acc_s + 1:
raise Exception("Unexpected RADIUS server auth MIB value")
def test_radius_acct_interim(dev, apdev):
"""RADIUS Accounting interim update"""
as_hapd = hostapd.Hostapd("as")
params = hostapd.wpa2_eap_params(ssid="radius-acct")
params['acct_server_addr'] = "127.0.0.1"
params['acct_server_port'] = "1813"
params['acct_server_shared_secret'] = "radius"
params['radius_acct_interim_interval'] = "1"
hostapd.add_ap(apdev[0]['ifname'], params)
hapd = hostapd.Hostapd(apdev[0]['ifname'])
connect(dev[0], "radius-acct")
logger.info("Checking for RADIUS counters")
as_mib_start = as_hapd.get_mib(param="radius_server")
time.sleep(3.1)
as_mib_end = as_hapd.get_mib(param="radius_server")
req_s = int(as_mib_start['radiusAccServTotalRequests'])
req_e = int(as_mib_end['radiusAccServTotalRequests'])
if req_e < req_s + 3:
raise Exception("Unexpected RADIUS server acct MIB value")
def test_radius_das_disconnect(dev, apdev):
"""RADIUS Dynamic Authorization Extensions - Disconnect"""
try:
import pyrad.client
import pyrad.packet
import pyrad.dictionary
import radius_das
except ImportError:
return "skip"
params = hostapd.wpa2_eap_params(ssid="radius-das")
params['radius_das_port'] = "3799"
params['radius_das_client'] = "127.0.0.1 secret"
params['radius_das_require_event_timestamp'] = "1"
params['own_ip_addr'] = "127.0.0.1"
params['nas_identifier'] = "nas.example.com"
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
connect(dev[0], "radius-das")
addr = dev[0].p2p_interface_addr()
sta = hapd.get_sta(addr)
id = sta['dot1xAuthSessionId']
dict = pyrad.dictionary.Dictionary("dictionary.radius")
srv = pyrad.client.Client(server="127.0.0.1", acctport=3799,
secret="secret", dict=dict)
srv.retries = 1
srv.timeout = 1
logger.info("Disconnect-Request with incorrect secret")
req = radius_das.DisconnectPacket(dict=dict, secret="incorrect",
User_Name="foo",
NAS_Identifier="localhost",
Event_Timestamp=int(time.time()))
logger.debug(req)
try:
reply = srv.SendPacket(req)
raise Exception("Unexpected response to Disconnect-Request")
except pyrad.client.Timeout:
logger.info("Disconnect-Request with incorrect secret properly ignored")
logger.info("Disconnect-Request without Event-Timestamp")
req = radius_das.DisconnectPacket(dict=dict, secret="secret",
User_Name="psk.user@example.com")
logger.debug(req)
try:
reply = srv.SendPacket(req)
raise Exception("Unexpected response to Disconnect-Request")
except pyrad.client.Timeout:
logger.info("Disconnect-Request without Event-Timestamp properly ignored")
logger.info("Disconnect-Request with non-matching Event-Timestamp")
req = radius_das.DisconnectPacket(dict=dict, secret="secret",
User_Name="psk.user@example.com",
Event_Timestamp=123456789)
logger.debug(req)
try:
reply = srv.SendPacket(req)
raise Exception("Unexpected response to Disconnect-Request")
except pyrad.client.Timeout:
logger.info("Disconnect-Request with non-matching Event-Timestamp properly ignored")
logger.info("Disconnect-Request with unsupported attribute")
req = radius_das.DisconnectPacket(dict=dict, secret="secret",
User_Name="foo",
User_Password="foo",
Event_Timestamp=int(time.time()))
reply = srv.SendPacket(req)
logger.debug("RADIUS response from hostapd")
for i in reply.keys():
logger.debug("%s: %s" % (i, reply[i]))
if reply.code != pyrad.packet.DisconnectNAK:
raise Exception("Unexpected response code")
if 'Error-Cause' not in reply:
raise Exception("Missing Error-Cause")
if reply['Error-Cause'][0] != 401:
raise Exception("Unexpected Error-Cause: {}".format(reply['Error-Cause']))
logger.info("Disconnect-Request with invalid Calling-Station-Id")
req = radius_das.DisconnectPacket(dict=dict, secret="secret",
User_Name="foo",
Calling_Station_Id="foo",
Event_Timestamp=int(time.time()))
reply = srv.SendPacket(req)
logger.debug("RADIUS response from hostapd")
for i in reply.keys():
logger.debug("%s: %s" % (i, reply[i]))
if reply.code != pyrad.packet.DisconnectNAK:
raise Exception("Unexpected response code")
if 'Error-Cause' not in reply:
raise Exception("Missing Error-Cause")
if reply['Error-Cause'][0] != 407:
raise Exception("Unexpected Error-Cause: {}".format(reply['Error-Cause']))
logger.info("Disconnect-Request with mismatching User-Name")
req = radius_das.DisconnectPacket(dict=dict, secret="secret",
User_Name="foo",
Event_Timestamp=int(time.time()))
reply = srv.SendPacket(req)
logger.debug("RADIUS response from hostapd")
for i in reply.keys():
logger.debug("%s: %s" % (i, reply[i]))
if reply.code != pyrad.packet.DisconnectNAK:
raise Exception("Unexpected response code")
if 'Error-Cause' not in reply:
raise Exception("Missing Error-Cause")
if reply['Error-Cause'][0] != 503:
raise Exception("Unexpected Error-Cause: {}".format(reply['Error-Cause']))
logger.info("Disconnect-Request with mismatching Calling-Station-Id")
req = radius_das.DisconnectPacket(dict=dict, secret="secret",
Calling_Station_Id="12:34:56:78:90:aa",
Event_Timestamp=int(time.time()))
reply = srv.SendPacket(req)
logger.debug("RADIUS response from hostapd")
for i in reply.keys():
logger.debug("%s: %s" % (i, reply[i]))
if reply.code != pyrad.packet.DisconnectNAK:
raise Exception("Unexpected response code")
if 'Error-Cause' not in reply:
raise Exception("Missing Error-Cause")
if reply['Error-Cause'][0] != 503:
raise Exception("Unexpected Error-Cause: {}".format(reply['Error-Cause']))
logger.info("Disconnect-Request with mismatching Acct-Session-Id")
req = radius_das.DisconnectPacket(dict=dict, secret="secret",
Acct_Session_Id="12345678-87654321",
Event_Timestamp=int(time.time()))
reply = srv.SendPacket(req)
logger.debug("RADIUS response from hostapd")
for i in reply.keys():
logger.debug("%s: %s" % (i, reply[i]))
if reply.code != pyrad.packet.DisconnectNAK:
raise Exception("Unexpected response code")
if 'Error-Cause' not in reply:
raise Exception("Missing Error-Cause")
if reply['Error-Cause'][0] != 503:
raise Exception("Unexpected Error-Cause: {}".format(reply['Error-Cause']))
ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"], timeout=1)
if ev is not None:
raise Exception("Unexpected disconnection")
logger.info("Disconnect-Request with mismatching NAS-IP-Address")
req = radius_das.DisconnectPacket(dict=dict, secret="secret",
NAS_IP_Address="192.168.3.4",
Acct_Session_Id=id,
Event_Timestamp=int(time.time()))
reply = srv.SendPacket(req)
logger.debug("RADIUS response from hostapd")
for i in reply.keys():
logger.debug("%s: %s" % (i, reply[i]))
if reply.code != pyrad.packet.DisconnectNAK:
raise Exception("Unexpected response code")
if 'Error-Cause' not in reply:
raise Exception("Missing Error-Cause")
if reply['Error-Cause'][0] != 403:
raise Exception("Unexpected Error-Cause: {}".format(reply['Error-Cause']))
logger.info("Disconnect-Request with mismatching NAS-Identifier")
req = radius_das.DisconnectPacket(dict=dict, secret="secret",
NAS_Identifier="unknown.example.com",
Acct_Session_Id=id,
Event_Timestamp=int(time.time()))
reply = srv.SendPacket(req)
logger.debug("RADIUS response from hostapd")
for i in reply.keys():
logger.debug("%s: %s" % (i, reply[i]))
if reply.code != pyrad.packet.DisconnectNAK:
raise Exception("Unexpected response code")
if 'Error-Cause' not in reply:
raise Exception("Missing Error-Cause")
if reply['Error-Cause'][0] != 403:
raise Exception("Unexpected Error-Cause: {}".format(reply['Error-Cause']))
ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"], timeout=1)
if ev is not None:
raise Exception("Unexpected disconnection")
logger.info("Disconnect-Request with matching Acct-Session-Id")
req = radius_das.DisconnectPacket(dict=dict, secret="secret",
NAS_IP_Address="127.0.0.1",
NAS_Identifier="nas.example.com",
Acct_Session_Id=id,
Event_Timestamp=int(time.time()))
reply = srv.SendPacket(req)
logger.debug("RADIUS response from hostapd")
for i in reply.keys():
logger.debug("%s: %s" % (i, reply[i]))
if reply.code != pyrad.packet.DisconnectACK:
raise Exception("Unexpected response code")
ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"])
if ev is None:
raise Exception("Timeout while waiting for disconnection")
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"])
if ev is None:
raise Exception("Timeout while waiting for re-connection")
logger.info("Disconnect-Request with matching User-Name")
req = radius_das.DisconnectPacket(dict=dict, secret="secret",
NAS_Identifier="nas.example.com",
User_Name="psk.user@example.com",
Event_Timestamp=int(time.time()))
reply = srv.SendPacket(req)
logger.debug("RADIUS response from hostapd")
for i in reply.keys():
logger.debug("%s: %s" % (i, reply[i]))
if reply.code != pyrad.packet.DisconnectACK:
raise Exception("Unexpected response code")
ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"])
if ev is None:
raise Exception("Timeout while waiting for disconnection")
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"])
if ev is None:
raise Exception("Timeout while waiting for re-connection")
logger.info("Disconnect-Request with matching Calling-Station-Id")
req = radius_das.DisconnectPacket(dict=dict, secret="secret",
NAS_IP_Address="127.0.0.1",
Calling_Station_Id=addr,
Event_Timestamp=int(time.time()))
reply = srv.SendPacket(req)
logger.debug("RADIUS response from hostapd")
for i in reply.keys():
logger.debug("%s: %s" % (i, reply[i]))
if reply.code != pyrad.packet.DisconnectACK:
raise Exception("Unexpected response code")
ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"])
if ev is None:
raise Exception("Timeout while waiting for disconnection")
ev = dev[0].wait_event(["CTRL-EVENT-EAP-STARTED", "CTRL-EVENT-CONNECTED"])
if ev is None:
raise Exception("Timeout while waiting for re-connection")
if "CTRL-EVENT-EAP-STARTED" not in ev:
raise Exception("Unexpected skipping of EAP authentication in reconnection")
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"])
if ev is None:
raise Exception("Timeout while waiting for re-connection to complete")
logger.info("Disconnect-Request with matching Calling-Station-Id and non-matching CUI")
req = radius_das.DisconnectPacket(dict=dict, secret="secret",
Calling_Station_Id=addr,
Chargeable_User_Identity="foo@example.com",
Event_Timestamp=int(time.time()))
reply = srv.SendPacket(req)
logger.debug("RADIUS response from hostapd")
for i in reply.keys():
logger.debug("%s: %s" % (i, reply[i]))
if reply.code != pyrad.packet.DisconnectACK:
raise Exception("Unexpected response code")
ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"])
if ev is None:
raise Exception("Timeout while waiting for disconnection")
ev = dev[0].wait_event(["CTRL-EVENT-CONNECTED"])
if ev is None:
raise Exception("Timeout while waiting for re-connection")
logger.info("Disconnect-Request with matching CUI")
dev[1].connect("radius-das", key_mgmt="WPA-EAP",
eap="GPSK", identity="gpsk-cui",
password="abcdefghijklmnop0123456789abcdef",
scan_freq="2412")
req = radius_das.DisconnectPacket(dict=dict, secret="secret",
Chargeable_User_Identity="gpsk-chargeable-user-identity",
Event_Timestamp=int(time.time()))
reply = srv.SendPacket(req)
logger.debug("RADIUS response from hostapd")
for i in reply.keys():
logger.debug("%s: %s" % (i, reply[i]))
if reply.code != pyrad.packet.DisconnectACK:
raise Exception("Unexpected response code")
ev = dev[1].wait_event(["CTRL-EVENT-DISCONNECTED"])
if ev is None:
raise Exception("Timeout while waiting for disconnection")
ev = dev[1].wait_event(["CTRL-EVENT-CONNECTED"])
if ev is None:
raise Exception("Timeout while waiting for re-connection")
ev = dev[0].wait_event(["CTRL-EVENT-DISCONNECTED"], timeout=1)
if ev is not None:
raise Exception("Unexpected disconnection")
def test_radius_das_coa(dev, apdev):
"""RADIUS Dynamic Authorization Extensions - CoA"""
try:
import pyrad.client
import pyrad.packet
import pyrad.dictionary
import radius_das
except ImportError:
return "skip"
params = hostapd.wpa2_eap_params(ssid="radius-das")
params['radius_das_port'] = "3799"
params['radius_das_client'] = "127.0.0.1 secret"
params['radius_das_require_event_timestamp'] = "1"
hapd = hostapd.add_ap(apdev[0]['ifname'], params)
connect(dev[0], "radius-das")
addr = dev[0].p2p_interface_addr()
sta = hapd.get_sta(addr)
id = sta['dot1xAuthSessionId']
dict = pyrad.dictionary.Dictionary("dictionary.radius")
srv = pyrad.client.Client(server="127.0.0.1", acctport=3799,
secret="secret", dict=dict)
srv.retries = 1
srv.timeout = 1
# hostapd does not currently support CoA-Request, so NAK is expected
logger.info("CoA-Request with matching Acct-Session-Id")
req = radius_das.CoAPacket(dict=dict, secret="secret",
Acct_Session_Id=id,
Event_Timestamp=int(time.time()))
reply = srv.SendPacket(req)
logger.debug("RADIUS response from hostapd")
for i in reply.keys():
logger.debug("%s: %s" % (i, reply[i]))
if reply.code != pyrad.packet.CoANAK:
raise Exception("Unexpected response code")
if 'Error-Cause' not in reply:
raise Exception("Missing Error-Cause")
if reply['Error-Cause'][0] != 405:
raise Exception("Unexpected Error-Cause: {}".format(reply['Error-Cause']))
def test_radius_ipv6(dev, apdev):
"""RADIUS connection over IPv6"""
params = {}
params['ssid'] = 'as'
params['beacon_int'] = '2000'
params['radius_server_clients'] = 'auth_serv/radius_clients_ipv6.conf'
params['radius_server_ipv6'] = '1'
params['radius_server_auth_port'] = '18129'
params['radius_server_acct_port'] = '18139'
params['eap_server'] = '1'
params['eap_user_file'] = 'auth_serv/eap_user.conf'
params['ca_cert'] = 'auth_serv/ca.pem'
params['server_cert'] = 'auth_serv/server.pem'
params['private_key'] = 'auth_serv/server.key'
hostapd.add_ap(apdev[1]['ifname'], params)
params = hostapd.wpa2_eap_params(ssid="radius-ipv6")
params['auth_server_addr'] = "::0"
params['auth_server_port'] = "18129"
params['acct_server_addr'] = "::0"
params['acct_server_port'] = "18139"
params['acct_server_shared_secret'] = "radius"
params['own_ip_addr'] = "::0"
hostapd.add_ap(apdev[0]['ifname'], params)
connect(dev[0], "radius-ipv6")
def test_radius_macacl(dev, apdev):
"""RADIUS MAC ACL"""
params = hostapd.radius_params()
params["ssid"] = "radius"
params["macaddr_acl"] = "2"
hostapd.add_ap(apdev[0]['ifname'], params)
dev[0].connect("radius", key_mgmt="NONE", scan_freq="2412")
| 43.911704
| 95
| 0.627309
| 2,573
| 21,385
| 5.099495
| 0.102215
| 0.062953
| 0.058532
| 0.03704
| 0.807179
| 0.784087
| 0.77174
| 0.746361
| 0.724487
| 0.69263
| 0
| 0.023765
| 0.24246
| 21,385
| 486
| 96
| 44.002058
| 0.786173
| 0.023287
| 0
| 0.70892
| 0
| 0
| 0.305743
| 0.054076
| 0
| 0
| 0
| 0
| 0
| 1
| 0.021127
| false
| 0.011737
| 0.030516
| 0
| 0.056338
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
d172989417627bb938ab44782edc52713c20130d
| 53,663
|
py
|
Python
|
awx/main/south_migrations/0038_v148_changes.py
|
alexander-bauer/awx
|
d1319b739406dad988f97c41cb92093f180ba822
|
[
"Apache-2.0"
] | 1
|
2021-06-11T20:01:06.000Z
|
2021-06-11T20:01:06.000Z
|
awx/main/south_migrations/0038_v148_changes.py
|
alexander-bauer/awx
|
d1319b739406dad988f97c41cb92093f180ba822
|
[
"Apache-2.0"
] | 4
|
2020-04-29T23:03:16.000Z
|
2022-03-01T23:56:09.000Z
|
awx/main/south_migrations/0038_v148_changes.py
|
alexander-bauer/awx
|
d1319b739406dad988f97c41cb92093f180ba822
|
[
"Apache-2.0"
] | 1
|
2018-06-06T08:47:22.000Z
|
2018-06-06T08:47:22.000Z
|
# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
'''
Rename tables/columns to be consistent with model/field names.
'''
def forwards(self, orm):
db.rename_table(u'main_projectnew', 'main_project')
db.rename_table(u'main_projectupdatenew', 'main_projectupdate')
db.rename_table(u'main_inventorysourcenew', 'main_inventorysource')
db.rename_table(u'main_inventoryupdatenew', 'main_inventoryupdate')
db.rename_table(u'main_jobtemplatenew', 'main_jobtemplate')
db.rename_table(u'main_jobnew', 'main_job')
db.rename_table(db.shorten_name(u'main_team_new_projects'), db.shorten_name(u'main_team_projects'))
db.rename_column(db.shorten_name(u'main_team_projects'), 'projectnew_id', 'project_id')
db.rename_table(db.shorten_name(u'main_organization_new_projects'), db.shorten_name(u'main_organization_projects'))
db.rename_column(db.shorten_name(u'main_organization_projects'), 'projectnew_id', 'project_id')
db.rename_column(u'main_permission', 'new_project_id', 'project_id')
db.rename_column(u'main_host', 'new_last_job_id', 'last_job_id')
db.rename_table(db.shorten_name(u'main_host_new_inventory_sources'), db.shorten_name(u'main_host_inventory_sources'))
db.rename_column(db.shorten_name(u'main_host_inventory_sources'), 'inventorysourcenew_id', 'inventorysource_id')
db.rename_table(db.shorten_name(u'main_group_new_inventory_sources'), db.shorten_name(u'main_group_inventory_sources'))
db.rename_column(db.shorten_name(u'main_group_inventory_sources'), 'inventorysourcenew_id', 'inventorysource_id')
db.rename_column(u'main_jobhostsummary', 'new_job_id', 'job_id')
db.rename_column(u'main_jobevent', 'new_job_id', 'job_id')
db.rename_table(db.shorten_name(u'main_activitystream_new_project'), db.shorten_name(u'main_activitystream_project'))
db.rename_column(db.shorten_name(u'main_activitystream_project'), 'projectnew_id', 'project_id')
db.rename_table(db.shorten_name(u'main_activitystream_new_project_update'), db.shorten_name(u'main_activitystream_project_update'))
db.rename_column(db.shorten_name(u'main_activitystream_project_update'), 'projectupdatenew_id', 'projectupdate_id')
db.rename_table(db.shorten_name(u'main_activitystream_new_inventory_source'), db.shorten_name(u'main_activitystream_inventory_source'))
db.rename_column(db.shorten_name(u'main_activitystream_inventory_source'), 'inventorysourcenew_id', 'inventorysource_id')
db.rename_table(db.shorten_name(u'main_activitystream_new_inventory_update'), db.shorten_name(u'main_activitystream_inventory_update'))
db.rename_column(db.shorten_name(u'main_activitystream_inventory_update'), 'inventoryupdatenew_id', 'inventoryupdate_id')
db.rename_table(db.shorten_name(u'main_activitystream_new_job_template'), db.shorten_name(u'main_activitystream_job_template'))
db.rename_column(db.shorten_name(u'main_activitystream_job_template'), 'jobtemplatenew_id', 'jobtemplate_id')
db.rename_table(db.shorten_name(u'main_activitystream_new_job'), db.shorten_name(u'main_activitystream_job'))
db.rename_column(db.shorten_name(u'main_activitystream_job'), 'jobnew_id', 'job_id')
def backwards(self, orm):
db.rename_column(db.shorten_name(u'main_activitystream_job'), 'job_id', 'jobnew_id')
db.rename_table(db.shorten_name(u'main_activitystream_job'), db.shorten_name(u'main_activitystream_new_job'))
db.rename_column(db.shorten_name(u'main_activitystream_job_template'), 'jobtemplate_id', 'jobtemplatenew_id')
db.rename_table(db.shorten_name(u'main_activitystream_job_template'), db.shorten_name(u'main_activitystream_new_job_template'))
db.rename_column(db.shorten_name(u'main_activitystream_inventory_update'), 'inventoryupdate_id', 'inventoryupdatenew_id')
db.rename_table(db.shorten_name(u'main_activitystream_inventory_update'), db.shorten_name(u'main_activitystream_new_inventory_update'))
db.rename_column(db.shorten_name(u'main_activitystream_inventory_source'), 'inventorysource_id', 'inventorysourcenew_id')
db.rename_table(db.shorten_name(u'main_activitystream_inventory_source'), db.shorten_name(u'main_activitystream_new_inventory_source'))
db.rename_column(db.shorten_name(u'main_activitystream_project_update'), 'projectupdate_id', 'projectupdatenew_id')
db.rename_table(db.shorten_name(u'main_activitystream_project_update'), db.shorten_name(u'main_activitystream_new_project_update'))
db.rename_column(db.shorten_name(u'main_activitystream_project'), 'project_id', 'projectnew_id')
db.rename_table(db.shorten_name(u'main_activitystream_project'), db.shorten_name(u'main_activitystream_new_project'))
db.rename_column(u'main_jobevent', 'job_id', 'new_job_id')
db.rename_column(u'main_jobhostsummary', 'job_id', 'new_job_id')
db.rename_column(db.shorten_name(u'main_group_inventory_sources'), 'inventorysource_id', 'inventorysourcenew_id')
db.rename_table(db.shorten_name(u'main_group_inventory_sources'), db.shorten_name(u'main_group_new_inventory_sources'))
db.rename_column(db.shorten_name(u'main_host_inventory_sources'), 'inventorysource_id', 'inventorysourcenew_id')
db.rename_table(db.shorten_name(u'main_host_inventory_sources'), db.shorten_name(u'main_host_new_inventory_sources'))
db.rename_column(u'main_host', 'last_job_id', 'new_last_job_id')
db.rename_column(u'main_permission', 'project_id', 'new_project_id')
db.rename_column(db.shorten_name(u'main_organization_projects'), 'project_id', 'projectnew_id')
db.rename_table(db.shorten_name(u'main_organization_projects'), db.shorten_name(u'main_organization_new_projects'))
db.rename_column(db.shorten_name(u'main_team_projects'), 'project_id', 'projectnew_id')
db.rename_table(db.shorten_name(u'main_team_projects'), db.shorten_name(u'main_team_new_projects'))
db.rename_table(u'main_job', 'main_jobnew')
db.rename_table(u'main_jobtemplate', 'main_jobtemplatenew')
db.rename_table(u'main_inventoryupdate', 'main_inventoryupdatenew')
db.rename_table(u'main_inventorysource', 'main_inventorysourcenew')
db.rename_table(u'main_projectupdate', 'main_projectupdatenew')
db.rename_table(u'main_project', 'main_projectnew')
models = {
u'auth.group': {
'Meta': {'object_name': 'Group'},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '80'}),
'permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'})
},
u'auth.permission': {
'Meta': {'ordering': "(u'content_type__app_label', u'content_type__model', u'codename')", 'unique_together': "((u'content_type', u'codename'),)", 'object_name': 'Permission'},
'codename': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['contenttypes.ContentType']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '50'})
},
u'auth.user': {
'Meta': {'object_name': 'User'},
'date_joined': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'email': ('django.db.models.fields.EmailField', [], {'max_length': '75', 'blank': 'True'}),
'first_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'groups': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Group']", 'symmetrical': 'False', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'is_active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'is_staff': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'is_superuser': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'last_login': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'last_name': ('django.db.models.fields.CharField', [], {'max_length': '30', 'blank': 'True'}),
'password': ('django.db.models.fields.CharField', [], {'max_length': '128'}),
'user_permissions': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
'username': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '30'})
},
u'contenttypes.contenttype': {
'Meta': {'ordering': "('name',)", 'unique_together': "(('app_label', 'model'),)", 'object_name': 'ContentType', 'db_table': "'django_content_type'"},
'app_label': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'model': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
},
'main.activitystream': {
'Meta': {'object_name': 'ActivityStream'},
'actor': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'activity_stream'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'changes': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'credential': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Credential']", 'symmetrical': 'False', 'blank': 'True'}),
'group': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Group']", 'symmetrical': 'False', 'blank': 'True'}),
'host': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Host']", 'symmetrical': 'False', 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'inventory': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Inventory']", 'symmetrical': 'False', 'blank': 'True'}),
'inventory_source': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.InventorySource']", 'symmetrical': 'False', 'blank': 'True'}),
'inventory_update': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.InventoryUpdate']", 'symmetrical': 'False', 'blank': 'True'}),
'job': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Job']", 'symmetrical': 'False', 'blank': 'True'}),
'job_template': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.JobTemplate']", 'symmetrical': 'False', 'blank': 'True'}),
'object1': ('django.db.models.fields.TextField', [], {}),
'object2': ('django.db.models.fields.TextField', [], {}),
'object_relationship_type': ('django.db.models.fields.TextField', [], {'blank': 'True'}),
'operation': ('django.db.models.fields.CharField', [], {'max_length': '13'}),
'organization': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Organization']", 'symmetrical': 'False', 'blank': 'True'}),
'permission': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Permission']", 'symmetrical': 'False', 'blank': 'True'}),
'project': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Project']", 'symmetrical': 'False', 'blank': 'True'}),
'project_update': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.ProjectUpdate']", 'symmetrical': 'False', 'blank': 'True'}),
'schedule': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Schedule']", 'symmetrical': 'False', 'blank': 'True'}),
'team': ('django.db.models.fields.related.ManyToManyField', [], {'to': "orm['main.Team']", 'symmetrical': 'False', 'blank': 'True'}),
'timestamp': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'unified_job': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'activity_stream_as_unified_job+'", 'blank': 'True', 'to': "orm['main.UnifiedJob']"}),
'unified_job_template': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'activity_stream_as_unified_job_template+'", 'blank': 'True', 'to': "orm['main.UnifiedJobTemplate']"}),
'user': ('django.db.models.fields.related.ManyToManyField', [], {'to': u"orm['auth.User']", 'symmetrical': 'False', 'blank': 'True'})
},
'main.authtoken': {
'Meta': {'object_name': 'AuthToken'},
'created': ('django.db.models.fields.DateTimeField', [], {'auto_now_add': 'True', 'blank': 'True'}),
'expires': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime.now'}),
'key': ('django.db.models.fields.CharField', [], {'max_length': '40', 'primary_key': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'auto_now': 'True', 'blank': 'True'}),
'request_hash': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '40', 'blank': 'True'}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'auth_tokens'", 'to': u"orm['auth.User']"})
},
'main.credential': {
'Meta': {'unique_together': "[('user', 'team', 'kind', 'name')]", 'object_name': 'Credential'},
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'cloud': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'credential\', \'app_label\': \'main\'}(class)s_created+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'kind': ('django.db.models.fields.CharField', [], {'default': "'ssh'", 'max_length': '32'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'modified_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'credential\', \'app_label\': \'main\'}(class)s_modified+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '512'}),
'password': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'ssh_key_data': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
'ssh_key_path': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'ssh_key_unlock': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'sudo_password': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'sudo_username': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'team': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'credentials'", 'null': 'True', 'blank': 'True', 'to': "orm['main.Team']"}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'credentials'", 'null': 'True', 'blank': 'True', 'to': u"orm['auth.User']"}),
'username': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'vault_password': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'})
},
'main.group': {
'Meta': {'unique_together': "(('name', 'inventory'),)", 'object_name': 'Group'},
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'group\', \'app_label\': \'main\'}(class)s_created+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
'groups_with_active_failures': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'has_active_failures': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'has_inventory_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'hosts': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'groups'", 'blank': 'True', 'to': "orm['main.Host']"}),
'hosts_with_active_failures': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'inventory': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'groups'", 'to': "orm['main.Inventory']"}),
'inventory_sources': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'groups'", 'symmetrical': 'False', 'to': "orm['main.InventorySource']"}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'modified_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'group\', \'app_label\': \'main\'}(class)s_modified+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '512'}),
'parents': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'children'", 'blank': 'True', 'to': "orm['main.Group']"}),
'total_groups': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'total_hosts': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'variables': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'})
},
'main.host': {
'Meta': {'unique_together': "(('name', 'inventory'),)", 'object_name': 'Host'},
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'host\', \'app_label\': \'main\'}(class)s_created+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'has_active_failures': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'has_inventory_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'instance_id': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '100', 'blank': 'True'}),
'inventory': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'hosts'", 'to': "orm['main.Inventory']"}),
'inventory_sources': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'hosts'", 'symmetrical': 'False', 'to': "orm['main.InventorySource']"}),
'last_job': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'hosts_as_last_job+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Job']"}),
'last_job_host_summary': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'hosts_as_last_job_summary+'", 'on_delete': 'models.SET_NULL', 'default': 'None', 'to': "orm['main.JobHostSummary']", 'blank': 'True', 'null': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'modified_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'host\', \'app_label\': \'main\'}(class)s_modified+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '512'}),
'variables': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'})
},
'main.inventory': {
'Meta': {'unique_together': "[('name', 'organization')]", 'object_name': 'Inventory'},
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'inventory\', \'app_label\': \'main\'}(class)s_created+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
'groups_with_active_failures': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'has_active_failures': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'has_inventory_sources': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'hosts_with_active_failures': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'inventory_sources_with_failures': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'modified_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'inventory\', \'app_label\': \'main\'}(class)s_modified+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '512'}),
'organization': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'inventories'", 'to': "orm['main.Organization']"}),
'total_groups': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'total_hosts': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'total_inventory_sources': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'variables': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'})
},
'main.inventorysource': {
'Meta': {'object_name': 'InventorySource', '_ormbases': ['main.UnifiedJobTemplate']},
'credential': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'inventorysources'", 'on_delete': 'models.SET_NULL', 'default': 'None', 'to': "orm['main.Credential']", 'blank': 'True', 'null': 'True'}),
'group': ('awx.main.fields.AutoOneToOneField', [], {'default': 'None', 'related_name': "'inventory_source'", 'unique': 'True', 'null': 'True', 'to': "orm['main.Group']"}),
'inventory': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'inventory_sources'", 'null': 'True', 'to': "orm['main.Inventory']"}),
'overwrite': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'overwrite_vars': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'source': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '32', 'blank': 'True'}),
'source_path': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'source_regions': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'source_vars': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
u'unifiedjobtemplate_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['main.UnifiedJobTemplate']", 'unique': 'True', 'primary_key': 'True'}),
'update_cache_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'update_on_launch': ('django.db.models.fields.BooleanField', [], {'default': 'False'})
},
'main.inventoryupdate': {
'Meta': {'object_name': 'InventoryUpdate', '_ormbases': ['main.UnifiedJob']},
'credential': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'inventoryupdates'", 'on_delete': 'models.SET_NULL', 'default': 'None', 'to': "orm['main.Credential']", 'blank': 'True', 'null': 'True'}),
'inventory_source': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'inventory_updates'", 'to': "orm['main.InventorySource']"}),
'license_error': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'overwrite': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'overwrite_vars': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'source': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '32', 'blank': 'True'}),
'source_path': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'source_regions': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'source_vars': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
u'unifiedjob_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['main.UnifiedJob']", 'unique': 'True', 'primary_key': 'True'})
},
'main.job': {
'Meta': {'object_name': 'Job', '_ormbases': ['main.UnifiedJob']},
'cloud_credential': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'jobs_as_cloud_credential+'", 'on_delete': 'models.SET_NULL', 'default': 'None', 'to': "orm['main.Credential']", 'blank': 'True', 'null': 'True'}),
'credential': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'jobs'", 'on_delete': 'models.SET_NULL', 'default': 'None', 'to': "orm['main.Credential']", 'blank': 'True', 'null': 'True'}),
'extra_vars': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
'forks': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'blank': 'True'}),
'hosts': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'jobs'", 'symmetrical': 'False', 'through': "orm['main.JobHostSummary']", 'to': "orm['main.Host']"}),
'inventory': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'jobs'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Inventory']"}),
'job_tags': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'job_template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'jobs'", 'on_delete': 'models.SET_NULL', 'default': 'None', 'to': "orm['main.JobTemplate']", 'blank': 'True', 'null': 'True'}),
'job_type': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
'limit': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'playbook': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024'}),
'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'jobs'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Project']"}),
u'unifiedjob_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['main.UnifiedJob']", 'unique': 'True', 'primary_key': 'True'}),
'verbosity': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'blank': 'True'})
},
'main.jobevent': {
'Meta': {'ordering': "('pk',)", 'object_name': 'JobEvent'},
'changed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'event': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
'event_data': ('jsonfield.fields.JSONField', [], {'default': '{}', 'blank': 'True'}),
'failed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'host': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'job_events_as_primary_host'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Host']"}),
'hosts': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'job_events'", 'symmetrical': 'False', 'to': "orm['main.Host']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'job': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'job_events'", 'to': "orm['main.Job']"}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'parent': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'children'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.JobEvent']"}),
'play': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024'}),
'role': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024'}),
'task': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024'})
},
'main.jobhostsummary': {
'Meta': {'ordering': "('-pk',)", 'unique_together': "[('job', 'host')]", 'object_name': 'JobHostSummary'},
'changed': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'dark': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'failed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'failures': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'host': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'job_host_summaries'", 'to': "orm['main.Host']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'job': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'job_host_summaries'", 'to': "orm['main.Job']"}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'ok': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'processed': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'skipped': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'})
},
'main.jobtemplate': {
'Meta': {'object_name': 'JobTemplate', '_ormbases': ['main.UnifiedJobTemplate']},
'cloud_credential': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'jobtemplates_as_cloud_credential+'", 'on_delete': 'models.SET_NULL', 'default': 'None', 'to': "orm['main.Credential']", 'blank': 'True', 'null': 'True'}),
'credential': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'jobtemplates'", 'on_delete': 'models.SET_NULL', 'default': 'None', 'to': "orm['main.Credential']", 'blank': 'True', 'null': 'True'}),
'extra_vars': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
'forks': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'blank': 'True'}),
'host_config_key': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'inventory': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'jobtemplates'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Inventory']"}),
'job_tags': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'job_type': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
'limit': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'playbook': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024'}),
'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'job_templates'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Project']"}),
u'unifiedjobtemplate_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['main.UnifiedJobTemplate']", 'unique': 'True', 'primary_key': 'True'}),
'verbosity': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0', 'blank': 'True'})
},
'main.organization': {
'Meta': {'object_name': 'Organization'},
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'admins': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'admin_of_organizations'", 'blank': 'True', 'to': u"orm['auth.User']"}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'organization\', \'app_label\': \'main\'}(class)s_created+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'modified_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'organization\', \'app_label\': \'main\'}(class)s_modified+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '512'}),
'projects': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'organizations'", 'blank': 'True', 'to': "orm['main.Project']"}),
'users': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'organizations'", 'blank': 'True', 'to': u"orm['auth.User']"})
},
'main.permission': {
'Meta': {'object_name': 'Permission'},
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'permission\', \'app_label\': \'main\'}(class)s_created+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'inventory': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'permissions'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Inventory']"}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'modified_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'permission\', \'app_label\': \'main\'}(class)s_modified+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '512'}),
'permission_type': ('django.db.models.fields.CharField', [], {'max_length': '64'}),
'project': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'permissions'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Project']"}),
'team': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'permissions'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Team']"}),
'user': ('django.db.models.fields.related.ForeignKey', [], {'blank': 'True', 'related_name': "'permissions'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"})
},
'main.profile': {
'Meta': {'object_name': 'Profile'},
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'ldap_dn': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'user': ('awx.main.fields.AutoOneToOneField', [], {'related_name': "'profile'", 'unique': 'True', 'to': u"orm['auth.User']"})
},
'main.project': {
'Meta': {'object_name': 'Project', '_ormbases': ['main.UnifiedJobTemplate']},
'credential': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'projects'", 'on_delete': 'models.SET_NULL', 'default': 'None', 'to': "orm['main.Credential']", 'blank': 'True', 'null': 'True'}),
'local_path': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'blank': 'True'}),
'scm_branch': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}),
'scm_clean': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'scm_delete_on_next_update': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'scm_delete_on_update': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'scm_type': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '8', 'blank': 'True'}),
'scm_update_cache_timeout': ('django.db.models.fields.PositiveIntegerField', [], {'default': '0'}),
'scm_update_on_launch': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'scm_url': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
u'unifiedjobtemplate_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['main.UnifiedJobTemplate']", 'unique': 'True', 'primary_key': 'True'})
},
'main.projectupdate': {
'Meta': {'object_name': 'ProjectUpdate', '_ormbases': ['main.UnifiedJob']},
'credential': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'projectupdates'", 'on_delete': 'models.SET_NULL', 'default': 'None', 'to': "orm['main.Credential']", 'blank': 'True', 'null': 'True'}),
'local_path': ('django.db.models.fields.CharField', [], {'max_length': '1024', 'blank': 'True'}),
'project': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'project_updates'", 'to': "orm['main.Project']"}),
'scm_branch': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '256', 'blank': 'True'}),
'scm_clean': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'scm_delete_on_update': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'scm_type': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '8', 'blank': 'True'}),
'scm_url': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
u'unifiedjob_ptr': ('django.db.models.fields.related.OneToOneField', [], {'to': "orm['main.UnifiedJob']", 'unique': 'True', 'primary_key': 'True'})
},
'main.schedule': {
'Meta': {'object_name': 'Schedule'},
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'schedule\', \'app_label\': \'main\'}(class)s_created+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
'dtend': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
'dtstart': ('django.db.models.fields.DateTimeField', [], {}),
'enabled': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'modified_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'schedule\', \'app_label\': \'main\'}(class)s_modified+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '512'}),
'next_run': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
'rrule': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
'unified_job_template': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'schedules'", 'to': "orm['main.UnifiedJobTemplate']"})
},
'main.team': {
'Meta': {'unique_together': "[('organization', 'name')]", 'object_name': 'Team'},
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'team\', \'app_label\': \'main\'}(class)s_created+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'modified_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'team\', \'app_label\': \'main\'}(class)s_modified+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '512'}),
'organization': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'teams'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Organization']"}),
'projects': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'teams'", 'blank': 'True', 'to': "orm['main.Project']"}),
'users': ('django.db.models.fields.related.ManyToManyField', [], {'symmetrical': 'False', 'related_name': "'teams'", 'blank': 'True', 'to': u"orm['auth.User']"})
},
'main.unifiedjob': {
'Meta': {'object_name': 'UnifiedJob'},
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'cancel_flag': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'celery_task_id': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '100', 'blank': 'True'}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'unifiedjob\', \'app_label\': \'main\'}(class)s_created+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'dependent_jobs': ('django.db.models.fields.related.ManyToManyField', [], {'related_name': "'dependent_jobs_rel_+'", 'to': "orm['main.UnifiedJob']"}),
'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
'elapsed': ('django.db.models.fields.DecimalField', [], {'max_digits': '12', 'decimal_places': '3'}),
'failed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'finished': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'job_args': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
'job_cwd': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '1024', 'blank': 'True'}),
'job_env': ('jsonfield.fields.JSONField', [], {'default': '{}', 'blank': 'True'}),
'launch_type': ('django.db.models.fields.CharField', [], {'default': "'manual'", 'max_length': '20'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'modified_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'unifiedjob\', \'app_label\': \'main\'}(class)s_modified+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '512'}),
'old_pk': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True'}),
'polymorphic_ctype': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'polymorphic_main.unifiedjob_set'", 'null': 'True', 'to': u"orm['contenttypes.ContentType']"}),
'result_stdout_file': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
'result_stdout_text': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
'result_traceback': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
'schedule': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'to': "orm['main.Schedule']", 'null': 'True', 'on_delete': 'models.SET_NULL'}),
'start_args': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
'started': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
'status': ('django.db.models.fields.CharField', [], {'default': "'new'", 'max_length': '20'}),
'unified_job_template': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'unifiedjob_unified_jobs'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.UnifiedJobTemplate']"})
},
'main.unifiedjobtemplate': {
'Meta': {'unique_together': "[('polymorphic_ctype', 'name')]", 'object_name': 'UnifiedJobTemplate'},
'active': ('django.db.models.fields.BooleanField', [], {'default': 'True'}),
'created': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'created_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'unifiedjobtemplate\', \'app_label\': \'main\'}(class)s_created+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'current_job': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'unifiedjobtemplate_as_current_job+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.UnifiedJob']"}),
'description': ('django.db.models.fields.TextField', [], {'default': "''", 'blank': 'True'}),
'has_schedules': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'last_job': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'unifiedjobtemplate_as_last_job+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.UnifiedJob']"}),
'last_job_failed': ('django.db.models.fields.BooleanField', [], {'default': 'False'}),
'last_job_run': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
'modified': ('django.db.models.fields.DateTimeField', [], {'default': 'None'}),
'modified_by': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': '"{\'class\': \'unifiedjobtemplate\', \'app_label\': \'main\'}(class)s_modified+"', 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': u"orm['auth.User']"}),
'name': ('django.db.models.fields.CharField', [], {'max_length': '512'}),
'next_job_run': ('django.db.models.fields.DateTimeField', [], {'default': 'None', 'null': 'True'}),
'next_schedule': ('django.db.models.fields.related.ForeignKey', [], {'default': 'None', 'related_name': "'unifiedjobtemplate_as_next_schedule+'", 'null': 'True', 'on_delete': 'models.SET_NULL', 'to': "orm['main.Schedule']"}),
'old_pk': ('django.db.models.fields.PositiveIntegerField', [], {'default': 'None', 'null': 'True'}),
'polymorphic_ctype': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "'polymorphic_main.unifiedjobtemplate_set'", 'null': 'True', 'to': u"orm['contenttypes.ContentType']"}),
'status': ('django.db.models.fields.CharField', [], {'default': "'ok'", 'max_length': '32'})
},
u'taggit.tag': {
'Meta': {'object_name': 'Tag'},
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'name': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '100'}),
'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '100'})
},
u'taggit.taggeditem': {
'Meta': {'object_name': 'TaggedItem'},
'content_type': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "u'taggit_taggeditem_tagged_items'", 'to': u"orm['contenttypes.ContentType']"}),
u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
'object_id': ('django.db.models.fields.IntegerField', [], {'db_index': 'True'}),
'tag': ('django.db.models.fields.related.ForeignKey', [], {'related_name': "u'taggit_taggeditem_items'", 'to': u"orm['taggit.Tag']"})
}
}
complete_apps = ['main']
| 107.111776
| 274
| 0.600991
| 5,715
| 53,663
| 5.464392
| 0.049694
| 0.084024
| 0.146595
| 0.209421
| 0.875116
| 0.848762
| 0.837267
| 0.805469
| 0.740241
| 0.667489
| 0
| 0.005374
| 0.153868
| 53,663
| 500
| 275
| 107.326
| 0.682399
| 0.001584
| 0
| 0.294606
| 0
| 0
| 0.604197
| 0.316717
| 0
| 0
| 0
| 0
| 0
| 1
| 0.004149
| false
| 0.008299
| 0.008299
| 0
| 0.018672
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
0f02045d7f8adc811c8ccf3d79fc65211614afab
| 377,639
|
py
|
Python
|
dataStore.py
|
lpmi-13/tinderflow-python
|
be7c923fec0ffb1054112fb246b102fe476472e4
|
[
"MIT"
] | 1
|
2018-01-09T20:01:39.000Z
|
2018-01-09T20:01:39.000Z
|
dataStore.py
|
lpmi-13/tinderflow-python
|
be7c923fec0ffb1054112fb246b102fe476472e4
|
[
"MIT"
] | 1
|
2021-06-03T22:34:56.000Z
|
2021-06-03T22:34:56.000Z
|
dataStore.py
|
lpmi-13/tinderflow-python
|
be7c923fec0ffb1054112fb246b102fe476472e4
|
[
"MIT"
] | null | null | null |
textArray = ['Improve description', 'Explain a bit better what the extension does.', 'Update icons', 'Fix lint problems', "Don't record time when the window is not active", 'Merge pull request #1 from andreea-lucau/add_watch', 'Update based on comments', 'Update based on comments', 'More stuff', 'Move all url manipulation in background.js', 'Initial commit for the Watch plugin', 'Initial commit', 'fix typo', 'Replaced Grounder::Assignments now uses generic mapping_iterator.', 'NF distributes conjunctions over K and disjunctions over M.', 'Fixed: split_order_matters optimisation in Solver::Split was unsound.', 'PDL: Implication operator is right-associative.', 'Google Test now included through CMake.', 'Renamed LELA to Limbo.', 'Fixed: Minesweeper error visualization bug.', 'Fixed: custom Sudoku bug.', 'Fixed: Solver::Assign() should check subsumption in original setup.', "Javascript TUI has 'demo' mode (blocks next command).", 'Code formatting.', 'Improved Javascript TUI and CMakeLists.', 'TUI prints normalised formulas now; fixed PRINT_ABBREVIATIONS.', 'Javascript TUI is now interactive.', 'Fixed several C++ concepts.', 'Fixed: Solver::kNoConsistencyGuarantee had wrong value.', 'Added interactive mode to TUI.', 'Cleaned up includes and ifdefs.', 'Setup::PropagateUnit[s], Setup::Add[Unit|Clause] assert non-[in]valid.', 'Moved Sudokus to a separate text file.', 'Copyright, License, a little cleanup.', 'Setup::Subsumes() holds for valid clauses.', 'Clause::valid() now includes t/=n1, t/=n2 cases.', 'Clause::valid() now includes the case where it contains t_1=t_2 and t_1/=t_2.', 'Disabled end-game clauses in Minesweeper.', 'Slightly simplified Term::Subsumes(); added test for G.', 'Fixed: wrong operator<() for [int|array]_iterator.', 'Renamed minesweeper and textinterface examples; cleaned up.', 'Improved Minesweeper visualization.', 'Fixed: order of splits matters for Solver::Determines().', 'Minesweeper optionally uses Solver::Determines() now.', 'Sudoku now uses Solver::Determines() for faster queries.', 'KnowledgeBase uses Solver::Determines() to optimize simple queries.', 'Added Solver::Determines().', 'Added Grounder::[PrepareForQuery|RelevantSplitTerms]() for term queries.', 'Fixed: missing lhs in Setup::Units::Determines().', 'Fixed some layout issues in Javascript demos, especially Minesweeper.', 'New web-interface for Minesweeper.', 'Documentation.', "Fixed: internal::HashSet() didn't test removed-flag.", 'Solver::Split() avoid redundant split combinations.', 'Cleaned up Setup::ShallowCopy and friends; cpplint.', 'Added Setup::[Locally]Consistent().', 'Added Setup::Determines().', 'Reimplemented (first part of) Setup with watched literals.', "Added #ifdef's to enable/disable bloom filters.", 'Rewrote Clause::Subsumes(), Clause::PropagateUnit[s]().', 'Clause uses custom stack plus arrays now.', 'Fixed: when assume_consistent, Solver::Assign() must not test [].', 'Fixed: undeclared variables in quantifiers crashed text interface.', "Fixed: Formula::Exists::Rectify() didn't register variables.", 'Removed some redundant Setup::enabled() calls.', 'Minesweeper JS is compiled for growing memory now.', 'Added consistency modality G.', 'Readme.', 'Fixed: Solver::Consistent() did not fully use consistency guarantee.', 'Fixed: Solver::Consistent() did not fully use consistency guarantee.', "Merge branch 'master' into wsc", 'Fixed: KnowledgeBase::BuildSpheres() omitted last pl-cons sphere.', 'Term::[Complementary|Subsumes]() use bitwise operations.', "Merge branch 'master' into wsc", 'Rewrote/added Grounder::[Relevant]LiteralAssignments().', 'Added 32 bit hash functions.', 'Added [Term|Literal]::Unify(), [Term|Literal]::Bisimilar().', 'Revising Grounder::AssignmentLiterals().', 'Extended name API to have arguments.', 'Fixed: singletons crashed Javascript version.', 'Simplified Literal representation.', 'Factories are singletons; Terms are 32 bit, Literals are 64 bit.', 'Added closed hashtable.', 'Removed Comparators.', 'Minesweeper first looks at points near the last move.', 'Term::hash() is now deterministic wrt Term::Factory. Added Sudokus.', 'Added Sudoku test.', 'Added closed HashSet for Clauses.', 'Added missing Sudoku files.', 'Restructured Sudoku agent.', 'Added debug output for conditional beliefs.', 'Improved web-version of Sudoku.', 'Improved web-version of Sudoku.', 'Added web-version of Sudoku.', 'Added standalone Sudoku agent.', 'Added Sudokus.', 'Added some newspaper Sudokus.', 'Added Grounder::Split(), which caches split setups.', 'Added callbacks to suppress query logging.', 'Restored accidentally deleted example files.', 'Sudoku.', 'Restructured battleship examples.', 'Extended PDL control structures.', 'Battleship 4x4.', 'Battleship 1x4.', 'Very simple version of battleship.', 'Fixed: two and a half bugs in Formula::Flatten().', 'Added Context::CreateTerm().', 'Some work towards Battleship.', 'Copyright notice.', 'Started battleship engine.', 'Added callbacks.', 'Added if/else as well as while and for loops.', 'Moved Context out of Parser.', 'Parser is action-based now.', 'Started battleship modelling.', 'Representation theorem re-uses dummy names.', 'Readme and documentation.', 'Updated documentation of text-interface.', 'Readme.', 'Added missing CMake file.', 'Fixed: GCC errors in Parser::Token() and Parser::Result::operator<<().', "Fixed: GCC's control reaches end of non-void function warnings.", 'Fixed: relied on order of argument evaluation in Formula::Bel ctor.', 'Removed end-of-line-marker (semicolon) from PDL.', 'Fixed: Grounder::AssignLiterals() missed literals.', "Fixed: Res operator didn't handly no-free-vars case correctly.", 'C++11 suffices.', 'Fixed: parser bug for conditionals.', 'Fixed a few small bugs; updated PDL.', 'Fixed: generation of system of spheres.', 'Fixed: Formula::Bel needs ternary ctor to keep normalization alive.', 'Fixed: split terms / assign literals may be empty for trivial formulas.', 'Implemented representation theorem for modal operators.', 'Slightly improved minesweeper evaluation and web interface.', 'Added modal operators to formulas.', 'Fixed: iOS Minesweeper display bug.', 'Sudokku attempt.', 'Simplified Clause::Subsumes(); added average Minesweeper move time to eval.sh.', 'Simplified bloom filter hash functions.', "Improved parser's error reporting.", 'Added static_assert()ions to check iterator categories.', 'Slightly extended tests.', 'Fixed: bug in Formula::Normalize(); improved Formula::Flatten().', 'Fixed: Formula::Flatten() handled positive literals like definitions.', 'Parser now supports implication, equivalence; also in KB.', 'Fixed: Formula::Flatten() skips non-quasiprimitive function-free atoms.', 'Unit tests.', 'Removed Grounder::PlusSplitNames().', 'Added Formula::Flatten() to Formula::NF().', 'Rewrote Formula.', 'Cleanup.', 'Added some experiments to find good bucket size.', 'Setup revision finished.', 'Ongoing Setup revision.', 'Ongoing Setup revision.', 'Started Setup revision.', 'Restructured BloomFilter, added BloomSet.', 'Restructured bloom filter.', 'Using impl traits for iterators.', 'Cargo file.', 'Started Setup.', 'Refactoring.', 'Substitution with traits.', 'Substitution with FnBox (not working yet).', 'Term iterators.', 'Terms filter.', 'Clause.', 'FNV-1a Hasher.', 'Fixed: Minesweeper visualization on Chrome.', 'Bloom filter.', 'Added Literal and a few Term methods.', 'Rewrite attempt in Rust.', 'Cleanup.', 'Cleaned up copy/move constructors/assignment.', 'Replaced virtual class with template paramter for logging.', 'Parser is now part of the library in format namespace.', 'Text interface file/stdin can be combined.', 'Corrected sort ENTITIY/HUMAN in examples.', 'Setup::occurs_ is now std::unsorted_multimap.', 'Renamed internal::hash() to fnv1a_hash(); added BloomFilter::hash().', 'Removed flatten_range(), unique_filter.', 'Grounder::TermSet, Grounder::LiteralSet are now std::unordered_sets.', 'Cleaned up a includes.', 'Generalised flatten_iterator.', 'Term::Factory, Grounder::Assignments::Assignment use unordered_map now.', 'Formula::Substitute() does not substitute bound variables.', "Added traits to allow transform_iterator's function work with iterators.", 'Fixed: Formula::Element::operator= non-const reference problem.', 'CMake; examples.', 'Changed includes to make cpplint happy.', 'Textinterface helps with unit tests.', 'Two simple tests for textinterface.', 'Fixed: too few split names were considered (again!).', 'Added assertions, comments to text interface.', 'Cleaned up previous code fix.', 'Improved web-interface; added alternatives for operators.', 'Using only one name for BOOL sort.', 'Fixed: too few split names were considered.', 'Dropped "False" value from boolean sorts.', 'Text interface reads from standard input.', 'Fixed iterator_categories (hopefully).', 'Minesweeper demo runs (fake) asynchronously now.', 'Added Minesweeper web demo.', 'Improved text interface grammar.', 'Nicer HTML/Javascript demo.', 'Javascript binding for text-interface.', 'Implemented KB, formulas, abbreviations, queries.', 'Fixed: Solver::Reduce() accidentally negated disjuncts.', 'Better error reporting.', 'Ongoing new parser.', 'Writing a new parser.', 'Abandoning Boost Spirit.', 'Started parser.', 'Fixed: Term::hash() also works for 32 bit.', 'Replaced Solver::EntailsComplete() with Solver::Consistent().', 'Cleanup.', 'Readme.', 'Cleanup.', 'Readme.', 'Fixed two bugs in Grounder.', 'Rewrote Grounder::AssignLiterals().', 'Fixed a few bugs in Solver::EntailsComplete().', 'Fixed splitting-query-substitution bug', 'First version of Grounder::AssignTerms().', 'Lazy version of Grounder::SplitTerms().', 'Fixed compiler errors in old GCC.', 'Fixed Clause unit test.', 'Started complete semantics.', 'Renamed KB to Solver, Maybe::succ to yes; bool conversion explicit.', 'Cleanup.', 'Added Grounder::RelevantSplitTerms.', 'Difference between old and new minesweeper is bug in old one.', 'Grounder avoids additional names in cases like the Bool simulation.', 'Fixed: inheriting Setups are kept minimal.', 'Cleaned up Minesweeper.', 'Replaced incr_iterator with int_iterator.', 'Fixed: iterators did not adhere to InputIterator concept.', 'Grounder avoids regrounding after AddClause(), PrepareFor().', 'Started minesweeper example.', 'Restructured code again.', 'Restructured code.', 'KB implements (almost) LBF semantics.', 'Added IntMap unit test.', 'Unit test for iterator; symbol registration for pretty printer.', 'Started KB class.', 'Grounder::SortedNames is an IntMap instead of std::multimap now.', 'Added Formula::Reader::NF().', 'Refactored pretty printer; added higher-level syntax layer.', "Merge branch 'master' of https://github.com/schwering/lela into bolf", "Fixed: Grounder's treatment of additional names for splitting.", 'Fixed: BloomFilter::hash() only used half of the bytes.', 'Fixed Grounder::SplitTerms() to consider non-primitive terms in query.', 'Refactored unit tests to allow for FRIEND_TEST().', 'Cpplint.', 'Fixed Lemma 8 bug in Grounder; redesigned assignments iterators.', 'Grounder unit test.', 'Fixed a bug in Setup::Minimize().', 'Grounder now has a state.', 'Grounder can now incorporate names and variables of Formula.', 'Substitution in formulas.', 'Fixed a few issues in Formula.', 'Added basic formulas.', 'Renamed test classes.', 'Reordered static methods.', 'Readme.', 'Readme.', 'Little work on formulas.', 'Setup::LocallyConsistent() only considers transitive closur of literals.', 'nullptr and consistent use of default ctor/dtors.', 'Introduced symbol and term factories.', 'Merged Ground() and Substitute().', 'Grounder.', 'Renamed Term::Collect and friends Term::Traverse with simpler interface.', 'Started with the grounder.', 'Workaround for clang error with typedef in IntMap.', 'Setup::primitive_terms() only considers occurring clauses.', 'Cleanup', 'Some documentation.', 'Removed legacy files.', 'Rewrote iterators templates and setup iterators. Fixed unit propagation.', 'Bloomfilter; tests.', 'Unit test for clauses and setups, bugfixes.', 'Unit test for bloom filter and literals.', 'Unit test for terms.', 'Bloom filters.', 'Revised iterators.', 'Setup data structure is hopefully more sophisticated.', 'Setups', 'Lots of minor changes and little progress towards LBF/BOLF.', 'Added BucketMap.', 'Continuing rewrite.', 'Rewrite for BOLF has begun.', 'Removed actions.', 'Fixed: conditional propagation in belief setups.', 'Removed obsolete function declaration.', 'Fixed: Setup::Entails() for counterfactuals.', 'Minesweeper skips consistency check; added statistics script.', 'Setup::AddClauseWithoutConsistencyCheck() is public now.', 'Fixed: inconsistency check in Setup::AddClause() was incomplete', 'Minesweeper: cosmetic changes, added evaluation script.', 'Minesweeper: inspected fields are ordered heuristically.', 'Minesweeper: fixed non-square field bug; tweaked params for performance.', 'Minesweeper considers remaining mines at the end; fixed bugs.', 'Minesweeper agent plays more rationally when nothing is known.', 'Minesweeper agent plays autonomously.', 'Minesweeper now has colorful output.', 'Added a simple minesweeper example.', 'Updated README for legacy v1.', 'Removed README for now.', 'Readme.', '[z] K phi now works for unit propagation.', 'Renamed ESBL to LELA.', 'Objective level literals in Formulas get special treatment.', 'Further tried profiling Eval nodes.', 'Eval literals in formulas and CNF to invert evaluation order.', 'Refactored Formula, introduced BasicActionTheory class.', 'Made cpplint happy.', 'Simplified code structure in Formula.', 'Several small API changes.', 'Refactored Formula, introduces explicitly objective formulas.', 'Fixed: Formula::Minimize() and ResolveLiterals().', 'Completed implementation of Reprensetation Theorem.', 'Continued implementation of Representation Theorem.', 'Continued implementation of Representation Theorem.', 'Fixed: compiler errors due to -D_GLIBCXX_CONCEPT_CHECKS.', 'Began implementation of Representation Theorem.', 'Implemented [Knowledge|Belief]::Regress().', 'Rearranged formula.cc, added folding.', 'Added Setup::Progress(). Fixed bugs in [Simple]Clause::ResolveWrt().', 'Removed Clause::Unify().', 'Added Clause::ResolveWrt(), which supersedes Clause::ResolveWithUnit().', 'Added methods to Literal::Comparator for search by PredId.', 'Replaced Clause::[MIN|MAX]_UNIT with Clause::Set::first_unit().', 'Literal::Set considers sign 2nd prio in comparator; ranges for loops.', 'Moved [Low|Upp]erBound() to comparators.', 'Renamed some comparators.', 'Introduced comparators.', 'Renamed is_ground() to ground().', 'Inlined operator==, operator<.', 'Removed unused operators/methods; typedefed all sets.', 'Removed old outcommented code.', 'Updated examples to use [en|dis]able_regression/1.', 'Added SfLiteral subclass.', 'Box clauses are not instantiated for {} and added immediately.', 'Setup::AddClause() takes over the task of Setup::AddSensingResult().', 'Prolog interface has [en|dis]able_regression/1 predicates.', 'Formulas can be simplified before conversion to CNF.', 'Removed C/C++ examples.', 'Added entailment with regression predicate entailsreg/3.', 'Using std::tie in operator< now.', 'Query CNF is now minimized.', 'Added second unit test for regression.', 'Fixed: regression base case and recursive call. Added unit test.', 'BATs moved to nested namespace esbl::bats.', 'Implemented regression.', 'Fixed: prefixes regression RHS. Formula::Substitute is in-place.', 'Proper+ compiler also generates RegressOneStep() method.', 'Fixed: grounding of quantifiers.', 'One line of documentation.', 'Formulas partly support nested K and B.', 'Maybe can handle objects like std::unique_ptr.', 'Added Collect[Names|Variables] to TermSeq.', 'Made Maybe more readable.', "Merge branch 'cpp-restricted-ewffs'", 'Cosmetic changes to make cpplint happy.', 'There is a unary and binary Maybe now.', 'Replaced std::pair/tuple with Maybe where appropriate.', 'Fixed (?): Truth of (x. P(x)) v (Ex. ~P(x)).', 'Updated readme.', "Understood the problem from commit c6c66a8 (it's an ESL bug).", 'Added kitchen scenario from the demo.', 'Fixed: missing assignment in Formula::Cnf::C::Substitute().', 'Fixed: splitting only initial literals is not sufficient.', 'Preliminary version of the demo kitchen BAT.', 'Documentation of ECLiPSe-CLP interface. Changed arg-order of entails/3.', 'Fixed: PEL(c) contains dynamic literals from the query clause.', 'New ECLiPSe-CLP interface.', 'Unit test for formulas.', 'Cosmetic changes to make cpplint happy.', 'Renamed Query to Formula. Prepared for Regression. Added unit test.', 'Implemented complex queries.', 'Setup::AddClause instantiates box clauses for {} immediately.', "Fixed: Setup::GroundBoxes(z) didn't ground for z.", 'Removed old ESBL code.', 'Removed old test code.', 'Fixed: Setups::PropagateBeliefs() built belief setups incorrectly.', "Generated BAT's names are capitalized but not all-uppercase.", 'Fixed: assertion in Setup::PropagateUnits() to allow non-units.', 'Added KBat, BBat classes for generated knowledge/belief BATs.', 'Implemented belief setups.', 'Simplified generated BATs.', 'Removed useless includes.', 'Simplified inconsistency management.', 'Fixed Setup::SubsumesWithSplit(). Faster Setup::PropagateUnits().', 'H+ is kept in sync implicitly by Setup::AddClause().', 'Boxes are now grounded implicitly by Setup::Entails().', 'Fixed: Pel(l) = {a | a in Rel(l) and ~a Rel(l)} does work.', 'Bugfixes in Term, Literal, Ewff, Clause, Setup.', 'Proper+ compiler generates C++ code.', 'Full implementation of Setup class.', 'Clause ewffs are restricted to clause variables.', 'Fixed: comparison function in Clause::Subsumes().', 'Fixed box unification.', 'Fixed: Term::[Match|Unify] should fail for different size sequences.', 'Subsumption of clauses with ewffs.', 'Drastically restricted ewffs.', 'Added [Ewff|Conj]::Subsumes().', 'Ewff representation is even closer to unique.', 'Ewff representation is closer to unique.', 'Result of Term::Unify() is commutative now.', 'Started Setup::PropagateUnits().', 'Added Clause::ResolveWithUnitClause().', 'Added [Ewff|Conj]::And().', 'Removed [Atom|Literal]::AppendActions().', 'Added Setup::names() and Setup::variables().', 'Added Setup::Rel() and Setup::Pel().', 'YouCompleteMe configuration.', 'Improved efficency of Clause::Subsumes().', 'Fixed: proper+ compiler generated double clauses in code.', "Fixed: setup_relevant_split() checked wrong clause's size.", 'Changed kitchen BAT for demo.', 'Added comparison operator to Clause.', "Updating a unifier now doesn't fail if the pair was present before.", 'Clause::Rel(), Clause::Subsume() look correct for non-ground literals.', 'Added unit test for Clause::Rel().', "Fixed: Atom::is_ground() didn't check arguments.", 'Kitchen BAT now has five objects but only one location.', 'Moved UnifySeq() to class Term.', 'Learned about STL debug define.', 'Added unit test for clause subsumption.', 'Using aggregation instead of inheritance for StdName and Variable.', 'Fixed: Ewff::Conj::SubstituteName() erased from wrong map.', 'Fixed: Clause::Subsumption().', 'Additional operator<< definitions.', 'Fixed: method dispatching from Literal to Atom', 'Added Term::Factory.', 'Added namespace.', 'Added Clause::PropagateUnit().', 'Added Clause::Subsumes().', 'Fixed: Rel() needs to check if the clause is boxed or not.', 'Added Ewff::Satisfiable().', 'Fixed: Rel needs to negate literal', 'Renamed a few methods.', 'Simplified Ewff::Conj. variables() and names() return SortedMaps.', 'Started clause.', 'Unified Ground()/Substitute(). Added typedefs.', 'Implemented Conj::Substitute(). Added unit tests.', 'Fixed unification, added operator<< functions, unit test for literal.', 'Fixed unification. Added unit tests.', 'Fixed unification. Added std::pair-versions of Unify, Ground.', 'Renamed Term::Var, Term::Name to Variable, StdName. Added unit test.', 'Ewff is DNF. Introduced Term::Var and Term::Name.', 'You Complete Me config.', 'Implemented model generation for ewffs.', 'Variables IDs are implicit.', 'Added ewffs.', 'Started re-implementation in C++.', 'Gitignore.', 'Restructured for C++.', 'Moved ewff to separate files.', 'Started a minesweeper BAT.', 'Removed profiling test.', 'Updated readme.', 'Fixed: query_names() also added variables, removed #1, #2.', 'Updated documentation, cosmetic changes, added unit tests.', "Merge branch 'split-optimization'", 'Queries are converted to CNF (again).', 'Added ewff_cmp(), slightly changed ewff_eval().', 'vector_clear() clears the buffer.', 'Added stdvec_is_ground().', 'Fixed: timeout in belief unit test.', 'SF literals are split for free again.', 'SF literals are not split anymore.', 'Added map_[lazy_]copy().', 'Fixed: split literals were deleted too aggressively from PEL', 'Cosmetic changes.', 'Updated readme.', 'Added context_guarantee_consistency(). Unified Prolog interface naming.', 'Replaced MALLOC with NEW where possible.', 'Added setup_guarantee_consistency().', 'Updated documentation and unit test.', 'Gitignore.', 'Updated documentation.', 'Renamed setup_get_unit_clauses() to setup_unit_clauses().', 'Implemented consistency checks.', 'Updated documentation.', 'Removed query construct EVAL.', 'Actions are added to the setups one by one now.', 'Dependencies in README.md.', "Merge branch 'master' into split-optimization", 'Kitchen BAT for standard ESL.', 'Implemented needless split detection.', 'Enabled warnings.', 'Implemented smaller setups.', 'Thoughts on splitting.', "query.c's context_rebuild_setup() minimizes setups now.", 'Using loop in bats/CMakeLists.txt.', 'Added Prolog ECAI-2014 example.', 'Added [store|retrieve]_context/2 predicates and Prolog KR-2014 example.', 'Added email address to a few headers.', 'ECLiPSe-CLP correctly handles non-BAT predicates.', 'Fixed (possibly): garbage collection issue with ECLiPSe-CLP.', 'pred_t is long int now; introduced MAX_PRED.', "Fixed: query_ennf() didn't propagate negations properly.", 'Added example binaries to .gitignore.', 'Fixed ECLiPSe-CLP interface bugs; found problem with GC.', 'Added context to ECLiPSe-CLP interface.', "Merge branch 'master' of github.com:schwering/esbl", 'FindProlog module for cmake.', 'Updated readme.', 'FindECLiPSe-CLP module for cmake.', 'BATs are built automatically now.', 'Started ECLiPSe-CLP interface.', 'Added print_query() to common.h.', 'Added serialization and deserialization functions.', 'Renamed CMake projects.', "Fixed: kv_t's members are const", 'Using non-const iterators where appropriate.', 'Hello, cmake.', 'So long, nedmalloc.', 'So long, autoconf.', 'ewff_true() is now (forall x . x = x).', 'BATs must list sort names; fixed implication and equivalence in proper+ compiler.', 'Proper+ compiler generates better is_<sort>().', 'Fixed serialization of variables in proper+ compiler print_all/1.', 'Fixed: incomplete setups due to ewff_ground() varmap bug.', "Makefile.am: tests don't compile with lib_LTLIBRARIES.", 'Non-const iterator in bsetup_propagate_units().', 'Makefile: install library, add include header sub-dir', 'configure: build shared libraries by default', 'gitignore: add .libs dirs', 'Proper+ compiler prints readable BATs; fixed is_<sort>() functions.', 'Proper+ compiler generates complete C header.', 'Proper+ compiler works for examples.', 'Started proper+ BAT compiler.', 'Made setup_is_inconsistent() static.', 'Added a test for eventual completeness.', 'Fixed consistency check of belief setups.', 'Removed SET_ALIAS.', 'Quantifiers are handled in one pass during query answering.', 'One less loop iteration in setup_propagate_units().', 'Sped up clause_resolve().', 'Simplified setup_minimize_wrt().', 'Replaced loops with iterators.', 'Added a val attribute to all iterators.', 'New iterator API.', 'Added context_remove_undone_sf().', 'Added context_prev() to undo functions (untested).', 'Renamed stdname to term in queries.', 'Iterators for sets and vectors.', 'Query handling without CNF.', 'Fixed: context_copy_with_new_actions() mishandled query_zs.', 'Fixed: forall x phi as not exists x _not_ phi.', 'Added a check for inconsistency for better performance.', 'Unit test for belief context.', 'Added belief contexts.', 'Cleanup and added kcontext_copy().', 'Fixed belief setup subsumption. Added Example 12 to unit test.', 'Added subsumption for belief setups.', 'Unit test for belief.', 'H+ for beliefs, started unit test for beliefs.', 'Computation of belief setups (untested).', 'Started belief, moved splitting to setup.c.', 'Some cleanup.', "Merge branch 'master' of ssh://schwering.ath.cx/home/git/esl", 'Quantifiers in queries using var_t instead of callbacks.', 'Unit test for ewffs; fixed rest of setup unit test.', 'Unit test for ewffs; fixed rest of setup unit test.', 'ewffs are now represented as terms instead of callbacks.', 'New representation of BATs with macros for simple definition.', 'Unit propagation minimizes the setup.', 'Fixed profiling test.', 'Sped up unit propagation. Added setup_copy_with_new_actions().', 'Fixed: EVAL queries were not negated properly.', 'Removed nedmalloc. Documentation.', 'Clearing work, documentation.', 'Simplified PEL optimization and split-SF computation.', 'Support for nested queries (untested). Queries are const now.', 'Optimization of PEL.', 'More efficient use of unit propagation.', 'Splitting SF literals like ordinary literals works now.', 'Fixed performance, broke correctness when splitting SFs.', 'Treating SF literals as normal split variables.', 'Removed memory deallocations.', 'Fixed: Boehm GC is used by default.', 'Replaced nedmalloc with Boehm GC.', 'Setups can be re-used.', 'Fixed build system. Sped up memory allocation.', 'Moved query code from clause.c to query.c Added query constructors.', 'Replaced standard allocator with nedmalloc.', 'Query evaluation works.', 'New query evaluation attempt based on CNF.', 'Query evaluation (untested).', 'Query preprocessing (untested).', 'Better unit propagation. Started query evaluation.', 'Added subsumption.', 'Implemented unit propagation (efficiently).', 'Introduced box_univ_clauses and univ_clauses.', 'Fixed a few bugs, unit tests.', 'Utility functions for clauses.', 'Grounding of KB, untested.', 'Refactoring: constructors return structures now.', 'Started with grounding of clauses.', 'Macros for type-safe vectors, sets, maps.', 'Variables and standard names definitions.', 'Map structure and unit test.', 'Set operations, unit tests.', 'Unit test.', 'Unit tests, set functions.', 'Fixed a bug, unit tests.', 'Build infrastructure, unit testing.', 'Vector and set structures.', 'fix simple typo', 'host: fix include with newer uhd', 'Revert "Add latest images that pases timing constrains"', 'umtrx2collectd: lowercase sensor names', 'host: Add support for complex values in the status monitor.', 'cmake: make Boost a required library', 'uhd v3.10.0 compatibility', 'Add latest images that pases timing constrains', 'add map config for latest successful timing build', 'reset duc/ddc chain on idle', 'bump version to 1.0.11', "collectd: use 'fairwaves-monitoring' user to run plugin", 'bumped version to 1.0.10', 'collectd: rewritten collection script', 'bump version to 1.0.9', 'collectd: plugin to collect umtrx sensors', 'bumped version to 1.0.8', "Merge branch 'earwin/pythonpack'", 'bumped version to 1.0.7', 'debian: packaged python utils in host/utils', 'add fixed image but few rules are violated', 'fix hang during fpga flashing in safe mode', 'throw exception if incorrect DCDC version were provided', 'turn off vin bypass to amplifiers by default', 'add lmsvga2 args parameter to override UMTRX_VGA2_DEF', 'autodetect DCDC translation version on startup', 'add lmsvga1 device args parameter to override VGA1_DEF', "Merge branch 'umsel2_work'", "host: Check if DC offset value reads as it's been written to LMS.", 'umsel: device args for enabling umsel2 and verbose', 'host: Checking in umtrx_query_versions.py', 'host: Add string getters/setters to the Python property tree library.', 'host: Add "STRING" to umtrx_monitor error output.', 'host: Properly handle most corner cases in VSWR calculations.', 'Bump version to 1.0.6', 'host: make boost property tree thread safe', 'host: support string type in JSON query', 'debian: build now produces an additional package with debug symbols', 'host: print locked for debugging', 'host: freq update sequence, copied registers from gui', 'host: umsel2 adf355-2 tuning algorithm', 'host: umsel2 register work for adf355-2', 'umtrx_firmware: fixed typo preventing it from working', 'Bump version to 1.0.5', 'host: implement selection for umsel2 + lms', 'host: remove old umsel code from lsm6002', 'host: integrate support class for umsel2', 'fpga: updated 4x ddc image for spi work', "Merge branch 'axi_shared_spi'", 'debian: added firmware to package and umtrx_firmware script to handle it', 'fpga: simplify spi setting regs with generate loop', 'fpga: connect both spi settings drivers', 'fpga: use axi stream spi core (still single dest)', 'fpga: created axi stream controled spi core', 'host: Fix getters in umtrx_property_tree.py.', 'host: disable umtrx_fifo_ctrl cache of spi config', 'fpga: bump compat minor, work on late flag', 'fpga: implement fifo control tracking info', 'debian: conflicts/replaces stanzas to replace renamed package', 'fpga: larger long fifo with 64 entries', 'debian: 1.0.4 release changelog.', 'utils: Prettier output for umtrx_auto_calibration', 'host: Fix a typo in the DC offset property tree setter.', 'utils: Verify that calibration property has been set correctly.', 'utils: Set default Rx gain to 50 instead of 100 in calibration utils.', 'scripts: Fix a nasty typo in umtrx_auto_calibration.', 'debian: split umtrx into module and runtime packages', 'host: fixed missing boost math include (boost 1.46)', 'host: FIx SET handling for the property tree JSON API.', 'host: There is no need to explicitely support coerce() in property_alias()', 'host: Complete calculations for VSWR in Python utils + better sensors output.', "Merge branch 'status_monitor'", 'host: A Python library for the property tree API and sensors query utility.', "host: No need to explicitely insert EOL, it's already there.", 'host: Fix typo in a comment s/GET/SET/.', 'umtrx: remove sleep used for testing', 'umtrx: generic JSON property tree service', 'umtrx: client handler thread to keep socket open', 'umtrx: changes to tcp query server', 'umtrx: mutex for i2c-based interfaces', 'umtrx: sensor query support and comments', 'umtrx: mutex for lms ctrl wrapper class', 'umtrx: work on status monitor tcp server', 'umtrx: skeleton for status monitor thread', "Merge branch 'achemeris/divsw'", "host: By default route each Rx channel to it's own antenna.", 'host: Add ability to set diversity switches position from UHD args.', 'host: Implement property_alias() function which creates an alias at the proprty tree.', 'minor debianization fixes: +x debian/rules, correct debian/source/format', "Merge branch 'debian'", 'debian: changelog entry for 1.0.3 release', 'umtrx: strip leading g from describe hash', 'utils: Better documentation for umtrx_auto_calibration.', "Merge branch 'achemeris/iq_cal_work' implementing Tx IQ calibration.", 'fpga: move tx frontend mux between DSP and corrections module', 'host: Fix UHD args in the umtrx_auto_calibration.', 'host: Add missing new line in the calibration utils output.', 'host: Improve console output for calibration utilities.', 'host: Use "fifo_ctrl_window=0" UHD param in the umtrx_auto_calibration.', 'host: Better reporting at the end of umtrx_auto_calibration', 'host: Checking in umtrx_auto_calibration script.', 'host: An attempt to get IQ balance caliration working with the 2nd channel.', 'host: Correctly store IQ balance calibration values.', 'host: Better default values for umtrx_cal_tx_iq_balance.', 'host: Checking in umtrx_cal_tx_iq_balance utility.', 'host: Move more generic functions to usrp_cal_utils.hpp', 'debian: first shot at umtrx debianization', 'host: Implement setting Rx VGA1 gain in real dBs.', 'host: Fix whitespaces.', 'host: Implement power control below the PA minimum output power using LMS VGA.', 'host: Output all known PA types on startup.', 'host: Implement functions to list all known PA types.', "host: Replace 'pa_power_limit' param with 'pa_power_max_w' and 'pa_power_max_dbm'.", 'host: Add utils to read NMEA and GPS coordinates from UmTRX.', 'host: Fix umtrx_cal_tx_dc_offset help output to mention UmTRX.', "Merge branch 'achemeris/pa_control'", 'host: Checking in a full scale DCDC conversion table.', 'host: Delay between DCDC setting and reading it back is not necessary when there is a PA installed.', 'host: Enable DCDC converter before setting its value.', 'host: Give DCDC converter time to settle when we set PA output power.', 'host: UHD uses dB for gains, not Watts.', 'host: Implement case insensitive PA type comparison.', 'host: Better status message', 'host: Output a status message when PA power is limited by a configuration parameter.', 'host: Implement PA output power limit parameter.', 'host: Fix power_amp_impl::max_power() implementation.', 'host: Fix crash and beautift code.', 'host: Move power amp code into a separate class.', 'Initial implementation of the power control for UmTRX+PA systems.', 'umtrx: support dirty version marker when tree is unclean', 'umtrx: add fifo_ctrl_window argument to specify window size', 'host: Update copyright for umtrx_cal_tx_dc_offset.cpp.', "Merge branch 'achemeris/dc_offset_work'", 'host: Use amplitude setting for Dc offset calibration.', 'host: Better algorithm for Dc offset compensation search.', 'host: Improvements in the dc_cal_t abstraction.', 'host: Actually test dc_i/q_stop values.', 'host: Better abstraction for dc calibration routines.', 'host: More verbose logging about calibration files loading.', 'host: Store calibration file in a new way.', 'host: Update automatic DC calibration utility.', 'host: Fix loading of DC offset calibration values from EEPROM.', "Merge branch 'win_fixes'", "Merge branch 'version_info'", "Merge branch 'dc_offset_debug'", 'umtrx: updated binaries after bootloader work', 'umtrx: use portable sleeps from boost', 'umtrx: switch to portable stdint.h include', 'umtrx: remove misused class declspec UHD_API', 'umtrx: provided nan() function for MSVC 2012', 'umtrx: parse and print version info from git', 'images: Remove _test_pa image. All its features are already in the master.', 'host: Fix PLL lock detection - only 0x00 value is correct according to the LMS6002d documentation.', 'host: Make non-interface functions of lms6002d_ctrl_impl class protected for better abstraction.', 'host: Fix debug output.', 'host: Implement lo_locked sensor to show whether LMS PLL is actually locked.', 'zpu: Bump fw minor version for the bootloader behavior change.', "zpu: Don't confuse users telling USRP2 is loading - it's UmTRX they have!", 'zpu: Do not attempt to load production ZPU firmware from safe FPGA image.', 'umtrx: modify boost sleep line for boost compatibility', 'umtrx: added link with pthreads to build', "Merge branch 'umtrx_icp_fix' into umtrx_update", 'Merge pull request #9 from zabbal/umtrx_update', "Merge branch 'fw_githash' into umtrx_update", 'umtrx: checkin new fw with compat bump and hash', 'umtrx: bump fw minor for githash addition', 'umtrx: store 4 byte git hash into fw', 'umtrx: spi is fast now, use sleeps for settling times', 'Host: By default set LMS Icp to 0.2mA.', "Merge branch 'umtrx_gains' into umtrx_update", 'Host: Power down DC comparators in LMS to improve Rx linearity (as per FAQ).', 'Host: Update the LMS regusters initialization to follow FAQ 1.0r12.', 'umtrx: test both channels with umtrx_test_gains', 'umtrx: removed Safety check in favor of clipping', 'umtrx: fixes for gain distribution', 'Host: Enable separate controls for Tx VGA1 and VGA2 gains.', 'umtrx: slow down icap clock, this image resets reliably', 'Use ip instead of deprecated ifconfig.', 'umtrx: remove multi-threading from stream converters', 'zpu: move spi mask into spi.c', 'zpu: fixed umtrx_init() lms_res typo', 'umtrx: s2 slave unused, fix comment', 'update fpga & zpu images', 'zpu: add watchdog timer for while( ... ); operations', 'zpu: set UART debug port speed 115200', 'fpga: fix DCSYNC clock to 541.66 kHz', 'umtrx: revert merge changes for debugging', "Merge branch 'fairwaves/umtrx' into umtrx_update", 'Set pa_en1 & pa_en2 to "1" by default, add "pa_en1" & "pa_en2" EEPROM variables and UMTRX_PA_EN1 & UMTRX_PA_EN2 enviroment values to override defaults', 'umtrx: max timeout for tx async handler flush', 'Use CMAKE_INSTALL_PREFIX as dest dir for cpack', 'Add --divsw1 and --divsw2 options to umtrx_pa_ctrl', 'Fix UmTRX v2.0 creation with phony sensors', 'Add UMTRX_PA_DCDC_R and UMTRX_PA_LOW enviroment variable to override current EEPROM values for pa_dcdc_r and pa_low', 'Fix reading pa_dcdc_r from EEPROM', 'Fix typo', "Add DCSYNC for DC/DC. Not tested since I don't have an oscilloscope.", 'Add FPGA image with PA control; not tested well!!!', 'Add PA control logic', 'Move temperature sensors to separate class; add power sensor ADCs and add abitily to autodetect hw revision', 'umtrx: command line options for cal app', 'umtrx: produce cal files from script', 'umtrx: added goodness plot, cleanup', 'umtrx: plot validation dc power using sparse corrections values', 'umtrx: umtrx_cal_tx_dc_offset in python for tweaks', "Merge branch 'umtrx_update' into dc_offset_debug", 'umtrx: fix register temperature sensor', 'umtrx: move dc_offset plugin to bottom', 'umtrx: plugin lms dc offset into fe corrections tree', 'umtrx: disable lms on shutdown device', 'umtrx: added temp sensors', 'umtrx: copy in platform.hpp, which may be deleted from uhd', 'umtrx: added net reset for fw/fpga boot', 'umtrx: 4DDC leds reversed', 'umtrx: update fpga images for led fix', 'umtrx: default rx ant RX1', 'umtrx: added debian package generator', 'Add --dump & --erase options for EEPROM', 'Fix 4DDC version', 'umtrx: uninstall target for cmake build', 'umtrx: remap LEDS, regular and 4DDC cases -- needs test', 'umtrx: deleted build for unused revision', 'umtrx: updated fw memory map for register remap', 'umtrx: move buffering + gateway to rx chain', 'umtrx: remap dsps, add rx buffering', 'umtrx: setup mutex for stream creation', 'umtrx: defaults avoid error on getFreq without setting', 'umtrx: fpga build for 4DDC and arbitrary DSP support', 'umtrx: added ifdef check for UHD API change', 'Host: Fix Tx VGA, VGA1 and VGA2 gains setting procedure.', 'umtrx: fix defaults for set_iq_balance', 'umtrx: rx3 was default antenna in previous code', 'umtrx: increase spi divider', 'umtrx: checkin images for LTE_30_72MHz', 'Host: Change the reference clock to 30.72MHz.', 'FPGA: System clock was changed from 26MHz to 30.72MHz', 'ZPU: System clock was changed from 26MHz to 30.72MHz', "Merge branch 'dc_cal_work' into umtrx_update", 'umtrx: fix registration after UHD API change', 'umtrx: support for cal side A or B', 'umtrx: change avg plot to be avg of trials @ same freq', 'umtrx: multiple trials per LO to plot stddeviation', 'umtrx: tweaks to umtrx_cal_tx_dc_offset + csv plotter', 'umtrx: random convergence search for tx dc cal', 'umtrx: error message for streaming on uninitialized rx_dsp_core', 'umtrx: some fixes to get cal app working again', 'umtrx: checkin original cal app for tx DC cal work', 'umtrx: init frontend muxes to IQ -- fixes TX mux', 'umtrx: fix typo for dsp_core vita rate', "Merge branch 'fix-gps-nmea' of https://github.com/fairwaves/UHD-Fairwaves into umtrx_update", 'umtrx: update ZPU image binary (GPS NMEA fix)', 'umtrx: fix GPS NMEA data, over UART1 (UDP/49171)', 'umtrx: add spi/i2c/wishbone interfaces into the ptree', 'umtrx: fix create dsp_rate in ptree', 'umtrx: fix, dsp rate is half of the vita rate', 'umtrx: updated fpga bin file to latest commit', 'umtrx: fix led mux and dac mux from last commits', 'umtrx: fixup mux typo', 'umtrx: added tx mux switch based on subdev spec', 'umtrx: checkin last images built', 'umtrx: move umtrx_test_chains.cpp to utils', 'umtrx: added README changelog for UmTRX update work', 'umtrx: strobe adcs from same signal for DSP alignment', 'umtrx: fix typo in settings bus assign', 'umtrx: external rx fe switch for quad dsp support -- has issues', 'umtrx: switch lms6002d_ctrl to use fifo ctrl for spi', 'umtrx: switch to timed spi core', 'umtrx: renamed u2plus_core.v to umtrx_core.v', 'umtrx: removed old dir structure in old/', 'umtrx: missed a file from last commit', 'umtrx: resets and clears when IMCP disconnect -- UDP dest not reachable', 'umtrx: misc cleanup from last commit', 'umtrx: fix prot framer bug for gen_context_pkt', 'umtrx: tx work, fix prot framing, remap stuff', 'umtrx: lms reset gets its own register', 'Host: Power down DC comparators in LMS to improve Rx linearity (as per FAQ).', 'umtrx: allocate constants for framers, sids, exc', 'Host: Update the LMS regusters initialization to follow FAQ 1.0r12.', 'Host: Whitespace fixes.', 'umtrx: protocol framer is 2x wide now, 8 entries', 'umtrx: protoframer gets dedicted settings bus', 'umtrx: tie in fifo ctrl to settings bus', 'Host: Enable separate controls for Tx VGA1 and VGA2 gains.', 'umtrx: work in settings fifo integration', 'umtrx: added back dispatcher drop vs to cpu case', 'umtrx: work on wider router and dispatcher + fw changes to match -- not tested', 'umtrx: added axi demux', 'umtrx: added axi many muxes for new router', 'umtrx: began work on umtrx router to support ctrl fifo + more', 'umtrx: misc files created by fpga build', 'umtrx: removed unused stuff', 'umtrx: need pkt gate for max rate bursting in eth tx chain', 'Host: By default set LMS Icp to 0.2mA.', 'umtrx: added axi fifo2clk, didnt fix the issue though', 'umtrx: threw in mtu discovery and fake db eeprom ids', 'umtrx: update cross clock fifo wrapper', 'umtrx: always lo locked, tweak cal eeprom stuff', 'umtrx: added calibration back in', 'umtrx: added debug coregen chipscope', 'umtrx: updated bootloader, fix misc typo', 'umtrx: work on program stream dest', 'umtrx: work on io impl and recv streamer', 'umtrx: update clock rate for dsp @ 26 MHz', 'umtrx: created tx and rx chains for umtrx', 'umtrx: updated many cores and top level, dsp still needs proper strobes', 'umtrx: redo how registering adc/dac drivers for IOB/timingness', 'umtrx: move around sys, dsp clock domains', 'umtrx: cross clock fifo for all vita chains', 'umtrx: removed unused serdes signals', 'umtrx: rename adc/dac signals, added strobes', 'umtrx: removed another set of ifdefs', 'umtrx: remove ifdefs, now I can see', 'umtrx: adc/dac bus width fix + test signal from reg', 'umtrx: firmware building in current directory structure', 'umtrx: moved new umtrx directory up one', 'umtrx: moved other directories to old folder', 'umtrx: time-register self test', 'umtrx: added burner util', 'umtrx: remove old directories, didnt need', 'umtrx: time64 core update', 'umtrx: use an updated time core (FPGA needs update)', 'umtrx: setup lms6002d_ctrl and register in prop tree', 'umtrx: created control interface for lms6002d', 'umtrx: added dsp core support', 'umtrx: save frontend interface work', 'umtrx: filling eeprom and tick rate stuff', 'umtrx: uhd find discovery working', 'umtrx: building updated iface + find function', 'umtrx: moved non specific files to old* dirs', 'umtrx: save cmake work + added files before continue', 'umtrx: copied in host support files, work on build system', 'umtrx: copied in zpu firmware build', 'umtrx: removed unused top dirs, renamed top dir', 'umtrx: copied usrp2 fpga directory into new umtrx root', 'Merge pull request #2 from zabbal/fairwaves/umtrx', 'Merge pull request #4 from shimaore/patch-1', 'Workaround for #3', 'backport time_spec improvements from upstream', 'fix umtrx-specific compilation warnings', 'Host: Support multiple DSPs connection to a single LMS.', 'Host: Better debug output for db_lms.cpp', 'FPGA: Frontend switch was changed according with 4ddc mode.', 'HOST: Remove Tx DSPs, add two Rx DSPs.', 'ZPU: Remove Tx DSPs, add two Rx DSPs.', 'FPGA: Remove Tx DSPs, add two Rx DSPs.', 'Host: Expose RX VGA1 gain to the external UHD API.', 'HOST: Add file writing capability to rx_multi_samples example.', 'Host: Correct Boost dependency for Ubuntu 12.04', 'Host: Set an even sample rate decimation by default to avoid annoying warnings.', 'usrp2: added retry logic to control packets', 'FPGA: Max sample rate was fixed.', 'Host: Store DC offset calibration values for both channels in EEPROM.', 'Host: Change the reference clock to 30.72MHz.', 'FPGA: System clock was changed from 26MHz to 30.72MHz', 'ZPU: System clock was changed from 26MHz to 30.72MHz', 'ZPU: DEBUG: Output assert() message before aborting ZPU due to failed assert.', 'ZPU: Better debug output in case of wrong flash size.', 'Host: BETA: A test code to talk to a synthetizer on UmSEL.', 'Host: Implement a single place to set UmTRX clock frequency and a way to talk to both LMS SPI and AUX SPI.', 'Host: Remove declarations of functions we no longer implement.', 'Host: Fix typo in comments in db_lms.cpp.', 'Host: Remove unused functions from db_lms6002d class.', 'HOST: AUX connector. I2C bus was added.', 'HOST: : AUX connector. SPI bus to AUX connector was added.', 'ZPU: AUX connector. IRQ for Lock Detect was added.', 'ZPU: AUX connector. SPI bus to AUX connector was added.', 'ZPU: AUX connector. I2C bus was added.', 'FPGA: AUX connector. Control logic for Lock Detect was added.', 'FPGA: AUX connector. Pins to AUX connector were uncommented.', 'FPGA: AUX connector. SPI bus to ADF4350 was added.', 'FPGA: AUX connector. I2C bus was added.', 'Host: Use the new API to set VCTCXO DAC.', 'ZPU: Add function to get/set VCTCXO DAC value from inside ZPU and from the control socket interface.', 'Host: Remove unused code from umtrx_impl.cpp', 'HOST: Registers for controlling diversity switches was added.', 'ZPU: Decrease speed of sending data into the ICAP block.', 'ZPU: Correctly set reset signals for LMS on init.', 'ZPU: Implementation of Xilinx Spartan 6 ICAP.', 'FPGA: Fix control logic for the Spartan 6 ICAP', 'Host: Tweak constants in UHD calibration utils to work better with UmTRX.', 'Host: Add more verbose output to uhd_cal_rx_iq_balance.cpp', 'Host: Revert hacks in UHD calibrations utils related to lo_locked sensor. It is supported by UmTRX now.', 'Host: Add phony "lo_locked" sensor to LMS db to make some UHD utils happy.', 'Host: Fix Tx DSP frequency range.', 'Host: Correctly set Rx and Tx fsync and IQ interleaving in LMS on init.', 'Host: Add comments to lms6002d_dev::init() and lms6002d_dev::dump() functions.', 'Host: Fix a bug in the LMS LPF bandwidth calibration routine, found by Ricardas.', 'Host: Add a hack to support 500kHz LPF filter in LMS.', 'Host: Shutdown calibration unit when LMS LPF calibration is finished.', 'Host: Fix printf specifier in calibration utils debug output.', 'Host: Fix gain settings in calibration utils.', 'Host: Reset LMS chips every time on the UHD startup.', 'Host: Cleaner output of lms6002d_dev::dump() function.', 'Host: Clean up LMS init function from old code and disable AUX PA on startup to reduce noise.', 'Host: Update RF loopback code according to the recent information from LimeMicro.', 'Host: By default set initial Rx/Tx gain for LMS to middle point instead of the minimum.', 'Host: Checking in a util to calibrate Tx DC offset using LMS internal registers.', 'Host: Append dboard name to the LMS dboard serial number in UHD.', 'Host: Rename path to DC calibration properties in the UHD property tree.', 'Host: Add extensive debug output to UHD calibration utils.', 'Host: Tweak UHD DC ofset and I/Q imbalance calibration utils to work with UmTRX.', 'Host: Output messages to console only is verbosity>0 in LMS auto-calibration routines.', 'Host: Support for RF loopback mode for LMS6002D chip.', "Host: Don't set Tx gains in lms6002d_dev::init().", 'Host: Adding LMS auto-calibration on UHD initialization.', 'ZPU: Fix a typo in a comment.', 'Host: Move LMS interface in LMS2006D daughter board class into a variable for cleaner code.', 'Host: Rename lms6002d_dev::lms_txrx_pll_tune() to lms6002d_dev::txrx_pll_tune() for better consistency.', 'Host: Change LMS interace from separate Rx and Tx classes to a single XCVR class.', 'FPGA: The fix for multiplexer for the RX and TX frontends was added.', 'Host: Move LMS6002D control class to separate source file.', 'Host: Fix cmake install scripts after umtrx_ctrl.py and umtrx_lms.py has been removed.', 'Host: By default use RX1 input on LMS, which is default on UmTRXv2+.', "Host: Removed UmTRX specific Python utils - they've been moved to a separate repo.", "FPGA: Work of each DSP channel's is indicated by separate LED's", 'FPGA: Multiplexer for the RX and TX frontends was added.', 'FPGA: Dual channel mode (TX) was fixed.', 'Host: Add a comment regarding IQ mux selection logic in umtrx_impl::update_rx_subdev_spec().', 'Host: Set correct register number for the Rx DSP/frontend muxer.', 'Host: Create rx/tx codec paths in the property tree for both channels.', 'Host: Fix IQ muxer settings in dual-channel case.', 'Host: Fix Tx DSP registers - they were accidentially swapped.', 'Host: Indentation fix in umtrx_impl.cpp.', 'Host: Fix indentation and add a comment to umtrx_impl.cpp.', 'Host: Fix tcxo-dac setting in dual-channel configuration.', 'Host: Fix rx/tx_fe_corrections() to support multiple daughter boards on UmTRX.', 'Host: Fixes for dual-channel support.', 'ZPU: Add support for the second UDP Tx stream to ZPU and to fw_common.h.', 'ZPU: Memory map has been changed according dual channel implementation.', 'FPGA: Control logic for dual channel SRAM FIFO was fixed.', 'FPGA: The second transmit channel was added.', 'FPGA: The second receive channel has been made fully independent.', 'Revert "Host: WORKAROUND: set_time_now() doesn\'t work for some reason."', 'FPGA: Control logic for vita timer was fixed.', 'Host: Clean-up umtrx_impl.cpp/hpp from outdated implementation of LMS6002D interface.', 'Host: Return actual tunned frequency during PLL tune.', 'Host: Clean-up db_lms.cpp from excessive default settings.', 'Host: Implement Tx DC calibration setting for LMS6002D and hook it to UHD property tree.', 'Host: Read TCXO DAC value form EEPROM on startup.', 'Host: Add function to set TCXO DAC value from host.', 'Host: Set Tx daughterboard and Rx daughterboard serial and revision equal to the motherboard serial and revision.', 'Host: Implement EEPROM maping for UmTRX.', 'Host: Replace tabs with spaces in indentation in usrp2_iface.cpp.', 'Host: Bugfix: Initialize _tick_rate variable of rx_dsp_core_200 in constructor.', 'ZPU: Added ability to software control LMS reset pins.', 'Temporarily was disabled unused output pins in fpga project for UmTRX v2 board.', 'FPGA: Fixed name of top module of the FPGA project for UmTRXv2.', 'Opportunity to build FPGA project for the UmTRXv2 board has been added to the Makefile', 'Added missed pins in project for UmTRX v2 board.', 'fpga: Control logic for diversity switches was added.', 'FPGA: Added ability to software control LMS reset pins.', 'Added the ability to build the project for UmTRX v2 board.', "Host: TEMP: Set Tx/Rx LPF to 0.75MHz by default wile OpenBTS doesn't control this.", 'Host: Fix comments in umtrx_lms.py.', 'Host: Tweak verbosity of the register access debug in lms_tx/lms_rx classes.', 'Host: Add support for gains, antennas and bandwidth control from UHD.', 'Host: Implement Tx/Rx LPF control in UHD in lms6002d_dev.', 'Host: Remove "lms_" prefix from lms6002d_dev functions for consistency, modify gain setting functions behavior.', 'Host: Introduce verbosity to db_lms.cpp debug output and format it better too.', 'Host: Print out tuning info in umtrx_lms.py only when verbosity >0.', 'Host: De-tabify umtrx/dboard_iface.cpp', 'Host: A more proper information about gains in LMS.', 'Host: Remove old unused code for LMS control. Now replaced with the new code.', 'Host: tx_enable() and rx_enable() will be called by UHD at the proper time anyway.', 'Host: Better logging at umtrx_impl.cpp - controlled by a verbosity variable and more detailed/consistent.', 'Host: Fix typo in comments.', "Host: Don't initialize LMS chips in UHD.", 'Host: Rename lms6002d_dev::Init() to lms6002d_dev::init() to follow the naming convention.', 'Host: gdb_eeprom is required for some UHD/GnuRadio utilities to operate correctly.', 'Host: Do not change LMS settings which are not directly related to the tuning while tuning in UHD.', 'Host: Make freqsel array in lms6002d_dev::lms_txrx_pll_tune() const static.', 'Host: Remove old commented out code from umtrx_lms.py', 'Host: Do not change LMS settings which are not directly related to the tuning while tuning in umtrx_lms.py.', 'Host: We should use binary ~ instead of logical ! when operating bits in LMS register helper functions.', 'Host: Implement basic tuning', 'Host: Uncomment umtrx_impl::set_tx_dsp_freq() and umtrx_impl::get_tx_dsp_freq_range() functions to make more utilities work with UmTRX.', 'Host: Fix typo in lms_set_vga1dc_q() function in lms.py.', 'Host: More robust handling of parameters in umtrx_ctrl.py', 'Host: Fix python syntax in umtrx_ctrl.py', 'Host: Bump the version of umtrx_lms.py to 3.2', 'Host: Update automatic initialization procedure.', 'Host: Add an option for debug output for LMS register operations to umtrx_ctrl.py.', 'Host: Set VGAs gain and turn off Rx in the automatic tuning procedure in umtrx_lms.py', 'Host: Fix comments and make the logic of calibration procedures in umtrx_lms.py more straightforward.', 'Host: Update General DC calibration procedure in umtrx_lms.py to correctly handle edge cases.', 'Host: Add new commands to umtrx_ctrl.py, renameold ones for better consistency.', 'Host: Add few test register setting to --init command in umtrx_lms.py (disabled by default).', 'Host: Fix a bug in tuning algorithm in umtrx_lms.py, it works reliably now.', 'Host: Better error reporting in umtrx_lms.py when tuning.', 'Host: Update umtrx_lms.py to skip undefined registers in a register dump.', 'Update s6_icap_wb.v to correctly handle clock domain crossing of control signals', 'Host: Disable RXOUTSW in lms_init() to avoid any external interference on ADC.', "Merge branch 'sylvain/gpsdo' into fairwaves/umtrx", 'Reading order of IQ data from LMS was changed.', 'host: Add manual VCXO DAC control utility for UmTRX', 'zpu: Improve GPSDO loop by Low Pass filtering the input value', 'zpu: Add initial code for GPSDO support', 'fpga: Add GPSDO hardware unit and wire it', "fpga: Fix VCXO DAC SPI, it's a MOSI output and not a MISO input ...", "Merge remote branch 'origin/akarpenkov/lms_freq' into fairwaves/umtrx-dboard", 'Host: Add Rx PLL tuning function to umtrx_lms.py', 'Host: Fix names of command line parameters for uhd_cal_tx_iq_balance', 'TXLPF output to base band loop back was added.', 'FPGA: Clock signal of TX DSP blocks fixed.', 'Max idle changed according to DAC frequency.', 'ADC/DAC data width corrected.', 'FPGA: Vita timer frequency same as ADC/DAC frequency (13 MHz)', 'Definition "LMS_DSP" was added into Makefile.UmTRX', 'FPGA: Clock signal of DSP blocks switched to ADC/DAC clock.', 'HOST: add options to manually apply I/Q corrections', 'Host: Fix umtrx_ctrl.py to correctly detect UmTRX with new FPGA image.', 'Host: Add option to erase flash contents to the usrp_n2xx_net_burner.py', 'Host: Bump version of umtrx_lms.py', 'Host: Add new actions to umtrx_lms.py and improve console output.', 'Host: Add function to get bits to umtrx_ctrl.py', 'Host: Fix host/utils/CMakeLists.txt - we have renamed LMS control script.', 'Host: Add infinite looping feature to tx_samples_from_file.', 'ZPU: Split the master clock rate from the TIME64 / VITA TIMER clock rate.', 'ZPU: Let bootloader load production firmware even if no production FPGA image is found.', 'ZPU: Fix LMS SPI interface edges.', 'ZPU: Temporary disable ICAP to let ZPU formware build.', 'ZPU: Add UmTRX-specfic initialization.', 'ZPU: Add macros to form LMS read and write commands.', 'ZPU: Set GPS UART rate to 9600 for UmTRX.', 'ZPU: Support UMTRX_CTRL_ID_REQUEST if UMTRX is selected.', 'ZPU: Enable SPI flash update over the network.', "Host: WORKAROUND: set_time_now() doesn't work for some reason.", 'Host: Use get_master_clock_rate() instead of a magic number for the UmTRX clock rate.', 'Host: Make UmTRX implementation closer to USRP2/N.', 'Host: Enable Rx/Tx frontend corrections in UmTRX.', 'Host: Correctly set tick rate in UmTRX interface.', 'Host: More details in help in umtrx_lms.py', 'Host: Clarify help comments in umtrx_lms.py', 'Host: Bump umtrx_lms.py version to 3.0', 'Host: Add enable/disable comands for Rx and Tx chains to umtrx_lms.py.', 'Host: Fix lms_pa_off()/lms_pa_on() in umtrx_lms.py to affect only PA part of the configuration register.', 'Host: Refactor umtrx_lms.py.', 'HOST: pylint-inspired cleanup, default dump removed, use --dump option', 'Host: Bump version of umtrx_lms.py', 'Host: Fix command line parameters handling in umtrx_lms.py.', 'Host: Python 2.7/3 compatibility for umtrx_lms.py', 'Host: Fix typo in umtrx_lms.py', 'Host: umtrx_lms.py version bump', 'Host: Add DC calibration and LPF tuning functions to umtrx_lms.py. PLL tuning comand name is changed as well.', 'Host: Clean up PLL tuning and update tuning range check.', 'Host: Align comments in umtrx_lms.py', 'Host: Bump umtrx_lms.py version.', 'Host: Fix PLL tuning in umtrx_lms.py.', 'Host: Fix comment in umtrx_lms.py', 'Host: Add some RF settings initialization.', 'HOST: python3 conversion, suppress additional output for --verify', 'HOST: split out init into separate functions, expose them into CLI, add option to verify write results.', 'HOST: fix parameter conversion and function name', 'HOST: expose pll_tune and lms_init to CLI', 'HOST: port LMS init from c++', 'HOST: version bump', 'HOST: port pll_tune implementation from c++', 'HOST: code cleanup', "HOST: add Chemeris' lms_pll_tune", 'HOST: reorganize options and help text', 'HOST: use hex for register number everywhere, display at least 2 digits for hex numbers', 'HOST: update rx_dsp rates', 'HOST: add missing tick_rate', 'HOST: introduce undocumented LMS init routine', 'HOST: add LMS-specific register constants', 'HOST: add LMS DC calibration stub', 'HOST: fix typo', 'HOST: fix dump function, improve output consistency', 'HOST: allow dumping lms registers separately, make --lms required for writing, use hex for --data', 'HOST: use global udp timeout', 'HOST: improve textual messages', 'HOST: code cleanup', 'HOST: implement spi read\\write', 'HOST: improve umtrx address option handling', 'HOST: use python version required by argparse', 'HOST: improve spi write routine', 'HOST: add basic command-line options', 'HOST: rename to better reflect functionality', 'HOST: fix spi writing', 'HOST: add spi writing', 'HOST: add register dump functionality', 'HOST: refactor receiving codepath', 'HOST: improve address handling', 'HOST: add LMS registry reading', 'HOST: fix copyrights', 'HOST: copy io_impl from usrp2', 'HOST: cosmetic improvements', 'HOST: add crippled streamers implementation from usrp2', 'HOST: hardcode dboard IDs due to lack of eeprom', 'HOST: add db eeprom support', 'Host: Fix bug in usrp_n2xx_net_burner.py', 'Host: Modify usrp_n2xx_net_burner.py to support UmTRX.', 'Host: Fix bug in usrp_n2xx_net_burner.py: user input should be read with raw_input().', 'stricter check for return value', 'HOST: another dummy path fix via adding placeholders', 'HOST: add missing conf. tree branches', 'HOST: add UmTRX awareness to silence error message', 'HOST: add version info', 'HOST: workaround - disable hw check to allow burning eeprom on UmTRX with usrp2 utils', 'HOST: groundwork for python spi read\\write', 'HOST: minor cleanup', 'HOST: improve formatting', 'HOST: add forgotten output formatter', 'HOST: fix options parsing', 'HOST: add dumping implementation because external wrapper is too slow', 'HOST: fix output filtering', 'HOST: remove hardcoded debug output', 'HOST: add wrapper for register dump', 'HOST: add verbosity control', 'HOST: code cleanup', 'HOST: fix interface to properly address LMS units', 'HOST: add umtrx_detect to install scenario', 'HOST: revamp interface to fix runtime errors', 'HOST: segfault fix', 'HOST: cosmetic formatting fix', 'HOST: make pylint happy', 'HOST: simplify, improve code quality and portability', 'HOST: simplify code and improve logging', 'HOST: add broadcasting debug utility', 'HOST: minor logging improvement', 'HOST: improve logging', 'HOST: fix UmTRX discovery', 'HOST: minor style improvement', 'HOST: fix boost options parsing', 'HOST: add LMS register read\\write utility', 'HOST: remove NotImplemented exception from unsupported GPIO interface', 'HOST: mask init function for UmTRX', 'HOST: remove obsolete files', 'ZPU: add conditional choice between UmTRX and USRP2', 'document present directory layout and interface dependencies', 'HOST: add UmTRX support to usrp2_iface', "Merge branch 'fairwaves/umtrx-dboard' of github.com:chemeris/UHD-Fairwaves into fairwaves/umtrx-dboard", 'HOST: (re)arrange functions so UmTRX implementation is in separate directory but as much as possible of USRP2 code reused.', 'HOST: move UmTRX support into separate directory', 'HOST: remove UmTRX-specific constants', 'HOST: rollback UmTRX-specific additions', 'HOST: rollback UmTRX-specific additions', 'HOST: revert dboard interface to original state', 'HOST: revert controllers to original state.', 'Host: A big hack to test LMS tunning.', 'Host: Rename lms_dboard_iface::write_addr_data() to lms_dboard_iface::write_addr() and name its parameters.', "add hw revision check to make sure that clock and codec controllers won't issue unneeded SPI requests.", 'add logging to stub functions', 'extend test functions interface to handle both RISE and FALL read\\write', 'add description and testing instructions', 'fix write routine, code cleanup', 'use umtrx-specific dboard interface', 'add umtrx-specific dboard interface', 'HOST: add UmTRX IDs.', 'ZPU: add UmTRX IDs to request-response protocol.', 'HOST: (re)arrange functions so UmTRX implementation is in separate directory but as much as possible of USRP2 code reused.', 'HOST: move UmTRX support into separate directory', 'HOST: remove UmTRX-specific constants', 'HOST: add UmTRX IDs.', 'ZPU: add UmTRX IDs to request-response protocol.', 'HOST: rollback UmTRX-specific additions', 'HOST: rollback UmTRX-specific additions', 'HOST: revert dboard interface to original state', 'HOST: revert controllers to original state.', 'Host: A big hack to test LMS tunning.', 'Host: Rename lms_dboard_iface::write_addr_data() to lms_dboard_iface::write_addr() and name its parameters.', "add hw revision check to make sure that clock and codec controllers won't issue unneeded SPI requests.", 'add logging to stub functions', 'extend test functions interface to handle both RISE and FALL read\\write', 'add description and testing instructions', 'Direction of TX1EN, TX2EN, RX1_EN and RX2_EN nets changed.', 'Nets TXD2 and RXD2 was swapped due to fix Issue 7 in UmTRX project', 'fix write routine, code cleanup', 'use umtrx-specific dboard interface', 'add umtrx-specific dboard interface', 'FPGA changes to enable control both ethernet socket LEDs.', 'Update ZPU bootloader after the previous commit.', 'Control both green and orange LEDs of Ethernet socket.', 'Change MASTER_CLK_RATE in ZPU from 100MHz to 104MHz for UmTRX.', 'Precompiled bootloader was changed due to fix Issue9, and switched on blocks of EEPROM, SPI and I2C.', 'Reverting temporary correction of the Issue 9. Ethernet MAC is now working properly due to FPGA timing violations fixes.', 'Readme file for UmTRX project is added', 'Minor timing fix: add pipeline register to rising and falling edge of PPS signal.', 'Modify fpga/usrp2/coregen/.gitignore to omit Xilinx Coregen files', 'ICAP timing fixes for UmTRX Spartan-6 FPGA.', 'LMS1 is renamed to LMS2 and vice versa. Previously they were named in a counterintuitive manner', 'Masks for controlling different SPI peripherals was defined in ZPU firmware', 'Masks for controlling different SPI peripherals was defined', 'Precompiled bootloader was changed due to temporary fix Issue9, and switched on blocks of EEPROM, SPI and I2C.', 'UmTRX option has been added to the Makefile to allow compile the UmTRX project with "make UmTRX" command', 'Blocks of EEPROM, SPI and I2C are switched on', 'Precompiler directive was added to switch off initialization of clock due to unnecessary in the project "UmTRX"', 'Precompiled bootloader was changed due to temporary fix Issue9.', 'Temporary correction of the problem with receiving broadcast packet. (Issue 9)', 'Control block for external SRAM was switched on for further testing', 'LMS RESET signal is set to 1 to enable LMS chip after FPGA load.', 'Corrected links on top and .ucf files in Makefile for UmTRX project', 'Direction of the SPI lines to the chip has been fixed', 'Name of top module was changed', 'SPI bus were aligned with the project', 'Some blocks were switched off and some input and output nets was deleted, because they are unused in project', 'Nets TXD1 and RXD1 was swapped due to fix Issue 7 in UmTRX project', '.ucf file for UmTRX project was renamed and his structure was optimized', 'Top file for UmTRX project was added', 'Fixed link to the ucf file for UMTRX board.', 'Definition UMTRX was added to select the board', 'Precompiled bootloader for UmTRX board was added', 'UART divisors was recalculated according to 52 MHz clock frequency', 'Pll cores was added to makefile', 'Added a Makefile to build UmTRX project', 'Fixed an error with name of compiler directive UMTRX', 'Fixed an error with name of compilers directive "NO_EXT_FIFO"', "I removed this because CPU did not work if I unplug the serdes block. I didn't undestend yet why so happend. I don't yet understand why this is happening.", 'Fixed an error with name of signal CLK_TO_MAC', 'Generation of clock signal for UmTRX was added (compiler directive UMTRX)', 'Generation of clock signal for ICAP module was changed for implementation on Spartan 6', 'Width of signal dat_o was changed for implementation on Spartan 6', 'Instance name of ICAP module was changed', 'Modify ZPU firmware to remove all access to Flash, EEPROM and AD9510 clock distributor.', 'User constraints file for xc6slx75 in package fgg484 was added.', 'Frontend to LMS602D has been redesigned. Second LMS602D was added.', 'NO_EXT_RAM was replaced by NO_EXT_FIFO', 'Missing "\'else" statement was added.', 'Compiler directive to enable LMS chip interface is changed from "NO_LMS" to "LMS602D_FRONTEND".', 'Interface for a LMS chip was added. Compiler directive for using of LMS chip is "NO_LMS".', 'Spartan6 ICAP was added. Compiler directive for using of Spartan6 ICAP is "SPARTAN6".', 'Compiler directives for using of external RAM and SERDES was added.', 'uhd: flush transport for new rx streamers', 'images: include license file into image tarballs', 'usrp1: use fixed bit width integer for hash', 'uhd: patch to support PKG_LIB_DIR per debian fs standards', 'uhd: dont populate requires.private in pc file', "Merge branch 'fpga_master'", 'n2xx: fix burner print if bad rev', 'n2xx: updated bootloader to latest build in uhd master', 'usrp: db manager tweak for contructor throwing', 'usrp: compensate for other sc8 conversion gain', 'usb: updated FindUSB1.cmake for standards compliance', 'sbx: fix dboard tuning to cache result', 'usrp1: initialize tick_rate prop (fixes readback)', 'N210 R4 should be using LVDS TX clock, not CMOS.', 'usrp2: fw fix for hal_uart_getc_noblock return code', 'uhd: typo fix in tx waveforms options', 'uhd: fixes that make uhd compile on freebsd', 'e100: better error message for eeprom model error', 'uhd: manually link into pthreads here', 'uhd: manually calculate bcast addr, boost version buggy', "Merge branch 'network_foo'", 'usrp: added underflow_policy to tx streamer args', 'usrp2: added bind option to the relay', 'usrp2: more work on relay app and sequence error detection', 'usrp2: created network relay example app', 'usrp2: use the socket to determine the device addr', 'uhd: network device discovery -> calc bcast addr under certain conditions', 'basic: minor fix for copy paste typo', 'Make WBX v3+ TX set max attenuation when idle', 'usrp1: fix div ratio for interp register', 'usrp1: fixed swapped sign on rx cordic', 'tvrx: adjust returned lo freq to compensate for negative cordic shift', 'tvrx: fixes for tvrx since the property tree work', 'uhd: use more recent udev rules format', 'uhd: typo fix for the error print', 'usrp: better error message when dboard fails in init', 'uhd: make use of TEMP_FAILURE_RETRY when select()', 'uhd: update udev rules, replace SYSFS w/ ATTRS', 'usrp: added mboard param to set time next pps', 'uhd: correct images docs for ZPU support', "UHD will now print 'L' whenever a late packet is transmitted.", 'uhd: some more notes on calibration utils', 'uhd: added wireformat to samples to file', 'usrp: rx dsp move init code into clear (like tx)', 'Make TX disable mixer when idle to avoid LO leakage', 'uhd: work with stream clearing', "Merge branch 'uhd_master'", 'usrp1: set scale factor after setting converter', "Merge branch 'fpga_master' into uhd_master", 'rx_samples_to_file is not streaming the correct nsamps', 'uhd: fix so MSVC client apps dont rely on min/max', 'usrp2/nseries: restored clock/serdes readback', 'uhd: tweaks to calibration utilities', 'b100: tweaks for fpga resets on init', 'dbsrx: set initial freq and bw filter after clocks enabled', 'usrp: clear dsp when making new streamer', 'basic: fix basic db center freq to always zero', 'uhd: fixed mboard detection checks to the cal utils', "Merge branch 'calibration'", 'e100: added self-cal support with minor speedups', 'uhd: more common code in cal utils', 'uhd: support for applying cal corrections B100', 'uhd: added calibration usage app notes and renamed apps again', 'uhd: added freq options and common gain setter', 'convert: added generic conversion for sc8 wire -> sc8 host', "Merge branch 'convert_work'", 'convert: move priorities to implementation, different for arm', 'uhd: work on doxygen comments for stream args', 'uhd: different interp methods for IQ vs DC', 'uhd: added tx dc offset calibration + tweaks', 'convert: msvc warning fixes for sc8 table gen', 'uhd: fixed sc8 table conversion, and simplified shifts', 'usrp: fixed default initialization of iq bal correction', 'convert: added table conversion routines for sc8', 'convert: simplify table conversion with templates', 'convert: added table conversion routine for sc16 to floats', 'convert: made conversion functions into classes so they can keep state', 'uhd: share more common code in cal utils', "Merge branch 'fpga_cal_work' into calibration", 'uhd: created rx IQ imbalance app to parallel tx', 'uhd: lots of tweaks for calibration utility', 'uhd: simplification for tx waveforms', 'Updates to accommodate loopback calibration mode', 'uhd: convert should use register_bytes_per_item', 'usrp: basically working iq cal on tx', 'uhd: basically usable cal sweep for wbx', 'need more umph out of correction values', 'uhd: updated ref sensor checks for new option names', 'uhd: performance improvement for tx waveforms using integer table lookup', 'uhd: first stab at calibration app', 'usrp: added missing include for weak ptr', 'usrp1: fix typo when calculating rx_dc_offset register', 'Clip WBX target freq before computing LO settings', 'uhd: useful tweaks from user', "Merge branch 'uhd_next'", "Merge branch 'fpga_master' into uhd_next", 'uhd: removed wax and props utils', 'Updated typos in XCVR2450 dboard property tree code', 'uhd: dont pass 0 sample buffs to converter (avoid segfaults)', 'usrp2: fix channel mapping calculation', 'uhd: modify examples to use new time/clock source API', 'uhd: bumped version number for next branch work', 'wbx: fixed typo because it should tx', 'wbx: bring WBX into the tree', 'sbx: bring SBX into the tree', "wbx: squashed Ben's WBX work", "sbx: squashed Ben's SBX work", 'basic: disable dboard clocks by default', 'Port of daughterboards from wax to new property trees', 'rfx: setup frontend property tree for rfx dboard', 'usrp: work on dboard code to use subtrees to populate frontend props', 'uhd: fixed compilation error on tx waveforms', 'uhd: performance speed up for tx waveforms, no iterative libmath per sample', 'remove unused irq to meet timing', 'usrp: parse rx stream args scalar', 'convenience makefiles for top level projects', 'uhd: performance speed up for tx waveforms, no iterative libmath per sample', 'increase vita rx fifosize to 10, like USRP2, make things work', 'dsp: remove dsp_buffer and replace with simpler add_routing_header, other funcs of dsp_buffer are done by double_buffer and dsp_engine', 'e100/b100: init tree before filling it', 'dsp: remove warnings', 'u1e: fix unattached nets from copy-paste error', 'b100: fix warnings, complete removal of test code', 'b100: remove test features from GPIF to save space', 'e100/b100: moved gpio regs and compat readback', 'usrp2: reg map change for GPIO core', 'usrp: fix rate calculation logic', 'usrp: multi usrp API tweak', 'somebody made a typo', 'usrp: added called to query bw range as well', 'usrp: reorganize frontend paths in tree for correction stuff', 'usrp: placeholder for potential set_next_command_time call', 'usrp: docs tweaks and renames to multi-usrp', 'usrp: prefer name iq_balance for api call', 'usrp: register properties for correction and dc offset', 'usrp: update frontend cores for dc offset', 'usrp: add api call to adjust phase/mag imbalance', 'usrp1: implement rx dc offset control hooks', 'usrp: add api control for tx/rx dc offset control', 'usrp: added get_tx/rx_rates', 'uhd: added some stream docs/app notes', 'uhd: changed stream args args to device_addr_t', 'uhd: added converter for item32 as cpu type', 'uhd: added trailer parsing for occupancy', 'uhd: fixed 8sc item32 converter on head/tail cases', 'usrp: deprecated clock config, added time/clock source calls', 'uhd: renamed convert markup to format', 'e100: performed streamer API update to e100 impl', 'b100: performed streamer API update to b100 impl', 'usrp1: support variable clock rate through API', 'uhd: added one packet mode to rx streamer', 'usrp1: got the 16Msps working (needed non hb-filter image)', 'usrp2: work on alternative OTW formats', 'usrp1: various tweaks related to streaming', 'usrp1: type conversions and 8-bit work', 'usrp1: multi channel receive working', 'uhd: renamed some of the stream types and functions', 'uhd: device_deprecated.ipp typo fix', 'uhd: restore io type header for swig backwards compat', 'usrp1: did work for stream interface on usrp1', 'uhd: updated examples to use new streamer interface', 'uhd: tweaks to streamer interface and multi-usrp convenience interface', 'usrp2: additional corrections for streaming to work', 'uhd: lots of work releated to streamer work and usrp2 implementation', 'uhd: restored super packet handler functionality', 'uhd: created backwards compatible send/recv implementation', 'convert: restored unit test functionality', 'convert: reworked convert to use new identification standard', 'uhd: work on streamer interface, lots of docstrings', 'uhd: removed unsed interfaces, deprecated otw and io type', 'uhd: moved wax API into deprecated files', 'uhd: allow device addr (from string) to parse empty values', 'n2xx: set default for checkrev on burner so gui still works', 'u1e/u1p: GPIOs switched over to setting regs', 'basic/lf: keep dboard clocks disabled (should be by default)', 'uhd: bump verion compat to 3.3.1', 'uhd: added toolchain file for native arm neon build', 'forgot to add gpio atr to makefile source list', '32 bit compat number for E and B series', 'u1e/u1p: removed led setting reg', 'u1p/u1e: partially redone atr and gpio redo', 'u2/u2p: use new setting_reg based gpios, gets it off of wb', 'u1e/u1p: remove unused UART', 'u2/u2p: move nearly all setting regs onto dsp_clk', 'u2/u2p: remove dead comments and code', 'dsp: make rounding a single bit work again', 'dsp: new rounding. more complex, but better properties', "dsp_engine: don't use SD rounding in 8 bit mode, so we can have a flat noise floor.", 'dsp_engine: trailer change to fit standard', 'dsp_engine fix rst -> reset, default to read address', 'dspengine: move the register to VITA_RX_CTRL + 9 instead of + 3 which is occupied', 'dspengine: insert into the rx chain', 'dsp_engine: new way of doing DSP operations on VITA packets. Example does 16 to 8 bit conversion', 'dsp: ability to set rx dc offset to a fixed value', 'usrp2: fix typo in top level core files', 'uhd: more doc tweaks to build guide', 'Line-wraps in general docs.', "Simple refactor, lower-cased 'FAT' so users wouldn't think it is an acronym.", 'Small changes / markup on the e1xx documentation.', 'Adding stuff to the tune request docs.', 'uhd: change how we configure version.cpp', 'docs: unified gpsdo docs and sensors stuff', 'nseries: added dont check rev option to the burner app', 'usb: improve messages/logging for when the usb open fails', 'b100: perform test claim on usb before continuing', 'b100/e100: additional constraints for clock rate configuration', 'uhd: added missing shbang to pre/post scripts', 'Fixing VID comment in firmware to reflect ERLLC rather than FSF.', 'uhd: added post/pre un/install scripts for deb and rpm packages', 'uhd: added supported models and some doc tweaks', 'Default adf4350 PLL to fast-lock mode.', 'Fix for unitialized eeprom', 'b100: new eeprom map for special 9 byte serial', 'usrp: add documentation for front-panel leds (needs FPGA update)', "Merge branch 'fpga_master' into uhd_master", 'connect and map b100 and e100 front-panel leds', 'B100: change B100 PID in usb_descriptors.a51 as well', 'uhd: specify range on tx_waveforms --ampl', 'b100: add reference lock sensor', 'usrp: added product and revision fields to eeprom', 'usrp: added revision field to the dboard id class', 'B100: use PA6 for pktend', '1 Character Patch for USRP1 usrp_eeprom.bin generation', "Renaming 'usrp1_init_eeprom' to 'fx2_init_eeprom', and making it enable based on ENABLE_USB rather than ENABLE_USRP1 since we also need it for B100.", 'Changed the udev rules for the new B100 PID.', 'B100/USRP1: pass in VID/PID from args string so you can specify where to look for devices if you like', "Init_eeprom: enhancements for B100/reinit of init'ed devices", 'B100: modify build_eeprom for correct B100 PID', 'B100 firmware fix for FPGA load race condition, plus a little cleanup for readability', "Bumping the B100 PID to 0x0002, at Josh's direction.", 'uhd: help messages for user on rx samples to file', 'e100: codec control register fix for tx', 'gen2: fixed rate calculation when > 128', 'images: fix makefile for E1XX build dirs', 'usrp2: give users a warning for gpsdo support + fw update', 'usrp2: remove old pre-release warning', 'images: include hash in the generated file name', 'usrp2: allow backwards compat with previous fw', "Merge branch 'uhd_master'", 'e100: tweak for codec params for slight improvement', 'images: typo fix building B100.bin', 'e100: gps talking -> termios magic foo', "Merge branch 'fpga_master' into uhd_master", 'usrp1: copy regs files into common and fix include paths', 'e100: gps uart deal with cr and nl', 'E100: GPSDO serial port level conversion', 'e100: added support for internal gpsdo', 'gps: use absolute timeout for communication', 'usrp: add gps control to the API', 'usrp2: uart/udp work in host and fw, working', 'ZPU/USRP2: first stab at UDP UART firmware', 'e100: added ref locked sensor for clock reference', 'e100: added support for r4 differential clocking', 'uhd: doc tweak for udp transport notes', 'B100: unshadow dboard clock rates so you can set master freq after init and still tune ok', 'uhd: bumped version numbers for this new cycle', 'Updates to example apps', 'Make unknown db complain usefully about antenna selection', 'usrp: super packet handler release in order', 'B100: LVDS clocking on db outputs', 'usrp1: disable pad to one for usrp1 (not needed)', 'b100: order of deconstruction, kill marauder first', 'B100: use gpif_misc on R2 hw, invert direction of gpif_misc pins', 'usb: added interface args to usb abstractions', 'uhd: separate_device_addr, copy globals across entire address', 'usrp: also use the new API to get the property tree in multi-usrp', 'usrp: fix string mapping for PPS_NEG clock config', 'uhd: updated to images documentation', 'u1e,u1p: turn off debug pins, misc cleanups', 'u1p: proper format in ucf file', 'usrp: remove wax::obj entry point (not used)', 'usrp: fix check for max stream_cmd.num_samps, upper 4 bits reserved', "USRP2: don't populate GPS sensors if no GPSDO found. Fixes bug #614.", 'n-series: removed unused bootloader files in fw', 'wbx: fix bug in wbxv3 tx gain readback calculation', 'udp: added check_registry_for_fast_send_threshold to non-wsa transport', 'e100: fix FPGA filename lookup, and use model string for name', 'uhd: add mimo cable config option to rx_multi_samples', 'uhd: updated docs usb post-install, added uhd-usrp.rules', 'uhd: remove Boost_LIBRARIES from pc file libs.private', "Merge branch 'e110_support'", "Merge branch 'fpga_master' into e110_support", 'u1e: relax GPMC constraints, eases P&R', 'usb: reimplement ~libusb_zero_copy_impl to avoid segfaults and indefinite timeouts', 'usrp1: reset control objects in this order to avoid race conditions', 'usb: removed handler thread, do work in get buffer calls', 'e110: added support to images Makefile', "Merge branch 'fpga_master'", 'e100: use model string to determine FPGA image to support E110', 'Header-include fix: <cstring> for std::memcpy in usrp_e_utils.', 'xcvr2450: fix the locking at marginal frequencies', 'uhd: fill in other fields of pkg-config file', 'uhd: removed WSA UDP transport implementation', 'u1e: separate build for E100 and E110, just a different FPGA', 'e100: add FIFO clear and kernel clear to loopback', 'e100: reimplemented loopback for easy regression testing', 'e100: changed compat numbers, and tweaks', 'e100: only generate random _even_ sizes for loopback', 'e100: changes to support bus work', "B100: don't reset send buffers (screws up TX)", "Merge branch 'fpga_master' into next", "Merge branch 'patch_release'", 'usrp2: made iface deconstructor safe (unlock can throw)', 'usrp2: made iface deconstructor safe (unlock can throw)', 'uhd: added docs on FPGA images for n-series hw revs', 'uhd: also normalise the time spec when adding/subtracting (added unit test)', 'uhd: tweak for tx_timed_samples to pad async msg timeout', 'uhd: more doc tweaks and added gpsdo notes to index', 'uhd: fixed formatting on gpsdo doc, added time sync docs on mimo cable', 'usrp2: manually deconstruct tasks, fixes cleanup bug', 'uhd: bump minor version for patch release', "Merge branch 'fpga_patch_release' into patch_release", 'usrp: preserve sub-ranges when calculating overall tune range', 'fix typo', 'all: tie unused ram inputs to 1 instead of zero, helps routing', 'e100: squashed work on bus implementation on GPMC', 'fix warning on dat_o in atr_controller16.v', 'uhd: fix for dealing with negative wrapping in time_spec', 'fpga: minor tweaks to build system', 'fix typo', 'all: tie unused ram inputs to 1 instead of zero, helps routing', 'b100: gpif_rst resynced to gpif_clk', 'dsp: slow down the time constant of the DC offset correction by a factor of 16. it may need to be even slower.', 'usrp2: reconnect frontend calibration, timing meets', 'usrp2: manually deconstruct tasks, fixes cleanup bug', 'B100: fix order-of-operations issue w/SPI & I2C', 'B100: reset FPGA GPIF fifos correctly so no garbage data on startup', 'usrp2: initialize channel occupancy variables,', 'usrp: use the frontend BW to clip the overall tune range', 'uhd: replace cast in usrp_burn_mb_eeprom to be like other apps (fixes ubuntu 10.4 compiler bug)', 'usrp: dboard sensors fix, populate for tvrx, and should be empty on basics/unknown', 'uhd: added readback of version and arbitrary string property to probe app', "Merge branch 'fpga_patch_release' into patch_release", 'e100: continuation of the atr fix to get e100 to build', 'uhd: bump patch version to 2 for upcoming patch release', 'usrp2: bump FPGA minor number to 2 for patch release', 'connect unused BRAM inputs to 1s to save routing logic', 'dsp: clear cic_decim when not enabled', 'N2x0: print constraints summary from makefile', 'N2x0: added a Makefile to build all N2x0 projects (make -j4)', 'N2x0: delay ADC A inversion so A and B are latched in the same', 'usrp2: bump usrp2 fw minor to 4 for upcoming patch release', 'usrp2: always resize socket send buffer to size of SRAM (we will never commit more)', 'SBX: fix typo in freq range', 'save before you commit, thanks', 'typo in last commit', 'uhd: also find RST2HTML_EXECUTABLE as rst2html.py', 'gps_ctrl: make GPSDO parsing more robust, add retries', 'udp: only build WSA transport for MSVC (not supported on mingw for example)', 'B100/E100: fix ATR RX mode pins not connected', 'uhd: fix sync docs typo for pps detect method1', 'N2XX: fix bug in firmware updater (don\'t use local variables for static data). this fixes the "n210 bricking on update while streaming" bug.', 'usrp1: handle special case of no rx or no tx dsps', 'usrp1: fix for multi-channel, OTW channel width is always 1', 'Added documentation for subdevice specifications', 'GPS ctrl fixes for uncooperative Firefly devices (Bastien Auneau)', 'uhd: if found, require a liborc version orc-0.4 > 0.4.11', 'uhd: specify all the boosts', 'uhd: minor tweak for send_packet_handler, force zero sample send hack to return zero', 'uhd: added print constraints to makefile, and used directory variable', 'uhd: incr minor, add date to images tag, add package target to makefile', 'usrp2: shutoff streaming using the stop bit (fix)', "Merge branch 'atr_fix_fpga' into atr_fix", 'usrp2: turn that message into an exception, require at least 7.1', 'usrp2: adjusted mimo delay cycles for FPGA changes', 'time: register time output to help fpga timing', 'vrt: delay the late signal to help with timing', 'dsp: allow tx iq balance to be removed at compile time', 'dsp: option to remove iq compensation at compile time', 'usrp2: remove hw config readback, not needed', 'time64: reverted mimo sync changes to time64', 'u2/u2p: speed up time_64, and remove readbacks on simple_gemac wb regs', 'simple_gemac: remove old 19-bit wide wrapper', 'usrp2: remove old unused readback mux value', 'usrp2: bump minor version number for changes', 'vita_rx_ctrl: use an extra cmd bit to signal stop', 'usrp2: fixed swapped tx/rx signals for nsgpio', 'usrp: use a new cmd bit to signal stop', 'simple_gemac: add parameter to allow disabling rx flow control at compile time', 'usrp2: created new gpio core and used in dboard iface', 'u2/u2p: apply atr/gpio changes to u2p', 'atr: forgot to delete this line', 'u2: redo the atr gpio pins, remove some old cruft', 'uhd: make spawn barrier a member of a task (see notes)', 'usrp2: fix unintended change in last commit', 'uhd: exit task on the catch-all exceptions, and dont print anything', 'uhd: fixed some warnings with gcc on macosx', 'u2p: finish copying over serdes light fix', 'e100: perfer orc if available and dont build neon intrinsic support', 'uhd: added helpful UHD_VAR macro for debugging purposes', 'uhd: replaced boost filesystem path with fs_path in property tree', 'uhd: added get_version_string and way to disable system info print', 'usrp: update multi usrp header to use complete subdev specs', 'u2/u2p: further qualify the serdes link light', 'usrp2: use the command function from card burner for net burner ifconfig', 'usrp2: workaround for older boost thread sleep', 'uhd: forward declare property tree in device so gnuradio swig cant complain', 'uhd: add get_tree call directly to the device', 'uhd: fix for images CMakeLists.txt to use the new modules directory', 'uhd: images build script chmod recursive, files only', 'fpga: save the N2XX bit files into the images build', "Merge branch 'new_work' into uhd_next", 'fpga: squashed new_work fpga changes onto uhd next', 'usrp2: comment out poll + print overflow/underflow in fw', 'usrp2: split inspection logic into each relevant cycle', 'appease the ISE gods', 'removed wb readback of ATR, allowing it to be synthesized as luts', 'N200: detailed map report allows you to see what takes up too much space', 'dsp: reduce bitwidth to help timing', 'fpga: print timing report after generate bin file', 'dsp: reset the interpolator when the rate changes, to prevent oscillation', 'b100: fix for fpga syntax error on xfer_rate', "Merge branch 'b100_shrink' into new_work", 'uspr1: shutdown thread in deconstructor (not automatically)', 'udp: check for FastSendDatagramThreshold + print warning inside the wsa transport', 'usrp2: try/catch for socket open on discovery, use large send buffers windows', 'uhd: tweaks for windows boost 1.47 compile', "Merge branch 'master' into next", 'usrp2: added fw minor and moved ICMP dest error handling to txrx app', 'usrp2: use the err transport for tx/err, and rx xports are recv only', 'udp: squashed the wsa work and added documentation work', 'Added notes on latency and through put tuning for UDP', 'uhd: some header changes from next', 'uhd: created SSE2 conversion routines for fc64', 'Updates to WBX dboard driver for version 3 support', 'uhd: pulled misc changes from other branches into master', 'uhd: added tasks to simplify thread spawning use cases', 'usrp2: added a place for product code in eeprom map', 'usrp2: added a place for product code in eeprom map', 'uhd: some tweaks to fix msvc warnings', 'Fix rounding in DBSRX2 tuning', 'Fix rounding in DBSRX2 tuning', 'E1X0 : Remove the spi and i2c test programs.', 'e100 : Adapt kernel header to work in user space.', 'e100: typo fix for calling ioctl on iface', 'e100: use the USRP_E_READ_CTL32 ioctl for async msg read', 'Update usrp_e kernel header file copies.', "Merge branch 'next' of ettus.sourcerepo.com:ettus/uhdpriv into next", "Merge branch 'fpga_next' into next", 'b100: fix for fpga syntax error on xfer_rate', 'uhd: updated the major and minor versions for next branch', 'uhd: moved modules and some other files into cmake subdir', "Merge branch 'fpga_next' into next", "Merge branch 'b100_shrink' into next", 'uhd: added unit test for properties subtree', 'uhd: benchmark example will print help if no rate specified', 'usrp: added software scale factor adjustment', 'uhd: added subtree capability to property tree', 'usrp: fix error message typo in recv_packet_demuxer', "Merge branch 'next' into properties", "Merge branch 'master' into next", 'usrp: enable/disable frontends when validating subdev spec', 'usrp: added clipping to link max rate when setting sample rate', 'usrp: handle frontend swapping if the first subdev is QI or Q', 'uhd: added inline message testing to the messages example', 'usrp2: accept old db name 0 for backwards compat', 'usrp2: set the set_alignment_failure_threshold to match default socket buffer size', 'usrp2: restored fpga compat check, updated for major/minor scheme', 'usrp2: split compat number into major/minor (increment minor for fixes)', 'usrp: removed register defs in regs.hpp that were covered by cores', 'usrp1: tweaks + implemented other features to mimic async and inline messages', 'usrp: renamed ref_source to clock_source (terminology)', 'usrp: renamed sma source option to external', 'usrp: updated documentation for various changes (mimo mode, subdevice spec defaults)', 'usrp: created common code to demux an rx stream (b100, e100)', 'usrp: added validate_subdev_spec to all io_impls', 'uhd: replaced alignment indexes implementation w/ boost bitset', 'usrp: moved fx2 stuff into common folder', 'usrp1: removed unused files from impl dir', 'usrp1: implemented properties interface on usrp1', 'e100: disable eeprom read so double open can work for now', 'e100: added false alarm count + sleep for gpio irq (since its shared)', 'e100: removed unused files from e100 build dir', 'e100: moved e100 into property tree, probes ok...', 'b100: figured it out, endianess was set wrong', 'usrp2: restored component registry', 'b100: made async callback safer, other tweaks (still issues)', 'b100: some tweaks (unresolved streaming issues ATM)', 'b100: removed old impl files, moved async processing to io impl', 'b100: got b100 into the properties tree like usrp2', 'usrp2: moved impl back into usrp subdir', 'uhd: misc tweaks and also msvc compile', 'usrp: deleted a bunch on obsoleted files in usrp directory', 'uhd: implement prop tree usage in utils', 'uhd: make sure things are initialized', 'uhd: properties tweaks and docs', 'usrp: filled in the to pp string method', 'uhd: loopback working on usrp2', 'uhd: added properties unit tests, use shared ptr<void> in tree', 'uhd: work getting multi-usrp working', 'usrp: fixed core bases (miscalculation)', 'usrp: got probe working w/ the new property tree', 'usrp2: filled in missing TODOs and code cleanup', 'usrp2: init subdev specs and tick rates', 'usrp2: fix for new props interface', 'uhd: re-work to make the properties easier to use', 'usrp2: restored discovery and most of io_impl', 'usrp2: added gps ctrl and mboard and gps sensors', 'usrp: populate a tree from a subdev', 'usrp2: setup many more control objects and xports', 'usrp2: work on setting up controllers', 'uhd: fixed sse2 conversion bounds check', 'usrp: filled in rx and tx frontend cores', 'usrp: created cores for the rx and tx dsp', 'uhd: added core for time64', 'usrp: created core controllers for i2c and spi on 100 series', 'uhd: created uart iface to inherit from', 'uhd: forgot to commit properties file', 'uhd: change for default prop create()', 'uhd: created a property tree to store properties', 'uhd: work on templated property class', "Merge branch 'master' into next", 'b100: always init the serial number in find', 'usrp2: init the usrp2_ctrl_data_t to make valgrind happy', 'uhd: print the exception so e gets used (avoid MSVC warning)', 'uhd: added dynamic throw and clone to exceptions', "Merge branch 'wbx_v3'", "Merge branch 'gps_work'", 'e100: consistent name for e100 fpga files in host code and images build', 'e100: proc_int should be high when interrupted', 'usrp2: fix typo w/ setting send frame size', 'e100: added proc_int and buffer for async messages', 'uhd: benchmark rate fix so we dont use metadata on timeout', 'Refactor GPS code to duplicate way less stuff, make members private', 'Add GPSDO documentation', 'USRP2/N210: set VITA time even if GPS not locked. harmless to do so.', "UHD: implemented gps_locked sensor. usrp2 mboard doesn't init VITA time if time not valid.", 'UHD: GPS work. * Rewrote NMEA acquisition to be more general * Added GPS sensors instead of member fns for data access * GPS sensors added to mboard sensors to keep ABI compat * VITA time initialized to GPS time on init', 'uhd: on e100, this benchmark control thread should also have prio so it can spawn both', "e100: tweak which I don't understand", 'e100: wrong gpio, its 147 for interrupt', 'b100: also spi wait before using spi to ensure its ready', 'e100: implemented spi, i2c, messages w/ peek/poke', 'WBX: Add support for WBX v3 daughterboards', 'u1p: remove uart and bus testing to fit easier', 'u1p: remove unused ports', 'uhd: re-worded the fast-path thread app notes', 'u1e: core compile now works as a fullchip lint', 'N210 R4 lost fix for ADC data termination', 'uhd: replaced boolean for thread loop w/ boost::this_thread::interruption_requested', "Merge branch 'fw_updater'", "Merge branch 'card_burner_tweaks'", 'N210: update burner for python3.0, added listbox for device selection in gui', 'uhd: replaced boolean for thread loop w/ boost::this_thread::interruption_requested', "usrp2: macosx fix, use object's strip, not str (could be unicode)", 'u1p/u1e: cleanup some warnings, connect the correct clocks', 'fw_updater: windows enumeration works', 'u1p: connect have_packet signal', 'usrp2: removed asserts in card burner, remove ascii decode', 'u1e: fix typos', 'fw_updater: decrease discovery timeout, modify win to return bcast instead of ip', 'fw_updater: device enumeration support, not integrated into main app yet', 'u1e: the perils of cut and paste', 'fw_updater: add broadcast addr finding for *nix/Win', 'u1e: rearrange gpmc fifo', 'fw_updater: add support for fictitious "rev 2" N2XX', 'u1e: experimental rewrite of read path of gpmc', 'N2XX: firmware stops device streaming on fw update, and updater script checks hw rev before proceeding', 'USRP2/N2x0: incremented compat numbers for frontend work', "Merge branch 'usrp_e100_aux_spi' into dsp_rebase", 'u1e/u1p: new register map for new dsp', "Merge branch 'benchmark_rate'", 'uhd: use aligned loads and stores for floats in sse2 conversion routines', "Merge branch 'next'", 'b100: removed defunct test utilities', 'uhd: more benchmark tweaks, removed old benchmark rx', 'uhd: added dropped samples calculation to rx test', 'uhd: created benchmark rate app', 'usb: fix for fx2_ctrl include issue', 'uhd: increment version minor for release', 'b100: update find to match usrp1 style + features', 'b100: removed usrp prefix from files', "Merge branch 'philip/e100-fpga-test-fixes' into next", 'b100: fix fx2_ctrl include to use relative path', 'usb: fix for fx2_ctrl include issue', 'e100: clean up gpio wrapper stuff, fix order of setup in make()', "Merge branch 'master' into next", 'e100: removed usrp from directory prefix', 'uhd: tweak for bounded buffer pop elem', "Merge branch 'master' into frontend_work", 'b100: tweaks to get dsp branch working', 'b100: support for dual dsp', 'uhd: added host to/from worknet conversion to byteswap header', 'u1p: work in dual rx and frontend from u1e', 'u1p: new tx dsp frontend, copied from u1e', 'u1e-dsp: attach tx dc offset and iq balance', 'uhd: increment version minor for release', 'n2xx: makefile typo fixes', 'b100: added images to Makefile', 'b100: added b100 host (squashed)', 'b100: added b100 firmware (squashed)', 'uhd: updated images Makefile', "Merge branch 'fpga_next' into uhd_next", 'uhd: under/over flow app notes', 'usrp_e100: init the subdev specs before calling io_init', 'uhd: fix for resize routine of super packet handler', 'uhd: update packet handlers when the clock rate is changed', 'uhd: fix some warnings under msvc in sph', 'uhd: removed vrt packet handler code', 'usrp_e100: super packet handler support squashed', 'usrp1: super packet handler support squashed', 'usrp2: super packet handler support squashed', 'uhd: supper packet handler support squashed', 'NEON detection for E100 in convert/', 'Remove unnecessary include', 'use temp vars in sc16->item32 to make orcc happy', 'UHD: added item32<->sc16 conversions in Orc', 'UHD: Fixed convert_test (scalars backwards), fixed Orc conversions (endianness backwards).', 'UHD: Orc conversion routine works', "UHD: Orc implementation added and CMake magic put in. Won't link.", 'uhd: added scaling factor to conversion routines', 'N210: stop sending 1 char at a time to the GPSDO', 'N2XX: fix UART bug for GPSDO', 'usrp1: moved fx2 control into its own directory', 'uhd: allow benchmark to continue on untracked error codes', 'e100: bug fix w/ SID parsing (endianess)', 'uhd: added host to/from worknet conversion to byteswap header', 'sph: added unit test for overflow handler', 'uhd: made all bounded_buffer methods forced inline', 'udp: replaced callbacks in zero copy interface by giving direct queue access', 'e100: disable debug prints in io impl', 'e100: dual dsp working, cleanup for io impl, needs more testing', 'usrp: use dboard name A or single slot boards', 'e100: dual dsp support (compiles, not tested)', 'uhd: changed compat numbers to reflect dsp work in fpga', "Merge branch 'usrp_e100_aux_spi' into frontend_work", 'usrp: added registers and mux calculation for fe work', 'dsp: implement iqbal on tx', 'usrp-e-timed : Fix stupid typo in tx rate calculation.', 'usrp-e-loopback : Fix transfer rate calculation.', 'u1e: new write interface, with 2x clock', 'u1e: new 2 clock fifo, 18 bits by 1K', 'uhd: added information in reference sources to sync docs', 'B100/USRP1: fix bug where fpga size div by 64 resulted in never finishing load', 'uhd: added more SAFE_CALL macros to hardware wrapper dtors', 'N2XX: this method for defining R3/R4 actually works', 'uhd: added safe call on a few dboard related deconstructors', 'usrp-e100: fix message typo, its master_clock_rate', 'usrp-e100: removed passthrough files, not needed w/ aux spi for clock chip', 'usrp-e100: make reg_test32 persistent across resets, bump compat number', 'usrp-e100: work on aux spi', 'dsp: remove unused setting reg', 'dsp: added tx_frontend, instantiated in u2/u2p', 'dsp: small_hb_dec now 24 bits wide as well', 'dsp: do everything at 24 bits wide', 'u1e: update u1e to use new rx_frontend, and give it a 2nd rx dsp core', 'u2/u2p: use all 24 bits from the rx_frontend', 'dsp: pass 24 bit wide signals between frontend and dsp core. Overkill, but we have the bits already, so why throw them away?', 'dsp: clip in hb_dec to prevent the rare overflow with certain frequencies at max amplitude', 'dsp: add guard bit to top of cordic to allow clipping on output instead of wrapping', 'dsp: fix off-by-one error in timing of hb_dec', 'dsp: register hb output', 'dsp: no need to keep all the low order bits from the accumulator', 'dsp: increase gain of small_hb_dec because it used to scale down by factor of 2. Clip if needed.', 'dsp: use round_sd in small_hb_dec', 'dsp: reorganized scaling and rounding, removed multipliers (will put back in a different location)', 'dsp: testbenches for dsp blocks', 'dsp: tx_dcoffset, not integrated yet', 'dsp: add resets for simulation purposes', 'dsp: do proper rounding at the end of dsp chain', 'dsp: reworked muxes on rx', 'dsp: more typos', 'dsp: new files in dsp directory', 'dsp: fix typos', 'dsp: add2_and_clip_reg and round_sd now are now strobed to be compatible with strobed (non-full rate) data', 'u2/u2p: use new rx_frontend in u2 and u2p', 'dsp: use sigma delta rounding in rx_dcoffset and in dsp_core_rx', 'dsp: reworked round_sd, it is much simpler now', 'dsp: first cut at sigma-delta rounding', 'dsp: pass the error through in the rounding function', 'u2/u2p: misc connection and compilation fixes', 'unused nets', 'u2/u2p: pull IQ balance and dcoffset out of dsp_core, put in frontend module', 'redone DC offset with sigma-delta quantization', 'fix copyright notice', 'added copyrights', 'lots of renaming and moving around of toplevel directories to reflect product names', 'remove old ethernet tester, no longer needed or working', 'removed bit-rotted test harness', 'remove old iad stuff', 'N210: added makefiles in for rev 4 versions (use LVDS)', 'u2p: FPGA internal termination on the clock line from ADC', 'u2p-lvds: remove unused nets', 'builds now', 'first cut at using lvds for adc pins', 'uhd: many tweaks for tx_waveforms including performance', 'uhd: increment version minor for release', 'usrp-e100: bring up the clock as the first thing', 'usrp-e100: removed clockgen config stuff and docs', 'usrp-e100: added check for wishbone readback and clock recovery', 'usrp-e100: work on aux spi', 'uhd: just send a mini EOB packet for tx timed samplesa', 'wbx: mixers always enabled, ant switches always defined', 'uhd: pseudocode tweaks for sync docs', 'usrp2: catch exceptions thrown in locker loop (like the user unplugs device)', "Merge branch 'sync_docs'", "Merge branch 'gpsdo_ant_power_docs'", 'uhd: tweaks to log and msg implementation', 'Added GPSDO antenna specs', 'updated sync doc for clarity & examples', 'uhd: added app notes to docs on tuning', 'usrp2: added app notes on multi channel RX', 'uhd: notes on LO calibration, and tweaks', 'uhd: work on sync docs', 'tx_bursts: minor change', 'tx_bursts: optional repeat', 'u2p-rebase: go back to versions on next', 'B100: added some packet splitter debug pins, removed debug from GPIO port, swapped I&Q in interleaver', 'u1p: reset gpif', 'u1p: connect frames per packet', 'u1p: implement a signal to indicate a partially full usb lut, to flush it', 'u1p: need to declare wires', 'u1p: vita packet generator for testing purposes', 'should split and reframe packets properly', 'u1p: do padding outside of gpif_rd, in packet_splitter', 'u1p: should fix underrun reporting', 'u1p: modify dsp_framer36 to allow it to skip the udp prot eng headers. This way it works with u1e, u1p, as well as u2/u2p', 'u1p: add new file to build', 'u1p: modernize, fix warnings, debug pins', 'u1p: debug pins', 'u1p: unused signals', 'u1p: better way of reframing the packets', 'u1p:wr testbench', 'u1p: use 18 bit fifos and use full size of a block ram in the tx path', 'u1p: gpif-to-fx2 path should now handle arbitrary sized packets, up to 2KB', 'u1p: pass tx status/error packets back through GPIF over the response channel (short packets)', 'u1p: added loopback and timed capability just like u1e', 'u1p: revert change to address bus width', 'u1p: use icarus verilog to find warnings', 'u1p: fix bus widths and other warnings', 'u1p: added debug0, debug1 for GPIF debugging', 'u1p: add clear ports to gpif, not hooked up yet', 'u1p: remove extram from Makefile', 'u1p: catch up with all the recent u1e changes', 'modernize the make files, it now compiles. not tested.', 'select bus is 2 bits wide', 'I2C slave address decoding for 16-bit dw instead of 32-bit', 'Fixed I2C pin names.', 'add padding into gpif response path', 'pad out packets to a minimum length', 'fixed length command packets', 'give response packets the same format as tx packets', 'successful test', 'old and unused', 'put gpio back in', 'fifo to wb should be functionally complete, needs testing', 'not used', 'fix ctrl/resp path to pass all 16 bits of data instead of the bottom bit typos fixed, everything is connected now, should just have off-by-1 error lots of debug pins added', 'send reset to the gpif', 'constrain the gpif clock', 'first steps to a command packet handler for u1+', "redone gpif interface to match nick's new spec", 'use vita_tx_chain top level block', 'hook up flow control pins', 'added a loopback control port, will do full wishbone interface later', 'progress on gpif interface', 'gpif skeletons', 'skeleton', 'copied over from u1e, most pins hooked up.', 'Use the 4th LED which is shared on the cfg_init_b pin', 'compiles now', 'copied over from other repo. Beginnings of a skeleton fpga image for USRP1-Plus', 'minor change to tx_bursts', "Merge branch 'master' into burst_test", 'WBX: keep mixer on when TX idle, and switch TX ant sw to RX when idle to keep mixer from feeding out when idle. This allows USRPs to maintain a constant phase relationship between MIMO devices while operating.', 'add gain to tx burst app', 'added tx_bursts MIMO burst transmit test', "tx_waveforms: don't have to set time_spec for every pkt in the stream", "tx_timed_samples: fix so EOB isn't set on every pkt", 'tx_waveform: no SOB for continuous streaming', 'UHD: make tx_waveforms MIMO-capable', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv", 'tvrx2: fix docs formatting typo', "Merge branch 'usrp_e100_clock_sync'", "Merge branch 'fpga_next' into uhd_master", 'u1e: incremented compat # to 4 for vita length change', 'usrp-e100: set_ignore_sync_fpga_plus_codec', 'N210: how the heck did the PPS fix get dropped again', 'uhd: picked some minor changes from super packet handler', 'usrp2: turn on ups_per_sec to avoid timeout issues on low sample rates', 'N210: changes for rev 4 support', 'uhd: removed deprecated warning API, log+msg now in API', "Merge branch 'master' into release_work", 'usrp2: moved register map into #defines, entries for new dsp frontend', 'uhd: some build system tweaks', 'USRP1: implement MBOARD_PROP_CLOCK_CONFIG, only accepts internal', 'E100: fix aux codec ADC reads as per USRP1 in 6f70d1', "Merge branch 'master' into release_work", "Merge branch 'use_vita_length' into next", 'usrp-e100: incremented compat # to 4 for vita length change', "Merge branch 'next' into use_vita_length", 'u1e: incremented compat # to 4 for vita length change', 'uhd: replace managed buffer shared pointer w/ intrusive pointer to reduce overhead', 'usrp1: correct TX codec rate, it should also read 64e6 when probed', 'usrp1: apply conditional disables/enables to rx and tx', 'uhd: add gcc warning for sign comparison mismatch', "Merge branch 'tvrx2'", 'uhd: init log file lock ptr to null', 'uhd: work on logging and message facility initialization', 'Added TVRX2 support', 'usrp-e100: created device address arg for master clock rate, removed eeprom hack', 'usrp2: device locking, use gpid so the process cant lock itself out', "Merge branch 'master' into next", 'usrp-e100: use misc test32 register to store fpga hash', "Merge branch 'next' into use_vita_length", 'u1e: get dsp_framer36 from u1p so it can skip the protocol header', 'u1e: switch to vita_rx_chain module just like other toplevels', 'usrp-e100: added soft sync for ad9522 clock control', 'usrp_e100: work w/ ad9522 clock configuration', 'Make log locking work with picky boost', 'usrp1: overload read_eeprom to handle multi-byte reads', 'usrp1: added more logging to usrp1 iface for debugging', 'uhd: various tweaks to log and msg, replaced a few remaining stdio', 'uhd: removed more iostream stuff from usrp* implementations', 'usrp-e100: removed stdio prints from implementation', 'uhd: replaced warning post with calls to UHD_MSG(warning)', 'uhd: added interprocess file lock to the logger file', 'uhd: replaced many conditional prints with UHD_LOG usage', 'uhd: tweaks for logger file entries', 'usrp: replaced conditional dboard debug prints w/ UHD_LOGV(often)', 'uhd: moved the logger into the utils subdir', 'uhd: added configurable default log level and thread safety', 'uhd: work on the backend for a logging facility', "Merge branch 'master' into next", 'usrp2: added REF_MIMO and PPS_MIMO for USRP2 clock config', "Merge branch 'rfx_rssi'", 'Added docs for sbx', 'Added RSSI sensor for RFX series (not rfx400)', 'usrp1: toggle the FPGA reset and RX reset registers at init', 'usrp2: added the concept of device locking to usrp2/nseries devices', 'usrp2: combined peek and poke commands and added virtual firmware registers', "Merge branch 'master' into next", 'usrp2: move card burner code out of get_options so get_options can be used by the gui without interference', 'usrp2: allow devices to be discovered when usrp2_iface::make throws', 'usrp2: added support for GPSDO configuration bits in EEPROM', 'GPS parser fixes for get_time.', 'USRP2/N210: firmware UART read no longer drops 20th char', 'USRP2: enable GPS by default', 'USRP2: Added GPS time support to the sensors interface. gps_time sensor returns epoch time as time_t. Untested.', 'N210: implemented mboard sensors for ref lock and MIMO lock', 'uhd: make benchmark example take a rate, and give special warning for usrp1', 'usrp2: card burner protections when the user specifies a device not in the list', 'usrp2: include dd.exe in windows installers', 'dbsrx: implement SUBDEV_PROP_ANTENNA to give users a better error', 'uhd: switch vita unpacker over to using proper vita length', 'N210: Bootloader includes TXRX. No longer uses safe firmware as backup fw.', 'N210 fw: Move spif_init into bootload_utils', 'N210: Minor rearranging of bootloader impl in txrx', "N210: TXRX_UHD now has bootloader #ifdef'ed into it. Safe firmware now embedded into FPGA bootloader. Also did some cleanup of unused source files and consolidated bootloader stuff into bootloader_utils.", 'N210: Moved u2p_init into main app and changed bootloader behavior to not load safe fw if safe mode button pressed', 'N210: Make new bootloader ignore safe firmware when safe mode button is pushed.', 'N210: bootram expanded to 16KB (8 BRAMs) and UDP bootloader added', 'N210: UDP bootloader first stab (16K boot RAM)', 'N210: UDP bootloader', 'N210: Created UDP bootloader and modified RMI generation to 16K', 'N210: Additional checks on both the host and firmware sides of the firmware updater.', 'uhd: use int() casts on enum constants to help swig2 parse it as int', "Merge branch 'master' into next", 'usrp-e100: shrink name field to git mcr into eeprom', 'USRP1: added support for setting clock rate from EEPROM', 'usrp-e100: add ability to set/get default master clock rate from EEPROM', 'uhd: fixed typo in tune request/result inter_freq -> rf_freq', 'usrp2: use default mtu as upper limit unless user specifies', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv", 'uhd: removed constants.hpp.in, replaced w/ per source compile defines', 'uhd: use UHD_PKG_DATA_PATH environment variable to override the one in constants', "Merge branch 'usrp2/discover_with_old_fw'", "Merge branch 'usrp2/discover_with_old_fw'", "Merge branch 'rfx_use_clock_divider'", 'usrp2: improve the compatibility error messages', 'uhd: use UHD_PKG_DATA_PATH environment variable to override the one in constants', 'rfx: changes to pick from the dboard clock rates and use R=1', 'uhd: added option for nsis installer to set PATH', 'usrp_e100: added recv/send_frame_size xport args', 'rfx: reverted change, now prefer R divider to clock divider', 'usrp1: fix for tx under remainder conditions', 'usrp1: the rx mux was reversed (fixed multi-channel rx)', 'uhd: updated readme for WBX/SBX work', "Merge branch 'gdb_support'", "Merge branch 'sbx-adi'", 'Enhance WBX IQ balance performance through LO drive', 'wbx: split wbx into daughterboard and granddaughterboard implementation', 'xcvr2450: initialize the max_power variable', 'usrp: support for grand daughter board eeprom', 'usrp: work on dboard_manager to register an ID for multiple xcvr combinations', 'uhd: added scoped lock to device find and make (for thread safety)', 'usrp1: rmmod usbtest because it interferes', 'uhd: added more hw params to rx_ascii_art_dft', 'Handle antenna switching and LEDs', 'SBX enable LO LPF at 1.5GHz', 'Makes 2nd SBX proto work', 'Updating SBX to latest UHD', 'Capture characterization changes', 'Initial SBX-ADI driver', 'uhd: move thread loop condition flag to before barrier (prevents race condition)', 'N210: Additional checks on both the host and firmware sides of the firmware updater.', 'uhd: use int() casts on enum constants to help swig2 parse it as int', 'Updated documentation and improved XCVR RSSI calculation', 'uhd: only set UHD_BUILD_INFO on successful return (also removed unused cruft)', 'uhd: specify the UHD_PKG_DATA_PATH once (since images shipped w/ drivers)', 'uhd: python messages more verbose + print boost configuration info', "Merge branch 'thread_prio_warning'", "Merge branch 'fix/usrp_e100_clock'", "usrp2: use the firmware's discovered compat number", 'usrp2: add check for holler protocol, we can support backwards', 'uhd: attempt to cleanup language in thread prio warning', 'usrp2: support fw protos with older compats for various parts', 'usrp-e100: reset dboard clocks on rate change, and dont cache in dboard iface', 'usrp1: fix path to firmware files for fpga top level', "Merge branch 'mingw_cygwin'", 'uhd: always link winsock2 on windows, disable pthread SCHED_RR for cygwin', "Merge branch 'python3_work'", 'usrp2: restore executable permission on python scripts', 'usrp2_card_burner: decode byte strings into ascii for parsing', 'usb: mark libusb callbacks with LIBUSB_CALL to ensure correct calling convention', 'usrp2_card_burner: change the padding string to bytes', 'usrp_n2xx_net_burner: working on python3 (string is not the same as bytes)', 'usrp_n2xx_net_burner: remove thread from gui', 'usrp2: ran 2to3 on python apps and make corrections for old imports to work', 'uhd: tweaks for cygwin/mingw, always link winsock2, findusb1, __USE_W32_SOCKETS', 'uhd: replace <prefix> with <install-path> in docs for clarity', 'uhd: a few minor changes to get uhd building under mingw or cygwin', 'uhd: set CPACK_PACKAGE_INSTALL_DIRECTORY on NSIS so we dont get an inconsistent version suffix', 'usb: newer libusb1 does not need to link with setupapi.lib', 'uhd: specify msvc for implementations known only to work on msvc', 'images: create a tag file to associate the version number w/ images', 'uhd: define LINUX in build system to simplify some checks', 'uhd: setup INSTALLER_PKG_DATA_DIR for windows systems', 'uhd: added images and readme installer component', 'uhd: increment patch number for next release', "Merge branch 'use_boost_barrier'", "Merge branch 'rfx400_tx'", "Merge branch 'images_install'", "Merge branch 'fix/usrp1_spi_read'", 'uhd: disable visibility=hidden on non-dll platforms (cygwin)', 'uhd: install dlls into runtime path, updated docs', 'uhd: implemented boost barriers on all code that creates threads', 'Correct RFX400 div2 logic, makes RFX400 TX work', 'uhd: added UHD_IMAGES_DIR option to include images in the package', 'usrp1: fixed codec ctrl aux adc read (didnt start conversions) + cleaned-up logic', 'usrp1: reverted spi transaction changes to the usrp1 firmware (broken and not needed)', 'usrp1: switch usrp1 iface to use spi read (transact never worked)', 'usrp1: ignore claimed interfaces, avoids the problem of discovery when one device is claimed', 'uhd: remove build information in the version string (just major.minor.patch)', 'usrp-e100: set the ticks-per-second every time we change clock rate', 'usb: tweaks to the build guide (libusb + windows)', 'usb: changes to allow for static linking of libusb on windows', 'uhd: revert VERSION setting for libuhd, macosx does not like patch level', 'uhd: set LIB_SUFFIX automatically (all 64-bit redhats)', 'uhd: expand UHD_RELEASE_MODE setup to all debian and redhats', 'uhd: various packing fixes (lib suffix, and library components)', "Merge branch 'master' into next", 'uhd: swapped UHD_PACKAGE_MODE with UHD_RELEASE_MODE (boolean)', 'uhd: work on versioning technique for the releases', "Merge branch 'usrp_n2xx_net_burner_gui'", "Merge branch 'mac_packaging'", "Merge branch 'fix/usrp_n2xx_serial_bootloader'", 'usrp2: added usrp_n2xx_net_burner_gui to build system installation', 'usrp2: created net burner gui wrapper for N series', 'usrp2: fixed serial bootloader for N series', 'usrp2: fix typo, now building n200 fpga images', 'uhd: work on mac osx packaging', 'usrp2: modified firmware build rules to chain the dependencies (better for make -j4)', 'uhd: added USRP-N200 build support to images Makefile', "Merge branch 'fpga_master' into n200_support", 'u2p: N200 Makefile', 'u2p: N200 Makefile', 'uhd: update copyright headers with automated script', 'uhd: try to be smart when setting up cpack when UHD_PACKAGE_MODE=AUTO', 'uhd: added libusb1 to CPACK_RPM_PACKAGE_REQUIRES', 'uhd: work on debian package requirements in cpack setup', 'uhd: setup UHD_VERSION and CPACK_PACKAGE_FILE_NAME', 'uhd: setup cpack components for component based installers', 'usrp2: use the discovered mtu to clip the user specified mtu', 'uhd: added comments/documentation to clock_config', 'usb: fix callback cast in libusb zero copy under msvc', "Merge branch 'fpga_memory_reorg' into usrp2/new_reg_map", 'reverted zpu stack pointer change, incremented fpga compat number', 'usrp2: increment fpga and fw compat numbers', 'usrp2: use new and common slave base map for usrp2/n210', 'memory_reorg: new bootloader.rmi for n210', 'u1e: use icarus verilog for lint', 'clean up a bunch of warnings and incorrect bus widths', 'u2p: fixed bootloader remapping', 'u2/u2p: reorganized memory map', 'u2/u2p: fixed instance name', 'udp: alternate udp ports', 'usrp2: cleanup checksum code and fix precompute checksum bug', 'udp: look for checksum in the right place', 'udp: fix precomputation of ip header checksum', 'simple_gemac: fixed typo for tx_clk and tweaked ethtx_realign.v', 'eth: the danger of cut and paste', 'moved the eth realignment stuff into the simple_gemac', 'eth: add padding on incoming packets, remove on outgoing packets', 'udp: speed up checksum calculation to meet timing', 'u2/u2p: reworked settings bus addresses', 'udp: short fifos on prot_eng in and out', 'udp: new 32 bit wide udp state machine seems to work', 'udp: this one removes half a line, used on transmit side', 'udp: this one adds a half line, useful on receive side', 'udp: checkpoint', 'prot eng should work, ethtx is a skeleton', 'usrp2: use the proper lwip macros to set the ip header', 'usrp2: moved sregs in host code, simplfy reg struct a little', 'usrp2: moved sregs in fw memory map, new framer register table', 'u1e: removed old directory from make', 'u1e: keep up with fixes made for u2/u2p, make it compile again', 'usrp2: common memory map, define slave bases in different headers', 'usrp2: fixed mtu discovery bug, was using the last failed value', 'usrp_e1xx : Remove reset offset from register map.', "Merge branch 'windows_fix' into next", 'usrp2: minor fix to use more ntohl', 'usrp_e : Remove commented out FPGA reset code.', 'usrp2: clip the mtu discovery if its within default MTU + a few', 'uhd: make CMAKE_BUILD_TYPE a visible variable in the gui', 'usrp2: also store expected_time in-between states', 'uhd: created rx_multi_samples for multi-channel example', 'uhd: cleanup/tweaks on timed samples examples', 'uhd: offer alternative named for python binary (seen on ubuntu server)', 'uhd: added continuous streaming and new options to tx_waveforms', 'uhd: a lot of tweaking, new parameters, and sig handler for to/from file examples', 'uhd: created tx_samples_from_file.cpp and added to rx_samples_to_file.cpp', 'usrp2: bump up timeout on mtu discovery (seen to be a bit too small on windows vbox)', 'uhd: only specify BOOST_SP_USE_QUICK_ALLOCATOR for the lib, apps can be built without it', 'usrp-e100: added module compat num check, made fpga compat constant more obvious', 'uhd-images: specify CPACK_PACKAGE_FILE_NAME so files names are platform independent', 'usrp-e100: fpga fix removed missing directory from include', "Merge branch 'packet_router_2nd_dsp' into next", 'uhd: revert changes to rx_timed_samples', 'uhd: fix safe call header cuz it was moved on the next branch', "Merge branch 'master' into next", 'uhd: fixed include in safe call, added quotes for SET_SOURCE_FILES_PROPERTIES', 'usrp1: safe destruction for usrp1 device', 'usrp1: also replaced control error prints w/ throws', "Merge branch 'master' into next", 'usrp1: throw in control calls that fail rather than print the error', 'usrp2: created safe call macro and handle usrp2 ~mboard throwing', 'usrp2: created safe call macro and handle usrp2 ~mboard throwing', 'usrp: moved wrapper utils into multi-usrp', 'usrp2: save alignment indexes between state to fix the lost packet problem', 'usrp2: save alignment indexes between state to fix the lost packet problem', 'TVRX: no longer muxing in noise on Q channel', 'usrp: fix for mux calculation when using real q', 'usrp2: comments for buffer size setting', 'fix: vita_rx_chain1 should use unit2 (since err0 uses unit1)', 'packet_router: created packet dispatcher component to replace packet inspector in router', 'uhd: thread safety notes and moved some docs to general', 'first cut at 36:72 and 72:36 for extra wide fifos. untested', 'u2/u2p: proper connections for dsp_framer', 'u2/u2p: fix off-by-one error in dsp_framer', 'usrp-e100: reinstate the VCO calibration timeout message', 'usrp: dboard iface can inherit from i2c iface', 'uhd: whoops, spi convenience functions have 32 bit data', 'u2/u2p: enlarge dsp rx fifos to handle jumbo frames, enable in u2plus as well', 'u2/u2p: removed redundant shortfifos from udp path (they are in the size adapters now)', 'u2/u2p: moved dsp framer into vita_rx_chain', 'usrp-e100: disabling VCO cal check, its not right, and the warning alarms people', "Merge branch 'usb-cancel' into next", "Merge branch 'boost_fs_string' into next", "Merge branch 'master' into next", "Merge branch 'fpga_master' into next", 'usrp_e : Check packet length received from FPGA in case of corruption.', 'usrp_e : Add usrp e1xx gpio test program the usrp e100 utils directory.', 'E100: fix test clock output enable', 'USB zero copy impl: proper cleanup for canceled transfers -- wait for cancel before freeing', 'usrp_e100: Move gpio test program to utils.', 'usrp_e100: Delete old test scripts.', 'uhd: replace file_string() with string() for deprecation reasons', 'uhd: copied examples changes from next onto master branch', 'uhd: added missing set_tx_antenna() in tx waveforms', 'usrp2: tweak the mtu discovery logic', 'usrp2: firmware can send jumbo dummy packets (only writes up to 2048)', 'u2/u2p: rework ports again', 'u2/u2p: reworked port names on packet_router', 'u2/u2p: reworked dsp framer to work more like a fifo, and do vita length correction', 'u2/u2p: allow cpu to receive or send packets longer than the buffer size. on reception, the rest is dropped. On sending, the rest is a repeat of the buffer.', "make fifo36_to_ll8 properly handle partial end lines. I could swear I've fixed this before...", 'usrp2: work on mtu discovery', "Merge branch 'gpmc_testing' into ethfifo_reorg", 'remove references to old directory', 'all: removed old unused fifos', 'all: short fifos on front and back of fifo36_to_fifo19', 'u2plus: catch up with ethfifo changes which were on u2', "Merge branch 'master' into next", 'u2/u2p: remove duplicated short fifo', 'u2/u2p: shortfifos in fifo36_to_ll8, no more _n junk', 'uhd: removed mb_eeprom from mboard iface (already exposed in property)', 'make big tx fifo the one doing the clock crossing', "Merge branch 'mb_iface' into next", 'u2/u2p: rxdsp/cpu/err muxing now prioritizes cpu and err over rxdsp', 'u2/u2p: removed unneeded eth rx fifo', 'Update USRP1 External Clocking docs for set_master_clock()', 'Fixes inverted logic in sensors bool interface', 'u2/u2p: switch over to 36 bit wide ethernet wrapper', "Merge branch 'ethfifo_reorg' of ettus.sourcerepo.com:ettus/fpgapriv into ethfifo_reorg", 'ethfifo_reorg: switch buffer int2 lastline to work as a length parameter', 'u2/u2p: packet realignment moved into the simple_gemac_wrapper19', "Merge branch 'master' into next", 'u2/u2p: get rid of redeclaration', 'u2/u2p: ll8 now all active high, removed extra shortfifo from eth wrapper', 'u2/u2p: short fifos put on both sides of ll8_to_fifo19', 'Generalized mboard_iface and added a SPI convenience class a la I2C', 'usrp1: check for fw images only for uninitialized devices', 'usrp2: only include fw_common when needed, remove virtual send/recv, not exposed', 'Generalized the mboard_iface into mboard_iface.hpp and made each of the USRP devices inherit from it.', 'udp: return the managed recv buffer to the buffer queue on timeout', 'usrp2: minor optimization, only disable interruption when we need to wait()', 'Hopefully the last typo in external clock mod for usrp1', 'Fix typo in usrp1 external clock modification docs', 'usrp-e100: disable the global reset for now', 'uhd: make ic reg maps depend on common.py', 'udp: return the managed recv buffer to the buffer queue on timeout', 'usrp2: minor optimization, only disable interruption when we need to wait()', 'Hopefully the last typo in external clock mod for usrp1', 'Fix typo in usrp1 external clock modification docs', 'timed packet generator : Temporarily use a checksum rather than a crc to validate packet integrity.', 'correct port names', 'usrp-e100: disable the global reset for now', 'uhd: make ic reg maps depend on common.py', 'fifo36_mux now has shortfifos on the input ports as well as output', 'uhd: sensors header fix to make swig happy', 'uhd: sensors header fix to make swig happy', 'timed tester : Bring out src/dst flags for rx chain for testing.', 'usrp_e : Prevent people from typing in large numbers that crash the test.', 'usrp-e100: conditional code for when fpga downloader is externally included', 'uhd: exception code gen simplification', 'uhd: switch algorithm namespace to uhd', 'uhd: replaced instanced of std::exception with the uhd exceptions', 'uhd: renamed the assert header to assert has', 'uhd: moved exception to top level include', 'uhd: added a bunch of custom exceptions, not used yet', "Merge branch 'usrp2_dual_dsp' into next", "Merge branch 'packet_router_2nd_dsp' into usrp2_dual_dsp", 'usrp2: move buffer resize code and add rule for bsd/mac', 'usrp2: fixed flow control monitors indexing, fixed multi-usrp send bug', 'usrp2: div->ldiv fix for overloaded types w/ msvc', "Merge branch 'usrp2_fw_clock_cleanup' into usrp2_dual_dsp", 'uhd: switch dboard id prop to whole eeprom struct', "Merge branch 'sensors' into dboard_serial", 'uhd: simplify dboard eeprom code by passing iface into load/store', 'uhd: added 9 byte serial to dboard eeprom class', 'usrp2: cleanup clocks firmware stuff, removed unused code', 'uhd: replace header checks in cmake files with more robust compile checks for features', 'usrp2: 2nd dsp working, tweaks regs map and other bugs', 'uhd: moved indexed device addr routines into api', 'u2/u2p: shrunk ETH TX FIFO, further u2/u2p harmonization', 'usrp-e-utils : Delete more old files.', 'usrp-e-utils : Remove old files.', 'usrp-e-utils : Move loopback and timed test programs into utils directory for e100.', "Merge branch 'next' of ettus.sourcerepo.com:ettus/uhdpriv into next", 'usrp-e-crc-rw : Work with GU fpga image. Cleaned up warnings.', 'usrp-e-mm-loopback : Works with GU fpga image. Cleaned up warnings.', 'usrp2: code working again in a completed form but did not test dual dsp', 'udp: try non-blocking recv first for performance', 'udp: update docs for transport, create common header for wait implementation', "Merge branch 'master' into next", 'usrp-n2xx: checkout burner into next branch', 'usrp-n2xx: reimplemented nicks image readback ontop of changes', 'usrp-n2xx: reimplemented the net burner to use one socket per session', 'usrp2: lot of work on dual dsp, grep for TODOs before continuing', 'usrp2: moved all dsp related code into dsp_impl and split for multiple dsps', 'usrp2: added indexed regs for rx dsp and ctrl', 'uhd: got all compiling w/ changes, changes to channel calculation in multi usrp', 'u2/u2p: inserted short fifo into the packet inspector path to help routing and timing', 'usrp: support for multiple dsps in props and implemented in usrp1', "Merge branch 'sensors' into usrp2_dual_dsp", 'uhd: work on multiple dsp in host wrapper', 'u1e: hook up tester controls', 'usrp2: prefix the dsp and ctrl registers with 0 in preparation for 2nd dsp', 'increase compat number for double dsp change', 'usrp2: added 2nd dsp support to firmware for 2 and N series', 'u2/u2p: reduce unneeded RX DSP buffering', 'u2p: 2nd DSP now in u2p as well', 'uspr2: memory map tweak for dual dsp', 'added port_sel param to dsp framer', 'u2/u2p: added 2nd DSP unit', 'u2/u2p: renamed and split some rx signals to prepare for 2nd DSP', 'uhd: use source properties to set flags and defs not globally, but only for the source', 'u2/u2p: proper hookup of vita_rx_chain', 'move declarations to before use', 'hook up under/overruns for debug purposes', 'uhd: boost linking + msvc configurable, defaults to static', "Merge branch 'master' into next", 'uhd: tweaks for windows msvc compiler warnings and errors', 'uhd: optional variable to specify a non-default name for uhd library', 'uhd: added arch flags for sse2 (was not implicit on x32)', 'e100: integrate loopback and timed testing into main image', 'Fix endianess for packet length and sequence number for e100 timed image.', 'put these files in the right place. newfifo is long gone.', 'uhd: work on identification docs, moved duplicated notes in general', 'clean up rx dsp and some other nets in prep for dual dsp', 'Make RFX400 work in UHD', 'Add back line that mysteriously disappeared. I blame the cat.', 'usrp-e-timed test program. Add checks for packet length and sequence number.', 'register map changes to fit in the 2nd rx dsp', 'packet_router: added support for two dsps into router', 'uhd: added to_<type> calls to sensors to make it easy', 'usrp: implement sensors in all the dboards, deprecated read rssi and get lo locked', 'usrp: added get sensors api to multi usrp for rx/tx subdevs and mboard', "usrp: added sensors props to mboard and subdev (removed stupid = 'char' thing)", 'usrp2: speed up for alignment logic, replace std::list with some bit shifts', 'uhd: third iteration of the reference vector', 'usrp: added mboard param to get time now and last pps', 'uhd: tweak for io type size table code', 'uhd: misc speedups w/ look up tables', 'uhd: set BOOST_SP_USE_QUICK_ALLOCATOR for managed buffer overhead, hope this doesnt cause trouble later', 'uhd: reference vector fix revealed when building w/ debug', 'udp: udp_zero_copy_asio comments and tweaks', 'uhd: simplified converter calls in vrt pkt handler with ref vector changes', 'uhd: use ref vector class for the conversion routines I/O', 'uhd: tweaks to bounded buffer', 'uhd: increment api compat number for changes in next branch', "Merge branch 'usrp_e100_devel' into next", 'udp: comments and minor code tweaks for udp zero copy impl', "Merge branch 'master' into next", 'uhd: tweaks to vrt pkt handler and usrp2 fc monitor', 'uhd: tweaks for windows warnings and errors', 'uhd: replaced std::vector<type> for buffer arguments in send/recv', 'udp: removed asio implementation, created custom managed buffer classes to re-use', 'usrp2: initialize _ctrl_seq_num to remove many valgrind warnings', 'uhd: potential fix for macos asio recv issue (just disable it)', 'usrp2: fix for lingering packet problem', 'Fix typo in usage message.', "Merge branch 'fpga_next' into usrp_e100_devel", 'usrp-e100: notes on unbricking/clock reovery', 'uhd: replace asio buffer in make safe w/ memory and length, makes things simpler', 'usrp2: pre-bind the get buffers methods on init so its not in fast-path', 'usrp2: fix for icmp echo reply checksum (data was not included in checksum)', 'uhd: removed instances of shared_from_this() in transports', 'uhd: change bounded_buffer implementation and code using it', 'uhd: work to remove dynamic allocations of std::vector in vrt_packet_handler calls', 'udp: simplfy zero copy asio overhead with less shared_from_this, and timed waits when not needed', 'uhd: various performance tweaks', "Merge branch 'latency_test'", "Merge branch 'convert_fc64'", 'uhd: cleanup for latency test', "Merge branch 'multi_usrp_only' into latency_test", 'uhd: added io type and conversion for complex64 (its not really useful)', 'successful latency test. About 500 us on my laptop.', 'getting usable data', "N210: initialize codec gains so it doesn't barf if you call get_rx_gain before set_rx_gain.", 'sort of working latency tester', "Merge branch 'multi_usrp_only' into convert_fc64", 'usrp-e100: use pre-bound get send/recv buffers in io impl', 'usrp-e100: replaced safe managed buffers in usrp-e100 mmap with custom ones', 'uhd: fix typo in ref vector docs', 'uhd: reusable buffers for libusb zero copy implementation', 'usrp-e-crc-rw: Fix data rate calculation.', "Merge branch 'next' of ettus.sourcerepo.com:ettus/uhdpriv into next", 'usrp-e100: Check in wip for timed image test program.', "Merge branch 'next' of ettus.sourcerepo.com:ettus/uhdpriv into next", 'Modified net burner to allow reading of images from N2XX.', 'usrp1: removed binds and sptr allocs in usrp1 io impl', 'uhd: added some minor images docs for E and N series', 'separate clear for tx and rx, and add a global reset from the host', 'usrp1: added to emulated features docs Transmitting a specific number of samples', 'usrp1: fix for tx disable on EOB', 'uhd: replaced sdev and single usrp in examples with usrp and multi usrp', 'usrp: added set and get master clock rates to usrp API', 'uhd: simplify the mach time usage based on example from web', 'uhd: use time spec get_system_time to simplify soft time control', 'uhd: implemented high-res get time in time_spec_t', 'Modified the net burner util to perform size and content checks on images.', 'uhd: remove single usrp (leave a typedef), multi-usrp is a superset now', 'usrp2: dont set the time for slave devices, they always take from mimo cable', 'usrp-e100: revert compat number until its ready', 'usrp-e100: tweak for clock control register calculation, works better', 'usrp-e100: reverted clockgen config + tweaks, its working', 'usrp-e100: added passthrough to images makefile, tweaks to usrp-e-utility', 'usrp-e100: added missing newfifo files to list, added missing signals for timed', "Merge branch 'udp_xport_work'", 'udp_zero_copy_asio: removed the #ifdefed num frames and min buff size stuff', 'uhd: if_addrs check that iter->ifa_addr is NULL before continuing', 'uhd: added missing API export for special props', "Merge branch 'iface_swig'", "Merge branch 'macos'", 'uhd: use boost typedef for scoped_lock', 'usrp: rename special_props to have a unique prefix, and typedef it in dboard iface', 'uhd: fixed maxosx bug, was resizing the transport buffer', 'usrp-e100: added 32bit test read/write register, fixes to get building', "N210: longer GPS timeout, removed try/catch in safe_recv loop (since it can't throw any more)", 'Added first pass a swigging dboard iface', 'reorganized u1e register space to make room for 64 settingregs', 'usrp2: added to the doc notes on communication problems', 'usrp1: changes that make benchmark rx work', 'uhd: added docs on usrp2/n, removed empty n2xx doc page, misc', 'usrp-e100: changes for global reset and non-zero sids on rx', 'usrp-e100: combined clkconfig and fpga downloader into usrp-e-utility, simplified code', 'usrp-e100: work on clock control', 'usrp-e100: tweaks to clock control and setting from api', 'usrp-e100: added app notes for fpga loading and reclocking', 'Fixes for timed fpga interface test program. Still need to solve the CRC calculation failures.', "Merge branch 'usrp_e100_devel' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e100_devel", "Merge branch 'multi_usrp_only' into usrp_e100_devel", 'usrp-e100: remove unused clock control constants, enb test clock', 'usrp-e100: work on clock control', 'usrp-e100: clock control use boost math gcd for divider calculation', 'usrp-e100: working clock control 61.44, 52mhz', 'usrp-e100: so far internal vco code works w/ 64mhz', "Merge branch 'usrp_e100_devel' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e100_devel", 'Local changes for wishbone tests, PLease review carefully.', 'Start converting the timed test program to work with mmap interface.', 'Update header from in e100 test programs from main uhd.', 'Mark received block as accepted by user space.', "Update timed crc test program to use mmap's interface. Needs testing.", "Merge branch 'clkgen_config' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e100_devel", "E100: rewrote clkgen-config so it's less incredibly opaque", 'usrp-e100: created component for stand-alone usrp-e utils and added wb test util', 'usrp-e100: added misc test register 32 bits', 'usrp-e100: changes to regs map for re-mapping of address space', 'udp: revert depadding hack for recv_frame_size', "Merge branch 'fpga_fix'", 'believed to fix fifo swizzling with partially empty lines', 'usb: restored disable_interruption on get_lut_with_wait (gets called externally)', 'udp: shrink default recv_frame_size by 4 bytes until FPGA handles 2 byte pad correctly (1516)', 'TVRX: forgot to disable debug messages', 'TVRX: fixed spectrum inversion on USRP1, hopefully for the last $%^&* time.', 'uhd: added error code print to benchmark', 'uhd: use doubles as the theta when calculating the sine table', 'uhd: change constants to doubles for BOOST_CHECK_CLOSE', 'uhd: correct msvc terminal commands for building', "Merge branch 'next'", 'uhd: fix CPACK_DEBIAN_PACKAGE_ARCHITECTURE', 'uhd: removed deleted fpga files removed from fpga repo', 'uhd: limit the git log to 1 entry when extracting version info', "Merge branch 'fpga_next' into uhd_with_fpga_next", 'master: fixed N210 analog ADC gain to "on" to fix RFX noise issue', 'usrp1: set eob on md when shutting off receiver, because we can', "Merge branch 'next' of ettus.sourcerepo.com:ettus/uhdpriv into next", "next: generalized the GPS interface to any USRP device. just give it a function to write/read strings to UART. not sure if i'm happy with the interface; maybe inheriting is cleaner. this works though. gps interface for usrp2 is disabled right now in mboard_impl.", 'uhd: added set debian arch when building images, may remove warnings on dpkg install', "Merge branch 'usrp1' into next", 'usrp1: work on usrp1 hardware compat with the api', 'next: fngets() fixed for GPS driver. polling/timeout moved to host side. small changes to GPS output text.', 'examples: init metadata with time before loop begins', 'usb: use thread interruption in usb zero copy on deconstruction', 'usrp-e100: added readback mux 32 as slave 7 for time readback', 'usrp-e100: added readbacks for time now and time pps', 'uhd: drop a digit from the api compat number (1000 is plenty)', 'uhd: renamed test directory to tests to be consitent', 'uhd: tweaks that make macos happy', 'uhd: make static block safe with a try,catch,print', 'uhd: more useful prints for component macro', 'uhd: tweak component macro for build system', 'usrp1: added docs on missing and emulated features', 'usrp2: update copyright dates on firmware code', 'uhd: update copyright dates on host code', 'uhd: moved fix-co-years and added path option', 'usrp2: use the mac address to determine serial# for older usrp', 'usrp2: different clock delays for usrp2 and usrp-n210', 'usrp2: calibrated mimo clock delay for n210 (same as usrp2 classic)', 'usrp1: implement soft time ctrl for send at, recv at', 'usrp2: clock_sync_delay_cycles adjustment for the image size', 'uhd: fix size param error when getting a convert routine in pkt handler', 'uhd: changed convert routines to return the function pointer', 'uhd: use double for seconds in example apps so we can do partial seconds', 'uhd: removed unused/forgotten file', 'uhd: replace all the instances of float not pertaining to io types with double, simplifies life', 'uhd: add msvc stdint.h so we can use stdints typedefs normally like, fix in fw_common.h', 'uhd: use internal() to default clock configs, dont use PPS_INT, theres no such thing', 'uhd: added findgit to the repo in case older cmakes dont have it', 'xbar and valve: fix switching delayed by active signal', 'usrp2: restart read before mode switch, added comments', 'usrp-n210: added power-on-reset controller, reset all wb perifs', 'usrp: removed old includes that didnt need to be there', 'usrp-n210: uploaded most recent bootloader rmi', 'usrp2: fw print addrs fast path fix', 'usrp2: replaced pad argument to gen bins macro with a setting variable, simplifies code', 'usrp2: removed cruft and bitrot apps from fw', 'usrp2: firmware pad bins to zero to deal with optimizing out the static vars that init to zero', 'usrp2: eth addrs, wrong type, should be bool', 'usrp-n210: use cpu rst on the wb+icap, uploaded latest bootloader rmi', 'usrp-n210: firmware changes related to init and bootloader', 'usrp-n2xx: remapped the front panel LEDs for firmware', 'usrp: change wording on pps error message in multi usrp', 'usrp2: tweaking firmware', 'packet_router: tweak mode SR (its only 1 bit)', 'uhd: create sensor value from string', 'uhd: integrated boost split or tokenizer into source files, remove string split from algorithms header', 'uhd: fix copyright years on new files', 'uhd: split types into multiple files as it was getting unwieldy', 'uhd: created sensors value, made lib/types and moved files', 'uhd: added python program to fix copyright years from git logs', 'uhd: update copyright dates', 'uhd: added convenience factory functions for clock config (external/internal)', 'usrp: fix multi_usrp address documentation', 'uhd: added get and set methods to dictionary to make swigging it easier', 'uhd: increment api compat number', 'uhd: replaced templated ranges with one range thing using doubles only to avoid trouble with compiler portability', 'uhd: renamed and tweaked some of the convert files', 'uhd: removed convert types, replaced by convert', "Merge branch 'convert' into next", 'uhd: switched the unit test to the new convert API, implemented in vrt pkt handler', 'uhd: removed REQUIRED from find package calls to libusb and docutils', 'uhd: added new convert directory with type conversion registry (needs testing)', "Merge branch 'buffer_pool' into next", "Merge branch 'cordic_policy' into next", "Merge branch 'cordic_policy' into next", 'uhd: some tweaks to buffer pool', 'uhd: created buffer pool to allocate aligned memory, and implemented in transports', 'uhd: try to neaten up the attribute macros in config.hpp', "fu_ranges: dict's keys()/vals() now return non-const to make BOOST_FOREACH happy on Clang", 'uhd: potential fix for explicit template + llvm', 'uhd: create a find packages module for docutils, cleaned up some of the other find package stuff', 'usrp2: fixed mdelay (used ticks rb register), cool led blink in u2init, removed unused files', 'usrp-n2xx: use init non zero constant (see fixme), also simplified spi flash read size functions', 'usrp-n210: checked in updated bootloader (from next with fixes)', 'USRP1: REALLY fix the full-duplex case.', 'xcvr2450: update comment for full duplex case', 'usrp: xcvr dboards should also register their default subdev name as 0', 'usrp2: zpu compile flags use -phi, -abel is obsolete', 'USRP1: Fix ATR for TX/full duplex', 'uhd: removed SOB always from tx examples,', 'usrp2: what the hell, why does that make a difference', 'usrp2: implemented get time last pps', 'ZPU: bootloader only checks first 4 bytes of program flash image for validity', 'hook up sampled pps in u2plus, remove unused priority encoder, minor cleanups', 'usrp2: remove temp power up state hack, it seems to be fixed', 'processor can read back vita_time at last pps', 'udp: tweak warning on socket resize', 'run should actually turn on now any time in the IBS_RUN state', 'uhd: use -B option on python to prevent generation of bytecode files', 'gyrations to get it to meet timing', "Merge branch 'fpga_next' into next", 'usrp2: removed unused changed signal for mode selection', 'usrp2: removed extra print ip functions', 'usrp2: remove ram macros from memory map, conditionally load fw update', 'packet_router: change router control for buffer_int2', 'packet_router: replace buffers interfaced in packet router with buffer_int2', "TVRX: fix bug in rf_gain_to_voltage -- we're hi-side mixing, not lo-side", 'now uses 2 rams, one for read, one for write', 'reformatting', 'first cut at new buffer interface for CPU. Like old buffer_int plus a single buffer.', 'unused line', "should keep cordic spinning and the rest of the tx going through underruns. There is a timeout so it won't go forever.", "Merge branch 'master' into next", 'image: make the build rules depend on deps so they ensure the directory exists', 'cmake: fix typo in setup python interp', "Merge branch 'uhd_master' into uhd_next", "Merge branch 'fpga_next' into uhd_next", 'packet_router: code tweaks, renamed instances of buffer pool, removed unused ctrl reg', 'packet_router: use the mode register to reset hs control and cpu sms', 'cmake: disable the in-tree build prevention', 'cmake: moved module files into modules directory, set modules path', 'cmake: changes to finding python interp, some other tweaks', 'usrp-e100: added check for linux when configuring', 'usrp2: print mimo master/slave mode on init', "Merge branch 'fpga_next' into uhd_next", 'fw: edit readme, removed old files', 'zpu: renamed the directory for the usrp2 fw to zpu to reflect the cpu type', 'usrp2: got fw working on usrp2+nseries (crosses fingers)', "Merge branch 'udp_ports' into next", "Merge branch 'master' into next", "Merge branch 'udp_ports' into next", 'uhd: fixed component registry function', 'udp_ports: enable async recv in xport, set performance params in top level, things working', 'usrp-n2xx: corrected memory map weirdness, disable verbose in net common', 'udp_ports: added message handling to alignment code', 'usrp-n210: add missing wires, incr compat, use boot ram as stack space', 'udp_ports: fixed address comparison B+14 is comparison', "don't overwrite checksum values", 'uhd: use the include subdir macro to simplify the lib subdirs cmakelists', 'uhd: implemented top-level component registry', 'dbsrx: increase setup time for dbsrx band select', 'usrp-n210: removed fw warnings, bootloader does full size 16k load', 'usrp-n210: delay reset for boot loader stack pointer to init, copied bl.rmi without debug', 'usrp-n210: almost working w/ packet router + zpu', 'udp_ports: host code tweaks, seems to be closer to working', 'udp_ports: set the source and destination ports', 'udp_ports: set the source port and destination port from table', 'N210: Host memory map changes for ZPU', 'N210: ZPU firmware bootloader changes', 'usrp1: negate the rx cordic reg word because things were inverted and nobody noticed', 'usrp2: removed alignment buffer and implemented event based recv + alignment, TODO test me', 'usrp2: brought err0 transports into device and mboard constructors', 'usrp2: pulled some changes from the next branch to make merging easier', 'usrp2: added support in fw for setting dsp0 and err0 ports with protocol framer changes', 'generate port number headers in the dsp error units', 'now supports up to 4 different udp ports', 'ZPU: bootloader for 210 mods', "Merge branch 'next' of ettus.sourcerepo.com:ettus/uhdpriv into next", 'usrp-n2xx: moved perifs out of 0-16k to +20k to not intersect with a virtual cpu address space', "Merge branch 'next' of ettus.sourcerepo.com:ettus/uhdpriv into next", 'usrp-n210: integrate zpu and packet router, builds but untested', 'usrp2: removed mb linker stuff, added bootloader + rmi gen', 'uhd: use the option function for the components', "Merge branch 'zpu' of ettus.sourcerepo.com:ettus/uhdpriv into next", 'ZPU: bootloader changes for new ZPU', "Merge branch 'dsp_tune'", 'usrp2: updated images Makefile for the zpu gcc compiler', 'usrp2: removed auto* stuff (except usrp2p) and added to readme and authors', 'usrp2: replaced hal interrupt with NOPS, removes warnings', "Merge branch 'zpu' into next", "Merge branch 'packet_router' into next", "Merge branch 'zpu' into next", 'zpu: working, modified top level sizes, disable interrupt', 'zpu: working txrx, modified blink lights to look better, no interrupt (poll handler)', 'usrp2: added mimo_mode address arg and documented it', 'usrp2: update images makefile for moved fpga top level code', "Merge branch 'fpga_ise12'", 'usrp2: added clocking notes to mimo cable docs', 'packet_router: reject icmp dest unreachable when port does not match', 'packet_router: all non ip/udp should also go to both', 'zpu: added blink lights to usrp2', 'ZPU: -ffunction-sections', 'usrp-n: created cmake/zpu build for firmware', "Merge branch 'packet_router' into zpu", 'zpu: moved top level file in hopes for easy merge', 'packet_router: harmless logic tweaks', 'packet_router: reverted enable change to dsp framer, it was already correct', 'packet_router: added control register to set the udp control port', 'added docs for mimo cable usage', 'usrp2: set time over serdes when slave, added constants to top of cpp file', 'usrp2: configured clock delay over mimo cable', 'packet_router: added set_mimo_clock_delay to clock_ctrl.', 'usrp-n: configure clocking over the serdes cable', 'packet_router: incremented fpga and fw compat numbers', 'packet_router: added cpu input and output control registers, modified control code', 'usrp-n: removed serdes control, its not needed, fw must set this up', 'packet_router: added sregs for ip addr and ports', 'packet_router: dont register mac, also reorganized some tidbits', 'packet_router: implemented code to program the addresses into the router', 'packet_router: split control transaction for commit into two lines', 'packet_router: added helper functions to packet router, added clear, fixed handshake, garp at start', 'packet_router: take that back and only garp when link is up (FIXME initial state before garp call)', 'packet_router: enable the serdes and always send GARP', 'packet_router: filter on dest ip addr and bcast mac addr', 'usrp2: implement routing mode calls, and prefix pkt ctrl calls', 'usrp2: remove non-relevant buffer pool things from memory map', 'usrp2: replaced spi and i2c async stuff with sync (since were out of the fast-path)', 'usrp2: removed buffer pool macros and constants from memory map', 'usrp2: implemented packet ctrl to read and write slow path packets from the new interface', 'usrp2: pretty much gutted the buffer pool stuff with other misc changes, not in working shape', 'usrp2: provided way to disable flow control updates by setting to zero', 'packet_router: raise enable for bram reads the cycle before as well', 'packet_router: added fifo before cpu_out, tweaked inspection logic', 'packet_router: gave the inspector a 4th output which is CPU only', "Merge branch 'ise12' into packet_router", 'packet_router: renamed top level files in an attempt to merge cleanly', 'time sync on usrp2 as well, added debug pins to time sync.', 'slave side can now sync', 'Only do udp now, renamed old ports to exp_time_*', 'udp is now the default', 'remove old raw ethernet version', 'reimplemented mimo time transfer to handle 64 bits. Still needs to sync on the received side.', 'renamed exp_pps_* to be exp_time_*, which is the mimo synchronization signal', "Merge branch 'fpga_ise12'", 'usrp2: polished the multi-device addressing scheme and updated docs', "Merge branch 'time_compare_speedup' into ise12", 'usrp-n: simplify ctrl response error so it cant throw, also increase timeout while we are at it', 'zpu: set all the address widths to 16, grumble', 'zpu: moved stack pointer and made connection for status', 'u2plus: clock lock pin capitalization fail', 'zpu: brought status signal out to top level', 'zpu: shrank the ram size and address bus to 16k', 'zpu: added a zpu + wishbone opencore and integrated into top level', 'should safely delay the late signal which was causing timing problems', 'uhd: only install usrp2 apps when the component is enabled', 'uhd: only enable C when we are building the USRP-E100 utilty apps', 'usrp-n: set ad9777 mod mode to transmit above nyquist of DSP', 'usrp: move dsp tuning wrap-around into the dsp utils (allows the dsp handler to get the full value)', 'uhd: added template macro to ddl import as well (macos)', 'uhd: tweaking the explicit instantiation stuff, just aesthetic', 'uhd: tweak configuring usb messages', 'uhd: set the HAVE_USB_SUPPORT FALSE when not found (fixes error)', 'uhd: added macro to enable/disable components', "Merge branch 'dboard_iface_gpio'", 'usrp-n: some rx path fixes', 'usrp2: added docs page for usrp2 that points to nxxx page', 'uhd: added read-back calls to dboard iface gpio settings, and optional mask', 'packet_router: added status readback for mode, incremented compat number', 'packet_router: split the control register into misc, cpu hs out, cpu hs inp', 'usrp2: cover both rev3 cases for usrp2 revision numbers', 'packet_router: modification for sequence number and vrt header offset', 'usrp: replace struct member sizeof with this macro so it compiles on mac', 'packet_router: it makes more sense to connect the control flags this way now', 'packet_router: program the dsp udp port and ip addr through setting registers', 'reduce warnings, modernize testbench', 'packet_router: mux the crossbar input after the protocol framer', 'allow any unicast packet through.', 'packet_router: moved udp tx proto machine into packet router, replaced udp_wrapper in top level with some fifo conversion stuff', 'packet_router: moved dsp framer into a module, added clr to splitter and renamed', 'packet_router: implemented crossbar and valve module, moved sreg into router module', 'packet valve. will drop incoming data if shut off.', 'abstract out the crossbar functionality', 'packet_router: transplanted the async error interface, its now sent into the packet router to be muxed to com out', 'packet_router: added a way to program in the ip and mac addrs, and added inspector check', 'packet_router: fixed sof bug for cpu (== 1), some logic tweaks, added debug', 'packet_router: registered control flags, added clear to all state machines', 'packet_router: added splitter and mux for slow path stuff (also fixed typo in crossbar input)', 'packet_router: renamed inspector output signals and connected (for now) to cpu, dsp, crs', 'packet_router: use BRAM enables to perform pipelined reads', 'packet_router: use control register bit for master mode flag', 'packet_router: removed unused status words from readback mux', 'packet_router: swapped comm mux for a crossbar, serdes crossbar out now muxed into the comm output', 'packet_router: used registered valid signal for BRAM read cycle delay', 'packet_router: created dsp framer for rx path', 'packet_router: added lines for com crossbar and com output mux', 'packet_router: fixed swapped connection typo, dsp tx routing works', 'packet_router: collapsed inspector states, fixed terminology for cpu inp vs out', 'packet_router: some tweaks, dsp output routing seems to work but has wrong offset', 'packet_router: added all input/output signals to module, created the comm muxes (in and out)', 'packet_router: created com signals (device IO lines that may be ethernet or serdes)', 'packet_router: created inspector and added dsp output (however inspection logic does not enable it yet)', 'packet_router: connected and created CPU read from interface (slow path in place)', 'packet_router: created nearly empty router with eth in attached to mapped memory', "Merge branch 'refclock_docs'", "Merge branch 'fpga_flow_control' into next", 'packets are shorter now, so we need to tell the udp state machine that...', 'Updated refclock docs for USRP1, USRP2 and N2XX', 'E100: internal ref fix switch statement', 'usrp-e100: updated for building with next', "Merge branch 'next' of ettus.sourcerepo.com:ettus/uhdpriv into next", 'uhd: added new hardware to readme', 'usrp-n2xx: modified fw build name in makefile', 'usrp-n210: added fpga build entry to images makefile', "Merge branch 'fpga_next' into next", "Merge branch 'usrp_e100' into next", "Merge branch 'fpga_ise12' into fpga_next", 'fpga: performed a forceful checkout of fpga to overwrite with current fpga code', 'usrp_nxxx: software workarounds for weird power up state', "Merge branch 'flow_ctrl' into next", 'usrp: removed deprecated interfaces simple and mimo', 'uhd: new versioning scheme with API compat number', 'uhd: added printable to string methods to ranges', 'E100: clock sync implemented.', 'N200 comes up with default IP and MAC when booted in safe mode (button pushed).', 'usrp2: ms didnt seem to like unlocking an unlocked mutex', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv", 'no need for second sequence number anymore. Each dsp tx chain generates its own flow control packets now.', "shouldn't be executable", 'modernize the testbench', 'usrp: removed deprecated interfaces simple and mimo', 'uhd: new versioning scheme with API compat number', 'get rid of extraneous U messages when we actually had an ACK', 'fix problem with consecutive timed packets on tx', "Merge branches 'master' and 'master' of ettus.sourcerepo.com:ettus/uhdpriv", "Firmware mem map changes for flow ctrl somehow didn't get propagated.", 'Updated fw rev number in N2XX burner.', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into flow_ctrl", 'usrp e100 : Add sleep after loading module.', 'usrp e100 : Add i2c header back.', "Merge branch 'mac_fixes' into ranges_fix", 'uhd: tweaking the export template instance macro', 'uhd: added to printable string methods for ranges', 'uhd: git diff', 'udp: added polling alternative to select for mac', 'uhd: ranges symbol fix, try extern macro', 'uhd: added printable to string methods to ranges', 'usrp: use a spawn thread to ensure that a pirate is spawned before continuing (fixes lockup issue)', "Merge branch 'public_master'", 'usrp2: fix ip addr eeprom offset in motherboard eeprom parser', 'simplify time comparison to speed up logic and meet fpga timing', "we're still on version 12.1", 'while this was legal C++, SWIG hates it', 'usrp-n: renamed docs and burner app, added burner app documentation', 'Add flow control and other small vrt fixes to u2p, minor cleanups', 'uhd: removed windows warnings, added string formatting in usrp-n', 'uhd: fixed ranges stuff, export symbols and use doubles not iterators...', 'reset properly', 'compiles with new file locations', 'handle zero-length packets properly', 'clear out the vita tx chain and the tx fifo. need to check the fifo reset to make sure it is in the correct clock domain.', 'added ability to truly clear out the entire rx chain. also removed old style fifo in rx.', 'gray code address for emi', 'fifo randomizer for emi', 'now handles frames larger than the vita packet (i.e. with padding)', "don't clear out following packets on an eob ack", "don't flag an error on eob ack", 'proper triggering for interrupts generated on the dsp_clk', 'cleanup for 32 bit seqnum', 'increase compatibility number for flow control', 'switch to 32 bit sequence numbers. Will wrap in ~15 hours at max rate', 'send message on eob to ack the end of transmission', "typo which isn't caught by xilinx", 'separated flow control and error reporting on tx path. should work with and without flow control', 'go to the correct state', 'add a fifo to the end of the mux to help in timing.', ' add trigger to makefile', 'assign setting reg addresses', 'declarations', 'checkpoint in flow control packet generation', 'usrp-n: populated name properties to use the generated cname from iface', 'usrp2: made enums for the rev types and implemented in code', "Merge branch 'master' into usrp2p", 'usrp2: fix discovery timeout, use default', 'U2P: saner image burner output messages', 'usrp_e : Add missing header file.', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", 'these got dropped during the rebase', "Merge branch 'ranges'", 'usrp2: switch the timeout to units of seconds', 'uhd: pulled in some worthwhile changes from flow control branch', "Removed 'ifdef for second DCM that was a deign idea for external SRAM on u2plus. Hardcoded -90 degree clcok from first DCM as final solution", '1) Created new FIFO IP in Coregen. 512x36 dual clcok FIFO with programable full watermark', '1) u2p has added a new signal from the SRAM to the pinout, RAM_ZZ which allows the SRAM to be placed in a sleep mode. This pin was erroniously pulled high at the top level rendering the SRAM unusable.', 'Defaulted all SRAM pins to LVCMOS25 8mA FAST', 'Placed 2nd DCM into `ifdef DCM_FOR_RAMCLK which is dissabled by default', "Added external RAM FIFO to u2plus. Added code branch to ext_fifo.v using generate that instantiates different input and out fifo's and touched nobl_fifo code so that it works at 18 and 36bit widths. Added 2nd DCM to top level to generate off chip RAMCLK. Added explicit I/O instances to top level for tristate drivers and changed signals to core as needed. Creted new FIFO's in core gen to replace much larger FIFO's used on u2rev3", 'revert unneeded changes and incorrect comments', 'reconnect GPIOs, remove debug pins, meets timing now', 'Modified phase shift of DCM1 to -64 which is intended to give more timing margin on reads from the SRAM at the expense of Writes to the SRAM. Tested to be at least as stable as a phase shift of 12 and beter looking timing on the logic analyzer. Signals driven by the FPGA are observed changing on the SRAM pins about 4 nS after the rising edge of the RAM clock.', 'Enabled phase offset adjustment on DCM_INST1 which drives the external Fast SRAM clock. Set phase shift to -12 after experimentation using logic analyzer to see results. This value gives near optimum 1.5nS setup times on the source sync signals FPGA -> SRAM under lab conditions.', "Added to DCM's and some BUFG's to align the internal 125MHz clock edge with its presentation externally at the NoBL SRAM. Since we don't have a board level trace to use to estimate clock propigation delay we just loop through the I/O on the FPGA. This hasn't been verified as working on a USRP2 yet.", 'Enhanced test bench to be more like real world application', 'hangedddddddextrnal fifo size to use full NoBL SRAM', 'Corrected extfifo code so that all registers that are on SRAM signals are packed into IOBs', 'capacity logic fix', 'Added capacity to the module pinout', 'Added a bunch of debug signals.', 'Regenerated FIFO with lower trigger level for almost full flag to reflect logic removed from nobl_fifo.', 'Regenerated FIFO\'s for extfifo. There are problems with certain configurations it seems. It is important that the fifo_xlnx_512x36_2clk_18to36 is generated with the "almost_full" pin even though it is not used in the application. if this pin is omitted the FPGA image doesn\'t work correctly', 'Edited FIFO instance to delete port that was not regenerated after reconfiguration', 'Adding in files that probably didn;t exist in the ISE10.1 version of coregen', 'Bringing all coregen files checked in into sync', 'Found bug due to not accounting for the correct number of possible in flight READ operations that can be in the extfifo pipeline. Regenerated fifo_xlnx_512x36_2clk_18to36 to include prog_full output triggered at 1017 so that there are 6 empty spaces to accept in flight read data upon completion. Had to generate the FIFO using Coregen from ISE12.1 due to 10.1 verion not working correctly in FPGA Still have to tackle making this simulate in Icarus', 'checkin of generated coregen files', 'External FIFO tested in simulation and on USRP2 from decimation 64->8 with current head UHD code. Apparently operation is "flawless" but more regression and corner case regression could and should be done. Tristate drivers have been added at the top level of the hierarchy for the SRAM databus as is considered good practice for both Xilinx and ASIC design flows and so both top level and core fils have been touched.', 'Checkpoint checkin. Loopback is running via the external ZBT SRAM...HOWEVER, its not running well, its stable but the data is corrupted sometimes. Not clear if its a logic or AC timing/SI issue yet.', 'get it to build', 'moved forward from the old branch', 'usrp-e100: add serial and name checks to the usrp-e100 discovery routine', 'usrp_e100: added byteswapping calls to vendor and device (its NBO)', "Merge branch 'usrp_e100_i2c' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e100_i2c", 'usrp-e100: split vendor/device field for eeprom, rename fab rev to model, fixed char cast (to treat like integer)', 'usrp_eXXX: Only include i2c-dev.h due to struct definition conflicts.', 'uhd: made unit test for meta range and fixed bug', 'dbsrx2: updated code for ranges use', 'uhd: added meta-range clip and implemented in dboards, fixed step calculation', 'uhd: created a meta range that is a range of ranges for gains and freqs', 'usrpbbbbbbbbbbbeeeeeeeeeeee fix typo', "U2P: i can't spell", 'U2P: Added U2P stuff to images/ Makefile', 'reverting part of the reversion of the spi settings.', 'usrp-e100: implemented wrapper for i2c device node + ioctls, implemented e100 eeprom map', 'u2p needs the bigger regs for some reason', 'U2P: Ripped out the mboard_rev_t structure in favor of an enum in usrp2_regs.hpp and some logic.', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p-next", '2+: moved mboard_rev to usrp2/ in preparation for merging upstream', 'need to enable both 16 and 32 bit spi interfaces -- 16 used in u1e, 32 in u2 and u2p', 'occ needs to be 2 bits wide on a 36 bit fifo interface.', "Merge branch 'u1e' into merge_u1e", "Merge branch 'master' into usrp_e100_i2c", 'uhd: renamed enums to reflect new convention', 'usrp1: usrp1 util is conditionally enabled', "Merge branch 'master' into usrp_e100", 'usrp-e100: added empty eeprom for eeprom get property', 'uhd: reorganized utils cmakefile to use list of sources', 'fixed string constants find and replace typo', 'usrp-e100: add header path for the utils directory as well', 'usrp-e100: moved kernel header to lib dir, remove the header check, default enable to false', 'remove old commented out code', 'usrp-e100: renamed files and classes in usrp-e100 to e100 name', 'fix timing problem on DAC output bus', 'usrp_e: renamed directory to usrp_e100 to reflect product name', 'usrp-e: check the return code on system call, also removes warnings', "Merge branch 'master' into usrp_e_next", 'usrp_e: use the transport to calculate the max spp (with a fix to init the xport first)', 'invert led signals because they are active low', 'usrp_e : Unload the module before loading the FPGA. Reload after the fpga is loaded.', 'added warning about rfx classic boards and dboard notes', 'usrp2: implemented clear state for RX and TX control, and zero sample command support', "Merge branch 'master' into flow_ctrl", 'usrp2: led F documentation fix', 'dbsrx2: removed windows warnings, made bandwidth param a double', "Merge branch 'dbsrx2'", 'usrp2: added notes about 3rd party sd cards to docs', 'Added mangling for DBSRX2 i2c addresses on USRP', 'Adjusting rx_get and rx_set for newer keys', 'Working DBSRX2 daughterboard code', 'Working DBSRX2 daughterboard code', "Merge branch 'mb_eeprom'", 'uhd: created docs for the device naming, command usage in usrp2 docs, removed redundant docs in usrp1', 'uhd: for eeprom writeback, write and set only those values changed', 'uhd: rename identifier for usrp1 eeprom, and fix offsets, add serial support to usrp2', 'uhd: dont check for python interp if PYTHON_EXECUTABLE specified', "Merge branch 'good_stuff' into mb_eeprom", 'usrp1: pulled in cmake build system for usrp1 firmware', 'usrp: implement name checking on dicovery (all platforms), separate usb serial from serial (for now)', 'usrp: replaced device specific burner apps with one generic one for mboard eeproms', 'usrp: print eeprom key/value pairs in the probe app, fixed mac addr size', 'usrp2: move mboard eeprom instance into iface to the clock control can access it', "Merge branch 'good_stuff' into mb_eeprom", 'usrp2: implemented mboard eeprom into usrp2 mboard', "Merge branch 'ovfl' into good_stuff", "Merge branch 'garp' into good_stuff", 'images: remove exe bit left by some build processes', 'usrp: created mboard eeprom map class, implemented for usrp2', 'usrp_e : Fix register definitions for COMPAT and others.', 'usrp_e: Comment out fpga loading until we unload module during load.', 'duh', "Merge remote branch 'origin/usrp_e_next' into usrp_e_next", 'uhd: fixed typo - removed export for templated class', 'uhd: added dict get method, used in usrp1 image loading', "Merge branch 'master' into flow_ctrl", "Merge branch 'next'", 'Fix Bandwidth for IQ subdevs on Basic/LF', 'usrp2: documented LED E', 'uhd: change python module check descriptions to use words', 'uhd: added to python module check macro, move check to lib dir', "Merge branch 'next' into usrp_e_next", 'uhd: removed dilv in rx files examples', 'uhd: added rx samples to udp example, cleaned up other examples, added gain options', 'uhd: added rx to file example, simplified cmake file for examples', "Merge branch 'next' into flow_ctrl", 'usrp-e: use clock control to get clock rate, removed temporary constant', 'usrp-e: implemented fpga loading and compat checking', 'usrp_e: added support for building fpga image into images Makefile', "Merge branch 'ue1_rev2' into usrp_e_next", "Merge branch 'usrp_e' into usrp_e_next", 'usrp: added to subdev spec comments/docs', 'usrp: added a time sync check for multi usrp', 'usrp_e: fix to get compiling with next branch', "Merge branch 'next' into usrp_e", "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'uhd: moved templated dict implementation into ipp file', 'uhd: replaced print warning with a post warning call and registry', 'usrp: fixed validate subdev spec typo for empty string cases', 'usrp: rework lo offset logic to use bandwidth, add test case', 'uhd: doxygen comments, moved enum comments, added to metadata for all entities', 'uhd: tune helper + request, forgot to use and set target freq', 'Updated bandwidths in daughterboard docs', 'Added bandwidth property to all daughterboards', 'fix copy/paste typo piroundable', 'uhd: created tune request struct and implemented more fine grained tuning calls', 'created ascii art dft plotter in uhd', 'dbsrx: allow for setup time after changing the vco selection', 'BasicRX: GPIOs now output 0 to decrease noise pickup.', "Merge branch 'master' into flow_ctrl", 'dbsrx: reject asymmetric clocks (odd divisors)', 'images: remove exe bit left by some build processes', "Merge branch 'flow_control_fpga' into flow_ctrl", "Merge branch 'garp' into flow_ctrl", 'usrp2: fw sends gratuitous arp on link-up', 'the width of the address bus is called DEPTH, not WIDTH...', 'usrp_e: Add driver compatibility ioctl to header file.', "Merge branch 'usrp2_overflow' into flow_ctrl", "Merge branch 'master' into flow_ctrl", 'address gray coding', 'slow slew rate and lower drive to 8ma on RAM_XX signals to reduce emi', 'should combine the randomizer with flow_control', 'usrp2: handle real overflow packets in host, reload continuous stream cmd, remove firmware handling', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", "Merge branch 'usrp_e' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'usrp-e: Add example that reads data from uhd and sends it over a udp socket.', "Merge branch 'usrp_e_mmap_b2' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'usrp_e: Do not install main_test anymore.', 'usrp: remove irrelevant copied comment from single usrp', 'usrp: use a dash as the gain name prefix separator, removed RX/TX auto suffix for XCVR board cnames', 'Moved mboard rev detection to iface.cpp.', 'usrp: convenience wrappers for dealing with overall gains', 'usrp: use the dboard id to prefix the subdev gain group names', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e_mmap_b2", 'usrp: added gain element access by gain name to multi and single wrappers', 'uhd: added name parameter to gain group, get range, set/get value by name', 'usrp: added docstrings to single and multi usrp for undocumented methods', 'usrp: updated docs to reflect switch to multi-usrp interface', 'uhd: remove some warnings in MSVC and with typo in xcvr2450', 'usrp: change the bandwidth param to a double (its a frequency), add set and gets for BW in the wrappers', "Merge branch 'multi_usrp'", 'multi-usrp: fixed num channel calculation, moved logic to cpm functions', 'uhd: split unit tests into individual tests by file + they get installed', 'uhd: made ticks signed in time spec, fixed full secs implementation, added unit tests', 'multi-usrp: corrected calculations for channel and mboard indexes', 'usrp: deleted deprecated simple and mimo wrappers, moved implementations into headers', "Merge branch 'master' into flow_ctrl", 'usrp: moved warnings logic into wrappers', 'usrp: created multi-usrp (multi chan, multi board), and deprecated mimo-usrp', 'usrp2: make the booty smaller than the number of recv frames', 'usrp2: dont need to start streaming for this hack', 'usrp2: temp fix to send dummy packets and flush so FPGA vita machine are in known state', "Merge branch 'flow_ctrl_with_fpga'", 'usrp_e: Disable debug.', 'usrp_e: back out dynamic send/recv samples calculation.', "Merge branch 'flow_control' into flow_ctrl", 'uhd: removed 1 sample buffers in test async messages', 'usrp2: move udp port initialization into mboard impl so its done before async registers are setup', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", 'uhd: fix docs on boost version, also add additional version string for 1.44', 'USRP-E: brought loopback test updates in from usrp_e branch.', 'usrp2: handle destination port unreachable icmp in fw (kills streaming and update packets)', 'USRP-E: updated the loopback tester for length checking.', 'udp: fix to use concurrency hint, default hint is zero when no async enabled', 'usrp2: added docs on flow control ricer args and using usrp2 with a switch', 'usrp: test async messages app randomly runs tests', 'usrp2: increment tx sequence after commit', 'now handles frames larger than the vita packet (i.e. with padding)', "don't clear out following packets on an eob ack", "don't flag an error on eob ack", "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", 'USRP2P: mboard rev works through props interface.', 'usrp2: register overflow, underflow, and pps level for pic', 'USRP2P: This is surprisingly involved. Adding a consistent interface to deal with hardware revisions.', 'Added documentation of daughterboard filter bandwidths', 'proper triggering for interrupts generated on the dsp_clk', 'Enhance XCVR2450 to clip for high/low band tuning and add bandwidth property', 'uhd: test eob ack message, usrp2: remove rx drain on init with the promise of a reset register', "Merge branch 'set_bandwidth'", "Merge branch 'dbsrx_clock_div'", 'usrp2: enable the cycles per ack, and drain recv without the timeout (fixes previous conflict)', 'UHD: reordered MIMO set_rx_bandwidth arg order', 'UHD: Brought out set_rx_bandwidth for dboards with programmable rx filters.', 'usrp2: use select rather than manually polling the simple udp socket', 'usrp2: use 32-bit flow control sequence numbers', 'cleanup for 32 bit seqnum', 'increase compatibility number for flow control', 'switch to 32 bit sequence numbers. Will wrap in ~15 hours at max rate', 'usrp2: implemented flow control monitor', 'DBSRX: Fixed some ASSERT statements.', 'send message on eob to ack the end of transmission', "typo which isn't caught by xilinx", 'usrp2: add fc control registers, use small timeout for control packets again', 'usrp2: implement fc seq number on tx header packing', 'separated flow control and error reporting on tx path. should work with and without flow control', 'uhd: fix async msg test to reflect new timeout api', 'go to the correct state', 'TVRX documentation and a bugfix in the cal table. Named the antenna "RX".', 'Fixed Assertions to better document tuning failures', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", 'usrp: comments for set subdev spec in single usrp', 'uhd: better warning message for failing to set rt priority', 'add a fifo to the end of the mux to help in timing.', 'usrp: added calls to get subdev and mboard canonical names', ' add trigger to makefile', 'assign setting reg addresses', 'declarations', 'checkpoint in flow control packet generation', 'tvrx: added enabled prop to set and get', "Merge branch 'subdev_enable' into next", 'udp: add docs note about the udp transport', 'USRP2P: Little bit of commonality in the include files. No functional change.', 'U2P: Working ICAP bootloader. Should be ready for release.', 'U2P: Bootloader works, successfully loads production image.', 'udp: worked blocking send back into udp transport, enable async with #define', 'U2P: Whoops.', 'U2P: Bootloader/ICAP updates. 2-stage bootloader works. Uses EEPROM for state info.', 'udp: fix msvc errors for udp transport', 'udp: implementation for blocking recv w/ timeout, switch async implementation w/ #define', 'U2P: remember your semicolons.', 'U2P: modified ICAP. turns out ICAP needs clock disabled while CE is not asserted. which is the point of a CE, but... it works.', 'tvrx: converted floats to doubles to avoid msvc warnings', 'uhd: tweaked docs/notes on transports', 'revert unneeded changes and incorrect comments', 'usrp1: ensure that the current buffer was committed before getting a new one', 'separate the bootloader image into another file', 'usrp2: moved samples per packet calculation into io_impl', 'usrp-e: use frame size to calculate the max samples per packet', "Merge branch 'next' into usrp_e_mmap_b2", 'usrp1: use the transport frame sizes to calculate the max spp', 'reconnect GPIOs, remove debug pins, meets timing now', 'usrp-e: implemented the USER_PROCESS flag and CTM poll technique', "Merge branch 'ise12' into efifo_merge_dcm", 'Add flag that indicates userspace has started processing a frame.', 'udp: fixed boost format syntax for warning message', 'U2P: newest bootloader with support for 32Mbit flash', 'USRP2P: internal reference selected by default.', "Merge branch 'master' into next", 'usb: moved event handler thread into the zero copy interface', 'uhd: transport docs for UDP and USB (moved from usrp docs)', 'U2P: 32/64Mbit FLASH support, internal reference support for U2P r2', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", 'uhd: replaced frame params for the zero copy interfaces with a device address', 'usb: added dummy usb implementation for building without usb (throw, not segfault)', 'timeout: proper way to check for timeout in full buff mode', 'usrp-e: check if flags are ready after poll', "Merge branch 'timeout' into usrp_e_mmap", 'uhd: bounded buffer pop sets back element to empty to decrement references', 'uhd: added include for enable_shared_from_this when used', "Merge branch 'usrp_e_mmap' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e_mmap", 'usrp-e: implemented mmap with new zero_copy timeout work, added much debug verbosity', "Merge branch 'timeout' into usrp_e_mmap", 'uhd: modified tx timed samples to deal with timeout', 'usrp2: removed extra print-outs in init', 'udp: added io service work to keep service running', 'uhd: changed buffer allocations to be in a single chunk, udp: pass frame sizes into the impl constructor', 'uhd: implemented udp zero copy asio with async calls', 'uhd: reworked the zero copy interface', 'uhd: implemented a double timeout (in seconds) for send and recv chains', 'UHD: added mutex to fix race condition in device enumeration.', 'fix timing problem on DAC output bus', "Merge branch 'next'", 'uhd: print system info on library load', 'usb: catch open errors and print message, device: catch exceptions at discovery time', 'TVRX: fixed antenna prop enumeration', 'Ignore direction for GPIO 114 since it is always an input.', 'usrp-e: untested attempt at zero copy iface for mmap', 'Made usb_device_handle UHD_API.', 'Modified phase shift of DCM1 to -64 which is intended to give more timing margin on reads from the SRAM at the expense of Writes to the SRAM. Tested to be at least as stable as a phase shift of 12 and beter looking timing on the logic analyzer. Signals driven by the FPGA are observed changing on the SRAM pins about 4 nS after the rising edge of the RAM clock.', 'usrp-e: update to build with the master', "Merge branch 'master' into usrp_e_next", 'uhd: updated AUTHORS and README for tvrx and usrp1', "Merge branch 'tvrx_uhd'", 'uhd: implemented recv timeout for zero copy interface', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into tvrx_uhd", 'TVRX: Fixed to properly calculate alias frequencies.', 'Ignore direction for GPIO 114 since it is always an input.', 'usb: set rt thread priority for the libusb event loop', 'Ignore direction for GPIO 114 since it is always an input.', 'usrp: added subdev enabled property', 'usrp1: replace byteswap with htonx (it was wrong to just swap)', 'TVRX: works for USRP and USRP2.', "Merge branch 'get_codec_rate' of ettus.sourcerepo.com:ettus/uhdpriv into tvrx_uhd", 'usrp: added get codec rate to dboard iface', 'usb: added libusb docs to build guide, usrp1: moved transfer param docs', 'usrp: transfer resize options and documentation', 'usrp1: fixed compile time warning, tweaked fw load message', "Merge branch 'libusb'", 'TVRX: Mixed up DAC channels. Gain is much more linear now.', 'TVRX: Fixed spectrum inversion (derp derp derp). Removed debug printing.', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into tvrx_uhd", 'TVRX: First version that works. The gain linearity is still borked.', 'usb: submit should return ssize_t, usrp1: set hash before reset after fw load', 'wbx: fix for id swap typo', "TVRX: Don't have mboard impl modified for ADC buffer disable. The rest of TVRX should be in there. Not debugged.", "Merge branch 'master' into libusb", 'usrp1: move the get handles call into the for loop scope to facilitate decontruction', 'usrp1: modify fpga file load to use read (readsome seems to not work here in windows land)', 'dboard: better warnings for invalid IDs and invalid ID combinations', 'TVRX: not done yet but getting there. gain linearization framework in place.', 'usrp2: application notes for the LEDs', 'usrp1: filter the discovery routine on the serial', 'uhd: fix warning by adding brackets for while(cond){};', 'usb: use the proper libusb include (in path set by pkgconfig)', 'usb: added some documentation to wrapper base', 'usrp1: add print out messages when loading images', 'usb: disable thread interruption on wait calls', 'usb: zero copy work, multiple endpoints with single context, async io', 'Really enable usrp_e support. Previous commit commented out the ansi flag so C++ comments in C compile.', 'Remove BIT macro', 'Add define so uusrp_e support is enabled.', 'usb: work on libusb code to use a single context across all calls', 'Add more NEON for type conversion.', 'usb: tweaks to usb code to cleanup properly and/or in error conditions', 'usrp-e: updated dsp for multiple shift properties', "Merge branch 'master' into usrp_e", 'allow for CS to rise before, at the same time, or after OE', 'usb: moved msvc stdint file and changed cmake conditional for msvc', "Merge branch 'libusb_win'", "Merge branch 'xusrp'", 'usrp: modified pps input tester to use double with real value for seconds', 'usrp1: removed msvc warnings for usrp1 impl code', 'usrp1: modified control to use the c++ ifstream over fopen', "Merge branch 'xusrp' into libusb_win", 'usrp1: fixes to remove warnings and errors for usrp1 + libusb windows', 'libusb: various minor code tweaks', 'better debug pins', 'libusb: various minor code tweaks', 'basic: added the 4th BA subdevice to basic and lf dboard code', 'usrp1: sanity check, only 1 channel per tx slot', 'usrp1: multi-channel tx working, modified vrt handler to interleave', 'watch the ethernet chip select on our debug bus', 'usrp1: multi-channel rx working, modified vrt handler to deinterleave', 'usrp1: reworked the io_impl for usrp1 to use the vrt packet handler', 'uhd: honor the LIB_SUFFIX option, added docs for LIB_SUFFIX and tweaked other docs', 'fix timing issue on DAC outputs with rev 2. This puts the whole system on a 90 degree phase shift', 'Use a dummy write to start DMA transfers when sending data to the FPGA. Poll will also start data transfers.', 'Use the ring buffer sizes read from the kernel.', 'Convert write to use the mmap interface.', 'Read the ring buffer size from the kernel and use that to set up the structures that read and write the ring buffer.', 'added db_tvrx, regmap gen_dtt75403_regs.py', 'Fix ring buffer size calculation.', 'usrp2: make usrp2 dsp multi-channel compatible', 'usrp1: implemented multi-channel dsp control of shift freq', 'uhd: added single usrp interface, added usrp1 properties to prop names', 'Fix really dumb mistake in rad ring buffer code. Add/comment debug lines.', 'usrp2: provide clock over mimo connector so usrp2 can share refs', 'send all gpmc signals to mictor', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", 'Enabled phase offset adjustment on DCM_INST1 which drives the external Fast SRAM clock. Set phase shift to -12 after experimentation using logic analyzer to see results. This value gives near optimum 1.5nS setup times on the source sync signals FPGA -> SRAM under lab conditions.', 'Reverse I and Q on the wire.', 'Install main_test so we can test cross compiled uhd.', "Merge branch 'usrp_e' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'Fix errors.', 'Allow programs to find usrp_e.h header, even if it is not installed in /usr/include/linux.', 'Restore tx and rx timed smaple programs to the versions in master. They use floating point.', 'usrp-e: configure flag option for usrp-e support', 'usrp-e: typo fix for ad9522 regs size', "Merge branch 'master' into usrp_e", 'uhd: added enable flags for usrp1 and usrp2', 'updated pins to match rev2, removed dip switch, etc. seems to compile ok.', 'Convert fc32_to_item32_nswap to use ARM NEON if available.', 'usrp2: added some pps docs using the test example app', 'usrp: test for async messages, also renamed pps test', 'pins are different on rev2', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'usrp: dboard eeprom burner app takes slot param (fixed for automatic)', 'Add clkgen-config, usrp-e-i2c and usrp-e-spi to the installed utils.', 'fixed makefile to compile with our new system', "Added to DCM's and some BUFG's to align the internal 125MHz clock edge with its presentation externally at the NoBL SRAM. Since we don't have a board level trace to use to estimate clock propigation delay we just loop through the I/O on the FPGA. This hasn't been verified as working on a USRP2 yet.", "Merge branch 'efifo_merge' of git@ettus.sourcerepo.com:ettus/fpgapriv into efifo_merge", 'Enhanced test bench to be more like real world application', 'usrp1: added docs and author', "Merge branch 'usrp1' into next", 'Removed USRP1 firmware path debug messages', 'Added serial number read. Renamed the usrp1-specific utilities.', "Merge branch 'usrp1' into next", 'Added usrp_serial_burner.cpp and capabilities for setting serial number in mboard_impl. Have not yet added read support.', "Merge branch 'usrp1' into next", "Merge branch 'usrp1' of ettus.sourcerepo.com:ettus/uhdpriv into usrp1", 'EEPROM burning in UHD. Changed some USB device handle stuff. Added usrp_init_eeprom.cpp. Hacked up the firmware makefile to behave and to generate .bin EEPROM images instead of IHX.', "Merge branch 'ise12' into next", 'usrp1: tested dbsrx, works with lower divider', 'usrp1: Fedora sdcc note and change fw error to warning (find should not error)', 'usrp1: flush for flow error messages', "Merge branch 'next' into usrp1", 'uhd: sine table for tx waveforms', 'usrp2: flush the error flow messages, issue the stop before register configure to align count', 'usrp1: init the subdev specs so they will be non-empty', 'usrp1: work on gpio clock divider for dbsrx, still not locking', 'usrp1: subdev spec tweaks and docs', "Merge branch 'convert_types' into usrp1", 'uhd: added interleave/de-interleave type conversion routines', 'add register to tell host about compatibility level and which image we are using', 'uhd: fixed short conversion (IQ swap) and added test between short/float', "Merge branch 'next' into usrp1", "Merge branch 'pps_test' into next", 'Add usrp-e-debug-pins to utils. This is the wrong place for the regs header file.', 'Test if usrp_e kernel module is loaded before trying to load the FPGA. Do not load the the fpga if the kernel module is loaded.', 'Move fpga-downloader and usrp-e-loopback into utils so they get packaged for installation on the USRP Embedded.', 'Add support for building c programs. Remove -pedantic and -ansi flags.', 'usrp1: Additional comments on libusb transport implemenation', 'usrp1: Read capabilities register', "usrp1: Don't flush the stream buffer after every overrun/underrun", 'usrp1: Remove unused funtions libusb transport', 'usrp1: Additional comments to libusb transport implementation', "Merge branch 'usrp1' of ettus.sourcerepo.com:ettus/uhdpriv into usrp1", 'usrp1: add the 4rx image to the installed usrp1 fpga images', 'usrp1: Wait for USB device renumeration only when necessary', 'Fixed PPS. Instantiation was miscapitalized.', 'usrp1: Handle degenerate managed send buffer cases', 'usrp1: some app notes', 'Created pps_test example and docs', 'move declaration to make loopback compile', 'usrp1: Disable default debug output for libusb implementations', 'usrp1: Cleanup libusb device handling', 'usrp1: Disable i2c error messages unless debug is enabled', 'usrp1: Disable default codec debug output', "Merge branch 'usrp1_cleanup' into usrp1", 'usrp1: Add missing include for fpga registers', 'usrp1: Only return a list of FSF devices', 'usrp1: Fix DDC rate storage value and comments for multiple channel support', 'usrp1: Clean up initialization sequence of fpga registers', 'usrp1: Fix fpga load issue by increasing delay after firmware load', 'usrp1: Add TODO comments', 'usrp1: handle special dbsrx clocking case', 'Removing the GPS search stuff until I have time to figure out why the firmware side keeps timing out.', 'usrp1: cast enum to char before printing as %c', 'usrp1: swapped the mux values to account for the convert types routines', 'usrp1: codec pga gain control fix', "Merge branch 'next' into usrp1", 'basic-tx: added docs for new subdevices', 'basic-tx: mirror the rx subdevices for basic tx boards as well', 'usrp1: Fill in missing dboard interface with an empty call', "Merge branch 'convert_types' into usrp1", "Merge branch 'usrp1_next' into usrp1", 'usrp1: Modifiy USB transport implementations to use new interface', 'usrp1: Modifiy USB interfaces to use new device handle', "Merge branch 'mux'", 'uhd: switched the IQ order interpretation for convert types', 'invert adc_a because it is inverted on schematic. Also clean up extraneous adc signals from old adc on U2', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", 'SWAP DAC A and B, invert B to match schematics', 'Change to get codec_impl to compile, dur.', 'hangedddddddextrnal fifo size to use full NoBL SRAM', "Merge branch 'tx_policy' into u1e", "Merge branch 'u1e_merge' into u1e", 'Use new tx_policy stuff, reassigned leds to be just like U2', "Merge branch 'tx_policy' into u2p_txpolicy", "Merge branch 'convert_types' into mux", 'usrp2: changes to mux calculation routine and usrp2 fpga compat number', 'clean up DAC inversion and swapping to match schematics', 'Clean up iq swapping on RX. It is now swapped in the top level. widened muxes to 4 bits to match tx side and handle more ADCs in future', 'Corrected extfifo code so that all registers that are on SRAM signals are packed into IOBs', 'usrp-e: implemented tx policy and handling of async messages', 'uhd: convert types corrected for little endian, created SSE2 float/short conversion for no-swap case', 'usrp1: Remove unused overrun/underrun poll variable', 'usrp1: Cleanup unnecessary state variables', 'usrp1: Improve debug output readability', 'Added a sanity checker Python script.', 'Ensure ethernet LED pin has 12mA output', 'usrp-e: fixed codec control gain calculation error, added tx policy registers, set to next packet', "no need for protocol headers since we're not doing ethernet", 'usrp-e: added dboard iface set gpio debug call', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'match the signal names in this design', 'usrp: added get dboard iface to simple wrapper, and set gpio debug to dboard iface', 'debug pins cleanup', 'basic: better errors for invalid antenna selection', 'usrp1: Fix assertion that prevents 32-bit SPI transactions', 'usrp1: Remove hard coded value in clock rate property', 'usrp1: Refactor I/O implementation', 'usrp1: Fix bug in calculating transmit mux', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'uhd: removed msvc warnings and errors (no M_PI)', 'uhd: tx waveform generates on the fly now', 'Added 12mA current spec to eth phy LED pin.', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", 'uhd: tx waveform change how error is measured', 'capacity logic fix', 'uhd: work on tx waveforms to make it more accurate', 'usrp1: Change codec transmit gain scaling', 'usrp1: Make underrun/overrun checking rate dependent', 'usrp1: images for usrp1, makefile checks for image generation dependencies', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", 'Added capacity to the module pinout', 'Added a bunch of debug signals.', "Merge branch 'master' into usrp1", 'uhd: added image utils code to search the images paths for image files', "Merge branch 'ise12_efifo_work' into efifo_merge", 'uhd: replaced tx continuous app with tx waveform app (siggen example app)', 'properly integrate the new tx chain', 'catch up with tx_policy', 'Regenerated FIFO with lower trigger level for almost full flag to reflect logic removed from nobl_fifo.', 'usrp1: Remove codec gain TODO comments', 'usrp1: Return proper mboard proxy', 'usrp1: Refactor mboard tuning code', 'usrp: rethrow validate subdev spec errors with additional info', 'Change TX PGA gain scaling to match gnuradio scaling', 'Change clock dividers so DBSRX board locks.', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'Add gain command line parameter.', 'Add gain setting to tx_timed_samples program.', 'Add get setting to the rx_to_file program.', 'Add program to transmit samples from a file.', 'Build rx_to_file example.', "Merge branch 'usrp2p_udpfw' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", 'Moved UDP firmware update stuff out of fw_common.h into udp_fw_update.h.', 'uhd: docs on building and installing images', 'usrp2: template pick rate to avoid compile errors', 'uhd: windows path escape fix', "Merge branch 'next'", 'usrp1: added firmware to images makefile and prebuilt fpga images', 'Removed debugging print from usrp2p_fw_update.py', 'UDP firmware update support for USRP2P.', "Merge branch 'usrp_e' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'usrp-e: added gain group property', "Merge branch 'master' into usrp1", 'usrp1: Return unknown (0xff) on invalid I2C read', 'Really fix TX IQ phase offset.', "Merge branch 'next'", "Merge branch 'next' into usrp1", 'attach run_tx and run_rx to leds', "Merge branch 'features' into tx_policy", 'Fix to create 90 phase shift on TX.', 'Merging my work back to usrp_e branch.', 'connect atr', 'delay the q channel to make the channels line up on the AD9862', 'usrp-e: building off of next branch', 'uhd: add space to multiline string so quotes in the string cant disturb the multiline quotes', "Merge branch 'next' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e_merge", 'usrp-e: misc code tweaks', 'uhd: added the concept of installer path (along with local path) for package data', "Merge branch 'premerge'", "Merge branch 'usrp1_next' of ettus.sourcerepo.com:ettus/uhdpriv into usrp1_next", 'usrp1: Remove hard coded clock values', 'usrp1: Remove error message for unsupported ATR registers', 'usrp1: Setup dboard interface duality', 'Rev firmware compatibility number to 6', 'usrp1: rx and tx mux calculation', "usrp2: don't forward dbsm errors", "Merge branch 'tx_policy' of ettus.sourcerepo.com:ettus/fpgapriv into premerge", "IRQ-based SPI works. Don't try to do multiple transactions without waiting for results first. In fact, don't try to do an I2C transaction while an SPI transaction is pending.", 'syntax', "first stab at irq'ed spi", "Removed NACK checking so things don't barf when daughterboards aren't connected.", 'Fix warnings related to const-ness and volatile-ness.', 'Brought in changes to SPI to match up with parallel branch so they share a common protocol.', 'uhd: created floor_step to handle floating-point errors in gain group', 'uhd: avoid segfaults - use CPP macros for paths and dont split empty string', 'usrp: needed default constructor for MSVC, fixed gain group float warnings', 'Finished GPS driver, more or less.', "Merge branch 'features' into ise12_efifo_merge", "Matt's attempt at merging Merge branch 'tx_policy' into ise12_efifo_work", "Merge branch 'ise12' into ise12_efifo_work", 'usrp1: compiling with the latest next', "Merge branch 'next' into usrp1_next", 'usrp2: fix missing include', 'usrp: use different priority policies for gain group (rx vs tx)', 'usrp: moved usrp utils into public include space', 'usrp1: add skeleton code for setting subdev spec', 'usrp1: created daughterboard duality', 'usrp1: compiling off next branch', "Merge branch 'next' into usrp1", 'uhd: use cmake to convert the pkg data dir to native system format', "Merge branch 'next' into usrp1", 'uhd: extract named prop returns a named prop (not a tuple)', 'usrp: give dboards a name (not a blank string), do automatic selection when not provided', 'usrp: replaced mboard name with special props for dboard iface', 'usrp1: Add usrp1 implementation', 'usrp1: Cmake changes to find libusb-1.0', 'usrp1: Add libusb-1.0 implementations of USB interfaces', 'usrp1: Add USB transport interfaces', 'usrp1: Add SPI transaction command to FX2 firmware', 'Fixed behavior when no GPS present.', 'Small fix for fngets', 'Support for NMEA reads. Uses NMEA parsing instead of Jackson Labs parsing.', 'GPS interface works for Jackson Labs devices.', 'Increased UART timeout for slow Jackson Labs GPSDO. Fixed up timeout code.', 'usrp-e: clock settings, ref doubler, disable test clock, lower cp current', 'usrp1: Add FX2 firmware files', "Merge branch 'split_string' into next", 'Added timeout functionality for UART gets() calls. use fngets_timeout(). timeout defined in hal_uart.h.', 'this is necessary for some reason', "first stab at a GPS driver in gps_ctrl.cpp. not the most expandable thing in the world but there's only so many GPS interfaces out there.", 'Host-side fixes for GPS UART.', 'Fixed GPS UART stuff. Works OK.', 'usrp-e: codec gain control from properties interface', 'Added host-side support for UART messaging.', 'Added UART transactions to the DUDE/BRO protocol.', 'Regenerated FIFO\'s for extfifo. There are problems with certain configurations it seems. It is important that the fifo_xlnx_512x36_2clk_18to36 is generated with the "almost_full" pin even though it is not used in the application. if this pin is omitted the FPGA image doesn\'t work correctly', 'usrp-e: added codec impl, probe works', 'Edited FIFO instance to delete port that was not regenerated after reconfiguration', 'Adding in files that probably didn;t exist in the ISE10.1 version of coregen', 'Bringing all coregen files checked in into sync', "Merge branch 'ise12_efifo_work' of git@ettus.sourcerepo.com:ettus/fpgapriv into ise12_efifo_work", 'Found bug due to not accounting for the correct number of possible in flight READ operations that can be in the extfifo pipeline. Regenerated fifo_xlnx_512x36_2clk_18to36 to include prog_full output triggered at 1017 so that there are 6 empty spaces to accept in flight read data upon completion. Had to generate the FIFO using Coregen from ISE12.1 due to 10.1 verion not working correctly in FPGA Still have to tackle making this simulate in Icarus', 'Fixed u2plus_core.v to use quad_uart instead of simple_uart.', "Merge branch 'split_string' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e_merge", 'usrp-e: fix typo in verify subdev spec', "Merge branch 'subdev_spec'", "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e_merge", "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", 'Working support for multiple UARTs.', 'uhd: made split string utility function', 'uhd: created floor_step to handle floating-point errors in gain group', 'uhd: avoid segfaults - use CPP macros for paths and dont split empty string', 'uhd: avoid segfaults - use CPP macros for paths and dont split empty string', 'rx error context packets should not be marked as errors in the fifo', 'connect the setting reg to the real clock and reset', "Merge branch 'usrp_e_merge' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e_merge", 'usrp-e: removed transfer frameness', "Merge branch 'usrp_e' into usrp_e_merge", 'Convert to use mmaped rx ring buffer.', 'quad uart instead of single, for the extra on board serial ports', 'Branch to make use of quad UART on USRP2P.', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", 'checkin of generated coregen files', 'usrp-e: filled in properties and logic for subdev spec', "Merge branch 'subdev_spec' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'usrp: added subdev spec verification functions', "Merge branch 'changes'", 'usrp: needed default constructor for MSVC, fixed gain group float warnings', 'Convert non-mmaped loopback test program to use new simple read/write api. Done by copying from the -mm version, which will be used to test mmaped ring buffer.', 'Add usrp-e-mm-loopback to .gitignore.', 'usrp-e: fixed warnings and errors, missing subdev spec stuff', 'usrp-e: merged master, does not build', "Merge branch 'usrp_e' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'Loopback test now supports variable size and works with mmapable ring buffer.', "Merge branch 'master' into usrp2p", 'Bring in changes since last week.', 'Interrupt-driven I2C. txrx_uhd uses async i2c for comms.', 'uhd-images: do not require language check for images project', 'usrp2: work on card burner to pad the image file before a write', 'enlarge loopback fifo', 'usrp2: added fpga compat number, renamed firmware proto version to compat', "Merge branch 'uhd_fpga_features'", "Merge branch 'features' into uhd_fpga_features", 'added compat number to usrp2 readback mux', 'makefile dependency fix for second expansion', "Merge branch 'images'", "Merge branch 'features' into uhd_fpga_features", 'usrp: added api call to get the subdev spec', 'uhd: created library code to handle paths for images and modules', 'uhd: moved utils specific cmake stuff into utils cmake file', 'uhd: fix device recv docs on timeout, also fix typo', 'uhd-images: created makefile and cmake packager for the images', "Merge branch 'codec_gains'", 'uhd: use int to round down for gain group', 'dbsrx: added support note to README', 'usrp: tweaks to subdev spec printing', 'uhd: created subdevice pair struct for subdev spec (easier than first/second)', 'uhd: implemented subdev spec in mimo and simple usrp wrappers.', 'usrp: added subdev spec class with parser to specify subdevice specifications for channel config', 'uhd: use constructor for impl class to avoid msvc warnings', 'dbsrx: fix msvc warnings', 'Fix DBSRX tuning and filter bandwidth', 'dbsrx: modification docs', 'DBSRX support in UHD', "Merge branch 'master' into codec_gains", 'uhd: added warning printer utility function', 'uhd: moved utils cpp files into lib/utils directory', 'usrp2: added mboard name call to dboard iface', "Merge branch 'rfx'", "Merge branch 'fw_reorg'", 'usrp-e: fixed clock div calculation bug', "Merge branch 'rfx' of ettus.sourcerepo.com:ettus/uhdpriv into rfx", 'Propogate gain range into RX pga0 helper for RFX boards', 'Fixes gain range for rfx400 vs other rfx', 'Fixes gain range for rfx400 vs other rfx', 'uhd: docs fix, its 3.3v level', 'External FIFO tested in simulation and on USRP2 from decimation 64->8 with current head UHD code. Apparently operation is "flawless" but more regression and corner case regression could and should be done. Tristate drivers have been added at the top level of the hierarchy for the SRAM databus as is considered good practice for both Xilinx and ASIC design flows and so both top level and core fils have been touched.', 'usrp2: reorganized firmware directory', 'usrp2: stop streaming and drain buffer (if left running)', 'Checkpoint checkin. Loopback is running via the external ZBT SRAM...HOWEVER, its not running well, its stable but the data is corrupted sometimes. Not clear if its a logic or AC timing/SI issue yet.', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp2p", "Merge branch 'tx_policy'", 'usrp2: added tx policy register and changed fw to not handle error in buffer pool', 'provide a way to get out of the error state without processor intervention', 'Added DCM reset line to sr.', "Clock bugs, LED order. Figured out cold-start problem with Matt's help -- the DCM wasn't being reset. This also explains why USRP2 didn't like it when clocks_mimo_config was omitted -- it was sneakily resetting the DCM while enabling/disabling ref outputs.", 'uhd: made tx continuous samples example app', 'sequence number reset upon programming streamid', 'attempt at avoiding infinite error messages', 'Added back in clock_mimo_enable stuff since USRP2 breaks without it.', 'uhd: alignment buffer timeout abs time fix', "Stripped out all the clock functionality except for init'ing the FPGA. Clock smarts have been host-side for a while, so this is redundant code.", 'use int not rint.', 'Fix for SPI SS > 8 bits wide', 'ADC gain control works.', 'ADC SPI works. ADC gain interface "works".', "usrp: codec gains, don't bind functio npointers, also add priorities", 'Widened SPI slave select bus to 16 bits in host and firmware.', 'usrp: codec gains, dont bind function pointers, also add priorities', 'Added gain range property to rx_codec_get.', 'usrp: gain group should not try to set gain elements if there are none', 'implemented "next packet" and "next burst" policies', 'sequence errors can happen on start of burst as well.', 'more informative error codes', 'cleaner error handling', 'introduce new error types', 'test mux and gen_context_pkt', "this is an output file, it shouldn't be checked in", 'insert protocol engine flags when requested', "move the streamid so it isn't at the same address as clear_state", 'connect the demux', 'fix a typo', 'tx error packets now muxed into the ethernet stream back to the host', 'checkpoint. New context packet generator to report underruns and other errors', 'Ethernet blinky light changes. Link LED works. D201 (next to PHY) blinks on TX. Yellow LED on connector blinks on TX/RX.', 'latest bootloader in core, fixed eth_led to be active high, connected eth clk', "Merge branch 'usrp2p2' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp2py", 'Ethernet mods for activity LED.', 'Ethernet PHY re-do.', 'usrp: gain group should not try to set gain elements if there are none', 'Interface access methods for users to access dboards.', 'Added one more file from codec_gains2...', 'This is a manual merge of codec_gains2 into usrp2py.', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp2px", 'fixed template problems in gain_group_test', 'usrp: removed gain handler code (replaced by gain group)', 'usrp: added gain group support usrp2 dboard and to wrapper implementations', 'usrp2: added codec impl for codec properties to usrp2', 'uhd: added gain group and unit testing for it', 'usrp: added codec gains props', 'Added gain support for USRP2+ ADC.', "Merge branch 'u2p' of ettus.sourcerepo.com:ettus/fpgapriv into u2p", 'fix timing races on ADC and DAC pins', 'uhd: fix find-replace accident asize_t', "Merge branch 'codec_gains' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp2p2", 'Host-side changes to work with the USRP2+.', 'Deleted manually those files to correspond with USRP2P branch.', 'usrp2: use default sized buffer on transmit (or reasonably smaller)', 'Firmware compiles.', 'New branch with firmware dir from USRP2P branch.', "Merge branch 'tx_report'", 'fixed template problems in gain_group_test', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into codec_gains", 'uhd: removed remaining template stuff from vrt packet handler, also tweaked format in rx timed samples', 'usrp: removed gain handler code (replaced by gain group)', 'usrp: added gain group support usrp2 dboard and to wrapper implementations', 'usrp2: added codec impl for codec properties to usrp2', 'uhd: added gain group and unit testing for it', 'usrp: fix the N/2 cordic tune issue, use boost math sign inplace of my signum', 'uhd: moved version extraction code into version.cmake', 'usrp: added codec gains props', 'uhd: get the version string from the api', 'usrp2: moved timeout into bound callback in io_impl', 'uhd: get time stamp from git log', 'usrp: changed opaque pointer implementation for dboard contructor args', 'uhd: added better throw warning to dict key not found', 'usrp2: added async event types, and common code for handling context words', 'capitalization matching', 'uhd: added async recv message call to device api', "Merge branch 'master' into tx_report", 'reconnect the serial clock', 'connect SPI to adc, correct capitalization of SEN pins', 'Fixed Makefile.common to correctly generate .mcs files.', 'uhd: bring timeout parameter to the device::recv call, implement in usrp2', 'uhd: typedefed vrt pack/unpack so the vrt packet handler need not be templated', 'usrp2: added registers and handling for tx async reports', "Merge branch 'u2p' of ettus.sourcerepo.com:ettus/fpgapriv into u2p", 'pushbutton now goes into interrupt controller, can be read from software. Normally high, goes low when pushed', "Merge branch 'ise12' into u1e", "Merge branch 'ise12' into u2p", 'move declaration ahead of use', 'put run_tx and run_rx on the displayed LEDs', "Merge branch 'u2p' of ettus.sourcerepo.com:ettus/fpgapriv into u2p", 'proper selection of bank of ram for instruction, since the address has already incremented by the time the data is returned', 'usrp2: add a timeout to udp control and make it large for usrp2 control transactions', 'usrp2: installed a simple dbsm_rx_inspector, it wont work without it...', "Merge branch 'package'", 'uhd: fix unit test to compile over here', 'uhd: work on tune logic, and subdev connection logic', 'usrp: removed spectrum inverted property from subdev code and tune helper (it wasnt used)', 'uhd: added test to check derive_freq_from_xx_subdev_and_dsp', 'usrp: added functions to derive tuned frequency, tweaked logic, added unit test', 'remove warnings', 'wbx: removed print after freq clip', 'Change WBX frequency range to match actual VCO/divider possibles', 'uhd: include code_rate/2 as part of the tunable frequency range', 'uhd: fix quotes for boost additional versions, restrict lib64 check to unix platforms', 'usrp-e: removed vrt header rewrite in io impl, its not in vrt packet parser stuff', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", "Merge branch 'usrp_e' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'usrp2: remove mb intervention on outgoing packets', 'add mux and demux to build', 'mux multiple fifo streams into one. Allows priority or round robin', 'split fifo into 2 streams based on first line in each packet', "Merge branch 'reload' into ise12", 'uhd: fix for vrt packet handler commit size', 'make loopback compile', 'get it to build', 'moved forward from the old branch', 'uhd: bug in dsp freq word return calculation (signedness)', 'Use largest possible packets for transfers.', 'Convert basic test programs to use shorts in the GPP to avoid using short to float code in uhd.', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'uhd: disable cid testing in vrt unit test (not supported)', 'usrp2: disable buffer resize on platforms that cry about it', 'uhd: platform define macros', "Merge branch 'u2p' of ettus.sourcerepo.com:ettus/fpgapriv into u2p", "just local commit before updating w/matt's fix", 'reset the ack signal', 'uhd: time for version minor, path tweaks, notes on windows command line compilation', 'attach the correct data port', 'uhd: moved cpack stuff into config dir (work on cpack)', 'includes led blinker in bootram', 'uhd: benchmark app, stop if left running initially', 'uhd: add lib64 to boost library path when it exists (helps fedora 64)', 'separate boot ram, redone memory map, connected uart', 'uhd: switch statements to handle error code, default md to error code none', 'usrp2: forward errors in the dbsm to communicate them up to the host', 'uhd: support for deb and rpm packages, added dependency requirements', 'further cleanup', 'ram_harvard2 is a workaround for a Xilinx bug that gets confused by an unused write port on a ram', 'very slight mods from v5 version', 'copied from quad radio', 'remove ram loader', 'uhd: added checking for time deviation after sync. Prints error.', 'updated to ise12 fixes from main development line', "Merge branch 'ise12' into u2p", "Merge branch 'ise12' of ettus.sourcerepo.com:ettus/fpgapriv into ise12", "Merge branch 'master' into ise12", "Merge branch 'ise12' into u2p", "Merge branch 'master' into u2p", "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'uhd: setup metadata for fragment case (not in general case)', "Merge branch 'error_handling' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'usrp2: removed SX packet count stuff from vrt packet handler, moved to usrp2 io impl and replaced with Os', 'usrp-e: added io_impl handle overrun', "Merge branch 'error_handling' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'uhd: define ssize_t for msvc, fixed warning as well', "Merge branch 'error_handling' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'uhd: ssize_t for phony zero copy return types, null sptr for timeout/error with get managed buffers', "Merge branch 'error_handling' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'uhd: benchmark app, overruns are ok to get', "Merge branch 'error_handling' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'uhd: added error codes to rx metadata, switched examples to use', "Merge branch 'reload' into u1e", 'fix to stop endless error packets', 'updated tests to match new features', 'point to new location for fifos', "Merge branch 'error_handling' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'uhd: callback in vrt packet handler to handle overrun', 'uhd: added packet type to vrt if info struct, added burst flags to rx metadata, fixed vrt if packet parsing bugs', "Merge branch 'reload' into u1e", "error packets are now valid Extension Context packets error packets don't have a trailer any more streamid is now optional on data packets, set by header register trailer now has a bit to indicate successful End-of-burst hard-coded some header bits to correct values to ensure valid packets", 'usrp2: added notes on multiple device network setup, improved warnings for buff size stuff', 'uhd: moved assert implementation into ipp file, fixed potential bug with assert throw macro', 'usrp2: clean up fw common with nicer looking macro for stdint namespace', 'usrp2: moved common defined for udp mtu and implemented change.', 'usrp2: use the actual pointer in bind so the sptr is not copied', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e_wip", 'uhd: change pack/unpack for 64-bit numbers to reflect hardware implementation', 'usrp-e: fixed send and recv logic in io impl to deal with frame length correctly', "Merge branch 'reload' into u1e", "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e_wip", 'uhd: added dilv option for timed examples, also made tx timed example fragment', 'usrp-e: replaced stream cmd logic with common dsp type1 logic', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e_wip", 'uhd: added single rate option to benchmark example', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e_wip", 'usrp: moved stream cmd word calculation into common dsp utils', 'uhd: updated code to build with latest api, not tested', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'usrp-e: removed top level header for usrp-e and fpga burner app, were not going to do it that way...', 'usrp-e: tweaks to clock control logic', 'uhd: renamed prefix on usrp burn eeprom utility', 'uhd: removed some errors and warnings under macosx gcc build', "Merge branch 'usrp2_mimo'", "Merge branch 'uhd_fpga_merge'", 'uhd: mimo usrp replace sleep with boost thread sleep (windows fix)', 'uhd: added back into old send/recv but with deprecation attributes, moved inline device stuff into device.ipp', 'uhd: added set time w/ unknown pps to mimo usrp, get tx rate bug fix', "Merge branch 'master' into u1e", 'uhd: remove windows warnings (minor tweaks)', 'uhd: moved header file implementation code into ipp files', 'usrp2: Added a peek64 to read pairs of 32 bit numbers such as time64', 'uhd: code tweaks, extra error condition for vrt unpack', 'uhd: added clear capability to alignment buffer (fixes case when next seq is less than prev)', 'uhd: added get time now call to simple and mimo usrp', 'usrp2: bug fix for readback registers', 'uhd: replaced old send and recv with inline wrappers that take a single buffer and look more like the vectored send/recv', 'uhd: added mimo notes, misc spellcheck and tweaks', 'mimo: added call to set time to zero at next pps on init', 'uhd: filled in mimo usrp rx and tx methods', 'uhd: filling in mimo usrp implementation, renamed get_name to get_pp_string for simple and mimo usrp', 'usrp2: removed usrp2.hpp header, its not needed, just use the discovery/factory system', 'usrp2: some cleanup and tweaks in io impl', 'uhd: renamed the vrt header to vrt_if_packet header', 'usrp2: moved calculations for max packet size and otw types into shared object between device and mboards', 'usrp2: split mboard impl into its own class, usrp2 device can instantiate N mboard impls for mimo setup (works with 1 for now)', 'uhd: vrt packet handler fix and tweaks', 'uhd: forgot burst flags, tweaks to vrt info -> metadata', 'uhd: work vectorizing the vrt packet handler, reworked vrt packet stuff, needs testing', 'usrp2: increased transport buffer minimum size, and added warning', "Merge branch 'master' into ise12", 'reload bit for vita rx ctrl', "Merge branch 'master' of ettus.sourcerepo.com:ettus/fpga into uhd_fpga_merge", 'fix bug which caused serdes fifo to disappear', 'uhd: added build notes for fedora 64 boost not found', 'uhd: moron alert, used incorrect bounds in simd loop, the remainder loop was doing 3/4 the work', 'uhd: convert types simd, unpack with zero constant for lower half', 'uhd: moved convert routines into implementation header file (out of python gen file)', 'uhd: implemented complex float <-> item32 conversion with sse2', 'uhd: replaced single sample converters with vector converters', 'uhd: removed hackery to set performance flags, use release mode.', 'uhd: fix for windows warning, tweaks for msvc optimization flags', 'uhd: reworked time_spec_t to be more flexible: arithmetic, comparison operators...', 'uhd: created benchmark rx example app', "Merge branch 'master' of ettus.sourcerepo.com:ettus/fpga into uhd_fpga_merge", 'uhd: tweaks to ic regs maps common generator code', 'usrp-e: clock control constants to easily change dividers and counters, tweaks to ic reg maps common', 'usrp-e: clock divider calculation fix', 'usrp-e: added clock rate control to dboard iface and clock control impl', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'usrp2: init clock rate shadows for dboard iface, uhd: pthread sched fix error condition check', "Merge branch 'burn_dbid' into pre_merge", 'uhd: added checking for xcvr dbids, added unknown dboard rx and tx constructors (for bad dbids or combinations)', 'uhd: added dboard manager call to register xcvr board, implemented in xcvr dboard code', "Merge branch 'master' into u2p", 'usrp2: updated fpga build notes', "Merge branch 'uhd_fpga_merge' into pre_merge", "Merge branch 'i2c_resize' into pre_merge", "Merge branch 'master' into u1e", "Merge branch 'master' into ise12", 'proper dependency tracking for the makefile', 'usrp2 mb: replace hard coded constants with macros for rx offset', 'usrp2: enlarged the i2c transaction size, rev-ed the firmware protocol number, added constants for packet sizes', 'usrp2: code and comment tweak for aux dac call', 'uhd: added enums for aux adc and dac, usrp2: implemented enums in db iface', 'usrp-e: added verbose for bad poll and read values', 'added ability to clear out fifos of tx and rx.', 'usrp2: implemented dboard clock divider control in usrp2 clock control', 'added set clock rate, and get clock rates to dboard iface, usrp2 needs clock ctrl implementation...', 'uhd: check priority range', 'uhd: working windows implementation of thread priority setting, added called to example apps', 'uhd: work on thread priority scheduling', "Merge branch 'usrp_e' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'usrp-e: added type device address argument to usrp-e', "Merge branch 'master' of ettus.sourcerepo.com:ettus/fpga into uhd_master", "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", "Merge branch 'sched'", 'usrp2: added a type to the address args to filter based on type usrp2', "Merge branch 'sched' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'uhd: added ability to boost rt priority, added general app notes', 'Add gitignore file.', 'precompute udp checksums', 'barely fails timing on gigE/10 and gigE/12, larger fail on udp/10, but all seem to work ok', "Merge branch 'work'", "Merge branch 'aux_dac'", 'usrp2: dboard iface: switched to nested dictionary for dac regs', 'usrp2: improved print-out for socket buffer sizing', 'usrp-e: added poll(...) call before read(...) call', 'fix type, it was supposed to be complex float', 'file option for rx timed samples, misc fixes', "Merge branch 'master' into u1e_newbuild", "Merge branch 'master' into u2p", 'new make works on ise12', 'new core for u2p, based on u2_core', 'build using new build system', "Merge branch 'master' into u2p", 'work on algorithms and documentation', 'Rename loopback of random length packets test program so we know it needs loopback fpga image. Needs debug.', 'Exit on errors. Run until an error occurs. Alloq for up to 2 sequence number errors so program can start with "dirty" fpga contents.', 'Update usrp_e.h file. Change programs to use struct element status instead of flags.', 'Fixed USRP2 aux_dac numbering convention', 'produces good bin files', 'debug pins', 'much bigger fifos', 'left something out of the sensitivity list.', 'proper overrun, underrun connections, debug pins.', 'first attempt at cleaning up the build system', 'installed mux setting and initing the duc and ddc', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", "Merge branch 'probe' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'Moved mux calculations into dsp type1 utils.', 'created uhd usrp probe', 'actually generates an image', "Merge branch 'master' into u2p", 'created capability for meta-registers', 'usrp-e: switched otw type to little endian (works now)', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'fix for ad9862 regs map', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'fixed converter logic in convert types', 'get rid of debug stuff to help timing', 'move u2_core into u2_rev3 directory to simplify directory structure and save headaches', 'extend byteswap routines for macosx, and added case for unknown', 'float casts to remove msvc warnings', 'ignores', 'debug pins', "Merge branch 'wip' into work", 'fix to ensure 32 bit swap is called on a 64 bit machine', "Merge branch 'master' into u2p", "Merge branch 'master' into u1e", 'allow other clock rates in vita time', 'Replaced convert types with generated convert types that handles more cases.', 'usrp-e: working vrt recv, implemented dsp utils in usrp-e dsp', 'report ise version in build', 'proper name for directory', 'name build directory with ISE version name', "Merge branch 'work' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'Created a common usrp dsp utils to handle register word calculations.', 'compiles now, added clock constraints', "Merge branch 'work' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'Replaced the vrt pack and unpack with a pack and unpack for big endian and a pack and unpack for little endian.', 'works, leds on front count up.', 'skeleton files copied over from a dead branch', "Merge branch 'byteswap' into work", 'added byteswap routine to utils', 'remove double declaration', 'use fifo19 not fifo18 in makefile', 'added little endian capability for gpmc to fifo and fifo to gpmc, since ARM is LE.', 'get rid of redundant fifo18, since we can just use fifo19 and ignore the occ bit', 'recv giving me something, bad vrt headers though...', 'moved dsp update logic into prop setter, added code to init dsp rates and freqs', 'usrp2 regs naming convention', 'usrp-e more implementation, rx timed samples runs w/o error (no workie though)', 'implemented dsp and rx control', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'prefixed helper classes with usrp_e to avoid collision', 'move get clock rate into clock control', 'also use an mtu size recv buffer for the control packet recv', 'Prepend usrp2 onto the helper classes in usrp2 impl to avoid symbol conflicts.', 'recv discovery packets with max size buffer (we dont know what to expect)', 'io impl tweaks, renamed clock control and codec control implementation to avoid collision with usrp2 (those need to be renamed as well)', 'work on io impl for usrp-e using read/write', 'added headers to cmakelists for completeness', 'Phil wants gpio #145', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'Created macros for dealing with pimpls and implemented in code.', 'replaced the assert falses with an invalid code path exception', 'use smart pointer for io impl, simplify send buffer callback', 'disable boost thread interrupt when doing pop with timed wait, fixed error on exit', 'removed some windows warnings', 'use select for socket timeout, works windows and linux', "Merge branch 'refactor_db'", 'use polling for socket recv, timeout socket option not portable', 'use same version as usrp2-udp, so regs are same place in memory map', "Merge branch 'ise12_exp' into u1e", 'added sr registers to u1e', "connect the rx run lines so it doesn't get optimized out", 'use DDR regs instead of a 2nd clock', 'Implemented pirate thread, moved io impl details into io impl cpp file. Fixed bug in bounded buffer push with pop on full.', 'Updated documentation', 'Refactor WBX and RFX to use conventions more like XCVR', 'assign addresses for the settings regs', 'vita49 tx and rx added in, all sample rates now at main system clock rate.', "Merge branch 'buffer' of ettus.sourcerepo.com:ettus/uhdpriv into buffer", 'Moved the packet handler state stuff into a separate header (so we dont pull in all the includes). Use callback for getting buffers rather than zc interface pointer so its more modular.', 'zero out debug pins. helps timing a little bit.', 'added frame count call to zero-copy iface, tweaks for udp asio impl', "Merge branch 'new_ramloader' into nocache_plus_newramloader, plus manual merge into udp version.", 'work on alignment buffer, got unit test working', 'work on bounded and alignment buffer with unit testing', 'work on buffers for recv', 'Made a phony zero-copy interface for those interfaces that are actual copy-interfaces.', "Merge branch 'master_nocache' into master_nocache_post_merge", 'fix for msvc warning', 'fix: wrong size for buffer in recv', 'reverted usrp-e-led sorry', 'non-udp uses a different address for the tx dsp core', 'manual merge to use localparams from udp version', 'from UDP branch, changed names because I want these separate from the non-udp versions', 'ignore output files', 'new files from udp branch added to main Makefile', "Merge branch 'udp' into master_merge_take2", "Merge branch 'udp' into u1e_merge_with_udp", "Merge branch 'master' into u1e_merge_with_master", "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'Tweak with the udp and zero-copy transport. Eventually, the caller will hang onto a ring of managed buffers.', 'change the debug pins, which makes it more reliable. This is unnerving.', "experimental mods to make ram loader fully synchronous. Based on IJB's work", 'Added support to set GPIO pins from dboard interface:', 'Added timeout error message to timed samples example. Added try catch to recv helper because vrt unpack can throw.', 'fixes from IJB from 5/24. Basically connect unconnected wires.', 'fix for time64 register write order', 'test full width packets', 'Divide by 4 to convert byts/sec to samples/sec. Multiply by 4 is right out.', 'mac os x card burner support and documentation notes', 'fifo36_to_ll8 and fifo pacer need a real fifo between them or they deadlock (by design)', 'fix double declaration', 'clean up parsing of dd.exe --list for windows usrp2 card burner', 'Work on crc testing program. Currently dumps first received packet to the screen. Started to reduce teh number of warnings.', 'OK, now crc uses the timed interface to set the data rate.', 'use only procfs /proc/partitions for discovering raw devices on linux', 'send bigger packets to reduce cpu load', 'some wbx series notes', 'split the card burner into two python apps, one command line app with implementation, and the other a gui only app, updated docs as well', 'removes the icache and pipelines the reads', 'Rename loopback test program to match bin file name.', 'Enable realtime scheduling in loopback test to prevent overruns.', 'put over/underrun on debug bus, remove high order address bits', "Merge branch 'u1e' of ettus.sourcerepo.com:ettus/fpgapriv into u1e", 'combined timed and crc cases. fifo pacer produces/consumes at a fixed rate', 'better test program for just the tx side', 'fix typo, no functionality difference', "Merge branch 'work'", 'rfx dboard code minor refactor to look more like xcvr2450 code', 'Display data rate in samples/second and fix typo.', 'Calculate received sample rate for loopback test.', 'Use better optimization settings.', 'Fixed some bugs in the send and recv full buffer modes.', 'break recv loop on timeout', 'dont default the mode parameter, that is only asking for trouble', 'Fix initialization bug.', 'Rename test program to match FPGA bin file name and add data rate calculation.', 'Keep repo in sync with my churn ...', 'init values in dboards to remove gcc warnings', "Merge branch 'udp' of git@ettus.sourcerepo.com:ettus/fpga into work", 'tweaks to remove warning is msvc', "Merge branch 'work'", 'clock bypass divider fixes, forgot to move this part into the host', "Merge branch 'master' into udp", 'get rid of some warnings by declaring setting reg width', 'Added tx timed samples example. Added called to device to get max samples per packet. Removed device props that gave max samples per packet.', 'added width parameter to avoid warnings (thanks IJB) and default value parameter', 'Added send and recv modes to the device class and packet handler implementation.', 'added pragmas suggested by Ian Buckley to help ISE12 synthesis', 'get rid of old CVS linkage', 'Comment out progress indicators.', 'Revert "Revert "Update test program to reflect what is in the FPGA image.""', 'burn sd card fix, units for seek and skip in blocks not bytes', 'Remove rand for now. Fix bug in data rate calculation.', 'Revert "Update test program to reflect what is in the FPGA image."', 'ignores', 'use static init lists for the types, some speedup for the fast path related ones, other changes are pointless', 'Created config macro to force inline.', 'better debug pins', 'Created inline send vrt packer function that also handles fragmentation.', 'work on generic packet handler (got rx working)', 'automatic resize for small udp buffers', 'windows fix for setsockopt', 'simplification of udp asio socket stuff', 'calculate max samples per packet using otw type', 'settings bus to dsp_clk now uses clock crossing fifo', 'added set freq with lo offset to simple usrp wrapper', 'card burner notes', 'Update test program to reflect what is in the FPGA image.', 'memcpy data when in custom io type', 'fix to ad9777 dac control', 'got clock gen config working and tested', 'Connect enable to the correct gpio.', "Merge branch 'master' into udp, removes u2_rev1, rev2", 'card burner: added --list option, added warning, added sync on linux', 'remove files for old prototypes, they were confusing people', "revert commit 9899b81f920 which should have improved timing but didn't", 'Change to 24 bit transfers.', 'work on usrp2 card burner, uses blockdev and /proc/paritions to check for devices, windows tweaks as well', 'Print a . for every packet received.', 'notes on usrp2 card burner', 'Added card burner python app with gui and windows support.', 'moved fifos into gpmc_async, reorganized top level a bit, added in crc packet gen and test', 'add missing signal from sensitivity list', "Merge branch 'master' into u1e", 'packet generator and verifier, to test gpmc and other data transfer stuff', 'move dsp settings regs to reclocked setting bus. Works, gets us to within 18ps of passing timing', 'Add calculation for data trasnfer rates.', 'reverting logic clean up which should have made timing better, but made it worse instead', 'Moved usrp2 eeprom addr read/write to host control over i2c/eeprom interface calls. No longer part of the dude/bro protocol.', "Merge branch 'master' into udp", 'remove port which is no longer there', 'cleaned up the logic, this is copied over from quad radio', 'allow settings bus to cross to a new clock domain, should help timing, but not attached yet', 'Add program to do initial configuration of the clkgen chip.', 'Added a place for serdes control on the host.', 'Moved adc and dac control into codec control source file. The codec control powers down the chips on destruction.', 'switched passthru of cgen_sen_b to gpio127, made a note of it. No more safe_u1e necessary.', "Merge branch 'shrinkfw' into usrp2", 'added save state for ic regs map common', "Merge branch 'udp' of git@ettus.sourcerepo.com:ettus/fpgapriv", 'proper signal level for 24 bit data', 'ad9862 transmit working', 'moved open/close into iface, work on codec tx', 'filled in dboard interface with codec and clock control', "Merge branch 'usrp_e' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'Update usrp_e.h file from kernel header.', 'First pass at data transfer program that uses CRC.', 'Print an error and exit if open fails for some programs.', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'fix for first seqno on rx, init the variable', 'SPI passthru for programming clock gen chip on brand new boards', 'work on codec control, writing aux dacs, read aux adc', 'moved usrp_e specific build stuff into its own cmake file', "Merge branch 'master' of ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'moved uhd lib cmake contents into respective subdirectories', 'fixed exception case', 'Removed the boost exception stuff, replaced it with macro that formats the throw site information.', 'code tweaks to get wbx compiling with master', "Merge branch 'wbx' of git@ettus.sourcerepo.com:ettus/uhdpriv", 'Inverted logic in halfband selection', 'Fixed unguarded debug message', 'added hb filter calculation on usrp2 dsp impl', 'added DAC output pins, and a sine wave generator to test them', 'First working RX/TX WBX in UHD', "Merge branch 'u1e' of ettus.sourcerepo.com:ettus/fpgapriv into u1e", 'add timing constraints. Just have main clock signal at 64 MHz for now.', 'Fixed SPI register length', 'changed comment', "Merge branch 'usrp_e' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'fix files before pull', "Merge branch 'usrp_e' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'Remove workaround for driver hang.', 'created codec control for ad9862, wip', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'notes about ping and firewall', 'added icmp echo reply to usrp2', 'Fixed casts in set_freq and attenuator bit mask', 'Spi data returned in struct now.', 'Update path to put module in.', 'have_space and have_packet now stay high even while busy, as long as there really is more data/space. This should allow bursting without having additional interrupts.', 'windows tweaks to config', 'minor fix to pass dboard ctor args with correct dbids', "Merge branch 'work' of git@ettus.sourcerepo.com:ettus/uhdpriv", 'minor regs fix', 'First pass WBX code, it compiles', 'Add hack to work around driver race.', 'Add a hack to work around a driver race. Remove when teh driver is fixed.', 'spi working, talked to ad9522', 'Expanded the dboard id API to create dboard id types from strings and ints. And created utility functions to go between representations. Created to_pp_string for pretty print strings for dboard ids and device addrs. Minor changes to the various classes that call these utilities.', 'Replaced the dboard base constructor args with an opaque type.', 'Cleaned up some dboard manager construction logic. Moved the dboard base private stuff into a forward declaration.', "Merge branch 'usrp_e' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'Change overrun indication. New progress indicator. Turn on RT scheduler for user space.', 'Update IP address for my home desktop. Change module version to 2.6.33.', 'Code tweaks and added unit test for dict and error message.', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'added enums to register map', "Merge branch 'socket' of git@ettus.sourcerepo.com:ettus/uhdpriv", 'made buffer size args part of constructor', "Merge branch 'reg_maps'", "Merge branch 'env' of git@ettus.sourcerepo.com:ettus/uhdpriv", 'added ad9522 reg map, minor fixes', 'Moved a bunch of register map code into common.', 'added reg map for ad9862', 'use boost program options for env variables', 'work on clock control init, added dummy spi slaves: must fix', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", "Merge branch 'usrp_e' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'Add script to setup board id info in eeprom.', 'Moved some misc setting registers into host.', 'removed some unused things like gpio from microblaze code', 'separate timed tx and rx instead of loopback', 'Added reload flag to the stream cmd.', 'Various updates to test programs.', 'setting size of buffers from device args', 'work on controlling the socket buffer sizes from the front end api', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv", "Merge branch 'usrp_e' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'moved i2c into usrp-e interface, used by dboard interface and eeprom', 'usrp-e branch compiling with recent master pulled in', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'Add program to exercise interface using internal fpga data source and data sink.', 'Send only required number of bytes. Do it for longer.', 'added to the time spec documentation', 'fixed windows warnings', 'added simple usrp api to read rssi and get LO lock status', 'Added first wbx dboard code', 'First pass register map complete', 'send bus error to debug pins', 'Added RSSI readback to XCVR2450.', "Merge branch 'corgan_fixes' into udp_corgan", 'Renamed the prop set/get error macros so they make sense for not-implemented properties.', 'added lock detect status to dboards', 'prefixed the ASSERT_THROW macro with UHD for the sake of namespace', "Merge branch 'eeprom' of git@ettus.sourcerepo.com:ettus/uhdpriv", 'Got eeprom read/write dboard ids working.', 'Added i2c interface to serial.hpp, using in usrp2_iface for i2c and eeprom.', 'renamed the firmware main image to txrx_uhd.bin', 'Work on exceptions.', 'Pass previously unused GPIOs to debug pins to help debug interrupts', "Merge branch 'usrp_e' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'removed boost exception stuff that makes it incompadible with 1.36, remember this diff', 'added dboard id burner app', 'set dboard eeprom from dboard properties', 'Moved reading the eeprom (dboard ids) onto the host.', 'Only allow new packets if we can fit the largest possible packet (2KB)', "Merge branch 'xcvr' of git@ettus.sourcerepo.com:ettus/uhdpriv", 'XCVR seems to be working, fixed the spi reset routine.', 'whoops, copied wrong license', 'XCVR tweaks, working in highband and lowband.', 'Register outputs to omap to prevent runt pulses from falsely triggering interrupts', 'Updates to test programs.', 'xcvr tweaks and fixes, needs real testing', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv into xcvr", 'filled in xcvr tuning, set gain, spi reset', 'added regs for max2829', 'toggle led a for continuous streaming', 'pulled in some dboard docs and fixes', 'added dboard app notes', 'Update transfer test program to use usrp_transfer_frame struct.', 'work on atr registers and filling in functions', 'Added protocol version number to usrp2 common header and data struct.', 'xcvr work, skeleton layout', 'Add register definitions for new transfer scheme.', "Merge branch 'win' of git@ettus.sourcerepo.com:ettus/uhdpriv into work", 'added coding docs', 'windows warning fix', 'Created args string contructor for device address. Using the args string for the find devices app. Added documentation to simple usrp.', 'find time_64bit', 'Add program to setup debug pins. Add script to reload fpga and module.', 'Initialize data array to help show when reads fail. Report return value from ioctl', 'usrp-e-spi: change active edges around.', 'usrp-e-i2c always uses hex arguments.', 'Always put new bin file in /home/root.', 'Fix silly typo in script.', 'Fix script to write board id eeprom.', 'Add scripts to read and write board id info into usrp e id eeprom', 'added comments to cmakelists, makedir in file generation script so python doesnt have to', 'documentation notes in readme', 'pulled aux dac and adc support from microblaze, its in the host now', 'added support for aux dac and adc control in host', "Merge branch 'docs' into work", 'added some documentation and links to the index', 'added usrp2 networking notes, tweaked style and build', 'Created a docs directory to house restructured text documentation.', 'moved come common register generation code into common.py', 'moved spi and i2c api into serial.hpp, its used for more than the dboard interfacing', 'updated readme', 'added automatic ref source enum', 'forgot an include', 'RFX seems to be tuning. Added some code to dsp to check for valid range.', 'pulled in master and got usrp-e code compiling', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhdpriv into usrp_e", 'added pps and time capability', 'access frame length regs from wishbone', 'async seems to work with packet lengths now. Still need to do wishbone regs for gpmc', 'async gpmc progress', 'change time parameters because Xilinx IP has a 1ps timescale', 'add bus error reporting', 'correct name of module', 'work on rfx registers', 'progress on synchronous gpmc, but it may not be possible due to the limited number of clock edges', 'synchronous and asynchronous gpmc models', 'handle all tri-state in the top level of gpmc', "Merge branch 'udp'", 'moved usrp1 and usrp2 fpga dirs into fpga subdirectory', 'more sync progress. This is just a skeleton for now, with junk content', 'work on tuning rfx tx and rx LOs', 'more progress on synchronous interface', 'renamed to async. Will be building a sync version for GPMC_CLK', 'make timing diagrams for bus transactions. Still need to do reads', 'added in a loopback fifo', "probably won't be using this, and it hasn't been tested", 'removed some windows warnings', 'Added gain control to rfx. Switched string constants to caps (gains, antennas, subdevs). Made dboard interface for aux dac and adc use volts.', 'work on atr bits in rfx board', 'removed clock rate prop, we dont need to expose that since ticks are in nsecs', 'renamed dxc to dsp for tune result', 'renamed dboard interface to dboard iface, the lengthy name was getting to be a burden', 'work on rfx atr regs', 'Created a usrp2 interface class with the control, spi, peek/poke functionality. Its used in all the implementation level code', 'minor changes to get it to synthesize', 'added adc and dac clock enables', 'removed unused firmware code', 'Moved ad9777 control 100% on to the host', 'added ad9777 register map', 'added more clock config, takes care of external reference', 'Moved clock control into abstraction clock control class.', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhd into usrp2", "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhd", 'added reqs and build instructions to readme', "Merge branch 'usrp_e' of git@ettus.sourcerepo.com:ettus/uhd into usrp_e", 'Fix typo.', "Merge branch 'master' into usrp_e", 'merge reverse diff', 'forgot dangling file', 'controlling dboard clock enables from host', 'lengthened delay between cycles, added more transactions on the data bus', 'replaced ram interface with a fifo interface. still need to do rx side', 'split out gpmc to wishbone interface to make gpmc top level cleaner', 'reg map for ad9510', 'merged unit type and gpio bank for dboard interface into one type, expanded dboard clock config api', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhd into usrp2", 'moved spi transact to usrp2 impl, and removed spi read', 'removed dummy placeholder', "Merge branch 'rfx' of git@ettus.sourcerepo.com:ettus/uhd into io", 'store the mtu and hdr len stuff only in the usrp2 impl', 'Added data type conversion routines to transport api.', 'Created zero copy interface/framework, made use of it in usrp2 udp transport stuff.', "Merge branch 'master' into usrp_e", 'put the dummy package back in', 'moved regs generator to ic reg maps folder, others will go there as well', 'Test program to verify GPIO on daughterboards. For success, connect gpios on TX to corresponding ones on RX.', 'generate the register file, added lib include dir', 'added python+cheetah build requirement, generating vrt.cpp', 'converted timespec to use nanoseconds for fractional part', 'Reworked the spi part of the dboard interface.', 'added code for adf4360 chip', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhd into rfx", 'GPIO tested working on usrp.', 'handle tx fragment eob flag case', 'renamed dict get key and value methods', 'some doxygen fixes after merge', "Merge branch 'rework' of git@ettus.sourcerepo.com:ettus/uhd", 'simplified the usage of dboard, dsp, and mboard proxies.', 'paradigm shift for the dsp abstraction', 'added 16 bit peek and poke, 16 bit register defs for gpios and atrs', 'Added doxygen support.', 'extended stream cmd with mode enum, and extended fragment flags in metadata', 'Attempt to make scripts run inside and outside GHQ.', 'Add program to read from serial port and print to screen. (works)', 'Add ability to change uart baud rate. (works)', 'Yes, I am an idiot.', 'some work on rfx board code', 'Update to use register definitions from header file.', "Don't need to use malloc to get the correct sized struct anymore.", 'env path separator for windows', "Convert to use register include file. Fix peek/poke16 program. Add program to cycle through LED's and test buttons. Only pushbuttons tested at the moment.", 'Handle 32 bit data to spi controller.', 'windows fix, forgot boost namespace for stdint', 'added 16-bit wide atr controller settings_bus_16 now handles variable address window sizes split ctrl of nsgpio into ctrl (selector) and debug bits', 'hardcoded values for enum props, added clock get/set for simple usrp', 'Moved usrp specific things into usrp directories and namespaces.', 'moved props into usrp and multiple hpp files', 'use defined constants for the register addresses', 'added peek and poke, using in dboard interface', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhd into usrp_e", "Merge branch 'usrp_e' of ettus.sourcerepo.com:ettus/uhd into usrp_e", 'preliminary registers definition', 'Allow variable length spi messages.', 'Spi word length is in bits, not bytes.', "Merge branch 'usrp_e' of git@ettus.sourcerepo.com:ettus/uhd into usrp_e", 'added spi slaves to regs, use std copy for buffs', 'Moved dsp (rx and tx), time config, and clock config (mostly) into the host.', 'Refactor ATR part of dboard interface (and some constants).', 'removed masks for ddr and gpio write in dboard interface', 'use find to discover devices', 'Added io type and otw type for describing types.', 'filled in some gpio handling code, some mboard impl, added usrp_e_regs (like memory map)', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhd into usrp_e", 'tweak usrp-e cmake config', 'compiling with master merge, renamed usrp1e to usrp_e', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhd into usrp_e", 'Update config to all eight clock buffers to be used.', 'Added timing constraint for Wishbone clock/dsp_clock skew', 'unit test for device addr', 'Added utility methods to device addr and mac addr to make them more usable.', 'use bb_rate and if_rate to handle dxc io rates', 'Minor fixes.', 'Added tune helper to utils.', 'added some msvc notes, fixed line endings', 'minor fix to wax test to get unit testing working on windows, added missing config include to static.hpp to compile under windows', 'refactored types.hpp into types directory', '16 bit wide spi core', 'Split utils.hpp into subdir with multiple files.', 'tweak the ifaddrs address discovery', 'get interface addresses on windows', 'connect up the 16 bit spi core', 'library loading on windows, status message tweaks, warning tweaks', 'made python app to generate vrt jump tables, seems to run faster...', 'remove timescale junk', 'removed that fw sets seq stuff, not applicable', 'insert correct control word and vrt len into the buffer', 'Working version.', "Merge branch 'addrs' of git@ettus.sourcerepo.com:ettus/uhd into timing", 'added interface address discovery', 'connect 2 clock gen controls and 3 status pins to the wishbone so they can be read/controlled from SW', 'Add test program to send characters to the wishbone uart.', "Merge branch 'udp' into u1e", 'Overhaullllllled the way we do streaming. There is an odd bug where a zero length command (now, no chain) used to stop the streaming. Now it seems to do the reverse... must investigate.', "Merge branch 'master' into udp", 'connected spi pins, but the spi core still needs to be redone for 16 bit interfaces', 'moved fifos around, now easier to see where they are and how big', 'Update read/write test program to new header name and add to Makefile.', "Merge branch 'mbdebug' of git@ettus.sourcerepo.com:ettus/uhd into timing", 'Updates for header file change from usrp1_e.h to usrp_e.h.', 'mess with that usrp2 io loop unroll, also py app gets installed executable', 'added easy way to compile firmware for debug mode', 'bigger fifo on UDP TX path, to possibly fix overruns on decim=4', 'Xilinx ISE is incorrectly parsing the verilog case statement, this is a workaround', 'Makefile and usrp-e-spi edits, add i2c test program.', "Merge branch 'u1e_uhd' of git@ettus.sourcerepo.com:ettus/uhd into u1e_uhd", "Merge branch 'u1e_uhd' of git@ettus.sourcerepo.com:ettus/uhd into u1e_uhd", 'Update usrp1_e.h header file to match kernel driver.', 'Start applying order through Makefile.', 'Start renaming stuff in line with product name USRP Embedded.', 'Reorganized apps dir into utils and examples dir. The files get installed into the pkg data directory.', 'Added example app to receive timed samples. Added useful calls to simple device. Fixed vrt frac time usage (wrong word).', 'pps and vita time debug pins', 'ignore emacs backup files', 'Commit random test code.', "Merge branch 'u1e_uhd' of git@ettus.sourcerepo.com:ettus/uhd into u1e_uhd", 'merged usrp2 stuff from u1e branch (without merging the u1e stuff)', 'massaged some of the dboard calls', 'bit of io work', 'filled in more skeleton code, filled in dboard interface spi and i2c with ioctls, added file descriptor opening, and checking for usrp1 kernel header', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhd into u1e_uhd", 'Added ability to load modules at runtime (specified by environment variable path). Added a demo test module as well.', 'Moved typedefs from props.hpp into new file types.hpp. Created structs to replace range tuples, and clock config struct. Merged clock config props into one property using config struct. Added templated dict construction to use the assign::map_list_of. Added gcc flag to set visibility to hidden and use the api macro.', 'added install path for dll, fixed idiotic msvc error where making a vector with proxies crashes the app, seems to be ok with the sptr fix, in other good news, discover usrps works in my vm for the usrp2', 'compiling under msvc (no idea if it works)', 'created config.hpp to handle export macros, added exports to public api stuff', 'fixed linking and warnings on msvs', 'added usrp1e implementation skeleton, began filling it in...', 'define namespace hack when in c compiling', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhd into u1e_uhd", 'got uhd almost compiling in windowze. figured out special flags. also had to use boost stdint because its missing in visual c++, added a bunch of numeric casts to reduce warnings', 'changes to get tuning working', 'added more help and verbose on recovery app', 'Added recovery app to use raw socket to burn known ip addr. Fixed up fw so the device can reply after new addrs are set.', 'reimplemented dict to preserve order of insertion', 'Added ability to set the subdevices in use for rx and tx dboards. This is used to calculate and set the ddc and duc muxes. Also, minor fix for burning addrs (wrong pointer....)', 'Replaced uses of wax:cast with the templated as method (like in boost program options).', 'Ability to burn mac addr and ip addr to usrp2 (over ip/udp for now). Added firmware support and usrp2 burner host app.', 'Device sub classes can register themselves. Simplifies device.cpp internals. Added static instance macro for lazy instantiation of static variables.', "Merge branch 'u1e_uhd' of git@ettus.sourcerepo.com:ettus/uhd into u1e_uhd", "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhd into u1e_uhd", 'handle getting and setting mac and ip addr from the host', 'Removed freq min and max and gain min, max, and step... replaced it with gain and freq range tuples. This simplifies the api calls and subdev properties.', 'Cleaned up the gain handler (thing that gets and sets wildcard gains) and made use of it in the dboard manager so it intercepts the sets and gets. While doing this, fixed something with nested links in wax obj. Added some useful macros and templates to the utils.', 'Filled in dboard code for basics and lf type boards. The dboard is now just a uint16 (dont bother with the enums). The dboard manager now registers subdevs with a name. The basic board code uses a static block to register itself.', "more debug for fixing E's", "better debug pins for going after cascading E's", 'Added simple device to handle wrapping general properties up into simple api. Added setting time capability to the usrp2 impl. Messing with props and time specs...', 'copy in wrong place', "Merge commit 'upstream/master'", "Merge branch 'u1e_uhd' of ettus.sourcerepo.com:ettus/uhd into u1e_uhd", 'proper flags bits', 'Moved timeouts into the udp transports. Simplified the fast path checking in the fw, but it turns out this was not the issue. Fixed some bad bit operations with the 16sc words (dont forget sign extension). Added some more documentation to the headers....', 'Some tweaks and changes to io impl that fix segfaults. Seems to work now!', 'Split metadata into rx and tx specific metadata. The rx metadata has fragment flags and the tx metatdata has burst flags. Made the io impl for usrp2 rx routine fill in the rx metatdata fragment flag. Added device documentation for send and recv in regards to fragmentation.', 'memcpy size fix, change to some send logic', 'Making use of vrt lib in the usrp2 io_impl. Added a packet size param to the vrt pack and unpack.', 'Added a vrt library to pack and unpack from metadata. Added a vrt test app that packs and unpacks the data.', 'Expanded the UDP api: We can make simple udp transports for discovery and control. We can support a udp zero copy transport (currently just asio). Reworked the io_impl for usrp2 to work with the zero copy api. So far, all of this untested other than compiling. A cut-down vrt library is in the works to simplify the io impl.', 'The net common is too slow in usrp2 firmware to figure out if its vrt data. Added a custom function to tell if a packet is vrt data, seems to be feeding fast enough at this rate... Fixed some buffer size calculation logic.', 'Send the number of samples per datagram over the control. Worked on the io impl for usrp2 (added loop unrolls and 32 bit buffers). Added some vrt rx constants to the fw common used by host and fw. Removed the MTU prop and added a general device prop for num samples.', 'Recv noise with uhd.', 'fix for io types', 'removed empty uhd.hpp and cpp files', 'made app to load usrp1e fpga images, and tested it to be working', 'debug pins', 'enable was on the wrong address pin, needs to be the highest order one', 'invert the pushbuttons since they are active low', 'gpmc debug pins', 'point to the new files', 'fix syntax error which icarus allowed (filed a bug with them)', 'loopback and test', 'corrected logic', 'edge sync on done signals so we only fill/empty one buffer', 'Switched xilinx primitives because they order the bits funny in the other one', 'Created empty usrp1e cpp file for the case when headers are not found. Worked on the device make and discovery to fix certain problems. Added node param to discover usrps for usrp1e, made addr optional.', 'ISE chokes on the pure verilog version so we use the macro', 'First cut at passing data buffers around on GPMC bus', 'use a single addr param for the usrp2', 'added usrp1e fpga loader', 'added usrp1e conditional compilation, and checking of device node (aka file for now)', "Merge branch 'master' into u1e_uhd", 'Cut debug bus connection to etherenet MAC to make closing timing easier', "Merge branch 'master' into u1e", 'proper initialization of the ram', 'first cut at making a bidirectional 2 port ram for the gpmc data interface', 'Commit wip. Programs that fetch OS code sync now.', 'vrt packet count fix', 'Put fast path code (rx setup) back into txrx.c. Store the fast path addrs in the udp data handler.', 'use our fancy new debug ports', 'Added IF data io handing within the usrp2 impl. It packs and unpacks vrt headers/metadata. NOT YET TESTED IN ANY WAY...', 'Remove some warnings in dsp_core_rx', 'Fix missing item on sensitivity list', 'Change bit width of CORDIC constants to remove meaningless warning', 'Manually assign clk_fpga to BUFG to improve timing', 'Work on the io interface for a device (and some implementation work in usrp2). Modified the udp transport to reflect some of these changes. Got the fw compiling again, and it will not set data to true for small payloads (configuration ones).', 'full neame', 'first cut at automatically setting the debug pins', 'Initial checkin of useful shell scripts.', 'Initial checkin of u1e testing code. Some of these may not be really useful anymore.', 'place to put omap tools', 'settings bus with 16 bit wishbone interface, put on the main wishbone in u1e', 'added set nice gpio pins to manager on init and deconstruct', 'remove the #1 delay in all the regs. They just slow down sims.', 'Modified nsgpio.v to support 16 bit little endian bus interface.', 'GPIOs now on the wishbone interface', 'Moved the udp implementation guts into the cpp file', 'Made implementation class for the dboard manager.', 'Made the usrp2 impl into a device. Removed the usrp device wrapper and usrp2 cpp file outside of the usrp2 lib dir. Also removed the mboard base files since we wont be needing them.', 'Moved lib and include contents of dboard and mboard one directory up and prefixed them with dboard_ and mboard_. And yes, the code is compiling.', 'DDC enable with stream at control OTW', 'DUC and DDC control packets OTW', 'added support for the duc (no control yet though)', 'added gpio control to the wishbone', 'Added I2C, UART, debug pins, misc wishbone stuff', 'allow default uart clock divider', 'Fixed paths to help icarus find opencores and xilinx models. Added Xilinx global set and reset module.', 'Added special case for empty dboard slot (none id 0xffff) Added error handling in the dboard base classes for mishandling the none id. Added better to string function for the dboard ids. Added get methods for dboard classes to get their ids.', 'Flattened the usrp2 impl properties guts. Created init methods for various sub-parts. Added the ddc control (still needs update transaction).', 'Added control for usrp2 aux dac and adc control.', 'Added i2c control transactions in fw and host', 'Worked out spi api for the dboard interface. Created usrp2 spi transaction control on host and fw', 'speed up the presentation of registered wb data to the gpmc', 'moved host code into host directory for clean (unambiguous) top level', 'wishbone bridge now with minimal functionality. Need to check timing and handle wait states.', 'Added control code in the txrx.c and dboard interface for usrp2 to handle gpio and atr', 'first cut at gpmc <-> wb bridge, split u1e into core, top, and tb', 'Setting the clock config over control', 'Moved the usrp2 implementation files into a usrp2 dir within mboard. Filled in many of the properties for the mboard (including clock config).', 'copied over from safe_u1e', 'block ram interface to GPMC', 'Restored microblaze build (accidentally removed makefile ams and gitignores when doing cmake for host)', 'Created dboard wrapper in the usrp2 impl', 'Added usrp2 impl for the guts of the usrp2 handling. The top level usrp2 will contain an impl and forward calls to it.', 'added uninstall target', "basic read support for the GPMC, responds with 16'hBEEF", 'CMake does not have convenience libraries like automake. Removed the nested lib CMakeLists.txt in favor of a single top level lib/CMakeLists.txt for building the shared library.', 'Removed Autotools stuff and the git ignore files. Feeding cpack a readme and license file. Added readme contents.', 'Added CMakeLists.txt for the include dir. Setting up the pkg config file through cmake. Added stuff to cmake to add optional flags.', 'Created CMakeLists.txt for a CMake build. Only created the files for building, install part missing.', 'reorg pin defs', 'connect GPMC pins to debug bus', 'Compiling under old fedora8 with boost 1.37. Fixed somethings that caused errors and warnings. Cannot get rid of all warnings on this system.', 'Reading the dboard ids from the usrp2.', 'Made use of templated dict to replace used of map and to get rid of utility call.', 'Added a templated dictionary class because its more useful than map. Made the device addrs into a string:string dict. If its all strings we dont have to change the top level caller for new product. Created shared_iovec class to manage memory for device recvs. Work on the bro/dude control protocol for usrp2.', 'Getting hello packets from the usrp2 with ip and mac addrs. Cleaned up the mb build system a bit.', 'removed unwanted/broken files', 'net_common working in this state with control udp packets', 'removed dboard files', 'Copied a snapshot of the usrp2 firmware into the microblaze firmware directory in the uhd repo. Added erllc copyrights to the files created and modified at erllc.', 'organized the pins in the ucf by function', 'builds a successful led blinker', 'first cut at blinking leds', "skeletons that don't work yet", 'added transport directory and udp transport', 'renamed usrp_uhd to uhd', 'work on link and proxy args', 'ignore emacs cruft', 'copied over from quad radio', 'Made get_link the only way to create nested props. Removed the obj::ptr and sptr typedefs. The dboard manager now must store not the subdevs, but their proxies.', 'comments', 'Work on the properties framwork with wax::obj. Now the obj handles all 3 things in 1, properties, polymorphic container, proxy.', 'Minimal framework in place to handle udp discovery. Added usrp2 stuff, udp wrapper, discovery function. Added app called discover usrps (usrp2 only for now).', 'added gpl license v3', 'added utility convenience tune function (wip)', 'Added dboard id enum. Moved timespec into its own header.', 'Added gain handler class to manage wildcard gain settings. Gets overall gains and sets overall gains when used. Wild card gain will be a gain with an empty string name.', 'Added boost system (needed with asio) and date time (will need for threading/sleeping). Added to dboard interface to get clock rates. Added OTHERS properties and some documentation type notes. Added more TODOs to the utils.', 'Switched from indexed properties to named properties. Added some new properties for getting a list of antenna names, pps sources, ref sources...', 'Various tweaks, switched to boost unit testing.', "Merge commit '8d19387a8642caf74179bdcb7eddf1936f473e53' into udp", 'just debug pin changes', 'typo caused the tx udp chain to be disconnected', 'moved into subdir', "Merge branch 'usrp1' into usrp2", 'Moved usrp2 fpga files into usrp2 subdir.', 'Moved usrp1 fpga files into usrp1 subdir.', 'Added more to the mboard test and the usrp device.', 'Added a usrp device abstration that creates usrp mboards. Added a usrp mboard named test, its empty for now.', "speed up timing by ignoring the too_early error. We'll need to FIXME this later", 'Added set time and set time at next pps. Removed the old sync pps commands, they dont make sense to use anymore.', 'moved around regs, added a bit to allow for alternate PPS source', 'remove time_sync and master_timer.', 'allow setting time immediately in cases where there is no external pps input', 'allow processor to read back vrt time over readback mux', 'proper time sync to pps', 'should fix the endless packet bug', 'Created device interface for discovery, access, configuration...', 'Integrated cppunit into the build system. Added new test for the usrp dboard stuff.', 'Dboard base class that is no longer also the xcvr. The xcvr base inherits from this (as does rx and tx base).', 'yet another typo', 'yet more debug lines', 'typo', 'add debug pins to find the problem with lost eof in the udp core', 'Switched dboard ctor arguments with a tuple. Sub-classes only need to pass the single argument, makes implementation cleaner.', 'try a width that works...', 'try proper reset', 'forgot to declare wire', 'debug state', 'empty file, it is actually located in the control directory', 'make it match the 36 bit wide version', 'Added strict compiler flags. Made changes to meet compilation. Added test to verify ip and mac addr code.', 'Added the basic rx and tx skeleton wrapper. Made autotools mods so it passes distcheck.', 'Added base classes for the usrp dboards to inherit. Added a manager class for the subdevs that will create devices, and give out proxies to handle them.', 'added interface for usrp dboards to communicate to mboards', 'Reorganized structure into include, lib, test, firmware, fpga. The fpga and firmware are empty placeholders for now.', 'Created subcomponent for usrp dboards. Only populated the interface though.', 'removed test file', "Merge branch 'master' of git@ettus.sourcerepo.com:ettus/uhd", 'Added stuff for usrp addresses, wax framework, build structure.', 'empty commit', 'skeleton autotools system for uhd', 'better debug pins', 'more typo fixes.', 'typo fix', "actually connect the ports -- why this isn't flagged as an error I'll never know", 'place udp core in the memory space', "Merge branch 'wip/usrp2' of http://gnuradio.org/git/matt into wip/usrp2", "Merge branch 'udp' of http://gnuradio.org/git/matt into wip/usrp2", 'proper time sync to pps', 'never should have checked in this generated binary file', 'barebones udp support. Compiles, but untested.', '19-bit fifo handling for receive side of eth/udp system', '19 bit wide interface in prep for connection to UDP/IP state machines.', 'cleaned up the main ibs state machine', 'dsp_core_tx now has setting reg base settable from u2_core. underrun bug in vrt fixed', 'changed debug pins to see incoming data', 'reorder the memory map', 'put new setting reg into the address space in the right place', 'only pull from input fifo when really consuming or pushing into the next fifo', 'Add ability to clear state out when there is an underrun', 'fixed typo in u2_core.v resulting in unconnected net. added debug pins', 'ignore save files', 'First cut at vita tx, whole thing compiles', "flag packets which arrive way too early so the device doesn't sit there forever.", 'very basic packet sending works', 'seems to correctly deframe packets. now need to consume them.', 'progress on vita_tx. it compiles now, need to work on vita_tx_control.', 'make the testbench work in this environment, without the crossclock settings bus', 'be a little more PC about it', 'mostly just copied over from the rx side. Still needs a lot of work.', 'forgot to declare wires', 'moved regs around for vita49', 'vita rx instead of rx_control. Ready for firmware testing. Misses timing by a little bit, will worry later.', 'put 64 bit timer for vita49 on the settings bus', 'VITA49 rx (and tx skeleton) copied over from quad radio', 'This branch is for porting from the quad radio, and minor text cleanups', 'earliest beta files renamed to avoid confusion', "Properly reset the fifos. We didn't connect before.", "Merge branch 'new_eth' of http://gnuradio.org/git/matt into master", 'Fix warnings, mostly from implicitly defined wires or unspecified widths', 'fullchip sim now compiles again, after moving eth and models over to new simple_gemac', 'remove unused opencores', "Merge branch 'new_wb_intercon' into new_eth", "no idea where this came from, it shouldn't be here", 'Copied wb_1master back from quad radio', 'Enable pps interrupts. Not sure why they were disabled in the first place.', "Merge commit 'origin' into new_eth", 'Synchronize the internal phase of the halfband filters to the start of the "run" signal. This is important for MIMO. Bug reported by Christoph Hein and Hanwen .', "Merge branch 'serdes_newfifo' into new_eth", 'Remove old mac. Good riddance.', 'remove unused port', 'More xilinx fifos, more clean up of our fifos', 'might as well use a cascade fifo to help timing and give a little more capacity', 'fix a typo which caused tx glitches', 'Untested fixes for getting serdes onto the new fifo system. Compiles, at least', 'Implement Eth flow control using pause frames', 'parameterized fifo sizes, some reformatting', 'remove unused old style fifo', 'allow control of whether or not to honor flow control, adds some debug lines', 'debug the rx side', 'no longer used, replaced by newfifo version', 'seems to build a decent fpga, but still some issues with a full connection.', 'MAC transmit seems to work now. The root cause of the problem was accidentally using the rx_clk in one stage of the fifos on the tx side.', "set device to xc3s2000. Shouldn't make any differences.", 'misc ignores', 'made a new block ram based fifo, 64 (65) elements long, all fifos now have "enhanced level logic" for accurate fullness. Maybe this will help...', 'bring the testbench files up to date', 'major cleanup of 2 clock fifos', 'cleaning up the new fifos', "cascadefifo.v wasn't used, only the double cascade version. fifo_2clock.v and fifo_2clock.v are empty", 'never used, not needed', 'debug pins, cleaned ignores', 'sort out active-low lines on locallink fifos, added debug pins', 'Removed these files completely, they were for the old style of fifos', 'fixed addressing of registers, and added write enables to those that were missing. MDIO seems ok.', 'Merged SVN matt/new_eth r10782:11633 into new_eth', 'Added git ignore files auto created from svn:ignore properties.', 'Added git ignore files auto created from svn:ignore properties.', 'Add custom FPGA build.', 'Revert erroneous file included in r11424', 'Reorganization of debian package directory', 'Built and checked in new rbfs that fix ticket:248 and ticket:290. The rbfs are built from r11012 and were compiled using Quartus II Version 7.1 build 178 06/25/2007 SP 1 SJ Web Edition.', 'Fix swapped signals.', 'Merged r10770:10887 from jcorgan/iad2 into trunk. Adds alternative USRP2 FPGA build to use integrate-and-dump decimator instead of CIC/HB combination. This provides a much shorter time duration impulse response for the same decimation rate, at the expense of worse stop-band rejection.', 'mostly formatting and name changes. commented out special purpose pins.', 'from u2p2, autogenerated', 'now handles odd length packets', 'basic wrapper working', 'Merged r10712:10765 from jcorgan/gpio into trunk. Adds out-of-band and streaming GPIO functions for USRP2.', 'first cut at a wishbone interface and wrapping the core', 'copied over from other eth core', 'reset synchronizer', 'made pause enabling a pin so we can set it', 'Properly signals an error and drops the remainder of the packet if there is an overrun. ERROR_2 changed to ERROR2.', 'more thorough tests, including overrun, underrun, crc err, etc.', 'simulate a hiccup in the filling of the fifo. If long enough, will cause a tx underrun.', "debug ports for fifo level testing. Normally I wouldn't check this in, but adding these ports actually improves timing. XST strikes again...", 'Fix for fifo overruns on eth rx in full duplex. Now send re-pause long before pause is done. Reenabled RMON for the time being', 'test multiple error types', 'added a state to ensure the error signal propagates, and now we assert src_rdy if we have an error to propagate', 'only write one error into fifo', 'generate error signal', 'added error output line, alternative to simultaneous sof/eof', 'logic to interface locallink fifos to our mac', 'add fifos to interface to the macs', "rx seems to work. haven't test error frames", 'address filtering', 'only report result for 1 cycle', 'variable length delay line, based on srl16', 'now checks the crc as well for the received side', 'checkpoint', 'we now inhibit our own sending when a received pause frame comes. _rx.v is currently only a skeleton for testing pause', 'sample packet', 'cleaned up a little', 'tx should be fully working now', 'everything but CRC', 'nearly there', 'work in progress on a simpler gigabit-only mac', 'copied over from other project', 'new fifos copied over from other project', 'optional (but not used) additional buffering in eth rx path.', "comment out the RMON, which we don't use", 'copied over old one which works with icarus', 'Merged r10504:10528 from michaelld/fix_local_data_install into trunk. Trunk passes distcheck.', "timing fix. The line address in the buffers still updates now even if there is an error. Doesn't matter, since the error means the buffer is useless anyway. This makes meeting timing much easier since the address update does not depend on the error signal which comes late.", 'timing fix, delays the ethernet flow control by a cycle to get it across the chip. Seems ok in testing.', 'remove support for unmodified dbsrx because there is way too much phase noise. only modified dbsrx are supported', 'set all debug stuff to zero', 'support for unmodified dbsrx boards', 'Merged r10418:10423 from jcorgan/pps into trunk. Adds usrp2::sync_every_pps', 'work in progress', 'work in progress', 'work in progress', 'first cut at 64 bit time', 'trial fix for problem when 3 loads with 1 wait state are followed by a barrel shift or multiply. Shawn will let us know if this works.', "catching up with shawn. these aren't used here anyway.", 'detect loss of signal', 'corrected link up detector', 'new cordic', 'widen cordic on tx side', 'clarify comment', "24 bit wide z. Can't do this parameterized, unfortunately.", 'pps sync works, meets timing', 'synchronized pps, lots of debug pins changed, works, meets timing', 'reset the phase when we shut down. Aids in sync', 'implemented "reset master clock on next PPS" so we can easily sync multiple units without MIMO connections', 'speed up the diagnostic signals, they were causing timing problems', 'hardware control of leds', 'u2_rev2 now works again', 'make rev2 compile again', 'added in mux for DACs', 'Added firmware support for adc_mux to handle swapping I/Q, etc. Modified dsp_core_rx.v to swap A and B mapping so that the software thinks that the TVRX is connected to A/D A.', 'New serdes status interrupt, clk_status interrupt. New capability to flush the ICache.', 'moved to appropriate places', 'added the basic wb<-->extram interface and a serdes interrupt to tell link status', 'catch up with latest pin defs of u2_core', 'attach a 16 bit device to the bus and make it look like a 32 bit device', 'wb_zbt16_b is a quick hack just to be able to safely check the sram. it is not speed-optimized', 'new directory for files', 'zbt ram controller', 'first cut', 'better debug pins', 'allow fpga to take over sd card interface from cpld', 'allow fpga to take over SD card interface', 'control CS line on SD card', 'Merged r9505:9553 from old usrp2/trunk into trunk/usrp2', "Merged r9433:9527 from features/gr-usrp2 into trunk. Adds usrp2 and gr-usrp2 top-level components. Trunk passes distcheck with mb-gcc installed, but currently not without them. The key issue is that when mb-gcc is not installed, the build system skips over the usrp2/firmware directory, and the firmware include files don't get put into the dist tarball. But we can't do the usual DIST_SUBDIRS method as the firmware is a subpackage.", 'Allows for changing the interpolation rate dynamically. Stop the pipeline, set the rate, restart the pipeline. Fixes bug #248.', 'Merged features/inband-usb -r6431:8293 into trunk.', 'Restores 8-bit sample format support to FPGA code. Synthesized with 7.1SP1.', 'Regenerated USRP Makefile.extra', 'Merged r6766:6775 from jcorgan/t195. Fixes ticket:195. NOTE: this removes 8 bit sample width support on receive. Synthesized with 7.1SP1.', 'Merged r6749:6763 from jcorgan/t179. Fixes ticket:179. New RBFs synthesized with 7.1SP1.', 'tool version changed', 'New rbfs built from r6602 using Quartus II Web Edition version 7.1 SP1', 'Merged r6329:6428 of features/inband-usb + distcheck fixes into trunk.', 'Merged features/inband-usb r5224:6306 into trunk. This is work-in-progress on inband signaling for the USRP1.', 'Updated license from GPL version 2 or later to GPL version 3 or later.', 'Merged r5732:5941 from jcorgan/sar into trunk. Adds start of gr-radar-mono component. Trunk passes distcheck.', 'merge ordm/receiver branch -r5574:5659. Reworks OFDM receiver with refactored OFDM blocks. A few bug fixes for other blocks have also been slipped in.', 'not used', 'Merged r5203:5204 from developer branch jcorgan/atr. Fixed ATR delay enable and reduced delay width to 12 bits.', 'Merged features/inband -r4812:5218 into trunk. This group of changes includes:', 'Adds capability to independently delay the Auto T/R switching signal by a configurable number of clock ticks, to allow users to precisely align their T/R output with the pipeline delays in the transmitter.', 'New FPGA binaries (.rbfs). These include fixes for the scaling in the CIC decimator so that signals are now roughly leveled, independent of the decimation rate. Decimating by 44 now works too ;)', 'registered to meet timing', 'copied usrp_inband_usb from -r4809 features/inband-usb into trunk', 'proper shifting for the cic decim now keeps signals roughly leveled', "if you ever tried to interpolate by 44 it didn't work. now it does.", 'removed a parameter', 'allow for varying the bitwidth', 'added comment', 'added comments, removed dead code', 'Refactored FPGA *.vh files. Moved common pieces to toplevel/include.', 'Add new standard configuration for 1 RX w/ half-band, 1 TX', 'updated qsf file to Quartus 6.1. No semantic changes', 'fixed comment', 'fixed comment', 'Applied patch from Brett Trotter that stuffs zeros into the head of the tx signal processing pipeline when the Tx FIFO is empty.', 'removed unused/out-of-date bus_interface.v', 'latest version of quartus', 'optimized halfband coefficients, courtesy of Larry Doolittle', 'Partial fix for ticket:81', 'New rbfs. These were compiled using Quartus 6.0 sp1 and include the post-ADC / pre-DDC digital rssi measurement code.', 'Updated FSF address in all files. Fixes ticket:51', 'Houston, we have a trunk.', 'some typo fixes and suggested revisions', 'fix(package): update @types/node to version 8.0.15 (#680)', 'fix(package): update brolog to version 1.1.30 (#679)', 'chore(package): update eslint to version 4.3.0 (#678)', 'fix(package): update brolog to version 1.1.29 (#677)', '0.8.133', 'enhance(docker): add curl package', 'chore(package): update typescript to version 2.4.2 (#672)', 'chore(package): update ts-node to version 3.2.1 (#676)', 'chore(package): update @types/sinon to version 2.3.3 (#670)', 'fix(package): update brolog to version 1.1.28 (#669)', 'fix(package): update @types/node to version 8.0.14 (#666)', 'chore(package): update @types/request to version 2.0.0 (#667)', 'fix(package): update brolog to version 1.1.27 (#662)', '0.8.132', 'fix(request): typing file bug, restore old version', 'merge', 'chore(package): add phantomjs dependence', 'chore(package): update sinon to version 2.3.8 (#657)', 'fix(package): update @types/node to version 8.0.13 (#660)', 'chore(package): update @types/request to version 0.0.47 (#661)', 'fix(package): update @types/node to version 8.0.12 (#659)', 'chore(package): update ava to version 0.21.0 (#658)', "Merge branch 'master' of github.com:Chatie/wechaty", 'fix(log): not show log string for winston', 'chore(package): update @types/raven to version 1.2.4 (#654)', 'fix(package): update @types/node to version 8.0.11 (#653)', 'chore(package): update @types/request to version 0.0.46 (#655)', 'room-join cannot detect inviteeList when people join in the room with qrcode (#651)', '0.8.131', 'update package-lock', '0.8.130', 'add loggable for brolog', 'update(package-lock)', 'fix(package): update brolog to version 1.1.24 (#652)', 'chore(package): update @types/ws to version 3.0.2 (#648)', 'chore(package): update apiai to version 4.0.3 (#649)', 'fix(package): update @types/node to version 8.0.10 (#647)', 'chore(package): update sinon to version 2.3.7 (#646)', 'Create CODE_OF_CONDUCT.md (#644)', 'fix(package): update brolog to version 1.1.23 (#643)', 'fix(package): update brolog to version 1.1.21 (#642)', 'chore(package): update eslint to version 4.2.0 (#641)', 'update(doc): add TODOs (#640)', 'chore(package): update @types/raven to version 1.2.3 (#639)', 'fix(package): update @types/node to version 8.0.9 (#638)', 'chore(package): update @types/ws to version 3.0.1 (#635)', 'fix(package): update @types/node to version 8.0.8 (#634)', 'chore(package): update ts-node to version 3.2.0 (#631)', 'chore(package): update yarn to version 0.27.5 (#629)', 'fix #623 (#627)', '0.8.129', 'fix(name): short name to satisfy HeroKu app.json Schema (#628)', '0.8.128', "Merge branch 'master' of github.com:chatie/wechaty", '0.8.127', 'update(doc): looking forward to a better documentation', 'fix(package): update @types/node to version 8.0.7 (#626)', 'fix(package): update @types/node to version 8.0.6 (#625)', '0.8.126', 'layout(template)', '0.8.125', 'chore(README): add TypeScript link', '0.8.124', 'fix(test): skip phantomjs test', '0.8.123', 'fix(test): await http request', '0.8.122', "Merge branch 'master' of github.com:chatie/wechaty", 'throw(exception): loadCookie() should throw if there has any exception', '0.8.121', 'fix(test): await http request', 'chore(package): update sinon to version 2.3.6 (#624)', '0.8.120', 'skip(mentioned): for temporary until all `setTimeout` have been fixed @lijiarui (#623)', 'fix(stream): use await to confirm promise resolved before end of test', 'fix(throws): use await to confirm promise resolved before end of test', '0.8.119', 'fix(tslint): lock tslint to 5.3.2', '0.8.118', 'fix(tslint): lock tslint to 5.3.2', '0.8.117', 'fix(typescript): new typing check rules, fix CI', 'chore(package-lock)', 'fix(overload): typescript lint (#622)', 'chore(package): update @types/request to version 0.0.45 (#615)', 'chore(package): update typescript to version 2.4.1 (#614)', 'add log detail tag (#619)', 'chore(package): update ava to version 0.20.0 (#620)', 'fix(package): update @types/node to version 8.0.4 (#613)', 'chore(package): update @types/sinon to version 2.3.2 (#610)', 'chore(package): update nyc to version 11.0.3 (#607)', 'Create CODE_OF_CONDUCT.md (#608)', 'fix(package): update @types/node to version 8.0.3 (#606)', 'reset the unrelated changes (#605)', 'change outdated qrcode (#604)', 'chore(package): update eslint to version 4.1.1 (#602)', '0.8.116', "Merge branch 'master' of github.com:chatie/wechaty", '0.8.115', 'fix(@types/express): req.headers[origin] as string', 'chore(package): update eslint to version 4.1.0 (#600)', '0.8.114', 'plainText(nick): to process emoji right? (#588)', '0.8.113', 'fix(npm version patch): add package-lock back because its required by hardcode from npm', 'disable(package-lock): it seems not so useful but generate more problems', 'fix(types): change `Function` to `(args: any) => any`', 'fix(package): update @types/node to version 8.0.2 (#599)', 'chore(package): update @types/body-parser to version 1.16.4 (#598)', 'chore(package): update ts-node to version 3.1.0 (#595)', 'chore(package): update @types/mime to version 1.3.1 (#591)', 'fix(package): update @types/node to version 8.0.1 (#592)', 'fix(package): update raven to version 2.1.0 (#593)', 'chore(package): update sinon to version 2.3.5 (#590)', 'fix(package): update @types/node to version 7.0.32 (#589)', 'chore(package): update eslint-plugin-ava to version 4.2.1 (#586)', '0.8.110', 'fix(typescript): add dependencies for @types. https://github.com/Chatie/wechaty/issues/136#issuecomment-308929478 (#136)', '0.8.109', "Merge branch 'master' of github.com:chatie/wechaty", '0.8.108', 'add(source): add TypeScript source to npm package for source map', 'chore(package): update @types/express to version 4.0.36 (#583)', 'chore(package): update @types/mime to version 1.3.0 (#584)', 'chore(package): update @types/request to version 0.0.44 (#585)', 'chore(package): remove unused dependiences: is-ci / is-docker', '0.8.107', 'fix(process.env): should use `[` instead of `(`! (#582)', '0.8.106', 'clean(code): rename `Config` to `config`, change `wechaty.version()` to static compitibal', 'clean(code): identify Docker environment by ENV variable. (#84)', '0.8.105', 'fix #581', '0.8.104', 'fix(test): use stable domain to test cookie.(#579)', 'update(hostname): get current domain from webdriver to make hostname always right.(#418)', 'update(changelog)', '0.8.103', "Merge branch 'master' of github.com:chatie/wechaty", '0.8.102', 'add(sentry.io): catch exception for analysize. (#580)', 'add notice to readme (#578)', '0.8.101', 'add(readme): explain all the usage of examples', '0.8.100', 'clean(code): add await and move comments', '0.8.99', 'fix(style): style code', '0.8.98', 'update(license): for example/**/*.ts', 'update(license): for **/*.ts', 'update(license): for src/**/*.ts', 'update(license): for test/**/*.ts', 'update(license): for bin/*.ts', 'add(tool): update license for all source files', '0.8.97', 'fix(docker): back to node v7 from v8 due to buggy npm (#577)', '0.8.96', 'fix(package-lock): strange behavior', 'upgrade(docker): use node v8 by default', '0.8.95', 'fix(tslint): keep to use v5.3.x instead of 5.4.3 because its still buggy. see: https://github.com/palantir/tslint/issues/2855', 'merge', "Merge branch 'master' of github.com:chatie/wechaty", 'upgrade(appveyor): test under node v8', 'fix(travis): test under node v8', 'fix(types): new ws typing fix', 'fix(package): lock npm version', 'chore(package): update sinon to version 2.3.3 (#576)', 'fix(package): update chromedriver to version 2.29.2 (#575)', 'chore(package): update cross-env to version 5.0.1 (#573)', 'fix(package): update chromedriver to version 2.29.1 (#572)', 'chore(package): update @types/node to version 7.0.29 (#571)', 'chore(package): update ts-node to version 3.0.6 (#570)', 'chore(package): update @types/node to version 7.0.28 (#569)', 'chore(package): update ts-node to version 3.0.5 (#567)', 'chore(package): update tslint to version 5.4.3 (#568)', 'chore(package): update @types/sinon to version 2.3.1 (#565)', '0.8.94', 'merge', '0.8.86', 'clean(code)', '0.8.93', "Merge branch 'master' of github.com:Chatie/wechaty", 'fix(user): replace user() by self() for its deprecated', 'chore(package): update nyc to version 11.0.2 (#563)', 'chore(package): update @types/sinon to version 2.3.0 (#562)', '0.8.92', "Merge branch 'master' of github.com:Chatie/wechaty", 'update(package)', 'chore(package): update @types/node to version 7.0.26 (#560)', 'update(package)', "Merge branch 'master' of github.com:Chatie/wechaty", 'doc(todo): use better git command', 'chore(package): update @types/ws to version 3.0.0 (#559)', 'chore(package): update @types/node to version 7.0.25 (#558)', 'chore(package): update @types/ws to version 0.0.42 (#557)', 'chore(package): update @types/node to version 7.0.24 (#556)', 'chore(package): update @types/fluent-ffmpeg to version 2.1.1 (#554)', 'chore(package): update @types/node to version 7.0.23 (#551)', '0.8.91', 'chore(package): remove codelyzer dependencies', '0.8.90', 'fix(driver): do not await quit', '0.8.89', 'add(lock): lock npm version', 'chore(package)', 'ignore(npm): no lock file form npm v5 now', '0.8.86', 'clean(log): more verbose log', '0.8.85', "Merge branch 'master' of github.com:Chatie/wechaty", 'chore(package): update typescript to version 2.3.4 (#550)', '0.8.84', 'fix(typo): smoking test -> smoke testing', '0.8.83', 'fix(test): manage timeout better, call driver.quit() if driver fail', 'fix(test): manage timeout better, call driver.quit() if driver fail', 'fix(docker): name', 'fix(test): serial for prevent race condition', 'clean(BrowserDriver): clearTimeout', 'fix(doc): style email', 'chore(code): clean', '0.8.82', "Merge branch 'master' of github.com:wechaty/wechaty", '0.8.81', 'chore(clean): message clean', '0.8.81', 'merge', '0.8.72', 'chore(doc): add voice from user', '0.8.80', 'fix(spec): use high port instead of 8000', '0.8.79', 'clean(test): move smoke testing to fixture', '0.8.78', "Merge branch 'master' of github.com:wechaty/wechaty", '0.8.77', 'fix(example): add brackets', 'chore(package): update tslint to version 5.3.2 (#542)', '0.8.76', 'doc(import): notice how to import Wechaty (#544)', '0.8.75', 'fix(webdriver): set timeout from 10s to 60s (#406)', '0.8.74', "Merge branch 'master' of github.com:wechaty/wechaty", '0.8.73', 'update(changelog)', 'Change license', '0.8.72', 'fix(lint): disable tslint align-arguments', 'chore(package): update yarn to version 0.24.5 (#541)', 'chore(package): update sinon to version 2.3.1 (#539)', '0.8.71', 'clean(code): format', '0.8.70', 'fix(lint): tslint force aligned', '0.8.69', "Merge branch 'master' of github.com:wechaty/wechaty", '0.8.68', 'clean(code): clean warnings', 'chore(package): update @types/node to version 7.0.22 (#534)', 'clean(config): hide package in vscode tree view', 'fix(appveyor): limit concurrency to 5, to prevent reach the resource limit in appveyor?', 'chore(package): update typescript to version 2.3.3 (#536)', 'chore(package): update tslint to version 5.3.0 (#535)', '0.8.67', 'fix(package): move request module from devDependience to Dependience', '0.8.66', 'add(test): make sure npm pack is right for publish (#522)', "Merge branch 'master' of github.com:wechaty/wechaty", '0.8.65', 'chore(package): update sinon to version 2.3.0 (#533)', 'fix(test): clearTimeout for prevent race condition(?)', 'clean(code): remove redundancy code from issue #70', 'clean(code): keep unhandledRejection only in config.ts', '0.8.64', 'chore(doc): move todo to wiki', '0.8.63', 'clean(webdriver): clean code & test', '0.8.62', 'fix(webdriver): add getWebDriver() for return WebDriver instance for testing', 'clean(files): remove brolog-env.ts, move log to config.ts', 'chore(package): update @types/node to version 7.0.19 (#527)', 'fix #512 (#531)', '0.8.61', 'fix(open): add finally block', '0.8.60', 'chore(test): do not test phantomjs now', '0.8.59', 'fix(jq): windows compible argument quota', '0.8.58', "Merge branch 'master' of github.com:wechaty/wechaty", '0.8.57', 'fix(jq): install jq in CI test & Dockerfile', 'fix(package): update body-parser to version 1.17.2 (#521)', '0.8.56', 'fix(npm): publish dist files right by a dirty fix. (fix #522)', 'add(author)', '0.8.55', 'merge', '0.8.36', 'chore(clean): code & doc', 'fix(package): update ws to version 3.0.0 (#519)', '0.8.54', 'chore(readme): move issue badge down to contributing', 'chore(readme): move issue badge down to contributing', '0.8.53', 'fix(package): increase test timeout from 3m to 5m', '0.8.52', 'fix(example): keep the order of `say` by add `await`', "Merge branch 'master' of github.com:wechaty/wechaty", 'chore(readme): doc clean', 'make dingdong reply more beautiful (#515)', 'fix(package): update @types/selenium-webdriver to version 3.0.4 (#516)', 'chore(package): update @types/sinon to version 2.2.2 (#517)', '0.8.51', 'clean(package): remove unused files', '0.8.50', 'chore(name): code clean', '0.8.49', 'chore(browser): code clean', '0.8.48', 'chore(doc): re-structure', '0.8.47', 'chore(doc): re-structure', '0.8.46', 'chore(doc): re-structure', '0.8.45', 'chore(doc): re-structure', '0.8.44', 'chore(doc): re-structure', '0.8.43', 'fix(tslint): clean before linting for output file write to dist/', 'add(project): project using wechaty', '0.8.42', 'fix(ci): close timeout browser for cleaning (#175)', 'chore(doc)', '0.8.41', 'fix(nick): rename to alias', '0.8.40', 'fix(ci): increase timeout from 15 to 60 seconds (#175)', '0.8.39', 'fix(package): down grade socket.io to 1.4.9', '0.8.38', 'fix(ci): Exited because no new tests completed within the last 180000ms of inactivity (#175)', '0.8.37', 'fix(msg): show a better message when method not work as expected', '0.8.36', 'merge', '0.8.31', 'fix(vulnerabilities) ms', '0.8.35', 'fix(say): add return boolean to identify success/failure', '0.8.34', 'enhance(docker): es6 support by babel-node when NODE_ENV is not production (#507)', '0.8.33', 'fix(contact): return false instead of throw when contact is not friend (#509)', '0.8.32', "Merge branch 'master' of github.com:wechaty/wechaty", '0.8.31', 'fix(contact): return false instead of throw when contact is not friend (#509)', 'fix(package): update brolog to version 1.1.18 (#510)', 'chore(package): update yarn to version 0.24.4 (#508)', '0.8.30', 'fix(travis): test node v7 only', '0.8.29', 'log(message): win32 ci fail becasue race condition of Puppet.contactGetter() (close #445)', '0.8.28', 'log(message): try to find out why win32 can not get to() (#445)', '0.8.27', 'code clean', 'log(message): try to find out why win32 can not get to() (#445)', '0.8.26', 'log(message): try to find out why win32 can not get to() (#445)', 'fix(dry): MsgType enum can revert name by itself(thanks typescript!)', '0.8.25', 'log(message): try to find out why win32 can not get to() (#445)', '0.8.24', 'log(message): try to find out why win32 can not get to() (#445)', '0.8.23', "Merge branch 'master' of github.com:wechaty/wechaty", '0.8.22', 'log(message): try to find out why win32 can not get to() (#445)', 'log(message): try to find out why win32 can not get to() (#445)', 'chore(package): update cross-env to version 5.0.0 (#506)', '0.8.21', 'fix(doc): rename domain name to chatie.io', '0.8.20', 'fix(user): provent null exception', "Merge branch 'master' of github.com:wechaty/wechaty", 'fix(template): make more clear for how to enable debug log output', '0.8.19', 'fix(io): use contact.obj to emit login event', '0.8.18', 'merge', '0.8.9', 'fix(name): rename wechaty to chatie', '0.8.17', 'chore(rename) from wechaty to chatie', '0.8.16', "Merge branch 'master' of github.com:wechaty/wechaty", 'fix(package): update socket.io to version 1.7.4 (#498)', "Merge branch 'master' of github.com:wechaty/wechaty", '0.8.15', 'fix(package): fix version of brolog', 'fix(package): update state-switch to version 0.1.13 (#497)', 'fix(tslint) enable type-checking', '0.8.14', 'fix(brolog) interface changed', '0.8.13', "Merge branch 'master' of github.com:wechaty/wechaty", 'chore(package)', 'chore(package): update @types/node to version 7.0.18 (#496)', 'fix(package): update brolog to version 1.1.15 (#495)', 'fix(package): update brolog to version 1.1.2 (#493)', 'chore(package): update nyc to version 10.3.2 (#491)', '0.8.12', "Merge branch 'master' of github.com:wechaty/wechaty", '0.8.11', 'fix(ts-node) add back to dev dependence (#492)', 'add contributor lockon (#490)', '0.8.10', 'update(vscode) add exclude directorys in setting (#489)', 'chore(package): update @types/request to version 0.0.43 (#487)', '0.8.9', 'merge', 'chore(package): update @types/fluent-ffmpeg to version 2.1.0 (#488)', 'chore(package): update @types/node to version 7.0.17 (#485)', '0.8.7', 'fix(ci) only send email on stats change', 'chore(package): update @types/sinon to version 2.2.1 (#483)', 'chore(package): update @types/ws to version 0.0.41 (#484)', '0.8.8', '0.8.7', "Merge branch 'master' of github.com:wechaty/wechaty", 'fix(package) rename wechaty to chatie for API', 'chore(package): update @types/sinon to version 2.2.0 (#479)', 'chore(package): update @types/node to version 7.0.16 (#480)', 'chore(package): update tslint to version 5.2.0 (#481)', 'chore(package): update ts-node to version 3.0.3 (#482)', '0.8.6', 'fix(contact) better warn message if weixin() can not get id from a contact', 'fix(room): better warn message for memberList() and call refresh() if needed (#477)', '0.8.5', "Merge branch 'master' of github.com:wechaty/wechaty", '0.8.4', 'chore(doc) add comment from Uri Lee', 'fix(package): update state-switch to version 0.1.11 (#475)', '0.8.3', 'update(changelog) summary for v0.8', '0.8.2', "Merge branch 'master' of github.com:wechaty/wechaty", '0.8.1', '0.8.0', 'change(license) from ISC to Apache-2.0 (#474)', 'fix(package): update state-switch to version 0.1.10 (#473)', 'chore(package): update yarn to version 0.23.4 (#472)', '0.7.95', "Merge branch 'master' of github.com:wechaty/wechaty", '0.7.94', 'fix(hook) disable git rebase before push', 'fix(package): update state-switch to version 0.1.8 (#471)', 'Lazy to create a stream (#470)', '0.7.93', 'merge', 'chore(package): update state-switch to version 0.1.7 (#469)', '0.7.92', 'replace StateMonitor by StateSwitch (#466)', '0.7.91', '0.7.90', 'fix(filename) do not add debug information to filename (#465)', 'chore(package): update sinon to version 2.2.0 (#464)', 'chore(package): update bl to version 1.2.1 (#462)', 'chore(package): update @types/node to version 7.0.15 (#461)', 'chore(package): update check-node-version to version 2.1.0 (#458)', '0.7.89', '0.7.88', 'fix(timeout) QRCode will be updated in 2 mins. we refresh browser after 4 mins in case of lost control. (#434)', 'fix(package): update brolog to version 1.0.15 (#457)', 'fix(package): update brolog to version 1.0.14 (#456)', '0.7.87', 'update(api) set api host to api.chatie.io', 'fix(package): update brolog to version 1.0.13 (#455)', 'fix(package): update brolog to version 1.0.7 (#454)', '0.7.86', 'fix(brolog) use lowercase', '0.7.85', 'fix(brolog) use lowercase', 'fix(brolog) follow Brolog v1.0', 'update npm', 'code clean', 'code clean', 'fix(package): update brolog to version 1.0.6 (#453)', 'chore(package): update yarn to version 0.23.3 (#452)', 'chore(package): update nyc to version 10.3.0 (#450)', '0.7.84', 'code clean', '0.7.83', 'strict(lint): new tslint runes and fixes', 'chore(package): update fluent-ffmpeg to version 2.1.2 (#449)', 'chore(package): update typescript to version 2.3.2 (#448)', 'rename wechaty to chatie', 'chore(package): update @types/ws to version 0.0.40 (#447)', '0.7.82', 'clean(doc) remove ready() because it always already ready', '0.7.81', '0.7.80', 'move image reply to ding and add invitation message', 'move image reply to ding and add invitation message', 'chore(package): update typescript to version 2.3.1 (#443)', 'add room.say() magic code when try to mention someone (#440)', 'chore(package): update coveralls to version 2.13.1 (#444)', 'chore(package): update @types/node to version 7.0.14 (#441)', '0.7.79', 'try to fix \xc3\x97 src \xc2\xbb message \xc2\xbb ready() contact ready for ToUserName', 'add starter repository', 'Add mention (#362 #287)', 'support brand checking of contact (#404)', 'Fix chrome driver path problem in Windows (#416)', '#3 support send gif (#438)', '0.7.78', 'fix(docker) create WORKDIR /app for some version of docker build', '0.7.77', 'fix(docker) entrypoint show nodejs version with additional `v`', '0.7.76', 'fix(docker) clean after onbuild', 'fix(docker): add typescript to the new app directory /app', '0.7.75', '0.7.74', 'fix(docker): it seems we can not reuse the VOLUME as workdir? (#147)', 'fix(name) Huan', 'fix(name) do not use the official docker image name in dev/test env', 'chore(package): update @types/sinon to version 2.1.3 (#435)', 'chore(package): update fluent-ffmpeg to version 2.1.1 (#433)', '0.7.73', 'enhance(docker): add NODE_ENV to onbuild image (#147)', '0.7.72', 'enhance(docker): add onbuild support to docker image (#147)', '0.7.71', 'fix(changelog): rename Wechaty to Chatie, and update', '0.7.70', '0.7.69', 'add deprecated notice for /doc', 'fix(package): update selenium-webdriver to version 3.4.0 (#429)', 'chore(package): update babel-eslint to version 7.2.3 (#430)', 'fix(package): update @types/selenium-webdriver to version 3.0.3 (#428)', '0.7.68', '0.7.67', 'add network information to issue', 'fix(package): update ws to version 2.3.1 (#426)', 'fix(package): update ws to version 2.3.0 (#425)', 'Limit video file size (#421)', '0.7.66', '0.7.65', 'merge', 'add room.say(MediaMessage) (#420)', 'update(module): add default export', '0.7.64', 'fix(tslint): get rid of warnings', '0.7.63', 'fix(tslint): noLib will cause error, disable it', 'rename(chatie): code clean', 'chore(config): skip lib check for typescript', 'fix(docker): fix version display bug', 'fix upload media url error (#415)', 'chore(package): update @types/node to version 7.0.13 (#417)', 'add room-leave event (#370) (fix #250)', '0.7.62', 'fix(doc): add npm js hello world example', 'chore(package): update babel-eslint to version 7.2.2 (#407)', 'chore(package): update tslint to version 5.1.0 (#402)', '0.7.61', '0.7.60', 'fix(npm): auto deploy to @latest version instead of @next', '0.7.59', 'add(chromedriver): add diagnostic chromedriver version in doctor', 'chore(package): update yarn to version 0.22.0 (#397)', 'chore(package): update chromedriver to version 2.29.0 (#396)', 'chore(package): update apiai to version 4.0.2 (#393)', 'chore(package): update @types/sinon to version 2.1.2 (#390)', 'room.memberAll() & change room.member() query to 3 types (#364)', 'fix(package): update ws to version 2.2.3 (#389)', 'Update firer.ts (#388)', 'chore(package): update @types/sinon to version 2.1.1 (#386)', 'chore(package): update @types/body-parser to version 1.16.3 (#387)', 'fix jsdoc flush issue #378 and minor fix on the doc examples (#380)', 'Limit the size of the sending file (#376)', 'chore(package): update cross-env to version 4.0.0 (#379)', 'chore(package): update coveralls to version 2.13.0 (#377)', '0.7.58', 'fix(tslint): TS2304 rename object to Object', 'fix #4 send image/video (#337)', '0.7.57', '0.7.56', 'fix(lint): missing comma', 'chore(package): update tslint to version 5.0.0 (#373)', 'chore(package): update @types/sinon to version 2.1.0 (#372)', 'fix(package): update @types/selenium-webdriver to version 3.0.1 (#374)', 'chore(package): update @types/body-parser to version 1.16.2 (#367)', 'chore(package): update typescript to version 2.2.2 (#366)', 'chore(package): update @types/node to version 7.0.12 (#368)', 'chore(package): update nyc to version 10.2.0 (#369)', '0.7.55', 'fix(room): prepare a ready room for findAll() (#357)', 'update(git): show beautify git commit message for hook', 'fix(room): prepare a ready room for findAll() (#357)', '0.7.54', 'fix(config): track unhandled rejection when in DEBUG mode #360', 'fix(doc): space stop', 'Printout entire error trace when unhandledRejection was caught (#361)', 'chore(package): update @types/node to version 7.0.11 (#359)', 'fix(package): update @types/socket.io to version 1.4.29 (#354)', 'chore(package): update babel-eslint to version 7.2.1 (#355)', 'chore(package): update @types/request to version 0.0.42 (#356)', 'chore(package): update @types/node to version 7.0.9 (#353)', '1. in wxwebapp,first item in memberList is a random user from the room, 2. some times we can got owneruin or ChatRoomOwner . as those reason, first member from memberlist should not be here any more (#358)', 'chore(package): update ts-node to version 3.0.2 (#351)', 'fix(package): update moment to version 2.18.1 (#350)', 'chore(package): update @types/body-parser to version 1.16.1 (#347)', 'fix(package): update ws to version 2.2.2 (#348)', 'chore(package): update ts-node to version 3.0.1 (#349)', 'chore(package): update ts-node to version 3.0.0 (#345)', 'chore(package): update ts-node to version 2.1.2 (#344)', 'chore(package): update ts-node to version 2.1.1 (#343)', 'chore(package): update sinon to version 2.1.0 (#340)', 'chore(package): update @types/sinon to version 1.16.36 (#341)', 'chore(package): update babel-eslint to version 7.2.0 (#342)', '0.7.53', '0.7.52', 'fix(ci): show circleci badge for master branch', 'change(sleep): Wechaty.sleep() is a static method now.', 'fix(package): update moment to version 2.18.0 (#335)', 'remove m.send() fucntion (#323)', 'Update README.md', 'Update README.md', 'Update README.md', 'chore(doc): welcome developers', 'chore(package): update eslint to version 3.18.0 (#332)', '0.7.51', 'fix(doc): rename repository name right for CI & Coveralls', '0.7.50', 'rebase before push by default', '0.7.49', '0.7.48', 'rename Zhuohuan to Huan', 'chore(package): update sinon to version 2.0.0 (#326)', 'fix room test (#328)', 'fix(package): update brolog to version 0.4.3 (#327)', '0.7.47', 'chore(doc): move greenkeeper badge', "Merge branch 'master' of github.com:wechaty/wechaty", 'chore(doc): rename title', 'Update dependencies to enable Greenkeeper \xf0\x9f\x8c\xb4 (#325)', 'remove blank (#324)', 'fix(doc): rename appveyor name to Chatie', 'Add JsDoc for Class Contact (#321)', 'chore(doc): use lower case in url', '0.7.46', 'fix(doc): correct link name for appveyor & coveralls', '0.7.45', 'chore(doc): add VPS referrel which can solve the npm/docker netwrok problems', '0.7.44', '0.7.43', 'fix(script): simplify parameters for npm script', 'chore(doc): add voice of developer from @Gcaufy', 'chore(doc): add voice from @Gcaufy and rename Wechaty to Chatie', '291 (#318)', '#291 change `throw error` to `return null` (#292)', '#283 (#303)', '0.7.42', "Merge branch 'master' of github.com:wechaty/wechaty", '0.7.41', 'chore(doc): rename Wechaty to Chatie', '0.7.41', "Merge branch 'master' of github.com:wechaty/wechaty", 'fix(package): resolve version conflict', 'chore(package): update yarn to version 0.21.3 (#317)', 'chore(package): update nyc to version 10.1.2 (#316)', 'chore(package): update tslint to version 4.5.1 (#315)', 'chore(package): update check-node-version to version 2.0.1 (#314)', 'chore(package): update @types/ws to version 0.0.38 (#313)', 'chore(package): update @types/node to version 7.0.7 (#312)', 'fix(package): update @types/selenium-webdriver to version 3.0.0 (#311)', 'chore(package): update @types/node to version 7.0.6 (#306)', 'chore(package): update @types/ws to version 0.0.39 (#308)', 'chore(package): update check-node-version to version 2.0.0 (#307)', 'chore(package): update @types/body-parser to version 1.16.0 (#309)', '0.7.38', 'chore(doc): add new contributor: Gcaufy', 'added hot-load-demo (#310)', 'fix(package): update @types/selenium-webdriver to version 2.53.42 (#305)', 'fix(package): update @types/selenium-webdriver to version 2.53.41 (#304)', 'fix(package): update express to version 5.0.0-alpha.5 (#300)', 'fix(package): update selenium-webdriver to version 3.3.0 (#298)', 'fix(package): update body-parser to version 1.17.1 (#299)', 'chore(package): update @types/request to version 0.0.41 (#301)', 'chore(package): update apiai to version 4.0.1 (#302)', '0.7.40', 'fix(package): update cross-env from 3.2.0 to 3.2.3', 'chore(package): update coveralls to version 2.12.0 (#297)', 'chore(package): update cross-env to version 3.2.0 (#296)', '0.7.39', "Merge branch 'master' of github.com:wechaty/wechaty", '0.7.38', 'fix(config): try to identify if wechaty is installed globally', 'fix(docker): labels in Dockerfile must not contains space beside =', 'chore(package): update request to version 2.80.0 (#294)', 'chore(docker): add more label-schame', 'fix(handler): do not handle global rejection, leave it to user (https://github.com/lijiarui/robot_ts/issues/5)', '0.7.37', 'fix(travis): install phantomjs for all platform', 'fix(package): update express to version 5.0.0-alpha.4 (#290)', 'fix(package): update body-parser to version 1.17.0 (#289)', 'chore(changelog) update', 'fix(script): sed -i under ubuntu linux', '0.7.36', 'chore(doc)', 'clean(room): remove useless function (#273)', 'fix(room): do not permit undefined param', 'clean(doc): remove useless comments', 'fix(room): do not permit undefined param (#273)', 'chore(package): update tslint to version 4.5.0 (#286)', 'chore(package): update sinon to version 2.0.0-pre.6 (#284)', 'chore(package): update yarn to version 0.20.4 (#285)', 'fix(package): update ws to version 2.2.0 (#288)', 'load all memberList (#275)', 'add contributor @xinbenlv', 'fix(package): update @types/selenium-webdriver to version 2.53.40 (#279)', 'Add print nodejs version (#280)', 'chore(package): update typescript to version 2.2.1 (#276)', 'chore(package): update eslint to version 3.16.1 (#277)', 'fix(room): RawObj may absence of MemberList (#273)', '0.7.35', '(changelog) update & fix', '0.7.34', 'set state right before wechaty quit (#271)', 'chore(package): update eslint to version 3.16.0 (#270)', 'add version requirement notice', 'clear module message about yarn', 'chore(package): update ava to version 0.18.2 (#269)', 'fix(package): update ws to version 2.1.0 (#268)', 'chore(package): update @types/body-parser to version 0.0.34 (#267)', '0.7.33', 'doc', 'fix(package): update socket.io to version 1.7.3 (#265)', 'add-sys-message-in-friendrequest (#266)', 'fix(package): update selenium-webdriver to version 3.1.0 (#256)', '(tslint) fix #264', 'chore(package): update @types/request to version 0.0.40 (#257)', 'fix(package): update @types/socket.io to version 1.4.28 (#258)', 'warn user for a empty rawObj, In case of Contact.load() a wrong UserName', 'Do not run `yarn` (npm install) inside docker. leave it to users', 'add all main class to docs', 'doc', 'get rid of unnecessary `ready()` call', 'chore(package): update yarn to version 0.20.3 (#253)', 'dodc', 'set multiline trailing comma true', 'fix default value of param in jsdoc', 'add starter project link #73', 'chore(package): update eslint-plugin-ava to version 4.2.0 (#247)', 'roomJoinFailed (#249)', '0.7.32', 'add example to wechaty', '0.7.31', 'jsdoc', '0.7.30', 'use index.md', '0.7.29', "Merge branch 'master' of github.com:wechaty/wechaty", '0.7.28', 'doc jsdoc', 'Set theme jekyll-theme-cayman', '0.7.27', 'doc(tslint): disable jsdoc linting for now #73', 'doc(docs): init #73', 'enable jsdoc-rules for tslint', 'enable tslint for jsdoc', 'fix(package): update body-parser to version 1.16.1 (#245)', 'add typescript typedoc link', '0.7.26', '0.7.25', 'better error message for chromedriver #164', 'add voice from @ax4', 'doc clean', '0.7.24', "Merge branch 'master' of github.com:wechaty/wechaty", '0.7.23', '0.7.22', 'fix chromedriver typo', 'chore(package): update typescript to version 2.1.6 (#243)', 'chore(package): update @types/sinon to version 1.16.35 (#242)', 'chore(package): update ts-node to version 2.1.0 (#244)', 'fix(package): update ws to version 2.0.3 (#241)', 'chore(package): update eslint-plugin-ava to version 4.1.0 (#240)', 'add warn log when function Room&Contact.find() return more than one value (#239)', 'Merge pull request #234 from lijiarui/217', '3', '2', '0.7.21', 'changelog', '1', '0.7.20', 'make tuling123-bot more easy & straight forward #236', '#217', '0.7.19', 'fix 235', 'add test data', 'rename the nick/remark/display for contact/room #217', 'Merge pull request #233 from wechaty/greenkeeper/coveralls-2.11.16', 'chore(package): update coveralls to version 2.11.16', 'Merge pull request #232 from wechaty/greenkeeper/@types/node-7.0.5', 'Merge pull request #230 from wechaty/greenkeeper/ws-2.0.2', 'Merge pull request #231 from wechaty/greenkeeper/eslint-3.15.0', 'chore(package): update @types/node to version 7.0.5', 'chore(package): update eslint to version 3.15.0', 'fix(package): update ws to version 2.0.2', 'Merge pull request #228 from wechaty/greenkeeper/apiai-4.0.0', 'chore(package): update apiai to version 4.0.0', 'Merge pull request #227 from wechaty/greenkeeper/ava-0.18.0', 'chore(package): update ava to version 0.18.0', 'Merge pull request #226 from wechaty/greenkeeper/ws-2.0.0', '0.7.18', 'add issuestats.com badge', '0.7.17', 'fix https://travis-ci.org/wechaty/wechaty/jobs/196253253#L899', 'fix(package): update ws to version 2.0.0', 'Merge pull request #224 from wechaty/greenkeeper/express-4.14.1', 'fix(package): update express to version 4.14.1', 'chore(package): update sloc to version 0.2.0 (#223)', '0.7.16', 'tslint: no trailing wihtespace in comments', 'chore(package): update tslint to version 4.4.0 (#221)', 'chore(package): update @types/node to version 7.0.4', 'chore(package): update eslint to version 3.14.1 (#220)', 'fix_function_room.member_#173 (#211)', '0.7.15', 'set mock contact getter direct to puppet (#211)', 'Merge pull request #212 from wechaty/greenkeeper/nyc-10.1.0', 'Merge pull request #214 from wechaty/greenkeeper/@types/express-4.0.35', 'Merge pull request #213 from wechaty/greenkeeper/body-parser-1.16.0', 'chore(package): update @types/express to version 4.0.35', 'fix(package): update body-parser to version 1.16.0', 'chore(package): update nyc to version 10.1.0', 'Merge pull request #209 from wechaty/greenkeeper/yarn-0.19.1', 'chore(package): update yarn to version 0.19.1', '0.7.14', 'add xinbenlv quotation', '0.7.13', 'test node v6', '0.7.12', 'add changelog npm script', '0.7.11', '0.7.10', 'replace changelog by github-changelog-generator', 'Merge pull request #206 from wechaty/greenkeeper/ws-2.0.0-beta.1', 'fix(package): update ws to version 2.0.0-beta.1', '0.7.9', 'code clean', 'code clean', 'add localhost tcp connectivity test in doctor (#184)', 'Merge pull request #203 from wechaty/greenkeeper/typescript-2.1.5', 'chore(package): update typescript to version 2.1.5', 'Merge pull request #202 from wechaty/greenkeeper/is-ci-1.0.10', 'fix(package): update is-ci to version 1.0.10', 'Merge pull request #198 from wechaty/greenkeeper/@types/node-7.0.0', 'Merge pull request #197 from wechaty/greenkeeper/eslint-plugin-ava-4.0.1', 'Merge pull request #199 from lijiarui/patch-8', 'readme friendrequest', 'chore(package): update @types/node to version 7.0.0', 'chore(package): update eslint-plugin-ava to version 4.0.1', 'Merge pull request #193 from wechaty/greenkeeper/@types/node-6.0.59', 'Merge pull request #194 from wechaty/greenkeeper/eslint-3.13.1', 'chore(package): update eslint to version 3.13.1', 'chore(package): update @types/node to version 6.0.59', '0.7.8', 'fix #164', 'Merge pull request #191 from wechaty/greenkeeper/shx-0.2.2', 'chore(package): update shx to version 0.2.2', 'Merge pull request #189 from wechaty/greenkeeper/eslint-3.13.0', 'chore(package): update eslint to version 3.13.0', '0.7.7', 'doc', '0.7.6', 'merge', '0.6.70', 'add getting started video', 'Merge pull request #187 from wechaty/greenkeeper/@types/node-6.0.58', 'chore(package): update @types/node to version 6.0.58', 'Merge pull request #186 from wechaty/greenkeeper/tslint-4.3.0', "Merge branch 'master' of github.com:wechaty/wechaty", 'fix new tslint error: https://github.com/wechaty/wechaty/pull/186', 'chore(package): update tslint to version 4.3.0', 'Merge pull request #185 from wechaty/greenkeeper/@types/selenium-webdriver-2.53.39', 'fix(package): update @types/selenium-webdriver to version 2.53.39', 'Merge pull request #183 from wechaty/greenkeeper/@types/node-6.0.57', 'chore(package): update @types/node to version 6.0.57', 'Merge pull request #180 from wechaty/greenkeeper/@types/node-6.0.56', 'Merge pull request #179 from wechaty/greenkeeper/cross-env-3.1.4', 'Merge pull request #182 from lijiarui/master', '#181 fix', 'chore(package): update @types/node to version 6.0.56', 'chore(package): update cross-env to version 3.1.4', 'Merge pull request #162 from lijiarui/master', 'Merge pull request #178 from wechaty/greenkeeper/sinon-1.17.7', 'chore(package): update sinon to version 1.17.7', 'Merge pull request #177 from wechaty/greenkeeper/@types/sinon-1.16.34', "Merge branch 'master' into greenkeeper/@types/sinon-1.16.34", 'Merge pull request #176 from wechaty/greenkeeper/@types/request-0.0.39', 'chore(package): update @types/sinon to version 1.16.34', 'chore(package): update @types/request to version 0.0.39', 'Merge pull request #171 from wechaty/greenkeeper/@types/node-6.0.55', "Merge branch 'master' into greenkeeper/@types/node-6.0.55", 'Merge pull request #170 from wechaty/greenkeeper/ts-node-2.0.0', 'Merge pull request #172 from wechaty/greenkeeper/@types/request-0.0.38', 'chore(package): update @types/request to version 0.0.38', 'chore(package): update @types/node to version 6.0.55', 'chore(package): update ts-node to version 2.0.0', '0.7.5', 'try to fix https://travis-ci.org/wechaty/wechaty/jobs/187463245#L3890', 'Merge pull request #169 from wechaty/snyk-fix-08c15175', 'fix: package.json to reduce vulnerabilities', '0.7.4', 'restore npm default dist tag to next', '0.7.3', '0.7.2', 'publish npm readme', '0.7.1', '0.7.0', '0.6.69', 'try to suppress unhandled exceptions in 3rd party library #122', 'try to suppress unhandled exceptions in 3rd party library', '0.6.68', 'fix tsc fail if we have dist/ output directory', 'fix unit test', 'Merge pull request #161 from wechaty/greenkeeper/@types/selenium-webdriver-2.53.38', "Merge branch 'greenkeeper/@types/node-6.0.54'", 'merge', 'code clean', 'fix ps-tree version after lock', 'fix check-node-version under win32 ci', 'lint under win32 ci', 'disable npm install in circleci because we run everything of nodejs in docker', 'Merge pull request #167 from wechaty/greenkeeper/ts-node-1.7.3', 'chore(package): update ts-node to version 1.7.3', 'Merge pull request #166 from wechaty/greenkeeper/@types/request-0.0.37', 'chore(package): update @types/node to version 6.0.54', 'chore(package): update @types/request to version 0.0.37', 'English string your of inviter', 'fix text', 'add firer.spec.ts', '#155', "Merge remote-tracking branch 'upstream/master'", 't', 'fix(package): update @types/selenium-webdriver to version 2.53.38', '0.6.67', 'merge', '0.6.66', 'check Node.js when npm run to kindly notice developers who are using node version below v6.9 (#159)', 'Merge pull request #158 from wechaty/greenkeeper/tslint-4.2.0', 'chore(package): update tslint to version 4.2.0', 'merge', 'lock all npm module version to fix', 'run clean before dist, to replace redist(#152)', 'fix ci with browser.open() & hostname', 'fix ci test', 'use web.wechat.com when cookie has wechat.com(#151)', 'code clean', 'add unit test for hostname() (#151)', 'code clean', 'silent chromedriver log message(#150)', 'code clean', 'https://github.com/Microsoft/TypeScript/issues/9944 compact selenium-webdriver types v2, hope @types v3 will publish soon', 'Merge pull request #149 from wechaty/greenkeeper/@types/selenium-webdriver-2.53.37', 'chore(package): update @types/selenium-webdriver to version 2.53.37', 'Merge pull request #146 from wechaty/greenkeeper/tslint-4.1.1', 'Merge pull request #145 from wechaty/greenkeeper/yarn-0.18.1', 'chore(package): update yarn to version 0.18.1', 'chore(package): update tslint to version 4.1.1', 'add observable & huject', 'Merge pull request #143 from wechaty/greenkeeper/@types/sinon-1.16.33', "Merge branch 'master' into greenkeeper/@types/sinon-1.16.33", 'Merge pull request #142 from wechaty/greenkeeper/@types/node-6.0.52', 'Merge pull request #141 from wechaty/greenkeeper/tslint-4.1.0', 'chore(package): update tslint to version 4.1.0', '0.6.65', 'doc', 'clean', 'Merge pull request #139 from lijiarui/patch-6', 'Update README.md', 'demo how to save contact avatar to file #121 #138', '0.6.64', 'try to fix https://travis-ci.org/wechaty/wechaty/jobs/183841844#L1371', 'doc', '0.6.63', 'doc', '0.6.62', 'doc', '0.6.61', 'doc', '0.6.60', 'doc', '0.6.59', 'chore(package): update @types/node to version 6.0.52', 'doc', '0.6.58', 'doc', '0.6.57', 'fix phantomjs-prebuilt peer dependence', '0.6.56', 'fix test fail', '0.6.55', '0.6.54', 'enable Contact.avatar() #121 #31', 'move chromedriver & phantomjs-prebuilt to peer dependence', 'add title to developer friends', '0.6.53', 'move @types/selenium-webdriver @types/socket.io from devDependence to dependence to make npm user happy #136', 'fix remark() get the old value bug #130', 'chore(package): update @types/sinon to version 1.16.33', '0.6.52', 'author info & ava setting', 'doc', 'quota', '#122', '0.6.51', 'clean', 'clean', 'say error', 'follow new tslint rules', 'fix remark with null param #130', 'fix remark with null param #130', '0.6.50', 'code clean', '0.6.49', "Merge branch 'master' of github.com:wechaty/wechaty", 'delete deprecated tslint rules', 'Merge pull request #127 from wechaty/greenkeeper/update-all', 'chore(package): update dependencies', '0.6.48', 'use finis instead of nodeCleanup', 'log more for https://travis-ci.org/wechaty/wechaty/jobs/182313353#L3727', '0.6.47', "Merge branch 'master' of github.com:wechaty/wechaty", '0.6.46', 'fix contact id null exception for example bot ding-dong-bot #123', 'do not reject a promise twice #122', 'support Contact.find by remark #117', 'add more contact methods: gender(), city(), provionce(), avatar() #121', 'clean log', '0.6.46', 'merge', '0.6.43', 'better docker setting', '0.6.45', '#119 Sync to Async', '0.6.44', 'use node cleanup to notify bot as program exit', 'fix name of func #119', '0.6.43', 'merge', '0.6.41', '#119', 'hide npm', '0.6.42', 'code clean', '0.6.41', 'merge', 'add node-cleanup to trap bot code exit', 'fix const to let', "escape ' for filter function #116", 'doc', 'show error message for requiring chrome-driver', 'fix unhandled rejection: https://travis-ci.org/wechaty/wechaty/jobs/180957671#L2789', 'fix friend request async', 'code clean', '0.6.40', 'add boolean return value to FriendRequest.{send,accept}', '0.6.39', 'better log', '0.6.38', 'fix `set -e` not work inside wechaty::runBot', '0.6.37', 'fix dependences', 'fix npm install @types/node not work with symble link', '0.6.36', 'code clean', 'save speech mp3 to file', 'format date', 'return null when there is no remark set #113', 'better filename for attachment', 'name attachment with more detail filename, and add APPMSGTYPE_READER_TYPE 100001 #114', 'add debug commands', 'add all wechaty node modules to global', 'd', '1', '0.6.35', 'add NickName to RawObj.MemberList #104', '#104', '#104', '0.6.34', 'fix #104', 'room.findAll() support empty arg for all', '0.6.33', 'allow Contact.remark(null) to delete remark', 'Merge pull request #110 from lijiarui/patch-5', 'Merge pull request #112 from lijiarui/arcode', 'Update README.md', 'qrcode', 'Update README.md', '0.6.32', 'more log & code clean', '0.6.31', 'fix return', 'track unhandledRejection', '0.6.30', 'tune timeout to not trigger watchdog 120 sec', '0.6.29', 'get rid of arrify', 'code clean', 'code clean', 'code clean', 'rename voice to speech', 'fix "', 'code clean', 'more check for exception/rejection', '0.6.28', 'fix missed types module #105', 'Merge pull request #105 from JasLin/master', "fixed throw new Error('no user') while use wechaty.io", 'i hate whitespace...', 'get room owner on room-join room-topic event', 'Merge pull request #4 from wechaty/master', '0.6.27', 'add ffmpeg & request dev dependence', '0.6.26', 'add voice to text example', 'Merge pull request #100 from JasLin/master', 'fix javascript error: attempt is not defined', 'Merge pull request #3 from wechaty/master', '0.6.25', 'fix chrome eval anonymous function exception #98 #60', 'use MsgType', '0.6.24', 'restore phantomjs unit tests, thanks @cherry-geqi #60', 'Merge pull request #97 from cherry-geqi/master', 'wechaty-bro.js following official coding style', 'use plain javascript for phantomjs #60', 'code clean', 'fix Unhandled Rejection https://travis-ci.org/wechaty/wechaty/jobs/176334651#L1717', 'convert wechaty-bro.js to plain old javascript syntax in favour of phantomjs', '0.6.23', 'code clean', '#70 temporary for users', 'use `ssh-agent` like env set', '0.6.22', 'fix quit timeout', 'fix $! -> $1', '0.6.21', 'self fix', 'code clean, add timeout for quit', '0.6.20', 'code clean', '0.6.19', 'use nul in windows', 'fix clean() promise for https://travis-ci.org/wechaty/wechaty/jobs/175638013#L1180', 'fix clean() promise for https://travis-ci.org/wechaty/wechaty/jobs/175638013#L1180', 'fix clean() promise for https://travis-ci.org/wechaty/wechaty/jobs/175638013#L1180', 'increase range', '0.6.18', 'appvoyor npm not support --silent?', '0.6.17', 'nyc + ava', '0.6.16', 'test coverage', 'version', 'code clean', 'add timeout for psTree?', '0.6.15', 'silent', '0.6.14', 'silent log output for docker test', '0.6.13', 'division of labour for loging', 'silent on appveyor for quick smoking test purpose', 'log clean', 'fix driver valid loop', 'use appveyor organization url', '0.6.12', 'fix appveyor', '0.6.11', '0.6.10', 'division of labor of 3 CI system', 'Merge pull request #93 from lijiarui/patch-4', '0.6.9', 'fix appveyor', '0.6.8', 'fix win32 test & switch to fast', '0.6.7', 'fix ci & docker with rebuild -> redist', '0.6.6', 'fix watchdog unit test bug', 'Update README.md', 'strict browser management', 'better script output', 'rename `npm run build` to `npm run dist`', 'add npm & git help script', 'code clean & fix watchdog unit test', 'code clean', 'strict check current to equla to target, or throw exception', 'Update README.md', 'Merge pull request #92 from lijiarui/patch-3', 'Update README.md', 'Merge pull request #91 from lijiarui/patch-2', 'Update README.md', 'fix ancher link error', 'fix watchdog unit test error', 'fix watchdog unit test error', 'fix watchdog unit test error', 'fix watchdog unit test error', 'log for https://travis-ci.org/wechaty/wechaty/jobs/175396480#L1828', 're-format doc', 'code clean', 'Merge pull request #87 from lijiarui/patch-1', 'code clean for #88', 'code clean for #88', 'Update README.md', 'Update README.md', 'Update README.md', 'log for https://travis-ci.org/wechaty/wechaty/jobs/175324931#L1385', 'code clean', 'more check for https://travis-ci.org/wechaty/wechaty/jobs/175254596#L1220', 'BREAKING CHANGE: message.to() will not work with Room. use message.room() instead. #88', 'fill in the TBW block', 'code clean', 'fix `error: failed to push some refs to git@github.com:wechaty/wechaty.git` in push hook', 'fix type', '#86 clean() force kill browser process, to clean orphan', 'use get instead of requrie of http', 'clean log', 'linting', 'file mode', '#4 use http protocol instead of https for download media file, because https will only succeed on the very first request!', '#4 Add more support code for saving media file, and prepare for sending attachments', 'use docker command directly', 'code clean for execute script', '0.6.5', 'use NO_HOOK env var to push tag', '0.6.4', 'test', '0.6.3', 'test', '0.6.2', '0.6.1', '0.6.0', 'format, and why circleci deploy 2 times?', '0.5.30', 'thanks @torek', '0.5.29', 'better notice message', '0.5.28', 'fix var no $', 'test hook', 'pre-push with the right npm version tagged', '0.5.27', 'email notification only sent when status changed', 'suppress npm warning by --silent', '0.5.26', '#85 install @types/node to /node_modules for max compatibility', '0.5.25', '0.5.24', '0.5.23', 'circle ci', '0.5.22', 'remove checkContainerId()', 'remove checkContainerId()', 'lint', "Merge branch 'master' of github.com:wechaty/wechaty", 'fix docker identify: use is-docker', '0.5.21', 'restore phantomjs-prebuilt', '0.5.20', 'clean', '0.5.19', 'clean', 'linting with typescript v2.1', 'support all media files, not only image', 'doc', 'set valid timeout from 10 to 67 seconds', '0.5.18', 'add dns server in entrypoint #84', 'if in docker, there must has "docker" string in cgroup file #84', 'add more dns server for #83', '0.5.17', 'fix linting', 'better docker container id identify function #84', 'more help', 'fix file mod', 'Add support to save EMOTICNO/VOICE/VIDEO/MICROVIDEO for MediaMessage #4', 'code clean', 'code clean', 'doc', 'fix & enhance docker entrypoint help & command parse, with unit tests', 'use bash', 'clean', 'ts-node run without @types/node should without problem', 'use package manager for bats', 'back to use node.js 6.9', 'try to fix install bats with circle', 'fix shellcheck in circlrci, and move bats test into docker.sh', '0.5.16', 'fix circle ci env var', '0.5.15', 'fix rename in package', '0.5.14', 'fix pre-push not exit when lint fail, and exclude fixture from linting', '0.5.13', 'shellcheck', 'more test', 'add docker bats unit test', '0.5.12', 'skip cygwin for npm version bump', 'better entrypoint help message, and bug fix', 'add single module unit test', 'badge cache', 'do not tag when run npm version', '0.5.9', 're valid', 'add --homepage arg', 'fail safe for npm version patch (under windows/cygwin?)', 'clean valid', 'clean valid()', '0.5.7', 'doc', 'WebDriver.getSession() always halt, so add a ten seconds timeout?', 'skip_cleanup for travis deploy', 'clean travis', '0.5.6', 'try to fix auto npm publish in travis', '0.5.5', 'increse npm version before push', '0.5.4', 'doc clean', 'add email for npm', 'fix shellcheck in travisci', 'fix shellcheck docker in circleci', 'v0.5.3', 'code clean', 'fix test import from specific ts file', 'add auto publish npm to @next', '0.5.2', 'use npm publish default to `next`', 'issue #70 use related module filepath to specific file inner wechaty', 'doc', 'more verbose for getChromeDriver() to see where stuck the test', 'shellcheck is enough, no need to run tslint', 'only test node v7, add shellcheck. still no idea about how to get .nyc', 'require node v7 because selenium require node v6.9...', 'Merge pull request #78 from JasLin/master', "memberList Method have no 'name' argument definded,it'will cause a undefined error", 'Merge pull request #2 from wechaty/master', 'lintling', 'ignore .yarn', 'run js/ts bot file to test docker', 'Merge pull request #76 from JasLin/master', 'install @types/node by npm for run mybot source code', 'remove shellcheck in default shlint', 'use alpine-shellcheck docker image to run shell lint test', 'install node types', 'switch base image from alpine-shellcheck to alpine-node:7 because of selenium v3 require node v6.9', 'add help message', 'log more when browser.execute exception', 'fix browser unit test', 'add browser unit test', 'code clean', 'fix run ava', 'fix #70 ,it maybe cause by designing the ConfigSetting as an interface, work around it putting the _puppetinstace in to global', 'Merge pull request #1 from wechaty/master', 'add node version for doctor', 'fix browser quit() twice exception', 'msg clean', 'log clean', 'fix driver valid function', 'more strict check for browser & driver', 'contact.toString() return remark or name or id', 'move badge to wiki', '#72 remove the WebDriverJS promise manager', 'better log', 'doc', 'fix docker path not include /wechaty/bin bug', 'disable memory warning in most case', 'doc typescript native support on docker', 'doc', 'changelog', 'only show git hash version in ts-node mode', 'win32 to windows', 'restore the normal pretest', 'no need to link wechaty because we have /node_modules/wechaty at root directory. and also that xvfb-chrome is already in path /wechaty/bin', 'confirm circleci docker test is fixed?', 'fix test bug: docker test fail should return exit code right', 'move badge down', 'move badge down', 'doc test', 'linting', 'export default can lead to problems, get rid of them #40', 'try to fix js: `const Wechaty = require("wechaty")`', 'doc', 'add `docker run doctor` to issue template', 'fix test with void return', 'compatible with `wechaty npm run ...` usage', 'code clean', "Merge branch 'master' of github.com:wechaty/wechaty", 'Update README.md', 'Update README.md', 'Update README.md', 'Update README.md', 'Update README.md', 'use JavaScript as example instead of TypeScript', 'Update README.md', 'Update README.md', 'Update README.md', 'code clean', 'code clean', 'code clean', 'doc', 'doc', 'Update README.md', 'Update README.md', 'doc clean: moved big paragraphs to wiki', 'code clean', 'doc', 'classify doc to wiki & changelog, make readme be focus', 'doc typescript', 'close #66 doc Docker in README', 'output fix', 'doc clean', 'fix npm publish files in dist not include bug', 'build wechaty in docker, to get javascript dist', 'code clean', 'fix version path after build dist', 'use dist/bin/...js file to publish instead of ts', 'use shebang of `node` instead of `ts-node` for dist', 'styling', 'require module at the begining of code', 'fix overload bug of optional args', 'put `shlint` out of `npm test` because it is optional', 'add code climate badge', 'make sure the port is not same as orignal', 'code clean', 'doc', 'prepare to public npm module v0.5', 'return void if set message.{to,from,room}()', 'circleci test docker, no need to install shellcheck', 'change test output from silly to verbose', 'fix win32 ci', 'fix shellcheck under CI', 'fix `can only "return" from a function or sourced script` error', 'fix yarn close stdin bug, code clean', 'rewrite to add labels, strip chromedriver from npm, include shellchecker and rm npm cache', 'code clean', 'rewrite & modulize functions', 'fix strange ts error in docker: tsc think setTimtout return number? #66', 'add shell linting with shellcheck', 'clean npm cache in docker image to reduce size #66', 'ignore dist & doc #66', 'add shlint to linting shell script', 'doc', 'fix tsconfig & chromedriver in Alpine Linux', 'switch docker base image from `node` to `alpine` for reducing image size', 'doc', 'use docker volume /bot as root, and fix entrypoint.sh bug', 'symbolic link for a docker volume not support by docker of circleci?', 'fix circleci docker hub trigger: use deployment instead of notification, because notification will be triggered no matter success or failure', 'fix npm link bug, add more diagnose messages for docker starter #66', 'link wechaty module for /bot inside docker #66', 'output more diagnose information when docker run bot fail #66', 'doc clean and rename `.js` to `.ts` in example directory #40', 'grammerly doc', 'better error help message for --volume mistake #66', 'docker runner support install dependence modules automaticly from package.json by yarn, with cache', 'better to find bot.ts file', '#34 sync local `remark` name', '#34 add `Contact.remark(newRemark: string)` support', '#34 add `Contact.remark(newRemark: string)` support', 'code clean', 'code clean', '#68 add unit test for self()', 'move code coverage to test section, and add docker test badge', '#68 should use `obj.from` instead of `obj.id`. thanks @kyle-yu', 'linting', 'code clean & log enhance', 'code clean', 'linting', '#64 try to ignore all emoji in room member names', 'code clean', 'debug test', 'run unit tests when build docker', 'rename app dir in docker from `app` to `bot`', 'fix docker hub webhooks in circleci: have to put plain token inside config file', 'fix circleci webhook: it seems not support env var', 'doc', 'add setup in linux doc issue link', "Merge branch 'master' of github.com:wechaty/wechaty", 'lint', 'remove TS_NODE_COMPILER_OPTIONS, instead, link tsconfig.json to /', 'set ava timeout from 10m to 7m, because travis-ci timeout is 10m', 'link global npm node_modules directory to root in order to be an *real* global module', 'fix #67 not run in `docker mode` in cloud9 ide', 'code clean', 'extend timeout from 60s to 120s', 'code clean', 'doc', 'set TS & NODE env variables: COMPILER_OPTIONS & NODE_PATH', 'doc', 'change default memory require size from 64 to 16', 'fix test', 'code clean', 'fix a race-condition in port finding: in ava Math.random() will get the same result in the child process?', 'fix CircleCI issue: https://discuss.circleci.com/t/docker-builds-are-failing-on-circleci/5267/6?u=zixia', 'fix docker.sh in circleci.com: must set image tag or will fail', 'switch trigger to docker hub for rebuilding wechaty via circleci', 'doc dockerfile #66', 'need `xauth` package to start xvfb, support code filename as docker arg #66', 'fix chromium requirement and suppress apt-get nosies #66', 'docker fix', 'silence apt-get install', 'npm --progress false --loglevel warn install', 'try to fix `rmdriverfs: Driver btrfs failed to remove root filesystem` in circleci', 'fix ava dependence', 'improve startup performance', 'code clean', 'DO NOT mock CI env, because will cause unpredictable bugs', 'use chromium instead of chrome in docker', 'linting', 'add more check to browser driver init', 'docker args pass through to npm', 'rename Firer class method names', 'code clean', 'upgrade to use nodejs v7.0', 'fix test', 'fix chrome version in travis ci', 'use circleci to test docker, and travis-ci with linux/mac', 'fix tests', 'enable coveralls coverage report', 'ava run concurrency so we have to use test.serial if want to check child process pids.', 'clean log', 'code clean', 'fix test bug', 'fix stall browser bug when session file not exist', 'selenium find `chromedriver.exe` by default under win32, so we have to specify the `chromedriver`.path in order to make it work with npm module `chromedriver`', 'use `shx` to execute cross-platform shell commands such as `rm -fr` & `cp`', 'add node v7 test', 'code clean', 'add unifyEmoji method to deal with name string differend with same user in browser', 'fix sloc file glob bug in win32', 'fix sloc directorys', 'fix win32 sloc bug, code clean', 'code clean', 'debug ci', 'fix travis ci', 'add new class: `BrowserDriver` for modulize webdriver code from `Browser` class', '#40 try to fix unit test in CI!', '#46 Class Wechaty converted', '#46 Class IoClient converted', 'code clean: state change log message', 'use SN:%d instead of #:%d to avoid log message link to issue mistakly', 'bug with vscode? `.on(event, function(this, ...args)` will show error type of args in editor', 'use Wechaty & Room instance as Sayable `this`', '#46 Class Io converted', '#46 Class Puppet converted', '#46 Class Browser converted', 'code clean', 'doc', 'doc clean', 'rename gist-bot', '#40 bump to v0.5.0!', '#40 all unit tests works with typescript enabled ava!', 'fix config unit test', 'fix config unit test', '#59 new `BrowserCookie` class', '#40 fix unit test', '#40 fix typescript unit tests with ava', 'do not specify chromeServiceBuilder', 'call through ready with `contactGetter`', 'BREAKING CHANGE: `room-join`/`room-leave`/`join`/`leave` events now only emit `contactList: Contact[]` as params. no `contact: Contact` anymore.', 'code clean', 'make room-join event more reliable for invitee contact instance', 'grammerly doc', '#34 add example for contact-bot', 'try to fix empty invitee bug in room `join` event', 'code clean', 'silly log', 'fighting with state', 'show qr-code in terminal for gist bot', 'code clean', 'fix doc with FriendRequest', 'test', 'doc fix', 'code clean', 'fix `friend` listener param defination: `request` could be undefined(for a confirmed friend relationship)', 'log for #55', 'voice of developer naishstar', 'rename pre-push', 'automatic check free memory when run', "Merge branch 'master' of github.com:wechaty/wechaty", 'code clean', 'fix #56 chromedriver path have to be specified in code', 'code clean', 'add new example bot: demo for load from gist(files)', 'fix message.room(): should return null when there iss no room', 'fix un-compatible methods type', 'code clean: replace `Promise<any>` by `Promise<void>`, and replace `return null` by `throw`', 'fix #54', 'fix }', "Merge branch 'master' of github.com:wechaty/wechaty", 'statSync doc', 'code clean', 'doc contributing', 'issue template', 'code clean', 'add ISSUE template for better information collecting', 'doctor', 'add `npm run doctor` to output diagnose information', 'code clean', '#52 support "\xe4\xbd\xa0"', '#52 add chinese friend confirm message', '#52 support `room-*` event for chinese wechat', 'doc', "Merge branch 'master' of github.com:wechaty/wechaty", 'bug fix', 'issue #40 make "strictNullChecks": true happy', 'Update README.md', 'add pre-push hook script', 'test pre-commit hook', 'fix linting', "Merge branch 'master' of github.com:wechaty/wechaty", 'doc & code clean', 'ignore yarn lock file', 'fix #51', 'code clean', "Merge branch 'master' of github.com:wechaty/wechaty", 'typescript run ok', 'bug fix: add Browser.restart(), for fixing browser not restart after window closed', 'export log from config', 'loggig', 'linting', 'add `implements Sayable`', 'fix md syntax', 'better event listener overloading', 'code clean', 'doc Sayable', 'doc typo fix & code clean', 'bug fix', 'export types', "Merge branch 'master' of github.com:wechaty/wechaty", 'export types for public methods', 'deprecated Wechaty.reply()', 'make ava happy', 'use `npm run demo` to demo, prevent chromedriver not in path error', 'use typescript to generate declaration file', 'use ava with typescript, with new typs key', 'new helper class StateMonitor', 'doc #41', '#41 add Sayable Interface, and simplify listeners wraper function', 'add type MessageRawObj.Url', '@deprecated PupptWeb.reply()', 'add Room.memberList(): Contact[]', '#44 overload methods for better doc', 'doc', 'doc #44', '#40 fix circular module dependence', '#40 fix circular module dependence', '#44 more `ready()` checks', '#40 all files passed tsc compile', '#40 pass eslinting', '#40 fix all unit tests with typescript linting', 'bug fix', '#44 wait for `contact.ready()` after accept friend request from him', 'close #44', '#40 more types, bug fixes, async/await', '#40 convert bin/*.ts to typescript', 'change scan event listener param from object to two params', 'fix EventEmitter on() return type to `this`', '#41 add say to Message', 'doc', 'close #40 wechaty finally fully typed. thanks god', '#41 say() works on Contact/Room, and `this` inside listener functions now', '#40 fix examples', 'await quit', 'add this.obj safety check', 'fix createServer return type error', 'cannot use `*` if angular is set `.withCredentials = true`', 'overload addCookies()', 'typo', '#40 finally runable with ts-node!', '#40 enhance browser types', 'switch to typescript@next to avoid https://github.com/wechaty/wechaty/issues/40#issuecomment-252649976', 'fix Contact/Room filter func', 'fighting with ts-node & watchdog', 'fix null bug', 'fix url', '#40 code clean', '#40 typescript compile success!', '#40 change Wechaty class Singleton', 'fix #40 (typescript bug)', 'fight with typescript @types ...', 'fix `profile` null bug', "Merge branch 'master' of github.com:wechaty/wechaty", 'v0.4.0', 'red warning', 'red warning', 'red warning', 'use v0.4 release link', '#40 fix most of typescript errors, step 24', 'WARNNING message to wait finishing typescript convert.', '#40 Typescript transition step 23: put all together, everything broken...', 'developer voice', '#40 ts tools', '#40 Typescript transition step 22: fix bridge.ts & tslint', '#40 Typescript transition step 21: fix browser.ts & tslint', '#40 Typescript transition step 20: fix event.ts & tslint', '#40 Typescript transition step 19: fix firer.ts & tslint', '#40 Typescript transition step 18: fix friend-request.ts & tslint', '#40 Typescript transition step 17: fix index.ts & tslint', '#40 Typescript transition step 16: fix server.ts & tslint', '#40 Typescript transition step 15: fix watchdog.ts & tslint', '#40 Typescript transition step 14: fix puppet-web.ts & tslint', '#40 Typescript transition step 13: fix config.ts & tslint', '#40 Typescript transition step 12: fix contact.ts & tslint', '#40 Typescript transition step 11: fix friend-request.ts & tslint', '#40 Typescript transition step 10: fix io.ts & tslint', '#40 Typescript transition step 9: fix io-client.ts & tslint', '#40 Typescript transition step 8: fix message.ts/message-media.ts & tslint', 'Typescript transition step 7: fix puppet.ts & tslint', 'Typescript transition step 6: fix room.ts & tslint', 'Typescript transition step 5: fix util-lib.ts & tslint', 'Typescript transition step 4: fix wechaty-event.ts & tslint', 'Typescript transition step 3: fix wechaty.ts & tslint', 'Typescript transition step 2: rename `require` to `import`, and rename `module.exports` to `export default`', 'Typescript transition step 1: rename `.js` to `.ts`', 'new class WechatyEvent to prepare `say()` method everywhere', 'new class WechatyEvent to prepare `say()` method everywhere', 'v0.4.0', 'Merge pull request #38 from lijiarui/revise_readme', 'add hubot introduction in readme', 'code clean', 'try to wait leaver for contact.ready()', 'rename `Room.find{ name: ... }` to `Room.find{ topic: ... }`', 'rename `Room.find{ name: ... }` to `Room.find{ topic: ... }`', 'code clean', 'room event join support multi-contact one time fire(with array args)', 'fix watchdog not reset bug: browser.quit should not block watchdog reset', 'contacts of room member list need to be ready asap, because we need nick name/remark name from contacts', 'add header comments', 'code clean & comments', 'support to monitor multiple people added to room, and fire "join" event right', 'doc example/room-bot', 're-structure example/room-bot', 'create should return a Room instance, instead of roomId', 'bug fix: to could be instanceof Room', 'docs', 'code clean', 'more robust checkings', 'clean log', 'async code fix, and return Error as object', 'code clean', 'protect dirtyObj not to overwrite with a invalid obj, when a room is refreshing in multi tasks', 'code clean', 'Add Async Support between Bridge & WechatyBro, so we can get Room UserName from Create(it return a promise in browser)', 'bug fix: use Config.puppetInstance()', '#32 Room new event: `topic`', '#32 demo bot', 'new room class methods demo', 'room create with topic', 'add Wechaty.user() to get current login user', 'support set default topic when create room', '#34 Contact.find && findAll', '#32 room doc & global `room-join` & `room-leave` events', 'increase reload timeout, and log total timeout for convenience', '#32 fix Room MemberList refresh race condition', '#32 Room Event: `join` & `leave`', 'Class Room bug fix & unit test', 'voice of developer', 'bug fix', 'only export default in internal modules', '#32 add Firer Class to match message with event', 'bug fix', '#32 merge', '#32 Room Event: `join` & `leave`', 'code clean', 'rename contactList back to memberList', 'use Contact instead of UserName, as interface args for all', 'use Contact instead of UserName, as interface args for all', '#32 add Room.nick()', '#33 new example bot: friend-bot.js', 'use UserName: string for FriendRequest args', 'doc for #33 FriendRequest', 'fix contact with this', '#33 integration workflow', 'code format', 'dev clean', 'dev clean', 'use Config.puppetInstance()', 'code clean', 'use Config.puppetInstance() instead of attach by self', 'support puppetInstance() to save/load instance of puppet', 'support event args more than one, use Config to store puppet instance', '#33 add verify user interface to bridge, and created FriendRequest class', '#33 add verify user interface to bridge, and created FriendRequest class', '#33 add verify user interface in WechatyBro', 'add more projects', 'fix Room tests', 'use .id instead of .get("id") for better compatible', 'fix string query bug', '#32 add Room.modTopic', '#32 group add/del', 'ci inside docker should not treat as a wechaty-docker env', 'editroconfig', 'get rid of global config DEFAULT_PUPPET_PORT', 'better isDocker check', 'linting', 'base class of state management', 'use targetState instead of isBirthing', 'uin will also exist in cookie named `wxuin` ?', 'doc indent', 'tiny tune', 'do not test after install', "Merge branch 'master' of github.com:wechaty/wechaty", 'add dotNet link', "Merge branch 'master' of github.com:wechaty/wechaty", 'fix docker hub url error', 'rename BINARY_CHROMIUM to CMD_CHROMIUM', 'rename ENDPOINT to APIHOST', 'more state check', 'merge', 'log', 'fix initWechaty() to return wechaty instance right', 'use default shields.io badge', 'fix puppet state test', 'add buffer to io, for store offline messages(and reset after connected)', 'add more targetState() check', 'add CleverScript', 'set this.puppet as soon as possible', 'use targetState() & currentState() in Io class', 'add currentState() call in test', 'use currentState() & targetState() in puppet', 'add targetState() and currentState() to puppet-web compoments', 'fix quota in windows', 'make io-client more flexable', 'add sloc(source line of code) static calc', 'code clean up', 'fix initWechaty return error', 'fix missing this of log in io-client', 'rename io-bot to io-client', 'fix gitter url', 'file permission', 'use `brolog` instead of `npmlog` because we need to run log both in nodejs & browser', "Merge branch 'master' of github.com:wechaty/wechaty", 'logout name', 'doc', 'show name right', 'add try/catch block to test(where is circleci test stalled inside)', 'quit apt-get', 'fix docker test error', 'log os name', 'test executable in docker', 'silent apt-get...', 'only test in docker under linux platform', "Merge branch 'master' of github.com:wechaty/wechaty", 'code clean up', 'fix webdriver test fail', "Merge branch 'master' of github.com:wechaty/wechaty", 'code clean', 'code clean up', 'fix injectio bug: return with a new line will cause code return directly', 'code clean up', "Merge branch 'master' of github.com:wechaty/wechaty", 'move `return` from injectio.js to loader', 'use serial test to prevent conflict of getBrowserPids() in parallel test', 'use Config.xxx to load env variable', 'rename `Wechaty` in browser to `WechatyBro`', 'set default back to chrome, for there has bug in phantomjs when call Wechaty.getUserName()', 'fix Wechaty.version() under win32', 'merge', 'log silly to monitor chrome test timeout', 'quite docker apt-get install', "Merge branch 'master' of github.com:wechaty/wechaty", 'rename zixia/wechaty to wechaty/wechaty', 'quite docker build', 'move process.env variables to Config module', 'quite apt-get update when build docker', 'skip instead of todo for an already implementation', 'fix typo', 'issue #21 switch back to phantomjs, and headless & head will all be tested', 'docker code clean up', 'code clean up, v0.3.15', 'eslint work for ava es6', 'ava eslint', 'use sinon spy to test promise', 'add typescript config', 'add typescript config', 'fix docker url', 'make npm less nosiy', 'move xvfb-chromium binary path to config', '0.3.14', 'doc', 'use parallel mode of ava test runner', 'load xvfb-chromium in docker', 'config with methods', 'set -e to exit when cmd fail', 'skip docker xvfb test, because xvfb will be auto started with xvfb-chromium', 'use root in docker, code clean', 'issue #27', 'issue #27 increase --shm-size in docker', 'xvfb + chromium starter', 'doc ava', 'ava test', 'merge', 'working on xvfb tests in docker', "Merge branch 'master' of github.com:wechaty/wechaty", 'xvfb doc', 'doc issue #26 for chrome in docker', 'fix xvfb counting script', 'fix docker xvfb ps', 'compitable for furture args', "Merge branch 'master' of github.com:wechaty/wechaty", 'meaningful log', 'tun off verbose log in standerd unit test', 'fix typo', 'fix npm install in travis ci', 'await all promise instead of the first one', "Merge branch 'master' of github.com:wechaty/wechaty", 'code clean', 'support `test` param with builder', 'use --sand-box args with chrome for some docker leak of privilidge', 'change CI badge url', 'use ephemeral port range', 'docker install script', "Merge branch 'master' of github.com:zixia/wechaty", 'rm tape dependience', 'switch from tape to ava', 'some vps run docker need chrome with args --no-sandbox?', 'merge ava', "Merge branch 'master' of github.com:zixia/wechaty", 'better log in docker(like ci)', 'all unit test passed under ava', 'all unit tests have switched to ava', 'add wechaty-version util', 'add docker unit test', 'switch from onbuild to manual, and workdir to /wechaty', 'switching to ava...', 'beauty badge text', 'fix uuid', 'issue #21 try to replace the code in webwxapp to prevent check', 'fix #21 block `https://wx.qq.com/?t=v2/fake` in phantomjs', "Merge branch 'master' of github.com:zixia/wechaty", '0.3.12', 'doc', 'fix test syntax from bash to sh', 'bug fix', 'get rid of git stderr when read version', 'use bash', 'call quit after init fail', 'code clean', "Merge branch 'master' of github.com:zixia/wechaty", "Merge branch 'master' of github.com:zixia/wechaty", 'code clean', 'use sinon spy to test callbacks', 'more electron links', 'fix port log error for getPort', 'google-chrome-stable instead of google-chrome ?', 'chrome & xvfb installer', "Merge branch 'master' of github.com:zixia/wechaty", 'add script directory', 'more log for browser.quit()', 'add more log to quit', 'rename config to Config', 'restore watchdog unit test', 'fix watchdog & readyState sequence bug', "Merge branch 'master' of github.com:zixia/wechaty", 'fix watchdog bugs', "Merge branch 'master' of github.com:zixia/wechaty", 'do not unref timer for let bug appear', 'code clean', 'Chat as a Service (CaaS)', 'doc', 'watchdog timer should not block process exit', 'show feed detail on watchdog reset', 'elecvator pitch', "Merge branch 'master' of github.com:zixia/wechaty", 'fix typo and show last feed when watchdog timeout', 'Merge pull request #24 from zixia/greenkeeper-apiai-2.0.7', 'add readyStatus to puppet to identify current status for events', 'add vscode config', "Merge branch 'master' of github.com:zixia/wechaty", 'code clean', 'fix webdriver not found on this: bind this to co function', 'chore(package): update apiai to version 2.0.7', 'Merge pull request #23 from zixia/greenkeeper-apiai-2.0.6', 'exclude buggy unit test', 'chore(package): update apiai to version 2.0.6', 'more detail version() info', "Merge branch 'master' of github.com:zixia/wechaty", 'code clean', 'use git revision #hash as wechaty.version if run in dev env', 'code clean', 'track bridge lost bug', 'install chrome from google in docker', '\'glob param should use " instead of \' in tape params under win32', 'log test', 'change server test use another port, because there has a leak of port close in other tests...', 'doc', 'doc', 'doc', 'doc', 'doc', "Merge branch 'master' of github.com:zixia/wechaty", 'doc', 'kiss', 'script for remember how to install chrome in linux', 'call t.end() after exception', 'fix this:', 'move config default values to package.json', 'try to fix glob param in win32', 'upgrade circle chrome to last stable version', 'upgrade circle chrome to last stable version', 'fix brew cask to force install chrome', 'fix brew cask to force install chrome', 'fix last line of \\\\', 'use tape js GLOB instead of shell glob for consistance behaviour of file list and order', 'brew cask install', 'fix chrome head in docker & mac', 'fix test in travis', 'install latest version of chrome for osx in travis', 'start xvfb in travis', 'fix test suite to use WECHATY_HEAD to switch browser', "Merge branch 'master' of github.com:zixia/wechaty", 'wechaty badge with shields', 'Merge pull request #20 from zixia/greenkeeper-chromedriver-2.23.1', 'node destructing', 'add node test for unstructing func param', 'chore(package): update chromedriver to version 2.23.1', "Merge branch 'master' of github.com:zixia/wechaty", 'half work with electron', 'fix io-bot code', 'use linux/mac tests badge', 'use windows tests badge', "Merge branch 'master' of github.com:zixia/wechaty", 'mini wechaty bot only need 7 lines of code!', 'add CaaS list', 'export IoBot', "Merge branch 'master' of github.com:zixia/wechaty", 'modulized IoBot', 'Merge pull request #19 from zixia/greenkeeper-eslint-3.3.1', 'chore(package): update eslint to version 3.3.1', "Merge branch 'master' of github.com:zixia/wechaty", 'doc todo: rewrite to typescript, and switch to AVA', 'suppress phantomjs error message when log.level = silent', 'change brand auto-reply key to wechaty/botie', 'Merge pull request #18 from zixia/greenkeeper-eslint-3.3.0', 'v0.3.9 fixs webUtil / Util rename bug in message.js', 'chore(package): update eslint to version 3.3.0', 'Merge pull request #17 from zixia/greenkeeper-phantomjs-prebuilt-2.1.12', 'Merge pull request #16 from zixia/greenkeeper-chromedriver-2.23.0', 'test', 'test', 'test', 'test', 'test', 'test', 'test', 'test', 'fix webUtil rename bug', 'test', 'chore(package): update phantomjs-prebuilt to version 2.1.12', 'chore(package): update chromedriver to version 2.23.0', 'docker ignore file', 'add UUID support for io protocol', 'doc', 'new wechat bot project link', 'fix docker badge url typo', 'add dockeri.io badge', 'split test', 'fix unit test of room', 'fix unit test run partly bug', '0.3.8', 'clean code', 'switch unit test tool from tap to tape, and modify usage of t.end to fix tape', 'disable info log for new version of webdriver & phantomjs', 'fix for new webdriver limitation: "errorMessage":"Can only set Cookies for the current domain"', 'test greenkeeper.io', 'test greenkeeper.io', 'Merge pull request #15 from zixia/greenkeeper-update-all', 'chore(package): update dependencies', 'test greenkeeper', '0.3.7', '0.3.6', 'manage shrinkwrap for npm', 'log process quit for browserPids', 'fix test bug: race condition when end() not wait quit() (and clean)', 'upgrade to compatible with selenium-webdriver v3', 'enable profile env setting for io-bot', 'fix io protocol for version info', 'docker rebuild with travis ci works well now', 'fix travis rebuild hook', 'try multi webhooks config in travis for only trigger docker hub webhook when test pass', 'test if webhook will rebuild docker image when test fail on travis', 'test webhook with always notification', 'doc', 'doc', 'doc docker build', 'test', 'restore gitter plain url token', 'doc docker', 'docker webhook', 'docker test', "Merge branch 'master' of github.com:zixia/wechaty", 'add docker badges', 'test travis yml url env var', 'use node on debian docker image instead of alpine because of phantomjs need /lib64/ld-linux-x86-64.so.2', 'docker support', 'code clean & io-bot enhance', 'voice from developer', 'support io event `logout`', '10ms is enough to wait 1ms', 'execute should return a promise instead of Error', 'v0.3.0', 'add shutdown to io event', 'enhance io for update scan event', 'shortest example code from 9 to 7 lines', 'enhance io support', 'log for sending ioEvent', "Merge branch 'master' of github.com:zixia/wechaty", 'upgrade Io to cloud version', 'doc', "Merge branch 'master' of github.com:zixia/wechaty", 'bug compatible with issue #11', 'debug #12', 'silent the watchdog timeout warn&err log', 'v0.2.8 fix phantomjs websocket ssl error', "Merge branch 'master' of github.com:zixia/wechaty", 'check this.bridge in timeout', 'fix case sensitive bug for browser name in head', 'debug phantomjs with WebSocket ssl error', 'fix bug in phantomjs: raw WebSocket still throw "The host name did not match any of the valid hosts for this certificate" error with --ignore-ssl-errors', "Merge branch 'master' of github.com:zixia/wechaty", 'debug', 'fix case bug, and filename in start command', 'firebug', 'clean log code', 'merged', 'show timer left', 'log time before timeout when clear a timer', "Merge branch 'master' of github.com:zixia/wechaty", 'put io-bot to bin', 'doc', 'fix test', 'use npm shrinkwrap & version with "latest"', 'get rid of Xvfb for osx', 'travis ci', 'travis ci osx?', 'code clean', 'add back lost media message class', 'fix ding dong bot for contact class', 'better dingdong bot message output', "Merge branch 'master' of github.com:zixia/wechaty", 'strip warning', 'add back message class to event', 'directory re-structure', 'move puppet-web to directory', 'change node version to 6 in CI', 'fix Contact require', 'uncomment unit tests', 'move puppet-web to seprate new sub directory', 'seprate watchdog code to indenpendent file', 'changelog', 'clean code', 'strip the npm package file size by only select whitelist files', 'rename -spec.js to .spec.js', 'add timeout for ding socket test', 'add test/README.me', 'log doc', 'code clean', 'add tcp socket keep alive', 'start watchdog after init, in case of browser no response will cause never reset', 'refine doc', 'comment', 'code clean', 'code clean', 'test', 'comments injectio', 'inc watchdog reset unit test timeout', 'v0.2.2 minor bugfix for watchdog on different platform', 'fix & clean unit test', 'clean code', 'still has bug in CI environment, more check', 'check for puppet & browser before execute', 'v0.2.1 fix watchdog timer unexpected timeout', 'better comment watchDog, seems I catched the bug in last commit', 'try to catch watchDog timer bug in CI env', 'debug timeout...', 'log to debug puppetweb watchdog timeout', 'bug fix: reset browser status clean', 'bug fix: watchdog not reset itself after reset the puppet', 'style comma(to start of the line)', 'log unit test to debug watchdog', 'hide useless Class export', 'v0.2.0', 'fix undefined head error', 'code clean & fix unit test', 'init io before other wechaty inittiations', 'tmp act as ding-dong for test', 'clearer msg digest output for room & contact', 'output use log.info instead of console.log', 'get rid of qrcode-generator in io-bot', 'make heroku happy by listen on PORT', 'fix name too long: heroku app name max length 30', 'deploy to hero ku', 'add Deploy to Heroku button', 'code clean', 'better login check, add retry attempt counter', 'code clean & log for strange situation', 'code clean and better login check', 'rename session in example bots to profile', 'rename SESSION to PROFILE', 'simplify io auth from Basic to Token', 'fix unit test fail', 'fix websocket protocol invalid name error: use | instead of /', 'start to add wechaty.io cloud feature. tune reconnect timeout', 'add wechaty.io websocket auth & event support', 'add shortcut for instantiate Contact from from/to/room', 'strip functions on contact object', 'tune scan & login event', "Merge branch 'master' of github.com:zixia/wechaty", 'add `error` event handler', 'merge', 'debug to log', 't.pass instead of t.ok', 'add self() test', 'seprate tests from 1 file to 2 files', 'start coding wechaty.io', 'use name `type` for puppet setting', 'use WECHATY_LOG(instead of WECHATY_DEBUG) for log level', 'use WECHATY_DEBUG to open phantomjs debug console port 8080', 'add silent to WECHATY_LOG', 'clean Wechaty class, add new class WechatyIo', 'code styling & format', 'mute warn log for watchDogReset unit test', 'fix permission', 'prepare to delete self', 'format code style', 'use es6 notation for key name as the same as the value', 'add version() to Wechaty', 'fix test fail under darwin. bug compatible with buggy ps-tree', 'v0.1.8', 'fix bug: strip the last message.self', 'doc with new self() api', 'v0.1.7', "Merge branch 'master' of github.com:zixia/wechaty", 'typo', 'bug fix & unit test for Wechaty.self()', 'add: Wechaty.self() to test if a message is from self. del: Message.self()', 'clean log messages', 'add switch to allow disable clog function in browser', 'save userId when received login event on time', 'add WECHATY_LOG alias for DEBUG', "Merge branch 'master' of github.com:zixia/wechaty", 'add error event', 'fix: inject all wechaty in browser AFTER angular bootstrap, because wxapp check something when bootstrap.', 'add wx security check js for doc', 'make emit queue in browser be fifo. fix double login event bug', 'npmlog with timestamp doc, return code bugfix and test', 'better timer for watchdog to monitor scan event', 'bugs fix for saveSession & login event & this binding for event handler etc', 'restore back the watchDog function, which is lost when seperate 1 file to 2.', "Merge branch 'master' of github.com:zixia/wechaty", 'doc & handle more error in injectio', 'fix log module name typo', 'rename log name in new module', 'fix bug: support all head in getBrowserPids()', 'rename HtmlUtil to WebUtil', 'add downloadStream unit test', 'seperate event handler from puppwe-web to another source file puppet-web-event', 'quit webdriver after unite test', 'graceful deal with brower, exceptions and restart', 'prototype code', 'remember XMLHttpRequest', 'use fastUrl a same domain picture url. found in wxapp.js', 'roger bot is too noisy too keep session', 'more check for initClog in injectio', 'fix clog init exception and death loop when inject and init it', 'more graceful to check injectio and exceptions', 'rename bot session name to example-bot.wechaty.json', "Merge branch 'master' of github.com:zixia/wechaty", 'save cookies for the session when a scan event emitted', 'v0.1.6', '#4 example for support save image by message stream', "Merge branch 'master' of github.com:zixia/wechaty", 'wx js doc analysis', 'Image Message download stream support', "Merge branch 'master' of github.com:zixia/wechaty", 'first version that support image message, url only now', 'message type use raw number. typeEx() return string', 'make toString() of Contact & Room return the raw id to keep behaviour consit', "Merge branch 'master' of github.com:zixia/wechaty", "Merge branch 'master' of github.com:zixia/wechaty", 'better check for scan url & code', 'more error checks and retry', "Merge branch 'master' of github.com:zixia/wechaty", 'more check on heartbeat in browser', "erge branch 'master' of github.com:zixia/wechaty", 'graceful browser dead', 'more error check & doc', "Merge branch 'master' of github.com:zixia/wechaty", "Merge branch 'master' of github.com:zixia/wechaty", 'more error check & doc', 'add detail error check & desc', 'Update README.md', 'Update README.md', 'Update README.md', 'allow unit test run longer... because open wx.qq.com is slow...', 'webdriver cookie doc', 'doc', "Merge branch 'master' of github.com:zixia/wechaty", 'use 10 seconds to wait a page refresh', "Merge branch 'master' of github.com:zixia/wechaty", 'fix: message send by self set room error', 'fix scan event lost bug, and prevent browser restart when we only need a refresh', 'show qrcode in console in examples. support more html emojis', 'change getContact wait time from 45s to 300s, to prevent load empty group memberlist when theres too many of group and too many of members', 'clear message toString() method to plain text', 'pass all tests', '1. make Message.toString() clear 2. add environment variable WECHATY_PORT support 3. if PORT is not available, pick a new one near PORT 4. rename unit test session name', 'v0.1.3', 'fix obj typo of bridge', 'better watchDog reset, code cleanup', 'add a watchdog for monitor wechaty heartbeat, and restore from unknown state', 'code clean & better error catch & log', "Merge branch 'master' of github.com:zixia/wechaty", 'fix injectio init return value', 'code cleanup', 'ignore unit test json file', 'move session methods to browser class, fix bugs in win32', 'tune injectio timeout ms', 'auto restart browser after webdriver browser crash', 'doc', 'v0.1.1', 'enhance doc, follow function changes', 'minor changes', 'fix path typo', 'replace npmlog to use env, fix phantomjs setCookie warning for ALL_CAP_NAMES', 'env variables doc', 'Update README.md', 'session save & reload all ok, and docs for environment variables', 'fix unit tests for puppet-web', 'fix session promise chaining bug, unit test passed', 'fighting for session support, half work', 'new bug: webdriver.get with promise has strange behaviour', "Merge branch 'master' of github.com:zixia/wechaty", 'test', '1. setCookies & getCookies support & unit tests 2. loadSession & saveSession support & unit tests 3. wechaty.reply() method support', 'fix logout null exception when not login yet.', 'bug fix: logout event save user to tmp before emit', 'detail doc c9 ide', 'add cloud9 ide open link button', 'use co-routine to deal promise in init()', 'change class name from Group to Room', "Merge branch 'master' of github.com:zixia/wechaty", 'doc example', 'typo', 'clean code', 'v0.0.11', 'fix message from address & group bug', 'fix bridge to webdriver json escape error: use base64 to encode, and encodeURIComponent to support UTF8', 'bug fix & use base64 to encode json file', 'fix message to', 'circleci only support linux for free user', 'ci for win32/mac/linux', 'pass unit tests', 'lots of stability enhancement, and part of class re-structed', 'fix retry-promise bug: should treat `undefined` return as rejected', 'cross-env for win32 unit test ci', 'test node v6 only on appveyor', 'add appveyor ci badge', 'add wechaty module unit test', 'more chatbot related links', 'use npm module retry-promise', 'fix npm', 'add dev dependance for ps-tree, and doc to do list', 'todo', 'doc', 'disable strict test, because many npm modules cant pass it', 'v0.0.9', "Merge branch 'master' of github.com:zixia/wechaty", 'add todo list & bot api service list', 'add npmignore', 'use strict mode when run tap unit test', 'logo-en version 2', 'doc improve', 'code clean & better tests', 'enhanced tuling123 bot', 'add escape to json string before send to server', 'minor fix', "Merge branch 'master' of https://github.com/zixia/wechaty", 'tuling to headless', 'helper function: waitData to retry a promise until get right', 'use tap instead of tape, to summary code coverages', 'hudge improvements: new bridge class, new event proxy system, qrcode login use event `scan`, and more.', 'switch unit test from tape to tap', 'add coverage badge', 'use envioriment variable for circleci', 'hide gitter url & add multi os for travis-ci', 'hide gitter url & add multi os for travis-ci', 'half work to enhance message processing...', 'debug message...', 'fix #5', 'add image message class', 'add image message class', 'merge', 'local ci', 'add repo size', 'doc', 'link to itChat with chinese description', 'merge', 'clean', 'fix group load exception when MemberList is not fullfilled', 'add howto install wechaty instruction', 'unit test file name from "tests" to "spec"', 'add 2 python framework of weixin personal bot library', 'support new events: login & logout', 'package', 'v0.0.7', 'fix', 'grammer in readme', 'make phantomjs worked!', 'doc', 'v0.0.6', 'trais ci start xvfb!', 'trais ci use ubuntu trusty!', 'trais ci!', 'test travis', 'try to fix chrome version inside travis-ci', 'upgrade chrome version in circleci', 're-structed code design, server/browser now are flat', "Merge branch 'master' of github.com:zixia/wechaty", 'add browser options', "Merge branch 'master' of github.com:zixia/wechaty", 'doc', 'rename & format code', 'typo fix', 'typo fix', 'typo fix', 'use co(generator) to sync promise calls', 'add travis-ci to gitter webhook', 'use co/yield to sync test', 'add travis-ci badge', 'only test nodejs version 6 and above', 'add travis-ci', 'fix group ready()', 'try to support phantomjs', 'add chromedriver dependence for convinionce', 'doc', 'doc', 'doc', 'compatible phantomjs-prebult executable path', 'add nodejs6 requirement', 'add logo', 'add logo', 'add logos', 'add bing', 'readme', "Merge branch 'gitter-badger-gitter-badge'", 'fix conflict', 'readme', 'v0.0.5', 'badge npm', 'npm badge', 'v0.0.5 prepare', 'add npmlog dependence', 'add circleci', 'doc', 'doc', 'doc', 'doc', 'doc', 'doc', 'doc', 'document', 'Add Gitter badge', 'v0.0.4', 'bug fix', 'ding-dong-bot show group name right', 'v0.0.3', 'format', 'add group & contact class, bug fix, and bot enhancements', 'fix unit test', 'v0.0.2', 'contact class worked!', 'bug fix', 'bug fix', 'example: ding dong auto-replyer', 'runable v0.0.2', 'prepare to publish to npm', 'rename lib to src, default use phantomjs', 'hard code ssl key & cert', 'start with message...', 'finish smoking tests', 'testable web server suite', 'webdriver smoking test', 'half work... fighting', 'half work, for echo bot', 'links', 'unit tests by tape', 'runable tech prototype~', 'going on...', "Merge branch 'master' of github.com:zixia/wechaty-lib", 'hacker typer', 'matrix by bash', 'matrix by js', 'coding...', 'server code init', 'initial commit, start coding...', 'Initial commit']
| 188,819.5
| 377,638
| 0.753068
| 60,564
| 377,639
| 4.667162
| 0.088204
| 0.022999
| 0.015216
| 0.012166
| 0.187906
| 0.166329
| 0.152203
| 0.137404
| 0.112817
| 0.084907
| 0
| 0.025069
| 0.142401
| 377,639
| 1
| 377,639
| 377,639
| 0.847713
| 0
| 0
| 0
| 0
| 286
| 0.86079
| 0.0394
| 0
| 0
| 0.000053
| 0
| 1
| 1
| 0
| false
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
|
0
| 10
|
0f1bc60c2a2a8208300da06c1e2305f1ec3e5903
| 322
|
py
|
Python
|
wpdatabase/exceptions/__init__.py
|
cariad/py-wordpress-database
|
6b88f31531d084bad466a4236f75b15f8aa98599
|
[
"MIT"
] | 1
|
2019-07-02T21:48:10.000Z
|
2019-07-02T21:48:10.000Z
|
wpdatabase/exceptions/__init__.py
|
cariad/py-wordpress-database
|
6b88f31531d084bad466a4236f75b15f8aa98599
|
[
"MIT"
] | null | null | null |
wpdatabase/exceptions/__init__.py
|
cariad/py-wordpress-database
|
6b88f31531d084bad466a4236f75b15f8aa98599
|
[
"MIT"
] | 1
|
2020-09-07T13:56:21.000Z
|
2020-09-07T13:56:21.000Z
|
""" wpdatabase exceptions. """
from wpdatabase.exceptions.invalid_arguments import InvalidArgumentsError # pylint: disable=line-too-long
from wpdatabase.exceptions.invalid_database_name import InvalidDatabaseNameError # pylint: disable=line-too-long
from wpdatabase.exceptions.region_not_known import RegionNotKnownError
| 53.666667
| 112
| 0.857143
| 35
| 322
| 7.742857
| 0.542857
| 0.295203
| 0.265683
| 0.228782
| 0.354244
| 0.354244
| 0.354244
| 0.354244
| 0
| 0
| 0
| 0
| 0.071429
| 322
| 5
| 113
| 64.4
| 0.906355
| 0.26087
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
0f5f78b0f66c974b7c992ca7f715790502131612
| 15,645
|
py
|
Python
|
src/scraping/covid_scraping/test_dump_to_schema.py
|
mfleming99/scraping-qas
|
922e54d89965d735efa5a26afd59163129b25328
|
[
"Apache-2.0"
] | 4
|
2020-08-01T01:29:29.000Z
|
2021-04-26T10:11:34.000Z
|
src/scraping/covid_scraping/test_dump_to_schema.py
|
mfleming99/scraping-qas
|
922e54d89965d735efa5a26afd59163129b25328
|
[
"Apache-2.0"
] | 23
|
2020-03-26T00:48:09.000Z
|
2020-10-20T01:20:45.000Z
|
src/scraping/covid_scraping/test_dump_to_schema.py
|
mfleming99/scraping-qas
|
922e54d89965d735efa5a26afd59163129b25328
|
[
"Apache-2.0"
] | 4
|
2020-06-04T04:17:40.000Z
|
2021-07-08T10:58:37.000Z
|
import json
import uuid
import pdb
def check_keys(idx, obj):
check_keys_v1(idx, obj)
def check_values(idx, obj):
check_values_v1(idx, obj)
def check_keys_v1(idx, obj):
assert 'topic' in obj, "'topic' in the %d example is missing" % idx
assert 'sourceUrl' in obj, "'source' in the %d example is missing" % idx
assert 'sourceName' in obj, "'sourceName' in the %d example is missing" % idx
assert 'dateScraped' in obj, "'dateScraped' in the %d example is missing" % idx
assert 'lastUpdateTime' in obj, "'lastUpdateTime' in the %d example is missing" % idx
assert 'needUpdate' in obj, "'needUpdate' in the %d example is missing" % idx
assert 'containsURLs' in obj, "'containsURLs' in the %d example is missing" % idx
assert 'typeOfInfo' in obj, "'typeOfInfo' in the %d example is missing" % idx
assert 'isAnnotated' in obj, "'isAnnotated' in the %d example is missing" % idx
assert 'responseAuthority' in obj, "'responseAuthority' in the %d example is missing" % idx
assert 'questionUUID' in obj, "'questionUUID' in the %d example is missing" % idx
assert 'answerUUID' in obj, "'answerUUID' in the %d example is missing" % idx
assert 'exampleUUID' in obj, "'exampleUUID' in the %d example is missing" % idx
assert 'questionText' in obj, "'questionText' in the %d example is missing" % idx
assert 'answerText' in obj, "'answerText' in the %d example is missing" % idx
assert 'hasAnswer' in obj, "'hasAnswer' in the %d example is missing" % idx
assert 'targetEducationLevel' in obj, "'targetEducationLevel' in the %d example is missing" % idx
assert 'topic' in obj, "'topic' in the %d example is missing" % idx
assert 'extraData' in obj, "'extraData' in the %d example is missing" % idx
assert 'sourceDate' in obj, "'sourceDate' in the %d example is missing" % idx
return True
def check_keys_v2(idx, obj):
assert 'sourceUrl' in obj, "'source' in the %d example is missing" % idx
assert 'sourceName' in obj, "'sourceName' in the %d example is missing" % idx
assert 'dateScraped' in obj, "'dateScraped' in the %d example is missing" % idx
assert 'sourceDate' in obj, "'sourceDate' in the %d example is missing" % idx
assert 'lastUpdateTime' in obj, "'lastUpdateTime' in the %d example is missing" % idx
assert 'needUpdate' in obj, "'needUpdate' in the %d example is missing" % idx
assert 'typeOfInfo' in obj, "'typeOfInfo' in the %d example is missing" % idx
assert 'isAnnotated' in obj, "'isAnnotated' in the %d example is missing" % idx
assert 'responseAuthority' in obj, "'responseAuthority' in the %d example is missing" % idx
assert 'questionUUID' in obj, "'questionUUID' in the %d example is missing" % idx
assert 'answerUUID' in obj, "'answerUUID' in the %d example is missing" % idx
assert 'ID' in obj, "'exampleUUID' in the %d example is missing" % idx
assert 'questionText' in obj, "'questionText' in the %d example is missing" % idx
assert 'questionOriginal' in obj, "'questionOriginal' in the %d example is missing" % idx
assert 'answerText' in obj, "'answerText' in the %d example is missing" % idx
assert 'answerOriginal' in obj, "'answerOriginal' in the %d example is missing" % idx
assert 'answerContainsURLs' in obj, "'answerContainsURLs' in the %d example is missing" % idx
assert 'answerToks2URL' in obj, "'answerToks2URL' in the %d example is missing" % idx
assert 'hasAnswer' in obj, "'hasAnswer' in the %d example is missing" % idx
assert 'targetEducationLevel' in obj, "'targetEducationLevel' in the %d example is missing" % idx
assert 'targetLocation' in obj, "'targetLocation' in the %d example is missing" % idx
assert 'topic' in obj, "'topic' in the %d example is missing" % idx
assert 'language' in obj, "'language' in the %d example is missing" % idx
assert 'extraData' in obj, "'extraData' in the %d example is missing" % idx
return True
def check_keys_v3(idx, obj):
assert 'sourceUrl' in obj, "'source' in the %d example is missing" % idx
assert 'sourceName' in obj, "'sourceName' in the %d example is missing" % idx
assert 'needUpdate' in obj, "'needUpdate' in the %d example is missing" % idx
assert 'typeOfInfo' in obj, "'typeOfInfo' in the %d example is missing" % idx
assert 'isAnnotated' in obj, "'isAnnotated' in the %d example is missing" % idx
assert 'responseAuthority' in obj, "'responseAuthority' in the %d example is missing" % idx
assert 'questionUUID' in obj, "'questionUUID' in the %d example is missing" % idx
assert 'answerUUID' in obj, "'answerUUID' in the %d example is missing" % idx
assert 'ID' in obj, "'exampleUUID' in the %d example is missing" % idx
assert 'questionText' in obj, "'questionText' in the %d example is missing" % idx
assert 'questionOriginal' in obj, "'questionOriginal' in the %d example is missing" % idx
assert 'answerText' in obj, "'answerText' in the %d example is missing" % idx
assert 'answerOriginal' in obj, "'answerOriginal' in the %d example is missing" % idx
assert 'answerContainsURLs' in obj, "'answerContainsURLs' in the %d example is missing" % idx
assert 'answerToks2URL' in obj, "'answerToks2URL' in the %d example is missing" % idx
assert 'hasAnswer' in obj, "'hasAnswer' in the %d example is missing" % idx
assert 'targetEducationLevel' in obj, "'targetEducationLevel' in the %d example is missing" % idx
assert 'targetLocation' in obj, "'targetLocation' in the %d example is missing" % idx
assert 'topic' in obj, "'topic' in the %d example is missing" % idx
assert 'language' in obj, "'language' in the %d example is missing" % idx
assert 'extraData' in obj, "'extraData' in the %d example is missing" % idx
assert 'dateLastChanged' in obj, "'dateLastChanged' in the %d example is missing" % idx
return True
def check_values_v1(idx, obj):
'''
sourceUrl: Url for the source
sourceName: name of the source (CDC, JHU, NYtimes, etc)
dateScraped: POSIX time of what the data was scraped
sourceDate: POSIX time of when this data was published
lastUpdateTime (last time the story was updated): POSIX time
needUpdate (does this need to be updated or is it static information): boolean
containsURLs (does this contain urls): boolean
typeOfInfo: QA, Fact, Opinion, etc?
isAnnotated: boolean
responseAuthority: str (if it is at JHU to know who the answer came from)
questionUUID: UUID (stored as a string)
answerUUID: UUID (stored as a string)
exampleUUID: UUID (stored as a string)
questionText: str
answerText: str
hasAnswer? boolean
targetEducationLevel: "Elementary", "HS", "College", "NA"
topic: str
extraData (this contains any extra data that you think is useful): dictionary
'''
assert isinstance(obj['topic'], str), "'topic' in the %d example is not a string" % idx
assert isinstance(obj['sourceUrl'], str), "'source' in the %d example is not a string" % idx
assert isinstance(obj['sourceName'], str), "'sourceName' in the %d example is not a string" % idx
assert isinstance(obj['dateScraped'], float), "'dateScraped' in the %d example is not a float" % idx
assert isinstance(obj['needUpdate'], bool), "'needUpdate' in the %d example is not a boolean" % idx
assert isinstance(obj['containsURLs'], bool), "'containsURLs' in the %d example is not a boolean" % idx
assert isinstance(obj['typeOfInfo'], str), "'typeOfInfo' in the %d example is not a string" % idx
assert isinstance(obj['isAnnotated'], bool), "'isAnnotated' in the %d example is not a boolean" % idx
assert isinstance(obj['responseAuthority'], str), "'responseAuthority' in the %d example is not a string" % idx
assert isinstance(obj['questionUUID'], str), "'questionUUID' in the %d example is not a str" % idx
assert isinstance(uuid.UUID(obj['questionUUID']), uuid.UUID), "'questionUUID' in the %d example cannot be converted to UUID" % idx
assert isinstance(obj['answerUUID'], str), "'answerUUID' in the %d example is not a str" % idx
assert isinstance(uuid.UUID(obj['answerUUID']), uuid.UUID), "'answerUUID' in the %d example cannot be converted to UUID" % idx
assert isinstance(obj['exampleUUID'], str), "'exampleUUID' in the %d example is not a str" % idx
assert isinstance(uuid.UUID(obj['exampleUUID']), uuid.UUID), "'exampleUUID' in the %d example cannot be converted to UUID" % idx
assert isinstance(obj['questionText'], str), "'questionText' in the %d example is not a string" % idx
assert isinstance(obj['answerText'], str), "'answerText' in the %d example is not a string" % idx
assert isinstance(obj['hasAnswer'], bool), "'hasAnswer' in the %d example is not a boolean" % idx
assert isinstance(obj['targetEducationLevel'], str), "'targetEducationLevel' in the %d example is not a string" % idx
assert isinstance(obj['topic'], str), "'topic' in the %d example is not a string" % idx
assert isinstance(obj['extraData'], dict), "'extraData' in the %d example is not a dict" % idx
return True
def check_values_v2(idx, obj):
assert isinstance(obj['sourceUrl'], str), "'source' in the %d example is not a string" % idx
assert isinstance(obj['sourceName'], str), "'sourceName' in the %d example is not a string" % idx
assert isinstance(obj['dateScraped'], float), "'dateScraped' in the %d example is not a float" % idx
assert isinstance(obj['needUpdate'], bool), "'needUpdate' in the %d example is not a boolean" % idx
assert isinstance(obj['typeOfInfo'], str), "'typeOfInfo' in the %d example is not a string" % idx
assert isinstance(obj['isAnnotated'], bool), "'isAnnotated' in the %d example is not a boolean" % idx
assert isinstance(obj['responseAuthority'], str), "'responseAuthority' in the %d example is not a string" % idx
assert isinstance(obj['questionUUID'], str), "'questionUUID' in the %d example is not a str" % idx
assert isinstance(uuid.UUID(obj['questionUUID']), uuid.UUID), "'questionUUID' in the %d example cannot be converted to UUID" % idx
assert isinstance(obj['answerUUID'], str), "'answerUUID' in the %d example is not a str" % idx
assert isinstance(uuid.UUID(obj['answerUUID']), uuid.UUID), "'answerUUID' in the %d example cannot be converted to UUID" % idx
assert isinstance(obj['ID'], str), "'ID' in the %d example is not a str" % idx
assert obj['ID'].split('|||')[0] == obj['sourceName'], "'ID' in the %d example does not have sourceName as a prefix"
assert isinstance(obj['questionOriginal'], str), "'questionOriginal' in the %d example is not a string" % idx
assert isinstance(obj['questionText'], str), "'questionText' in the %d example is not a string" % idx
assert isinstance(obj['answerOriginal'], str), "'questionOriginal' in the %d example is not a string" % idx
assert isinstance(obj['answerText'], str), "'answerText' in the %d example is not a string" % idx
assert isinstance(obj['answerContainsURLs'], bool), "'answerContainsURLs' in the %d example is not a boolean" % idx
assert isinstance(obj['answerToks2URL'], dict), "'answerToks2URLs' in the %d example is not a dict" % idx
assert isinstance(obj['hasAnswer'], bool), "'hasAnswer' in the %d example is not a boolean" % idx
assert isinstance(obj['targetEducationLevel'], str), "'targetEducationLevel' in the %d example is not a string" % idx
assert isinstance(obj['targetLocation'], str), "'targetLocation' in the %d example is not a string" % idx
assert isinstance(obj['topic'], list), "'topic' in the %d example is not a string" % idx
assert isinstance(obj['extraData'], dict), "'extraData' in the %d example is not a dict" % idx
return True
def check_values_v3(idx, obj):
assert isinstance(obj['sourceUrl'], str), "'source' in the %d example is not a string" % idx
assert isinstance(obj['sourceName'], str), "'sourceName' in the %d example is not a string" % idx
assert isinstance(obj['needUpdate'], bool), "'needUpdate' in the %d example is not a boolean" % idx
assert isinstance(obj['typeOfInfo'], str), "'typeOfInfo' in the %d example is not a string" % idx
assert isinstance(obj['isAnnotated'], bool), "'isAnnotated' in the %d example is not a boolean" % idx
assert isinstance(obj['responseAuthority'], str), "'responseAuthority' in the %d example is not a string" % idx
assert isinstance(obj['questionUUID'], str), "'questionUUID' in the %d example is not a str" % idx
assert isinstance(uuid.UUID(obj['questionUUID']), uuid.UUID), "'questionUUID' in the %d example cannot be converted to UUID" % idx
assert isinstance(obj['answerUUID'], str), "'answerUUID' in the %d example is not a str" % idx
assert isinstance(uuid.UUID(obj['answerUUID']), uuid.UUID), "'answerUUID' in the %d example cannot be converted to UUID" % idx
assert isinstance(obj['ID'], str), "'ID' in the %d example is not a str" % idx
assert obj['ID'].split('|||')[0] == obj['sourceName'], "'ID' in the %d example does not have sourceName as a prefix"
assert isinstance(obj['questionOriginal'], str), "'questionOriginal' in the %d example is not a string" % idx
assert isinstance(obj['questionText'], str), "'questionText' in the %d example is not a string" % idx
assert isinstance(obj['answerOriginal'], str), "'questionOriginal' in the %d example is not a string" % idx
assert isinstance(obj['answerText'], str), "'answerText' in the %d example is not a string" % idx
assert isinstance(obj['answerContainsURLs'], bool), "'answerContainsURLs' in the %d example is not a boolean" % idx
assert isinstance(obj['answerToks2URL'], dict), "'answerToks2URLs' in the %d example is not a dict" % idx
assert isinstance(obj['hasAnswer'], bool), "'hasAnswer' in the %d example is not a boolean" % idx
assert isinstance(obj['targetEducationLevel'], str), "'targetEducationLevel' in the %d example is not a string" % idx
assert isinstance(obj['targetLocation'], str), "'targetLocation' in the %d example is not a string" % idx
assert isinstance(obj['topic'], list), "'topic' in the %d example is not a string" % idx
assert isinstance(obj['extraData'], dict), "'extraData' in the %d example is not a dict" % idx
assert isinstance(obj['dateLastChanged'], float), "'dateLastChanged' in the %d example is not a float" % idx
return True
def test_schema_v1(path):
data = []
with open(path) as fp:
for idx, line in enumerate(fp):
obj = json.loads(line.strip())
if not (check_keys_v1(idx, obj) and check_values_v1(idx, obj)):
return False
return True
def test_schema_v2(path):
data = []
with open(path) as fp:
for idx, line in enumerate(fp):
obj = json.loads(line.strip())
if not (check_keys_v2(idx, obj) and check_values_v2(idx, obj)):
return False
return True
def test_schema_v3(path):
data = []
with open(path) as fp:
for idx, line in enumerate(fp):
obj = json.loads(line.strip())
if not (check_keys_v3(idx, obj) and check_values_v3(idx, obj)):
return False
return True
def test_jsonlines(path, version='v0.1'):
if 'v0.1' == version:
return test_schema_v1(path)
elif 'v0.2' == version:
return test_schema_v2(path)
elif 'v0.3' == version:
return test_schema_v3(path)
else:
print("test_jsonlines received invalid version")
return False
if __name__ == '__main__':
test_jsonlines("../../data/scraping/interalCOVIDinfosheet_v0.1.jsonl")
| 68.021739
| 134
| 0.687312
| 2,232
| 15,645
| 4.793459
| 0.066308
| 0.06309
| 0.075708
| 0.164034
| 0.904384
| 0.881671
| 0.875035
| 0.875035
| 0.871857
| 0.861856
| 0
| 0.003173
| 0.194183
| 15,645
| 229
| 135
| 68.318777
| 0.845483
| 0.052924
| 0
| 0.805263
| 0
| 0
| 0.529364
| 0.012492
| 0
| 0
| 0
| 0
| 0.710526
| 1
| 0.063158
| false
| 0
| 0.015789
| 0
| 0.163158
| 0.005263
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
0f76c38d46e2efabe5af4786c348a1daa5e097b3
| 16,890
|
py
|
Python
|
tests/scanner/scanners/retention_scanner_test.py
|
aarontp/forseti-security
|
6d03c14114468ff6170846392b7d14a0619fa9f0
|
[
"Apache-2.0"
] | 921
|
2017-03-09T01:01:24.000Z
|
2019-04-16T11:38:25.000Z
|
tests/scanner/scanners/retention_scanner_test.py
|
aarontp/forseti-security
|
6d03c14114468ff6170846392b7d14a0619fa9f0
|
[
"Apache-2.0"
] | 1,996
|
2017-03-03T22:07:50.000Z
|
2019-04-17T00:02:28.000Z
|
tests/scanner/scanners/retention_scanner_test.py
|
aarontp/forseti-security
|
6d03c14114468ff6170846392b7d14a0619fa9f0
|
[
"Apache-2.0"
] | 241
|
2017-03-09T01:00:04.000Z
|
2019-04-15T18:53:35.000Z
|
# Copyright 2018 The Forseti Security Authors. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Tests for RetentionScanner."""
import collections
import json
import unittest
import unittest.mock as mock
import tempfile
from tests.scanner.test_data import fake_retention_scanner_data as frsd
from tests.unittest_utils import ForsetiTestCase
from tests.unittest_utils import get_datafile_path
from google.cloud.forseti.common.gcp_type import organization
from google.cloud.forseti.common.gcp_type import project
from google.cloud.forseti.common.gcp_type import folder
from google.cloud.forseti.scanner.audit import retention_rules_engine as rre
from google.cloud.forseti.scanner.scanners import retention_scanner
def get_expect_violation_item(res_map, bucket_id, rule_name, rule_index):
"""Create violations for expected violation list"""
lifecycle_str = json.dumps(res_map.get(bucket_id).get_lifecycle_rule(),
sort_keys=True)
return rre.RuleViolation(
resource_id=bucket_id,
resource_name=u'buckets/'+bucket_id,
resource_type=res_map.get(bucket_id).type,
full_name=res_map.get(bucket_id).full_name,
rule_name=rule_name,
rule_index=rule_index,
violation_type=rre.VIOLATION_TYPE,
violation_data=lifecycle_str,
resource_data=res_map.get(bucket_id).data)
def get_mock_bucket_retention(bucket_data):
"""Get the mock function for testcases"""
def _mock_bucket_retention(_=None, resource_type='bucket'):
"""Creates a list of GCP resource mocks retrieved by the scanner"""
if resource_type == 'bigquery_table':
return []
if resource_type != 'bucket':
raise ValueError(
'unexpected resource type: got %s, bucket',
resource_type,
)
ret = []
for data in bucket_data:
ret.append(frsd.get_fake_bucket_resource(data))
return ret
return _mock_bucket_retention
def get_mock_table_retention(table_data):
"""Get the mock function for testcases"""
def _mock_table_retention(_=None, resource_type='bigquery_table'):
"""Creates a list of GCP resource mocks retrieved by the scanner"""
if resource_type == 'bucket':
return []
if resource_type != 'bigquery_table':
raise ValueError(
'unexpected resource type: got %s, table',
resource_type,
)
ret = []
for data in table_data:
ret.append(frsd.get_fake_table_resource(data))
return ret
return _mock_table_retention
class RetentionScannerTest(ForsetiTestCase):
def setUp(self):
"""Set up."""
def test_bucket_retention_on_multi_buckets(self):
"""Test a rule that includes more than one bucket IDs"""
rule_yaml = """
rules:
- name: multiple buckets in a single rule
applies_to:
- bucket
resource:
- type: bucket
resource_ids:
- fake-bucket-1
- fake-bucket-2
- fake-bucket-3
minimum_retention: 90
"""
bucket_test_data=[
frsd.FakeBucketDataInput(
id='fake-bucket-1',
project=frsd.PROJECT1,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':89})]
),
frsd.FakeBucketDataInput(
id='fake-bucket-2',
project=frsd.PROJECT1,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':90})]
),
frsd.FakeBucketDataInput(
id='fake-bucket-3',
project=frsd.PROJECT1,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':89})]
),
frsd.FakeBucketDataInput(
id='fake-bucket-4',
project=frsd.PROJECT1,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':89})]
),
]
_mock_bucket = get_mock_bucket_retention(bucket_test_data)
with tempfile.NamedTemporaryFile(suffix='.yaml') as f:
f.write(rule_yaml.encode())
f.flush()
_fake_bucket_list = _mock_bucket(None, 'bucket')
self.scanner = retention_scanner.RetentionScanner(
{}, {}, mock.MagicMock(), '', '', f.name)
mock_data_access = mock.MagicMock()
mock_data_access.scanner_iter.side_effect = _mock_bucket
mock_service_config = mock.MagicMock()
mock_service_config.model_manager = mock.MagicMock()
mock_service_config.model_manager.get.return_value = (
mock.MagicMock(), mock_data_access)
self.scanner.service_config = mock_service_config
all_lifecycle_info = self.scanner._retrieve()
all_violations = self.scanner._find_violations(all_lifecycle_info)
res_map = {}
for i in _fake_bucket_list:
res_map[i.id] = i
expected_violations = set([
get_expect_violation_item(res_map, 'fake-bucket-1',
'multiple buckets in a single rule', 0),
get_expect_violation_item(res_map, 'fake-bucket-3',
'multiple buckets in a single rule', 0)
])
self.assertEqual(expected_violations, set(all_violations))
def test_bucket_retention_on_multi_projects(self):
"""Test a rule that includes more than one project IDs"""
rule_yaml = """
rules:
- name: multiple projects in a single rule
applies_to:
- bucket
resource:
- type: project
resource_ids:
- def-project-1
- def-project-2
- def-project-3
minimum_retention: 90
"""
bucket_test_data=[
frsd.FakeBucketDataInput(
id='fake-bucket-11',
project=frsd.PROJECT1,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':89})]
),
frsd.FakeBucketDataInput(
id='fake-bucket-12',
project=frsd.PROJECT1,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':90})]
),
frsd.FakeBucketDataInput(
id='fake-bucket-13',
project=frsd.PROJECT1,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':89})]
),
frsd.FakeBucketDataInput(
id='fake-bucket-2',
project=frsd.PROJECT2,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':90})]
),
frsd.FakeBucketDataInput(
id='fake-bucket-3',
project=frsd.PROJECT3,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':89})]
),
frsd.FakeBucketDataInput(
id='fake-bucket-4',
project=frsd.PROJECT4,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':89})]
),
]
_mock_bucket = get_mock_bucket_retention(bucket_test_data)
with tempfile.NamedTemporaryFile(suffix='.yaml') as f:
f.write(rule_yaml.encode())
f.flush()
_fake_bucket_list = _mock_bucket(None, resource_type='bucket')
self.scanner = retention_scanner.RetentionScanner(
{}, {}, mock.MagicMock(), '', '', f.name)
mock_data_access = mock.MagicMock()
mock_data_access.scanner_iter.side_effect = _mock_bucket
mock_service_config = mock.MagicMock()
mock_service_config.model_manager = mock.MagicMock()
mock_service_config.model_manager.get.return_value = (
mock.MagicMock(), mock_data_access)
self.scanner.service_config = mock_service_config
all_lifecycle_info = self.scanner._retrieve()
all_violations = self.scanner._find_violations(all_lifecycle_info)
res_map = {}
for i in _fake_bucket_list:
res_map[i.id] = i
expected_violations = set([
get_expect_violation_item(res_map, 'fake-bucket-11',
'multiple projects in a single rule', 0),
get_expect_violation_item(res_map, 'fake-bucket-13',
'multiple projects in a single rule', 0),
get_expect_violation_item(res_map, 'fake-bucket-3',
'multiple projects in a single rule', 0)
])
self.assertEqual(expected_violations, set(all_violations))
def test_bucket_retention_on_mix_project_and_bucket(self):
"""Test yaml file that includes more than one rules"""
rule_yaml = """
rules:
- name: project 1 min 90
applies_to:
- bucket
resource:
- type: project
resource_ids:
- def-project-1
minimum_retention: 90
- name: buckets max 100
applies_to:
- bucket
resource:
- type: bucket
resource_ids:
- fake-bucket-11
- fake-bucket-12
- fake-bucket-13
maximum_retention: 100
"""
bucket_test_data=[
frsd.FakeBucketDataInput(
id='fake-bucket-11',
project=frsd.PROJECT1,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':90})]
),
frsd.FakeBucketDataInput(
id='fake-bucket-12',
project=frsd.PROJECT1,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':89})]
),
frsd.FakeBucketDataInput(
id='fake-bucket-13',
project=frsd.PROJECT1,
lifecycles=[]
),
]
_mock_bucket = get_mock_bucket_retention(bucket_test_data)
with tempfile.NamedTemporaryFile(suffix='.yaml') as f:
f.write(rule_yaml.encode())
f.flush()
_fake_bucket_list = _mock_bucket(resource_type='bucket')
self.scanner = retention_scanner.RetentionScanner(
{}, {}, mock.MagicMock(), '', '', f.name)
mock_data_access = mock.MagicMock()
mock_data_access.scanner_iter.side_effect = _mock_bucket
mock_service_config = mock.MagicMock()
mock_service_config.model_manager = mock.MagicMock()
mock_service_config.model_manager.get.return_value = (
mock.MagicMock(), mock_data_access)
self.scanner.service_config = mock_service_config
all_lifecycle_info = self.scanner._retrieve()
all_violations = self.scanner._find_violations(all_lifecycle_info)
res_map = {}
for i in _fake_bucket_list:
res_map[i.id] = i
expected_violations = set([
get_expect_violation_item(res_map, 'fake-bucket-12',
'project 1 min 90', 0),
get_expect_violation_item(res_map, 'fake-bucket-13',
'buckets max 100', 1)
])
self.assertEqual(expected_violations, set(all_violations))
def test_bucket_retention_on_multi_rules_on_a_project(self):
"""Test yaml file that includes more than one rules that works on the same project"""
rule_yaml = """
rules:
- name: project 1 min 90
applies_to:
- bucket
resource:
- type: project
resource_ids:
- def-project-1
minimum_retention: 90
- name: project 1 min 100
applies_to:
- bucket
resource:
- type: project
resource_ids:
- def-project-1
minimum_retention: 100
- name: project 1 min 110
applies_to:
- bucket
resource:
- type: project
resource_ids:
- def-project-1
minimum_retention: 110
"""
bucket_test_data=[
frsd.FakeBucketDataInput(
id='fake-bucket-11',
project=frsd.PROJECT1,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':90})]
),
frsd.FakeBucketDataInput(
id='fake-bucket-12',
project=frsd.PROJECT1,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':100})]
),
frsd.FakeBucketDataInput(
id='fake-bucket-13',
project=frsd.PROJECT1,
lifecycles=[frsd.LifecycleInput(action='Delete', conditions={'age':110})]
),
]
_mock_bucket = get_mock_bucket_retention(bucket_test_data)
with tempfile.NamedTemporaryFile(suffix='.yaml') as f:
f.write(rule_yaml.encode())
f.flush()
_fake_bucket_list = _mock_bucket(resource_type='bucket')
self.scanner = retention_scanner.RetentionScanner(
{}, {}, mock.MagicMock(), '', '', f.name)
mock_data_access = mock.MagicMock()
mock_data_access.scanner_iter.side_effect = _mock_bucket
mock_service_config = mock.MagicMock()
mock_service_config.model_manager = mock.MagicMock()
mock_service_config.model_manager.get.return_value = (
mock.MagicMock(), mock_data_access)
self.scanner.service_config = mock_service_config
all_lifecycle_info = self.scanner._retrieve()
all_violations = self.scanner._find_violations(all_lifecycle_info)
res_map = {}
for i in _fake_bucket_list:
res_map[i.id] = i
expected_violations = set([
get_expect_violation_item(res_map, 'fake-bucket-11',
'project 1 min 100', 1),
get_expect_violation_item(res_map, 'fake-bucket-11',
'project 1 min 110', 2),
get_expect_violation_item(res_map, 'fake-bucket-12',
'project 1 min 110', 2)
])
self.assertEqual(expected_violations, set(all_violations))
def test_table_retention(self):
"""Test yaml file that includes more than one rules that works on the same project"""
rule_yaml = """
rules:
- name: project 5 max 90 on table
applies_to:
- bigquery_table
resource:
- type: table
resource_ids:
- "def-project-5:ds01.fake-table-01"
maximum_retention: 100
"""
table_test_data=[
frsd.FakeTableDataInput(
table_id='fake-table-01',
dataset=frsd.DATASET1,
expiration_time=frsd.DEFAULT_TABLE_CREATE_TIME+110 * rre._MS_PER_DAY
),
frsd.FakeTableDataInput(
table_id='fake-table-02',
dataset=frsd.DATASET1,
expiration_time=frsd.DEFAULT_TABLE_CREATE_TIME+89 * rre._MS_PER_DAY
),
frsd.FakeTableDataInput(
table_id='fake-table-03',
dataset=frsd.DATASET1,
expiration_time=frsd.DEFAULT_TABLE_CREATE_TIME+91 * rre._MS_PER_DAY
),
]
_mock_bucket = get_mock_table_retention(table_test_data)
with tempfile.NamedTemporaryFile(suffix='.yaml') as f:
f.write(rule_yaml.encode())
f.flush()
_fake_bucket_list = _mock_bucket(resource_type='bigquery_table')
self.scanner = retention_scanner.RetentionScanner(
{}, {}, mock.MagicMock(), '', '', f.name)
mock_data_access = mock.MagicMock()
mock_data_access.scanner_iter.side_effect = _mock_bucket
mock_service_config = mock.MagicMock()
mock_service_config.model_manager = mock.MagicMock()
mock_service_config.model_manager.get.return_value = (
mock.MagicMock(), mock_data_access)
self.scanner.service_config = mock_service_config
all_lifecycle_info = self.scanner.run()
| 34.896694
| 93
| 0.590527
| 1,807
| 16,890
| 5.258439
| 0.124516
| 0.044201
| 0.035782
| 0.048832
| 0.815723
| 0.783098
| 0.748369
| 0.736582
| 0.723637
| 0.6988
| 0
| 0.017538
| 0.314683
| 16,890
| 483
| 94
| 34.968944
| 0.803369
| 0.069686
| 0
| 0.724599
| 0
| 0
| 0.16688
| 0.002174
| 0
| 0
| 0
| 0
| 0.010695
| 1
| 0.029412
| false
| 0
| 0.034759
| 0
| 0.085562
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7e88127cb7b32380762e9df2fde0f1a32a16e618
| 186
|
py
|
Python
|
post-release-data.py
|
virgilwashere/easy-aws-login
|
00fb36756381d2e99218b7f0a5a3bcd01239890f
|
[
"BSD-2-Clause"
] | 6
|
2019-04-19T14:48:19.000Z
|
2020-02-19T16:04:02.000Z
|
post-release-data.py
|
virgilwashere/easy-aws-login
|
00fb36756381d2e99218b7f0a5a3bcd01239890f
|
[
"BSD-2-Clause"
] | null | null | null |
post-release-data.py
|
virgilwashere/easy-aws-login
|
00fb36756381d2e99218b7f0a5a3bcd01239890f
|
[
"BSD-2-Clause"
] | 1
|
2019-09-05T06:37:29.000Z
|
2019-09-05T06:37:29.000Z
|
#!/usr/bin/env python
import os
print(f'{{"tag_name": "v{os.environ["CODE_VERSION"]}", "name": "{os.environ["CODE_VERSION"]}", "body": "Release number {os.environ["CODE_VERSION"]}"}}')
| 37.2
| 152
| 0.655914
| 27
| 186
| 4.37037
| 0.62963
| 0.228814
| 0.330508
| 0.508475
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.069892
| 186
| 4
| 153
| 46.5
| 0.682081
| 0.107527
| 0
| 0
| 0
| 0.5
| 0.865854
| 0.573171
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0.5
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 1
|
0
| 11
|
7e89b849d35406b47fd9d97b0dd1bb84ac6431e3
| 22,959
|
py
|
Python
|
tests/unit/ppr/test_change_statement.py
|
doug-lovett/test-schemas-dl
|
a05e87b983f2c3559c081dd65aff05e2c67e6186
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/ppr/test_change_statement.py
|
doug-lovett/test-schemas-dl
|
a05e87b983f2c3559c081dd65aff05e2c67e6186
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/ppr/test_change_statement.py
|
doug-lovett/test-schemas-dl
|
a05e87b983f2c3559c081dd65aff05e2c67e6186
|
[
"Apache-2.0"
] | null | null | null |
# Copyright © 2020 Province of British Columbia
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Test Suite to ensure the PPR Change Statement (request and response) schema is valid.
"""
import copy
from registry_schemas import validate
from registry_schemas.example_data.ppr import CHANGE_STATEMENT
def test_valid_change_request_AC_vehicle():
"""Assert that the schema is performing as expected for an add vehicle collateral change request."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'AC'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['addSecuredParties']
del statement['deleteSecuredParties']
del statement['deleteDebtors']
del statement['addDebtors']
del statement['deleteVehicleCollateral']
del statement['deleteGeneralCollateral']
del statement['addGeneralCollateral']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert is_valid
def test_valid_change_request_AC_general():
"""Assert that the schema is performing as expected for an add general collateral change request."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'AC'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['addSecuredParties']
del statement['deleteSecuredParties']
del statement['deleteDebtors']
del statement['addDebtors']
del statement['deleteVehicleCollateral']
del statement['deleteGeneralCollateral']
del statement['addVehicleCollateral']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert is_valid
def test_valid_change_request_AC_both():
"""Assert that the schema is performing as expected for an add vehicle and general collateral change request."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'AC'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['addSecuredParties']
del statement['deleteSecuredParties']
del statement['deleteDebtors']
del statement['addDebtors']
del statement['deleteVehicleCollateral']
del statement['deleteGeneralCollateral']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert is_valid
def test_valid_change_request_DR():
"""Assert that the schema is performing as expected for a debtor release change request."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'DR'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['addSecuredParties']
del statement['deleteSecuredParties']
del statement['addDebtors']
del statement['addVehicleCollateral']
del statement['deleteVehicleCollateral']
del statement['deleteGeneralCollateral']
del statement['addGeneralCollateral']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert is_valid
def test_valid_change_request_DT():
"""Assert that the schema is performing as expected for a debtor transfer change request."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'DT'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['addSecuredParties']
del statement['deleteSecuredParties']
del statement['addVehicleCollateral']
del statement['deleteVehicleCollateral']
del statement['deleteGeneralCollateral']
del statement['addGeneralCollateral']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert is_valid
def test_valid_change_request_PD():
"""Assert that the schema is performing as expected for a partial discharge change request."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'PD'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['addDebtors']
del statement['deleteDebtors']
del statement['addSecuredParties']
del statement['deleteSecuredParties']
del statement['addVehicleCollateral']
del statement['deleteVehicleCollateral']
del statement['addGeneralCollateral']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert is_valid
def test_valid_change_request_ST():
"""Assert that the schema is performing as expected for a secured party transfer change request."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'ST'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['addDebtors']
del statement['deleteDebtors']
del statement['addVehicleCollateral']
del statement['deleteVehicleCollateral']
del statement['deleteGeneralCollateral']
del statement['addGeneralCollateral']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert is_valid
def test_valid_change_request_SU_all():
"""Assert that the schema is performing as expected for a subsitution of general and vehicle collateral change request."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'SU'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['addDebtors']
del statement['deleteDebtors']
del statement['addSecuredParties']
del statement['deleteSecuredParties']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert is_valid
def test_valid_change_request_SU_vehicle():
"""Assert that the schema is performing as expected for a subsitution of vehicle collateral change request."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'SU'
del statement['baseDebtor']
del statement['addSecuredParties']
del statement['deleteSecuredParties']
del statement['deleteDebtors']
del statement['addDebtors']
del statement['deleteGeneralCollateral']
del statement['addGeneralCollateral']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert is_valid
def test_valid_change_request_SU_general():
"""Assert that the schema is performing as expected for a subsitution of general collateral change request."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'SU'
del statement['baseDebtor']
del statement['addSecuredParties']
del statement['deleteSecuredParties']
del statement['deleteDebtors']
del statement['addDebtors']
del statement['deleteVehicleCollateral']
del statement['addVehicleCollateral']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert is_valid
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert is_valid
def test_valid_change_response():
"""Assert that the schema is performing as expected for an change response."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert is_valid
def test_invalid_change_AC_missing_collateral():
"""Assert that an invalid change statement fails - AC change but no add collateral."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['addVehicleCollateral']
del statement['addGeneralCollateral']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_PD_missing_collateral():
"""Assert that an invalid change statement fails - PD change but no delete collateral."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'PD'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['deleteVehicleCollateral']
del statement['deleteGeneralCollateral']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_DR_missing_debtors():
"""Assert that an invalid change statement fails - DC change but no delete debtors."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'DR'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['deleteDebtors']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_DT_missing_delete():
"""Assert that an invalid change statement fails - DT change but no delete debtors."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'DT'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['deleteDebtors']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_DT_missing_add():
"""Assert that an invalid change statement fails - DT change but no add debtors."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'DT'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['addDebtors']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_ST_missing_add():
"""Assert that an invalid change statement fails - ST change but no add secured parties."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'ST'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['addSecuredParties']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_ST_missing_delete():
"""Assert that an invalid change statement fails - ST change but no delete secured parties."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'ST'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['deleteSecuredParties']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_SU_missing_add():
"""Assert that an invalid change statement fails - SU change but no add collateral."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'SU'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['addGeneralCollateral']
del statement['addVehicleCollateral']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_SU_missing_delete():
"""Assert that an invalid change statement fails - SU change but no delete collateral."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['changeType'] = 'SU'
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['deleteGeneralCollateral']
del statement['deleteVehicleCollateral']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_baseregnum():
"""Assert that an invalid change statement fails - base registration number too long."""
statement = copy.deepcopy(CHANGE_STATEMENT)
statement['baseRegistrationNumber'] = 'B0000123456789'
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_clientref():
"""Assert that an invalid change statement fails - client reference number too long."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
statement['clientReferenceId'] = 'RSXXXXXXXX00001234567'
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_doc_id():
"""Assert that an invalid change statement fails - document id too long."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
statement['documentId'] = '00123456789'
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_changetype():
"""Assert that an invalid change statement fails - change type is invalid."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
statement['changeType'] = 'XX'
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_timestamp():
"""Assert that an invalid change statement fails - create timestamp format is invalid."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
statement['createDateTime'] = 'XXXXXXXXXXXX'
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_regnum():
"""Assert that an invalid change statement fails - registration number too long."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
statement['changeRegistrationNumber'] = 'D000012345678'
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_delete_debtor_name():
"""Assert that an invalid change statement fails - delete debtor name is missing."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
del statement['deleteDebtors'][0]['businessName']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_add_debtor_address():
"""Assert that an invalid change statement fails - add debtor address is missing."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
del statement['addDebtors'][0]['address']
del statement['addDebtors'][0]['partyId']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_delete_secured_name():
"""Assert that an invalid change statement fails - delete secured party name is missing."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
del statement['deleteSecuredParties'][0]['businessName']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_add_secured_address():
"""Assert that an invalid change statement fails - add secured party address is missing."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
del statement['addSecuredParties'][0]['address']
del statement['addSecuredParties'][0]['partyId']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_delete_vehicle_type():
"""Assert that an invalid change statement fails - delete vehicle collateral type is missing."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
del statement['deleteVehicleCollateral'][0]['type']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_add_vehicle_serial():
"""Assert that an invalid change statement fails - add vehicle collateral serial number is missing."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
del statement['addVehicleCollateral'][0]['serialNumber']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_delete_general_desc():
"""Assert that an invalid change statement fails - delete general collateral description is missing."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
del statement['deleteGeneralCollateral'][0]['description']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_add_general_desc():
"""Assert that an invalid change statement fails - add general collateral description is missing."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
del statement['addGeneralCollateral'][0]['description']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_missing_debtor_first():
"""Assert that an invalid change statement fails - base debtor name is missing."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['createDateTime']
del statement['changeRegistrationNumber']
del statement['payment']
del statement['baseDebtor']['businessName']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_missing_regparty_address():
"""Assert that an invalid change statement fails - registering party address is missing."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
del statement['registeringParty']['address']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_missing_basereg():
"""Assert that an invalid change statement fails - base registration number is missing."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
del statement['baseRegistrationNumber']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_missing_regparty():
"""Assert that an invalid change statement fails - registering party is missing."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
del statement['registeringParty']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
def test_invalid_change_missing_changetype():
"""Assert that an invalid change statement fails - change type missing."""
statement = copy.deepcopy(CHANGE_STATEMENT)
del statement['baseDebtor']
del statement['changeType']
is_valid, errors = validate(statement, 'changeStatement', 'ppr')
if errors:
for err in errors:
print(err.message)
print(errors)
assert not is_valid
| 29.933507
| 126
| 0.702295
| 2,539
| 22,959
| 6.233557
| 0.069319
| 0.124344
| 0.032855
| 0.053074
| 0.909332
| 0.905225
| 0.901055
| 0.888734
| 0.875845
| 0.836608
| 0
| 0.003548
| 0.202099
| 22,959
| 766
| 127
| 29.972585
| 0.860364
| 0.1754
| 0
| 0.876228
| 0
| 0
| 0.204595
| 0.053647
| 0
| 0
| 0
| 0
| 0.078585
| 1
| 0.076621
| false
| 0
| 0.005894
| 0
| 0.082515
| 0.157171
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7e9c5ec0971c011cdc0602f1eacdd8dac86f3831
| 176
|
py
|
Python
|
faebryk/exporters/netlist/__init__.py
|
ruben-iteng/faebryk
|
58810da4cb24581f421c39784ccf61e1a4ea8ae5
|
[
"MIT"
] | 7
|
2021-11-22T20:02:14.000Z
|
2022-03-04T19:35:04.000Z
|
faebryk/exporters/netlist/__init__.py
|
ruben-iteng/faebryk
|
58810da4cb24581f421c39784ccf61e1a4ea8ae5
|
[
"MIT"
] | 45
|
2021-11-22T20:24:40.000Z
|
2022-03-25T11:01:28.000Z
|
faebryk/exporters/netlist/__init__.py
|
ruben-iteng/faebryk
|
58810da4cb24581f421c39784ccf61e1a4ea8ae5
|
[
"MIT"
] | 3
|
2021-11-22T19:58:08.000Z
|
2021-12-17T16:14:08.000Z
|
# This file is part of the faebryk project
# SPDX-License-Identifier: MIT
import faebryk.exporters.netlist.kicad
import faebryk.exporters.netlist.graph
from .netlist import *
| 25.142857
| 42
| 0.806818
| 25
| 176
| 5.68
| 0.72
| 0.183099
| 0.309859
| 0.408451
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.119318
| 176
| 6
| 43
| 29.333333
| 0.916129
| 0.392045
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
0e22fd731d59bed7ba584b654941d6f1717d240b
| 81
|
py
|
Python
|
brs_data/__init__.py
|
harwiltz/bach-robot-suite
|
1126a665266cc5819d331af79effd03f3efe043f
|
[
"MIT"
] | null | null | null |
brs_data/__init__.py
|
harwiltz/bach-robot-suite
|
1126a665266cc5819d331af79effd03f3efe043f
|
[
"MIT"
] | null | null | null |
brs_data/__init__.py
|
harwiltz/bach-robot-suite
|
1126a665266cc5819d331af79effd03f3efe043f
|
[
"MIT"
] | null | null | null |
import os
def getDataPath():
return os.path.join(os.path.dirname(__file__))
| 16.2
| 50
| 0.728395
| 12
| 81
| 4.583333
| 0.75
| 0.218182
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.135802
| 81
| 4
| 51
| 20.25
| 0.785714
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 8
|
0e7ed59d5679c568d1087485ca2eb821046402e7
| 167
|
py
|
Python
|
forward_api/forward_app/views/__init__.py
|
shiningsunnyday/demodraft
|
20f0b67a1b0c37efb74a2b48af99ceb45663315d
|
[
"MIT"
] | null | null | null |
forward_api/forward_app/views/__init__.py
|
shiningsunnyday/demodraft
|
20f0b67a1b0c37efb74a2b48af99ceb45663315d
|
[
"MIT"
] | null | null | null |
forward_api/forward_app/views/__init__.py
|
shiningsunnyday/demodraft
|
20f0b67a1b0c37efb74a2b48af99ceb45663315d
|
[
"MIT"
] | null | null | null |
from .user_views import *
from .helper_views import *
from .stance_views import *
from .scoring_views import *
from .policy_views import *
from .comment_views import *
| 27.833333
| 28
| 0.790419
| 24
| 167
| 5.25
| 0.375
| 0.52381
| 0.595238
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.137725
| 167
| 6
| 29
| 27.833333
| 0.875
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
7efef0875594ece931f8cccb635c24bfceca0984
| 149
|
py
|
Python
|
Part_2_intermediate/mod_1/lesson_6/ex_3_packages_modules/home_budget/data_parsers/excel.py
|
Mikma03/InfoShareacademy_Python_Courses
|
3df1008c8c92831bebf1625f960f25b39d6987e6
|
[
"MIT"
] | null | null | null |
Part_2_intermediate/mod_1/lesson_6/ex_3_packages_modules/home_budget/data_parsers/excel.py
|
Mikma03/InfoShareacademy_Python_Courses
|
3df1008c8c92831bebf1625f960f25b39d6987e6
|
[
"MIT"
] | null | null | null |
Part_2_intermediate/mod_1/lesson_6/ex_3_packages_modules/home_budget/data_parsers/excel.py
|
Mikma03/InfoShareacademy_Python_Courses
|
3df1008c8c92831bebf1625f960f25b39d6987e6
|
[
"MIT"
] | null | null | null |
def load_expenditures():
return "Expenditures from excel"
def load_expenditures_categories():
return "Expenditures categories from excel"
| 18.625
| 47
| 0.771812
| 16
| 149
| 7
| 0.4375
| 0.125
| 0.339286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.161074
| 149
| 7
| 48
| 21.285714
| 0.896
| 0
| 0
| 0
| 0
| 0
| 0.385135
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.5
| true
| 0
| 0
| 0.5
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
7d1303a658c946898777040c5f25f39e15dfe1b9
| 5,350
|
py
|
Python
|
tests/unit/transformer/converter/test_converter.py
|
SimpleConstructs/fixed-width-parser
|
b9bb4953e66dcea2b6ce3aeb2fed58a3f34a784b
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/transformer/converter/test_converter.py
|
SimpleConstructs/fixed-width-parser
|
b9bb4953e66dcea2b6ce3aeb2fed58a3f34a784b
|
[
"Apache-2.0"
] | 3
|
2021-07-18T14:34:38.000Z
|
2021-07-25T12:49:09.000Z
|
tests/unit/transformer/converter/test_converter.py
|
SimpleConstructs/fixed-width-transformer
|
b9bb4953e66dcea2b6ce3aeb2fed58a3f34a784b
|
[
"Apache-2.0"
] | null | null | null |
import pandas as pd
import pytest
from transformer.converter import ConverterConfig, converter
from transformer.library.exceptions import ConversionError
class TestStrConverter:
class TestSuccess:
def test_int_to_str(self):
config = ConverterConfig(
segment="body",
field_name="test1",
name="StrConverter"
)
dataframes = {
"header": None,
"body": pd.DataFrame({
"test1": [1, 2, 3, 4, 5]
})
}
results = converter.StrConverter().run(config,dataframes[config.segment][config.field_name])
print(results)
assert len(results.index) == len(dataframes[config.segment][config.field_name].index)
for f in results:
assert isinstance(f, str)
def test_float_to_int(self):
config = ConverterConfig(
segment="body",
field_name="test1",
name="StrConverter"
)
dataframes = {
"header": None,
"body": pd.DataFrame({
"test1": [1.0, 2.0, 3.0, 4.0, 5.0]
})
}
results = converter.StrConverter().run(config,dataframes[config.segment][config.field_name])
print(results)
assert len(results.index) == len(dataframes[config.segment][config.field_name].index)
for f in results:
assert isinstance(f, str)
def test_str_to_str(self):
config = ConverterConfig(
segment="body",
field_name="test1",
name="StrConverter"
)
dataframes = {
"header": None,
"body": pd.DataFrame({
"test1": ["lalala", "lololol", "lelelele"]
})
}
results = converter.StrConverter().run(config,dataframes[config.segment][config.field_name])
print(results)
assert len(results.index) == len(dataframes[config.segment][config.field_name].index)
for f in results:
assert isinstance(f, str)
def test_escaped_str_to_str(self):
config = ConverterConfig(
segment="body",
field_name="test1",
name="StrConverter"
)
dataframes = {
"header": None,
"body": pd.DataFrame({
"test1": ["\"asda\"\"asdasd", "\"asd\"\"asdlololol", "lelelele"]
})
}
results = converter.StrConverter().run(config,dataframes[config.segment][config.field_name])
print(results)
assert len(results.index) == len(dataframes[config.segment][config.field_name].index)
for f in results:
assert isinstance(f, str)
class TestNumberConverter:
class TestSuccess:
def test_str_to_int(self):
config = ConverterConfig(
segment="body",
field_name="field1",
name="IntConverter"
)
dataframes = {
"body": pd.DataFrame({
"field1": ["1", "2", "3", "4", "5"]
})
}
results = converter.NumberConverter().run(config, dataframes[config.segment][config.field_name])
print(results)
assert len(results.index) == len(dataframes[config.segment][config.field_name].index)
for f in results:
assert isinstance(f, int)
def test_str_to_float(self):
config = ConverterConfig(
segment="body",
field_name="field1",
name="IntConverter"
)
dataframes = {
"body": pd.DataFrame({
"field1": ["1.0", "2.0", "3.0", "4.0", "5.0"]
})
}
results = converter.NumberConverter().run(config,dataframes[config.segment][config.field_name])
print(results)
assert len(results.index) == len(dataframes[config.segment][config.field_name].index)
for f in results:
assert isinstance(f, float)
def test_invalid_to_int(self):
config = ConverterConfig(
segment="body",
field_name="field1",
name="IntConverter"
)
dataframes = {
"body": pd.DataFrame({
"field1": ["adasd", "*$)_@#(_)@#", "1"]
})
}
with pytest.raises(ConversionError):
converter.NumberConverter().run(config,dataframes[config.segment][config.field_name])
def test_invalid_to_float(self):
config = ConverterConfig(
segment="body",
field_name="field1",
name="IntConverter"
)
dataframes = {
"body": pd.DataFrame({
"field1": ["adasd", "*$)_@#(_)@#", "1"]
})
}
with pytest.raises(ConversionError):
converter.NumberConverter().run(config,dataframes[config.segment][config.field_name])
| 36.394558
| 108
| 0.494953
| 463
| 5,350
| 5.609071
| 0.140389
| 0.076242
| 0.123989
| 0.156334
| 0.874471
| 0.874471
| 0.874471
| 0.87139
| 0.87139
| 0.869465
| 0
| 0.014625
| 0.386542
| 5,350
| 147
| 109
| 36.394558
| 0.776661
| 0
| 0
| 0.716418
| 0
| 0
| 0.069707
| 0
| 0
| 0
| 0
| 0
| 0.089552
| 1
| 0.059701
| false
| 0
| 0.029851
| 0
| 0.119403
| 0.044776
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7d3e0b1e9287cbe5b679a2691f13d76dfb971bed
| 3,595
|
py
|
Python
|
examples/test_samples.py
|
BachFive/GammaGo_3
|
3eb8e82eef01718684ba8594be49fdac04503e5e
|
[
"MIT"
] | null | null | null |
examples/test_samples.py
|
BachFive/GammaGo_3
|
3eb8e82eef01718684ba8594be49fdac04503e5e
|
[
"MIT"
] | null | null | null |
examples/test_samples.py
|
BachFive/GammaGo_3
|
3eb8e82eef01718684ba8594be49fdac04503e5e
|
[
"MIT"
] | 1
|
2020-06-11T21:55:31.000Z
|
2020-06-11T21:55:31.000Z
|
('KGS-2003-19-7582-.tar.gz', 4996)
('KGS-2009-19-18837-.tar.gz', 6007)
('KGS-2014-19-13029-.tar.gz', 9375)
('KGS-2008-19-14002-.tar.gz', 9208)
('KGS-2001-19-2298-.tar.gz', 673)
('KGS-2003-19-7582-.tar.gz', 297)
('KGS-2009-19-18837-.tar.gz', 10404)
('KGS-2011-19-19099-.tar.gz', 2985)
('KGS-2009-19-18837-.tar.gz', 1993)
('KGS-2012-19-13665-.tar.gz', 13548)
('KGS-2002-19-3646-.tar.gz', 3359)
('KGS-2004-19-12106-.tar.gz', 4433)
('KGS-2003-19-7582-.tar.gz', 2832)
('KGS-2004-19-12106-.tar.gz', 8405)
('KGS-2010-19-17536-.tar.gz', 914)
('KGS-2004-19-12106-.tar.gz', 4124)
('KGS-2006-19-10388-.tar.gz', 7189)
('KGS-2011-19-19099-.tar.gz', 5115)
('KGS-2005-19-13941-.tar.gz', 12913)
('KGS-2014-19-13029-.tar.gz', 3369)
('KGS-2014-19-13029-.tar.gz', 3881)
('KGS-2008-19-14002-.tar.gz', 1658)
('KGS-2004-19-12106-.tar.gz', 1776)
('KGS-2007-19-11644-.tar.gz', 2746)
('KGS-2012-19-13665-.tar.gz', 8488)
('KGS-2014-19-13029-.tar.gz', 8996)
('KGS-2005-19-13941-.tar.gz', 9858)
('KGS-2007-19-11644-.tar.gz', 9734)
('KGS-2003-19-7582-.tar.gz', 5332)
('KGS-2004-19-12106-.tar.gz', 6218)
('KGS-2006-19-10388-.tar.gz', 8801)
('KGS-2011-19-19099-.tar.gz', 7397)
('KGS-2009-19-18837-.tar.gz', 9086)
('KGS-2010-19-17536-.tar.gz', 1721)
('KGS-2005-19-13941-.tar.gz', 5481)
('KGS-2005-19-13941-.tar.gz', 2051)
('KGS-2004-19-12106-.tar.gz', 7883)
('KGS-2004-19-12106-.tar.gz', 6058)
('KGS-2005-19-13941-.tar.gz', 9562)
('KGS-2009-19-18837-.tar.gz', 2204)
('KGS-2012-19-13665-.tar.gz', 12449)
('KGS-2008-19-14002-.tar.gz', 445)
('KGS-2013-19-13783-.tar.gz', 9911)
('KGS-2005-19-13941-.tar.gz', 11219)
('KGS-2009-19-18837-.tar.gz', 7189)
('KGS-2005-19-13941-.tar.gz', 9037)
('KGS-2007-19-11644-.tar.gz', 1757)
('KGS-2013-19-13783-.tar.gz', 13045)
('KGS-2011-19-19099-.tar.gz', 18836)
('KGS-2003-19-7582-.tar.gz', 7543)
('KGS-2010-19-17536-.tar.gz', 6982)
('KGS-2003-19-7582-.tar.gz', 1176)
('KGS-2009-19-18837-.tar.gz', 17397)
('KGS-2003-19-7582-.tar.gz', 3118)
('KGS-2007-19-11644-.tar.gz', 1240)
('KGS-2003-19-7582-.tar.gz', 350)
('KGS-2003-19-7582-.tar.gz', 5876)
('KGS-2015-19-8133-.tar.gz', 3267)
('KGS-2010-19-17536-.tar.gz', 12935)
('KGS-2009-19-18837-.tar.gz', 10659)
('KGS-2010-19-17536-.tar.gz', 14678)
('KGS-2010-19-17536-.tar.gz', 13778)
('KGS-2013-19-13783-.tar.gz', 7487)
('KGS-2010-19-17536-.tar.gz', 12847)
('KGS-2013-19-13783-.tar.gz', 6255)
('KGS-2004-19-12106-.tar.gz', 8124)
('KGS-2008-19-14002-.tar.gz', 1716)
('KGS-2015-19-8133-.tar.gz', 4672)
('KGS-2006-19-10388-.tar.gz', 8013)
('KGS-2006-19-10388-.tar.gz', 8966)
('KGS-2006-19-10388-.tar.gz', 8346)
('KGS-2011-19-19099-.tar.gz', 15977)
('KGS-2011-19-19099-.tar.gz', 11369)
('KGS-2008-19-14002-.tar.gz', 7457)
('KGS-2002-19-3646-.tar.gz', 1399)
('KGS-2006-19-10388-.tar.gz', 10064)
('KGS-2009-19-18837-.tar.gz', 15340)
('KGS-2008-19-14002-.tar.gz', 2733)
('KGS-2010-19-17536-.tar.gz', 14532)
('KGS-2007-19-11644-.tar.gz', 11588)
('KGS-2005-19-13941-.tar.gz', 6259)
('KGS-2005-19-13941-.tar.gz', 8959)
('KGS-2011-19-19099-.tar.gz', 3038)
('KGS-2002-19-3646-.tar.gz', 252)
('KGS-2009-19-18837-.tar.gz', 7336)
('KGS-2003-19-7582-.tar.gz', 265)
('KGS-2005-19-13941-.tar.gz', 13444)
('KGS-2015-19-8133-.tar.gz', 6439)
('KGS-2011-19-19099-.tar.gz', 2920)
('KGS-2014-19-13029-.tar.gz', 5088)
('KGS-2005-19-13941-.tar.gz', 3960)
('KGS-2011-19-19099-.tar.gz', 4076)
('KGS-2012-19-13665-.tar.gz', 9938)
('KGS-2006-19-10388-.tar.gz', 2757)
('KGS-2014-19-13029-.tar.gz', 10803)
('KGS-2014-19-13029-.tar.gz', 9509)
('KGS-2007-19-11644-.tar.gz', 491)
('KGS-2015-19-8133-.tar.gz', 4493)
('KGS-2005-19-13941-.tar.gz', 3475)
('KGS-2014-19-13029-.tar.gz', 5978)
| 35.594059
| 36
| 0.638387
| 700
| 3,595
| 3.278571
| 0.19
| 0.217865
| 0.047059
| 0.073203
| 0.8122
| 0.8122
| 0
| 0
| 0
| 0
| 0
| 0.440353
| 0.055633
| 3,595
| 100
| 37
| 35.95
| 0.235641
| 0
| 0
| 0
| 0
| 0
| 0.690403
| 0.690403
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
adb39e8916a3647e7d15699f98dda4b0ef64ba79
| 226,138
|
py
|
Python
|
reports/report_builder.py
|
CodeForAfrica/gmmp
|
d7ffe2dac16bd57e81bb3555ddea9df1fe7e9ebf
|
[
"Apache-2.0"
] | 4
|
2020-01-05T09:14:19.000Z
|
2022-02-17T03:22:09.000Z
|
reports/report_builder.py
|
CodeForAfrica/gmmp
|
d7ffe2dac16bd57e81bb3555ddea9df1fe7e9ebf
|
[
"Apache-2.0"
] | 68
|
2019-12-23T02:19:55.000Z
|
2021-04-23T06:13:36.000Z
|
reports/report_builder.py
|
CodeForAfrica/gmmp
|
d7ffe2dac16bd57e81bb3555ddea9df1fe7e9ebf
|
[
"Apache-2.0"
] | 2
|
2020-11-07T12:23:21.000Z
|
2021-11-07T18:21:31.000Z
|
# Python
import io
from collections import Counter, OrderedDict
import logging
import datetime
# Django
from django.conf import settings
from django.db import connection
from django.db.models import Count, FieldDoesNotExist
# 3rd Party
from django_countries import countries
import xlsxwriter
# Project
from forms.models import (
NewspaperPerson, TelevisionJournalist,
person_models, sheet_models, journalist_models,
tm_person_models, tm_sheet_models, tm_journalist_models,
dm_person_models, dm_sheet_models, dm_journalist_models, all_models,
broadcast_journalist_models)
from forms.modelutils import (TOPICS, GENDER, SPACE, OCCUPATION, FUNCTION, SCOPE,
YESNO, AGES, AGES_PEOPLE_IN_THE_NEWS, SOURCE, VICTIM_OF, SURVIVOR_OF, IS_PHOTOGRAPH, AGREE_DISAGREE,
RETWEET, TV_ROLE, MEDIA_TYPES, TM_MEDIA_TYPES, DM_MEDIA_TYPES, CountryRegion,
TV_ROLE_ANNOUNCER, TV_ROLE_REPORTER, REPORTERS)
from .report_details import * # noqa
from reports.models import Weights
from reports.historical import Historical, canon
from reports.report_dataset import (tabulate_dataset, ws_05_dataset, ws_06_dataset, ws_09_dataset,
ws_15_dataset, ws_28b_dataset, ws_28c_dataset, ws_30_dataset, ws_38_dataset, ws_41_dataset, ws_47_dataset, ws_48_dataset, ws_83_dataset,
ws_85_dataset, ws_92_dataset, ws_93_dataset, ws_97_dataset, ws_100_dataset, ws_101_dataset, ws_102_dataset, ws_104_dataset, )
SHEET_MEDIA_GROUPS = [
(TM_MEDIA_TYPES, tm_sheet_models),
(DM_MEDIA_TYPES, dm_sheet_models)
]
PERSON_MEDIA_GROUPS = [
(TM_MEDIA_TYPES, tm_person_models),
(DM_MEDIA_TYPES, dm_person_models)
]
JOURNO_MEDIA_GROUPS = [
(TM_MEDIA_TYPES, tm_journalist_models),
(DM_MEDIA_TYPES, dm_journalist_models)
]
media_split = [
"Print, Radio, Television",
"Internet",
"Twitter"
]
COUNTRY_RECODES = {
u'QM': u'BE', # Belgium - French -> Belgium
u'QN': u'BE', # Belgium - Flemish -> Belgium
u'QO': u'GB', # England -> United Kingdom
u'QP': u'GB', # Northern Ireland-> United Kingdom
u'QQ': u'GB', # Scotland -> United Kingdom
u'QR': u'GB', # Wales -> United Kingdom
}
COUNTRY_ENCODES = {
'BE': [('QM', 'Belgium - French and Flemish'), ('QN', 'Belgium - French and Flemish')],
'GB': [('QO', 'United Kingdom - England, Northern Ireland, Scotland and Wales'),
('QP', 'United Kingdom - England, Northern Ireland, Scotland and Wales'),
('QQ', 'United Kingdom - England, Northern Ireland, Scotland and Wales'),
('QR', 'United Kingdom - England, Northern Ireland, Scotland and Wales')]
}
# =================
# General utilities
# =================
def has_field(model, fld):
try:
model._meta.get_field(fld)
return True
except FieldDoesNotExist:
return False
def p(n, d):
""" Helper to calculate the percentage of n / d,
returning 0 if d == 0.
"""
if d == 0:
return 0.0
return float(n) / d
def clean_title(text):
"""
Return the string passed in stripped of its numbers and parentheses
Except for the DRC. Of course.
"""
text = str(text)
if text != "Congo (the Democratic Republic of the)":
return text[text.find(')')+1:].lstrip()
return text
def get_sheet_model_name_field(media_type):
if media_type == "Internet":
return "website_name"
elif media_type == "Twitter":
return "media_name"
elif media_type == "Print":
return "newspaper_name"
elif media_type == "Television":
return "channel"
elif media_type == "Radio":
return "channel"
def sheet_name_to_num(sheet):
"""
Helper function to convert sheet name to it's numerical equivalent taking
into account different type of sheets.
e.g. returns 10 for ws_10, 10.1 for ws_10b, and 202 for ws_s02.
Sheets are banded: 0 - 199 normal sheets, 200 - 399 s sheets, and 400+ for
sr sheets.
"""
stripped_sheet = sheet.strip("wsrbc_")
try:
num = int(stripped_sheet, 10)
except ValueError:
num = 0
if sheet.endswith("b"):
num += 0.1
if sheet.endswith("c"):
num += 0.2
if sheet.startswith("ws_sr"):
return 400 + num
if sheet.startswith("ws_s"):
return 200 + num
return num
class XLSXReportBuilder:
def __init__(self, form):
from reports.views import CountryForm, RegionForm
self.form = form
self.log = logging.getLogger(__name__)
if isinstance(form, CountryForm):
self.countries = form.filter_countries()
self.regions = get_country_region(form.cleaned_data['country'])
self.report_type = 'country'
elif isinstance(form, RegionForm):
region = [name for i, name in form.get_form_regions() if str(i) == form.cleaned_data['region']][0]
self.countries = get_region_countries(region)
self.regions = [(0, region)]
self.report_type = 'region'
else:
self.countries = get_countries()
self.regions = get_regions()
self.report_type = 'global'
if self.report_type == 'country':
self.decode_countries()
self.country_list = [code for code, name in self.countries]
self.all_regions = add_transnational_to_regions(self.regions) if self.report_type == 'global' else self.regions
self.all_region_list = [name for id, name in self.all_regions]
self.region_list = [name for id, name in self.regions]
if self.report_type == 'global':
self.recode_countries()
# Various utilities used for displaying details
self.male_female = [(id, value) for id, value in GENDER if id in [1, 2]]
self.male_female_ids = [id for id, value in self.male_female]
self.female = [(id, value) for id, value in GENDER if id == 1]
self.female_ids = [id for id, value in self.female]
self.yes = [(id, value) for id, value in YESNO if id == 'Y']
self.current_year = settings.REPORTS_CURRENT_YEAR
self.historical_year = settings.REPORTS_HISTORICAL_YEAR
self.historical = Historical()
self.historical.load()
def recode_countries(self):
# squash recoded countries
self.countries = [(c, n) for c, n in self.countries if c not in COUNTRY_RECODES]
# add GB and Belgium
self.countries.append((u'BE', u'Belgium - French and Flemish'))
self.countries.append((u'GB', u'United Kingdom - England, Northern Ireland, Scotland and Wales'))
self.countries.sort(key=lambda p: p[1])
def decode_countries(self):
countries = [(c, n) for c, n in self.countries if c in COUNTRY_ENCODES]
if countries:
self.countries = COUNTRY_ENCODES[countries[0][0]]
def build(self, dataset_sheets=[]):
"""
Generate an Excel spreadsheet and return it as a string.
"""
output = io.BytesIO()
workbook = xlsxwriter.Workbook(output)
# setup formats
self.heading = workbook.add_format(FORMATS['heading'])
self.col_heading = workbook.add_format(FORMATS['col_heading'])
self.col_heading_def = workbook.add_format(FORMATS['col_heading_def'])
self.sec_col_heading = workbook.add_format(FORMATS['sec_col_heading'])
self.sec_col_heading_def = workbook.add_format(FORMATS['sec_col_heading_def'])
self.label = workbook.add_format(FORMATS['label'])
self.N = workbook.add_format(FORMATS['N'])
self.P = workbook.add_format(FORMATS['P'])
sheets = list(WS_INFO.keys())
# choose only those suitable for this report type
report_type_sheets = []
for sheet in sheets:
sheet_info = WS_INFO[sheet].get(self.historical_year)
if sheet_info and ("reports" in sheet_info and self.report_type in sheet_info["reports"]):
report_type_sheets.append(sheet)
sheets = sorted(report_type_sheets, key=sheet_name_to_num)
self.write_key_sheet(workbook, sheets)
self.write_aggregate_sheet(workbook)
for sheet in sheets:
sheet_info = WS_INFO[sheet][self.historical_year]
ws = workbook.add_worksheet(sheet_info['name'])
self.write_headers(ws, sheet_info['title'], sheet_info['desc'])
self.log.info("Building sheet %s", sheet)
if sheet in dataset_sheets:
getattr(self, sheet)(ws, True)
else:
getattr(self, sheet)(ws)
self.log.info("Completed sheet %s", sheet)
if not settings.DEBUG:
self.write_raw_data_sheets(workbook)
workbook.close()
output.seek(0)
return output.read()
def write_key_sheet(self, workbook, sheets):
ws = workbook.add_worksheet('Key')
ws.write(0, 0, 'Key to Query Sheets', self.heading)
ws.write(2, 0, 'N')
ws.write(2, 1, 'number of items (weighted)')
ws.write(3, 0, 'N (raw)')
ws.write(3, 1, 'number of items (NOT weighted)')
ws.write(5, 0, 'Number', self.col_heading)
ws.write(5, 1, 'Number in 2015 Report', self.col_heading)
ws.write(5, 2, 'Title', self.col_heading)
ws.write(5, 3, 'Description', self.col_heading)
for i, sheet in enumerate(sheets):
sheet_info = WS_INFO[sheet][self.historical_year]
ws.write(6 + i, 0, sheet_info['name'])
ws.write(6 + i, 1, sheet_info['title'])
ws.write(6 + i, 1, sheet_info.get('historical', ''))
ws.write(6 + i, 2, sheet_info['desc'])
def write_aggregate_sheet(self, workbook):
ws = workbook.add_worksheet('Aggregates')
c = 1
ws.write(0, 0, 'Total amount of sheets, sources and reporters by country and media type.')
for data_type, models in all_models.items():
r = 3
ws.write(r-1, c+1, data_type)
for i, col in enumerate(MEDIA_TYPES):
ws.write(r, c+1+i, clean_title(col[1]), self.col_heading)
ws.write(r + 1, c+1+i, "N (raw)")
r = 6
for region_id, region in self.regions:
counts = Counter()
for media_type, model in models.items():
if data_type == 'Sheets':
country_field = 'country'
else:
country_field = model.sheet_name() + '__country'
rows = model.objects\
.values(country_field)\
.filter(**{country_field + '__in': self.country_list})\
.annotate(n=Count('id'))
for row in rows:
if row[country_field] is not None:
# Get media id's to assign to counts
media_id = [media[0] for media in MEDIA_TYPES if media[1] == media_type][0]
counts.update({(media_id, self.recode_country(row[country_field])): row['n']})
self.write_primary_row_heading(ws, region, r=r)
region_countries = [(code, country) for code, country in self.countries if code in REGION_COUNTRY_MAP[region]]
for i, row in enumerate(region_countries):
row_id, row_heading = row
ws.write(r+i, c, clean_title(row_heading), self.label)
c += 1
for col_id, col_heading in MEDIA_TYPES:
# values for this column
for i, row in enumerate(region_countries):
row_id, row_title = row
n = counts.get((col_id, row_id), 0)
ws.write(r+i, c, n, self.N)
c += 1
# Position for next region
c -= (len(MEDIA_TYPES) + 1)
r += (len(region_countries) + 2)
c += (len(MEDIA_TYPES) + 3)
def write_raw_data_sheets(self, workbook):
for name, model in sheet_models.items():
ws = workbook.add_worksheet('Raw - %s sheets' % name)
query = model.objects
if self.country_list:
query = query.filter(country__in=self.country_list)
self.write_raw_data(ws, name, model, query, write_weights=True)
for name, model in person_models.items():
ws = workbook.add_worksheet('Raw - %s sources' % name)
query = model.objects
if self.country_list:
query = query.filter(**{model.sheet_name() + '__country__in': self.country_list})\
self.write_raw_data(ws, name, model, query)
for name, model in journalist_models.items():
ws = workbook.add_worksheet('Raw - %s journalists' % name)
query = model.objects
if self.country_list:
query = query.filter(**{model.sheet_name() + '__country__in': self.country_list})\
self.write_raw_data(ws, name, model, query)
def write_raw_data(self, ws, name, model, query, write_weights=False):
self.log.info("Writing raw data for %s" % model)
# precompute the columns that are lookups
lookups = {}
for fld in model._meta.fields:
if fld.choices:
lookups[fld.attname] = dict(fld.choices)
# TODO: handle foreign key, too
# headers
c = 0
for fld in model._meta.fields:
attr = fld.attname
if attr in lookups:
ws.write(0, c, fld.name + '_code')
c += 1
ws.write(0, c, fld.name)
c += 1
if attr == 'topic':
ws.write(0, c, 'major topic')
c += 1
ws.write(0, c, 'women focus topic')
c += 1
# Add column for weights
if write_weights:
ws.write(0, c, "Weight")
weights = Weights.objects.all()
weights = {(w.country, w.media_type): w.weight for w in weights}
country_regions = CountryRegion.objects.all()
country_regions = {cr.id: cr.region for cr in country_regions}
# values
for r, obj in enumerate(query.all()):
c = 0
for fld in obj._meta.fields:
attr = fld.attname
if attr == 'country':
v = countries.alpha3(obj.country.code)
elif attr == 'country_region_id':
v = country_regions[obj.country_region_id]
else:
v = getattr(obj, attr)
if isinstance(v, datetime.datetime):
v = v.replace(tzinfo=None)
# raw value
try:
basestring
except NameError:
basestring = str
if isinstance(v, basestring):
# if v is a URL and it contains unicode and it is
# very long, we get an encoding error from the warning
# message, so just force strings as strings
ws.write_string(r + 1, c, str(v))
else:
ws.write(r + 1, c, v)
c += 1
# write the looked-up value
actual_v = v
if attr in lookups:
choices = lookups[attr]
if attr == 'country':
v = choices.get(obj.country.code, v)
else:
v = choices.get(v, v)
if v is not None:
v = str(v)
ws.write(r + 1, c, v)
c += 1
if attr == 'topic':
# major topics
t = MAJOR_TOPICS[TOPIC_GROUPS[actual_v] - 1][1]
ws.write(r + 1, c, t)
c += 1
# women focus topic
t = FOCUS_TOPIC_ID_MAP.get(actual_v)
if t:
t = FOCUS_TOPICS[t - 1][1]
ws.write(r + 1, c, t)
c += 1
if write_weights:
# Write weight
weight = weights[(obj.country, name)]
# weight = [w.weight for w in weights if
# w.country == obj.country and
# w.media_type == name][0]
ws.write(r + 1, c, weight)
def recode_country(self, country):
# some split countries must be "joined" at the global report level
if self.report_type == 'global':
return COUNTRY_RECODES.get(country, country)
return country
def dictfetchall(self, cursor):
"""
Returns all rows from a cursor as a dict
"""
desc = cursor.description
return [
OrderedDict(list(zip([col[0] for col in desc], row)))
for row in cursor.fetchall()
]
def apply_weights(self, rows, db_table, media_type):
"""
param rows: Queryset to apply the weights to
param db_table: name of relevant sheet table
param: media_type: media type to weigh by
"""
query = rows.extra(
tables=['reports_weights'],
where=[
'reports_weights.country = %s.country' % (db_table),
'reports_weights.media_type = \'%s\'' % (media_type),
]).annotate()
raw_query, params = query.query.sql_with_params()
if self.report_type == 'country':
weights = 'SELECT count(1) AS "n",'
else:
weights = 'SELECT cast(SUM(reports_weights.weight) as float) AS "n",'
raw_query = raw_query.replace('SELECT', weights)
cursor = connection.cursor()
cursor.execute(raw_query, params)
return self.dictfetchall(cursor)
def ws_01(self, ws):
"""
Cols: Media Type
Rows: Region
"""
counts_list = []
for media_types, models in SHEET_MEDIA_GROUPS:
counts = Counter()
for media_type, model in models.items():
rows = model.objects\
.values('country_region__region')\
.filter(country_region__region__in=self.region_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for row in rows:
if row['region'] is not None:
# Get media and region id's to assign to counts
media_id = [media[0] for media in media_types if media[1] == media_type][0]
region_id = [region[0] for region in self.regions if region[1] == row['region']][0]
counts.update({(media_id, region_id): row['n']})
counts_list.append(counts)
self.tabulate(ws, counts_list[0], TM_MEDIA_TYPES, self.regions, row_perc=True)
c = ws.dim_colmax + 2
self.tabulate(ws, counts_list[1], DM_MEDIA_TYPES, self.regions, row_perc=True, c=c, write_row_headings=False)
c = ws.dim_colmax + 2
self.tabulate_historical(ws, '01', MEDIA_TYPES, self.regions, c=c)
def ws_02(self, ws):
"""
Cols: Media Type
Rows: Region, Country
"""
r = 6
c = 2
weights = {(w.country, w.media_type): w.weight for w in Weights.objects.all()}
first = True
historical_c = None
for region_id, region in self.regions:
counts_list = []
for media_types, models in SHEET_MEDIA_GROUPS:
counts = Counter()
for media_type, model in models.items():
rows = model.objects\
.values('country')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
# rows = self.apply_distinct_weights(rows, model._meta.db_table, media_type)
for row in rows:
if row['country'] is not None:
weight = weights[(row['country'], media_type)]
# Get media id's to assign to counts
media_id = [media[0] for media in media_types if media[1] == media_type][0]
counts.update({(media_id, self.recode_country(row['country'])): row['n'] * weight})
for key, value in counts.items():
counts[key] = int(round(value))
counts_list.append(counts)
self.write_primary_row_heading(ws, region, r=r)
region_countries = [(code, country) for code, country in self.countries if code in REGION_COUNTRY_MAP[region]]
self.tabulate(ws, counts_list[0], TM_MEDIA_TYPES, region_countries, row_perc=True, write_col_headings=True, r=r)
c = 7
self.tabulate(ws, counts_list[1], DM_MEDIA_TYPES, region_countries, row_perc=True, write_col_headings=True, write_row_headings=False, r=r, c=c)
if historical_c is None:
historical_c = ws.dim_colmax + 2
self.tabulate_historical(ws, '02', MEDIA_TYPES, region_countries, r=r, c=historical_c, write_year=first, write_col_headings=first)
first = False
r += (len(region_countries) + 2)
def ws_03(self, ws):
"""
Cols: Media type
Rows: Region
"""
# calculate total N for each media type for 2015,
# then we'll compare it to 2010 and get a %age change
# get the historical data for 2010
counts = {}
for media_type, model in sheet_models.items():
rows = model.objects\
.values('country_region__region')\
.annotate(n=Count(get_sheet_model_name_field(media_type), distinct=True))\
.filter(country_region__region__in=self.region_list)\
.annotate(n=Count('id'))
for row in rows:
region = row['country_region__region']
if region is not None:
# Get media and region id's to assign to counts
media_id, media = [m for m in MEDIA_TYPES if m[1] == media_type][0]
region_id, region = [r for r in self.regions if r[1] == region][0]
counts.update({(media_id, region_id): row['n']})
self.tabulate(ws, counts, MEDIA_TYPES, self.regions, raw_values=True, write_col_totals=False, unweighted=True)
self.tabulate_historical(ws, '03', MEDIA_TYPES, self.regions, values_N=True)
def ws_04(self, ws):
"""
Cols: Region, Media type
Rows: Major Topic
"""
counts_list = []
for media_types, models in SHEET_MEDIA_GROUPS:
secondary_counts = OrderedDict()
for region_id, region in self.regions:
counts = Counter()
for media_type, model in models.items():
rows = model.objects\
.values('topic')\
.filter(country_region__region=region)\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for r in rows:
# Get media id's to assign to counts
media_id = [media[0] for media in media_types if media[1] == media_type][0]
major_topic = TOPIC_GROUPS[r['topic']]
counts.update({(media_id, major_topic): r['n']})
if self.report_type == 'country':
# we are showing a single country data so use the contry name for the column name
secondary_counts[self.countries[0][1]] = counts
else:
secondary_counts[region] = counts
counts_list.append(secondary_counts)
self.tabulate_secondary_cols(ws, counts_list[0], TM_MEDIA_TYPES, MAJOR_TOPICS, row_perc=False, show_N=True)
c = ws.dim_colmax + 2
self.tabulate_secondary_cols(ws, counts_list[1], DM_MEDIA_TYPES, MAJOR_TOPICS, row_perc=False, c=c, show_N=True)
c = ws.dim_colmax + 2
self.tabulate_historical(ws, '04', self.regions, MAJOR_TOPICS, c=c, r=7, skip_major_col_heading=True)
def ws_05(self, ws, gen_dataset=False):
"""
Cols: Subject sex
Rows: Major Topic
"""
counts_list = []
overall_column = ws.dim_colmax
for media_types, models in PERSON_MEDIA_GROUPS:
media_title = ', '.join(m[1] for m in media_types)
secondary_counts = OrderedDict()
for media_type, model in models.items():
if not media_title in secondary_counts:
secondary_counts[media_title] = Counter()
counts = secondary_counts[media_title]
topic_field = '%s__topic' % model.sheet_name()
rows = model.objects\
.values('sex', topic_field)\
.filter(**{model.sheet_name() + '__country__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for r in rows:
counts.update({(r['sex'], TOPIC_GROUPS[r['topic']]): r['n']})
counts_list.append(secondary_counts)
self.tabulate_secondary_cols(ws, counts_list[0], self.male_female, MAJOR_TOPICS, row_perc=True)
c = ws.dim_colmax + 2
self.tabulate_secondary_cols(ws, counts_list[1], self.male_female, MAJOR_TOPICS, row_perc=True, c=c, write_row_headings=False)
c = ws.dim_colmax + 2
self.tabulate_historical(ws, '05', self.male_female, MAJOR_TOPICS, c=c, r=7, skip_major_col_heading=True)
overall_row = ws.dim_rowmax+2
write_overall = True
for media_type in counts_list:
for medium in media_type:
counts = media_type[medium]
value = sum([counts[x] for x in counts if x[0] in self.female_ids])
total = sum(counts.values())
self.write_overall_value(ws, value, total, overall_column, overall_row, write_overall)
write_overall= False
overall_column += 4
if gen_dataset:
tabulate_dataset("ws_05", ["Topic", "Gender", "Medium", "Year", "Geography", "Count"], counts_list, ws_05_dataset)
def ws_06(self, ws, gen_dataset=False):
"""
Cols: Region, Subject sex: female only
Rows: Major Topics
"""
c = 1
for media_types, models in PERSON_MEDIA_GROUPS:
self.write_primary_row_heading(ws, ', '.join([m[1] for m in media_types]), c=c+1, r=4)
secondary_counts = OrderedDict()
for region_id, region in self.regions:
counts = Counter()
for media_type, model in models.items():
topic_field = '%s__topic' % model.sheet_name()
rows = model.objects\
.values('sex', topic_field)\
.filter(**{model.sheet_name() + '__country_region__region':region})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for r in rows:
counts.update({(r['sex'], TOPIC_GROUPS[r['topic']]): r['n']})
secondary_counts[region] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, MAJOR_TOPICS, row_perc=True, filter_cols=self.female, show_N=True, c=c, r=8)
c = ws.dim_colmax + 2
if gen_dataset:
tabulate_dataset("ws_06", ["Topic", "Gender", "Year", "Geography", "Count"], secondary_counts, ws_06_dataset)
self.tabulate_historical(ws, '06', self.female, MAJOR_TOPICS, major_cols=self.regions, show_N_and_P=True, r=7)
def ws_07(self, ws):
"""
Cols: Media Type
Rows: Subject Sex
"""
counts = Counter()
for media_type, model in person_models.items():
rows = model.objects\
.values('sex')\
.filter(**{model.sheet_name() + '__country__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for r in rows:
# Get media id's to assign to counts
media_id = [media[0] for media in MEDIA_TYPES if media[1] == media_type][0]
counts.update({(media_id, r['sex']): r['n']})
self.tabulate(ws, counts, MEDIA_TYPES, self.male_female, row_perc=False)
self.tabulate_historical(ws, '07', MEDIA_TYPES, self.male_female, write_row_headings=False)
def ws_08(self, ws):
"""
Cols: Subject Sex
Rows: Scope
"""
counts = Counter()
for media_type, model in tm_person_models.items():
if 'scope' in [field_name.name for field_name in model.sheet_field().remote_field.model._meta.get_fields()]:
scope = '%s__scope' % model.sheet_name()
rows = model.objects\
.values('sex', scope)\
.filter(**{model.sheet_name() + '__country__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['scope']): r['n'] for r in rows})
self.tabulate(ws, counts, self.male_female, SCOPE, row_perc=True, filter_cols=self.female)
self.tabulate_historical(ws, '08', self.female, SCOPE, write_row_headings=False)
def ws_09(self, ws, gen_dataset=False):
"""
Cols: Subject Sex
Rows: Topic
"""
counts = Counter()
for media_type, model in tm_person_models.items():
topic = '%s__topic' % model.sheet_name()
rows = model.objects\
.values('sex', topic)\
.filter(**{model.sheet_name() + '__country__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['topic']): r['n'] for r in rows})
self.tabulate(ws, counts, self.male_female, [y for x in TOPICS for y in x[1]], row_perc=True, filter_cols=self.female)
self.tabulate_historical(ws, '09', self.female, [y for x in TOPICS for y in x[1]], write_row_headings=False)
if gen_dataset:
tabulate_dataset("ws_09", ["Topic", "Gender", "Year", "Geography", "Count"], counts, ws_09_dataset)
def ws_10(self, ws):
"""
Cols: Space
Rows: Minor Topics
:: Newspaper Sheets only
"""
# Calculate row values for column
counts = Counter()
for media_type, model in sheet_models.items():
if media_type == 'Print':
rows = model.objects\
.values('space', 'topic')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for r in rows:
counts.update({(r['space'], TOPIC_GROUPS[r['topic']]): r['n']})
self.tabulate(ws, counts, SPACE, MAJOR_TOPICS, row_perc=False)
self.tabulate_historical(ws, '10', SPACE, MAJOR_TOPICS)
def ws_11(self, ws):
"""
Cols: Equality Rights
Rows: Major Topics
"""
counts = Counter()
overall_column = ws.dim_colmax
for media_type, model in tm_sheet_models.items():
if 'equality_rights' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('equality_rights', 'topic')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for r in rows:
counts.update({(r['equality_rights'], TOPIC_GROUPS[r['topic']]): r['n']})
self.tabulate(ws, counts, YESNO, MAJOR_TOPICS, row_perc=True)
self.tabulate_historical(ws, '11', [*YESNO], MAJOR_TOPICS, write_row_headings=False)
overall_row = ws.dim_rowmax + 2
value = sum([counts[x] for x in counts if x[0] == 'Y'])
total = sum(counts.values())
self.write_overall_value(ws, value, total, overall_column, overall_row, write_overall=True)
def ws_12(self, ws):
"""
Cols: Region, Equality Rights
Rows: Major Topics
"""
secondary_counts = OrderedDict()
for region_id, region_name in self.regions:
counts = Counter()
for media_type, model in tm_sheet_models.items():
# Some models has no equality rights field
if 'equality_rights' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('equality_rights', 'topic')\
.filter(country_region__region=region_name)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for r in rows:
counts.update({(r['equality_rights'], TOPIC_GROUPS[r['topic']]): r['n']})
secondary_counts[region_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, MAJOR_TOPICS, row_perc=True)
c = ws.dim_colmax + 2
self.tabulate_historical(ws, '12', [*YESNO], MAJOR_TOPICS, c=c, r=7, major_cols=self.regions)
def ws_13(self, ws):
"""
Cols: Journalist Sex, Equality Rights
Rows: Topics
"""
secondary_counts = OrderedDict()
overall_column = ws.dim_colmax
for gender_id, gender in self.male_female:
counts = Counter()
for media_type, model in tm_journalist_models.items():
if 'equality_rights' in [field_name.name for field_name in model.sheet_field().remote_field.model._meta.get_fields()]:
topic = '%s__topic' % model.sheet_name()
equality_rights = '%s__equality_rights' % model.sheet_name()
rows = model.objects\
.values(equality_rights, topic)\
.filter(**{model.sheet_name() + '__country__in': self.country_list})\
.filter(sex=gender_id)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for r in rows:
counts.update({(r['equality_rights'], TOPIC_GROUPS[r['topic']]): r['n']})
secondary_counts[gender] = counts
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, MAJOR_TOPICS, row_perc=True)
self.tabulate_historical(ws, '13', [*YESNO], MAJOR_TOPICS, write_row_headings=True, major_cols=self.male_female)
overall_row = ws.dim_rowmax + 2
write_overall = True
for gender in secondary_counts:
counts = secondary_counts[gender]
value = sum([counts[x] for x in counts if x[0] == 'Y'])
total = sum(counts.values())
self.write_overall_value(ws, value, total, overall_column, overall_row, write_overall)
overall_column+=3
write_overall = False
def ws_14(self, ws):
"""
Cols: Sex
Rows: Occupation
"""
counts = Counter()
for media_type, model in tm_person_models.items():
# some Person models don't have an occupation field
if 'occupation' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('sex', 'occupation')\
.filter(**{model.sheet_name() + '__country__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['occupation']): r['n'] for r in rows})
self.tabulate(ws, counts, self.male_female, OCCUPATION, row_perc=True, filter_cols=self.female)
self.tabulate_historical(ws, '14', self.female, OCCUPATION, write_row_headings=False)
def ws_15(self, ws, gen_dataset=False):
"""
Cols: Sex
Rows: Function
"""
counts = Counter()
for media_type, model in tm_person_models.items():
# some Person models don't have a function field
if 'function' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('sex', 'function')\
.filter(**{model.sheet_name() + '__country__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['function']): r['n'] for r in rows})
self.tabulate(ws, counts, self.male_female, FUNCTION, row_perc=True, filter_cols=self.female)
self.tabulate_historical(ws, '15', self.female, FUNCTION, write_row_headings=False)
if gen_dataset:
tabulate_dataset("ws_15", ["Function", "Gender", "Year", "Geography", "Count"], counts, ws_15_dataset)
def ws_16(self, ws):
"""
Cols: Function, Sex
Rows: Occupation
"""
secondary_counts = OrderedDict()
for function_id, function in FUNCTION:
counts = Counter()
for media_type, model in tm_person_models.items():
if 'function' and 'occupation' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('sex', 'occupation')\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.filter(function=function_id)\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['occupation']): r['n'] for r in rows})
secondary_counts[function] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, OCCUPATION, row_perc=False)
self.tabulate_historical(ws, '16', self.male_female, OCCUPATION, major_cols=FUNCTION)
def ws_17(self, ws):
"""
Cols: Age, Sex of Subject
Rows: Function
"""
secondary_counts = OrderedDict()
for age_id, age in AGES_PEOPLE_IN_THE_NEWS:
counts = Counter()
for media_type, model in tm_person_models.items():
if 'function' and 'age' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('sex', 'function')\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.filter(age=age_id)\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['function']): r['n'] for r in rows})
secondary_counts[age] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, FUNCTION, row_perc=False)
self.tabulate_historical(ws, '17', self.male_female, FUNCTION, major_cols=AGES)
def ws_18(self, ws):
"""
Cols: Sex
Rows: Age
:: Only for print
"""
counts = Counter()
rows = NewspaperPerson.objects\
.values('sex', 'age')\
.filter(newspaper_sheet__country__in=self.country_list)\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, NewspaperPerson.sheet_db_table(), 'Print')
counts.update({(r['sex'], r['age']): r['n'] for r in rows})
self.tabulate(ws, counts, self.male_female, AGES_PEOPLE_IN_THE_NEWS, row_perc=True)
self.tabulate_historical(ws, '18', self.male_female, AGES, write_row_headings=False)
def ws_19(self, ws):
"""
Cols: Sex
Rows: Age
:: Only for broadcast
"""
counts = Counter()
broadcast = ['Television']
for media_type, model in person_models.items():
if media_type in broadcast:
rows = model.objects\
.values('sex', 'age')\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['age']): r['n'] for r in rows})
self.tabulate_secondary_cols(ws, {'Television': counts}, self.male_female, AGES_PEOPLE_IN_THE_NEWS, row_perc=True)
major_cols = [(3, 'Television')]
self.tabulate_historical(ws, '19', self.male_female, AGES, major_cols=major_cols, write_row_headings=True)
def ws_20(self, ws):
"""
Cols: Function, Sex
Rows: Occupation
"""
secondary_counts = OrderedDict()
for func_id, function in FUNCTION:
counts = Counter()
for media_type, model in tm_person_models.items():
if 'function' and 'occupation' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('sex', 'occupation')\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.filter(function=func_id)\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['occupation']): r['n'] for r in rows})
secondary_counts[function] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, OCCUPATION, row_perc=False)
self.tabulate_historical(ws, '20', self.male_female, OCCUPATION, major_cols=FUNCTION)
def ws_21(self, ws):
"""
Cols: Subject Sex
Rows: Victim type
"""
counts = Counter()
for media_type, model in tm_person_models.items():
if 'victim_of' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('sex', 'victim_of')\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.filter(sex__in=self.male_female_ids)\
.exclude(victim_of=None)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['victim_of']): r['n'] for r in rows})
self.tabulate(ws, counts, self.male_female, VICTIM_OF, row_perc=False, show_N=True)
self.tabulate_historical(ws, '21', self.male_female, VICTIM_OF)
def ws_23(self, ws):
"""
Cols: Subject Sex
Rows: Survivor type
"""
counts = Counter()
for media_type, model in tm_person_models.items():
if 'survivor_of' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('sex', 'survivor_of')\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.exclude(survivor_of=None)\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['survivor_of']): r['n'] for r in rows})
self.tabulate(ws, counts, self.male_female, SURVIVOR_OF, row_perc=False, show_N=True)
self.tabulate_historical(ws, '23', self.male_female, SURVIVOR_OF)
def ws_24(self, ws):
"""
Cols: Subject Sex
Rows: Family Role
"""
counts = Counter()
for media_type, model in tm_person_models.items():
if 'family_role' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('sex', 'family_role')\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['family_role']): r['n'] for r in rows})
self.tabulate(ws, counts, self.male_female, YESNO, row_perc=False)
self.tabulate_historical(ws, '24', self.male_female, YESNO)
def ws_25(self, ws):
"""
Cols: Journalist Sex, Subject Sex
Rows: Family Role
"""
secondary_counts = OrderedDict()
for sex_id, sex in self.male_female:
counts = Counter()
for media_type, model in tm_person_models.items():
if 'family_role' in [field_name.name for field_name in model._meta.get_fields()]:
sheet_name = model.sheet_name()
journo_name = model._meta.get_field(model.sheet_name()).remote_field.model.journalist_field_name()
rows = model.objects\
.values('sex', 'family_role')\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.filter(**{sheet_name + '__' + journo_name + '__sex':sex_id})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(**{sheet_name + '__' + journo_name + '__role':REPORTERS})
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['family_role']): r['n'] for r in rows})
secondary_counts[sex] = counts
secondary_counts['col_title_def'] = [
'Sex of reporter',
'Sex of news subject']
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, YESNO, row_perc=False)
self.tabulate_historical(ws, '25', self.male_female, YESNO, major_cols=self.male_female, write_row_headings=False)
def ws_26(self, ws):
"""
Cols: Subject Sex
Rows: Whether Quoted
"""
counts = Counter()
for media_type, model in tm_person_models.items():
if 'is_quoted' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('sex', 'is_quoted')\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['is_quoted']): r['n'] for r in rows})
self.tabulate(ws, counts, self.male_female, YESNO, row_perc=False)
self.tabulate_historical(ws, '26', self.male_female, YESNO, write_row_headings=False)
def ws_27(self, ws):
"""
Cols: Subject Sex
Rows: Photographed
"""
counts = Counter()
for media_type, model in tm_person_models.items():
if 'is_photograph' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('sex', 'is_photograph')\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['is_photograph']): r['n'] for r in rows})
self.tabulate(ws, counts, self.male_female, IS_PHOTOGRAPH, row_perc=False)
self.tabulate_historical(ws, '27', self.male_female, IS_PHOTOGRAPH, write_row_headings=False)
def ws_28(self, ws):
"""
Cols: Medium, Journalist Sex
Rows: Region
:: Reporters + Presenters
"""
overall_column = ws.dim_colmax
if self.report_type == 'country':
secondary_counts = OrderedDict()
for media_type, model in tm_journalist_models.items():
counts = Counter()
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
counts.update({(row['sex'], row['country']): row['n']})
secondary_counts[media_type] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True)
else:
secondary_counts = OrderedDict()
for media_type, model in tm_journalist_models.items():
counts = Counter()
region = model.sheet_name() + '__country_region__region'
rows = model.objects\
.values('sex', region)\
.filter(**{region + '__in': self.all_region_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row['region']][0]
counts.update({(row['sex'], region_id): row['n']})
secondary_counts[media_type] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.all_regions, row_perc=True, show_N=True)
self.tabulate_historical(ws, '28', self.male_female, self.regions, r=7)
overall_row = ws.dim_rowmax + 2
ws.write(overall_row, overall_column-1, "Overall", self.label)
overall_column +=1
for media_type in secondary_counts:
counts = secondary_counts[media_type]
value = sum([counts[x] for x in counts if x[0] in self.female_ids])
total = sum(counts.values())
self.write_overall_value(ws, value, total, overall_column, overall_row, write_overall=False)
overall_column +=4
def ws_28b(self, ws, gen_dataset=False):
"""
Cols: Media; Journo Type; Sex
Rows: Country
:: Newspaper, Television, Radio, Twitter, Internet by region and country
"""
c = 1
r = 8
write_row_headings = True
for media_type, model in journalist_models.items():
if media_type in broadcast_journalist_models:
reporter = [('Reporter', [2])]
else:
# Newspaper journos don't have roles
reporter = [('Reporter', [])]
col = c + (1 if write_row_headings else 0)
merge_range = (len(reporter) * len(self.male_female) * 2) - 1
ws.merge_range(r-4, col, r-4, col + merge_range, clean_title(media_type), self.col_heading)
secondary_counts = OrderedDict()
if self.report_type == 'country':
for journo_type, role_ids in reporter:
counts = Counter()
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
# Newspaper journos don't have roles
rows = rows.filter(role__in=role_ids)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
counts.update({(row['sex'], row['country']): row['n']})
secondary_counts[journo_type] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True, c=c, r=r, write_row_headings=write_row_headings)
c += (len(reporter) * len(self.male_female) * 2) + (1 if write_row_headings else 0)
write_row_headings = False
if gen_dataset:
tabulate_dataset("ws_28b", ["Medium", "Gender", "Year", "Geography", "Count"], secondary_counts, ws_28b_dataset, medium=media_type, regions=dict(self.countries))
else:
for journo_type, role_ids in reporter:
counts = Counter()
region = model.sheet_name() + '__country_region__region'
rows = model.objects\
.values('sex', region)\
.filter(**{region + '__in': self.all_region_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
# Newspaper journos don't have roles
rows = rows.filter(role__in=role_ids)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
region_id = [reg[0] for reg in self.all_regions if reg[1] == row["region"]][0]
counts.update({(row['sex'], region_id): row['n']})
secondary_counts[journo_type] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.all_regions, row_perc=True, show_N=True, c=c, r=r, write_row_headings=write_row_headings)
c += (len(reporter) * len(self.male_female) * 2) + (1 if write_row_headings else 0)
write_row_headings = False
if gen_dataset:
tabulate_dataset("ws_28b", ["Medium", "Gender", "Year", "Geography", "Count"], secondary_counts, ws_28b_dataset, medium=media_type, regions=self.all_regions)
def ws_28c(self, ws, gen_dataset=False):
"""
Cols: Media; Journo Type; Sex
Rows: Country
:: Radio, Television by region and country
"""
c = 1
r = 8
write_row_headings = True
for media_type, model in broadcast_journalist_models.items():
presenter = [('Presenter',[1, 3])]
col = c + (1 if write_row_headings else 0)
merge_range = (len(presenter) * len(self.male_female) * 2) - 1
ws.merge_range(r-4, col, r-4, col + merge_range, clean_title(media_type), self.col_heading)
secondary_counts = OrderedDict()
if self.report_type == 'country':
for journo_type, role_ids in presenter:
counts = Counter()
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
# Newspaper journos don't have roles
rows = rows.filter(role__in=role_ids)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
counts.update({(row['sex'], row['country']): row['n']})
secondary_counts[journo_type] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True, c=c, r=r, write_row_headings=write_row_headings)
c += (len(presenter) * len(self.male_female) * 2) + (1 if write_row_headings else 0)
write_row_headings = False
if gen_dataset:
tabulate_dataset("ws_28c", ["Medium", "Gender", "Year", "Geography", "Count"], secondary_counts, ws_28c_dataset, medium=media_type, regions=dict(self.countries))
else:
for journo_type, role_ids in presenter:
counts = Counter()
region = model.sheet_name() + '__country_region__region'
rows = model.objects\
.values('sex', region)\
.filter(**{region + '__in': self.all_region_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
# Newspaper journos don't have roles
rows = rows.filter(role__in=role_ids)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
region_id = [reg[0] for reg in self.all_regions if reg[1] == row["region"]][0]
counts.update({(row['sex'], region_id): row['n']})
secondary_counts[journo_type] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.all_regions, row_perc=True, show_N=True, c=c, r=r, write_row_headings=write_row_headings)
c += (len(presenter) * len(self.male_female) * 2) + (1 if write_row_headings else 0)
write_row_headings = False
if gen_dataset:
tabulate_dataset("ws_28c", ["Medium", "Gender", "Year", "Geography", "Count"], secondary_counts, ws_28c_dataset, medium=media_type, regions=self.all_regions)
def ws_29(self, ws):
"""
Cols: Regions, Journalist Sex
Rows: Scope
:: Reporters only
"""
if self.report_type == 'country':
secondary_counts = OrderedDict()
for country_code, country_name in self.countries:
counts = Counter()
for media_type, model in tm_journalist_models.items():
sheet_name = model.sheet_name()
country = sheet_name + '__country'
scope = sheet_name + '__scope'
if 'scope' in [field_name.name for field_name in model._meta.get_field(sheet_name).remote_field.model._meta.get_fields()]:
rows = model.objects\
.values('sex', scope)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(role=REPORTERS)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
counts.update({(row['sex'], row['scope']): row['n']})
secondary_counts[country_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, SCOPE, row_perc=False, show_N=True)
else:
secondary_counts = OrderedDict()
for region_id, region_name in self.regions:
counts = Counter()
for media_type, model in tm_journalist_models.items():
sheet_name = model.sheet_name()
region = sheet_name + '__country_region__region'
scope = sheet_name + '__scope'
if 'scope' in [field_name.name for field_name in model._meta.get_field(sheet_name).remote_field.model._meta.get_fields()]:
rows = model.objects\
.values('sex', scope)\
.filter(**{region: region_name})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(role=REPORTERS)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
counts.update({(row['sex'], row['scope']): row['n']})
secondary_counts[region_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, SCOPE, row_perc=False, show_N=True)
c = ws.dim_colmax + 2
self.tabulate_historical(ws, '29', self.male_female, SCOPE, write_row_headings=True, c=c, major_cols=self.regions, show_N_and_P=True)
def ws_30(self, ws, gen_dataset=False):
"""
Cols: Region, Sex of reporter
Rows: Major Topics
:: Reporters only
"""
overall_column = ws.dim_colmax
if self.report_type == 'country':
secondary_counts = OrderedDict()
for country_code, country_name in self.countries:
counts = Counter()
for media_type, model in tm_journalist_models.items():
sheet_name = model.sheet_name()
country = sheet_name + '__country'
topic = sheet_name + '__topic'
if 'topic' in [field_name.name for field_name in model._meta.get_field(sheet_name).remote_field.model._meta.get_fields()]:
rows = model.objects\
.values('sex', topic)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(role=REPORTERS)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
major_topic = TOPIC_GROUPS[row['topic']]
counts.update({(row['sex'], major_topic): row['n']})
secondary_counts[country_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, MAJOR_TOPICS, row_perc=False, show_N=True)
else:
secondary_counts = OrderedDict()
for region_id, region_name in self.regions:
counts = Counter()
for media_type, model in tm_journalist_models.items():
sheet_name = model.sheet_name()
region = sheet_name + '__country_region__region'
topic = sheet_name + '__topic'
if 'topic' in [field_name.name for field_name in model._meta.get_field(sheet_name).remote_field.model._meta.get_fields()]:
rows = model.objects\
.values('sex', topic)\
.filter(**{region: region_name})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(role=REPORTERS)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
major_topic = TOPIC_GROUPS[row['topic']]
counts.update({(row['sex'], major_topic): row['n']})
secondary_counts[region_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, MAJOR_TOPICS, row_perc=False, show_N=True)
c = ws.dim_colmax + 2
overall_row = ws.dim_rowmax + 2
ws.write(overall_row, overall_column-1, "Overall", self.label)
overall_column +=1
for region in secondary_counts:
counts = secondary_counts[region]
value = sum([counts[x] for x in counts if x[0] in self.female_ids])
total = sum(counts.values())
self.write_overall_value(ws, value, total, overall_column, overall_row, write_overall=False)
overall_column +=4
self.tabulate_historical(ws, '30', self.male_female, MAJOR_TOPICS, write_row_headings=True, major_cols=self.regions, c=c, show_N_and_P=True)
if gen_dataset:
tabulate_dataset("ws_30", ["Topic", "Gender", "Year", "Geography", "Count"], secondary_counts, ws_30_dataset)
def ws_31(self, ws):
"""
Cols: Sex of Reporter
Rows: Minor Topics
"""
counts = Counter()
for media_type, model in tm_journalist_models.items():
sheet_name = model.sheet_name()
topic = sheet_name + '__topic'
if 'topic' in [field_name.name for field_name in model._meta.get_field(sheet_name).remote_field.model._meta.get_fields()]:
rows = model.objects\
.values('sex', topic)\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(role=REPORTERS)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['topic']): r['n'] for r in rows})
self.tabulate(ws, counts, self.male_female, [y for x in TOPICS for y in x[1]], row_perc=True, filter_cols=self.female)
self.tabulate_historical(ws, '31', self.female, [y for x in TOPICS for y in x[1]], write_row_headings=False)
def ws_32(self, ws):
"""
Cols: Medium
Rows: Topics
:: Reporters only
"""
secondary_counts = OrderedDict()
journalist_models_items = [(media_type, model) for media_type, model in journalist_models.items() if media_type != "Twitter"]
for media_type, model in journalist_models.items():
counts = Counter()
sheet_name = model.sheet_name()
topic = sheet_name + '__topic'
if 'topic' in [field_name.name for field_name in model._meta.get_field(sheet_name).remote_field.model._meta.get_fields()]:
rows = model.objects\
.values('sex', topic)\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(role=REPORTERS)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
counts.update({(row['sex'], row['topic']): row['n']})
secondary_counts[media_type] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, [y for x in TOPICS for y in x[1]], row_perc=False, show_N=True)
c = ws.dim_colmax + 2
self.tabulate_historical(ws, '32', self.male_female, [y for x in TOPICS for y in x[1]], write_row_headings=True, c=c, show_N_and_P=True, major_cols=TM_MEDIA_TYPES)
def ws_34(self, ws):
"""
Cols: Sex of reporter
Rows: Sex of subject
"""
counts = Counter()
for media_type, model in tm_person_models.items():
sheet_name = model.sheet_name()
journo_name = model._meta.get_field(model.sheet_name()).remote_field.model.journalist_field_name()
journo_sex = sheet_name + '__' + journo_name + '__sex'
rows = model.objects\
.extra(select={"subject_sex": model._meta.db_table + ".sex"})\
.values(journo_sex, 'subject_sex')\
.filter(**{model.sheet_name() + '__country__in': self.country_list})\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(**{sheet_name + '__' + journo_name + '__role':REPORTERS})
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['subject_sex']): r['n'] for r in rows})
counts['col_title_def'] = 'Sex of reporter'
self.tabulate(ws, counts, self.male_female, GENDER, row_perc=True)
self.tabulate_historical(ws, '34', self.female, GENDER, write_row_headings=False)
def ws_35(self, ws):
"""
Cols: Sex of reporter
Rows: Age of reporter
:: Only for television
"""
secondary_counts = OrderedDict()
counts = Counter()
secondary_counts[TV_ROLE_ANNOUNCER[1]] = counts
rows = TelevisionJournalist.objects\
.values('sex', 'age')\
.filter(television_sheet__country__in=self.country_list)\
.filter(sex__in=self.male_female_ids)\
.filter(role=TV_ROLE_ANNOUNCER[0])\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, TelevisionJournalist.sheet_db_table(), 'Television')
counts.update({(r['sex'], r['age']): r['n'] for r in rows})
counts = Counter()
secondary_counts[TV_ROLE_REPORTER[1]] = counts
rows = TelevisionJournalist.objects\
.values('sex', 'age')\
.filter(television_sheet__country__in=self.country_list)\
.filter(sex__in=self.male_female_ids)\
.filter(role=TV_ROLE_REPORTER[0])\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, TelevisionJournalist.sheet_db_table(), 'Television')
counts.update({(r['sex'], r['age']): r['n'] for r in rows})
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, AGES_PEOPLE_IN_THE_NEWS, row_perc=False, show_N=True)
major_cols = [TV_ROLE_ANNOUNCER, TV_ROLE_REPORTER]
self.tabulate_historical(ws, '35', self.female, AGES, major_cols=major_cols)
def ws_36(self, ws):
"""
Cols: Sex of Reporter
Rows: Focus: about women
"""
counts = Counter()
for media_type, model in tm_journalist_models.items():
sheet_name = model.sheet_name()
about_women = sheet_name + '__about_women'
if 'about_women' in [field_name.name for field_name in model._meta.get_field(sheet_name).remote_field.model._meta.get_fields()]:
rows = model.objects\
.values('sex', about_women)\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(role=REPORTERS)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['sex'], r['about_women']): r['n'] for r in rows})
self.tabulate(ws, counts, self.male_female, YESNO, row_perc=False)
self.tabulate_historical(ws, '36', self.male_female, YESNO, write_row_headings=False)
def ws_38(self, ws, gen_dataset=False):
"""
Cols: Focus: about women
Rows: Major Topics
"""
counts = Counter()
overall_column = ws.dim_colmax
for media_type, model in tm_sheet_models.items():
if 'about_women' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('about_women', 'topic')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for r in rows:
counts.update({(r['about_women'], TOPIC_GROUPS[r['topic']]): r['n']})
self.tabulate(ws, counts, YESNO, MAJOR_TOPICS, row_perc=True)
self.tabulate_historical(ws, '38', YESNO, MAJOR_TOPICS, write_row_headings=False)
overall_row = ws.dim_rowmax + 2
value = sum([counts[x] for x in counts if x[0] == 'Y'])
total = sum(counts.values())
self.write_overall_value(ws, value, total, overall_column, overall_row, write_overall=True)
if gen_dataset:
tabulate_dataset("ws_38", ["Topic", "Answer", "Year", "Geography", "Count"], counts, ws_38_dataset)
def ws_39(self, ws):
"""
Cols: Focus: about women
Rows: Topics
"""
counts = Counter()
for media_type, model in tm_sheet_models.items():
if 'about_women' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('about_women', 'topic')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
counts.update({(r['about_women'], r['topic']): r['n'] for r in rows})
self.tabulate(ws, counts, YESNO, [y for x in TOPICS for y in x[1]], row_perc=True, filter_cols=self.yes)
self.tabulate_historical(ws, '39', self.yes, [y for x in TOPICS for y in x[1]], write_row_headings=False)
def ws_40(self, ws):
"""
Cols: Region, Topics
Rows: Focus: about women
"""
secondary_counts = OrderedDict()
for region_id, region in self.regions:
counts = Counter()
for media_type, model in tm_sheet_models.items():
if 'about_women' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('topic', 'about_women')\
.filter(country_region__region=region)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
counts.update({(r['about_women'], r['topic']): r['n'] for r in rows})
secondary_counts[region] = counts
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, [y for x in TOPICS for y in x[1]], row_perc=False, filter_cols=self.yes)
self.tabulate_historical(ws, '40', self.yes, [y for x in TOPICS for y in x[1]], write_row_headings=False, major_cols=self.regions)
def ws_41(self, ws, gen_dataset=False):
"""
Cols: Equality rights raised
Rows: Topics
"""
counts = Counter()
overall_column = ws.dim_colmax
for media_type, model in tm_sheet_models.items():
if 'equality_rights' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('equality_rights', 'topic')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
counts.update({(r['equality_rights'], r['topic']): r['n'] for r in rows})
self.tabulate(ws, counts, YESNO, [y for x in TOPICS for y in x[1]], row_perc=False, show_N=True)
self.tabulate_historical(ws, '41', [*YESNO], [y for x in TOPICS for y in x[1]], write_row_headings=False, r=6, show_N_and_P=True)
overall_row = ws.dim_rowmax + 2
value = sum([counts[x] for x in counts if x[0] == 'Y'])
total = sum(counts.values())
ws.write(overall_row, overall_column-1, "Overall", self.label)
self.write_overall_value(ws, value, total, overall_column+1, overall_row, write_overall=False)
if gen_dataset:
tabulate_dataset("ws_41", ["Topic", "Answer", "Year", "Geography", "Count"], counts, ws_41_dataset)
def ws_42(self, ws):
"""
Cols: Region, Equality rights raised
Rows: Topics
"""
secondary_counts = OrderedDict()
for region_id, region in self.regions:
counts = Counter()
for media_type, model in tm_sheet_models.items():
if 'equality_rights' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('topic', 'equality_rights')\
.filter(country_region__region=region)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
counts.update({(r['equality_rights'], r['topic']): r['n'] for r in rows})
secondary_counts[region] = counts
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, [y for x in TOPICS for y in x[1]], row_perc=True)
self.tabulate_historical(ws, '42', [*YESNO], [y for x in TOPICS for y in x[1]], write_row_headings=False, major_cols=self.regions)
def ws_43(self, ws):
"""
Cols: Sex of reporter, Equality rights raised
Cols: Topics
"""
secondary_counts = OrderedDict()
for gender_id, gender in self.male_female:
counts = Counter()
for media_type, model in tm_journalist_models.items():
sheet_name = model.sheet_name()
topic = sheet_name + '__topic'
equality_rights = sheet_name + '__equality_rights'
if 'equality_rights' in [field_name.name for field_name in model._meta.get_field(sheet_name).remote_field.model._meta.get_fields()]:
rows = model.objects\
.values(topic, equality_rights)\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.filter(sex=gender_id)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(role=REPORTERS)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['equality_rights'], r['topic']): r['n'] for r in rows})
secondary_counts[gender] = counts
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, [y for x in TOPICS for y in x[1]], row_perc=True)
self.tabulate_historical(ws, '43', [*YESNO], [y for x in TOPICS for y in x[1]], write_row_headings=False, major_cols=self.male_female)
def ws_44(self, ws):
"""
Cols: Sex of reporter, Equality rights raised
Rows: Region
"""
secondary_counts = OrderedDict()
for gender_id, gender in self.male_female:
counts = Counter()
for media_type, model in tm_journalist_models.items():
sheet_name = model.sheet_name()
region = sheet_name + '__country_region__region'
equality_rights = sheet_name + '__equality_rights'
if 'equality_rights' in [field_name.name for field_name in model._meta.get_field(sheet_name).remote_field.model._meta.get_fields()]:
rows = model.objects\
.values(equality_rights, region)\
.filter(sex=gender_id)\
.filter(**{region + '__in':self.region_list})\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(role=REPORTERS)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for r in rows:
region_id = [id for id, name in self.regions if name == r['region']][0]
counts.update({(r['equality_rights'], region_id): r['n']})
secondary_counts[gender] = counts
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, self.regions, row_perc=True)
self.tabulate_historical(ws, '44', [*YESNO], self.regions, write_row_headings=False, major_cols=self.male_female)
def ws_45(self, ws):
"""
Cols: Sex of news subject
Rows: Region
:: Equality rights raised == Yes
"""
counts = Counter()
for media_type, model in tm_person_models.items():
if 'equality_rights' in [field_name.name for field_name in model.sheet_field().remote_field.model._meta.get_fields()]:
region = model.sheet_name() + '__country_region__region'
equality_rights = model.sheet_name() + '__equality_rights'
rows = model.objects\
.values('sex', region)\
.filter(**{region + '__in':self.region_list})\
.filter(**{equality_rights:'Y'})\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for r in rows:
region_id = [id for id, name in self.regions if name == r['region']][0]
counts.update({(r['sex'], region_id): r['n']})
self.tabulate(ws, counts, self.male_female, self.regions, row_perc=True)
self.tabulate_historical(ws, '45', self.male_female, self.regions, write_row_headings=False)
def ws_46(self, ws):
"""
Cols: Region, Stereotypes
Rows: Major Topics
"""
secondary_counts = OrderedDict()
for _, region in self.regions:
counts = Counter()
for media_type, model in tm_sheet_models.items():
if 'stereotypes' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects \
.values('stereotypes', 'topic') \
.filter(country_region__region=region) \
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for row in rows:
major_topic = TOPIC_GROUPS[row['topic']]
counts.update({(row['stereotypes'], major_topic): row['n']})
secondary_counts[region] = counts
self.tabulate_secondary_cols(ws, secondary_counts, AGREE_DISAGREE, MAJOR_TOPICS, row_perc=True)
self.tabulate_historical(ws, '46', AGREE_DISAGREE, MAJOR_TOPICS, write_row_headings=False, major_cols=self.regions)
def ws_47(self, ws, gen_dataset=False):
"""
Cols: Stereotypes
Rows: Major Topics
"""
counts = Counter()
overall_column = ws.dim_colmax
for media_type, model in tm_sheet_models.items():
rows = model.objects\
.values('stereotypes', 'topic')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for r in rows:
counts.update({(r['stereotypes'], TOPIC_GROUPS[r['topic']]): r['n']})
self.tabulate(ws, counts, AGREE_DISAGREE, MAJOR_TOPICS, row_perc=True)
self.tabulate_historical(ws, '47', AGREE_DISAGREE, MAJOR_TOPICS, write_row_headings=False)
overall_row = ws.dim_rowmax + 2
value = sum([counts[x] for x in counts if x[0] == 1])
total = sum(counts.values())
self.write_overall_value(ws, value, total, overall_column, overall_row, write_overall=True)
if gen_dataset:
tabulate_dataset("ws_47", ["Topic", "Answer", "Year", "Geography", "Count"], counts, ws_47_dataset)
def ws_48(self, ws, gen_dataset=False):
"""
Cols: Sex of reporter, Stereotypes
Rows: Major Topics
"""
secondary_counts = OrderedDict()
overall_column = ws.dim_colmax
for gender_id, gender in self.male_female:
counts = Counter()
for media_type, model in tm_journalist_models.items():
sheet_name = model.sheet_name()
topic = sheet_name + '__topic'
stereotypes = sheet_name + '__stereotypes'
if 'stereotypes' in [field_name.name for field_name in model._meta.get_field(sheet_name).remote_field.model._meta.get_fields()]:
rows = model.objects\
.values(stereotypes, topic)\
.filter(sex=gender_id)\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(role=REPORTERS)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for r in rows:
counts.update({(r['stereotypes'], TOPIC_GROUPS[r['topic']]): r['n']})
secondary_counts[gender] = counts
if gen_dataset:
tabulate_dataset("ws_48", ["Topic", "Gender", "Answer", "Year", "Geography", "Count"], counts, ws_48_dataset, gender=gender_id)
self.tabulate_secondary_cols(ws, secondary_counts, AGREE_DISAGREE, MAJOR_TOPICS, row_perc=True, show_N=True)
self.tabulate_historical(ws, '48', AGREE_DISAGREE, MAJOR_TOPICS, write_row_headings=False, major_cols=self.male_female, show_N_and_P=True)
overall_row = ws.dim_rowmax + 2
# Female Overall
counts = secondary_counts[self.male_female[0][1]]
value = sum([counts[x] for x in counts if x[0] == 1])
total = sum(counts.values())
self.write_overall_value(ws, value, total, overall_column, overall_row, write_overall=True)
# Male Overall
counts = secondary_counts[self.male_female[1][1]]
value = sum([counts[x] for x in counts if x[0] == 1])
total = sum(counts.values())
self.write_overall_value(ws, value, total, overall_column+5, overall_row, write_overall=True)
def ws_49(self, ws):
"""
Cols: Major Topics
Rows: Region
:: Internet media type only
"""
overall_column = ws.dim_colmax
if self.report_type == 'country':
counts = Counter()
model = sheet_models.get('Internet')
rows = model.objects\
.values('topic', 'country')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, 'Internet')
for row in rows:
major_topic = TOPIC_GROUPS[row['topic']]
counts.update({(major_topic, row['country']): row['n']})
self.tabulate(ws, counts, MAJOR_TOPICS, self.countries, row_perc=True)
else:
counts = Counter()
model = sheet_models.get('Internet')
rows = model.objects\
.values('topic', 'country_region__region')\
.filter(country_region__region__in=self.region_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, 'Internet')
for row in rows:
region_id = [r[0] for r in self.regions if r[1] == row['region']][0]
major_topic = TOPIC_GROUPS[row['topic']]
counts.update({(major_topic, region_id): row['n']})
self.tabulate(ws, counts, MAJOR_TOPICS, self.regions, row_perc=True)
self.tabulate_historical(ws, '49', [*MAJOR_TOPICS], self.regions, write_row_headings=False)
overall_row = ws.dim_rowmax + 2
total = sum(counts.values())
write_overall=True
for topic, _ in MAJOR_TOPICS:
value = sum([counts[x] for x in counts if x[0] == topic])
self.write_overall_value(ws, value, total, overall_column, overall_row, write_overall)
write_overall=False
overall_column+=1
def ws_50(self, ws):
"""
Cols: Major Topics
Rows: YES NO
:: Internet media type only
:: Only stories shared on Twitter
"""
counts = Counter()
overall_column = ws.dim_colmax
model = sheet_models.get('Internet')
rows = model.objects\
.values('topic', 'shared_via_twitter')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, 'Internet')
for row in rows:
major_topic = TOPIC_GROUPS[row['topic']]
counts.update({(major_topic, row['shared_via_twitter']): row['n']})
self.tabulate(ws, counts, MAJOR_TOPICS, YESNO, show_N=True)
overall_row = ws.dim_rowmax + 2
value = sum([counts[x] for x in counts if x[1] == 'Y'])
total = sum(counts.values())
ws.write(overall_row, overall_column-1, "Overall Yes", self.label)
self.write_overall_value(ws, value, total, overall_column+1, overall_row, write_overall=False)
def ws_51(self, ws):
"""
Cols: Major Topics
Rows: YES NO
:: Internet media type only
:: Only stories shared on Facebook
"""
counts = Counter()
overall_column = ws.dim_colmax
model = sheet_models.get('Internet')
rows = model.objects\
.values('topic', 'shared_on_facebook')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, 'Internet')
for row in rows:
major_topic = TOPIC_GROUPS[row['topic']]
counts.update({(major_topic, row['shared_on_facebook']): row['n']})
self.tabulate(ws, counts, MAJOR_TOPICS, YESNO, show_N=True)
overall_row = ws.dim_rowmax + 2
value = sum([counts[x] for x in counts if x[1] == 'Y'])
total = sum(counts.values())
ws.write(overall_row, overall_column-1, "Overall Yes", self.label)
self.write_overall_value(ws, value, total, overall_column+1, overall_row, write_overall=False)
def ws_52(self, ws):
"""
Cols: Major Topics
Rows: YES NO
:: Internet media type only
:: Only stories with reference to gener equality
"""
counts = Counter()
overall_column = ws.dim_colmax
model = sheet_models.get('Internet')
rows = model.objects\
.values('topic', 'equality_rights')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, 'Internet')
for row in rows:
major_topic = TOPIC_GROUPS[row['topic']]
counts.update({(major_topic, row['equality_rights']): row['n']})
self.tabulate(ws, counts, MAJOR_TOPICS, YESNO, show_N=True)
overall_row = ws.dim_rowmax + 2
value = sum([counts[x] for x in counts if x[1] == 'Y'])
total = sum(counts.values())
ws.write(overall_row, overall_column-1, "Overall Yes", self.label)
self.write_overall_value(ws, value, total, overall_column+1, overall_row, write_overall=False)
def ws_53(self, ws):
"""
Cols: Topic
Rows: Country
:: Internet media type only
:: Female reporters only
"""
filter_cols = [(id, value) for id, value in GENDER if id==1]
secondary_counts = OrderedDict()
model = sheet_models.get('Internet')
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
journo_sex_field = '%s__sex' % model.journalist_field_name()
rows = model.objects\
.values(journo_sex_field, 'country')\
.filter(topic__in=topic_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, 'Internet')
counts.update({(r['sex'], self.recode_country(r['country'])): r['n'] for r in rows})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
secondary_counts[major_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, GENDER, self.countries, row_perc=True, filter_cols=filter_cols)
self.tabulate_historical(ws, '53', self.female, self.countries, major_cols=MAJOR_TOPICS)
def ws_54(self, ws):
"""
Cols: Major Topic, sex of subject
Rows: Country
:: Internet media type only
"""
secondary_counts = OrderedDict()
model = person_models.get('Internet')
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
country_field = '%s__country' % model.sheet_name()
rows = model.objects\
.values('sex', country_field)\
.filter(**{model.sheet_name() + '__topic__in':topic_ids})\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), 'Internet')
counts.update({(r['sex'], self.recode_country(r['country'])): r['n'] for r in rows})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
secondary_counts[major_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, GENDER, self.countries, row_perc=True)
self.tabulate_historical(ws, '54', [*GENDER], self.countries, major_cols=MAJOR_TOPICS)
def ws_55(self, ws):
"""
Cols: Occupation
Rows: Gender
:: Show male and female
:: Internet and Twitter media types
"""
secondary_counts = OrderedDict()
for media_type, model in dm_person_models.items():
counts = Counter()
rows = model.objects\
.values('occupation', 'sex')\
.filter(**{model.sheet_name() + "__country__in": self.country_list}) \
.exclude(sex=None)\
.exclude(occupation=None)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for d in rows:
counts[d['sex'], d['occupation']] += d['n']
secondary_counts[media_type] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, OCCUPATION, row_perc=True, show_N=True)
def ws_56(self, ws):
"""
Cols: Function
Rows: Male Female
:: Internet media and Twitter media types.
"""
secondary_counts = OrderedDict()
for media_type, model in dm_person_models.items():
counts = Counter()
rows = model.objects\
.values('function', 'sex')\
.filter(**{model.sheet_name() + "__country__in": self.country_list}) \
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for d in rows:
counts[d['sex'], d['function']] += d['n']
secondary_counts[media_type] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, FUNCTION, row_perc=True, show_N=True)
def ws_57(self, ws):
"""
Cols: Sex of subject
Rows: Family role
:: Internet media type only
"""
counts = Counter()
model = person_models.get('Internet')
rows = model.objects\
.values('sex', 'family_role')\
.filter(**{model.sheet_name() + "__country__in": self.country_list}) \
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), "Internet")
{counts.update({(row['sex'], row['family_role']): row['n']}) for row in rows}
self.tabulate(ws, counts, GENDER, YESNO, show_N=True)
def ws_58(self, ws):
"""
Cols: Sex of subject
Rows: is photographed
:: Internet media type only
"""
counts = Counter()
model = person_models.get('Internet')
rows = model.objects\
.values('sex', 'is_photograph')\
.filter(**{model.sheet_name() + "__country__in": self.country_list}) \
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), "Internet")
for d in rows:
counts[d['sex'], d['is_photograph']] += d['n']
self.tabulate(ws, counts, GENDER, IS_PHOTOGRAPH, show_N=True)
def ws_59(self, ws):
"""
Cols: Sex of reporter
Rows: Sex of subject
:: Internet media only
"""
counts = Counter()
model = person_models.get('Internet')
sheet_name = model.sheet_name()
journo_name = model._meta.get_field(model.sheet_name()).remote_field.model.journalist_field_name()
journo_sex = sheet_name + '__' + journo_name + '__sex'
rows = model.objects\
.extra(select={"subject_sex": model._meta.db_table + ".sex"})\
.values(journo_sex, 'subject_sex')\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), "Internet")
counts.update({(r['sex'], r['subject_sex']): r['n'] for r in rows})
counts['col_title_def'] = 'Sex of reporter'
self.tabulate(ws, counts, self.male_female, self.male_female, row_perc=False)
self.tabulate_historical(ws, '59', self.male_female, self.male_female)
def ws_60(self, ws):
"""
Cols: Sex of subject
Rows: age
:: Internet media type only
"""
counts = Counter()
model = person_models.get('Internet')
rows = model.objects\
.values('sex', 'age')\
.filter(**{model.sheet_name() + "__country__in": self.country_list}) \
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), "Internet")
for d in rows:
counts[d['sex'], d['age']] += d['n']
self.tabulate(ws, counts, GENDER, AGES, show_N=True)
def ws_61(self, ws):
"""
Cols: Sex of subject
Rows: is_quoted
:: Internet media type only
"""
counts = Counter()
model = person_models.get('Internet')
rows = model.objects\
.values('sex', 'is_quoted')\
.filter(**{model.sheet_name() + "__country__in": self.country_list}) \
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), "Internet")
{counts.update({(row['sex'], row['is_quoted']): row['n']}) for row in rows}
self.tabulate(ws, counts, GENDER, YESNO, show_N=True)
def ws_62(self, ws):
"""
Cols: Topic
Rows: equality raised
:: Internet media type only
"""
counts = Counter()
overall_column = ws.dim_colmax
model = sheet_models.get('Internet')
rows = model.objects\
.values('topic', 'equality_rights')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, "Internet")
{counts.update({(TOPIC_GROUPS[row["topic"]], row["equality_rights"]): row['n']}) for row in rows}
self.tabulate(ws, counts, MAJOR_TOPICS, YESNO, show_N=True)
overall_row = ws.dim_rowmax + 2
value = sum([counts[x] for x in counts if x[1] == 'Y'])
total = sum(counts.values())
ws.write(overall_row, overall_column-1, "Overall Yes", self.label)
self.write_overall_value(ws, value, total, overall_column+1, overall_row, write_overall=False)
def ws_63(self, ws):
"""
Cols: Topic
Rows: stereotypes challenged
:: Internet media type only
"""
counts = Counter()
overall_column = ws.dim_colmax
model = sheet_models.get('Internet')
rows = model.objects\
.values('topic', 'stereotypes')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, "Internet")
{counts.update({(TOPIC_GROUPS[row["topic"]], row["stereotypes"]): row['n']}) for row in rows}
self.tabulate(ws, counts, MAJOR_TOPICS, AGREE_DISAGREE, show_N=True)
overall_row = ws.dim_rowmax + 2
value = sum([counts[x] for x in counts if x[1] == 1])
total = sum(counts.values())
ws.write(overall_row, overall_column-1, "Overall Agree", self.label)
self.write_overall_value(ws, value, total, overall_column+1, overall_row, write_overall=False)
def ws_64(self, ws):
"""
Cols: Topic
Rows: about women
:: Internet media type only
"""
counts = Counter()
model = sheet_models.get('Internet')
rows = model.objects\
.values('topic', 'about_women')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, "Internet")
{counts.update({(TOPIC_GROUPS[row["topic"]], row["about_women"]): row['n']}) for row in rows}
self.tabulate(ws, counts, MAJOR_TOPICS, YESNO, show_N=True)
def ws_65(self, ws):
"""
Cols: Major Topic
Rows: tweet or retweet
:: Twitter media type only
"""
counts = Counter()
overall_column = ws.dim_colmax
model = sheet_models.get('Twitter')
rows = model.objects\
.values('topic', 'retweet')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, "Twitter")
{counts.update({(TOPIC_GROUPS[row["topic"]], row["retweet"]): row['n']}) for row in rows}
self.tabulate(ws, counts, MAJOR_TOPICS, RETWEET, show_N=True)
overall_row = ws.dim_rowmax + 2
value = sum([counts[x] for x in counts if x[1] == 1])
total = sum(counts.values())
ws.write(overall_row, overall_column-1, "Overall Original Tweets", self.label)
self.write_overall_value(ws, value, total, overall_column+1, overall_row, write_overall=False)
def ws_66(self, ws):
"""
Cols: Major Topic
Rows: Country, sex of news subject
:: Show all countries
:: Twitter media type only
"""
r = 6
self.write_col_headings(ws, MAJOR_TOPICS)
counts = Counter()
model = person_models.get('Twitter')
topic_field = '%s__topic' % model.sheet_name()
for code, country in self.countries:
rows = model.objects\
.values(topic_field, 'sex')\
.filter(**{model.sheet_name() + '__country':code})\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), "Twitter")
counts = {(TOPIC_GROUPS[row['topic']], row['sex']): row['n'] for row in rows}
self.write_primary_row_heading(ws, country, r=r)
self.tabulate(ws, counts, MAJOR_TOPICS, GENDER, row_perc=True, write_col_headings=False, r=r)
r += len(GENDER)
def ws_67(self, ws):
"""
Cols: Major Topic
Rows: Country
:: Only female journalists
:: Show all countries
:: Twitter media type only
"""
counts = Counter()
model = sheet_models.get('Twitter')
rows = model.objects\
.values('topic', 'country')\
.filter(**{model.journalist_field_name() + '__sex':1})\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, "Twitter")
{counts.update({(TOPIC_GROUPS[row['topic']], self.recode_country(row['country'])): row['n'] })for row in rows}
self.tabulate(ws, counts, MAJOR_TOPICS, self.countries, row_perc=True)
def ws_68(self, ws):
"""
Cols: Major Topic
Rows: Country, about women
:: Show all countries
:: Twitter media type only
"""
r = 6
self.write_col_headings(ws, MAJOR_TOPICS)
counts = Counter()
model = sheet_models.get('Twitter')
for code, country in self.countries:
rows = model.objects\
.values('topic', 'about_women')\
.filter(country=code)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, "Twitter")
{counts.update({(TOPIC_GROUPS[row['topic']], row['about_women']): row['n']}) for row in rows}
self.write_primary_row_heading(ws, country, r=r)
self.tabulate(ws, counts, MAJOR_TOPICS, YESNO, row_perc=False, write_col_headings=False, r=r)
r += len(YESNO)
def ws_68b(self, ws):
"""
Cols: Topic
Rows: Country, stereotypes
:: Show all countries
:: Twitter media type only
"""
counts = Counter()
overall_column = ws.dim_colmax
model = sheet_models.get('Twitter')
rows = model.objects\
.values('topic', 'stereotypes')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, "Twitter")
for row in rows:
counts.update({(TOPIC_GROUPS[row["topic"]], row["stereotypes"]): row['n']})
self.tabulate(ws, counts, MAJOR_TOPICS, AGREE_DISAGREE, row_perc=True)
overall_row = ws.dim_rowmax + 2
value = sum([counts[x] for x in counts if x[1] == 1])
total = sum(counts.values())
self.write_overall_value(ws, value, total, overall_column, overall_row, write_overall=True)
def ws_70(self, ws):
ws.write(4, 0, 'See raw data sheets')
def ws_71(self, ws):
"""
Cols: Topic, Media type
Rows: Country, Female news subjects
Focus: women's overall presence
"""
secondary_counts = OrderedDict()
for topic_id, topic in FOCUS_TOPICS:
actual_topic_ids = FOCUS_TOPIC_IDS[topic_id]
counts = Counter()
secondary_counts[topic] = counts
for media_type, model in sheet_models.items():
media_id = [m[0] for m in MEDIA_TYPES if m[1] ==media_type][0]
person_name = model.person_field_name()
rows = model.objects\
.values('country')\
.filter(**{person_name + '__sex': self.female[0][0]})\
.filter(topic__in=actual_topic_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
counts.update({(media_id, self.recode_country(r['country'])): r['n'] for r in rows})
self.tabulate_secondary_cols(ws, secondary_counts, MEDIA_TYPES, self.countries, write_col_totals=False, raw_values=True)
def ws_72(self, ws):
"""
Cols: Focus Topic, Media
Rows: Country
Focus: female reporters
"""
# TODO: these values should be %age total of media in country/region
secondary_counts = OrderedDict()
for topic_id, topic in FOCUS_TOPICS:
actual_topic_ids = FOCUS_TOPIC_IDS[topic_id]
counts = Counter()
secondary_counts[topic] = counts
for media_type, model in sheet_models.items():
journo_name = model.journalist_field_name()
media_id = [m[0] for m in MEDIA_TYPES if m[1] == media_type][0]
rows = model.objects\
.values('country')\
.filter(**{journo_name + '__sex': self.female[0][0]})\
.filter(topic__in=actual_topic_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(**{journo_name + '__role':REPORTERS})
rows = self.apply_weights(rows, model._meta.db_table, media_type)
counts.update({(media_id, self.recode_country(r['country'])): r['n'] for r in rows})
self.tabulate_secondary_cols(ws, secondary_counts, MEDIA_TYPES, self.countries, write_col_totals=False, raw_values=True)
def ws_73(self, ws):
"""
Cols: Sex of reporter
Rows: Focus Topic
Focus: Female news subject
"""
focus_topic_ids = []
for k, v in FOCUS_TOPIC_IDS.items():
focus_topic_ids.extend(v)
counts = Counter()
for media_type, model in journalist_models.items():
sheet_name = model.sheet_name()
person_name = model.sheet_field().remote_field.model.person_field_name()
topic_field = sheet_name + '__topic'
rows = model.objects\
.values('sex', topic_field)\
.filter(**{sheet_name + '__country__in':self.country_list})\
.filter(**{sheet_name + '__'+ person_name + '__sex':self.female[0][0]})\
.filter(**{sheet_name + '__topic__in':focus_topic_ids})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(role=REPORTERS)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for r in rows:
focus_topic_id = [k for k, v in FOCUS_TOPIC_IDS.items() if r['topic'] in v][0]
counts.update({(r['sex'], focus_topic_id): r['n']})
self.tabulate(ws, counts, self.male_female, FOCUS_TOPICS, raw_values=True, write_col_totals=False)
def ws_74(self, ws):
"""
Cols: Focus Topic
Rows: Country, About Women
Focus: female reporters
"""
c = 1
for media_types, models in SHEET_MEDIA_GROUPS:
self.write_primary_row_heading(ws, ', '.join([m[1] for m in media_types]), c=c+1, r=4)
secondary_counts = OrderedDict()
for topic_id, topic in FOCUS_TOPICS:
counts = Counter()
secondary_counts[topic] = counts
actual_topic_ids = FOCUS_TOPIC_IDS[topic_id]
for media_type, model in models.items():
rows = model.objects\
.values('country', 'about_women')\
.filter(country__in=self.country_list)\
.filter(topic__in=actual_topic_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
counts.update({(r['about_women'], self.recode_country(r['country'])): r['n'] for r in rows})
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, self.countries, row_perc=True, c=c, r=8)
c = ws.dim_colmax + 2
def ws_75(self, ws):
"""
Cols: Topic, Stereotypes
Rows: Country
"""
c = 1
for media_types, models in SHEET_MEDIA_GROUPS:
self.write_primary_row_heading(ws, ', '.join([m[1] for m in media_types]), c=c+1, r=4)
secondary_counts = OrderedDict()
for topic_id, topic in FOCUS_TOPICS:
counts = Counter()
secondary_counts[topic] = counts
actual_topic_ids = FOCUS_TOPIC_IDS[topic_id]
for media_type, model in models.items():
if 'stereotypes' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('stereotypes', 'country')\
.filter(topic__in=actual_topic_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
counts.update({(r['stereotypes'], self.recode_country(r['country'])): r['n'] for r in rows})
self.tabulate_secondary_cols(ws, secondary_counts, AGREE_DISAGREE, self.countries, row_perc=True, c=c, r=8)
c = ws.dim_colmax + 2
def ws_76(self, ws):
"""
Cols: Topic, Reference to gender equality
Rows: Country
"""
c = 1
for media_types, models in SHEET_MEDIA_GROUPS:
self.write_primary_row_heading(ws, ', '.join([m[1] for m in media_types]), c=c+1, r=4)
secondary_counts = OrderedDict()
for topic_id, topic in FOCUS_TOPICS:
counts = Counter()
actual_topic_ids = FOCUS_TOPIC_IDS[topic_id]
for media_type, model in models.items():
if 'equality_rights' in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values('equality_rights', 'country')\
.filter(topic__in=actual_topic_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
counts.update({(r['equality_rights'], self.recode_country(r['country'])): r['n'] for r in rows})
secondary_counts[topic] = counts
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, self.countries, row_perc=True, c=c, r=8)
c = ws.dim_colmax + 2
def ws_77(self, ws):
"""
Cols: Topic, victim_of
Rows: Country
"""
c = 1
for media_types, models in PERSON_MEDIA_GROUPS:
self.write_primary_row_heading(ws, ', '.join([m[1] for m in media_types]), c=c+1, r=4)
secondary_counts = OrderedDict()
for topic_id, topic in FOCUS_TOPICS:
counts = Counter()
actual_topic_ids = FOCUS_TOPIC_IDS[topic_id]
for media_type, model in models.items():
if 'victim_of' in [field_name.name for field_name in model._meta.get_fields()]:
country_field = '%s__country' % model.sheet_name()
rows = model.objects\
.values('victim_of', country_field)\
.filter(**{model.sheet_name() + '__topic__in':actual_topic_ids})\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['victim_of'], self.recode_country(r['country'])): r['n'] for r in rows})
secondary_counts[topic] = counts
self.tabulate_secondary_cols(ws, secondary_counts, VICTIM_OF, self.countries, row_perc=True, c=c, r=8)
c = ws.dim_colmax + 2
def ws_78(self, ws):
"""
Cols: Topic, survivor_of
Rows: Country
"""
c = 1
for media_types, models in PERSON_MEDIA_GROUPS:
self.write_primary_row_heading(ws, ', '.join([m[1] for m in media_types]), c=c+1, r=4)
secondary_counts = OrderedDict()
for topic_id, topic in FOCUS_TOPICS:
counts = Counter()
actual_topic_ids = FOCUS_TOPIC_IDS[topic_id]
for media_type, model in models.items():
if 'survivor_of' in [field_name.name for field_name in model._meta.get_fields()]:
country_field = '%s__country' % model.sheet_name()
rows = model.objects\
.values('survivor_of', country_field)\
.filter(**{model.sheet_name() + '__topic__in':actual_topic_ids})\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r['survivor_of'], self.recode_country(r['country'])): r['n'] for r in rows})
secondary_counts[topic] = counts
self.tabulate_secondary_cols(ws, secondary_counts, SURVIVOR_OF, self.countries, row_perc=True, c=c, r=8)
c = ws.dim_colmax + 2
def ws_79(self, ws):
"""
Cols: Major Topics, Sex of news subject
Rows: Region
:: Internet media type only
"""
secondary_counts = OrderedDict()
model = person_models.get('Internet')
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
region_field = '%s__country_region__region' % model.sheet_name()
rows = model.objects\
.values('sex', region_field)\
.filter(**{model.sheet_name() + '__topic__in':topic_ids})\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), 'Internet')
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row['region']][0]
counts.update({(row['sex'], region_id): row['n']})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
secondary_counts[major_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, GENDER, self.all_regions, row_perc=True)
def ws_80(self, ws):
"""
Cols: Major Topics, Minor Topics, Shared on Twitter
Rows: Region
:: Internet media type only
"""
model = sheet_models.get('Internet')
c = 1
r = 8
write_row_headings = True
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
# Write primary column heading
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
col = c + (1 if write_row_headings else 0)
merge_range = (len(topic_ids) * len(self.male_female) * 2) - 1
ws.merge_range(r-4, col, r-4, col + merge_range, clean_title(major_topic_name), self.col_heading)
secondary_counts = OrderedDict()
for minor_topic in topic_ids:
counts = Counter()
rows = model.objects\
.values('shared_via_twitter', 'country_region__region')\
.filter(topic__in=topic_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, 'Internet')
for row in rows:
region_id = [region[0] for region in self.all_regions if region[1] == row['region']][0]
counts.update({(row['shared_via_twitter'], region_id): row['n']})
minor_topic_name = [mt[1] for mt in [y for x in TOPICS for y in x[1]] if mt[0] == int(minor_topic)][0]
secondary_counts[minor_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, self.all_regions, c=c, r=r, write_row_headings=write_row_headings, show_N=True, row_perc=True)
c += (len(topic_ids) * len(YESNO) * 2) + (1 if write_row_headings else 0)
write_row_headings = False
def ws_81(self, ws):
"""
Cols: Major Topics, Minor Topics, Shared on Facebook
Rows: Region
:: Internet media type only
"""
model = sheet_models.get('Internet')
c = 1
r = 8
write_row_headings = True
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
# Write primary column heading
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
col = c + (1 if write_row_headings else 0)
merge_range = (len(topic_ids) * len(self.male_female) * 2) - 1
ws.merge_range(r-4, col, r-4, col + merge_range, clean_title(major_topic_name), self.col_heading)
secondary_counts = OrderedDict()
for minor_topic in topic_ids:
counts = Counter()
rows = model.objects\
.values('shared_on_facebook', 'country_region__region')\
.filter(topic__in=topic_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, 'Internet')
for row in rows:
region_id = [region[0] for region in self.all_regions if region[1] == row['region']][0]
counts.update({(row['shared_on_facebook'], region_id): row['n']})
minor_topic_name = [mt[1] for mt in [y for x in TOPICS for y in x[1]] if mt[0] == int(minor_topic)][0]
secondary_counts[minor_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, self.all_regions, c=c, r=r, write_row_headings=write_row_headings, show_N=True, row_perc=True)
c += (len(topic_ids) * len(YESNO) * 2) + (1 if write_row_headings else 0)
write_row_headings = False
def ws_82(self, ws):
"""
Cols: Major Topics, Minor Topics, Equality Rights
Rows: Region
:: Internet media type only
"""
model = sheet_models.get('Internet')
c = 1
r = 8
write_row_headings = True
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
# Write primary column heading
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
col = c + (1 if write_row_headings else 0)
merge_range = (len(topic_ids) * len(self.male_female) * 2) - 1
ws.merge_range(r-4, col, r-4, col + merge_range, clean_title(major_topic_name), self.col_heading)
secondary_counts = OrderedDict()
for minor_topic in topic_ids:
counts = Counter()
rows = model.objects\
.values('equality_rights', 'country_region__region')\
.filter(topic__in=topic_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, 'Internet')
for row in rows:
region_id = [region[0] for region in self.all_regions if region[1] == row['region']][0]
counts.update({(row['equality_rights'], region_id): row['n']})
minor_topic_name = [mt[1] for mt in [y for x in TOPICS for y in x[1]] if mt[0] == int(minor_topic)][0]
secondary_counts[minor_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, self.all_regions, c=c, r=r, write_row_headings=write_row_headings, show_N=True, row_perc=True)
c += (len(topic_ids) * len(YESNO) * 2) + (1 if write_row_headings else 0)
write_row_headings = False
def ws_83(self, ws, gen_dataset=False):
"""
Cols: Major Topics, Reporters by sex
Rows: Region
:: Internet media type only
"""
secondary_counts = OrderedDict()
model = journalist_models.get('Internet')
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
region_field = '%s__country_region__region' % model.sheet_name()
rows = model.objects\
.values('sex', region_field)\
.filter(**{model.sheet_name() + '__topic__in':topic_ids})\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), 'Internet')
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row['region']][0]
counts.update({(row['sex'], region_id): row['n']})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
secondary_counts[major_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, GENDER, self.all_regions, row_perc=True)
if gen_dataset:
tabulate_dataset("ws_83", ["Topic", "Gender", "Year", "Geography", "Count"], secondary_counts, ws_83_dataset, regions=self.all_regions)
def ws_84(self, ws):
"""
Cols: Occupation
Rows: Region
:: Internet media type only
:: Female news subjects only
"""
model = person_models.get('Internet')
counts = Counter()
region_field = '%s__country_region__region' % model.sheet_name()
rows = model.objects\
.values('occupation', region_field)\
.filter(sex__in=self.female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), 'Internet')
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row['region']][0]
counts.update({(row['occupation'], region_id): row['n']})
self.tabulate(ws, counts, OCCUPATION, self.all_regions, row_perc=True, show_N=True)
def ws_85(self, ws, gen_dataset=False):
"""
Cols: Function
Rows: Region
:: Internet media type only
"""
model = person_models.get('Internet')
counts = Counter()
region_field = '%s__country_region__region' % model.sheet_name()
rows = model.objects\
.values('function', region_field)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), 'Internet')
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row['region']][0]
counts.update({(row['function'], region_id): row['n']})
self.tabulate(ws, counts, FUNCTION, self.all_regions, row_perc=True, show_N=True)
if gen_dataset:
tabulate_dataset("ws_85", ["Function", "Year", "Geography", "Count"], counts, ws_85_dataset, regions=self.all_regions)
def ws_86(self, ws):
"""
Cols: Sex of subject, Identified by family status
Rows: Region
:: Internet media type only
"""
model = person_models.get('Internet')
secondary_counts = OrderedDict()
for gender_id, gender in self.male_female:
counts = Counter()
region_field = '%s__country_region__region' % model.sheet_name()
rows = model.objects\
.values('family_role', region_field)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), 'Internet')
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row['region']][0]
counts.update({(row['family_role'], region_id): row['n']})
secondary_counts[gender] = counts
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, self.all_regions, row_perc=True, show_N=True)
def ws_87(self, ws):
"""
Cols: Sex of subject, Photo or image present
Rows: Region
:: Internet media type only
"""
model = person_models.get('Internet')
secondary_counts = OrderedDict()
for gender_id, gender in self.male_female:
counts = Counter()
region_field = '%s__country_region__region' % model.sheet_name()
rows = model.objects\
.values('is_photograph', region_field)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), 'Internet')
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row['region']][0]
counts.update({(row['is_photograph'], region_id): row['n']})
secondary_counts[gender] = counts
self.tabulate_secondary_cols(ws, secondary_counts, IS_PHOTOGRAPH, self.all_regions, row_perc=True, show_N=True)
def ws_88(self, ws):
"""
Cols: Sex of reporter, Sex of subject
Rows: Region
:: Internet media type only
"""
model = journalist_models.get('Internet')
secondary_counts = OrderedDict()
for gender_id, gender in self.male_female:
counts = Counter()
region_field = '%s__country_region__region' % model.sheet_name()
rows = model.objects\
.values('internetnews_sheet__internetnewsperson__sex', region_field)\
.filter(sex=gender_id)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), 'Internet')
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row['region']][0]
counts.update({(row['sex'], region_id): row['n']})
counts['col_title_def'] = 'Sex of news subject'
secondary_counts[gender] = counts
secondary_counts['col_title_def'] = [
'Sex of reporter',
'Sex of news subject']
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.all_regions, row_perc=True, show_N=True)
def ws_89(self, ws):
"""
Cols: Sex of subject, Age of news subject
Rows: Region
:: Internet media type only
"""
model = person_models.get('Internet')
secondary_counts = OrderedDict()
for gender_id, gender in self.male_female:
counts = Counter()
region_field = '%s__country_region__region' % model.sheet_name()
rows = model.objects\
.values('age', region_field)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), 'Internet')
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row['region']][0]
counts.update({(row['age'], region_id): row['n']})
secondary_counts[gender] = counts
self.tabulate_secondary_cols(ws, secondary_counts, AGES, self.all_regions, row_perc=True, show_N=True)
def ws_90(self, ws):
"""
Cols: Sex of subject, Whether quoted
Rows: Region
:: Internet media type only
"""
model = person_models.get('Internet')
secondary_counts = OrderedDict()
for gender_id, gender in self.male_female:
counts = Counter()
region_field = '%s__country_region__region' % model.sheet_name()
rows = model.objects\
.values('is_quoted', region_field)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), 'Internet')
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row['region']][0]
counts.update({(row['is_quoted'], region_id): row['n']})
secondary_counts[gender] = counts
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, self.all_regions, row_perc=True, show_N=True)
def ws_91(self, ws):
"""
Cols: Major Topic
Rows: Region, equality raised
:: Internet media type only
"""
r = 6
self.write_col_headings(ws, MAJOR_TOPICS)
model = sheet_models.get('Internet')
for region_id, region in self.all_regions:
counts = Counter()
rows = model.objects\
.values('topic', 'equality_rights')\
.filter(country_region__region=region)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, "Internet")
for row in rows:
major_topic = TOPIC_GROUPS[row['topic']]
counts.update({(major_topic, row['equality_rights']): row['n']})
self.write_primary_row_heading(ws, region, r=r)
self.tabulate(ws, counts, MAJOR_TOPICS, YESNO, row_perc=True, write_col_headings=False, r=r)
r += len(YESNO)
def ws_92(self, ws, gen_dataset=False):
"""
Cols: Major Topic
Rows: Region, stereotypes
:: Internet media type only
"""
r = 6
self.write_col_headings(ws, MAJOR_TOPICS)
model = sheet_models.get('Internet')
for region_id, region in self.all_regions:
counts = Counter()
rows = model.objects\
.values('topic', 'stereotypes')\
.filter(country_region__region=region)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, "Internet")
for row in rows:
major_topic = TOPIC_GROUPS[row['topic']]
counts.update({(major_topic, row['stereotypes']): row['n']})
self.write_primary_row_heading(ws, region, r=r)
self.tabulate(ws, counts, MAJOR_TOPICS, AGREE_DISAGREE, row_perc=True, write_col_headings=False, r=r)
r += len(AGREE_DISAGREE)
if gen_dataset:
tabulate_dataset("ws_92", ["Topic", "Answer", "Year", "Geography", "Count"], counts, ws_92_dataset, region=region)
def ws_93(self, ws, gen_dataset=False):
"""
Cols: Major Topic
Rows: Region, about women
:: Internet media type only
"""
r = 6
self.write_col_headings(ws, MAJOR_TOPICS)
model = sheet_models.get('Internet')
for region_id, region in self.all_regions:
counts = Counter()
rows = model.objects\
.values('topic', 'about_women')\
.filter(country_region__region=region)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, "Internet")
for row in rows:
major_topic = TOPIC_GROUPS[row['topic']]
counts.update({(major_topic, row['about_women']): row['n']})
self.write_primary_row_heading(ws, region, r=r)
self.tabulate(ws, counts, MAJOR_TOPICS, YESNO, row_perc=True, write_col_headings=False, r=r)
r += len(YESNO)
if gen_dataset:
tabulate_dataset("ws_93", ["Topic", "Answer", "Year", "Geography", "Count"], counts, ws_93_dataset, region=region)
def ws_94(self, ws):
"""
Cols: Major Topics, Original tweet or retweet
Rows: Region
:: Twitter media type only
"""
secondary_counts = OrderedDict()
model = sheet_models.get('Twitter')
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
rows = model.objects\
.values('retweet', 'country_region__region')\
.filter(topic__in=topic_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, 'Twitter')
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row['region']][0]
counts.update({(row['retweet'], region_id): row['n']})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
secondary_counts[major_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, RETWEET, self.all_regions, row_perc=True)
def ws_95(self, ws):
"""
Cols: Major Topics, Female reporters
Rows: Region
:: Twitter media type only
"""
model = journalist_models.get('Twitter')
c = 1
r = 8
write_row_headings = True
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
# Write primary column heading
col = c + (1 if write_row_headings else 0)
merge_range = (len(topic_ids) * len(self.male_female) * 2) - 1
ws.merge_range(r-4, col, r-4, col + merge_range, clean_title(major_topic_name), self.col_heading)
secondary_counts = OrderedDict()
for minor_topic in topic_ids:
counts = Counter()
region_field = '%s__country_region__region' % model.sheet_name()
rows = model.objects\
.values('sex', region_field)\
.filter(**{model.sheet_name() + '__topic__in':topic_ids})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), 'Twitter')
for row in rows:
region_id = [region[0] for region in self.all_regions if region[1] == row['region']][0]
counts.update({(row['sex'], region_id): row['n']})
minor_topic_name = [mt[1] for mt in [y for x in TOPICS for y in x[1]] if mt[0] == int(minor_topic)][0]
secondary_counts[minor_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.all_regions, c=c, r=r, write_row_headings=write_row_headings, show_N=True, row_perc=True)
c += (len(topic_ids) * len(GENDER)) + (1 if write_row_headings else 0)
write_row_headings = False
def ws_96(self, ws):
"""
Cols: Major Topics, Women's centrality
Rows: Region
:: Twitter media type only
"""
secondary_counts = OrderedDict()
model = sheet_models.get('Twitter')
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
rows = model.objects\
.values('about_women', 'country_region__region')\
.filter(topic__in=topic_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, 'Twitter')
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row['region']][0]
counts.update({(row['about_women'], region_id): row['n']})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
secondary_counts[major_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, self.all_regions, row_perc=True)
def ws_97(self, ws, gen_dataset=False):
"""
Cols: Major Topics, Stereotypes
Rows: Region
:: Twitter media type only
"""
secondary_counts = OrderedDict()
model = sheet_models.get('Twitter')
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
rows = model.objects\
.values('stereotypes', 'country_region__region')\
.filter(topic__in=topic_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, 'Twitter')
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row['region']][0]
counts.update({(row['stereotypes'], region_id): row['n']})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
secondary_counts[major_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, AGREE_DISAGREE, self.all_regions, row_perc=True)
if gen_dataset:
tabulate_dataset("ws_97", ["Topic", "Agree/Disagree", "Year", "Geography", "Count"], secondary_counts, ws_97_dataset, regions=self.all_regions)
def ws_98(self, ws):
return
def ws_100(self, ws, gen_dataset=False):
"""
Cols: Medium
Rows: Major topic
"""
secondary_counts = OrderedDict()
overall_column = grand_total_column = ws.dim_colmax
for _, models in SHEET_MEDIA_GROUPS:
for media_type, model in models.items():
counts = Counter()
rows = model.objects\
.values('covid19', 'topic') \
.filter(country__in=self.country_list) \
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for r in rows:
covid19 = 'Y' if r['covid19'] == 1 else 'N'
counts.update({(covid19, TOPIC_GROUPS[r['topic']]): r['n']})
secondary_counts[media_type] = counts
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, MAJOR_TOPICS, row_perc=True)
overall_row = ws.dim_rowmax + 2
grand_total_yes_no = 0
grand_total_yes = 0
write_overall=True
for medium in secondary_counts:
counts = secondary_counts[medium]
total = sum(counts.values())
grand_total_yes_no += total
value = sum([counts[x] for x in counts if x[0] == 'Y'])
grand_total_yes += value
self.write_overall_value(ws, value, total, overall_column, overall_row, write_overall, overall_label="OVERALL BY MEDIUM")
overall_column+=3
write_overall= False
self.write_overall_value(ws, grand_total_yes, grand_total_yes_no, grand_total_column, overall_row+3, write_overall=True, overall_label="GRAND TOTAL")
if gen_dataset:
tabulate_dataset("ws_100", ["Topic", "Medium", "Yes/No", "Year", "Geography", "Count"], secondary_counts, ws_100_dataset)
def ws_101(self, ws, gen_dataset=False):
"""
Cols: Reporters by sex
Rows: Major topic, covid stories only
"""
counts = Counter()
overall_column = ws.dim_colmax
for media_type, model in sheet_models.items():
rows = model.objects \
.values("topic", model.journalist_field_name() + "__sex") \
.filter(covid19=1,
**{model.journalist_field_name() + "__sex__in": self.male_female_ids},
country__in=self.country_list) \
.annotate(n=Count("id"))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for r in rows:
counts.update({(r["sex"], TOPIC_GROUPS[r["topic"]]): r["n"]})
self.tabulate(ws, counts, GENDER, MAJOR_TOPICS, row_perc=True, show_N=True)
overall_row = ws.dim_rowmax + 2
total = sum(counts.values())
value = sum([counts[x] for x in counts if x[0] in self.female_ids])
ws.write(overall_row, overall_column-1, "Overall Female", self.label)
self.write_overall_value(ws, value, total, overall_column+1, overall_row, write_overall=False)
if gen_dataset:
tabulate_dataset("ws_101", ["Topic", "Gender", "Year", "Geography", "Count"], counts, ws_101_dataset)
def ws_102(self, ws, gen_dataset=False):
"""
Cols: Gender stereotypes
Rows: Major topic, covid stories only
"""
counts = Counter()
overall_column = ws.dim_colmax
for media_type, model in sheet_models.items():
rows = (
model.objects.values("stereotypes", "topic")
.filter(covid19=1, country__in=self.country_list)
.annotate(n=Count("id"))
)
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for r in rows:
counts.update({(r["stereotypes"], TOPIC_GROUPS[r["topic"]]): r["n"]})
self.tabulate(ws, counts, AGREE_DISAGREE, MAJOR_TOPICS, row_perc=True)
overall_row = ws.dim_rowmax + 2
total = sum(counts.values())
value = sum([counts[x] for x in counts if x[0] == 1])
self.write_overall_value(ws, value, total, overall_column, overall_row, write_overall=True, overall_label="Overall Agree")
if gen_dataset:
tabulate_dataset("ws_102", ["Topic", "Agree/Disagree", "Year", "Geography", "Count"], counts, ws_102_dataset)
def ws_103(self, ws):
"""
Cols: Gender inequalities
Rows: Major topic, covid stories only
"""
counts = Counter()
overall_column = ws.dim_colmax
for media_type, model in sheet_models.items():
if "equality_rights" in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects\
.values("equality_rights", "topic") \
.filter(covid19=1, country__in=self.country_list) \
.annotate(n=Count("id"))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for r in rows:
counts.update({(r["equality_rights"], TOPIC_GROUPS[r["topic"]]): r["n"]})
self.tabulate(ws, counts, YESNO, MAJOR_TOPICS, row_perc=True)
overall_row = ws.dim_rowmax + 2
total = sum(counts.values())
value = sum([counts[x] for x in counts if x[0] == 'Y'])
self.write_overall_value(ws, value, total, overall_column, overall_row, write_overall=True, overall_label="Overall Yes")
def ws_104(self, ws, gen_dataset=False):
"""
Cols: Function in story
Rows: Major topic, covid stories only, Sex of source
"""
r = 6
c = 2
for _, col_heading in FUNCTION:
ws.merge_range(r-2, c, r-2, c+1, clean_title(col_heading), self.col_heading)
ws.write(r - 1, c, "%")
ws.write(r - 1, c + 1, "N")
c += 2
gender_ids = [x[0] for x in GENDER]
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
for media_type, model in person_models.items():
# some Person models don't have a function field
if "function" in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects \
.values("sex", "function") \
.filter(**{model.sheet_name() + "__covid19": 1}) \
.filter(**{model.sheet_name() + "__country__in": self.country_list}) \
.filter(**{model.sheet_name() + "__topic__in": topic_ids}) \
.filter(sex__in=gender_ids) \
.annotate(n=Count("id"))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r["function"], r["sex"]): r["n"] for r in rows})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
self.write_primary_row_heading(ws, major_topic_name, r=r)
self.tabulate(ws, counts, FUNCTION, GENDER, write_col_headings=False, write_col_totals=False, r=r, show_N=True)
r += len(GENDER)
if gen_dataset:
tabulate_dataset("ws_104", ["Topic", "Gender", "Function", "Year", "Geography", "Count"], counts, ws_104_dataset, topic=major_topic_name)
def ws_105(self, ws):
"""
Cols: Survivors
Rows: Major topic, covid stories only, Sex of source
"""
r = 6
c = 2
for _, col_heading in SURVIVOR_OF:
ws.merge_range(r-2, c, r-2, c+1, clean_title(col_heading), self.col_heading)
ws.write(r - 1, c, "%")
ws.write(r - 1, c + 1, "N")
c += 2
gender_ids = [x[0] for x in GENDER]
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
for media_type, model in person_models.items():
if "survivor_of" in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects \
.values("sex", "survivor_of") \
.filter(**{model.sheet_name() + "__covid19": 1}) \
.filter(**{model.sheet_name() + "__country__in": self.country_list}) \
.exclude(survivor_of=None) \
.filter(**{model.sheet_name() + "__topic__in": topic_ids}) \
.filter(sex__in=gender_ids) \
.annotate(n=Count("id"))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r["survivor_of"], r["sex"]): r["n"] for r in rows})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
self.write_primary_row_heading(ws, major_topic_name, r=r)
self.tabulate(ws, counts, SURVIVOR_OF, GENDER, write_col_headings=False, write_col_totals=False, r=r, show_N=True)
r += len(GENDER)
def ws_106(self, ws):
"""
Cols: Occupation
Rows: Major topic, covid stories only, Sex of source
"""
r = 6
c = 2
for _, col_heading in OCCUPATION:
ws.merge_range(r-2, c, r-2, c+1, clean_title(col_heading), self.col_heading)
ws.write(r - 1, c, "%")
ws.write(r - 1, c + 1, "N")
c += 2
gender_ids = [x[0] for x in GENDER]
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
for media_type, model in person_models.items():
if "occupation" in [field_name.name for field_name in model._meta.get_fields()]:
rows = model.objects \
.values("sex", "occupation") \
.filter(**{model.sheet_name() + "__covid19": 1}) \
.filter(**{model.sheet_name() + "__country__in": self.country_list}) \
.filter(**{model.sheet_name() + "__topic__in": topic_ids}) \
.filter(sex__in=gender_ids) \
.annotate(n=Count("id"))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
counts.update({(r["occupation"], r["sex"]): r["n"] for r in rows})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
self.write_primary_row_heading(ws, major_topic_name, r=r)
self.tabulate(ws, counts, OCCUPATION, GENDER, write_col_headings=False, write_col_totals=False, r=r, show_N=True)
r += len(GENDER)
def ws_107(self, ws):
"""
Cols: Medium
Rows: SQ 1,2,3, Major topic
"""
r = 6
c = 2
for _, col_heading in MEDIA_TYPES:
ws.merge_range(r-2, c, r-2, c+1, clean_title(col_heading), self.sec_col_heading)
ws.write(r - 1, c, "Yes", self.col_heading)
ws.write(r - 1, c + 1, "No", self.col_heading)
c += 2
secondary_counts = OrderedDict()
for sq_field, sq in SPECIAL_QUESTIONS.items():
for media_type, model in person_models.items():
counts = Counter()
sheet_name = model.sheet_name()
rows = model.objects \
.values(sq_field, f"{sheet_name}__topic") \
.filter(**{f"{sheet_name}__country__in": self.country_list}) \
.exclude(**{sq_field: ""}) \
.annotate(n=Count("id"))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
counts.update({(row[sq_field], TOPIC_GROUPS[row['topic']]): row['n']})
secondary_counts[media_type] = counts
self.write_primary_row_heading(ws, sq, r=r)
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, MAJOR_TOPICS, row_perc=False, write_primary_col_headins=False, write_col_headings=False, write_col_totals=False, r=r, raw_values=True)
r += len(MAJOR_TOPICS)
def ws_108(self, ws):
"""
Cols: People in the news, by sex
Rows: SQ 1,2,3, Major topic
"""
r = 6
c = 2
# Write definitions of column heading titles
ws.write(r-1, c-1, "Sex of source", self.col_heading_def)
for _, sec_col_heading in YESNO:
ws.merge_range(r-2, c, r-2, c+len(GENDER)-1, clean_title(sec_col_heading), self.sec_col_heading)
for _, col_heading in GENDER:
ws.write(r-1, c, clean_title(col_heading), self.col_heading)
c += 1
secondary_counts = OrderedDict()
for sq_field, sq in SPECIAL_QUESTIONS.items():
for yes_no, _ in YESNO:
counts = Counter()
for media_type, model in person_models.items():
sheet_name = model.sheet_name()
rows = model.objects \
.values(sq_field, "sex", f"{sheet_name}__topic") \
.filter(**{f"{sheet_name}__country__in": self.country_list}) \
.exclude(**{sq_field: ""}) \
.filter(**{sq_field: yes_no}) \
.annotate(n=Count("id"))
rows= self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
counts.update({(row["sex"], TOPIC_GROUPS[row['topic']]): row['n']})
secondary_counts[yes_no] = counts
self.write_primary_row_heading(ws, sq, r=r)
self.tabulate_secondary_cols(ws, secondary_counts, GENDER, MAJOR_TOPICS, row_perc=False, write_primary_col_headins=False, write_col_headings=False, write_col_totals=False, r=r, raw_values=True)
r += len(MAJOR_TOPICS)
def ws_109(self, ws):
"""
Cols: Reporters by sex
Rows: SQ 1,2,3, Major topic
"""
r = 6
c = 2
# Write definitions of column heading titles
ws.write(r-1, c-1, "Sex of reporter", self.col_heading_def)
for _, sec_col_heading in YESNO:
ws.merge_range(r-2, c, r-2, c+len(GENDER)-1, clean_title(sec_col_heading), self.sec_col_heading)
for _, col_heading in GENDER:
ws.write(r-1, c, clean_title(col_heading), self.col_heading)
c += 1
secondary_counts = OrderedDict()
for sq_field, sq in SPECIAL_QUESTIONS.items():
for yes_no, _ in YESNO:
counts = Counter()
for media_type, model in person_models.items():
sheet_name = model.sheet_name()
journalist_field_name = model._meta.get_field(model.sheet_name()).remote_field.model.journalist_field_name()
rows = model.objects \
.values(sq_field, f"{sheet_name}__{journalist_field_name}__sex", f"{sheet_name}__topic") \
.filter(**{f"{sheet_name}__country__in": self.country_list}) \
.exclude(**{sq_field: ""}) \
.filter(**{sq_field: yes_no}) \
.annotate(n=Count("id"))
rows= self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
counts.update({(row["sex"], TOPIC_GROUPS[row['topic']]): row['n']})
secondary_counts[yes_no] = counts
self.write_primary_row_heading(ws, sq, r=r)
self.tabulate_secondary_cols(ws, secondary_counts, GENDER, MAJOR_TOPICS, row_perc=False, write_primary_col_headins=False, write_col_headings=False, write_col_totals=False, r=r, raw_values=True)
r += len(MAJOR_TOPICS)
def ws_110(self, ws):
"""
Cols: Rights
Rows: SQ 1,2,3, Major topic
"""
r = 6
c = 2
# Write definitions of column heading titles
ws.write(r-1, c-1, "Does this story make reference to gender equality or human rights", self.col_heading_def)
for _, sec_col_heading in YESNO:
ws.merge_range(r-2, c, r-2, c+len(YESNO)-1, clean_title(sec_col_heading), self.sec_col_heading)
for _, col_heading in YESNO:
ws.write(r-1, c, clean_title(col_heading), self.col_heading)
c += 1
secondary_counts = OrderedDict()
for sq_field, sq in SPECIAL_QUESTIONS.items():
for yes_no, _ in YESNO:
counts = Counter()
for media_type, model in person_models.items():
sheet_name = model.sheet_name()
rows = model.objects \
.values(sq_field, f"{sheet_name}__equality_rights", f"{sheet_name}__topic") \
.filter(**{f"{sheet_name}__country__in": self.country_list}) \
.exclude(**{sq_field: ""}) \
.filter(**{sq_field: yes_no}) \
.annotate(n=Count("id"))
rows= self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
counts.update({(row["equality_rights"], TOPIC_GROUPS[row['topic']]): row['n']})
secondary_counts[yes_no] = counts
self.write_primary_row_heading(ws, sq, r=r)
self.tabulate_secondary_cols(ws, secondary_counts, YESNO, MAJOR_TOPICS, row_perc=False, write_primary_col_headins=False, write_col_headings=False, write_col_totals=False, r=r, raw_values=True)
r += len(MAJOR_TOPICS)
def ws_111(self, ws):
"""
Cols: Gender stereotypes
Rows: SQ 1,2,3, Major topic
"""
r = 6
c = 2
# Write definitions of column heading titles
ws.write(r-1, c-1, "This story clearly challenges gender stereotypes", self.col_heading_def)
for _, sec_col_heading in YESNO:
ws.merge_range(r-2, c, r-2, c+len(AGREE_DISAGREE)-1, clean_title(sec_col_heading), self.sec_col_heading)
for _, col_heading in AGREE_DISAGREE:
ws.write(r-1, c, clean_title(col_heading), self.col_heading)
c += 1
secondary_counts = OrderedDict()
for sq_field, sq in SPECIAL_QUESTIONS.items():
for yes_no, _ in YESNO:
counts = Counter()
for media_type, model in person_models.items():
sheet_name = model.sheet_name()
rows = model.objects \
.values(sq_field, f"{sheet_name}__stereotypes", f"{sheet_name}__topic") \
.filter(**{f"{sheet_name}__country__in": self.country_list}) \
.exclude(**{sq_field: ""}) \
.filter(**{sq_field: yes_no}) \
.annotate(n=Count("id"))
rows= self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
counts.update({(row["stereotypes"], TOPIC_GROUPS[row['topic']]): row['n']})
secondary_counts[yes_no] = counts
self.write_primary_row_heading(ws, sq, r=r)
self.tabulate_secondary_cols(ws, secondary_counts, AGREE_DISAGREE, MAJOR_TOPICS, row_perc=False, write_primary_col_headins=False, write_col_headings=False, write_col_totals=False, r=r, raw_values=True)
r += len(MAJOR_TOPICS)
def ws_s01(self, ws):
"""
Cols: Sex of presenters, reporters and subjects
Rows: Country
:: Newspaper, television, radio
"""
secondary_counts = OrderedDict()
presenter_reporter = [('Presenter',[1, 3]), ('Reporter', [2])]
for journo_type, role_ids in presenter_reporter:
counts = Counter()
if journo_type == 'Presenter':
journo_models = broadcast_journalist_models
elif journo_type == 'Reporter':
journo_models = tm_journalist_models
for media_type, model in journo_models.items():
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
# Newspaper journos don't have roles
rows = rows.filter(role__in=role_ids)
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts[journo_type] = counts
counts = Counter()
for media_type, model in tm_person_models.items():
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts['Subjects'] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True)
def ws_s02(self, ws):
"""
Cols: Medium; Sex of subjects
Rows: Country
:: Newspaper, television, radio
"""
secondary_counts = OrderedDict()
for media_type, model in tm_person_models.items():
counts = Counter()
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts[media_type] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True)
def ws_s03(self, ws):
"""
Cols: Major topics; Sex
Rows: Country
:: Newspaper, television, radio
"""
secondary_counts = OrderedDict()
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
for media_type, model in tm_person_models.items():
country = model.sheet_name() + '__country'
topic = model.sheet_name() + '__topic'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(**{topic + '__in': topic_ids})\
.annotate(n=Count('id'))
counts.update({(r['sex'], self.recode_country(r[country])): r['n'] for r in rows})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
secondary_counts[major_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True)
def ws_s04(self, ws):
"""
Cols: Occupation; Sex
Rows: Country
:: Newspaper, television, radio
"""
secondary_counts = OrderedDict()
for occupation_id, occupation in OCCUPATION:
counts = Counter()
for media_type, model in tm_person_models.items():
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(occupation=occupation_id)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts[clean_title(occupation)] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True)
def ws_s05(self, ws):
"""
Cols: Function; Sex
Rows: Country
:: Newspaper, television, radio
"""
secondary_counts = OrderedDict()
for function_id, function in FUNCTION:
counts = Counter()
for media_type, model in tm_person_models.items():
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(function=function_id)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts[clean_title(function)] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True)
def ws_s06(self, ws):
"""
Cols: Victims; Sex
Rows: Country
:: Newspaper, television, radio
"""
secondary_counts = OrderedDict()
counts = Counter()
for media_type, model in tm_person_models.items():
country = model.sheet_name() + '__country'
"""
Victim codes 0: Not applicable
9: Do not know
"""
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(victim_or_survivor='Y')\
.exclude(victim_of__in=[0,9])\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts['Victim'] = counts
counts = Counter()
for media_type, model in tm_person_models.items():
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(victim_or_survivor='N')\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
for media_type, model in tm_person_models.items():
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(victim_or_survivor='Y')\
.exclude(survivor_of__in=[0,9])\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts['Not a victim'] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True)
def ws_s07(self, ws):
"""
Cols: Family status; Sex
Rows: Country
:: Newspaper, television, radio
"""
secondary_counts = OrderedDict()
for code, answer in YESNO:
counts = Counter()
for media_type, model in tm_person_models.items():
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(family_role=code)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts[answer] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True)
def ws_s08(self, ws):
"""
Cols: Quoted; Sex
Rows: Country
:: Newspaper only
"""
secondary_counts = OrderedDict()
model = person_models.get('Print')
for code, answer in YESNO:
counts = Counter()
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(is_quoted=code)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts[answer] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True)
def ws_s09(self, ws):
"""
Cols: Photographed; Sex
Rows: Country
:: Newspaper only
"""
secondary_counts = OrderedDict()
model = person_models.get('Print')
for code, answer in IS_PHOTOGRAPH:
counts = Counter()
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(is_photograph=code)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts[answer] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True)
def ws_s10(self, ws):
"""
Cols: Media; Journo Type; Sex
Rows: Country
:: Newspaper only
"""
c = 1
r = 8
write_row_headings = True
for media_type, model in tm_journalist_models.items():
if media_type in broadcast_journalist_models:
presenter_reporter = [('Presenter',[1, 3]), ('Reporter', [2])]
else:
# Newspaper journos don't have roles
presenter_reporter = [('Reporter', [])]
col = c + (1 if write_row_headings else 0)
merge_range = (len(presenter_reporter) * len(self.male_female) * 2) - 1
ws.merge_range(r-4, col, r-4, col + merge_range, clean_title(media_type), self.col_heading)
secondary_counts = OrderedDict()
for journo_type, role_ids in presenter_reporter:
counts = Counter()
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
# Newspaper journos don't have roles
rows = rows.filter(role__in=role_ids)
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts[journo_type] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, c=c, r=r, write_row_headings=write_row_headings, row_perc=True, show_N=True)
c += (len(presenter_reporter) * len(self.male_female) * 2) + (1 if write_row_headings else 0)
write_row_headings = False
def ws_s11(self, ws):
"""
Cols: Major topics; Sex
Rows: Country
:: Newspaper, television, radio
"""
secondary_counts = OrderedDict()
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
for media_type, model in tm_journalist_models.items():
country = model.sheet_name() + '__country'
topic = model.sheet_name() + '__topic'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(**{topic + '__in': topic_ids})\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(role=REPORTERS)
counts.update({(r['sex'], self.recode_country(r[country])): r['n'] for r in rows})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
secondary_counts[major_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True)
def ws_s12(self, ws):
"""
Cols: Major topics; Women Central
Rows: Country
:: Newspaper, television, radio
"""
counts = Counter()
for media_type, model in tm_sheet_models.items():
rows = model.objects\
.values('topic', 'country')\
.filter(country__in=self.country_list)\
.filter(about_women='Y')\
.annotate(n=Count('id'))
for row in rows:
major_topic = TOPIC_GROUPS[row['topic']]
counts.update({(major_topic, self.recode_country(row['country'])): row['n']})
self.tabulate(ws, counts, MAJOR_TOPICS, self.countries, raw_values=True, write_col_totals=False)
def ws_s13(self, ws):
"""
Cols: Journalist Sex, Subject Sex
Rows: Country
:: Newspaper, television, radio
"""
secondary_counts = OrderedDict()
for sex_id, sex in self.male_female:
counts = Counter()
for media_type, model in tm_person_models.items():
sheet_name = model.sheet_name()
journo_name = model._meta.get_field(model.sheet_name()).remote_field.model.journalist_field_name()
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{model.sheet_name() + '__country__in':self.country_list})\
.filter(**{sheet_name + '__' + journo_name + '__sex':sex_id})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(**{sheet_name + '__' + journo_name + '__role':REPORTERS})
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts[sex] = counts
secondary_counts['col_title_def'] = [
'Sex of reporter',
'Sex of news subject']
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True)
def ws_s14(self, ws):
"""
Cols: Stereotypes
Rows: Country
:: Newspaper, television, radio
"""
counts = Counter()
for media_type, model in tm_sheet_models.items():
rows = model.objects\
.values('stereotypes', 'country')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['stereotypes'], self.recode_country(row['country'])): row['n']})
self.tabulate(ws, counts, AGREE_DISAGREE, self.countries, row_perc=True, show_N=True)
def ws_s15(self, ws):
"""
Cols: Gender inequality
Rows: Country
:: Newspaper, television, radio
"""
counts = Counter()
for media_type, model in tm_sheet_models.items():
rows = model.objects\
.values('inequality_women', 'country')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['inequality_women'], self.recode_country(row['country'])): row['n']})
self.tabulate(ws, counts, AGREE_DISAGREE, self.countries, row_perc=True, show_N=True)
def ws_s16(self, ws):
"""
Cols: Equality rights
Rows: Country
:: Newspaper, television, radio
"""
counts = Counter()
for media_type, model in tm_sheet_models.items():
rows = model.objects\
.values('equality_rights', 'country')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['equality_rights'], self.recode_country(row['country'])): row['n']})
self.tabulate(ws, counts, YESNO, self.countries, row_perc=True, show_N=True)
def ws_s17(self, ws):
"""
Cols: Sex of reporters and subjects
Rows: Country
:: Internet, Twitter
"""
c = 1
for media_type, model in dm_journalist_models.items():
self.write_primary_row_heading(ws, media_type, c=c+1, r=4)
secondary_counts = OrderedDict()
counts = Counter()
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts['Reporter'] = counts
counts = Counter()
model =dm_person_models[media_type]
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts['Subjects'] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True, c=c, r=8)
c = ws.dim_colmax + 2
def ws_s18(self, ws):
"""
Cols: Sex of subjects
Rows: Country
:: Internet, Twitter
"""
c = 1
for media_type, model in dm_person_models.items():
self.write_primary_row_heading(ws, media_type, c=c+1, r=4)
counts = Counter()
country = model.sheet_name() + '__country'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
self.tabulate(ws, counts, self.male_female, self.countries, row_perc=True, show_N=True, c=c, r=7)
c = ws.dim_colmax + 2
def ws_s19(self, ws):
"""
Cols: Major topics; Sex
Rows: Country
:: Internet, Twitter
"""
c = 1
for media_type, model in dm_person_models.items():
self.write_primary_row_heading(ws, media_type, c=c+1, r=4)
secondary_counts = OrderedDict()
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
country = model.sheet_name() + '__country'
topic = model.sheet_name() + '__topic'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(**{topic + '__in': topic_ids})\
.annotate(n=Count('id'))
counts.update({(r['sex'], self.recode_country(r[country])): r['n'] for r in rows})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
secondary_counts[major_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True, c=c, r=8)
c = ws.dim_colmax + 2
def ws_s20(self, ws):
"""
Cols: Occupation; Sex
Rows: Country
:: Internet, Twitter
"""
c = 1
for media_type, model in dm_person_models.items():
if not media_type == 'Twitter':
self.write_primary_row_heading(ws, media_type, c=c+1, r=4)
secondary_counts = OrderedDict()
country = model.sheet_name() + '__country'
for occupation_id, occupation in OCCUPATION:
counts = Counter()
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(occupation=occupation_id)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts[clean_title(occupation)] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True, c=c, r=8)
c = ws.dim_colmax + 2
def ws_s21(self, ws):
"""
Cols: Function; Sex
Rows: Country
:: Internet, Twitter
"""
c = 1
for media_type, model in dm_person_models.items():
if not media_type == 'Twitter':
self.write_primary_row_heading(ws, media_type, c=c+1, r=4)
secondary_counts = OrderedDict()
country = model.sheet_name() + '__country'
for function_id, function in FUNCTION:
counts = Counter()
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(function=function_id)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts[clean_title(function)] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True, c=c, r=8)
c = ws.dim_colmax + 2
def ws_s22(self, ws):
"""
Cols: Victims; Sex
Rows: Country
:: Internet, Twitter
"""
c = 1
for media_type, model in dm_person_models.items():
if not media_type == 'Twitter':
self.write_primary_row_heading(ws, media_type, c=c+1, r=4)
secondary_counts = OrderedDict()
country = model.sheet_name() + '__country'
counts = Counter()
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(victim_or_survivor='Y')\
.exclude(victim_of=0)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts['Victim'] = counts
counts = Counter()
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(victim_or_survivor='N')\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(victim_or_survivor='Y')\
.exclude(survivor_of=0)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts['Not a victim'] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True, c=c, r=8)
c = ws.dim_colmax + 2
def ws_s23(self, ws):
"""
Cols: Quoted; Sex
Rows: Country
:: Internet, Twitter
"""
c = 1
for media_type, model in dm_person_models.items():
if not media_type == 'Twitter':
self.write_primary_row_heading(ws, media_type, c=c+1, r=4)
secondary_counts = OrderedDict()
country = model.sheet_name() + '__country'
for code, answer in YESNO:
counts = Counter()
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(is_quoted=code)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts[answer] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True, c=c, r=8)
c = ws.dim_colmax + 2
def ws_s24(self, ws):
"""
Cols: Photographed; Sex
Rows: Country
:: Internet, Twitter
"""
c = 1
for media_type, model in dm_person_models.items():
self.write_primary_row_heading(ws, media_type, c=c+1, r=4)
secondary_counts = OrderedDict()
country = model.sheet_name() + '__country'
for code, answer in IS_PHOTOGRAPH:
counts = Counter()
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(is_photograph=code)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country])): row['n']})
secondary_counts[answer] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True, c=c, r=8)
c = ws.dim_colmax + 2
def ws_s25(self, ws):
"""
Cols: Major topics; Sex
Rows: Country
:: Internet, Twitter
"""
c = 1
for media_type, model in dm_journalist_models.items():
self.write_primary_row_heading(ws, media_type, c=c+1, r=4)
secondary_counts = OrderedDict()
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
country = model.sheet_name() + '__country'
topic = model.sheet_name() + '__topic'
rows = model.objects\
.values('sex', country)\
.filter(**{country + '__in': self.country_list})\
.filter(sex__in=self.male_female_ids)\
.filter(**{topic + '__in': topic_ids})\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(role=REPORTERS)
counts.update({(r['sex'], self.recode_country(r[country])): r['n'] for r in rows})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
secondary_counts[major_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.countries, row_perc=True, show_N=True, c=c, r=8)
c = ws.dim_colmax + 2
def ws_s26(self, ws):
"""
Cols: Major topics; Women Central
Rows: Country
:: Internet, Twitter
"""
c = 1
for media_type, model in dm_sheet_models.items():
self.write_primary_row_heading(ws, media_type, c=c+1, r=4)
counts = Counter()
rows = model.objects\
.values('topic', 'country')\
.filter(country__in=self.country_list)\
.filter(about_women='Y')\
.annotate(n=Count('id'))
for row in rows:
major_topic = TOPIC_GROUPS[row['topic']]
counts.update({(major_topic, self.recode_country(row['country'])): row['n']})
self.tabulate(ws, counts, MAJOR_TOPICS, self.countries, raw_values=True, c=c, r=7, write_col_totals=False)
c = ws.dim_colmax + 2
def ws_s27(self, ws):
"""
Cols: Stereotypes
Rows: Country
:: Internet, Twitter
"""
c = 1
for media_type, model in dm_sheet_models.items():
self.write_primary_row_heading(ws, media_type, c=c+1, r=4)
counts = Counter()
rows = model.objects\
.values('stereotypes', 'country')\
.filter(country__in=self.country_list)\
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['stereotypes'], self.recode_country(row['country'])): row['n']})
self.tabulate(ws, counts, AGREE_DISAGREE, self.countries, raw_values=True, c=c, r=7, write_col_totals=False)
c = ws.dim_colmax + 2
def ws_s28(self, ws):
"""
Cols: Sex of subject
Rows: Country
"""
counts = Counter()
for _, model in person_models.items():
sheet_name = model.sheet_name()
country_field = f"{sheet_name}__country"
rows = model.objects \
.values('sex', country_field) \
.filter(**{f"{sheet_name}__covid19": 1}) \
.filter(**{f"{country_field}__in": self.country_list}) \
.filter(sex__in=self.male_female_ids) \
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country_field])): row['n']})
self.tabulate(ws, counts, self.male_female, self.countries, row_perc=True, show_N=True)
def ws_s29(self, ws):
"""
Cols: Sex of reporter
Rows: Country
"""
counts = Counter()
for _, model in journalist_models.items():
sheet_name = model.sheet_name()
country_field = f"{sheet_name}__country"
rows = model.objects \
.values('sex', country_field) \
.filter(**{f"{sheet_name}__covid19": 1}) \
.filter(**{f"{country_field}__in": self.country_list}) \
.filter(sex__in=self.male_female_ids) \
.annotate(n=Count('id'))
for row in rows:
counts.update({(row['sex'], self.recode_country(row[country_field])): row['n']})
self.tabulate(ws, counts, self.male_female, self.countries, row_perc=True, show_N=True)
def ws_sr01(self, ws):
"""
Cols: Sex of presenters, reporters and subjects
Rows: Country
:: Newspaper, television, radio by region
"""
secondary_counts = OrderedDict()
presenter_reporter = [('Presenter',[1, 3]), ('Reporter', [2])]
for journo_type, role_ids in presenter_reporter:
counts = Counter()
if journo_type == 'Presenter':
journo_models = broadcast_journalist_models
elif journo_type == 'Reporter':
journo_models = tm_journalist_models
for media_type, model in journo_models.items():
region = model.sheet_name() + '__country_region__region'
rows = model.objects\
.values('sex', region)\
.filter(**{region + '__in': self.all_region_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
# Newspaper journos don't have roles
rows = rows.filter(role__in=role_ids)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row["region"]][0]
counts.update({(row['sex'], region_id): row['n']})
secondary_counts[journo_type] = counts
counts = Counter()
for media_type, model in tm_person_models.items():
region = model.sheet_name() + '__country_region__region'
rows = model.objects\
.values('sex', region)\
.filter(**{region + '__in': self.all_region_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row["region"]][0]
counts.update({(row['sex'], region_id): row['n']})
secondary_counts['Subjects'] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.all_regions, row_perc=True, show_N=True)
def ws_sr02(self, ws):
"""
Cols: Major topics; Sex
Rows: Country
:: Newspaper, television, radio by region
"""
secondary_counts = OrderedDict()
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
for media_type, model in tm_sheet_models.items():
region = 'country_region__region'
person_sex_field = '%s__sex' % model.person_field_name()
rows = model.objects\
.values(person_sex_field, region)\
.filter(**{region + '__in': self.all_region_list})\
.filter(**{person_sex_field + '__in': self.male_female_ids})\
.filter(topic__in=topic_ids)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row["region"]][0]
counts.update({(row["sex"], region_id): row['n']})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
secondary_counts[major_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.all_regions, row_perc=True, show_N=True)
def ws_sr03(self, ws):
"""
Cols: Function; Sex
Rows: Country
:: Newspaper, television, radio by region
"""
secondary_counts = OrderedDict()
for function_id, function in FUNCTION:
counts = Counter()
for media_type, model in tm_person_models.items():
region = model.sheet_name() + '__country_region__region'
rows = model.objects\
.values('sex', region)\
.filter(**{region + '__in': self.all_region_list})\
.filter(sex__in=self.male_female_ids)\
.filter(function=function_id)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row["region"]][0]
counts.update({(row['sex'], region_id): row['n']})
secondary_counts[clean_title(function)] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.all_regions, row_perc=True, show_N=True)
def ws_sr04(self, ws):
"""
Cols: Photographed; Sex
Rows: Country
:: Newspaper only region
"""
secondary_counts = OrderedDict()
model = person_models.get('Print')
for code, answer in IS_PHOTOGRAPH:
counts = Counter()
region = model.sheet_name() + '__country_region__region'
rows = model.objects\
.values('sex', region)\
.filter(**{region + '__in': self.all_region_list})\
.filter(sex__in=self.male_female_ids)\
.filter(is_photograph=code)\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model.sheet_db_table(), 'Print')
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row["region"]][0]
counts.update({(row['sex'], region_id): row['n']})
secondary_counts[answer] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.all_regions, row_perc=True, show_N=True)
def ws_sr05(self, ws):
"""
Cols: Media; Journo Type; Sex
Rows: Country
:: Newspaper, television, radio by region
"""
c = 1
r = 8
write_row_headings = True
for media_type, model in journalist_models.items():
if media_type in broadcast_journalist_models:
presenter_reporter = [('Presenter',[1, 3]), ('Reporter', [2])]
else:
# Newspaper journos don't have roles
presenter_reporter = [('Reporter', [])]
col = c + (1 if write_row_headings else 0)
merge_range = (len(presenter_reporter) * len(self.male_female) * 2) - 1
ws.merge_range(r-4, col, r-4, col + merge_range, clean_title(media_type), self.col_heading)
secondary_counts = OrderedDict()
for journo_type, role_ids in presenter_reporter:
counts = Counter()
region = model.sheet_name() + '__country_region__region'
rows = model.objects\
.values('sex', region)\
.filter(**{region + '__in': self.all_region_list})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
# Newspaper journos don't have roles
rows = rows.filter(role__in=role_ids)
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
region_id = [reg[0] for reg in self.all_regions if reg[1] == row["region"]][0]
counts.update({(row['sex'], region_id): row['n']})
secondary_counts[journo_type] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.all_regions, row_perc=True, show_N=True, c=c, r=r, write_row_headings=write_row_headings)
c += (len(presenter_reporter) * len(self.male_female) * 2) + (1 if write_row_headings else 0)
write_row_headings = False
def ws_sr06(self, ws):
"""
Cols: Major topics; Sex
Rows: Country
:: Newspaper, television, radio by region
"""
secondary_counts = OrderedDict()
for major_topic, topic_ids in GROUP_TOPICS_MAP.items():
counts = Counter()
for media_type, model in tm_sheet_models.items():
region = 'country_region__region'
journo_sex_field = '%s__sex' % model.journalist_field_name()
journo_role_field = '%s__role' % model.journalist_field_name()
rows = model.objects\
.values(journo_sex_field, region)\
.filter(**{region + '__in': self.all_region_list})\
.filter(**{journo_sex_field + '__in': self.male_female_ids})\
.filter(topic__in=topic_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
# Newspaper journos don't have roles
rows = rows.filter(**{journo_role_field: REPORTERS})
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row["region"]][0]
counts.update({(row["sex"], region_id): row['n']})
major_topic_name = [mt[1] for mt in MAJOR_TOPICS if mt[0] == int(major_topic)][0]
secondary_counts[major_topic_name] = counts
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.all_regions, row_perc=True, show_N=True)
def ws_sr07(self, ws):
"""
Cols: Journalist Sex, Subject Sex
Rows: Country
:: Newspaper, television, radio by region
"""
secondary_counts = OrderedDict()
for sex_id, sex in self.male_female:
counts = Counter()
for media_type, model in tm_person_models.items():
sheet_name = model.sheet_name()
journo_name = model._meta.get_field(model.sheet_name()).remote_field.model.journalist_field_name()
region = model.sheet_name() + '__country_region__region'
rows = model.objects\
.values('sex', region)\
.filter(**{region + '__in': self.all_region_list})\
.filter(**{sheet_name + '__' + journo_name + '__sex':sex_id})\
.filter(sex__in=self.male_female_ids)\
.annotate(n=Count('id'))
if media_type in REPORTER_MEDIA:
rows = rows.filter(**{sheet_name + '__' + journo_name + '__role':REPORTERS})
rows = self.apply_weights(rows, model.sheet_db_table(), media_type)
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row["region"]][0]
counts.update({(row['sex'], region_id): row['n']})
secondary_counts[sex] = counts
secondary_counts['col_title_def'] = [
'Sex of reporter',
'Sex of news subject']
self.tabulate_secondary_cols(ws, secondary_counts, self.male_female, self.all_regions, row_perc=True, show_N=True)
def ws_sr08(self, ws):
"""
Cols: Major topics; Women Central
Rows: Country
:: Newspaper, television, radio by region
"""
counts = Counter()
region = 'country_region__region'
for media_type, model in tm_sheet_models.items():
rows = model.objects\
.values('topic', region)\
.filter(**{region + '__in': self.all_region_list})\
.filter(about_women='Y')\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for row in rows:
major_topic = TOPIC_GROUPS[row['topic']]
region_id = [r[0] for r in self.all_regions if r[1] == row["region"]][0]
counts.update({(major_topic, region_id): row['n']})
self.tabulate(ws, counts, MAJOR_TOPICS, self.all_regions, raw_values=True, write_col_totals=False)
def ws_sr09(self, ws):
"""
Cols: Gender inequality
Rows: Country
:: Newspaper, television, radio by region
"""
counts = Counter()
region = 'country_region__region'
for media_type, model in tm_sheet_models.items():
rows = model.objects\
.values('inequality_women', region)\
.filter(**{region + '__in': self.all_region_list})\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row["region"]][0]
counts.update({(row['inequality_women'], region_id): row['n']})
self.tabulate(ws, counts, AGREE_DISAGREE, self.all_regions, row_perc=True, show_N=True)
def ws_sr10(self, ws):
"""
Cols: Stereotypes
Rows: Country
:: Newspaper, television, radio by region
"""
counts = Counter()
region = 'country_region__region'
for media_type, model in tm_sheet_models.items():
rows = model.objects\
.values('stereotypes', region)\
.filter(**{region + '__in': self.all_region_list})\
.annotate(n=Count('id'))
rows = self.apply_weights(rows, model._meta.db_table, media_type)
for row in rows:
region_id = [r[0] for r in self.all_regions if r[1] == row["region"]][0]
counts.update({(row['stereotypes'], region_id): row['n']})
self.tabulate(ws, counts, AGREE_DISAGREE, self.all_regions, row_perc=True, show_N=True)
# -------------------------------------------------------------------------------
# Helper functions
#
def write_headers(self, ws, title, description):
"""
Write the headers to the worksheet
"""
ws.write(0, 0, title, self.heading)
ws.write(1, 0, description, self.heading)
ws.write(3, 2, self.current_year, self.heading)
def write_col_headings(self, ws, cols, c=2, r=4, show_N=False):
"""
:param ws: worksheet to write to
:param cols: list of `(col_id, col_title)` tuples of column ids and titles
:param r, c: initial position where cursor should start writing to
"""
if show_N:
for col_id, col_title in cols:
ws.write(r, c, clean_title(col_title), self.col_heading)
ws.write(r + 1, c, "N")
ws.write(r + 1, c + 1, "%")
c += 2
else:
for col_id, col_title in cols:
ws.write(r, c, clean_title(col_title), self.col_heading)
ws.write(r + 1, c, "%")
c += 1
def write_primary_row_heading(self, ws, heading, c=0, r=6):
"""
:param ws: worksheet to write to
:param heading: row heading to write
:param r, c: position where heading should be written to
"""
ws.write(r, c, clean_title(heading), self.heading)
def write_overall_value(self, ws, value, total, c, r, write_overall, overall_label = "Overall"):
if total == 0:
total = 1
p_value = value / total
if write_overall:
ws.write(r, c-1, overall_label, self.label)
ws.write(r, c, p_value, self.P)
def tabulate_secondary_cols(self, ws, secondary_counts, cols, rows, row_perc=False, write_row_headings=True, write_primary_col_headins=True, write_col_headings=True, write_col_totals=True, filter_cols=None, c=1, r=7, show_N=False, raw_values=False):
"""
:param ws: worksheet to write to
:param secondary_counts: dict in following format:
{'Primary column heading': Count object, ...}
:param list cols: list of `(col_id, col_title)` tuples of column ids and titles
:param list rows: list of `(row_id, row_heading)` tuples of row ids and titles
:param write_row_headings: See `tabulate` below.
:param write_primary_col_headings: Should we write the primary col headings i.e. keys in `secondary_counts` dict.
:param bool row_perc: should percentages by calculated by row instead of column (default: False)
"""
write_row_totals = row_perc and not show_N
# row titles
if write_row_headings:
for i, row in enumerate(rows):
row_id, row_heading = row
ws.write(r + i, c, clean_title(row_heading), self.label)
c += 1
if 'col_title_def' in secondary_counts:
# Write definitions of column heading titles
ws.write(r-3, c-1, secondary_counts['col_title_def'][0], self.sec_col_heading_def)
ws.write(r-2, c-1, secondary_counts['col_title_def'][1], self.col_heading_def)
secondary_counts.pop('col_title_def')
# number of columns per secondary column
sec_cols = len(filter_cols or cols)
if show_N:
sec_cols *= 2
if not show_N and row_perc:
sec_cols += 1
for field, counts in secondary_counts.items():
if write_primary_col_headins:
if sec_cols > 1:
ws.merge_range(r-3, c, r-3, c+sec_cols-1, clean_title(field), self.sec_col_heading)
else:
ws.write(r-3, c, clean_title(field), self.sec_col_heading)
self.tabulate(ws, counts, cols, rows, row_perc=row_perc, write_row_headings=False,
write_col_headings=write_col_headings, write_row_totals=write_row_totals,
write_col_totals=write_col_totals, filter_cols=filter_cols, r=r, c=c,
show_N=show_N, raw_values=raw_values)
c += sec_cols
def tabulate(self, ws, counts, cols, rows, row_perc=False,
write_row_headings=True, write_col_headings=True, write_row_totals=True, write_col_totals=True,
filter_cols=None, c=1, r=6, show_N=False, raw_values=False, unweighted=False):
""" Emit a table.
:param ws: worksheet to write to
:param dict counts: dict from `(col_id, row_id)` tuples to count for that combination.
:param list cols: list of `(col_id, col_title)` tuples of column ids and titles
:param list rows: list of `(row_id, row_heading)` tuples of row ids and titles
:param bool row_perc: should percentages by calculated by row instead of column (default: False)
:param write_row_headings: Should we write the row headings. False if already written.
:param write_row_totals: Should we write the row totals. False if tabultae_secondary_cols was run.
:param write_col_total: write column totals?
:param write_col_headings: Should we write the col headings. False if already written.
:param filter_cols: If not None, display only passed subset of columns e.g. only female
:param raw_values: calculate percentage based on values, or just use values?
:param r, c: initial position where cursor should start writing to
:param unweighted: values are unweighted? default: False
"""
if row_perc:
# Calc percentage by row
row_totals = {}
for row_id, row_heading in rows:
row_totals[row_id] = sum(int(round(counts.get((col_id, row_id), 0))) for col_id, _ in cols) # noqa
# row titles
if write_row_headings:
# else already written
for i, row in enumerate(rows):
row_id, row_heading = row
ws.write(r+i, c, clean_title(row_heading), self.label)
c += 1
# if only filtered results should be shown
# e.g. only print female columns
if filter_cols:
cols = filter_cols
title_N = "N"
if unweighted:
title_N = "N (raw)"
if 'col_title_def' in counts and write_col_headings:
# write definition of column headings
ws.write(r-2, c-1, counts['col_title_def'], self.col_heading_def)
counts.pop('col_title_def')
# values, written column by column
for col_id, col_heading in cols:
# column title
if write_col_headings:
# else already written
if show_N:
ws.merge_range(r-2, c, r-2, c+1, clean_title(col_heading), self.col_heading)
ws.write(r-1, c, "%", self.label)
ws.write(r-1, c+1, title_N, self.label)
else:
ws.write(r-2, c, clean_title(col_heading), self.col_heading)
if raw_values:
ws.write(r-1, c, title_N, self.label)
else:
ws.write(r-1, c, "%", self.label)
if not row_perc:
# calculate column totals
total = sum(int(round(counts.get((col_id, row_id), 0))) for row_id, _ in rows)
# values for this column
col_total = 0
for i, row in enumerate(rows):
row_id, row_title = row
if row_perc:
# row totals
total = row_totals[row_id]
n = int(round(counts.get((col_id, row_id), 0)))
perc = p(n, total)
col_total += perc
if raw_values:
ws.write(r+i, c, n, self.N)
else:
ws.write(r+i, c, perc, self.P)
if show_N:
ws.write(r+i, c+1, n, self.N)
if write_col_totals and not row_perc:
ws.write(r+i+1, c, col_total, self.P)
c += 2 if show_N else 1
if row_perc and write_row_totals:
if write_col_headings:
ws.write(r-1, c, title_N)
# Write the row totals
for i, row in enumerate(rows):
row_id, row_title = row
ws.write(r+i, c, row_totals[row_id], self.N)
def tabulate_historical(self, ws, current_ws, cols, rows, c=None, r=6, write_row_headings=True,
write_col_headings=True, show_N_and_P=False, major_cols=None,
skip_major_col_heading=False, write_year=True, values_N=False):
"""
Write historical data table.
:param ws: worksheet to write to
:param current_ws: name of the current period's worksheet
:param cols: list of (id, key) column pairs
:param rows: list of (id, key) row pairs
:param c: column to start at; default: furtherst column to the right
:param r: row to start at
:param write_row_headings: should row headings be written?
:param write_col_headings: should col headings be written?
:param show_N_and_P: show both N and P for a row/col value, or just show P?
:param major_cols: the major (top) columns as a list of (id, key) pairs
:param skip_major_col_heading: allow space for, but skip, major column headings?
:param write_year: should we write the year?
:param values_N: are the values we're printing N or P values? (default: False)
"""
if c is None:
c = ws.dim_colmax + 2
if values_N:
formats = [self.N, self.N]
else:
formats = [self.P, self.N]
try:
country = self.country_list[0]
region = self.region_list[0]
historical_data = self.historical.get(current_ws, self.report_type, year=self.historical_year,
region=region, country=country)
except KeyError as e:
if self.report_type == 'global':
raise e
ws.write(r, c, "Historical data not available at the %s level." % self.report_type)
self.log.warn(e)
return
years = sorted(historical_data.keys())
if major_cols:
r += 1
values_per_col = 2 if show_N_and_P else 1
if write_row_headings:
# row titles
for i, (row_id, row_heading) in enumerate(rows):
row_heading = clean_title(row_heading)
ws.write(r + i, c, row_heading)
c += 1
for year_i, year in enumerate(years):
year_data = historical_data[year]
if write_year:
offset = 3
if skip_major_col_heading or major_cols:
offset = 4
ws.write(r - offset, c, year, self.heading)
# for each major column heading
for mcol_id, mcol_heading in (major_cols or [(None, None)]):
if mcol_id is not None:
mcol_heading = clean_title(mcol_heading)
if canon(mcol_heading) not in year_data:
continue
if write_col_headings:
# major column title
width = len(cols) * values_per_col
if width > 1:
ws.merge_range(r - 3, c, r - 3, c + width - 1, mcol_heading, self.sec_col_heading)
else:
ws.write(r - 3, c, mcol_heading, self.sec_col_heading)
# get data
data = year_data[canon(mcol_heading)]
else:
data = year_data
# do we need to keep N aside as a special column?
columns = cols
if canon('N') in data:
columns = columns + [('N', 'N')]
if canon('n_digital') in data:
columns = columns + [('N', 'n_digital')]
# for each minor column heading
for col_id, col_heading in columns:
col_heading = clean_title(col_heading)
if canon(col_heading) not in data:
continue
# column title
value_formats = formats
if write_col_headings:
if col_heading != 'N' and col_heading !='n_digital':
if values_per_col > 1:
ws.merge_range(r - 2, c, r - 2, c + values_per_col - 1, col_heading, self.col_heading)
else:
ws.write(r - 2, c, col_heading, self.col_heading)
ws.write(r - 1, c, '%', self.label)
# if multiple values for this column, we're writing both a
# percentage and an N
if show_N_and_P:
ws.write(r - 1, c + 1, 'N', self.label)
else:
ws.write(r - 1, c, 'N', self.label)
value_formats = [self.N, self.N]
# row values
for i, (row_id, row_heading) in enumerate(rows):
row_heading = clean_title(row_heading)
value = data[canon(col_heading)].get(canon(row_heading))
if value is None:
# check if it's due to having % and N
p = data.get(canon(col_heading), {}).get('%', {})
n = data.get(canon(col_heading), {}).get('n', {})
if (p or n):
value = [p.get(canon(row_heading), "n/a"), n.get(canon(row_heading), "n/a")]
else:
value = ['n/a'] * values_per_col
elif not isinstance(value, list):
value = [value]
for v in range(values_per_col):
ws.write(r + i, c + v, value[v], value_formats[v])
# for next column
c += values_per_col
| 42.419434
| 253
| 0.554321
| 27,043
| 226,138
| 4.38742
| 0.025589
| 0.025108
| 0.023835
| 0.021711
| 0.856172
| 0.834065
| 0.805173
| 0.781979
| 0.758228
| 0.740259
| 0
| 0.009586
| 0.329246
| 226,138
| 5,330
| 254
| 42.427392
| 0.772631
| 0.069962
| 0
| 0.718455
| 0
| 0
| 0.054668
| 0.006636
| 0
| 0
| 0
| 0.000375
| 0
| 1
| 0.048927
| false
| 0
| 0.004578
| 0.000286
| 0.0598
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
adc7678cc305cd0d7691944961e2ee5f3b0339d2
| 8,718
|
py
|
Python
|
architecture_tool_django/modeling/forms.py
|
goldginkgo/architecture_tool_django
|
e4229c5938a4dd01d0877afa7b93daf68e09283b
|
[
"MIT"
] | 1
|
2021-08-13T01:37:29.000Z
|
2021-08-13T01:37:29.000Z
|
architecture_tool_django/modeling/forms.py
|
goldginkgo/architecture_tool_django
|
e4229c5938a4dd01d0877afa7b93daf68e09283b
|
[
"MIT"
] | null | null | null |
architecture_tool_django/modeling/forms.py
|
goldginkgo/architecture_tool_django
|
e4229c5938a4dd01d0877afa7b93daf68e09283b
|
[
"MIT"
] | 1
|
2021-07-19T07:57:54.000Z
|
2021-07-19T07:57:54.000Z
|
from crispy_forms.helper import FormHelper
from crispy_forms.layout import HTML, Column, Div, Field, Layout, Row, Submit
from django import forms
from django.core.exceptions import ValidationError
from jsonschema import Draft4Validator
from .models import Edgetype, Nodetype, Schema
class NodeTypeCreateForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(NodeTypeCreateForm, self).__init__(*args, **kwargs)
self.helper = FormHelper(self)
self.helper.form_class = "form-horizontal"
self.helper.attrs["novalidate"] = True
self.helper.form_group_wrapper_class = "row"
self.helper.label_class = "col-sm-2"
self.helper.field_class = "col-sm-10"
self.helper.layout = Layout(
Div(
"key",
"name",
"description",
"attribute_schema",
"umlType",
"folder",
css_class="card-body",
),
Div(
Submit("submit", "Submit"),
HTML(
'<a class="btn btn-default float-right" href="{% url "modeling:nodetype.list" %}">Cancel</a>'
),
css_class="card-footer",
),
)
class Meta:
model = Nodetype
fields = (
"key",
"name",
"description",
"attribute_schema",
"umlType",
"folder",
)
widgets = {
"description": forms.Textarea(attrs={"rows": 2}),
}
class NodeTypeUpdateForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(NodeTypeUpdateForm, self).__init__(*args, **kwargs)
self.helper = FormHelper(self)
self.helper.attrs["novalidate"] = True
self.helper.layout = Layout(
Div(
Row(
Column(
Field("key", readonly=True), readonly=True, css_class="col-md-6"
),
Column("name", css_class="col-md-6"),
),
"description",
Row(
Column("attribute_schema", css_class="col-md-6"),
Column("umlType", css_class="col-md-6"),
),
Row(
Column("folder", css_class="col-md-6"),
),
css_class="card-body",
),
Div(
Submit("submit", "Submit"),
HTML(
'<a class="btn btn-default float-right" href="{% url "modeling:nodetype.list" %}">Cancel</a>'
),
css_class="card-footer",
),
)
class Meta:
model = Nodetype
fields = (
"key",
"name",
"description",
"attribute_schema",
"umlType",
"folder",
)
widgets = {
"description": forms.Textarea(attrs={"rows": 2}),
}
class SchemaCreateForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(SchemaCreateForm, self).__init__(*args, **kwargs)
self.helper = FormHelper(self)
self.helper.form_class = "form-horizontal"
self.helper.attrs["novalidate"] = True
self.helper.form_group_wrapper_class = "row"
self.helper.label_class = "col-lg-1"
self.helper.field_class = "col-lg-11"
self.helper.layout = Layout(
Div(
"key",
"description",
Field("schema", id="textarea-codemirror"),
css_class="card-body",
),
Div(
Submit("submit", "Submit"),
HTML(
'<button type="button" class="btn btn-primary float-left mr-2" id="format">Format</button>'
),
css_class="card-footer",
),
)
def clean_schema(self):
schema = self.cleaned_data["schema"]
try:
Draft4Validator.check_schema(schema)
except Exception as err:
raise ValidationError(err.message)
return schema
class Meta:
model = Schema
fields = (
"key",
"description",
"schema",
)
widgets = {
"description": forms.Textarea(attrs={"rows": 2}),
}
class SchemaUpdateForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(SchemaUpdateForm, self).__init__(*args, **kwargs)
self.helper = FormHelper(self)
self.helper.form_class = "form-horizontal"
self.helper.attrs["novalidate"] = True
self.helper.form_group_wrapper_class = "row"
self.helper.label_class = "col-lg-1"
self.helper.field_class = "col-lg-11"
self.helper.layout = Layout(
Div(
Field("key", readonly=True),
"description",
Field("schema", id="textarea-codemirror"),
css_class="card-body",
),
Div(
Submit("submit", "Submit"),
HTML(
'<button type="button" class="btn btn-primary float-left mr-2" id="format">Format</button>'
),
HTML(
'<button type="button" class="btn btn-primary float-left mr-2" data-toggle="modal" '
+ 'data-target="#modal-diff">Preview</button>'
),
css_class="card-footer",
),
)
def clean_schema(self):
schema = self.cleaned_data["schema"]
try:
Draft4Validator.check_schema(schema)
except Exception as err:
raise ValidationError(err.message)
return schema
class Meta:
model = Schema
fields = (
"key",
"description",
"schema",
)
widgets = {
"description": forms.Textarea(attrs={"rows": 2}),
}
class EdgeTypeCreateForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(EdgeTypeCreateForm, self).__init__(*args, **kwargs)
self.helper = FormHelper(self)
self.helper.form_class = "form-horizontal"
self.helper.attrs["novalidate"] = True
self.helper.form_group_wrapper_class = "row"
self.helper.label_class = "col-sm-2"
self.helper.field_class = "col-sm-10"
self.helper.layout = Layout(
Div(
"source_nodetype",
"target_nodetype",
"edgetype",
"edgetype_name",
"description",
css_class="card-body",
),
Div(
Submit("submit", "Submit"),
HTML(
'<a class="btn btn-default float-right" href="{% url "modeling:edgetype.list" %}">Cancel</a>'
),
css_class="card-footer",
),
)
class Meta:
model = Edgetype
fields = (
"source_nodetype",
"target_nodetype",
"edgetype",
"edgetype_name",
"description",
)
widgets = {
"description": forms.Textarea(attrs={"rows": 2}),
}
class EdgeTypeUpdateForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super(EdgeTypeUpdateForm, self).__init__(*args, **kwargs)
self.helper = FormHelper(self)
self.helper.form_class = "form-horizontal"
self.helper.attrs["novalidate"] = True
self.helper.form_group_wrapper_class = "row"
self.helper.label_class = "col-sm-2"
self.helper.field_class = "col-sm-10"
self.helper.layout = Layout(
Div(
# Field("key", readonly=True),
"source_nodetype",
"target_nodetype",
"edgetype",
"edgetype_name",
"description",
css_class="card-body",
),
Div(
Submit("submit", "Submit"),
HTML(
'<a class="btn btn-default float-right" href="{% url "modeling:edgetype.list" %}">Cancel</a>'
),
css_class="card-footer",
),
)
class Meta:
model = Edgetype
fields = (
"source_nodetype",
"target_nodetype",
"edgetype",
"edgetype_name",
"description",
)
widgets = {
"description": forms.Textarea(attrs={"rows": 2}),
}
| 30.805654
| 113
| 0.488988
| 777
| 8,718
| 5.333333
| 0.137709
| 0.091699
| 0.034749
| 0.030405
| 0.857143
| 0.843388
| 0.833012
| 0.814913
| 0.755792
| 0.746139
| 0
| 0.005968
| 0.384951
| 8,718
| 282
| 114
| 30.914894
| 0.766878
| 0.003212
| 0
| 0.821429
| 0
| 0.027778
| 0.205916
| 0.022099
| 0
| 0
| 0
| 0
| 0
| 1
| 0.031746
| false
| 0
| 0.02381
| 0
| 0.111111
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
add904ff341eab5865a6690dbeff982f9f24b6e3
| 103
|
py
|
Python
|
intelligent-optimization-programs/GA/gaft/plugin_interfaces/__init__.py
|
taotao1234abcd/machine-learning-and-artificial-intelligence-python
|
04095d03a9bbe6b6189824a6a0f63b939ea04b65
|
[
"Apache-2.0"
] | null | null | null |
intelligent-optimization-programs/GA/gaft/plugin_interfaces/__init__.py
|
taotao1234abcd/machine-learning-and-artificial-intelligence-python
|
04095d03a9bbe6b6189824a6a0f63b939ea04b65
|
[
"Apache-2.0"
] | null | null | null |
intelligent-optimization-programs/GA/gaft/plugin_interfaces/__init__.py
|
taotao1234abcd/machine-learning-and-artificial-intelligence-python
|
04095d03a9bbe6b6189824a6a0f63b939ea04b65
|
[
"Apache-2.0"
] | null | null | null |
from ..plugin_interfaces.operators import *
from ..plugin_interfaces.analysis import OnTheFlyAnalysis
| 25.75
| 57
| 0.84466
| 11
| 103
| 7.727273
| 0.636364
| 0.235294
| 0.470588
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.087379
| 103
| 3
| 58
| 34.333333
| 0.904255
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
bc106bc4f8daaca2cb0f3517a4401b548c82a908
| 4,972
|
py
|
Python
|
sample_code/08_re.py
|
CIS-UO/UO-CIS211.github.io
|
f036ee35d23c8393d80ccfe556b54523527f9458
|
[
"CC-BY-4.0"
] | null | null | null |
sample_code/08_re.py
|
CIS-UO/UO-CIS211.github.io
|
f036ee35d23c8393d80ccfe556b54523527f9458
|
[
"CC-BY-4.0"
] | null | null | null |
sample_code/08_re.py
|
CIS-UO/UO-CIS211.github.io
|
f036ee35d23c8393d80ccfe556b54523527f9458
|
[
"CC-BY-4.0"
] | 1
|
2021-12-27T20:28:58.000Z
|
2021-12-27T20:28:58.000Z
|
"""Regular expression examples for week 8 chapter"""
import re
print("Example 1, strings match themselves")
cat_pat = "cat"
s = "My cat's name is Nora"
m = re.search(cat_pat, s)
if m:
print(f"Matched {m.start()}..{m.end()}")
else:
print("*** No Match ***")
print("Example 2, 'match' means 'match the whole string'")
m = re.match(cat_pat, s)
if m:
print(f"Matched {m.start()}..{m.end()}")
else:
print("*** No Match ***")
print("Example 3, spaces match spaces")
pat = " is "
s = "My cat's name is Nora"
m = re.search(pat, s)
if m:
start, end = m.start(), m.end()
print(f"Matched {start}..{end}")
print(f"Matched substring is '{s[start:end]}'")
else:
print("*** No Match ***")
print("Example 4, adding whitespace and comments")
pat = r"""
c # C is for cat
a # an a in the middle
t # This pattern really didn't need comments, but others do
"""
s = "My cat's name is Nora"
m = re.search(pat, s, re.X) ## re.X allows commented patterns
if m:
start, end = m.start(), m.end()
print(f"Matched {start}..{end}")
print(f"Matched substring is '{s[start:end]}'")
else:
print("*** No Match ***")
print("Example 5, OR")
pat = "(cat)|(dog)|(ferret)"
s = "My cat's name is Nora"
m = re.search(pat, s, re.X) ## re.X allows commented patterns
if m:
start, end = m.start(), m.end()
print(f"Matched {start}..{end}")
print(f"Matched substring is '{s[start:end]}'")
else:
print("*** No Match ***")
print("Example 6, *")
pat = "(ch-)*(changes)"
bowie = "Ch-ch-ch-ch-changes # Turn and face the strange"
m = re.search(pat, bowie, re.X) ## re.X allows commented patterns
if m:
start, end = m.start(), m.end()
print(f"Matched {start}..{end}")
print(f"Matched substring is '{bowie[start:end]}'")
else:
print("*** No Match ***")
print("Example 6.5, OR for character sets")
pat = "((c|C)h-)*(changes)"
bowie = "Ch-ch-ch-ch-changes # Turn and face the strange"
m = re.search(pat, bowie, re.X) ## re.X allows commented patterns
if m:
start, end = m.start(), m.end()
print(f"Matched {start}..{end}")
print(f"Matched substring is '{bowie[start:end]}'")
else:
print("*** No Match ***")
print("\nExample 7, [ ] for character sets")
pat = "([Cc]h-)*([a-z]+) # Turn and face the strange"
bowie = "Ch-ch-ch-ch-changes "
m = re.search(pat, bowie, re.X) ## re.X allows commented patterns
if m:
start, end = m.start(), m.end()
print(f"Matched {start}..{end}")
print(f"Matched substring is '{bowie[start:end]}'")
else:
print("*** No Match ***")
print("\nExample 7.5, wild card")
bowie = "Ch-ch-ch-ch-changes"
pat = "-(.*)- #Anything between - and -"
m = re.search(pat, bowie, re.X) ## re.X allows commented patterns
if m:
start, end = m.start(), m.end()
print(f"Matched {start}..{end}")
print(f"Matched substring is '{bowie[start:end]}'")
else:
print("*** No Match ***")
print("\n Example 8, match/fullmatch")
bowie = "Ch-ch-ch-ch-changes"
for pat in ["changes", "([Cc]h-)*", "([Cc]h-)*([a-z]+)"]:
print(f"\nPattern is '{pat}'")
print("Checking 'search'")
m = re.search(pat, bowie)
if m:
start, end = m.start(), m.end()
print(f"'{pat}' Matched {start}..{end}")
print(f"Matched substring is '{bowie[start:end]}'")
else:
print("*** No Match ***")
print("Checking 'match'")
m = re.match(pat, bowie)
if m:
start, end = m.start(), m.end()
print(f"'{pat}' Matched {start}..{end}")
print(f"Matched substring is '{bowie[start:end]}'")
else:
print("*** No Match ***")
print("Checking 'fullmatch'")
m = re.fullmatch(pat, bowie)
if m:
start, end = m.start(), m.end()
print(f"'{pat}' Matched {start}..{end}")
print(f"Matched substring is '{bowie[start:end]}'")
else:
print("*** No Match ***")
print("\nExample 9, capture groups")
pat = "((c|C)h-)*(changes) # Turn and face the strange"
bowie = "Ch-ch-ch-ch-changes"
m = re.search(pat, bowie, re.X)
if m:
start, end = m.start(), m.end()
print(f"Matched {start}..{end}")
print(f"Matched substring is '{bowie[start:end]}'")
print(f"Groups {m.groups()}")
else:
print("*** No Match ***")
print("\nExample 9a, named capture groups")
pat = "(?P<prefix> ((c|C)h-)*) (?P<suffix> changes)"
bowie = "Ch-ch-ch-ch-changes"
m = re.search(pat, bowie, re.X)
if m:
start, end = m.start(), m.end()
print(f"Matched {start}..{end}")
print(f"Matched substring is '{bowie[start:end]}'")
print(f"Groups {m.groupdict()}")
else:
print("*** No Match ***")
print("\nExample 9b, named capture groups with repetition")
pat = "(?P<prefix>(?P<lastch> (c|C)h-)*) (?P<suffix> changes)"
bowie = "Ch-ch-ch-ch-changes"
m = re.search(pat, bowie, re.X)
if m:
start, end = m.start(), m.end()
print(f"Matched {start}..{end}")
print(f"Matched substring is '{bowie[start:end]}'")
print(f"Groups {m.groupdict()}")
else:
print("*** No Match ***")
| 29.247059
| 66
| 0.582261
| 778
| 4,972
| 3.717224
| 0.131105
| 0.107884
| 0.090249
| 0.127248
| 0.802559
| 0.795297
| 0.764523
| 0.764523
| 0.764523
| 0.761411
| 0
| 0.004002
| 0.195897
| 4,972
| 169
| 67
| 29.420118
| 0.71936
| 0.046862
| 0
| 0.726667
| 0
| 0.006667
| 0.509318
| 0.013977
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.006667
| 0
| 0.006667
| 0.42
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 8
|
bc169823b939e366f7403d1b4df05d7146ac0c08
| 14,882
|
py
|
Python
|
2016-def-con-quals/baby-re/baby-re.py
|
integeruser/on-pwning
|
9674b8629d80499eb4c24b729529fb8d4b3f5f88
|
[
"MIT"
] | 104
|
2017-08-24T12:54:06.000Z
|
2022-02-22T05:27:09.000Z
|
2016-def-con-quals/baby-re/baby-re.py
|
integeruser/on-pwning
|
9674b8629d80499eb4c24b729529fb8d4b3f5f88
|
[
"MIT"
] | 1
|
2018-06-30T18:59:37.000Z
|
2018-06-30T18:59:37.000Z
|
2016-def-con-quals/baby-re/baby-re.py
|
integeruser/on-pwning
|
9674b8629d80499eb4c24b729529fb8d4b3f5f88
|
[
"MIT"
] | 14
|
2018-04-05T04:59:33.000Z
|
2022-02-06T04:34:42.000Z
|
#!/usr/bin/env python2
# -*- coding: utf-8 -*-
import struct
import sys
import z3
def LODWORD(n):
return n & 0xffffffff
solver = z3.Solver()
table = [
0x926d, 0x5475, 0x0752, 0xb4c1, 0xc5c9, 0xa89e, 0x7372, 0x4004, 0xe15d, 0x3922, 0x5262, 0x99ae, 0xd5e5, 0xc6f8,
0x12c9, 0x1783, 0x9832, 0x39ca, 0x5847, 0x0345, 0x8f77, 0xc5a0, 0x2e35, 0x4e4e, 0x2428, 0xcfec, 0x974a, 0xcecf,
0x41f2, 0x691b, 0xad9e, 0x48a9, 0xfec5, 0xb9b7, 0x4526, 0x8476, 0xa69e, 0x14fb, 0x2ccd, 0xe193, 0x5d51, 0x65a0,
0x6252, 0xd42d, 0x7e51, 0x2999, 0x87f5, 0x23d3, 0x5947, 0x21ad, 0x027a, 0x2e58, 0x36b5, 0x3fc3, 0xabbc, 0x876e,
0xd669, 0x17fd, 0x8a63, 0xf219, 0x6de6, 0xa8b2, 0xe91c, 0x3cda, 0xc3a2, 0x9f38, 0x55fe, 0x3528, 0x1352, 0x687e,
0x7bdc, 0x9ab3, 0x3522, 0xe6af, 0x7fe2, 0x729d, 0x2841, 0x3d22, 0xb98b, 0xe200, 0x34a5, 0x27eb, 0x13a8, 0x522f,
0x73a7, 0xd7c9, 0x17b1, 0x3eaf, 0x11ca, 0x08d6, 0x49d7, 0xff8b, 0x4317, 0x24c2, 0x57f2, 0xcc99, 0x2413, 0xd03d,
0xbb25, 0xe6e7, 0xa149, 0x5f66, 0xa0da, 0x5b97, 0x070d, 0x1027, 0x4204, 0x8265, 0xb6af, 0xe4b7, 0x8546, 0xaf78,
0x2e9d, 0x5032, 0x3d53, 0x8ef5, 0x4737, 0xa7bd, 0xee80, 0xb071, 0xa144, 0x06ba, 0x6737, 0xb7cc, 0xa57b, 0x3ab9,
0x4a1f, 0x2a24, 0x8227, 0xf8c0, 0x90dd, 0xc986, 0x4586, 0x278f, 0xcca4, 0x31ca, 0x312b, 0xe5a2, 0x204d, 0x5855,
0x7821, 0x5175, 0x7dd8, 0x8f2a, 0xb9ce, 0x8202, 0xe72c, 0xfeac, 0x240c, 0xe8cf, 0xf5a8, 0xbe4f, 0xb8f4, 0x92d8,
0xe10c, 0x9e3e, 0xca17, 0x8c27, 0xf992, 0x1006, 0xe877, 0x538a, 0x5121, 0x6795, 0x6df9, 0x62a4, 0xab0d, 0x6421,
0x1c92
]
func = [
lambda inp: LODWORD(LODWORD(LODWORD((inp[0x30/4])) * LODWORD(table[(0x2b0-0x280)/4])) + LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(table[(0x2b0-0x2B0)/4]) * LODWORD(inp[0])) - LODWORD(LODWORD((inp[0x4/4])) * LODWORD(table[(0x2b0-0x2AC)/4]))) - LODWORD(LODWORD((inp[0x8/4])) * LODWORD(table[(0x2b0-0x2A8)/4]))) - LODWORD(LODWORD((inp[0xc/4])) * LODWORD(table[(0x2b0-0x2A4)/4]))) + LODWORD(LODWORD((inp[0x10/4])) * LODWORD(table[(0x2b0-0x2A0)/4]))) + LODWORD(LODWORD((inp[0x14/4])) * LODWORD(table[(0x2b0-0x29C)/4]))) + LODWORD(LODWORD((inp[0x18/4])) * LODWORD(table[(0x2b0-0x298)/4]))) + LODWORD(LODWORD((inp[0x1c/4])) * LODWORD(table[(0x2b0-0x294)/4]))) + LODWORD(LODWORD((inp[0x20/4])) * LODWORD(table[(0x2b0-0x290)/4]))) + LODWORD(LODWORD((inp[0x24/4])) * LODWORD(table[(0x2b0-0x28C)/4]))) + LODWORD(LODWORD((inp[0x28/4])) * LODWORD(table[(0x2b0-0x288)/4]))) + LODWORD(LODWORD((inp[0x2c/4])) * LODWORD(table[(0x2b0-0x284)/4])))),
lambda inp: LODWORD(LODWORD(LODWORD((inp[0x30/4])) * LODWORD(table[(0x2b0-0x24C)/4])) + LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(table[(0x2b0-0x27C)/4]) * LODWORD(inp[0]) + LODWORD((inp[0x4/4])) * LODWORD(table[(0x2b0-0x278)/4])) - LODWORD(LODWORD((inp[0x8/4])) * LODWORD(table[(0x2b0-0x274)/4]))) + LODWORD(LODWORD((inp[0xc/4])) * LODWORD(table[(0x2b0-0x270)/4]))) + LODWORD(LODWORD((inp[0x10/4])) * LODWORD(table[(0x2b0-0x26C)/4]))) + LODWORD(LODWORD((inp[0x14/4])) * LODWORD(table[(0x2b0-0x268)/4]))) - LODWORD(LODWORD((inp[0x18/4])) * LODWORD(table[(0x2b0-0x264)/4]))) - LODWORD(LODWORD((inp[0x1c/4])) * LODWORD(table[(0x2b0-0x260)/4]))) - LODWORD(LODWORD((inp[0x20/4])) * LODWORD(table[(0x2b0-0x25C)/4]))) - LODWORD(LODWORD((inp[0x24/4])) * LODWORD(table[(0x2b0-0x258)/4]))) - LODWORD(LODWORD((inp[0x28/4])) * LODWORD(table[(0x2b0-0x254)/4]))) - LODWORD(LODWORD((inp[0x2c/4])) * LODWORD(table[(0x2b0-0x250)/4])))),
lambda inp: LODWORD(LODWORD(LODWORD((inp[0x30/4])) * LODWORD(table[(0x2b0-0x218)/4])) + LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(-LODWORD(table[(0x2b0-0x248)/4])) * LODWORD(inp[0]) + LODWORD((inp[0x4/4])) * LODWORD(table[(0x2b0-0x244)/4])) - LODWORD(LODWORD((inp[0x8/4])) * LODWORD(table[(0x2b0-0x240)/4]))) + LODWORD(LODWORD((inp[0xc/4])) * LODWORD(table[(0x2b0-0x23C)/4]))) - LODWORD(LODWORD((inp[0x10/4])) * LODWORD(table[(0x2b0-0x238)/4]))) - LODWORD(LODWORD((inp[0x14/4])) * LODWORD(table[(0x2b0-0x234)/4]))) - LODWORD(LODWORD((inp[0x18/4])) * LODWORD(table[(0x2b0-0x230)/4]))) - LODWORD(LODWORD((inp[0x1c/4])) * LODWORD(table[(0x2b0-0x22C)/4]))) + LODWORD(LODWORD((inp[0x20/4])) * LODWORD(table[(0x2b0-0x228)/4]))) - LODWORD(LODWORD((inp[0x24/4])) * LODWORD(table[(0x2b0-0x224)/4]))) + LODWORD(LODWORD((inp[0x28/4])) * LODWORD(table[(0x2b0-0x220)/4]))) + LODWORD(LODWORD((inp[0x2c/4])) * LODWORD(table[(0x2b0-0x21C)/4])))),
lambda inp: LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(table[(0x2b0-0x214)/4]) * LODWORD(inp[0])) - LODWORD(LODWORD((inp[0x4/4])) * LODWORD(table[(0x2b0-0x210)/4]))) - LODWORD(LODWORD((inp[0x8/4])) * LODWORD(table[(0x2b0-0x20C)/4]))) - LODWORD(LODWORD((inp[0xc/4])) * LODWORD(table[(0x2b0-0x208)/4]))) + LODWORD(LODWORD((inp[0x10/4])) * LODWORD(table[(0x2b0-0x204)/4]))) - LODWORD(LODWORD((inp[0x14/4])) * LODWORD(table[(0x2b0-0x200)/4]))) + LODWORD(LODWORD((inp[0x18/4])) * LODWORD(table[(0x2b0-0x1FC)/4]))) + LODWORD(LODWORD((inp[0x1c/4])) * LODWORD(table[(0x2b0-0x1F8)/4]))) - LODWORD(LODWORD((inp[0x20/4])) * LODWORD(table[(0x2b0-0x1F4)/4]))) - LODWORD(LODWORD((inp[0x24/4])) * LODWORD(table[(0x2b0-0x1F0)/4]))) + LODWORD(LODWORD((inp[0x28/4])) * LODWORD(table[(0x2b0-0x1EC)/4]))) - LODWORD(LODWORD((inp[0x2c/4])) * LODWORD(table[(0x2b0-0x1E8)/4]))) - LODWORD(LODWORD((inp[0x30/4])) * LODWORD(table[(0x2b0-0x1E4)/4]))),
lambda inp: LODWORD(LODWORD(LODWORD((inp[0x30/4])) * LODWORD(table[(0x2b0-0x1B0)/4])) + LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(-LODWORD(table[(0x2b0-0x1E0)/4])) * LODWORD(inp[0]) + LODWORD((inp[0x4/4])) * LODWORD(table[(0x2b0-0x1DC)/4])) + LODWORD(LODWORD((inp[0x8/4])) * LODWORD(table[(0x2b0-0x1D8)/4]))) + LODWORD(LODWORD((inp[0xc/4])) * LODWORD(table[(0x2b0-0x1D4)/4]))) + LODWORD(LODWORD((inp[0x10/4])) * LODWORD(table[(0x2b0-0x1D0)/4]))) - LODWORD(LODWORD((inp[0x14/4])) * LODWORD(table[(0x2b0-0x1CC)/4]))) - LODWORD(LODWORD((inp[0x18/4])) * LODWORD(table[(0x2b0-0x1C8)/4]))) - LODWORD(LODWORD((inp[0x1c/4])) * LODWORD(table[(0x2b0-0x1C4)/4]))) + LODWORD(LODWORD((inp[0x20/4])) * LODWORD(table[(0x2b0-0x1C0)/4]))) + LODWORD(LODWORD((inp[0x24/4])) * LODWORD(table[(0x2b0-0x1BC)/4]))) - LODWORD(LODWORD((inp[0x28/4])) * LODWORD(table[(0x2b0-0x1B8)/4]))) + LODWORD(LODWORD((inp[0x2c/4])) * LODWORD(table[(0x2b0-0x1B4)/4])))),
lambda inp: LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(-LODWORD(table[(0x2b0-0x1AC)/4])) * LODWORD(inp[0])) - LODWORD(LODWORD((inp[0x4/4])) * LODWORD(table[(0x2b0-0x1A8)/4]))) + LODWORD(LODWORD((inp[0x8/4])) * LODWORD(table[(0x2b0-0x1A4)/4]))) - LODWORD(LODWORD((inp[0xc/4])) * LODWORD(table[(0x2b0-0x1A0)/4]))) - LODWORD(LODWORD((inp[0x10/4])) * LODWORD(table[(0x2b0-0x19C)/4]))) - LODWORD(LODWORD((inp[0x14/4])) * LODWORD(table[(0x2b0-0x198)/4]))) + LODWORD(LODWORD((inp[0x18/4])) * LODWORD(table[(0x2b0-0x194)/4]))) + LODWORD(LODWORD((inp[0x1c/4])) * LODWORD(table[(0x2b0-0x190)/4]))) - LODWORD(LODWORD((inp[0x20/4])) * LODWORD(table[(0x2b0-0x18C)/4]))) - LODWORD(LODWORD((inp[0x24/4])) * LODWORD(table[(0x2b0-0x188)/4]))) + LODWORD(LODWORD((inp[0x28/4])) * LODWORD(table[(0x2b0-0x184)/4]))) + LODWORD(LODWORD((inp[0x2c/4])) * LODWORD(table[(0x2b0-0x180)/4]))) - LODWORD(LODWORD((inp[0x30/4])) * LODWORD(table[(0x2b0-0x17C)/4]))),
lambda inp: LODWORD(LODWORD(LODWORD((inp[0x30/4])) * LODWORD(table[(0x2b0-0x148)/4])) + LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(-LODWORD(table[(0x2b0-0x178)/4])) * LODWORD(inp[0]) + LODWORD((inp[0x4/4])) * LODWORD(table[(0x2b0-0x174)/4])) + LODWORD(LODWORD((inp[0x8/4])) * LODWORD(table[(0x2b0-0x170)/4]))) - LODWORD(LODWORD((inp[0xc/4])) * LODWORD(table[(0x2b0-0x16C)/4]))) - LODWORD(LODWORD((inp[0x10/4])) * LODWORD(table[(0x2b0-0x168)/4]))) - LODWORD(LODWORD((inp[0x14/4])) * LODWORD(table[(0x2b0-0x164)/4]))) - LODWORD(LODWORD((inp[0x18/4])) * LODWORD(table[(0x2b0-0x160)/4]))) + LODWORD(LODWORD((inp[0x1c/4])) * LODWORD(table[(0x2b0-0x15C)/4]))) - LODWORD(LODWORD((inp[0x20/4])) * LODWORD(table[(0x2b0-0x158)/4]))) + LODWORD(LODWORD((inp[0x24/4])) * LODWORD(table[(0x2b0-0x154)/4]))) - LODWORD(LODWORD((inp[0x28/4])) * LODWORD(table[(0x2b0-0x150)/4]))) - LODWORD(LODWORD((inp[0x2c/4])) * LODWORD(table[(0x2b0-0x14C)/4])))),
lambda inp: LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(-LODWORD(table[(0x2b0-0x144)/4])) * LODWORD(inp[0]) + LODWORD((inp[0x4/4])) * LODWORD(table[(0x2b0-0x140)/4])) - LODWORD(LODWORD((inp[0x8/4])) * LODWORD(table[(0x2b0-0x13C)/4]))) - LODWORD(LODWORD((inp[0xc/4])) * LODWORD(table[(0x2b0-0x138)/4]))) - LODWORD(LODWORD((inp[0x10/4])) * LODWORD(table[(0x2b0-0x134)/4]))) - LODWORD(LODWORD((inp[0x14/4])) * LODWORD(table[(0x2b0-0x130)/4]))) + LODWORD(LODWORD((inp[0x18/4])) * LODWORD(table[(0x2b0-0x12C)/4]))) + LODWORD(LODWORD((inp[0x1c/4])) * LODWORD(table[(0x2b0-0x128)/4]))) - LODWORD(LODWORD((inp[0x20/4])) * LODWORD(table[(0x2b0-0x124)/4]))) - LODWORD(LODWORD((inp[0x24/4])) * LODWORD(table[(0x2b0-0x120)/4]))) - LODWORD(LODWORD((inp[0x28/4])) * LODWORD(table[(0x2b0-0x11C)/4]))) + LODWORD(LODWORD((inp[0x2c/4])) * LODWORD(table[(0x2b0-0x118)/4]))) - LODWORD(LODWORD((inp[0x30/4])) * LODWORD(table[(0x2b0-0x114)/4]))),
lambda inp: LODWORD(LODWORD(LODWORD((inp[0x30/4])) * LODWORD(table[(0x2b0-0xE0)/4])) + LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(table[(0x2b0-0x110)/4]) * LODWORD(inp[0]) + LODWORD((inp[0x4/4])) * LODWORD(table[(0x2b0-0x10C)/4])) - LODWORD(LODWORD((inp[0x8/4])) * LODWORD(table[(0x2b0-0x108)/4]))) + LODWORD(LODWORD((inp[0xc/4])) * LODWORD(table[(0x2b0-0x104)/4]))) + LODWORD(LODWORD((inp[0x10/4])) * LODWORD(table[(0x2b0-0x100)/4]))) + LODWORD(LODWORD((inp[0x14/4])) * LODWORD(table[(0x2b0-0xFC)/4]))) - LODWORD(LODWORD((inp[0x18/4])) * LODWORD(table[(0x2b0-0xF8)/4]))) - LODWORD(LODWORD((inp[0x1c/4])) * LODWORD(table[(0x2b0-0xF4)/4]))) - LODWORD(LODWORD((inp[0x20/4])) * LODWORD(table[(0x2b0-0xF0)/4]))) - LODWORD(LODWORD((inp[0x24/4])) * LODWORD(table[(0x2b0-0xEC)/4]))) + LODWORD(LODWORD((inp[0x28/4])) * LODWORD(table[(0x2b0-0xE8)/4]))) - LODWORD(LODWORD((inp[0x2c/4])) * LODWORD(table[(0x2b0-0xE4)/4])))),
lambda inp: LODWORD(LODWORD(LODWORD((inp[0x30/4])) * LODWORD(table[(0x2b0-0xAC)/4])) + LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(-LODWORD(table[(0x2b0-0xDC)/4])) * LODWORD(inp[0]) + LODWORD((inp[0x4/4])) * LODWORD(table[(0x2b0-0xD8)/4])) - LODWORD(LODWORD((inp[0x8/4])) * LODWORD(table[(0x2b0-0xD4)/4]))) + LODWORD(LODWORD((inp[0xc/4])) * LODWORD(table[(0x2b0-0xD0)/4]))) - LODWORD(LODWORD((inp[0x10/4])) * LODWORD(table[(0x2b0-0xCC)/4]))) - LODWORD(LODWORD((inp[0x14/4])) * LODWORD(table[(0x2b0-0xC8)/4]))) + LODWORD(LODWORD((inp[0x18/4])) * LODWORD(table[(0x2b0-0xC4)/4]))) + LODWORD(LODWORD((inp[0x1c/4])) * LODWORD(table[(0x2b0-0xC0)/4]))) + LODWORD(LODWORD((inp[0x20/4])) * LODWORD(table[(0x2b0-0xBC)/4]))) + LODWORD(LODWORD((inp[0x24/4])) * LODWORD(table[(0x2b0-0xB8)/4]))) + LODWORD(LODWORD((inp[0x28/4])) * LODWORD(table[(0x2b0-0xB4)/4]))) - LODWORD(LODWORD((inp[0x2c/4])) * LODWORD(table[(0x2b0-0xB0)/4])))),
lambda inp: LODWORD(LODWORD(LODWORD((inp[0x30/4])) * LODWORD(table[(0x2b0-0x78)/4])) + LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(-LODWORD(table[(0x2b0-0xA8)/4])) * LODWORD(inp[0])) - LODWORD(LODWORD((inp[0x4/4])) * LODWORD(table[(0x2b0-0xA4)/4]))) - LODWORD(LODWORD((inp[0x8/4])) * LODWORD(table[(0x2b0-0xA0)/4]))) - LODWORD(LODWORD((inp[0xc/4])) * LODWORD(table[(0x2b0-0x9C)/4]))) - LODWORD(LODWORD((inp[0x10/4])) * LODWORD(table[(0x2b0-0x98)/4]))) + LODWORD(LODWORD((inp[0x14/4])) * LODWORD(table[(0x2b0-0x94)/4]))) + LODWORD(LODWORD((inp[0x18/4])) * LODWORD(table[(0x2b0-0x90)/4]))) + LODWORD(LODWORD((inp[0x1c/4])) * LODWORD(table[(0x2b0-0x8C)/4]))) - LODWORD(LODWORD((inp[0x20/4])) * LODWORD(table[(0x2b0-0x88)/4]))) + LODWORD(LODWORD((inp[0x24/4])) * LODWORD(table[(0x2b0-0x84)/4]))) + LODWORD(LODWORD((inp[0x28/4])) * LODWORD(table[(0x2b0-0x80)/4]))) - LODWORD(LODWORD((inp[0x2c/4])) * LODWORD(table[(0x2b0-0x7C)/4])))),
lambda inp: LODWORD(LODWORD(LODWORD((inp[0x30/4])) * LODWORD(table[(0x2b0-0x44)/4])) + LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(table[(0x2b0-0x74)/4]) * LODWORD(inp[0]) + LODWORD((inp[0x4/4])) * LODWORD(table[(0x2b0-0x70)/4])) - LODWORD(LODWORD((inp[0x8/4])) * LODWORD(table[(0x2b0-0x6C)/4]))) - LODWORD(LODWORD((inp[0xc/4])) * LODWORD(table[(0x2b0-0x68)/4]))) + LODWORD(LODWORD((inp[0x10/4])) * LODWORD(table[(0x2b0-0x64)/4]))) + LODWORD(LODWORD((inp[0x14/4])) * LODWORD(table[(0x2b0-0x60)/4]))) - LODWORD(LODWORD((inp[0x18/4])) * LODWORD(table[(0x2b0-0x5C)/4]))) - LODWORD(LODWORD((inp[0x1c/4])) * LODWORD(table[(0x2b0-0x58)/4]))) + LODWORD(LODWORD((inp[0x20/4])) * LODWORD(table[(0x2b0-0x54)/4]))) + LODWORD(LODWORD((inp[0x24/4])) * LODWORD(table[(0x2b0-0x50)/4]))) - LODWORD(LODWORD((inp[0x28/4])) * LODWORD(table[(0x2b0-0x4C)/4]))) + LODWORD(LODWORD((inp[0x2c/4])) * LODWORD(table[(0x2b0-0x48)/4])))),
lambda inp: LODWORD(LODWORD(LODWORD((inp[0x30/4])) * LODWORD(table[(0x2b0-0x10)/4])) + LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(LODWORD(table[(0x2b0-0x40)/4]) * LODWORD(inp[0]) + LODWORD((inp[0x4/4])) * LODWORD(table[(0x2b0-0x3C)/4])) - LODWORD(LODWORD((inp[0x8/4])) * LODWORD(table[(0x2b0-0x38)/4]))) + LODWORD(LODWORD((inp[0xc/4])) * LODWORD(table[(0x2b0-0x34)/4]))) + LODWORD(LODWORD((inp[0x10/4])) * LODWORD(table[(0x2b0-0x30)/4]))) - LODWORD(LODWORD((inp[0x14/4])) * LODWORD(table[(0x2b0-0x2C)/4]))) - LODWORD(LODWORD((inp[0x18/4])) * LODWORD(table[(0x2b0-0x28)/4]))) + LODWORD(LODWORD((inp[0x1c/4])) * LODWORD(table[(0x2b0-0x24)/4]))) + LODWORD(LODWORD((inp[0x20/4])) * LODWORD(table[(0x2b0-0x20)/4]))) + LODWORD(LODWORD((inp[0x24/4])) * LODWORD(table[(0x2b0-0x1C)/4]))) - LODWORD(LODWORD((inp[0x28/4])) * LODWORD(table[(0x2b0-0x18)/4]))) + LODWORD(LODWORD((inp[0x2c/4])) * LODWORD(table[(0x2b0-0x14)/4])))),
]
constraints = [
0x1468753,
0x162f30,
0xffb2939c,
0xffac90e3,
0x76d288,
0xff78bf99,
0xfff496e3,
0xff525e90,
0xfffd7704,
0x897cbb,
0xffc05f9f,
0x3e4761,
0x1b4945,
]
input_array = [z3.BitVec('i%d' % i, 32) for i in range(len(constraints))]
for f, c in zip(func, constraints):
solver.add(f(input_array) == c)
assert solver.check() == z3.sat
model = solver.model()
print ''.join(chr(model[v].as_long()) for v in input_array)
# Math is hard!
| 209.605634
| 1,006
| 0.673431
| 2,105
| 14,882
| 4.759145
| 0.192399
| 0.43881
| 0.286784
| 0.280295
| 0.778599
| 0.778599
| 0.778599
| 0.778599
| 0.778599
| 0.25015
| 0
| 0.177962
| 0.074923
| 14,882
| 70
| 1,007
| 212.6
| 0.54972
| 0.00383
| 0
| 0
| 0
| 0
| 0.000202
| 0
| 0
| 0
| 0.226555
| 0
| 0.017544
| 0
| null | null | 0
| 0.052632
| null | null | 0.017544
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
70c746671844a4d773125f81fc741219354e4186
| 212
|
py
|
Python
|
unitorch/models/xprophetnet/__init__.py
|
fuliucansheng/UniTorch
|
47038321593ce4e7eabda555bd58c0cf89482146
|
[
"MIT"
] | 2
|
2022-02-05T08:52:00.000Z
|
2022-03-27T07:01:34.000Z
|
unitorch/models/xprophetnet/__init__.py
|
Lixin-Qian/unitorch
|
47038321593ce4e7eabda555bd58c0cf89482146
|
[
"MIT"
] | null | null | null |
unitorch/models/xprophetnet/__init__.py
|
Lixin-Qian/unitorch
|
47038321593ce4e7eabda555bd58c0cf89482146
|
[
"MIT"
] | 1
|
2022-03-27T07:01:13.000Z
|
2022-03-27T07:01:13.000Z
|
# Copyright (c) FULIUCANSHENG.
# Licensed under the MIT License.
from unitorch.models.xprophetnet.modeling import XProphetNetForGeneration
from unitorch.models.xprophetnet.processing import XProphetNetProcessor
| 35.333333
| 73
| 0.853774
| 22
| 212
| 8.227273
| 0.772727
| 0.132597
| 0.198895
| 0.320442
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.089623
| 212
| 5
| 74
| 42.4
| 0.937824
| 0.283019
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
cb583aa40228627190193c5270fa4616586229b4
| 2,128
|
py
|
Python
|
store/migrations/0033_auto_20200525_1929.py
|
MelanieFJNR/Blitz-API
|
9a6daecd158fe07a6aeb80cbf586781eb688f0f9
|
[
"MIT"
] | 3
|
2019-10-22T00:16:49.000Z
|
2021-07-15T07:44:43.000Z
|
store/migrations/0033_auto_20200525_1929.py
|
MelanieFJNR/Blitz-API
|
9a6daecd158fe07a6aeb80cbf586781eb688f0f9
|
[
"MIT"
] | 1,183
|
2018-04-19T18:40:30.000Z
|
2022-03-31T21:05:05.000Z
|
store/migrations/0033_auto_20200525_1929.py
|
MelanieFJNR/Blitz-API
|
9a6daecd158fe07a6aeb80cbf586781eb688f0f9
|
[
"MIT"
] | 12
|
2018-04-17T19:16:42.000Z
|
2022-01-27T00:19:59.000Z
|
# Generated by Django 2.2.12 on 2020-05-25 23:29
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('store', '0032_auto_20191112_1128'),
]
operations = [
migrations.AddField(
model_name='coupon',
name='is_applicable_to_physical_retreat',
field=models.BooleanField(default=False, verbose_name='Applicable to physical retreat'),
),
migrations.AddField(
model_name='coupon',
name='is_applicable_to_virtual_retreat',
field=models.BooleanField(default=False, verbose_name='Applicable to virtual retreat'),
),
migrations.AddField(
model_name='historicalcoupon',
name='is_applicable_to_physical_retreat',
field=models.BooleanField(default=False, verbose_name='Applicable to physical retreat'),
),
migrations.AddField(
model_name='historicalcoupon',
name='is_applicable_to_virtual_retreat',
field=models.BooleanField(default=False, verbose_name='Applicable to virtual retreat'),
),
migrations.AddField(
model_name='historicalmembershipcoupon',
name='is_applicable_to_physical_retreat',
field=models.BooleanField(default=False, verbose_name='Applicable to physical retreat'),
),
migrations.AddField(
model_name='historicalmembershipcoupon',
name='is_applicable_to_virtual_retreat',
field=models.BooleanField(default=False, verbose_name='Applicable to virtual retreat'),
),
migrations.AddField(
model_name='membershipcoupon',
name='is_applicable_to_physical_retreat',
field=models.BooleanField(default=False, verbose_name='Applicable to physical retreat'),
),
migrations.AddField(
model_name='membershipcoupon',
name='is_applicable_to_virtual_retreat',
field=models.BooleanField(default=False, verbose_name='Applicable to virtual retreat'),
),
]
| 39.407407
| 100
| 0.650376
| 205
| 2,128
| 6.502439
| 0.209756
| 0.144036
| 0.138035
| 0.162041
| 0.888222
| 0.888222
| 0.888222
| 0.888222
| 0.888222
| 0.858965
| 0
| 0.020177
| 0.254699
| 2,128
| 53
| 101
| 40.150943
| 0.820303
| 0.021617
| 0
| 0.851064
| 1
| 0
| 0.313462
| 0.161058
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.021277
| 0
| 0.085106
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
cb5eb8c04bd52702413ec8e3af5e31bf669d35f9
| 21
|
py
|
Python
|
tempCodeRunnerFile.py
|
cze3/Longest-palindromic-substring-in-python
|
8f964b458c45ce4a3a40e71736a41dff91cf5f1f
|
[
"MIT"
] | null | null | null |
tempCodeRunnerFile.py
|
cze3/Longest-palindromic-substring-in-python
|
8f964b458c45ce4a3a40e71736a41dff91cf5f1f
|
[
"MIT"
] | null | null | null |
tempCodeRunnerFile.py
|
cze3/Longest-palindromic-substring-in-python
|
8f964b458c45ce4a3a40e71736a41dff91cf5f1f
|
[
"MIT"
] | null | null | null |
r+=1
| 10.5
| 20
| 0.095238
| 2
| 21
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.25
| 0.809524
| 21
| 2
| 20
| 10.5
| 0.25
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0
| null | null | 0
| 1
| 1
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
cb6e3054eb3e5338f15b9807245b9d8d39e6ae6a
| 2,452
|
py
|
Python
|
script.py
|
lizlu95/Sineplex
|
a1f0ad0a8abeefedf6a357167ca0ea025e41a35e
|
[
"MIT"
] | 2
|
2020-11-27T03:45:12.000Z
|
2020-11-27T03:46:05.000Z
|
script.py
|
lizlu95/Sineplex
|
a1f0ad0a8abeefedf6a357167ca0ea025e41a35e
|
[
"MIT"
] | null | null | null |
script.py
|
lizlu95/Sineplex
|
a1f0ad0a8abeefedf6a357167ca0ea025e41a35e
|
[
"MIT"
] | null | null | null |
import os
import sys
from random import randint
with open('theatres.txt') as f:
for line in f:
for i in range(1,30):
print("INSERT INTO `arrange` (`ArrangeId`, `Showtime`, `Location`, `Name`, `SeatsLeft`) VALUES (NULL, '2019-{}-{} {}:00:00', (SELECT Location from theater WHERE Location LIKE '%{}%'), (SELECT Name from movie WHERE Name LIKE '%TOY STORY 4%'), '300');".format(randint(7,12), i, randint(9,21), line.split(";")[1].strip()))
print("INSERT INTO `arrange` (`ArrangeId`, `Showtime`, `Location`, `Name`, `SeatsLeft`) VALUES (NULL, '2019-{}-{} {}:00:00', (SELECT Location from theater WHERE Location LIKE '%{}%'), (SELECT Name from movie WHERE Name LIKE '%SPIDER-MAN: FAR FROM HOME (2019)%'), '300');".format(randint(7,12), i, randint(9,21),line.split(";")[1].strip()))
print("INSERT INTO `arrange` (`ArrangeId`, `Showtime`, `Location`, `Name`, `SeatsLeft`) VALUES (NULL, '2019-{}-{} {}:00:00', (SELECT Location from theater WHERE Location LIKE '%{}%'), (SELECT Name from movie WHERE Name LIKE '%THE SECRET LIFE OF PETS 2%'), '300');".format(randint(7,12), i, randint(9,21),line.split(";")[1].strip()))
print("INSERT INTO `arrange` (`ArrangeId`, `Showtime`, `Location`, `Name`, `SeatsLeft`) VALUES (NULL, '2019-{}-{} {}:00:00', (SELECT Location from theater WHERE Location LIKE '%{}%'), (SELECT Name from movie WHERE Name LIKE '%AVENGERS: ENDGAME (2019)%'), '300');".format(randint(7,12), i, randint(9,21),line.split(";")[1].strip()))
print("INSERT INTO `arrange` (`ArrangeId`, `Showtime`, `Location`, `Name`, `SeatsLeft`) VALUES (NULL, '2019-{}-{} {}:00:00', (SELECT Location from theater WHERE Location LIKE '%{}%'), (SELECT Name from movie WHERE Name LIKE '%POKÉMON DETECTIVE PIKACHU%'), '300');".format(randint(7,12), i, randint(9,21),line.split(";")[1].strip()))
print("INSERT INTO `arrange` (`ArrangeId`, `Showtime`, `Location`, `Name`, `SeatsLeft`) VALUES (NULL, '2019-{}-{} {}:00:00', (SELECT Location from theater WHERE Location LIKE '%{}%'), (SELECT Name from movie WHERE Name LIKE '%ANNABELLE COMES HOME%'), '300');".format(randint(7,12), i, randint(9,21), line.split(";")[1].strip()))
print("INSERT INTO `arrange` (`ArrangeId`, `Showtime`, `Location`, `Name`, `SeatsLeft`) VALUES (NULL, '2019-{}-{} {}:00:00', (SELECT Location from theater WHERE Location LIKE '%{}%'), (SELECT Name from movie WHERE Name LIKE '%YESTERDAY (2019)%'), '300');".format(randint(7,12), i, randint(9,21), line.split(";")[1].strip()))
| 188.615385
| 342
| 0.648858
| 337
| 2,452
| 4.721068
| 0.195846
| 0.048397
| 0.065996
| 0.096794
| 0.874293
| 0.874293
| 0.874293
| 0.874293
| 0.874293
| 0.874293
| 0
| 0.065868
| 0.1146
| 2,452
| 13
| 343
| 188.615385
| 0.666974
| 0
| 0
| 0
| 0
| 0.538462
| 0.729311
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.230769
| 0
| 0.230769
| 0.538462
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 10
|
cbdcd5d52c8b90a87fbb4f8644edfe115910f505
| 2,490
|
py
|
Python
|
Filter.py
|
GHGDev-11/swearfilter
|
6a67e303e8d7a3401f33f5da1c379b792cf5168c
|
[
"MIT"
] | null | null | null |
Filter.py
|
GHGDev-11/swearfilter
|
6a67e303e8d7a3401f33f5da1c379b792cf5168c
|
[
"MIT"
] | null | null | null |
Filter.py
|
GHGDev-11/swearfilter
|
6a67e303e8d7a3401f33f5da1c379b792cf5168c
|
[
"MIT"
] | null | null | null |
class Filter:
def DefaultFilter(self, StringName):
UpperList = []
WordList = ['fucker', 'arse', 'ass', 'asshole', 'bastard', 'bitch', 'bollocks', 'bugger', 'child-fucker', 'child fucker', 'Christ on a bike', 'Christ on a cracker', 'crap', 'cunt', 'damn', 'effing', 'frigger', 'fuck', 'fucking', 'shitting', 'goddamn', 'hell', 'holy shit', 'horseshit', 'Jesus fuck', 'Jesus wept', 'motherfucker', 'motherfucking', 'fucker' 'nigga', 'nigger', 'prick', 'shit', 'shit ass', 'shitass', 'slut', 'son of a bitch', 'son of a whore', 'twat', 'piss', 'cum', 'penis', 'dick', 'vagina', 'boobs', 'sex', 'tits', 'boob', 'tit', 'arsehole', 'balls', 'bullshit', 'son of a bitch', 'cock', 'dickhead', 'pussy', 'twat']
StringSplit = StringName.split(' ')
LIST = []
ret = ''
for i in StringSplit:
if i in WordList:
StringLength = len(i)
NewString = '*' * StringLength
LIST.append(NewString)
else:
LIST.append(i)
for i in LIST:
ret += i + ' '
Filtered = ret[:-1]
return Filtered
def ConfigureFilter(self, StringName, WordList):
UpperList = []
StringSplit = StringName.split(' ')
LIST = []
ret = ''
for i in StringSplit:
if i in WordList:
StringLength = len(i)
NewString = '*' * StringLength
LIST.append(NewString)
else:
LIST.append(i)
for i in LIST:
ret += i + ' '
Filtered = ret[:-1]
return Filtered
def GetListLength(self, WordList):
WordListLength = len(WordList)
return WordListLength
def PrintPremadeList(self):
WordList = ['fucker', 'arse', 'ass', 'asshole', 'bastard', 'bitch', 'bollocks', 'bugger', 'child-fucker', 'child fucker', 'Christ on a bike', 'Christ on a cracker', 'crap', 'cunt', 'damn', 'effing', 'frigger', 'fuck', 'fucking', 'shitting', 'goddamn', 'hell', 'holy shit', 'horseshit', 'Jesus fuck', 'Jesus wept', 'motherfucker', 'motherfucking', 'fucker' 'nigga', 'nigger', 'prick', 'shit', 'shit ass', 'shitass', 'slut', 'son of a bitch', 'son of a whore', 'twat', 'piss', 'cum', 'penis', 'dick', 'vagina', 'boobs', 'sex', 'tits', 'boob', 'tit', 'arsehole', 'balls', 'bullshit', 'son of a bitch', 'cock', 'dickhead', 'pussy', 'twat']
print(WordList)
| 57.906977
| 644
| 0.531727
| 257
| 2,490
| 5.151751
| 0.330739
| 0.022659
| 0.02719
| 0.033233
| 0.847432
| 0.847432
| 0.847432
| 0.847432
| 0.847432
| 0.847432
| 0
| 0.001125
| 0.285944
| 2,490
| 43
| 645
| 57.906977
| 0.743532
| 0
| 0
| 0.8
| 0
| 0
| 0.326664
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.1
| false
| 0
| 0
| 0
| 0.2
| 0.025
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1dbdb476db08cfd4ad37049acbd707322a1ffc45
| 123
|
py
|
Python
|
backend/__init__.py
|
sleepingAnt/viewfinder
|
9caf4e75faa8070d85f605c91d4cfb52c4674588
|
[
"Apache-2.0"
] | 645
|
2015-01-03T02:03:59.000Z
|
2021-12-03T08:43:16.000Z
|
backend/__init__.py
|
hoowang/viewfinder
|
9caf4e75faa8070d85f605c91d4cfb52c4674588
|
[
"Apache-2.0"
] | null | null | null |
backend/__init__.py
|
hoowang/viewfinder
|
9caf4e75faa8070d85f605c91d4cfb52c4674588
|
[
"Apache-2.0"
] | 222
|
2015-01-07T05:00:52.000Z
|
2021-12-06T09:54:26.000Z
|
assert __name__ == 'viewfinder.backend', \
'import the backend module as viewfinder.backend, not as a top-level module.'
| 41
| 79
| 0.747967
| 17
| 123
| 5.176471
| 0.705882
| 0.386364
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.146341
| 123
| 2
| 80
| 61.5
| 0.838095
| 0
| 0
| 0
| 0
| 0
| 0.756098
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0
| true
| 0
| 0.5
| 0
| 0.5
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
1ded71e1c9862f10c32a06c68f910d51b4f12689
| 22,834
|
py
|
Python
|
rb/similarity/string_kernels.py
|
readerbench/ReaderBench
|
f0588a9a63ba21e3b8c2e5e5bc474904c07f6897
|
[
"Apache-2.0"
] | 1
|
2020-12-05T15:45:48.000Z
|
2020-12-05T15:45:48.000Z
|
rb/similarity/string_kernels.py
|
rwth-acis/readerbenchpy
|
1a070ae678f58ccd6f358c0802bdf0b3b3dde9d3
|
[
"Apache-2.0"
] | 2
|
2021-10-17T14:00:52.000Z
|
2021-10-17T14:00:52.000Z
|
rb/similarity/string_kernels.py
|
rwth-acis/readerbenchpy
|
1a070ae678f58ccd6f358c0802bdf0b3b3dde9d3
|
[
"Apache-2.0"
] | null | null | null |
import numpy as np
import random
import math
import time
from collections import Counter
class StringKernel():
def __init__(self):
pass
@staticmethod
def compute_kernel_two_strings(string1, string2, ngram_range_min, ngram_range_max, clusters=None):
pass
@staticmethod
def compute_kernel_string_listofstrings(string1, strings, ngram_range_min, ngram_range_max, clusters=None):
pass
@staticmethod
def compute_kernel_listofstrings(strings, ngram_range_min, ngram_range_max, normalize=False):
pass
@staticmethod
def run(dataset, ngram_range_min, ngram_range_max, normalize=False, clusters=None):
pass
class IntersectionStringKernel(StringKernel):
def __init__(self):
super().__init__()
@staticmethod
def compute_kernel_two_strings(string1, string2, ngram_range_min, ngram_range_max, clusters=None):
if clusters != None and len(clusters) > 0:
return IntersectionStringKernel.compute_kernel_two_strings_clusters2(string1, string2, ngram_range_min, ngram_range_max, clusters)
ngrams = {}
for char_index, char in enumerate(string1):
for d in range(ngram_range_min, ngram_range_max+1):
if char_index + d <= len(string1):
ngram = string1[char_index:char_index+d]
if ngram not in ngrams:
ngrams[ngram] = 1
else:
ngrams[ngram] = ngrams[ngram] + 1
kernel = 0
for char_index, char in enumerate(string2):
for d in range(ngram_range_min, ngram_range_max+1):
if char_index + d <= len(string2):
ngram = string2[char_index:char_index+d]
if (ngram in ngrams) and (ngrams[ngram] > 0):
kernel += 1
ngrams[ngram] = ngrams[ngram] - 1
return 1.0*kernel
@staticmethod
def compute_kernel_two_strings_clusters(string1, string2, ngram_range_min, ngram_range_max, clusters):
ngrams = {}
ngrams_in_clusters = {}
for char_index, char in enumerate(string1):
for d in range(ngram_range_min, ngram_range_max + 1):
if char_index + d <= len(string1):
ngram = string1[char_index:char_index + d]
if ngram not in ngrams_in_clusters:
found = False
for cluster in clusters:
if ngram in cluster:
found = True
break
ngrams_in_clusters[ngram] = found
if ngrams_in_clusters[ngram] == False:
ngrams_in_clusters[ngram] = False
if ngram not in ngrams:
ngrams[ngram] = 1
else:
ngrams[ngram] = ngrams[ngram] + 1
kernel = 0
for char_index, char in enumerate(string2):
for d in range(ngram_range_min, ngram_range_max + 1):
if char_index + d <= len(string2):
ngram = string2[char_index:char_index + d]
if (ngram in ngrams) and (ngrams[ngram] > 0):
kernel += 1
ngrams[ngram] = ngrams[ngram] - 1
d1 = {}
d2 = {}
for cl, _ in enumerate(clusters):
d1[cl] = 0
d2[cl] = 0
for cl_index, cl in enumerate(clusters):
for ngram in cl:
if len(ngram) >= ngram_range_min and len(ngram) <= ngram_range_max:
d1[cl_index] = d1[cl_index] + string1.count(ngram)
d2[cl_index] = d2[cl_index] + string2.count(ngram)
for cl, _ in enumerate(clusters):
kernel += min(d1[cl],d2[cl])
return kernel
@staticmethod
def compute_kernel_two_strings_clusters2(string1, string2, ngram_range_min, ngram_range_max, clusters):
index = 0
clusters_dict = {}
for cluster in clusters:
for ngram in cluster:
clusters_dict[ngram] = index
index += 1
s1_ngram = Counter()
s2_ngram = Counter()
for char_index, char in enumerate(string1):
for d in range(ngram_range_min, ngram_range_max + 1):
if char_index + d <= len(string1):
ngram = string1[char_index:char_index + d]
if ngram not in clusters_dict:
clusters_dict[ngram] = index
index += 1
s1_ngram[clusters_dict[ngram]] += 1
for char_index, char in enumerate(string2):
for d in range(ngram_range_min, ngram_range_max + 1):
if char_index + d <= len(string2):
ngram = string2[char_index:char_index + d]
if ngram not in clusters_dict:
clusters_dict[ngram] = index
index += 1
s2_ngram[clusters_dict[ngram]] += 1
kernel = 0
for c in s1_ngram:
kernel += min(s1_ngram[c], s2_ngram[c])
return kernel
@staticmethod
def compute_kernel_string_listofstrings(string1, strings, ngram_range_min, ngram_range_max, normalize=False, clusters=None):
kernels = []
for string2 in strings:
pr = IntersectionStringKernel.compute_kernel_two_strings(string1, string2, ngram_range_min, ngram_range_max, clusters)
if normalize == True:
i = IntersectionStringKernel.compute_kernel_two_strings(string1, string1, ngram_range_min, ngram_range_max, clusters)
j = IntersectionStringKernel.compute_kernel_two_strings(string2, string2, ngram_range_min, ngram_range_max, clusters)
if i == 0.0 or j == 0.0:
kernels.append(0.0)
else:
kernels.append(pr / math.sqrt(i*j))
elif normalize == False:
kernels.append(pr)
kernels = np.array(kernels)
return kernels
@staticmethod
def compute_kernel_listofstrings(strings, ngram_range_min, ngram_range_max, normalize=False):
kernels = []
for string1 in strings:
kernels.append(IntersectionStringKernel.compute_kernel_string_listofstrings(string1, strings, ngram_range_min, ngram_range_max))
if normalize == True:
for i, aux in enumerate(kernels):
for j, _ in enumerate(aux):
print (i,j, kernels[i][j], kernels[i][i], kernels[j][j], math.sqrt(kernels[i][i] * kernels[j][j]))
kernels[i][j] = kernels[i][j] / math.sqrt(kernels[i][i] * kernels[j][j])
print (kernels[i][j])
kernels = np.array(kernels)
return kernels
@staticmethod
def run(dataset, ngram_range_min, ngram_range_max, normalize=False, clusters=None):
correct = 0
total = 0
for entry_index, entry in enumerate(dataset.data):
if len(entry.answer_pool) == 0:
total += 1
continue
question = entry.question
similarity_scores = IntersectionStringKernel.compute_kernel_string_listofstrings(question, entry.answer_pool, ngram_range_min, ngram_range_max, normalize, clusters)
max_indexes = np.argwhere(similarity_scores == np.max(similarity_scores)).flatten().tolist()
random_max_index = random.choice(max_indexes)
if entry.answer_pool[random_max_index] in entry.correct_answer:
correct += 1
total += 1
# print ("Intersection kernel (", ngram_range_min, ngram_range_max, normalize, ") =", 1.0* correct / total, flush=True)
return 1.0 * correct / total
class PresenceStringKernel(StringKernel):
def __init__(self):
super().__init__()
@staticmethod
def compute_kernel_two_strings(string1, string2, ngram_range_min, ngram_range_max, clusters=None):
if clusters != None and len(clusters) > 0:
return PresenceStringKernel.compute_kernel_two_strings_clusters2(string1, string2, ngram_range_min, ngram_range_max, clusters)
ngrams = {}
for char_index, char in enumerate(string1):
for d in range(ngram_range_min, ngram_range_max+1):
if char_index + d <= len(string1):
ngram = string1[char_index:char_index+d]
ngrams[ngram] = 1
kernel = 0
for char_index, char in enumerate(string2):
for d in range(ngram_range_min, ngram_range_max+1):
if char_index + d <= len(string2):
ngram = string2[char_index:char_index+d]
if (ngram in ngrams):
kernel += 1
ngrams.pop(ngram)
return 1.0*kernel
@staticmethod
def compute_kernel_two_strings_clusters(string1, string2, ngram_range_min, ngram_range_max, clusters):
ngrams = {}
ngrams_in_clusters = {}
for char_index, char in enumerate(string1):
for d in range(ngram_range_min, ngram_range_max + 1):
if char_index + d <= len(string1):
ngram = string1[char_index:char_index + d]
if ngram not in ngrams_in_clusters:
found = False
for cluster in clusters:
if ngram in cluster:
found = True
break
ngrams_in_clusters[ngram] = found
if ngrams_in_clusters[ngram] == False:
if ngram not in ngrams:
ngrams[ngram] = 1
else:
ngrams[ngram] = ngrams[ngram] + 1
kernel = 0
for char_index, char in enumerate(string2):
for d in range(ngram_range_min, ngram_range_max + 1):
if char_index + d <= len(string2):
ngram = string2[char_index:char_index + d]
if (ngram in ngrams):
kernel += 1
ngrams.pop(ngram)
d1 = {}
d2 = {}
for cl, _ in enumerate(clusters):
d1[cl] = 0
d2[cl] = 0
for cl_index, cl in enumerate(clusters):
for ngram in cl:
if len(ngram) >= ngram_range_min and len(ngram) <= ngram_range_max:
d1[cl_index] = d1[cl_index] + string1.count(ngram)
d2[cl_index] = d2[cl_index] + string2.count(ngram)
for cl, _ in enumerate(clusters):
if d1[cl] * d2[cl] == 0:
continue
kernel += 1
return kernel
@staticmethod
def compute_kernel_two_strings_clusters2(string1, string2, ngram_range_min, ngram_range_max, clusters):
index = 0
clusters_dict = {}
for cluster in clusters:
for ngram in cluster:
clusters_dict[ngram] = index
index += 1
s1_ngram = Counter()
s2_ngram = Counter()
for char_index, char in enumerate(string1):
for d in range(ngram_range_min, ngram_range_max + 1):
if char_index + d <= len(string1):
ngram = string1[char_index:char_index + d]
if ngram not in clusters_dict:
clusters_dict[ngram] = index
index += 1
s1_ngram[clusters_dict[ngram]] += 1
for char_index, char in enumerate(string2):
for d in range(ngram_range_min, ngram_range_max + 1):
if char_index + d <= len(string2):
ngram = string2[char_index:char_index + d]
if ngram not in clusters_dict:
clusters_dict[ngram] = index
index += 1
s2_ngram[clusters_dict[ngram]] += 1
kernel = 0
for c in s1_ngram:
if s1_ngram[c] * s2_ngram[c] >= 1:
kernel += 1
return kernel
@staticmethod
def compute_kernel_string_listofstrings(string1, strings, ngram_range_min, ngram_range_max, normalize=False, clusters=None):
kernels = []
for string2 in strings:
pr = PresenceStringKernel.compute_kernel_two_strings(string1, string2, ngram_range_min, ngram_range_max, clusters)
if normalize == True:
i = PresenceStringKernel.compute_kernel_two_strings(string1, string1, ngram_range_min, ngram_range_max, clusters)
j = PresenceStringKernel.compute_kernel_two_strings(string2, string2, ngram_range_min, ngram_range_max, clusters)
if i == 0.0 or j == 0.0:
kernels.append(0.0)
else:
kernels.append(pr / math.sqrt(i*j))
elif normalize == False:
kernels.append(pr)
kernels = np.array(kernels)
return kernels
@staticmethod
def compute_kernel_listofstrings(strings, ngram_range_min, ngram_range_max, normalize=False):
kernels = []
for string1 in strings:
kernels.append(PresenceStringKernel.compute_kernel_string_listofstrings(string1, strings, ngram_range_min, ngram_range_max))
if normalize == True:
for i, aux in enumerate(kernels):
for j, _ in enumerate(aux):
print (i,j, kernels[i][j], kernels[i][i], kernels[j][j], math.sqrt(kernels[i][i] * kernels[j][j]))
kernels[i][j] = kernels[i][j] / math.sqrt(kernels[i][i] * kernels[j][j])
print (kernels[i][j])
kernels = np.array(kernels)
return kernels
@staticmethod
def run(dataset, ngram_range_min, ngram_range_max, normalize=False, clusters=None):
correct = 0
total = 0
for entry_index, entry in enumerate(dataset.data):
if len(entry.answer_pool) == 0:
total += 1
continue
question = entry.question
similarity_scores = PresenceStringKernel.compute_kernel_string_listofstrings(question, entry.answer_pool, ngram_range_min, ngram_range_max, normalize, clusters)
max_indexes = np.argwhere(similarity_scores == np.max(similarity_scores)).flatten().tolist()
random_max_index = random.choice(max_indexes)
if entry.answer_pool[random_max_index] in entry.correct_answer:
correct += 1
total += 1
# print("Presence kernel (", ngram_range_min, ngram_range_max, normalize, ") =", 1.0 * correct / total, flush=True)
return 1.0* correct / total
class SpectrumStringKernel(StringKernel):
def __init__(self):
super().__init__()
@staticmethod
def compute_kernel_two_strings(string1, string2, ngram_range_min, ngram_range_max, clusters=None):
if clusters != None and len(clusters) > 0:
return SpectrumStringKernel.compute_kernel_two_strings_clusters2(string1, string2, ngram_range_min, ngram_range_max, clusters)
ngrams = {}
for char_index, char in enumerate(string1):
for d in range(ngram_range_min, ngram_range_max+1):
if char_index + d <= len(string1):
ngram = string1[char_index:char_index+d]
if ngram not in ngrams:
ngrams[ngram] = 1
else:
ngrams[ngram] = ngrams[ngram] + 1
kernel = 0
for char_index, char in enumerate(string2):
for d in range(ngram_range_min, ngram_range_max+1):
if char_index + d <= len(string2):
ngram = string2[char_index:char_index+d]
if (ngram in ngrams):
kernel += ngrams[ngram]
return 1.0*kernel
@staticmethod
def compute_kernel_two_strings_clusters(string1, string2, ngram_range_min, ngram_range_max, clusters):
ngrams = {}
ngrams_in_clusters = {}
for char_index, char in enumerate(string1):
for d in range(ngram_range_min, ngram_range_max+1):
if char_index + d <= len(string1):
ngram = string1[char_index:char_index+d]
if ngram not in ngrams_in_clusters:
found = False
for cluster in clusters:
if ngram in cluster:
found = True
break
ngrams_in_clusters[ngram] = found
if ngrams_in_clusters[ngram] == False:
ngrams_in_clusters[ngram] = False
if ngram not in ngrams:
ngrams[ngram] = 1
else:
ngrams[ngram] = ngrams[ngram] + 1
kernel = 0
for char_index, char in enumerate(string2):
for d in range(ngram_range_min, ngram_range_max+1):
if char_index + d <= len(string2):
ngram = string2[char_index:char_index+d]
if (ngram in ngrams):
kernel += ngrams[ngram]
d1 = {}
d2 = {}
for cl, _ in enumerate(clusters):
d1[cl] = 0
d2[cl] = 0
for cl_index, cl in enumerate(clusters):
for ngram in cl:
if len(ngram) >= ngram_range_min and len(ngram) <= ngram_range_max:
d1[cl_index] = d1[cl_index] + string1.count(ngram)
d2[cl_index] = d2[cl_index] + string2.count(ngram)
for cl, _ in enumerate(clusters):
kernel += d1[cl] * d2[cl]
return kernel
@staticmethod
def compute_kernel_two_strings_clusters2(string1, string2, ngram_range_min, ngram_range_max, clusters):
index = 0
clusters_dict = {}
for cluster in clusters:
for ngram in cluster:
clusters_dict[ngram] = index
index += 1
s1_ngram = Counter()
s2_ngram = Counter()
for char_index, char in enumerate(string1):
for d in range(ngram_range_min, ngram_range_max + 1):
if char_index + d <= len(string1):
ngram = string1[char_index:char_index + d]
if ngram not in clusters_dict:
clusters_dict[ngram] = index
index += 1
s1_ngram[clusters_dict[ngram]] += 1
for char_index, char in enumerate(string2):
for d in range(ngram_range_min, ngram_range_max + 1):
if char_index + d <= len(string2):
ngram = string2[char_index:char_index + d]
if ngram not in clusters_dict:
clusters_dict[ngram] = index
index += 1
s2_ngram[clusters_dict[ngram]] += 1
kernel = 0
for c in s1_ngram:
# print (c, s1_ngram[c], s2_ngram[c])
kernel += s1_ngram[c] * s2_ngram[c]
return kernel
@staticmethod
def compute_kernel_string_listofstrings(string1, strings, ngram_range_min, ngram_range_max, normalize=False, clusters=None):
kernels = []
for string2 in strings:
pr = SpectrumStringKernel.compute_kernel_two_strings(string1, string2, ngram_range_min, ngram_range_max, clusters)
if normalize == True:
i = SpectrumStringKernel.compute_kernel_two_strings(string1, string1, ngram_range_min, ngram_range_max, clusters)
j = SpectrumStringKernel.compute_kernel_two_strings(string2, string2, ngram_range_min, ngram_range_max, clusters)
if i == 0.0 or j == 0.0:
kernels.append(0.0)
else:
kernels.append(pr / math.sqrt(i*j))
elif normalize == False:
kernels.append(pr)
kernels = np.array(kernels)
return kernels
@staticmethod
def compute_kernel_listofstrings(strings, ngram_range_min, ngram_range_max, normalize=False):
kernels = []
for string1 in strings:
kernels.append(SpectrumStringKernel.compute_kernel_string_listofstrings(string1, strings, ngram_range_min, ngram_range_max))
if normalize == True:
for i, aux in enumerate(kernels):
for j, _ in enumerate(aux):
print (i,j, kernels[i][j], kernels[i][i], kernels[j][j], math.sqrt(kernels[i][i] * kernels[j][j]))
kernels[i][j] = kernels[i][j] / math.sqrt(kernels[i][i] * kernels[j][j])
print (kernels[i][j])
kernels = np.array(kernels)
return kernels
@staticmethod
def run(dataset, ngram_range_min, ngram_range_max, normalize=False, clusters=None):
correct = 0
total = 0
for entry_index, entry in enumerate(dataset.data):
if len(entry.answer_pool) == 0:
total += 1
continue
question = entry.question
similarity_scores = SpectrumStringKernel.compute_kernel_string_listofstrings(question, entry.answer_pool, ngram_range_min, ngram_range_max, normalize, clusters)
max_indexes = np.argwhere(similarity_scores == np.max(similarity_scores)).flatten().tolist()
random_max_index = random.choice(max_indexes)
if entry.answer_pool[random_max_index] in entry.correct_answer:
correct += 1
total += 1
# print("Spectrum kernel (", ngram_range_min, ngram_range_max, normalize, ") =", 1.0 * correct / total, flush=True)
return 1.0 * correct / total
if __name__ == "__main__":
a = "walking kin lorem ipsum dem dolort adsr su u how are you to come to me to go to stay some things we want to change but no change vauce forte nefaster pentru a recladi nimeni nu ma munca"
b = ["de vreo miscare de rezinta hufhre stii cum un singur patid o singura germanie wtf is this i am wathcing ot stay stalin wtf is do you want to thisn"]
t = time.time()
for _ in range(100):
c = IntersectionStringKernel.compute_kernel_string_listofstrings(a, b, 1, 10, normalize=False)
print (c, time.time()-t)
t = time.time()
for _ in range(100):
c = IntersectionStringKernel.compute_kernel_string_listofstrings(a, b, 1, 10, normalize=False, clusters=[["aaaa"],["bbbb"]])
print(c , time.time() - t)
| 41.216606
| 196
| 0.568013
| 2,645
| 22,834
| 4.666919
| 0.061248
| 0.103694
| 0.067401
| 0.08895
| 0.955768
| 0.932275
| 0.919313
| 0.919313
| 0.918179
| 0.918179
| 0
| 0.021401
| 0.347202
| 22,834
| 553
| 197
| 41.291139
| 0.806722
| 0.016686
| 0
| 0.914097
| 0
| 0.004405
| 0.015503
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.057269
| false
| 0.011013
| 0.011013
| 0
| 0.123348
| 0.017621
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
698f4574a1a64f049e4069fc0aadf6a81cb511df
| 743
|
py
|
Python
|
clean.py
|
deut-erium/Mal-det-cal
|
dea1d77aecfbb7afe5129c21c9feb9df77fdf56a
|
[
"MIT"
] | 6
|
2020-11-25T07:30:21.000Z
|
2022-01-23T19:05:18.000Z
|
clean.py
|
p0i5on8/Mal-det-cal
|
5ec186aec38b6a4031bebe02d2737c62290ec3d5
|
[
"MIT"
] | 4
|
2021-06-08T22:17:14.000Z
|
2022-01-13T03:13:08.000Z
|
clean.py
|
p0i5on8/Mal-det-cal
|
5ec186aec38b6a4031bebe02d2737c62290ec3d5
|
[
"MIT"
] | 1
|
2020-08-10T02:58:13.000Z
|
2020-08-10T02:58:13.000Z
|
import sys
import os
if len(sys.argv) == 1: #no arguments provided, just remove temp_features.csv, output.csv, and temp_test_filtered
os.remove('temp_features.csv')
os.remove('output.csv')
for root, dirs, files in os.walk('temp_test_filtered'):
for file in files:
os.remove(os.path.join(root, file))
elif len(sys.argv) == 2 and sys.argv[1] == 'train':
os.remove('training_data.csv')
os.remove('trained_model.pickle')
elif len(sys.argv) == 2 and sys.argv[1] == 'all':
os.remove('temp_features.csv')
os.remove('output.csv')
for root, dirs, files in os.walk('temp_test_filtered'):
for file in files:
os.remove(os.path.join(root, file))
os.remove('training_data.csv')
os.remove('trained_model.pickle')
| 32.304348
| 114
| 0.690444
| 123
| 743
| 4.065041
| 0.300813
| 0.16
| 0.088
| 0.126
| 0.78
| 0.78
| 0.78
| 0.78
| 0.78
| 0.676
| 0
| 0.007899
| 0.148048
| 743
| 22
| 115
| 33.772727
| 0.781991
| 0.118439
| 0
| 0.736842
| 0
| 0
| 0.272152
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.105263
| null | null | 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
69ad59d053fb7b12adc4bd9f966c29a9e1b8e383
| 15,800
|
py
|
Python
|
tests/unit/anteater/test_main.py
|
mike0615/curie
|
e25691f465c23cf53c39be157fcfa2eea4978b26
|
[
"MIT"
] | 4
|
2019-02-26T05:18:13.000Z
|
2020-07-15T00:34:41.000Z
|
tests/unit/anteater/test_main.py
|
nutanix/curie
|
e25691f465c23cf53c39be157fcfa2eea4978b26
|
[
"MIT"
] | 3
|
2021-03-31T18:55:50.000Z
|
2021-04-20T17:13:31.000Z
|
tests/unit/anteater/test_main.py
|
mike0615/curie
|
e25691f465c23cf53c39be157fcfa2eea4978b26
|
[
"MIT"
] | 2
|
2020-01-09T02:24:00.000Z
|
2020-11-04T23:09:02.000Z
|
#
# Copyright (c) 2018 Nutanix Inc. All rights reserved.
#
#
import unittest
from mock import MagicMock, call, patch, sentinel as sen
from ansible.errors import AnsibleError
from ansible.executor.stats import AggregateStats
from ansible.executor.playbook_executor import PlaybookExecutor
from ansible.parsing.dataloader import DataLoader
from ansible.vars.manager import VariableManager
from curie import anteater
class TestAnteater(unittest.TestCase):
def setUp(self):
pass
def test_check_playbook_result_ok(self):
m_execution = MagicMock()
stats = MagicMock(spec=AggregateStats)
# sentinels don't sort unless converted to strings
stats.processed = {str(sen.hosta): 4, str(sen.hostb): 4,
str(sen.hostc): 4, str(sen.hostd): 4}
stats.summarize.side_effect = [
{"ok": 5, "failures": 0, "unreachable": 0, "changed": 0, "skipped": 1},
{"ok": 4, "failures": 0, "unreachable": 0, "changed": 1, "skipped": 1},
{"ok": 5, "failures": 0, "unreachable": 0, "changed": 0, "skipped": 1},
{"ok": 4, "failures": 0, "unreachable": 0, "changed": 1, "skipped": 1},
]
m_execution._tqm._stats = stats
retval = anteater.main._check_playbook_result(sen.playbook, m_execution)
stats.summarize.has_calls([call(sen.hosta), call(sen.hostb),
call(sen.hostc)])
self.assertEqual(len(stats.processed), stats.summarize.call_count)
self.assertEqual([str(sen.hostb), str(sen.hostd)], retval)
def test_check_playbook_result_failure(self):
m_execution = MagicMock()
stats = MagicMock(spec=AggregateStats)
# sentinels don't sort unless converted to strings
stats.processed = {str(sen.hosta): 4, str(sen.hostb): 4,
str(sen.hostc): 4, str(sen.hostd): 4}
stats.summarize.side_effect = [
{"ok": 4, "failures": 1, "unreachable": 0, "changed": 0, "skipped": 1},
{"ok": 4, "failures": 0, "unreachable": 0, "changed": 1, "skipped": 1},
{"ok": 4, "failures": 1, "unreachable": 0, "changed": 0, "skipped": 1},
{"ok": 4, "failures": 0, "unreachable": 0, "changed": 1, "skipped": 1},
]
m_execution._tqm._stats = stats
with self.assertRaises(anteater.FailureError) as err:
anteater.main._check_playbook_result(sen.playbook, m_execution)
stats.summarize.has_calls([call(sen.hosta), call(sen.hostb),
call(sen.hostc)])
self.assertEqual("Ansible playbook sentinel.playbook failed on "
"hosts: ['sentinel.hosta', 'sentinel.hostc']",
err.exception.message)
def test_check_playbook_result_unreachable(self):
m_execution = MagicMock()
stats = MagicMock(spec=AggregateStats)
# sentinels don't sort unless converted to strings
stats.processed = {str(sen.hosta): 4, str(sen.hostb): 4,
str(sen.hostc): 4, str(sen.hostd): 4}
stats.summarize.side_effect = [
{"ok": 4, "failures": 0, "unreachable": 0, "changed": 1, "skipped": 1},
{"ok": 4, "failures": 0, "unreachable": 1, "changed": 0, "skipped": 1},
{"ok": 4, "failures": 0, "unreachable": 0, "changed": 1, "skipped": 1},
{"ok": 4, "failures": 0, "unreachable": 1, "changed": 0, "skipped": 1},
]
m_execution._tqm._stats = stats
with self.assertRaises(anteater.UnreachableError) as err:
anteater.main._check_playbook_result(sen.playbook, m_execution)
stats.summarize.has_calls([call(sen.hosta), call(sen.hostb),
call(sen.hostc)])
self.assertEqual("Ansible playbook sentinel.playbook unreachable on "
"hosts: ['sentinel.hostb', 'sentinel.hostd']",
err.exception.message)
@patch("curie.anteater.main.InventoryManager")
def test_create_inventory_groups(self, m_inventory_manager):
groups = {"cvms": ["1.1.1.1", "2.2.2.2", "3.3.3.3", "4.4.4.4"],
"nodes": ["5.5.5.5", "6.6.6.6", "7.7.7.7", "8.8.8.8"]}
m_inv_get_host = MagicMock()
m_inventory_manager.return_value.attach_mock(m_inv_get_host, 'get_host')
# `name` hack for breaking mock parent/child relationship
m_host = MagicMock(name="not-a-child")
m_inv_get_host.return_value = m_host
inventory = anteater.main._create_inventory(sen.loader, groups=groups)
# inventory = InventoryManager(loader=loader)
m_inventory_manager.assert_called_once_with(loader=sen.loader)
# inventory.add_group(group_name)
expected_inv_add_group_calls = [call(key) for key in groups.keys()]
m_inventory_manager.return_value.add_group.has_calls(expected_inv_add_group_calls)
self.assertEqual(len(expected_inv_add_group_calls),
m_inventory_manager.return_value.add_group.call_count)
# inventory.add_host(host_name, group=group_name)
expected_inv_add_host_calls = [call(host, group=group_name)
for group_name, host_list in groups.iteritems()
for host in host_list]
m_inventory_manager.return_value.add_host.assert_has_calls(
expected_inv_add_host_calls)
self.assertEqual(len(expected_inv_add_host_calls),
m_inventory_manager.return_value.add_host.call_count)
# inventory.get_host(host_name)
expected_inv_get_host_calls = [call(host)
for group_name, host_list in groups.iteritems()
for host in host_list]
m_inv_get_host.assert_has_calls(expected_inv_get_host_calls)
self.assertEqual(len(expected_inv_get_host_calls),
m_inv_get_host.call_count)
# host.add_group(group)
expected_host_add_group_calls = [call(group_name)
for group_name, host_list in groups.iteritems()
for host in host_list]
self.assertEqual(len(expected_host_add_group_calls),
m_host.add_group.call_count)
# group.add_host(host)
expected_group_add_host_calls = [call(host)
for group_name, host_list in groups.iteritems()
for host in host_list]
self.assertEqual(len(expected_group_add_host_calls),
m_inventory_manager.return_value.groups.__getitem__.return_value.add_host.call_count)
# inventory.reconcile_inventory()
m_inventory_manager.return_value.reconcile_inventory\
.assert_called_once_with()
# return inventory
self.assertEqual(m_inventory_manager.return_value, inventory)
@patch("curie.anteater.main.InventoryManager")
def test_create_inventory_host_list(self, m_inventory_manager):
host_list = ["1.1.1.1", "2.2.2.2", "3.3.3.3", "4.4.4.4"]
inventory = anteater.main._create_inventory(sen.loader,
host_list=host_list)
# inventory = InventoryManager(loader=loader)
m_inventory_manager.assert_called_once_with(loader=sen.loader)
# inventory.add_host(host_name, group=group_name)
expected_inv_add_host_calls = [call(host) for host in host_list]
m_inventory_manager.return_value.add_host.assert_has_calls(
expected_inv_add_host_calls)
self.assertEqual(len(expected_inv_add_host_calls),
m_inventory_manager.return_value.add_host.call_count)
# inventory.reconcile_inventory()
m_inventory_manager.return_value.reconcile_inventory \
.assert_called_once_with()
# return inventory
self.assertEqual(m_inventory_manager.return_value, inventory)
@patch("curie.anteater.main.InventoryManager")
def test_create_inventory_none(self, m_inventory_manager):
inventory = anteater.main._create_inventory(sen.loader)
# inventory = InventoryManager(loader=loader)
m_inventory_manager.assert_called_once_with(loader=sen.loader)
# inventory.add_group(group_name)
m_inventory_manager.return_value.add_group.assert_not_called()
# inventory.add_host(host_name, group=group_name)
m_inventory_manager.return_value.add_host.assert_not_called()
# inventory.reconcile_inventory()
m_inventory_manager.return_value.reconcile_inventory\
.assert_called_once_with()
# return inventory
self.assertEqual(m_inventory_manager.return_value, inventory)
@patch("curie.anteater.main._check_playbook_result",
return_value=sen.changed_hosts)
@patch("curie.anteater.main.pbe")
@patch("curie.anteater.main.ssh")
@patch("curie.anteater.main.logger", return_value=sen.logger)
@patch("curie.anteater.main.display")
@patch("curie.anteater.main._create_inventory", return_value=sen.inventory)
@patch("curie.anteater.main.VariableManager", spec=VariableManager)
@patch("curie.anteater.main.DataLoader", spec=DataLoader,
return_value=sen.dataloader)
@patch("curie.anteater.main.Options", spec=anteater.Options,
return_value=sen.options)
def test_run_host_list(self, m_options, m_dataloader, m_variablemanager,
m_create_inventory, m_display, m_logger, m_ssh,
m_pbe_mod, m_check_playbook_result):
m_pbe = MagicMock(spec=PlaybookExecutor)
m_execution = MagicMock()
m_pbe.return_value = m_execution
m_pbe_mod.PlaybookExecutor = m_pbe
inventory = [sen.hosta, sen.hostb]
retval = anteater.main.run(sen.playbook, inventory, sen.vars,
sen.remote_user, sen.remote_pass,
sen.become_method, sen.become_user,
sen.verbosity)
expected_options = {"become": False,
"become_user": sen.become_user,
"become_method": sen.become_method,
"diff": False,
"remote_user": sen.remote_user,
"verbosity": sen.verbosity}
m_options.assert_called_once_with(expected_options)
m_dataloader.assert_called_once()
m_variablemanager.assert_called_once_with(loader=m_dataloader.return_value,
inventory=sen.inventory)
self.assertEqual(sen.vars, m_variablemanager.return_value.extra_vars)
self.assertEqual(m_logger, m_display.logger)
self.assertEqual(sen.verbosity, m_ssh.display.verbosity)
self.assertTrue(m_pbe_mod.C.DEFAULT_SCP_IF_SSH)
self.assertFalse(m_pbe_mod.C.HOST_KEY_CHECKING)
m_pbe.assert_called_once_with([sen.playbook],
inventory=m_create_inventory.return_value,
variable_manager=m_variablemanager.return_value,
loader=m_dataloader.return_value,
options=m_options.return_value,
passwords=dict(conn_pass=sen.remote_pass))
m_execution.run.assert_called_once()
m_check_playbook_result.assert_called_once_with(sen.playbook,
m_pbe.return_value)
self.assertEqual(sen.changed_hosts, retval)
@patch("curie.anteater.main._check_playbook_result",
return_value=sen.changed_hosts)
@patch("curie.anteater.main.pbe")
@patch("curie.anteater.main.ssh")
@patch("curie.anteater.main.logger", return_value=sen.logger)
@patch("curie.anteater.main.display")
@patch("curie.anteater.main._create_inventory", return_value=sen.inventory)
@patch("curie.anteater.main.VariableManager", spec=VariableManager)
@patch("curie.anteater.main.DataLoader", spec=DataLoader,
return_value=sen.dataloader)
@patch("curie.anteater.main.Options", spec=anteater.Options,
return_value=sen.options)
def test_run_host_list(self, m_options, m_dataloader, m_variablemanager,
m_create_inventory, m_display, m_logger, m_ssh,
m_pbe_mod, m_check_playbook_result):
m_pbe = MagicMock(spec=PlaybookExecutor)
m_execution = MagicMock()
m_pbe.return_value = m_execution
m_pbe_mod.PlaybookExecutor = m_pbe
inventory = {sen.groupa: [sen.hosta, sen.hostb]}
retval = anteater.main.run(sen.playbook, inventory, sen.vars,
sen.remote_user, sen.remote_pass,
sen.become_method, sen.become_user,
sen.verbosity)
expected_options = {"become": False,
"become_user": sen.become_user,
"become_method": sen.become_method,
"diff": False,
"remote_user": sen.remote_user,
"verbosity": sen.verbosity}
m_options.assert_called_once_with(expected_options)
m_dataloader.assert_called_once()
m_variablemanager.assert_called_once_with(loader=m_dataloader.return_value,
inventory=sen.inventory)
self.assertEqual(sen.vars, m_variablemanager.return_value.extra_vars)
self.assertEqual(m_logger, m_display.logger)
self.assertEqual(sen.verbosity, m_ssh.display.verbosity)
self.assertTrue(m_pbe_mod.C.DEFAULT_SCP_IF_SSH)
self.assertFalse(m_pbe_mod.C.HOST_KEY_CHECKING)
m_pbe.assert_called_once_with([sen.playbook],
inventory=m_create_inventory.return_value,
variable_manager=m_variablemanager.return_value,
loader=m_dataloader.return_value,
options=m_options.return_value,
passwords=dict(conn_pass=sen.remote_pass))
m_execution.run.assert_called_once()
m_check_playbook_result.assert_called_once_with(sen.playbook,
m_pbe.return_value)
self.assertEqual(sen.changed_hosts, retval)
@patch("curie.anteater.main._check_playbook_result",
return_value=sen.changed_hosts)
@patch("curie.anteater.main.pbe")
@patch("curie.anteater.main.ssh")
@patch("curie.anteater.main.logger", return_value=sen.logger)
@patch("curie.anteater.main.display")
@patch("curie.anteater.main._create_inventory", return_value=sen.inventory)
@patch("curie.anteater.main.VariableManager", spec=VariableManager)
@patch("curie.anteater.main.DataLoader", spec=DataLoader,
return_value=sen.dataloader)
@patch("curie.anteater.main.Options", spec=anteater.Options,
return_value=sen.options)
def test_run_host_list(self, m_options, m_dataloader, m_variablemanager,
m_create_inventory, m_display, m_logger, m_ssh,
m_pbe_mod, m_check_playbook_result):
m_pbe = MagicMock(spec=PlaybookExecutor)
m_execution = MagicMock()
m_pbe.return_value = m_execution
m_pbe_mod.PlaybookExecutor = m_pbe
inventory = sen.badtype
with self.assertRaises(anteater.AnteaterError) as err:
anteater.main.run(sen.playbook, inventory, sen.vars, sen.remote_user,
sen.remote_pass, sen.become_method, sen.become_user,
sen.verbosity)
self.assertEqual("Unable to parse inventory type "
"<class 'mock.mock._SentinelObject'>: sentinel.badtype",
err.exception.message)
@patch("curie.anteater.main.DataLoader", spec=DataLoader,
side_effect=AnsibleError(sen.message))
def test_run_ansibleerror(self, _):
with self.assertRaises(anteater.AnteaterError) as err:
anteater.main.run(sen.playbook, sen.host_list, sen.vars, sen.remote_user,
sen.remote_pass, sen.become_method, sen.become_user,
sen.verbosity)
# Ansible modifies exception.message instead passing things in/out cleanly
self.assertEqual(str(sen.message), err.exception.message)
| 48.318043
| 106
| 0.661266
| 1,928
| 15,800
| 5.133299
| 0.088174
| 0.055572
| 0.056381
| 0.06891
| 0.860463
| 0.836516
| 0.831868
| 0.793877
| 0.7864
| 0.772658
| 0
| 0.010201
| 0.230633
| 15,800
| 326
| 107
| 48.466258
| 0.803965
| 0.056203
| 0
| 0.740458
| 0
| 0
| 0.124488
| 0.065637
| 0
| 0
| 0
| 0
| 0.206107
| 1
| 0.041985
| false
| 0.026718
| 0.030534
| 0
| 0.076336
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
389942fc96b9477f3ca3e2db9b48504e316095f4
| 6,048
|
py
|
Python
|
tests/base/test_endpoints_pagination.py
|
rapydo/http-api
|
ef0a299173195145303069534d45d446ea4da93a
|
[
"MIT"
] | 8
|
2018-07-04T09:54:46.000Z
|
2022-03-17T08:21:06.000Z
|
tests/base/test_endpoints_pagination.py
|
rapydo/http-api
|
ef0a299173195145303069534d45d446ea4da93a
|
[
"MIT"
] | 19
|
2018-04-18T07:24:55.000Z
|
2022-03-04T01:03:15.000Z
|
tests/base/test_endpoints_pagination.py
|
rapydo/http-api
|
ef0a299173195145303069534d45d446ea4da93a
|
[
"MIT"
] | 7
|
2018-07-03T12:17:50.000Z
|
2021-05-05T04:33:32.000Z
|
from restapi.tests import API_URI, BaseTests, FlaskClient
# from restapi.utilities.logs import log
class TestApp(BaseTests):
def test_GET_specs(self, client: FlaskClient) -> None:
r = client.get(f"{API_URI}/tests/pagination")
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, list)
assert len(content) == 20
assert content[0] == 1
assert content[19] == 20
r = client.get(f"{API_URI}/tests/pagination", query_string={"get_total": True})
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, int)
assert content == 150
# Check precedence: get_total wins
data = {"get_total": True, "page": 1, "size": 20}
r = client.get(f"{API_URI}/tests/pagination", query_string=data)
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, int)
assert content == 150
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, int)
assert content == 150
r = client.get(f"{API_URI}/tests/pagination", query_string={"page": 2})
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, list)
assert len(content) == 20
assert content[0] == 21
assert content[19] == 40
data = {"page": 2, "size": 10}
r = client.get(f"{API_URI}/tests/pagination", query_string=data)
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, list)
assert len(content) == 10
assert content[0] == 11
assert content[9] == 20
data = {"page": 2, "size": 100}
r = client.get(f"{API_URI}/tests/pagination", query_string=data)
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, list)
assert len(content) == 50
assert content[0] == 101
assert content[49] == 150
r = client.get(f"{API_URI}/tests/pagination", query_string={"page": 20})
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, list)
assert len(content) == 0
r = client.get(f"{API_URI}/tests/pagination", query_string={"size": 101})
assert r.status_code == 400
r = client.get(f"{API_URI}/tests/pagination", query_string={"page": -5})
assert r.status_code == 400
r = client.get(f"{API_URI}/tests/pagination", query_string={"size": -5})
assert r.status_code == 400
data = {"page": -5, "size": -5}
r = client.get(f"{API_URI}/tests/pagination", query_string=data)
assert r.status_code == 400
r = client.post(f"{API_URI}/tests/pagination")
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, list)
assert len(content) == 20
assert content[0] == 1
assert content[19] == 20
r = client.post(f"{API_URI}/tests/pagination", data={"get_total": True})
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, int)
assert content == 150
# Check precedence: get_total wins
data = {"get_total": True, "page": 1, "size": 20}
r = client.post(f"{API_URI}/tests/pagination", data=data)
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, int)
assert content == 150
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, int)
assert content == 150
r = client.post(f"{API_URI}/tests/pagination", data={"page": 2})
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, list)
assert len(content) == 20
assert content[0] == 21
assert content[19] == 40
r = client.post(f"{API_URI}/tests/pagination", data={"page": 2, "size": 10})
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, list)
assert len(content) == 10
assert content[0] == 11
assert content[9] == 20
r = client.post(f"{API_URI}/tests/pagination", data={"page": 2, "size": 100})
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, list)
assert len(content) == 50
assert content[0] == 101
assert content[49] == 150
r = client.post(f"{API_URI}/tests/pagination", data={"page": 20})
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, list)
assert len(content) == 0
r = client.post(f"{API_URI}/tests/pagination", data={"size": 101})
assert r.status_code == 400
r = client.post(f"{API_URI}/tests/pagination", data={"page": -5})
assert r.status_code == 400
r = client.post(f"{API_URI}/tests/pagination", data={"size": -5})
assert r.status_code == 400
r = client.post(f"{API_URI}/tests/pagination", data={"page": -5, "size": -5})
assert r.status_code == 400
# Final check:
# get only accept query parameters
# post only accept body parameters
r = client.get(f"{API_URI}/tests/pagination", data={"get_total": True})
assert r.status_code == 200
content = self.get_content(r)
# Request get_total as body parameter but is ignored => sent a list of elements
assert isinstance(content, list)
# Request get_total as query parameter but is ignored => sent a list of elements
r = client.post(f"{API_URI}/tests/pagination", query_string={"get_total": True})
assert r.status_code == 200
content = self.get_content(r)
assert isinstance(content, list)
| 36.654545
| 88
| 0.597222
| 794
| 6,048
| 4.433249
| 0.094458
| 0.051705
| 0.096023
| 0.125568
| 0.921023
| 0.906818
| 0.906818
| 0.89375
| 0.884943
| 0.860227
| 0
| 0.04763
| 0.270999
| 6,048
| 164
| 89
| 36.878049
| 0.750737
| 0.056217
| 0
| 0.793651
| 0
| 0
| 0.137217
| 0.109493
| 0
| 0
| 0
| 0
| 0.603175
| 1
| 0.007937
| false
| 0
| 0.007937
| 0
| 0.02381
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
38d231670be348017e72d1394e83ee8011cc8fb2
| 661,116
|
py
|
Python
|
vod-20170321/python/alibabacloud_vod20170321/models.py
|
atptro/alibabacloud-sdk
|
65d4a000e4f4059b58ca1bc3d032853aedef4f3f
|
[
"Apache-2.0"
] | null | null | null |
vod-20170321/python/alibabacloud_vod20170321/models.py
|
atptro/alibabacloud-sdk
|
65d4a000e4f4059b58ca1bc3d032853aedef4f3f
|
[
"Apache-2.0"
] | null | null | null |
vod-20170321/python/alibabacloud_vod20170321/models.py
|
atptro/alibabacloud-sdk
|
65d4a000e4f4059b58ca1bc3d032853aedef4f3f
|
[
"Apache-2.0"
] | null | null | null |
# This file is auto-generated, don't edit it. Thanks.
from Tea.model import TeaModel
class SubmitMediaDNADeleteJobRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, media_id=None, fp_dbid=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.media_id = media_id
self.fp_dbid = fp_dbid
def validate(self):
self.validate_required(self.media_id, 'media_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['MediaId'] = self.media_id
result['FpDBId'] = self.fp_dbid
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.media_id = map.get('MediaId')
self.fp_dbid = map.get('FpDBId')
return self
class SubmitMediaDNADeleteJobResponse(TeaModel):
def __init__(self, request_id=None, media_id=None, job_id=None):
self.request_id = request_id
self.media_id = media_id
self.job_id = job_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.job_id, 'job_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['MediaId'] = self.media_id
result['JobId'] = self.job_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.media_id = map.get('MediaId')
self.job_id = map.get('JobId')
return self
class ListMediaDNADeleteJobRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, job_ids=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.job_ids = job_ids
def validate(self):
self.validate_required(self.job_ids, 'job_ids')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['JobIds'] = self.job_ids
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.job_ids = map.get('JobIds')
return self
class ListMediaDNADeleteJobResponse(TeaModel):
def __init__(self, request_id=None, aijob_list=None, non_exist_aijob_ids=None):
self.request_id = request_id
self.aijob_list = aijob_list
self.non_exist_aijob_ids = non_exist_aijob_ids
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.aijob_list, 'aijob_list')
if self.aijob_list:
self.aijob_list.validate()
self.validate_required(self.non_exist_aijob_ids, 'non_exist_aijob_ids')
if self.non_exist_aijob_ids:
self.non_exist_aijob_ids.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.aijob_list is not None:
result['AIJobList'] = self.aijob_list.to_map()
else:
result['AIJobList'] = None
if self.non_exist_aijob_ids is not None:
result['NonExistAIJobIds'] = self.non_exist_aijob_ids.to_map()
else:
result['NonExistAIJobIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('AIJobList') is not None:
temp_model = ListMediaDNADeleteJobResponseAIJobList()
self.aijob_list = temp_model.from_map(map['AIJobList'])
else:
self.aijob_list = None
if map.get('NonExistAIJobIds') is not None:
temp_model = ListMediaDNADeleteJobResponseNonExistAIJobIds()
self.non_exist_aijob_ids = temp_model.from_map(map['NonExistAIJobIds'])
else:
self.non_exist_aijob_ids = None
return self
class ListMediaDNADeleteJobResponseAIJobListAIJob(TeaModel):
def __init__(self, job_id=None, media_id=None, status=None, code=None, message=None, fp_dbid=None):
self.job_id = job_id
self.media_id = media_id
self.status = status
self.code = code
self.message = message
self.fp_dbid = fp_dbid
def validate(self):
self.validate_required(self.job_id, 'job_id')
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.status, 'status')
self.validate_required(self.code, 'code')
self.validate_required(self.message, 'message')
self.validate_required(self.fp_dbid, 'fp_dbid')
def to_map(self):
result = {}
result['JobId'] = self.job_id
result['MediaId'] = self.media_id
result['Status'] = self.status
result['Code'] = self.code
result['Message'] = self.message
result['FpDBId'] = self.fp_dbid
return result
def from_map(self, map={}):
self.job_id = map.get('JobId')
self.media_id = map.get('MediaId')
self.status = map.get('Status')
self.code = map.get('Code')
self.message = map.get('Message')
self.fp_dbid = map.get('FpDBId')
return self
class ListMediaDNADeleteJobResponseAIJobList(TeaModel):
def __init__(self, aijob=None):
self.aijob = []
def validate(self):
self.validate_required(self.aijob, 'aijob')
if self.aijob:
for k in self.aijob:
if k :
k.validate()
def to_map(self):
result = {}
result['AIJob'] = []
if self.aijob is not None:
for k in self.aijob:
result['AIJob'].append(k.to_map() if k else None)
else:
result['AIJob'] = None
return result
def from_map(self, map={}):
self.aijob = []
if map.get('AIJob') is not None:
for k in map.get('AIJob'):
temp_model = ListMediaDNADeleteJobResponseAIJobListAIJob()
temp_model = temp_model.from_map(k)
self.aijob.append(temp_model)
else:
self.aijob = None
return self
class ListMediaDNADeleteJobResponseNonExistAIJobIds(TeaModel):
def __init__(self, string=None):
self.string = []
def validate(self):
self.validate_required(self.string, 'string')
def to_map(self):
result = {}
result['String'] = []
if self.string is not None:
for k in self.string:
result['String'].append(k)
else:
result['String'] = None
return result
def from_map(self, map={}):
self.string = []
if map.get('String') is not None:
for k in map.get('String'):
self.string.append(k)
else:
self.string = None
return self
class GetMediaAuditAudioResultDetailRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, media_id=None, page_no=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.media_id = media_id
self.page_no = page_no
def validate(self):
self.validate_required(self.media_id, 'media_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['MediaId'] = self.media_id
result['PageNo'] = self.page_no
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.media_id = map.get('MediaId')
self.page_no = map.get('PageNo')
return self
class GetMediaAuditAudioResultDetailResponse(TeaModel):
def __init__(self, request_id=None, media_audit_audio_result_detail=None):
self.request_id = request_id
self.media_audit_audio_result_detail = media_audit_audio_result_detail
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.media_audit_audio_result_detail, 'media_audit_audio_result_detail')
if self.media_audit_audio_result_detail:
self.media_audit_audio_result_detail.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.media_audit_audio_result_detail is not None:
result['MediaAuditAudioResultDetail'] = self.media_audit_audio_result_detail.to_map()
else:
result['MediaAuditAudioResultDetail'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('MediaAuditAudioResultDetail') is not None:
temp_model = GetMediaAuditAudioResultDetailResponseMediaAuditAudioResultDetail()
self.media_audit_audio_result_detail = temp_model.from_map(map['MediaAuditAudioResultDetail'])
else:
self.media_audit_audio_result_detail = None
return self
class GetMediaAuditAudioResultDetailResponseMediaAuditAudioResultDetailList(TeaModel):
def __init__(self, start_time=None, end_time=None, text=None, label=None):
self.start_time = start_time
self.end_time = end_time
self.text = text
self.label = label
def validate(self):
self.validate_required(self.start_time, 'start_time')
self.validate_required(self.end_time, 'end_time')
self.validate_required(self.text, 'text')
self.validate_required(self.label, 'label')
def to_map(self):
result = {}
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
result['Text'] = self.text
result['Label'] = self.label
return result
def from_map(self, map={}):
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
self.text = map.get('Text')
self.label = map.get('Label')
return self
class GetMediaAuditAudioResultDetailResponseMediaAuditAudioResultDetail(TeaModel):
def __init__(self, total=None, page_total=None, list_=None):
self.total = total
self.page_total = page_total
self.list_ = []
def validate(self):
self.validate_required(self.total, 'total')
self.validate_required(self.page_total, 'page_total')
self.validate_required(self.list_, 'list_')
if self.list_:
for k in self.list_:
if k :
k.validate()
def to_map(self):
result = {}
result['Total'] = self.total
result['PageTotal'] = self.page_total
result['List'] = []
if self.list_ is not None:
for k in self.list_:
result['List'].append(k.to_map() if k else None)
else:
result['List'] = None
return result
def from_map(self, map={}):
self.total = map.get('Total')
self.page_total = map.get('PageTotal')
self.list_ = []
if map.get('List') is not None:
for k in map.get('List'):
temp_model = GetMediaAuditAudioResultDetailResponseMediaAuditAudioResultDetailList()
temp_model = temp_model.from_map(k)
self.list_.append(temp_model)
else:
self.list_ = None
return self
class SubmitDynamicImageJobRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_id=None, dynamic_image_template_id=None, override_params=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_id = video_id
self.dynamic_image_template_id = dynamic_image_template_id
self.override_params = override_params
def validate(self):
self.validate_required(self.video_id, 'video_id')
self.validate_required(self.dynamic_image_template_id, 'dynamic_image_template_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoId'] = self.video_id
result['DynamicImageTemplateId'] = self.dynamic_image_template_id
result['OverrideParams'] = self.override_params
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_id = map.get('VideoId')
self.dynamic_image_template_id = map.get('DynamicImageTemplateId')
self.override_params = map.get('OverrideParams')
return self
class SubmitDynamicImageJobResponse(TeaModel):
def __init__(self, request_id=None, dynamic_image_job=None):
self.request_id = request_id
self.dynamic_image_job = dynamic_image_job
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.dynamic_image_job, 'dynamic_image_job')
if self.dynamic_image_job:
self.dynamic_image_job.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.dynamic_image_job is not None:
result['DynamicImageJob'] = self.dynamic_image_job.to_map()
else:
result['DynamicImageJob'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('DynamicImageJob') is not None:
temp_model = SubmitDynamicImageJobResponseDynamicImageJob()
self.dynamic_image_job = temp_model.from_map(map['DynamicImageJob'])
else:
self.dynamic_image_job = None
return self
class SubmitDynamicImageJobResponseDynamicImageJob(TeaModel):
def __init__(self, job_id=None):
self.job_id = job_id
def validate(self):
self.validate_required(self.job_id, 'job_id')
def to_map(self):
result = {}
result['JobId'] = self.job_id
return result
def from_map(self, map={}):
self.job_id = map.get('JobId')
return self
class SubmitWorkflowJobRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, workflow_id=None, media_id=None, file_url=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.workflow_id = workflow_id
self.media_id = media_id
self.file_url = file_url
def validate(self):
self.validate_required(self.workflow_id, 'workflow_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['WorkflowId'] = self.workflow_id
result['MediaId'] = self.media_id
result['FileUrl'] = self.file_url
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.workflow_id = map.get('WorkflowId')
self.media_id = map.get('MediaId')
self.file_url = map.get('FileUrl')
return self
class SubmitWorkflowJobResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class GetAIVideoTagResultRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, media_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.media_id = media_id
def validate(self):
self.validate_required(self.media_id, 'media_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['MediaId'] = self.media_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.media_id = map.get('MediaId')
return self
class GetAIVideoTagResultResponse(TeaModel):
def __init__(self, request_id=None, video_tag_result=None):
self.request_id = request_id
self.video_tag_result = video_tag_result
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.video_tag_result, 'video_tag_result')
if self.video_tag_result:
self.video_tag_result.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.video_tag_result is not None:
result['VideoTagResult'] = self.video_tag_result.to_map()
else:
result['VideoTagResult'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('VideoTagResult') is not None:
temp_model = GetAIVideoTagResultResponseVideoTagResult()
self.video_tag_result = temp_model.from_map(map['VideoTagResult'])
else:
self.video_tag_result = None
return self
class GetAIVideoTagResultResponseVideoTagResultCategory(TeaModel):
def __init__(self, tag=None):
self.tag = tag
def validate(self):
self.validate_required(self.tag, 'tag')
def to_map(self):
result = {}
result['Tag'] = self.tag
return result
def from_map(self, map={}):
self.tag = map.get('Tag')
return self
class GetAIVideoTagResultResponseVideoTagResultPerson(TeaModel):
def __init__(self, face_url=None, tag=None, times=None):
self.face_url = face_url
self.tag = tag
self.times = []
def validate(self):
self.validate_required(self.face_url, 'face_url')
self.validate_required(self.tag, 'tag')
self.validate_required(self.times, 'times')
def to_map(self):
result = {}
result['FaceUrl'] = self.face_url
result['Tag'] = self.tag
result['Times'] = []
if self.times is not None:
for k in self.times:
result['Times'].append(k)
else:
result['Times'] = None
return result
def from_map(self, map={}):
self.face_url = map.get('FaceUrl')
self.tag = map.get('Tag')
self.times = []
if map.get('Times') is not None:
for k in map.get('Times'):
self.times.append(k)
else:
self.times = None
return self
class GetAIVideoTagResultResponseVideoTagResultTime(TeaModel):
def __init__(self, tag=None, times=None):
self.tag = tag
self.times = []
def validate(self):
self.validate_required(self.tag, 'tag')
self.validate_required(self.times, 'times')
def to_map(self):
result = {}
result['Tag'] = self.tag
result['Times'] = []
if self.times is not None:
for k in self.times:
result['Times'].append(k)
else:
result['Times'] = None
return result
def from_map(self, map={}):
self.tag = map.get('Tag')
self.times = []
if map.get('Times') is not None:
for k in map.get('Times'):
self.times.append(k)
else:
self.times = None
return self
class GetAIVideoTagResultResponseVideoTagResultLocation(TeaModel):
def __init__(self, tag=None, times=None):
self.tag = tag
self.times = []
def validate(self):
self.validate_required(self.tag, 'tag')
self.validate_required(self.times, 'times')
def to_map(self):
result = {}
result['Tag'] = self.tag
result['Times'] = []
if self.times is not None:
for k in self.times:
result['Times'].append(k)
else:
result['Times'] = None
return result
def from_map(self, map={}):
self.tag = map.get('Tag')
self.times = []
if map.get('Times') is not None:
for k in map.get('Times'):
self.times.append(k)
else:
self.times = None
return self
class GetAIVideoTagResultResponseVideoTagResultKeyword(TeaModel):
def __init__(self, tag=None, times=None):
self.tag = tag
self.times = []
def validate(self):
self.validate_required(self.tag, 'tag')
self.validate_required(self.times, 'times')
def to_map(self):
result = {}
result['Tag'] = self.tag
result['Times'] = []
if self.times is not None:
for k in self.times:
result['Times'].append(k)
else:
result['Times'] = None
return result
def from_map(self, map={}):
self.tag = map.get('Tag')
self.times = []
if map.get('Times') is not None:
for k in map.get('Times'):
self.times.append(k)
else:
self.times = None
return self
class GetAIVideoTagResultResponseVideoTagResult(TeaModel):
def __init__(self, category=None, person=None, time=None, location=None, keyword=None):
self.category = []
self.person = []
self.time = []
self.location = []
self.keyword = []
def validate(self):
self.validate_required(self.category, 'category')
if self.category:
for k in self.category:
if k :
k.validate()
self.validate_required(self.person, 'person')
if self.person:
for k in self.person:
if k :
k.validate()
self.validate_required(self.time, 'time')
if self.time:
for k in self.time:
if k :
k.validate()
self.validate_required(self.location, 'location')
if self.location:
for k in self.location:
if k :
k.validate()
self.validate_required(self.keyword, 'keyword')
if self.keyword:
for k in self.keyword:
if k :
k.validate()
def to_map(self):
result = {}
result['Category'] = []
if self.category is not None:
for k in self.category:
result['Category'].append(k.to_map() if k else None)
else:
result['Category'] = None
result['Person'] = []
if self.person is not None:
for k in self.person:
result['Person'].append(k.to_map() if k else None)
else:
result['Person'] = None
result['Time'] = []
if self.time is not None:
for k in self.time:
result['Time'].append(k.to_map() if k else None)
else:
result['Time'] = None
result['Location'] = []
if self.location is not None:
for k in self.location:
result['Location'].append(k.to_map() if k else None)
else:
result['Location'] = None
result['Keyword'] = []
if self.keyword is not None:
for k in self.keyword:
result['Keyword'].append(k.to_map() if k else None)
else:
result['Keyword'] = None
return result
def from_map(self, map={}):
self.category = []
if map.get('Category') is not None:
for k in map.get('Category'):
temp_model = GetAIVideoTagResultResponseVideoTagResultCategory()
temp_model = temp_model.from_map(k)
self.category.append(temp_model)
else:
self.category = None
self.person = []
if map.get('Person') is not None:
for k in map.get('Person'):
temp_model = GetAIVideoTagResultResponseVideoTagResultPerson()
temp_model = temp_model.from_map(k)
self.person.append(temp_model)
else:
self.person = None
self.time = []
if map.get('Time') is not None:
for k in map.get('Time'):
temp_model = GetAIVideoTagResultResponseVideoTagResultTime()
temp_model = temp_model.from_map(k)
self.time.append(temp_model)
else:
self.time = None
self.location = []
if map.get('Location') is not None:
for k in map.get('Location'):
temp_model = GetAIVideoTagResultResponseVideoTagResultLocation()
temp_model = temp_model.from_map(k)
self.location.append(temp_model)
else:
self.location = None
self.keyword = []
if map.get('Keyword') is not None:
for k in map.get('Keyword'):
temp_model = GetAIVideoTagResultResponseVideoTagResultKeyword()
temp_model = temp_model.from_map(k)
self.keyword.append(temp_model)
else:
self.keyword = None
return self
class GetUploadDetailsRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, resource_real_owner_id=None, media_ids=None, media_type=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.resource_real_owner_id = resource_real_owner_id
self.media_ids = media_ids
self.media_type = media_type
def validate(self):
self.validate_required(self.media_ids, 'media_ids')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceRealOwnerId'] = self.resource_real_owner_id
result['MediaIds'] = self.media_ids
result['MediaType'] = self.media_type
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_real_owner_id = map.get('ResourceRealOwnerId')
self.media_ids = map.get('MediaIds')
self.media_type = map.get('MediaType')
return self
class GetUploadDetailsResponse(TeaModel):
def __init__(self, request_id=None, upload_details=None, non_exist_media_ids=None, forbidden_media_ids=None):
self.request_id = request_id
self.upload_details = []
self.non_exist_media_ids = []
self.forbidden_media_ids = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.upload_details, 'upload_details')
if self.upload_details:
for k in self.upload_details:
if k :
k.validate()
self.validate_required(self.non_exist_media_ids, 'non_exist_media_ids')
self.validate_required(self.forbidden_media_ids, 'forbidden_media_ids')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['UploadDetails'] = []
if self.upload_details is not None:
for k in self.upload_details:
result['UploadDetails'].append(k.to_map() if k else None)
else:
result['UploadDetails'] = None
result['NonExistMediaIds'] = []
if self.non_exist_media_ids is not None:
for k in self.non_exist_media_ids:
result['NonExistMediaIds'].append(k)
else:
result['NonExistMediaIds'] = None
result['ForbiddenMediaIds'] = []
if self.forbidden_media_ids is not None:
for k in self.forbidden_media_ids:
result['ForbiddenMediaIds'].append(k)
else:
result['ForbiddenMediaIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.upload_details = []
if map.get('UploadDetails') is not None:
for k in map.get('UploadDetails'):
temp_model = GetUploadDetailsResponseUploadDetails()
temp_model = temp_model.from_map(k)
self.upload_details.append(temp_model)
else:
self.upload_details = None
self.non_exist_media_ids = []
if map.get('NonExistMediaIds') is not None:
for k in map.get('NonExistMediaIds'):
self.non_exist_media_ids.append(k)
else:
self.non_exist_media_ids = None
self.forbidden_media_ids = []
if map.get('ForbiddenMediaIds') is not None:
for k in map.get('ForbiddenMediaIds'):
self.forbidden_media_ids.append(k)
else:
self.forbidden_media_ids = None
return self
class GetUploadDetailsResponseUploadDetails(TeaModel):
def __init__(self, media_id=None, title=None, file_size=None, status=None, upload_status=None, creation_time=None, modification_time=None, completion_time=None, upload_size=None, upload_ratio=None, upload_ip=None, upload_source=None, device_model=None):
self.media_id = media_id
self.title = title
self.file_size = file_size
self.status = status
self.upload_status = upload_status
self.creation_time = creation_time
self.modification_time = modification_time
self.completion_time = completion_time
self.upload_size = upload_size
self.upload_ratio = upload_ratio
self.upload_ip = upload_ip
self.upload_source = upload_source
self.device_model = device_model
def validate(self):
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.title, 'title')
self.validate_required(self.file_size, 'file_size')
self.validate_required(self.status, 'status')
self.validate_required(self.upload_status, 'upload_status')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modification_time, 'modification_time')
self.validate_required(self.completion_time, 'completion_time')
self.validate_required(self.upload_size, 'upload_size')
self.validate_required(self.upload_ratio, 'upload_ratio')
self.validate_required(self.upload_ip, 'upload_ip')
self.validate_required(self.upload_source, 'upload_source')
self.validate_required(self.device_model, 'device_model')
def to_map(self):
result = {}
result['MediaId'] = self.media_id
result['Title'] = self.title
result['FileSize'] = self.file_size
result['Status'] = self.status
result['UploadStatus'] = self.upload_status
result['CreationTime'] = self.creation_time
result['ModificationTime'] = self.modification_time
result['CompletionTime'] = self.completion_time
result['UploadSize'] = self.upload_size
result['UploadRatio'] = self.upload_ratio
result['UploadIP'] = self.upload_ip
result['UploadSource'] = self.upload_source
result['DeviceModel'] = self.device_model
return result
def from_map(self, map={}):
self.media_id = map.get('MediaId')
self.title = map.get('Title')
self.file_size = map.get('FileSize')
self.status = map.get('Status')
self.upload_status = map.get('UploadStatus')
self.creation_time = map.get('CreationTime')
self.modification_time = map.get('ModificationTime')
self.completion_time = map.get('CompletionTime')
self.upload_size = map.get('UploadSize')
self.upload_ratio = map.get('UploadRatio')
self.upload_ip = map.get('UploadIP')
self.upload_source = map.get('UploadSource')
self.device_model = map.get('DeviceModel')
return self
class DescribeVodStorageDataRequest(TeaModel):
def __init__(self, owner_id=None, start_time=None, end_time=None, region=None, storage_type=None, storage=None):
self.owner_id = owner_id
self.start_time = start_time
self.end_time = end_time
self.region = region
self.storage_type = storage_type
self.storage = storage
def validate(self):
self.validate_required(self.start_time, 'start_time')
self.validate_required(self.end_time, 'end_time')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
result['Region'] = self.region
result['StorageType'] = self.storage_type
result['Storage'] = self.storage
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
self.region = map.get('Region')
self.storage_type = map.get('StorageType')
self.storage = map.get('Storage')
return self
class DescribeVodStorageDataResponse(TeaModel):
def __init__(self, request_id=None, data_interval=None, storage_data=None):
self.request_id = request_id
self.data_interval = data_interval
self.storage_data = storage_data
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.data_interval, 'data_interval')
self.validate_required(self.storage_data, 'storage_data')
if self.storage_data:
self.storage_data.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['DataInterval'] = self.data_interval
if self.storage_data is not None:
result['StorageData'] = self.storage_data.to_map()
else:
result['StorageData'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.data_interval = map.get('DataInterval')
if map.get('StorageData') is not None:
temp_model = DescribeVodStorageDataResponseStorageData()
self.storage_data = temp_model.from_map(map['StorageData'])
else:
self.storage_data = None
return self
class DescribeVodStorageDataResponseStorageDataStorageDataItem(TeaModel):
def __init__(self, time_stamp=None, storage_utilization=None, network_out=None):
self.time_stamp = time_stamp
self.storage_utilization = storage_utilization
self.network_out = network_out
def validate(self):
self.validate_required(self.time_stamp, 'time_stamp')
self.validate_required(self.storage_utilization, 'storage_utilization')
self.validate_required(self.network_out, 'network_out')
def to_map(self):
result = {}
result['TimeStamp'] = self.time_stamp
result['StorageUtilization'] = self.storage_utilization
result['NetworkOut'] = self.network_out
return result
def from_map(self, map={}):
self.time_stamp = map.get('TimeStamp')
self.storage_utilization = map.get('StorageUtilization')
self.network_out = map.get('NetworkOut')
return self
class DescribeVodStorageDataResponseStorageData(TeaModel):
def __init__(self, storage_data_item=None):
self.storage_data_item = []
def validate(self):
self.validate_required(self.storage_data_item, 'storage_data_item')
if self.storage_data_item:
for k in self.storage_data_item:
if k :
k.validate()
def to_map(self):
result = {}
result['StorageDataItem'] = []
if self.storage_data_item is not None:
for k in self.storage_data_item:
result['StorageDataItem'].append(k.to_map() if k else None)
else:
result['StorageDataItem'] = None
return result
def from_map(self, map={}):
self.storage_data_item = []
if map.get('StorageDataItem') is not None:
for k in map.get('StorageDataItem'):
temp_model = DescribeVodStorageDataResponseStorageDataStorageDataItem()
temp_model = temp_model.from_map(k)
self.storage_data_item.append(temp_model)
else:
self.storage_data_item = None
return self
class DescribeVodAIDataRequest(TeaModel):
def __init__(self, owner_id=None, start_time=None, end_time=None, region=None, aitype=None):
self.owner_id = owner_id
self.start_time = start_time
self.end_time = end_time
self.region = region
self.aitype = aitype
def validate(self):
self.validate_required(self.start_time, 'start_time')
self.validate_required(self.end_time, 'end_time')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
result['Region'] = self.region
result['AIType'] = self.aitype
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
self.region = map.get('Region')
self.aitype = map.get('AIType')
return self
class DescribeVodAIDataResponse(TeaModel):
def __init__(self, request_id=None, data_interval=None, aidata=None):
self.request_id = request_id
self.data_interval = data_interval
self.aidata = aidata
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.data_interval, 'data_interval')
self.validate_required(self.aidata, 'aidata')
if self.aidata:
self.aidata.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['DataInterval'] = self.data_interval
if self.aidata is not None:
result['AIData'] = self.aidata.to_map()
else:
result['AIData'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.data_interval = map.get('DataInterval')
if map.get('AIData') is not None:
temp_model = DescribeVodAIDataResponseAIData()
self.aidata = temp_model.from_map(map['AIData'])
else:
self.aidata = None
return self
class DescribeVodAIDataResponseAIDataAIDataItemDataDataItem(TeaModel):
def __init__(self, name=None, value=None):
self.name = name
self.value = value
def validate(self):
self.validate_required(self.name, 'name')
self.validate_required(self.value, 'value')
def to_map(self):
result = {}
result['Name'] = self.name
result['Value'] = self.value
return result
def from_map(self, map={}):
self.name = map.get('Name')
self.value = map.get('Value')
return self
class DescribeVodAIDataResponseAIDataAIDataItemData(TeaModel):
def __init__(self, data_item=None):
self.data_item = []
def validate(self):
self.validate_required(self.data_item, 'data_item')
if self.data_item:
for k in self.data_item:
if k :
k.validate()
def to_map(self):
result = {}
result['DataItem'] = []
if self.data_item is not None:
for k in self.data_item:
result['DataItem'].append(k.to_map() if k else None)
else:
result['DataItem'] = None
return result
def from_map(self, map={}):
self.data_item = []
if map.get('DataItem') is not None:
for k in map.get('DataItem'):
temp_model = DescribeVodAIDataResponseAIDataAIDataItemDataDataItem()
temp_model = temp_model.from_map(k)
self.data_item.append(temp_model)
else:
self.data_item = None
return self
class DescribeVodAIDataResponseAIDataAIDataItem(TeaModel):
def __init__(self, time_stamp=None, data=None):
self.time_stamp = time_stamp
self.data = data
def validate(self):
self.validate_required(self.time_stamp, 'time_stamp')
self.validate_required(self.data, 'data')
if self.data:
self.data.validate()
def to_map(self):
result = {}
result['TimeStamp'] = self.time_stamp
if self.data is not None:
result['Data'] = self.data.to_map()
else:
result['Data'] = None
return result
def from_map(self, map={}):
self.time_stamp = map.get('TimeStamp')
if map.get('Data') is not None:
temp_model = DescribeVodAIDataResponseAIDataAIDataItemData()
self.data = temp_model.from_map(map['Data'])
else:
self.data = None
return self
class DescribeVodAIDataResponseAIData(TeaModel):
def __init__(self, aidata_item=None):
self.aidata_item = []
def validate(self):
self.validate_required(self.aidata_item, 'aidata_item')
if self.aidata_item:
for k in self.aidata_item:
if k :
k.validate()
def to_map(self):
result = {}
result['AIDataItem'] = []
if self.aidata_item is not None:
for k in self.aidata_item:
result['AIDataItem'].append(k.to_map() if k else None)
else:
result['AIDataItem'] = None
return result
def from_map(self, map={}):
self.aidata_item = []
if map.get('AIDataItem') is not None:
for k in map.get('AIDataItem'):
temp_model = DescribeVodAIDataResponseAIDataAIDataItem()
temp_model = temp_model.from_map(k)
self.aidata_item.append(temp_model)
else:
self.aidata_item = None
return self
class DescribeVodTranscodeDataRequest(TeaModel):
def __init__(self, owner_id=None, start_time=None, end_time=None, region=None, interval=None, storage=None, specification=None):
self.owner_id = owner_id
self.start_time = start_time
self.end_time = end_time
self.region = region
self.interval = interval
self.storage = storage
self.specification = specification
def validate(self):
self.validate_required(self.start_time, 'start_time')
self.validate_required(self.end_time, 'end_time')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
result['Region'] = self.region
result['Interval'] = self.interval
result['Storage'] = self.storage
result['Specification'] = self.specification
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
self.region = map.get('Region')
self.interval = map.get('Interval')
self.storage = map.get('Storage')
self.specification = map.get('Specification')
return self
class DescribeVodTranscodeDataResponse(TeaModel):
def __init__(self, request_id=None, data_interval=None, transcode_data=None):
self.request_id = request_id
self.data_interval = data_interval
self.transcode_data = transcode_data
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.data_interval, 'data_interval')
self.validate_required(self.transcode_data, 'transcode_data')
if self.transcode_data:
self.transcode_data.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['DataInterval'] = self.data_interval
if self.transcode_data is not None:
result['TranscodeData'] = self.transcode_data.to_map()
else:
result['TranscodeData'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.data_interval = map.get('DataInterval')
if map.get('TranscodeData') is not None:
temp_model = DescribeVodTranscodeDataResponseTranscodeData()
self.transcode_data = temp_model.from_map(map['TranscodeData'])
else:
self.transcode_data = None
return self
class DescribeVodTranscodeDataResponseTranscodeDataTranscodeDataItemDataDataItem(TeaModel):
def __init__(self, name=None, value=None):
self.name = name
self.value = value
def validate(self):
self.validate_required(self.name, 'name')
self.validate_required(self.value, 'value')
def to_map(self):
result = {}
result['Name'] = self.name
result['Value'] = self.value
return result
def from_map(self, map={}):
self.name = map.get('Name')
self.value = map.get('Value')
return self
class DescribeVodTranscodeDataResponseTranscodeDataTranscodeDataItemData(TeaModel):
def __init__(self, data_item=None):
self.data_item = []
def validate(self):
self.validate_required(self.data_item, 'data_item')
if self.data_item:
for k in self.data_item:
if k :
k.validate()
def to_map(self):
result = {}
result['DataItem'] = []
if self.data_item is not None:
for k in self.data_item:
result['DataItem'].append(k.to_map() if k else None)
else:
result['DataItem'] = None
return result
def from_map(self, map={}):
self.data_item = []
if map.get('DataItem') is not None:
for k in map.get('DataItem'):
temp_model = DescribeVodTranscodeDataResponseTranscodeDataTranscodeDataItemDataDataItem()
temp_model = temp_model.from_map(k)
self.data_item.append(temp_model)
else:
self.data_item = None
return self
class DescribeVodTranscodeDataResponseTranscodeDataTranscodeDataItem(TeaModel):
def __init__(self, time_stamp=None, data=None):
self.time_stamp = time_stamp
self.data = data
def validate(self):
self.validate_required(self.time_stamp, 'time_stamp')
self.validate_required(self.data, 'data')
if self.data:
self.data.validate()
def to_map(self):
result = {}
result['TimeStamp'] = self.time_stamp
if self.data is not None:
result['Data'] = self.data.to_map()
else:
result['Data'] = None
return result
def from_map(self, map={}):
self.time_stamp = map.get('TimeStamp')
if map.get('Data') is not None:
temp_model = DescribeVodTranscodeDataResponseTranscodeDataTranscodeDataItemData()
self.data = temp_model.from_map(map['Data'])
else:
self.data = None
return self
class DescribeVodTranscodeDataResponseTranscodeData(TeaModel):
def __init__(self, transcode_data_item=None):
self.transcode_data_item = []
def validate(self):
self.validate_required(self.transcode_data_item, 'transcode_data_item')
if self.transcode_data_item:
for k in self.transcode_data_item:
if k :
k.validate()
def to_map(self):
result = {}
result['TranscodeDataItem'] = []
if self.transcode_data_item is not None:
for k in self.transcode_data_item:
result['TranscodeDataItem'].append(k.to_map() if k else None)
else:
result['TranscodeDataItem'] = None
return result
def from_map(self, map={}):
self.transcode_data_item = []
if map.get('TranscodeDataItem') is not None:
for k in map.get('TranscodeDataItem'):
temp_model = DescribeVodTranscodeDataResponseTranscodeDataTranscodeDataItem()
temp_model = temp_model.from_map(k)
self.transcode_data_item.append(temp_model)
else:
self.transcode_data_item = None
return self
class DeleteMultipartUploadRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, resource_real_owner_id=None, media_id=None, media_type=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.resource_real_owner_id = resource_real_owner_id
self.media_id = media_id
self.media_type = media_type
def validate(self):
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.media_type, 'media_type')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['ResourceRealOwnerId'] = self.resource_real_owner_id
result['MediaId'] = self.media_id
result['MediaType'] = self.media_type
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.resource_real_owner_id = map.get('ResourceRealOwnerId')
self.media_id = map.get('MediaId')
self.media_type = map.get('MediaType')
return self
class DeleteMultipartUploadResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class GetAttachedMediaInfoRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, media_ids=None, auth_timeout=None, resource_real_owner_id=None, output_type=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.media_ids = media_ids
self.auth_timeout = auth_timeout
self.resource_real_owner_id = resource_real_owner_id
self.output_type = output_type
def validate(self):
self.validate_required(self.media_ids, 'media_ids')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['MediaIds'] = self.media_ids
result['AuthTimeout'] = self.auth_timeout
result['ResourceRealOwnerId'] = self.resource_real_owner_id
result['OutputType'] = self.output_type
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.media_ids = map.get('MediaIds')
self.auth_timeout = map.get('AuthTimeout')
self.resource_real_owner_id = map.get('ResourceRealOwnerId')
self.output_type = map.get('OutputType')
return self
class GetAttachedMediaInfoResponse(TeaModel):
def __init__(self, request_id=None, attached_media_list=None, non_exist_media_ids=None):
self.request_id = request_id
self.attached_media_list = []
self.non_exist_media_ids = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.attached_media_list, 'attached_media_list')
if self.attached_media_list:
for k in self.attached_media_list:
if k :
k.validate()
self.validate_required(self.non_exist_media_ids, 'non_exist_media_ids')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['AttachedMediaList'] = []
if self.attached_media_list is not None:
for k in self.attached_media_list:
result['AttachedMediaList'].append(k.to_map() if k else None)
else:
result['AttachedMediaList'] = None
result['NonExistMediaIds'] = []
if self.non_exist_media_ids is not None:
for k in self.non_exist_media_ids:
result['NonExistMediaIds'].append(k)
else:
result['NonExistMediaIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.attached_media_list = []
if map.get('AttachedMediaList') is not None:
for k in map.get('AttachedMediaList'):
temp_model = GetAttachedMediaInfoResponseAttachedMediaList()
temp_model = temp_model.from_map(k)
self.attached_media_list.append(temp_model)
else:
self.attached_media_list = None
self.non_exist_media_ids = []
if map.get('NonExistMediaIds') is not None:
for k in map.get('NonExistMediaIds'):
self.non_exist_media_ids.append(k)
else:
self.non_exist_media_ids = None
return self
class GetAttachedMediaInfoResponseAttachedMediaListCategories(TeaModel):
def __init__(self, cate_id=None, cate_name=None, level=None, parent_id=None):
self.cate_id = cate_id
self.cate_name = cate_name
self.level = level
self.parent_id = parent_id
def validate(self):
self.validate_required(self.cate_id, 'cate_id')
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.level, 'level')
self.validate_required(self.parent_id, 'parent_id')
def to_map(self):
result = {}
result['CateId'] = self.cate_id
result['CateName'] = self.cate_name
result['Level'] = self.level
result['ParentId'] = self.parent_id
return result
def from_map(self, map={}):
self.cate_id = map.get('CateId')
self.cate_name = map.get('CateName')
self.level = map.get('Level')
self.parent_id = map.get('ParentId')
return self
class GetAttachedMediaInfoResponseAttachedMediaList(TeaModel):
def __init__(self, media_id=None, title=None, type=None, tags=None, _url=None, description=None, file_size=None, storage_location=None, creation_time=None, modification_time=None, app_id=None, status=None, online_status=None, icon=None, region_id=None, categories=None):
self.media_id = media_id
self.title = title
self.type = type
self.tags = tags
self._url = _url
self.description = description
self.file_size = file_size
self.storage_location = storage_location
self.creation_time = creation_time
self.modification_time = modification_time
self.app_id = app_id
self.status = status
self.online_status = online_status
self.icon = icon
self.region_id = region_id
self.categories = []
def validate(self):
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.title, 'title')
self.validate_required(self.type, 'type')
self.validate_required(self.tags, 'tags')
self.validate_required(self._url, '_url')
self.validate_required(self.description, 'description')
self.validate_required(self.file_size, 'file_size')
self.validate_required(self.storage_location, 'storage_location')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modification_time, 'modification_time')
self.validate_required(self.app_id, 'app_id')
self.validate_required(self.status, 'status')
self.validate_required(self.online_status, 'online_status')
self.validate_required(self.icon, 'icon')
self.validate_required(self.region_id, 'region_id')
self.validate_required(self.categories, 'categories')
if self.categories:
for k in self.categories:
if k :
k.validate()
def to_map(self):
result = {}
result['MediaId'] = self.media_id
result['Title'] = self.title
result['Type'] = self.type
result['Tags'] = self.tags
result['URL'] = self._url
result['Description'] = self.description
result['FileSize'] = self.file_size
result['StorageLocation'] = self.storage_location
result['CreationTime'] = self.creation_time
result['ModificationTime'] = self.modification_time
result['AppId'] = self.app_id
result['Status'] = self.status
result['OnlineStatus'] = self.online_status
result['Icon'] = self.icon
result['RegionId'] = self.region_id
result['Categories'] = []
if self.categories is not None:
for k in self.categories:
result['Categories'].append(k.to_map() if k else None)
else:
result['Categories'] = None
return result
def from_map(self, map={}):
self.media_id = map.get('MediaId')
self.title = map.get('Title')
self.type = map.get('Type')
self.tags = map.get('Tags')
self._url = map.get('URL')
self.description = map.get('Description')
self.file_size = map.get('FileSize')
self.storage_location = map.get('StorageLocation')
self.creation_time = map.get('CreationTime')
self.modification_time = map.get('ModificationTime')
self.app_id = map.get('AppId')
self.status = map.get('Status')
self.online_status = map.get('OnlineStatus')
self.icon = map.get('Icon')
self.region_id = map.get('RegionId')
self.categories = []
if map.get('Categories') is not None:
for k in map.get('Categories'):
temp_model = GetAttachedMediaInfoResponseAttachedMediaListCategories()
temp_model = temp_model.from_map(k)
self.categories.append(temp_model)
else:
self.categories = None
return self
class DeleteAttachedMediaRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, media_ids=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.media_ids = media_ids
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['MediaIds'] = self.media_ids
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.media_ids = map.get('MediaIds')
return self
class DeleteAttachedMediaResponse(TeaModel):
def __init__(self, request_id=None, non_exist_media_ids=None):
self.request_id = request_id
self.non_exist_media_ids = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.non_exist_media_ids, 'non_exist_media_ids')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['NonExistMediaIds'] = []
if self.non_exist_media_ids is not None:
for k in self.non_exist_media_ids:
result['NonExistMediaIds'].append(k)
else:
result['NonExistMediaIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.non_exist_media_ids = []
if map.get('NonExistMediaIds') is not None:
for k in map.get('NonExistMediaIds'):
self.non_exist_media_ids.append(k)
else:
self.non_exist_media_ids = None
return self
class UpdateAttachedMediaInfosRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, resource_real_owner_id=None, update_content=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.resource_real_owner_id = resource_real_owner_id
self.update_content = update_content
def validate(self):
self.validate_required(self.update_content, 'update_content')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceRealOwnerId'] = self.resource_real_owner_id
result['UpdateContent'] = self.update_content
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_real_owner_id = map.get('ResourceRealOwnerId')
self.update_content = map.get('UpdateContent')
return self
class UpdateAttachedMediaInfosResponse(TeaModel):
def __init__(self, request_id=None, non_exist_media_ids=None):
self.request_id = request_id
self.non_exist_media_ids = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.non_exist_media_ids, 'non_exist_media_ids')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['NonExistMediaIds'] = []
if self.non_exist_media_ids is not None:
for k in self.non_exist_media_ids:
result['NonExistMediaIds'].append(k)
else:
result['NonExistMediaIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.non_exist_media_ids = []
if map.get('NonExistMediaIds') is not None:
for k in map.get('NonExistMediaIds'):
self.non_exist_media_ids.append(k)
else:
self.non_exist_media_ids = None
return self
class AttachAppPolicyToIdentityRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, identity_type=None, identity_name=None, app_id=None, policy_names=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.identity_type = identity_type
self.identity_name = identity_name
self.app_id = app_id
self.policy_names = policy_names
def validate(self):
self.validate_required(self.identity_type, 'identity_type')
self.validate_required(self.identity_name, 'identity_name')
self.validate_required(self.policy_names, 'policy_names')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['IdentityType'] = self.identity_type
result['IdentityName'] = self.identity_name
result['AppId'] = self.app_id
result['PolicyNames'] = self.policy_names
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.identity_type = map.get('IdentityType')
self.identity_name = map.get('IdentityName')
self.app_id = map.get('AppId')
self.policy_names = map.get('PolicyNames')
return self
class AttachAppPolicyToIdentityResponse(TeaModel):
def __init__(self, request_id=None, non_exist_policy_names=None, failed_policy_names=None):
self.request_id = request_id
self.non_exist_policy_names = []
self.failed_policy_names = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.non_exist_policy_names, 'non_exist_policy_names')
self.validate_required(self.failed_policy_names, 'failed_policy_names')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['NonExistPolicyNames'] = []
if self.non_exist_policy_names is not None:
for k in self.non_exist_policy_names:
result['NonExistPolicyNames'].append(k)
else:
result['NonExistPolicyNames'] = None
result['FailedPolicyNames'] = []
if self.failed_policy_names is not None:
for k in self.failed_policy_names:
result['FailedPolicyNames'].append(k)
else:
result['FailedPolicyNames'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.non_exist_policy_names = []
if map.get('NonExistPolicyNames') is not None:
for k in map.get('NonExistPolicyNames'):
self.non_exist_policy_names.append(k)
else:
self.non_exist_policy_names = None
self.failed_policy_names = []
if map.get('FailedPolicyNames') is not None:
for k in map.get('FailedPolicyNames'):
self.failed_policy_names.append(k)
else:
self.failed_policy_names = None
return self
class DetachAppPolicyFromIdentityRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, identity_type=None, identity_name=None, app_id=None, policy_names=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.identity_type = identity_type
self.identity_name = identity_name
self.app_id = app_id
self.policy_names = policy_names
def validate(self):
self.validate_required(self.identity_type, 'identity_type')
self.validate_required(self.identity_name, 'identity_name')
self.validate_required(self.policy_names, 'policy_names')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['IdentityType'] = self.identity_type
result['IdentityName'] = self.identity_name
result['AppId'] = self.app_id
result['PolicyNames'] = self.policy_names
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.identity_type = map.get('IdentityType')
self.identity_name = map.get('IdentityName')
self.app_id = map.get('AppId')
self.policy_names = map.get('PolicyNames')
return self
class DetachAppPolicyFromIdentityResponse(TeaModel):
def __init__(self, request_id=None, non_exist_policy_names=None, failed_policy_names=None):
self.request_id = request_id
self.non_exist_policy_names = []
self.failed_policy_names = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.non_exist_policy_names, 'non_exist_policy_names')
self.validate_required(self.failed_policy_names, 'failed_policy_names')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['NonExistPolicyNames'] = []
if self.non_exist_policy_names is not None:
for k in self.non_exist_policy_names:
result['NonExistPolicyNames'].append(k)
else:
result['NonExistPolicyNames'] = None
result['FailedPolicyNames'] = []
if self.failed_policy_names is not None:
for k in self.failed_policy_names:
result['FailedPolicyNames'].append(k)
else:
result['FailedPolicyNames'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.non_exist_policy_names = []
if map.get('NonExistPolicyNames') is not None:
for k in map.get('NonExistPolicyNames'):
self.non_exist_policy_names.append(k)
else:
self.non_exist_policy_names = None
self.failed_policy_names = []
if map.get('FailedPolicyNames') is not None:
for k in map.get('FailedPolicyNames'):
self.failed_policy_names.append(k)
else:
self.failed_policy_names = None
return self
class ListAppPoliciesForIdentityRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, identity_type=None, identity_name=None, app_id=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.identity_type = identity_type
self.identity_name = identity_name
self.app_id = app_id
def validate(self):
pass
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['IdentityType'] = self.identity_type
result['IdentityName'] = self.identity_name
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.identity_type = map.get('IdentityType')
self.identity_name = map.get('IdentityName')
self.app_id = map.get('AppId')
return self
class ListAppPoliciesForIdentityResponse(TeaModel):
def __init__(self, request_id=None, app_policy_list=None):
self.request_id = request_id
self.app_policy_list = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.app_policy_list, 'app_policy_list')
if self.app_policy_list:
for k in self.app_policy_list:
if k :
k.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['AppPolicyList'] = []
if self.app_policy_list is not None:
for k in self.app_policy_list:
result['AppPolicyList'].append(k.to_map() if k else None)
else:
result['AppPolicyList'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.app_policy_list = []
if map.get('AppPolicyList') is not None:
for k in map.get('AppPolicyList'):
temp_model = ListAppPoliciesForIdentityResponseAppPolicyList()
temp_model = temp_model.from_map(k)
self.app_policy_list.append(temp_model)
else:
self.app_policy_list = None
return self
class ListAppPoliciesForIdentityResponseAppPolicyList(TeaModel):
def __init__(self, app_id=None, creation_time=None, policy_name=None, policy_type=None, policy_value=None, description=None, modification_time=None):
self.app_id = app_id
self.creation_time = creation_time
self.policy_name = policy_name
self.policy_type = policy_type
self.policy_value = policy_value
self.description = description
self.modification_time = modification_time
def validate(self):
self.validate_required(self.app_id, 'app_id')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.policy_name, 'policy_name')
self.validate_required(self.policy_type, 'policy_type')
self.validate_required(self.policy_value, 'policy_value')
self.validate_required(self.description, 'description')
self.validate_required(self.modification_time, 'modification_time')
def to_map(self):
result = {}
result['AppId'] = self.app_id
result['CreationTime'] = self.creation_time
result['PolicyName'] = self.policy_name
result['PolicyType'] = self.policy_type
result['PolicyValue'] = self.policy_value
result['Description'] = self.description
result['ModificationTime'] = self.modification_time
return result
def from_map(self, map={}):
self.app_id = map.get('AppId')
self.creation_time = map.get('CreationTime')
self.policy_name = map.get('PolicyName')
self.policy_type = map.get('PolicyType')
self.policy_value = map.get('PolicyValue')
self.description = map.get('Description')
self.modification_time = map.get('ModificationTime')
return self
class CreateAppInfoRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, app_name=None, description=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.app_name = app_name
self.description = description
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['AppName'] = self.app_name
result['Description'] = self.description
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.app_name = map.get('AppName')
self.description = map.get('Description')
return self
class CreateAppInfoResponse(TeaModel):
def __init__(self, request_id=None, app_id=None):
self.request_id = request_id
self.app_id = app_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.app_id, 'app_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.app_id = map.get('AppId')
return self
class GetAppInfosRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, app_ids=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.app_ids = app_ids
def validate(self):
self.validate_required(self.app_ids, 'app_ids')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['AppIds'] = self.app_ids
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.app_ids = map.get('AppIds')
return self
class GetAppInfosResponse(TeaModel):
def __init__(self, request_id=None, app_info_list=None, non_exist_app_ids=None):
self.request_id = request_id
self.app_info_list = []
self.non_exist_app_ids = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.app_info_list, 'app_info_list')
if self.app_info_list:
for k in self.app_info_list:
if k :
k.validate()
self.validate_required(self.non_exist_app_ids, 'non_exist_app_ids')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['AppInfoList'] = []
if self.app_info_list is not None:
for k in self.app_info_list:
result['AppInfoList'].append(k.to_map() if k else None)
else:
result['AppInfoList'] = None
result['NonExistAppIds'] = []
if self.non_exist_app_ids is not None:
for k in self.non_exist_app_ids:
result['NonExistAppIds'].append(k)
else:
result['NonExistAppIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.app_info_list = []
if map.get('AppInfoList') is not None:
for k in map.get('AppInfoList'):
temp_model = GetAppInfosResponseAppInfoList()
temp_model = temp_model.from_map(k)
self.app_info_list.append(temp_model)
else:
self.app_info_list = None
self.non_exist_app_ids = []
if map.get('NonExistAppIds') is not None:
for k in map.get('NonExistAppIds'):
self.non_exist_app_ids.append(k)
else:
self.non_exist_app_ids = None
return self
class GetAppInfosResponseAppInfoList(TeaModel):
def __init__(self, app_id=None, app_name=None, type=None, description=None, status=None, creation_time=None, modification_time=None):
self.app_id = app_id
self.app_name = app_name
self.type = type
self.description = description
self.status = status
self.creation_time = creation_time
self.modification_time = modification_time
def validate(self):
self.validate_required(self.app_id, 'app_id')
self.validate_required(self.app_name, 'app_name')
self.validate_required(self.type, 'type')
self.validate_required(self.description, 'description')
self.validate_required(self.status, 'status')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modification_time, 'modification_time')
def to_map(self):
result = {}
result['AppId'] = self.app_id
result['AppName'] = self.app_name
result['Type'] = self.type
result['Description'] = self.description
result['Status'] = self.status
result['CreationTime'] = self.creation_time
result['ModificationTime'] = self.modification_time
return result
def from_map(self, map={}):
self.app_id = map.get('AppId')
self.app_name = map.get('AppName')
self.type = map.get('Type')
self.description = map.get('Description')
self.status = map.get('Status')
self.creation_time = map.get('CreationTime')
self.modification_time = map.get('ModificationTime')
return self
class UpdateAppInfoRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, app_id=None, app_name=None, description=None, status=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.app_id = app_id
self.app_name = app_name
self.description = description
self.status = status
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['AppId'] = self.app_id
result['AppName'] = self.app_name
result['Description'] = self.description
result['Status'] = self.status
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.app_id = map.get('AppId')
self.app_name = map.get('AppName')
self.description = map.get('Description')
self.status = map.get('Status')
return self
class UpdateAppInfoResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class DeleteAppInfoRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, app_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.app_id = app_id
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.app_id = map.get('AppId')
return self
class DeleteAppInfoResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class ListAppInfoRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, status=None, page_no=None, page_size=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.status = status
self.page_no = page_no
self.page_size = page_size
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['Status'] = self.status
result['PageNo'] = self.page_no
result['PageSize'] = self.page_size
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.status = map.get('Status')
self.page_no = map.get('PageNo')
self.page_size = map.get('PageSize')
return self
class ListAppInfoResponse(TeaModel):
def __init__(self, request_id=None, total=None, app_info_list=None):
self.request_id = request_id
self.total = total
self.app_info_list = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.total, 'total')
self.validate_required(self.app_info_list, 'app_info_list')
if self.app_info_list:
for k in self.app_info_list:
if k :
k.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['Total'] = self.total
result['AppInfoList'] = []
if self.app_info_list is not None:
for k in self.app_info_list:
result['AppInfoList'].append(k.to_map() if k else None)
else:
result['AppInfoList'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.total = map.get('Total')
self.app_info_list = []
if map.get('AppInfoList') is not None:
for k in map.get('AppInfoList'):
temp_model = ListAppInfoResponseAppInfoList()
temp_model = temp_model.from_map(k)
self.app_info_list.append(temp_model)
else:
self.app_info_list = None
return self
class ListAppInfoResponseAppInfoList(TeaModel):
def __init__(self, app_id=None, app_name=None, type=None, description=None, status=None, creation_time=None, modification_time=None):
self.app_id = app_id
self.app_name = app_name
self.type = type
self.description = description
self.status = status
self.creation_time = creation_time
self.modification_time = modification_time
def validate(self):
self.validate_required(self.app_id, 'app_id')
self.validate_required(self.app_name, 'app_name')
self.validate_required(self.type, 'type')
self.validate_required(self.description, 'description')
self.validate_required(self.status, 'status')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modification_time, 'modification_time')
def to_map(self):
result = {}
result['AppId'] = self.app_id
result['AppName'] = self.app_name
result['Type'] = self.type
result['Description'] = self.description
result['Status'] = self.status
result['CreationTime'] = self.creation_time
result['ModificationTime'] = self.modification_time
return result
def from_map(self, map={}):
self.app_id = map.get('AppId')
self.app_name = map.get('AppName')
self.type = map.get('Type')
self.description = map.get('Description')
self.status = map.get('Status')
self.creation_time = map.get('CreationTime')
self.modification_time = map.get('ModificationTime')
return self
class MoveAppResourceRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, target_app_id=None, resource_type=None, resource_ids=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.target_app_id = target_app_id
self.resource_type = resource_type
self.resource_ids = resource_ids
def validate(self):
self.validate_required(self.target_app_id, 'target_app_id')
self.validate_required(self.resource_type, 'resource_type')
self.validate_required(self.resource_ids, 'resource_ids')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['TargetAppId'] = self.target_app_id
result['ResourceType'] = self.resource_type
result['ResourceIds'] = self.resource_ids
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.target_app_id = map.get('TargetAppId')
self.resource_type = map.get('ResourceType')
self.resource_ids = map.get('ResourceIds')
return self
class MoveAppResourceResponse(TeaModel):
def __init__(self, request_id=None, non_exist_resource_ids=None, failed_resource_ids=None):
self.request_id = request_id
self.non_exist_resource_ids = []
self.failed_resource_ids = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.non_exist_resource_ids, 'non_exist_resource_ids')
self.validate_required(self.failed_resource_ids, 'failed_resource_ids')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['NonExistResourceIds'] = []
if self.non_exist_resource_ids is not None:
for k in self.non_exist_resource_ids:
result['NonExistResourceIds'].append(k)
else:
result['NonExistResourceIds'] = None
result['FailedResourceIds'] = []
if self.failed_resource_ids is not None:
for k in self.failed_resource_ids:
result['FailedResourceIds'].append(k)
else:
result['FailedResourceIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.non_exist_resource_ids = []
if map.get('NonExistResourceIds') is not None:
for k in map.get('NonExistResourceIds'):
self.non_exist_resource_ids.append(k)
else:
self.non_exist_resource_ids = None
self.failed_resource_ids = []
if map.get('FailedResourceIds') is not None:
for k in map.get('FailedResourceIds'):
self.failed_resource_ids.append(k)
else:
self.failed_resource_ids = None
return self
class DeleteMessageCallbackRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, resource_real_owner_id=None, app_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.resource_real_owner_id = resource_real_owner_id
self.app_id = app_id
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['ResourceRealOwnerId'] = self.resource_real_owner_id
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.resource_real_owner_id = map.get('ResourceRealOwnerId')
self.app_id = map.get('AppId')
return self
class DeleteMessageCallbackResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class GetTranscodeSummaryRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_ids=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_ids = video_ids
def validate(self):
self.validate_required(self.video_ids, 'video_ids')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoIds'] = self.video_ids
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_ids = map.get('VideoIds')
return self
class GetTranscodeSummaryResponse(TeaModel):
def __init__(self, request_id=None, transcode_summary_list=None, non_exist_video_ids=None):
self.request_id = request_id
self.transcode_summary_list = []
self.non_exist_video_ids = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.transcode_summary_list, 'transcode_summary_list')
if self.transcode_summary_list:
for k in self.transcode_summary_list:
if k :
k.validate()
self.validate_required(self.non_exist_video_ids, 'non_exist_video_ids')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['TranscodeSummaryList'] = []
if self.transcode_summary_list is not None:
for k in self.transcode_summary_list:
result['TranscodeSummaryList'].append(k.to_map() if k else None)
else:
result['TranscodeSummaryList'] = None
result['NonExistVideoIds'] = []
if self.non_exist_video_ids is not None:
for k in self.non_exist_video_ids:
result['NonExistVideoIds'].append(k)
else:
result['NonExistVideoIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.transcode_summary_list = []
if map.get('TranscodeSummaryList') is not None:
for k in map.get('TranscodeSummaryList'):
temp_model = GetTranscodeSummaryResponseTranscodeSummaryList()
temp_model = temp_model.from_map(k)
self.transcode_summary_list.append(temp_model)
else:
self.transcode_summary_list = None
self.non_exist_video_ids = []
if map.get('NonExistVideoIds') is not None:
for k in map.get('NonExistVideoIds'):
self.non_exist_video_ids.append(k)
else:
self.non_exist_video_ids = None
return self
class GetTranscodeSummaryResponseTranscodeSummaryListTranscodeJobInfoSummaryList(TeaModel):
def __init__(self, transcode_template_id=None, transcode_job_status=None, creation_time=None, complete_time=None, transcode_progress=None, error_code=None, error_message=None, definition=None, encryption=None, width=None, height=None, bitrate=None, fps=None, format=None, duration=None, filesize=None, watermark_id_list=None):
self.transcode_template_id = transcode_template_id
self.transcode_job_status = transcode_job_status
self.creation_time = creation_time
self.complete_time = complete_time
self.transcode_progress = transcode_progress
self.error_code = error_code
self.error_message = error_message
self.definition = definition
self.encryption = encryption
self.width = width
self.height = height
self.bitrate = bitrate
self.fps = fps
self.format = format
self.duration = duration
self.filesize = filesize
self.watermark_id_list = []
def validate(self):
self.validate_required(self.transcode_template_id, 'transcode_template_id')
self.validate_required(self.transcode_job_status, 'transcode_job_status')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.complete_time, 'complete_time')
self.validate_required(self.transcode_progress, 'transcode_progress')
self.validate_required(self.error_code, 'error_code')
self.validate_required(self.error_message, 'error_message')
self.validate_required(self.definition, 'definition')
self.validate_required(self.encryption, 'encryption')
self.validate_required(self.width, 'width')
self.validate_required(self.height, 'height')
self.validate_required(self.bitrate, 'bitrate')
self.validate_required(self.fps, 'fps')
self.validate_required(self.format, 'format')
self.validate_required(self.duration, 'duration')
self.validate_required(self.filesize, 'filesize')
self.validate_required(self.watermark_id_list, 'watermark_id_list')
def to_map(self):
result = {}
result['TranscodeTemplateId'] = self.transcode_template_id
result['TranscodeJobStatus'] = self.transcode_job_status
result['CreationTime'] = self.creation_time
result['CompleteTime'] = self.complete_time
result['TranscodeProgress'] = self.transcode_progress
result['ErrorCode'] = self.error_code
result['ErrorMessage'] = self.error_message
result['Definition'] = self.definition
result['Encryption'] = self.encryption
result['Width'] = self.width
result['Height'] = self.height
result['Bitrate'] = self.bitrate
result['Fps'] = self.fps
result['Format'] = self.format
result['Duration'] = self.duration
result['Filesize'] = self.filesize
result['WatermarkIdList'] = []
if self.watermark_id_list is not None:
for k in self.watermark_id_list:
result['WatermarkIdList'].append(k)
else:
result['WatermarkIdList'] = None
return result
def from_map(self, map={}):
self.transcode_template_id = map.get('TranscodeTemplateId')
self.transcode_job_status = map.get('TranscodeJobStatus')
self.creation_time = map.get('CreationTime')
self.complete_time = map.get('CompleteTime')
self.transcode_progress = map.get('TranscodeProgress')
self.error_code = map.get('ErrorCode')
self.error_message = map.get('ErrorMessage')
self.definition = map.get('Definition')
self.encryption = map.get('Encryption')
self.width = map.get('Width')
self.height = map.get('Height')
self.bitrate = map.get('Bitrate')
self.fps = map.get('Fps')
self.format = map.get('Format')
self.duration = map.get('Duration')
self.filesize = map.get('Filesize')
self.watermark_id_list = []
if map.get('WatermarkIdList') is not None:
for k in map.get('WatermarkIdList'):
self.watermark_id_list.append(k)
else:
self.watermark_id_list = None
return self
class GetTranscodeSummaryResponseTranscodeSummaryList(TeaModel):
def __init__(self, video_id=None, transcode_status=None, creation_time=None, complete_time=None, trigger=None, transcode_template_group_id=None, transcode_job_info_summary_list=None):
self.video_id = video_id
self.transcode_status = transcode_status
self.creation_time = creation_time
self.complete_time = complete_time
self.trigger = trigger
self.transcode_template_group_id = transcode_template_group_id
self.transcode_job_info_summary_list = []
def validate(self):
self.validate_required(self.video_id, 'video_id')
self.validate_required(self.transcode_status, 'transcode_status')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.complete_time, 'complete_time')
self.validate_required(self.trigger, 'trigger')
self.validate_required(self.transcode_template_group_id, 'transcode_template_group_id')
self.validate_required(self.transcode_job_info_summary_list, 'transcode_job_info_summary_list')
if self.transcode_job_info_summary_list:
for k in self.transcode_job_info_summary_list:
if k :
k.validate()
def to_map(self):
result = {}
result['VideoId'] = self.video_id
result['TranscodeStatus'] = self.transcode_status
result['CreationTime'] = self.creation_time
result['CompleteTime'] = self.complete_time
result['Trigger'] = self.trigger
result['TranscodeTemplateGroupId'] = self.transcode_template_group_id
result['TranscodeJobInfoSummaryList'] = []
if self.transcode_job_info_summary_list is not None:
for k in self.transcode_job_info_summary_list:
result['TranscodeJobInfoSummaryList'].append(k.to_map() if k else None)
else:
result['TranscodeJobInfoSummaryList'] = None
return result
def from_map(self, map={}):
self.video_id = map.get('VideoId')
self.transcode_status = map.get('TranscodeStatus')
self.creation_time = map.get('CreationTime')
self.complete_time = map.get('CompleteTime')
self.trigger = map.get('Trigger')
self.transcode_template_group_id = map.get('TranscodeTemplateGroupId')
self.transcode_job_info_summary_list = []
if map.get('TranscodeJobInfoSummaryList') is not None:
for k in map.get('TranscodeJobInfoSummaryList'):
temp_model = GetTranscodeSummaryResponseTranscodeSummaryListTranscodeJobInfoSummaryList()
temp_model = temp_model.from_map(k)
self.transcode_job_info_summary_list.append(temp_model)
else:
self.transcode_job_info_summary_list = None
return self
class ListTranscodeTaskRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_id=None, start_time=None, end_time=None, page_size=None, page_no=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_id = video_id
self.start_time = start_time
self.end_time = end_time
self.page_size = page_size
self.page_no = page_no
def validate(self):
self.validate_required(self.video_id, 'video_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoId'] = self.video_id
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
result['PageSize'] = self.page_size
result['PageNo'] = self.page_no
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_id = map.get('VideoId')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
self.page_size = map.get('PageSize')
self.page_no = map.get('PageNo')
return self
class ListTranscodeTaskResponse(TeaModel):
def __init__(self, request_id=None, transcode_task_list=None):
self.request_id = request_id
self.transcode_task_list = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.transcode_task_list, 'transcode_task_list')
if self.transcode_task_list:
for k in self.transcode_task_list:
if k :
k.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['TranscodeTaskList'] = []
if self.transcode_task_list is not None:
for k in self.transcode_task_list:
result['TranscodeTaskList'].append(k.to_map() if k else None)
else:
result['TranscodeTaskList'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.transcode_task_list = []
if map.get('TranscodeTaskList') is not None:
for k in map.get('TranscodeTaskList'):
temp_model = ListTranscodeTaskResponseTranscodeTaskList()
temp_model = temp_model.from_map(k)
self.transcode_task_list.append(temp_model)
else:
self.transcode_task_list = None
return self
class ListTranscodeTaskResponseTranscodeTaskList(TeaModel):
def __init__(self, transcode_task_id=None, video_id=None, task_status=None, transcode_template_group_id=None, creation_time=None, complete_time=None, trigger=None):
self.transcode_task_id = transcode_task_id
self.video_id = video_id
self.task_status = task_status
self.transcode_template_group_id = transcode_template_group_id
self.creation_time = creation_time
self.complete_time = complete_time
self.trigger = trigger
def validate(self):
self.validate_required(self.transcode_task_id, 'transcode_task_id')
self.validate_required(self.video_id, 'video_id')
self.validate_required(self.task_status, 'task_status')
self.validate_required(self.transcode_template_group_id, 'transcode_template_group_id')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.complete_time, 'complete_time')
self.validate_required(self.trigger, 'trigger')
def to_map(self):
result = {}
result['TranscodeTaskId'] = self.transcode_task_id
result['VideoId'] = self.video_id
result['TaskStatus'] = self.task_status
result['TranscodeTemplateGroupId'] = self.transcode_template_group_id
result['CreationTime'] = self.creation_time
result['CompleteTime'] = self.complete_time
result['Trigger'] = self.trigger
return result
def from_map(self, map={}):
self.transcode_task_id = map.get('TranscodeTaskId')
self.video_id = map.get('VideoId')
self.task_status = map.get('TaskStatus')
self.transcode_template_group_id = map.get('TranscodeTemplateGroupId')
self.creation_time = map.get('CreationTime')
self.complete_time = map.get('CompleteTime')
self.trigger = map.get('Trigger')
return self
class GetTranscodeTaskRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, transcode_task_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.transcode_task_id = transcode_task_id
def validate(self):
self.validate_required(self.transcode_task_id, 'transcode_task_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['TranscodeTaskId'] = self.transcode_task_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.transcode_task_id = map.get('TranscodeTaskId')
return self
class GetTranscodeTaskResponse(TeaModel):
def __init__(self, request_id=None, transcode_task=None):
self.request_id = request_id
self.transcode_task = transcode_task
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.transcode_task, 'transcode_task')
if self.transcode_task:
self.transcode_task.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.transcode_task is not None:
result['TranscodeTask'] = self.transcode_task.to_map()
else:
result['TranscodeTask'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('TranscodeTask') is not None:
temp_model = GetTranscodeTaskResponseTranscodeTask()
self.transcode_task = temp_model.from_map(map['TranscodeTask'])
else:
self.transcode_task = None
return self
class GetTranscodeTaskResponseTranscodeTaskTranscodeJobInfoListOutputFile(TeaModel):
def __init__(self, width=None, height=None, bitrate=None, fps=None, format=None, duration=None, filesize=None, encryption=None, audio_stream_list=None, video_stream_list=None, subtitle_stream_list=None, output_file_url=None, watermark_id_list=None):
self.width = width
self.height = height
self.bitrate = bitrate
self.fps = fps
self.format = format
self.duration = duration
self.filesize = filesize
self.encryption = encryption
self.audio_stream_list = audio_stream_list
self.video_stream_list = video_stream_list
self.subtitle_stream_list = subtitle_stream_list
self.output_file_url = output_file_url
self.watermark_id_list = []
def validate(self):
self.validate_required(self.width, 'width')
self.validate_required(self.height, 'height')
self.validate_required(self.bitrate, 'bitrate')
self.validate_required(self.fps, 'fps')
self.validate_required(self.format, 'format')
self.validate_required(self.duration, 'duration')
self.validate_required(self.filesize, 'filesize')
self.validate_required(self.encryption, 'encryption')
self.validate_required(self.audio_stream_list, 'audio_stream_list')
self.validate_required(self.video_stream_list, 'video_stream_list')
self.validate_required(self.subtitle_stream_list, 'subtitle_stream_list')
self.validate_required(self.output_file_url, 'output_file_url')
self.validate_required(self.watermark_id_list, 'watermark_id_list')
def to_map(self):
result = {}
result['Width'] = self.width
result['Height'] = self.height
result['Bitrate'] = self.bitrate
result['Fps'] = self.fps
result['Format'] = self.format
result['Duration'] = self.duration
result['Filesize'] = self.filesize
result['Encryption'] = self.encryption
result['AudioStreamList'] = self.audio_stream_list
result['VideoStreamList'] = self.video_stream_list
result['SubtitleStreamList'] = self.subtitle_stream_list
result['OutputFileUrl'] = self.output_file_url
result['WatermarkIdList'] = []
if self.watermark_id_list is not None:
for k in self.watermark_id_list:
result['WatermarkIdList'].append(k)
else:
result['WatermarkIdList'] = None
return result
def from_map(self, map={}):
self.width = map.get('Width')
self.height = map.get('Height')
self.bitrate = map.get('Bitrate')
self.fps = map.get('Fps')
self.format = map.get('Format')
self.duration = map.get('Duration')
self.filesize = map.get('Filesize')
self.encryption = map.get('Encryption')
self.audio_stream_list = map.get('AudioStreamList')
self.video_stream_list = map.get('VideoStreamList')
self.subtitle_stream_list = map.get('SubtitleStreamList')
self.output_file_url = map.get('OutputFileUrl')
self.watermark_id_list = []
if map.get('WatermarkIdList') is not None:
for k in map.get('WatermarkIdList'):
self.watermark_id_list.append(k)
else:
self.watermark_id_list = None
return self
class GetTranscodeTaskResponseTranscodeTaskTranscodeJobInfoList(TeaModel):
def __init__(self, transcode_job_id=None, transcode_template_id=None, transcode_job_status=None, creation_time=None, complete_time=None, transcode_progress=None, input_file_url=None, priority=None, error_code=None, error_message=None, definition=None, output_file=None):
self.transcode_job_id = transcode_job_id
self.transcode_template_id = transcode_template_id
self.transcode_job_status = transcode_job_status
self.creation_time = creation_time
self.complete_time = complete_time
self.transcode_progress = transcode_progress
self.input_file_url = input_file_url
self.priority = priority
self.error_code = error_code
self.error_message = error_message
self.definition = definition
self.output_file = output_file
def validate(self):
self.validate_required(self.transcode_job_id, 'transcode_job_id')
self.validate_required(self.transcode_template_id, 'transcode_template_id')
self.validate_required(self.transcode_job_status, 'transcode_job_status')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.complete_time, 'complete_time')
self.validate_required(self.transcode_progress, 'transcode_progress')
self.validate_required(self.input_file_url, 'input_file_url')
self.validate_required(self.priority, 'priority')
self.validate_required(self.error_code, 'error_code')
self.validate_required(self.error_message, 'error_message')
self.validate_required(self.definition, 'definition')
self.validate_required(self.output_file, 'output_file')
if self.output_file:
self.output_file.validate()
def to_map(self):
result = {}
result['TranscodeJobId'] = self.transcode_job_id
result['TranscodeTemplateId'] = self.transcode_template_id
result['TranscodeJobStatus'] = self.transcode_job_status
result['CreationTime'] = self.creation_time
result['CompleteTime'] = self.complete_time
result['TranscodeProgress'] = self.transcode_progress
result['InputFileUrl'] = self.input_file_url
result['Priority'] = self.priority
result['ErrorCode'] = self.error_code
result['ErrorMessage'] = self.error_message
result['Definition'] = self.definition
if self.output_file is not None:
result['OutputFile'] = self.output_file.to_map()
else:
result['OutputFile'] = None
return result
def from_map(self, map={}):
self.transcode_job_id = map.get('TranscodeJobId')
self.transcode_template_id = map.get('TranscodeTemplateId')
self.transcode_job_status = map.get('TranscodeJobStatus')
self.creation_time = map.get('CreationTime')
self.complete_time = map.get('CompleteTime')
self.transcode_progress = map.get('TranscodeProgress')
self.input_file_url = map.get('InputFileUrl')
self.priority = map.get('Priority')
self.error_code = map.get('ErrorCode')
self.error_message = map.get('ErrorMessage')
self.definition = map.get('Definition')
if map.get('OutputFile') is not None:
temp_model = GetTranscodeTaskResponseTranscodeTaskTranscodeJobInfoListOutputFile()
self.output_file = temp_model.from_map(map['OutputFile'])
else:
self.output_file = None
return self
class GetTranscodeTaskResponseTranscodeTask(TeaModel):
def __init__(self, transcode_task_id=None, video_id=None, task_status=None, creation_time=None, complete_time=None, trigger=None, transcode_template_group_id=None, transcode_job_info_list=None):
self.transcode_task_id = transcode_task_id
self.video_id = video_id
self.task_status = task_status
self.creation_time = creation_time
self.complete_time = complete_time
self.trigger = trigger
self.transcode_template_group_id = transcode_template_group_id
self.transcode_job_info_list = []
def validate(self):
self.validate_required(self.transcode_task_id, 'transcode_task_id')
self.validate_required(self.video_id, 'video_id')
self.validate_required(self.task_status, 'task_status')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.complete_time, 'complete_time')
self.validate_required(self.trigger, 'trigger')
self.validate_required(self.transcode_template_group_id, 'transcode_template_group_id')
self.validate_required(self.transcode_job_info_list, 'transcode_job_info_list')
if self.transcode_job_info_list:
for k in self.transcode_job_info_list:
if k :
k.validate()
def to_map(self):
result = {}
result['TranscodeTaskId'] = self.transcode_task_id
result['VideoId'] = self.video_id
result['TaskStatus'] = self.task_status
result['CreationTime'] = self.creation_time
result['CompleteTime'] = self.complete_time
result['Trigger'] = self.trigger
result['TranscodeTemplateGroupId'] = self.transcode_template_group_id
result['TranscodeJobInfoList'] = []
if self.transcode_job_info_list is not None:
for k in self.transcode_job_info_list:
result['TranscodeJobInfoList'].append(k.to_map() if k else None)
else:
result['TranscodeJobInfoList'] = None
return result
def from_map(self, map={}):
self.transcode_task_id = map.get('TranscodeTaskId')
self.video_id = map.get('VideoId')
self.task_status = map.get('TaskStatus')
self.creation_time = map.get('CreationTime')
self.complete_time = map.get('CompleteTime')
self.trigger = map.get('Trigger')
self.transcode_template_group_id = map.get('TranscodeTemplateGroupId')
self.transcode_job_info_list = []
if map.get('TranscodeJobInfoList') is not None:
for k in map.get('TranscodeJobInfoList'):
temp_model = GetTranscodeTaskResponseTranscodeTaskTranscodeJobInfoList()
temp_model = temp_model.from_map(k)
self.transcode_job_info_list.append(temp_model)
else:
self.transcode_job_info_list = None
return self
class GetURLUploadInfosRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, job_ids=None, upload_urls=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.job_ids = job_ids
self.upload_urls = upload_urls
def validate(self):
pass
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['JobIds'] = self.job_ids
result['UploadURLs'] = self.upload_urls
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.job_ids = map.get('JobIds')
self.upload_urls = map.get('UploadURLs')
return self
class GetURLUploadInfosResponse(TeaModel):
def __init__(self, request_id=None, urlupload_info_list=None, non_exists=None):
self.request_id = request_id
self.urlupload_info_list = []
self.non_exists = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.urlupload_info_list, 'urlupload_info_list')
if self.urlupload_info_list:
for k in self.urlupload_info_list:
if k :
k.validate()
self.validate_required(self.non_exists, 'non_exists')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['URLUploadInfoList'] = []
if self.urlupload_info_list is not None:
for k in self.urlupload_info_list:
result['URLUploadInfoList'].append(k.to_map() if k else None)
else:
result['URLUploadInfoList'] = None
result['NonExists'] = []
if self.non_exists is not None:
for k in self.non_exists:
result['NonExists'].append(k)
else:
result['NonExists'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.urlupload_info_list = []
if map.get('URLUploadInfoList') is not None:
for k in map.get('URLUploadInfoList'):
temp_model = GetURLUploadInfosResponseURLUploadInfoList()
temp_model = temp_model.from_map(k)
self.urlupload_info_list.append(temp_model)
else:
self.urlupload_info_list = None
self.non_exists = []
if map.get('NonExists') is not None:
for k in map.get('NonExists'):
self.non_exists.append(k)
else:
self.non_exists = None
return self
class GetURLUploadInfosResponseURLUploadInfoList(TeaModel):
def __init__(self, job_id=None, upload_url=None, media_id=None, file_size=None, status=None, user_data=None, error_code=None, error_message=None, creation_time=None, complete_time=None):
self.job_id = job_id
self.upload_url = upload_url
self.media_id = media_id
self.file_size = file_size
self.status = status
self.user_data = user_data
self.error_code = error_code
self.error_message = error_message
self.creation_time = creation_time
self.complete_time = complete_time
def validate(self):
self.validate_required(self.job_id, 'job_id')
self.validate_required(self.upload_url, 'upload_url')
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.file_size, 'file_size')
self.validate_required(self.status, 'status')
self.validate_required(self.user_data, 'user_data')
self.validate_required(self.error_code, 'error_code')
self.validate_required(self.error_message, 'error_message')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.complete_time, 'complete_time')
def to_map(self):
result = {}
result['JobId'] = self.job_id
result['UploadURL'] = self.upload_url
result['MediaId'] = self.media_id
result['FileSize'] = self.file_size
result['Status'] = self.status
result['UserData'] = self.user_data
result['ErrorCode'] = self.error_code
result['ErrorMessage'] = self.error_message
result['CreationTime'] = self.creation_time
result['CompleteTime'] = self.complete_time
return result
def from_map(self, map={}):
self.job_id = map.get('JobId')
self.upload_url = map.get('UploadURL')
self.media_id = map.get('MediaId')
self.file_size = map.get('FileSize')
self.status = map.get('Status')
self.user_data = map.get('UserData')
self.error_code = map.get('ErrorCode')
self.error_message = map.get('ErrorMessage')
self.creation_time = map.get('CreationTime')
self.complete_time = map.get('CompleteTime')
return self
class UpdateTranscodeTemplateGroupRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, name=None, transcode_template_list=None, locked=None, transcode_template_group_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.name = name
self.transcode_template_list = transcode_template_list
self.locked = locked
self.transcode_template_group_id = transcode_template_group_id
def validate(self):
self.validate_required(self.transcode_template_group_id, 'transcode_template_group_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['Name'] = self.name
result['TranscodeTemplateList'] = self.transcode_template_list
result['Locked'] = self.locked
result['TranscodeTemplateGroupId'] = self.transcode_template_group_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.name = map.get('Name')
self.transcode_template_list = map.get('TranscodeTemplateList')
self.locked = map.get('Locked')
self.transcode_template_group_id = map.get('TranscodeTemplateGroupId')
return self
class UpdateTranscodeTemplateGroupResponse(TeaModel):
def __init__(self, request_id=None, transcode_template_group_id=None):
self.request_id = request_id
self.transcode_template_group_id = transcode_template_group_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.transcode_template_group_id, 'transcode_template_group_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['TranscodeTemplateGroupId'] = self.transcode_template_group_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.transcode_template_group_id = map.get('TranscodeTemplateGroupId')
return self
class AddTranscodeTemplateGroupRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, name=None, transcode_template_list=None, transcode_template_group_id=None, app_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.name = name
self.transcode_template_list = transcode_template_list
self.transcode_template_group_id = transcode_template_group_id
self.app_id = app_id
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['Name'] = self.name
result['TranscodeTemplateList'] = self.transcode_template_list
result['TranscodeTemplateGroupId'] = self.transcode_template_group_id
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.name = map.get('Name')
self.transcode_template_list = map.get('TranscodeTemplateList')
self.transcode_template_group_id = map.get('TranscodeTemplateGroupId')
self.app_id = map.get('AppId')
return self
class AddTranscodeTemplateGroupResponse(TeaModel):
def __init__(self, request_id=None, transcode_template_group_id=None):
self.request_id = request_id
self.transcode_template_group_id = transcode_template_group_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.transcode_template_group_id, 'transcode_template_group_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['TranscodeTemplateGroupId'] = self.transcode_template_group_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.transcode_template_group_id = map.get('TranscodeTemplateGroupId')
return self
class DeleteTranscodeTemplateGroupRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, transcode_template_group_id=None, transcode_template_ids=None, force_del_group=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.transcode_template_group_id = transcode_template_group_id
self.transcode_template_ids = transcode_template_ids
self.force_del_group = force_del_group
def validate(self):
self.validate_required(self.transcode_template_group_id, 'transcode_template_group_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['TranscodeTemplateGroupId'] = self.transcode_template_group_id
result['TranscodeTemplateIds'] = self.transcode_template_ids
result['ForceDelGroup'] = self.force_del_group
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.transcode_template_group_id = map.get('TranscodeTemplateGroupId')
self.transcode_template_ids = map.get('TranscodeTemplateIds')
self.force_del_group = map.get('ForceDelGroup')
return self
class DeleteTranscodeTemplateGroupResponse(TeaModel):
def __init__(self, request_id=None, non_exist_transcode_template_ids=None):
self.request_id = request_id
self.non_exist_transcode_template_ids = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.non_exist_transcode_template_ids, 'non_exist_transcode_template_ids')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['NonExistTranscodeTemplateIds'] = []
if self.non_exist_transcode_template_ids is not None:
for k in self.non_exist_transcode_template_ids:
result['NonExistTranscodeTemplateIds'].append(k)
else:
result['NonExistTranscodeTemplateIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.non_exist_transcode_template_ids = []
if map.get('NonExistTranscodeTemplateIds') is not None:
for k in map.get('NonExistTranscodeTemplateIds'):
self.non_exist_transcode_template_ids.append(k)
else:
self.non_exist_transcode_template_ids = None
return self
class GetTranscodeTemplateGroupRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, transcode_template_group_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.transcode_template_group_id = transcode_template_group_id
def validate(self):
self.validate_required(self.transcode_template_group_id, 'transcode_template_group_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['TranscodeTemplateGroupId'] = self.transcode_template_group_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.transcode_template_group_id = map.get('TranscodeTemplateGroupId')
return self
class GetTranscodeTemplateGroupResponse(TeaModel):
def __init__(self, request_id=None, transcode_template_group=None):
self.request_id = request_id
self.transcode_template_group = transcode_template_group
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.transcode_template_group, 'transcode_template_group')
if self.transcode_template_group:
self.transcode_template_group.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.transcode_template_group is not None:
result['TranscodeTemplateGroup'] = self.transcode_template_group.to_map()
else:
result['TranscodeTemplateGroup'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('TranscodeTemplateGroup') is not None:
temp_model = GetTranscodeTemplateGroupResponseTranscodeTemplateGroup()
self.transcode_template_group = temp_model.from_map(map['TranscodeTemplateGroup'])
else:
self.transcode_template_group = None
return self
class GetTranscodeTemplateGroupResponseTranscodeTemplateGroupTranscodeTemplateList(TeaModel):
def __init__(self, transcode_template_id=None, video=None, audio=None, container=None, mux_config=None, trans_config=None, definition=None, encrypt_setting=None, package_setting=None, subtitle_list=None, opening_list=None, tail_slate_list=None, template_name=None, transcode_file_regular=None, clip=None, rotate=None, type=None, user_data=None, watermark_ids=None):
self.transcode_template_id = transcode_template_id
self.video = video
self.audio = audio
self.container = container
self.mux_config = mux_config
self.trans_config = trans_config
self.definition = definition
self.encrypt_setting = encrypt_setting
self.package_setting = package_setting
self.subtitle_list = subtitle_list
self.opening_list = opening_list
self.tail_slate_list = tail_slate_list
self.template_name = template_name
self.transcode_file_regular = transcode_file_regular
self.clip = clip
self.rotate = rotate
self.type = type
self.user_data = user_data
self.watermark_ids = []
def validate(self):
self.validate_required(self.transcode_template_id, 'transcode_template_id')
self.validate_required(self.video, 'video')
self.validate_required(self.audio, 'audio')
self.validate_required(self.container, 'container')
self.validate_required(self.mux_config, 'mux_config')
self.validate_required(self.trans_config, 'trans_config')
self.validate_required(self.definition, 'definition')
self.validate_required(self.encrypt_setting, 'encrypt_setting')
self.validate_required(self.package_setting, 'package_setting')
self.validate_required(self.subtitle_list, 'subtitle_list')
self.validate_required(self.opening_list, 'opening_list')
self.validate_required(self.tail_slate_list, 'tail_slate_list')
self.validate_required(self.template_name, 'template_name')
self.validate_required(self.transcode_file_regular, 'transcode_file_regular')
self.validate_required(self.clip, 'clip')
self.validate_required(self.rotate, 'rotate')
self.validate_required(self.type, 'type')
self.validate_required(self.user_data, 'user_data')
self.validate_required(self.watermark_ids, 'watermark_ids')
def to_map(self):
result = {}
result['TranscodeTemplateId'] = self.transcode_template_id
result['Video'] = self.video
result['Audio'] = self.audio
result['Container'] = self.container
result['MuxConfig'] = self.mux_config
result['TransConfig'] = self.trans_config
result['Definition'] = self.definition
result['EncryptSetting'] = self.encrypt_setting
result['PackageSetting'] = self.package_setting
result['SubtitleList'] = self.subtitle_list
result['OpeningList'] = self.opening_list
result['TailSlateList'] = self.tail_slate_list
result['TemplateName'] = self.template_name
result['TranscodeFileRegular'] = self.transcode_file_regular
result['Clip'] = self.clip
result['Rotate'] = self.rotate
result['Type'] = self.type
result['UserData'] = self.user_data
result['WatermarkIds'] = []
if self.watermark_ids is not None:
for k in self.watermark_ids:
result['WatermarkIds'].append(k)
else:
result['WatermarkIds'] = None
return result
def from_map(self, map={}):
self.transcode_template_id = map.get('TranscodeTemplateId')
self.video = map.get('Video')
self.audio = map.get('Audio')
self.container = map.get('Container')
self.mux_config = map.get('MuxConfig')
self.trans_config = map.get('TransConfig')
self.definition = map.get('Definition')
self.encrypt_setting = map.get('EncryptSetting')
self.package_setting = map.get('PackageSetting')
self.subtitle_list = map.get('SubtitleList')
self.opening_list = map.get('OpeningList')
self.tail_slate_list = map.get('TailSlateList')
self.template_name = map.get('TemplateName')
self.transcode_file_regular = map.get('TranscodeFileRegular')
self.clip = map.get('Clip')
self.rotate = map.get('Rotate')
self.type = map.get('Type')
self.user_data = map.get('UserData')
self.watermark_ids = []
if map.get('WatermarkIds') is not None:
for k in map.get('WatermarkIds'):
self.watermark_ids.append(k)
else:
self.watermark_ids = None
return self
class GetTranscodeTemplateGroupResponseTranscodeTemplateGroup(TeaModel):
def __init__(self, creation_time=None, modify_time=None, name=None, is_default=None, locked=None, transcode_mode=None, app_id=None, transcode_template_group_id=None, transcode_template_list=None):
self.creation_time = creation_time
self.modify_time = modify_time
self.name = name
self.is_default = is_default
self.locked = locked
self.transcode_mode = transcode_mode
self.app_id = app_id
self.transcode_template_group_id = transcode_template_group_id
self.transcode_template_list = []
def validate(self):
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modify_time, 'modify_time')
self.validate_required(self.name, 'name')
self.validate_required(self.is_default, 'is_default')
self.validate_required(self.locked, 'locked')
self.validate_required(self.transcode_mode, 'transcode_mode')
self.validate_required(self.app_id, 'app_id')
self.validate_required(self.transcode_template_group_id, 'transcode_template_group_id')
self.validate_required(self.transcode_template_list, 'transcode_template_list')
if self.transcode_template_list:
for k in self.transcode_template_list:
if k :
k.validate()
def to_map(self):
result = {}
result['CreationTime'] = self.creation_time
result['ModifyTime'] = self.modify_time
result['Name'] = self.name
result['IsDefault'] = self.is_default
result['Locked'] = self.locked
result['TranscodeMode'] = self.transcode_mode
result['AppId'] = self.app_id
result['TranscodeTemplateGroupId'] = self.transcode_template_group_id
result['TranscodeTemplateList'] = []
if self.transcode_template_list is not None:
for k in self.transcode_template_list:
result['TranscodeTemplateList'].append(k.to_map() if k else None)
else:
result['TranscodeTemplateList'] = None
return result
def from_map(self, map={}):
self.creation_time = map.get('CreationTime')
self.modify_time = map.get('ModifyTime')
self.name = map.get('Name')
self.is_default = map.get('IsDefault')
self.locked = map.get('Locked')
self.transcode_mode = map.get('TranscodeMode')
self.app_id = map.get('AppId')
self.transcode_template_group_id = map.get('TranscodeTemplateGroupId')
self.transcode_template_list = []
if map.get('TranscodeTemplateList') is not None:
for k in map.get('TranscodeTemplateList'):
temp_model = GetTranscodeTemplateGroupResponseTranscodeTemplateGroupTranscodeTemplateList()
temp_model = temp_model.from_map(k)
self.transcode_template_list.append(temp_model)
else:
self.transcode_template_list = None
return self
class SetDefaultTranscodeTemplateGroupRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, transcode_template_group_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.transcode_template_group_id = transcode_template_group_id
def validate(self):
self.validate_required(self.transcode_template_group_id, 'transcode_template_group_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['TranscodeTemplateGroupId'] = self.transcode_template_group_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.transcode_template_group_id = map.get('TranscodeTemplateGroupId')
return self
class SetDefaultTranscodeTemplateGroupResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class ListTranscodeTemplateGroupRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, page_size=None, page_no=None, app_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.page_size = page_size
self.page_no = page_no
self.app_id = app_id
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['PageSize'] = self.page_size
result['PageNo'] = self.page_no
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.page_size = map.get('PageSize')
self.page_no = map.get('PageNo')
self.app_id = map.get('AppId')
return self
class ListTranscodeTemplateGroupResponse(TeaModel):
def __init__(self, request_id=None, transcode_template_group_list=None):
self.request_id = request_id
self.transcode_template_group_list = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.transcode_template_group_list, 'transcode_template_group_list')
if self.transcode_template_group_list:
for k in self.transcode_template_group_list:
if k :
k.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['TranscodeTemplateGroupList'] = []
if self.transcode_template_group_list is not None:
for k in self.transcode_template_group_list:
result['TranscodeTemplateGroupList'].append(k.to_map() if k else None)
else:
result['TranscodeTemplateGroupList'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.transcode_template_group_list = []
if map.get('TranscodeTemplateGroupList') is not None:
for k in map.get('TranscodeTemplateGroupList'):
temp_model = ListTranscodeTemplateGroupResponseTranscodeTemplateGroupList()
temp_model = temp_model.from_map(k)
self.transcode_template_group_list.append(temp_model)
else:
self.transcode_template_group_list = None
return self
class ListTranscodeTemplateGroupResponseTranscodeTemplateGroupList(TeaModel):
def __init__(self, creation_time=None, modify_time=None, name=None, is_default=None, locked=None, transcode_template_group_id=None, transcode_mode=None, app_id=None):
self.creation_time = creation_time
self.modify_time = modify_time
self.name = name
self.is_default = is_default
self.locked = locked
self.transcode_template_group_id = transcode_template_group_id
self.transcode_mode = transcode_mode
self.app_id = app_id
def validate(self):
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modify_time, 'modify_time')
self.validate_required(self.name, 'name')
self.validate_required(self.is_default, 'is_default')
self.validate_required(self.locked, 'locked')
self.validate_required(self.transcode_template_group_id, 'transcode_template_group_id')
self.validate_required(self.transcode_mode, 'transcode_mode')
self.validate_required(self.app_id, 'app_id')
def to_map(self):
result = {}
result['CreationTime'] = self.creation_time
result['ModifyTime'] = self.modify_time
result['Name'] = self.name
result['IsDefault'] = self.is_default
result['Locked'] = self.locked
result['TranscodeTemplateGroupId'] = self.transcode_template_group_id
result['TranscodeMode'] = self.transcode_mode
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.creation_time = map.get('CreationTime')
self.modify_time = map.get('ModifyTime')
self.name = map.get('Name')
self.is_default = map.get('IsDefault')
self.locked = map.get('Locked')
self.transcode_template_group_id = map.get('TranscodeTemplateGroupId')
self.transcode_mode = map.get('TranscodeMode')
self.app_id = map.get('AppId')
return self
class GetAIMediaAuditJobRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, job_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.job_id = job_id
def validate(self):
self.validate_required(self.job_id, 'job_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['JobId'] = self.job_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.job_id = map.get('JobId')
return self
class GetAIMediaAuditJobResponse(TeaModel):
def __init__(self, request_id=None, media_audit_job=None):
self.request_id = request_id
self.media_audit_job = media_audit_job
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.media_audit_job, 'media_audit_job')
if self.media_audit_job:
self.media_audit_job.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.media_audit_job is not None:
result['MediaAuditJob'] = self.media_audit_job.to_map()
else:
result['MediaAuditJob'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('MediaAuditJob') is not None:
temp_model = GetAIMediaAuditJobResponseMediaAuditJob()
self.media_audit_job = temp_model.from_map(map['MediaAuditJob'])
else:
self.media_audit_job = None
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataImageResultResult(TeaModel):
def __init__(self, suggestion=None, label=None, score=None, scene=None):
self.suggestion = suggestion
self.label = label
self.score = score
self.scene = scene
def validate(self):
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.scene, 'scene')
def to_map(self):
result = {}
result['Suggestion'] = self.suggestion
result['Label'] = self.label
result['Score'] = self.score
result['Scene'] = self.scene
return result
def from_map(self, map={}):
self.suggestion = map.get('Suggestion')
self.label = map.get('Label')
self.score = map.get('Score')
self.scene = map.get('Scene')
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataImageResult(TeaModel):
def __init__(self, suggestion=None, label=None, type=None, url=None, result=None):
self.suggestion = suggestion
self.label = label
self.type = type
self.url = url
self.result = []
def validate(self):
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.label, 'label')
self.validate_required(self.type, 'type')
self.validate_required(self.url, 'url')
self.validate_required(self.result, 'result')
if self.result:
for k in self.result:
if k :
k.validate()
def to_map(self):
result = {}
result['Suggestion'] = self.suggestion
result['Label'] = self.label
result['Type'] = self.type
result['Url'] = self.url
result['Result'] = []
if self.result is not None:
for k in self.result:
result['Result'].append(k.to_map() if k else None)
else:
result['Result'] = None
return result
def from_map(self, map={}):
self.suggestion = map.get('Suggestion')
self.label = map.get('Label')
self.type = map.get('Type')
self.url = map.get('Url')
self.result = []
if map.get('Result') is not None:
for k in map.get('Result'):
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataImageResultResult()
temp_model = temp_model.from_map(k)
self.result.append(temp_model)
else:
self.result = None
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataTextResult(TeaModel):
def __init__(self, suggestion=None, label=None, score=None, scene=None, type=None, content=None):
self.suggestion = suggestion
self.label = label
self.score = score
self.scene = scene
self.type = type
self.content = content
def validate(self):
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.scene, 'scene')
self.validate_required(self.type, 'type')
self.validate_required(self.content, 'content')
def to_map(self):
result = {}
result['Suggestion'] = self.suggestion
result['Label'] = self.label
result['Score'] = self.score
result['Scene'] = self.scene
result['Type'] = self.type
result['Content'] = self.content
return result
def from_map(self, map={}):
self.suggestion = map.get('Suggestion')
self.label = map.get('Label')
self.score = map.get('Score')
self.scene = map.get('Scene')
self.type = map.get('Type')
self.content = map.get('Content')
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultTerrorismResultCounterList(TeaModel):
def __init__(self, label=None, count=None):
self.label = label
self.count = count
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.count, 'count')
def to_map(self):
result = {}
result['Label'] = self.label
result['Count'] = self.count
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.count = map.get('Count')
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultTerrorismResultTopList(TeaModel):
def __init__(self, label=None, score=None, timestamp=None, url=None):
self.label = label
self.score = score
self.timestamp = timestamp
self.url = url
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
self.validate_required(self.url, 'url')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
result['Url'] = self.url
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
self.url = map.get('Url')
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultTerrorismResult(TeaModel):
def __init__(self, suggestion=None, label=None, max_score=None, average_score=None, counter_list=None, top_list=None):
self.suggestion = suggestion
self.label = label
self.max_score = max_score
self.average_score = average_score
self.counter_list = []
self.top_list = []
def validate(self):
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.label, 'label')
self.validate_required(self.max_score, 'max_score')
self.validate_required(self.average_score, 'average_score')
self.validate_required(self.counter_list, 'counter_list')
if self.counter_list:
for k in self.counter_list:
if k :
k.validate()
self.validate_required(self.top_list, 'top_list')
if self.top_list:
for k in self.top_list:
if k :
k.validate()
def to_map(self):
result = {}
result['Suggestion'] = self.suggestion
result['Label'] = self.label
result['MaxScore'] = self.max_score
result['AverageScore'] = self.average_score
result['CounterList'] = []
if self.counter_list is not None:
for k in self.counter_list:
result['CounterList'].append(k.to_map() if k else None)
else:
result['CounterList'] = None
result['TopList'] = []
if self.top_list is not None:
for k in self.top_list:
result['TopList'].append(k.to_map() if k else None)
else:
result['TopList'] = None
return result
def from_map(self, map={}):
self.suggestion = map.get('Suggestion')
self.label = map.get('Label')
self.max_score = map.get('MaxScore')
self.average_score = map.get('AverageScore')
self.counter_list = []
if map.get('CounterList') is not None:
for k in map.get('CounterList'):
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultTerrorismResultCounterList()
temp_model = temp_model.from_map(k)
self.counter_list.append(temp_model)
else:
self.counter_list = None
self.top_list = []
if map.get('TopList') is not None:
for k in map.get('TopList'):
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultTerrorismResultTopList()
temp_model = temp_model.from_map(k)
self.top_list.append(temp_model)
else:
self.top_list = None
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultPornResultCounterList(TeaModel):
def __init__(self, label=None, count=None):
self.label = label
self.count = count
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.count, 'count')
def to_map(self):
result = {}
result['Label'] = self.label
result['Count'] = self.count
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.count = map.get('Count')
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultPornResultTopList(TeaModel):
def __init__(self, label=None, score=None, timestamp=None, url=None):
self.label = label
self.score = score
self.timestamp = timestamp
self.url = url
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
self.validate_required(self.url, 'url')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
result['Url'] = self.url
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
self.url = map.get('Url')
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultPornResult(TeaModel):
def __init__(self, suggestion=None, label=None, max_score=None, average_score=None, counter_list=None, top_list=None):
self.suggestion = suggestion
self.label = label
self.max_score = max_score
self.average_score = average_score
self.counter_list = []
self.top_list = []
def validate(self):
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.label, 'label')
self.validate_required(self.max_score, 'max_score')
self.validate_required(self.average_score, 'average_score')
self.validate_required(self.counter_list, 'counter_list')
if self.counter_list:
for k in self.counter_list:
if k :
k.validate()
self.validate_required(self.top_list, 'top_list')
if self.top_list:
for k in self.top_list:
if k :
k.validate()
def to_map(self):
result = {}
result['Suggestion'] = self.suggestion
result['Label'] = self.label
result['MaxScore'] = self.max_score
result['AverageScore'] = self.average_score
result['CounterList'] = []
if self.counter_list is not None:
for k in self.counter_list:
result['CounterList'].append(k.to_map() if k else None)
else:
result['CounterList'] = None
result['TopList'] = []
if self.top_list is not None:
for k in self.top_list:
result['TopList'].append(k.to_map() if k else None)
else:
result['TopList'] = None
return result
def from_map(self, map={}):
self.suggestion = map.get('Suggestion')
self.label = map.get('Label')
self.max_score = map.get('MaxScore')
self.average_score = map.get('AverageScore')
self.counter_list = []
if map.get('CounterList') is not None:
for k in map.get('CounterList'):
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultPornResultCounterList()
temp_model = temp_model.from_map(k)
self.counter_list.append(temp_model)
else:
self.counter_list = None
self.top_list = []
if map.get('TopList') is not None:
for k in map.get('TopList'):
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultPornResultTopList()
temp_model = temp_model.from_map(k)
self.top_list.append(temp_model)
else:
self.top_list = None
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultAdResultCounterList(TeaModel):
def __init__(self, label=None, count=None):
self.label = label
self.count = count
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.count, 'count')
def to_map(self):
result = {}
result['Label'] = self.label
result['Count'] = self.count
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.count = map.get('Count')
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultAdResultTopList(TeaModel):
def __init__(self, label=None, score=None, timestamp=None, url=None):
self.label = label
self.score = score
self.timestamp = timestamp
self.url = url
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
self.validate_required(self.url, 'url')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
result['Url'] = self.url
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
self.url = map.get('Url')
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultAdResult(TeaModel):
def __init__(self, suggestion=None, label=None, max_score=None, average_score=None, counter_list=None, top_list=None):
self.suggestion = suggestion
self.label = label
self.max_score = max_score
self.average_score = average_score
self.counter_list = []
self.top_list = []
def validate(self):
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.label, 'label')
self.validate_required(self.max_score, 'max_score')
self.validate_required(self.average_score, 'average_score')
self.validate_required(self.counter_list, 'counter_list')
if self.counter_list:
for k in self.counter_list:
if k :
k.validate()
self.validate_required(self.top_list, 'top_list')
if self.top_list:
for k in self.top_list:
if k :
k.validate()
def to_map(self):
result = {}
result['Suggestion'] = self.suggestion
result['Label'] = self.label
result['MaxScore'] = self.max_score
result['AverageScore'] = self.average_score
result['CounterList'] = []
if self.counter_list is not None:
for k in self.counter_list:
result['CounterList'].append(k.to_map() if k else None)
else:
result['CounterList'] = None
result['TopList'] = []
if self.top_list is not None:
for k in self.top_list:
result['TopList'].append(k.to_map() if k else None)
else:
result['TopList'] = None
return result
def from_map(self, map={}):
self.suggestion = map.get('Suggestion')
self.label = map.get('Label')
self.max_score = map.get('MaxScore')
self.average_score = map.get('AverageScore')
self.counter_list = []
if map.get('CounterList') is not None:
for k in map.get('CounterList'):
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultAdResultCounterList()
temp_model = temp_model.from_map(k)
self.counter_list.append(temp_model)
else:
self.counter_list = None
self.top_list = []
if map.get('TopList') is not None:
for k in map.get('TopList'):
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultAdResultTopList()
temp_model = temp_model.from_map(k)
self.top_list.append(temp_model)
else:
self.top_list = None
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultLiveResultCounterList(TeaModel):
def __init__(self, label=None, count=None):
self.label = label
self.count = count
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.count, 'count')
def to_map(self):
result = {}
result['Label'] = self.label
result['Count'] = self.count
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.count = map.get('Count')
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultLiveResultTopList(TeaModel):
def __init__(self, label=None, score=None, timestamp=None, url=None):
self.label = label
self.score = score
self.timestamp = timestamp
self.url = url
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
self.validate_required(self.url, 'url')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
result['Url'] = self.url
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
self.url = map.get('Url')
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultLiveResult(TeaModel):
def __init__(self, suggestion=None, label=None, max_score=None, average_score=None, counter_list=None, top_list=None):
self.suggestion = suggestion
self.label = label
self.max_score = max_score
self.average_score = average_score
self.counter_list = []
self.top_list = []
def validate(self):
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.label, 'label')
self.validate_required(self.max_score, 'max_score')
self.validate_required(self.average_score, 'average_score')
self.validate_required(self.counter_list, 'counter_list')
if self.counter_list:
for k in self.counter_list:
if k :
k.validate()
self.validate_required(self.top_list, 'top_list')
if self.top_list:
for k in self.top_list:
if k :
k.validate()
def to_map(self):
result = {}
result['Suggestion'] = self.suggestion
result['Label'] = self.label
result['MaxScore'] = self.max_score
result['AverageScore'] = self.average_score
result['CounterList'] = []
if self.counter_list is not None:
for k in self.counter_list:
result['CounterList'].append(k.to_map() if k else None)
else:
result['CounterList'] = None
result['TopList'] = []
if self.top_list is not None:
for k in self.top_list:
result['TopList'].append(k.to_map() if k else None)
else:
result['TopList'] = None
return result
def from_map(self, map={}):
self.suggestion = map.get('Suggestion')
self.label = map.get('Label')
self.max_score = map.get('MaxScore')
self.average_score = map.get('AverageScore')
self.counter_list = []
if map.get('CounterList') is not None:
for k in map.get('CounterList'):
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultLiveResultCounterList()
temp_model = temp_model.from_map(k)
self.counter_list.append(temp_model)
else:
self.counter_list = None
self.top_list = []
if map.get('TopList') is not None:
for k in map.get('TopList'):
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultLiveResultTopList()
temp_model = temp_model.from_map(k)
self.top_list.append(temp_model)
else:
self.top_list = None
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultLogoResultCounterList(TeaModel):
def __init__(self, label=None, count=None):
self.label = label
self.count = count
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.count, 'count')
def to_map(self):
result = {}
result['Label'] = self.label
result['Count'] = self.count
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.count = map.get('Count')
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultLogoResultTopList(TeaModel):
def __init__(self, label=None, score=None, timestamp=None, url=None):
self.label = label
self.score = score
self.timestamp = timestamp
self.url = url
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
self.validate_required(self.url, 'url')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
result['Url'] = self.url
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
self.url = map.get('Url')
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultLogoResult(TeaModel):
def __init__(self, suggestion=None, label=None, max_score=None, average_score=None, counter_list=None, top_list=None):
self.suggestion = suggestion
self.label = label
self.max_score = max_score
self.average_score = average_score
self.counter_list = []
self.top_list = []
def validate(self):
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.label, 'label')
self.validate_required(self.max_score, 'max_score')
self.validate_required(self.average_score, 'average_score')
self.validate_required(self.counter_list, 'counter_list')
if self.counter_list:
for k in self.counter_list:
if k :
k.validate()
self.validate_required(self.top_list, 'top_list')
if self.top_list:
for k in self.top_list:
if k :
k.validate()
def to_map(self):
result = {}
result['Suggestion'] = self.suggestion
result['Label'] = self.label
result['MaxScore'] = self.max_score
result['AverageScore'] = self.average_score
result['CounterList'] = []
if self.counter_list is not None:
for k in self.counter_list:
result['CounterList'].append(k.to_map() if k else None)
else:
result['CounterList'] = None
result['TopList'] = []
if self.top_list is not None:
for k in self.top_list:
result['TopList'].append(k.to_map() if k else None)
else:
result['TopList'] = None
return result
def from_map(self, map={}):
self.suggestion = map.get('Suggestion')
self.label = map.get('Label')
self.max_score = map.get('MaxScore')
self.average_score = map.get('AverageScore')
self.counter_list = []
if map.get('CounterList') is not None:
for k in map.get('CounterList'):
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultLogoResultCounterList()
temp_model = temp_model.from_map(k)
self.counter_list.append(temp_model)
else:
self.counter_list = None
self.top_list = []
if map.get('TopList') is not None:
for k in map.get('TopList'):
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultLogoResultTopList()
temp_model = temp_model.from_map(k)
self.top_list.append(temp_model)
else:
self.top_list = None
return self
class GetAIMediaAuditJobResponseMediaAuditJobDataVideoResult(TeaModel):
def __init__(self, suggestion=None, label=None, terrorism_result=None, porn_result=None, ad_result=None, live_result=None, logo_result=None):
self.suggestion = suggestion
self.label = label
self.terrorism_result = terrorism_result
self.porn_result = porn_result
self.ad_result = ad_result
self.live_result = live_result
self.logo_result = logo_result
def validate(self):
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.label, 'label')
self.validate_required(self.terrorism_result, 'terrorism_result')
if self.terrorism_result:
self.terrorism_result.validate()
self.validate_required(self.porn_result, 'porn_result')
if self.porn_result:
self.porn_result.validate()
self.validate_required(self.ad_result, 'ad_result')
if self.ad_result:
self.ad_result.validate()
self.validate_required(self.live_result, 'live_result')
if self.live_result:
self.live_result.validate()
self.validate_required(self.logo_result, 'logo_result')
if self.logo_result:
self.logo_result.validate()
def to_map(self):
result = {}
result['Suggestion'] = self.suggestion
result['Label'] = self.label
if self.terrorism_result is not None:
result['TerrorismResult'] = self.terrorism_result.to_map()
else:
result['TerrorismResult'] = None
if self.porn_result is not None:
result['PornResult'] = self.porn_result.to_map()
else:
result['PornResult'] = None
if self.ad_result is not None:
result['AdResult'] = self.ad_result.to_map()
else:
result['AdResult'] = None
if self.live_result is not None:
result['LiveResult'] = self.live_result.to_map()
else:
result['LiveResult'] = None
if self.logo_result is not None:
result['LogoResult'] = self.logo_result.to_map()
else:
result['LogoResult'] = None
return result
def from_map(self, map={}):
self.suggestion = map.get('Suggestion')
self.label = map.get('Label')
if map.get('TerrorismResult') is not None:
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultTerrorismResult()
self.terrorism_result = temp_model.from_map(map['TerrorismResult'])
else:
self.terrorism_result = None
if map.get('PornResult') is not None:
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultPornResult()
self.porn_result = temp_model.from_map(map['PornResult'])
else:
self.porn_result = None
if map.get('AdResult') is not None:
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultAdResult()
self.ad_result = temp_model.from_map(map['AdResult'])
else:
self.ad_result = None
if map.get('LiveResult') is not None:
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultLiveResult()
self.live_result = temp_model.from_map(map['LiveResult'])
else:
self.live_result = None
if map.get('LogoResult') is not None:
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResultLogoResult()
self.logo_result = temp_model.from_map(map['LogoResult'])
else:
self.logo_result = None
return self
class GetAIMediaAuditJobResponseMediaAuditJobData(TeaModel):
def __init__(self, suggestion=None, abnormal_modules=None, label=None, image_result=None, text_result=None, video_result=None):
self.suggestion = suggestion
self.abnormal_modules = abnormal_modules
self.label = label
self.image_result = []
self.text_result = []
self.video_result = video_result
def validate(self):
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.abnormal_modules, 'abnormal_modules')
self.validate_required(self.label, 'label')
self.validate_required(self.image_result, 'image_result')
if self.image_result:
for k in self.image_result:
if k :
k.validate()
self.validate_required(self.text_result, 'text_result')
if self.text_result:
for k in self.text_result:
if k :
k.validate()
self.validate_required(self.video_result, 'video_result')
if self.video_result:
self.video_result.validate()
def to_map(self):
result = {}
result['Suggestion'] = self.suggestion
result['AbnormalModules'] = self.abnormal_modules
result['Label'] = self.label
result['ImageResult'] = []
if self.image_result is not None:
for k in self.image_result:
result['ImageResult'].append(k.to_map() if k else None)
else:
result['ImageResult'] = None
result['TextResult'] = []
if self.text_result is not None:
for k in self.text_result:
result['TextResult'].append(k.to_map() if k else None)
else:
result['TextResult'] = None
if self.video_result is not None:
result['VideoResult'] = self.video_result.to_map()
else:
result['VideoResult'] = None
return result
def from_map(self, map={}):
self.suggestion = map.get('Suggestion')
self.abnormal_modules = map.get('AbnormalModules')
self.label = map.get('Label')
self.image_result = []
if map.get('ImageResult') is not None:
for k in map.get('ImageResult'):
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataImageResult()
temp_model = temp_model.from_map(k)
self.image_result.append(temp_model)
else:
self.image_result = None
self.text_result = []
if map.get('TextResult') is not None:
for k in map.get('TextResult'):
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataTextResult()
temp_model = temp_model.from_map(k)
self.text_result.append(temp_model)
else:
self.text_result = None
if map.get('VideoResult') is not None:
temp_model = GetAIMediaAuditJobResponseMediaAuditJobDataVideoResult()
self.video_result = temp_model.from_map(map['VideoResult'])
else:
self.video_result = None
return self
class GetAIMediaAuditJobResponseMediaAuditJob(TeaModel):
def __init__(self, job_id=None, media_id=None, type=None, status=None, code=None, message=None, creation_time=None, complete_time=None, data=None):
self.job_id = job_id
self.media_id = media_id
self.type = type
self.status = status
self.code = code
self.message = message
self.creation_time = creation_time
self.complete_time = complete_time
self.data = data
def validate(self):
self.validate_required(self.job_id, 'job_id')
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.type, 'type')
self.validate_required(self.status, 'status')
self.validate_required(self.code, 'code')
self.validate_required(self.message, 'message')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.complete_time, 'complete_time')
self.validate_required(self.data, 'data')
if self.data:
self.data.validate()
def to_map(self):
result = {}
result['JobId'] = self.job_id
result['MediaId'] = self.media_id
result['Type'] = self.type
result['Status'] = self.status
result['Code'] = self.code
result['Message'] = self.message
result['CreationTime'] = self.creation_time
result['CompleteTime'] = self.complete_time
if self.data is not None:
result['Data'] = self.data.to_map()
else:
result['Data'] = None
return result
def from_map(self, map={}):
self.job_id = map.get('JobId')
self.media_id = map.get('MediaId')
self.type = map.get('Type')
self.status = map.get('Status')
self.code = map.get('Code')
self.message = map.get('Message')
self.creation_time = map.get('CreationTime')
self.complete_time = map.get('CompleteTime')
if map.get('Data') is not None:
temp_model = GetAIMediaAuditJobResponseMediaAuditJobData()
self.data = temp_model.from_map(map['Data'])
else:
self.data = None
return self
class SubmitAIMediaAuditJobRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, media_id=None, template_id=None, user_data=None, media_type=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.media_id = media_id
self.template_id = template_id
self.user_data = user_data
self.media_type = media_type
def validate(self):
self.validate_required(self.media_id, 'media_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['MediaId'] = self.media_id
result['TemplateId'] = self.template_id
result['UserData'] = self.user_data
result['MediaType'] = self.media_type
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.media_id = map.get('MediaId')
self.template_id = map.get('TemplateId')
self.user_data = map.get('UserData')
self.media_type = map.get('MediaType')
return self
class SubmitAIMediaAuditJobResponse(TeaModel):
def __init__(self, request_id=None, media_id=None, job_id=None):
self.request_id = request_id
self.media_id = media_id
self.job_id = job_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.job_id, 'job_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['MediaId'] = self.media_id
result['JobId'] = self.job_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.media_id = map.get('MediaId')
self.job_id = map.get('JobId')
return self
class GetMediaAuditResultRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, media_id=None, resource_real_owner_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.media_id = media_id
self.resource_real_owner_id = resource_real_owner_id
def validate(self):
self.validate_required(self.media_id, 'media_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['MediaId'] = self.media_id
result['ResourceRealOwnerId'] = self.resource_real_owner_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.media_id = map.get('MediaId')
self.resource_real_owner_id = map.get('ResourceRealOwnerId')
return self
class GetMediaAuditResultResponse(TeaModel):
def __init__(self, request_id=None, media_audit_result=None):
self.request_id = request_id
self.media_audit_result = media_audit_result
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.media_audit_result, 'media_audit_result')
if self.media_audit_result:
self.media_audit_result.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.media_audit_result is not None:
result['MediaAuditResult'] = self.media_audit_result.to_map()
else:
result['MediaAuditResult'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('MediaAuditResult') is not None:
temp_model = GetMediaAuditResultResponseMediaAuditResult()
self.media_audit_result = temp_model.from_map(map['MediaAuditResult'])
else:
self.media_audit_result = None
return self
class GetMediaAuditResultResponseMediaAuditResultAudioResult(TeaModel):
def __init__(self, label=None, scene=None, score=None, suggestion=None):
self.label = label
self.scene = scene
self.score = score
self.suggestion = suggestion
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.scene, 'scene')
self.validate_required(self.score, 'score')
self.validate_required(self.suggestion, 'suggestion')
def to_map(self):
result = {}
result['Label'] = self.label
result['Scene'] = self.scene
result['Score'] = self.score
result['Suggestion'] = self.suggestion
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.scene = map.get('Scene')
self.score = map.get('Score')
self.suggestion = map.get('Suggestion')
return self
class GetMediaAuditResultResponseMediaAuditResultImageResultResult(TeaModel):
def __init__(self, label=None, scene=None, score=None, suggestion=None):
self.label = label
self.scene = scene
self.score = score
self.suggestion = suggestion
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.scene, 'scene')
self.validate_required(self.score, 'score')
self.validate_required(self.suggestion, 'suggestion')
def to_map(self):
result = {}
result['Label'] = self.label
result['Scene'] = self.scene
result['Score'] = self.score
result['Suggestion'] = self.suggestion
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.scene = map.get('Scene')
self.score = map.get('Score')
self.suggestion = map.get('Suggestion')
return self
class GetMediaAuditResultResponseMediaAuditResultImageResult(TeaModel):
def __init__(self, label=None, suggestion=None, type=None, url=None, result=None):
self.label = label
self.suggestion = suggestion
self.type = type
self.url = url
self.result = []
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.type, 'type')
self.validate_required(self.url, 'url')
self.validate_required(self.result, 'result')
if self.result:
for k in self.result:
if k :
k.validate()
def to_map(self):
result = {}
result['Label'] = self.label
result['Suggestion'] = self.suggestion
result['Type'] = self.type
result['Url'] = self.url
result['Result'] = []
if self.result is not None:
for k in self.result:
result['Result'].append(k.to_map() if k else None)
else:
result['Result'] = None
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.suggestion = map.get('Suggestion')
self.type = map.get('Type')
self.url = map.get('Url')
self.result = []
if map.get('Result') is not None:
for k in map.get('Result'):
temp_model = GetMediaAuditResultResponseMediaAuditResultImageResultResult()
temp_model = temp_model.from_map(k)
self.result.append(temp_model)
else:
self.result = None
return self
class GetMediaAuditResultResponseMediaAuditResultTextResult(TeaModel):
def __init__(self, content=None, label=None, scene=None, score=None, suggestion=None, type=None):
self.content = content
self.label = label
self.scene = scene
self.score = score
self.suggestion = suggestion
self.type = type
def validate(self):
self.validate_required(self.content, 'content')
self.validate_required(self.label, 'label')
self.validate_required(self.scene, 'scene')
self.validate_required(self.score, 'score')
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.type, 'type')
def to_map(self):
result = {}
result['Content'] = self.content
result['Label'] = self.label
result['Scene'] = self.scene
result['Score'] = self.score
result['Suggestion'] = self.suggestion
result['Type'] = self.type
return result
def from_map(self, map={}):
self.content = map.get('Content')
self.label = map.get('Label')
self.scene = map.get('Scene')
self.score = map.get('Score')
self.suggestion = map.get('Suggestion')
self.type = map.get('Type')
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultPornResultCounterList(TeaModel):
def __init__(self, count=None, label=None):
self.count = count
self.label = label
def validate(self):
self.validate_required(self.count, 'count')
self.validate_required(self.label, 'label')
def to_map(self):
result = {}
result['Count'] = self.count
result['Label'] = self.label
return result
def from_map(self, map={}):
self.count = map.get('Count')
self.label = map.get('Label')
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultPornResultTopList(TeaModel):
def __init__(self, label=None, score=None, timestamp=None, url=None):
self.label = label
self.score = score
self.timestamp = timestamp
self.url = url
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
self.validate_required(self.url, 'url')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
result['Url'] = self.url
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
self.url = map.get('Url')
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultPornResult(TeaModel):
def __init__(self, average_score=None, label=None, max_score=None, suggestion=None, counter_list=None, top_list=None):
self.average_score = average_score
self.label = label
self.max_score = max_score
self.suggestion = suggestion
self.counter_list = []
self.top_list = []
def validate(self):
self.validate_required(self.average_score, 'average_score')
self.validate_required(self.label, 'label')
self.validate_required(self.max_score, 'max_score')
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.counter_list, 'counter_list')
if self.counter_list:
for k in self.counter_list:
if k :
k.validate()
self.validate_required(self.top_list, 'top_list')
if self.top_list:
for k in self.top_list:
if k :
k.validate()
def to_map(self):
result = {}
result['AverageScore'] = self.average_score
result['Label'] = self.label
result['MaxScore'] = self.max_score
result['Suggestion'] = self.suggestion
result['CounterList'] = []
if self.counter_list is not None:
for k in self.counter_list:
result['CounterList'].append(k.to_map() if k else None)
else:
result['CounterList'] = None
result['TopList'] = []
if self.top_list is not None:
for k in self.top_list:
result['TopList'].append(k.to_map() if k else None)
else:
result['TopList'] = None
return result
def from_map(self, map={}):
self.average_score = map.get('AverageScore')
self.label = map.get('Label')
self.max_score = map.get('MaxScore')
self.suggestion = map.get('Suggestion')
self.counter_list = []
if map.get('CounterList') is not None:
for k in map.get('CounterList'):
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultPornResultCounterList()
temp_model = temp_model.from_map(k)
self.counter_list.append(temp_model)
else:
self.counter_list = None
self.top_list = []
if map.get('TopList') is not None:
for k in map.get('TopList'):
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultPornResultTopList()
temp_model = temp_model.from_map(k)
self.top_list.append(temp_model)
else:
self.top_list = None
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultAdResultCounterList(TeaModel):
def __init__(self, count=None, label=None):
self.count = count
self.label = label
def validate(self):
self.validate_required(self.count, 'count')
self.validate_required(self.label, 'label')
def to_map(self):
result = {}
result['Count'] = self.count
result['Label'] = self.label
return result
def from_map(self, map={}):
self.count = map.get('Count')
self.label = map.get('Label')
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultAdResultTopList(TeaModel):
def __init__(self, label=None, score=None, timestamp=None, url=None):
self.label = label
self.score = score
self.timestamp = timestamp
self.url = url
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
self.validate_required(self.url, 'url')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
result['Url'] = self.url
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
self.url = map.get('Url')
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultAdResult(TeaModel):
def __init__(self, average_score=None, label=None, max_score=None, suggestion=None, counter_list=None, top_list=None):
self.average_score = average_score
self.label = label
self.max_score = max_score
self.suggestion = suggestion
self.counter_list = []
self.top_list = []
def validate(self):
self.validate_required(self.average_score, 'average_score')
self.validate_required(self.label, 'label')
self.validate_required(self.max_score, 'max_score')
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.counter_list, 'counter_list')
if self.counter_list:
for k in self.counter_list:
if k :
k.validate()
self.validate_required(self.top_list, 'top_list')
if self.top_list:
for k in self.top_list:
if k :
k.validate()
def to_map(self):
result = {}
result['AverageScore'] = self.average_score
result['Label'] = self.label
result['MaxScore'] = self.max_score
result['Suggestion'] = self.suggestion
result['CounterList'] = []
if self.counter_list is not None:
for k in self.counter_list:
result['CounterList'].append(k.to_map() if k else None)
else:
result['CounterList'] = None
result['TopList'] = []
if self.top_list is not None:
for k in self.top_list:
result['TopList'].append(k.to_map() if k else None)
else:
result['TopList'] = None
return result
def from_map(self, map={}):
self.average_score = map.get('AverageScore')
self.label = map.get('Label')
self.max_score = map.get('MaxScore')
self.suggestion = map.get('Suggestion')
self.counter_list = []
if map.get('CounterList') is not None:
for k in map.get('CounterList'):
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultAdResultCounterList()
temp_model = temp_model.from_map(k)
self.counter_list.append(temp_model)
else:
self.counter_list = None
self.top_list = []
if map.get('TopList') is not None:
for k in map.get('TopList'):
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultAdResultTopList()
temp_model = temp_model.from_map(k)
self.top_list.append(temp_model)
else:
self.top_list = None
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultLogoResultCounterList(TeaModel):
def __init__(self, count=None, label=None):
self.count = count
self.label = label
def validate(self):
self.validate_required(self.count, 'count')
self.validate_required(self.label, 'label')
def to_map(self):
result = {}
result['Count'] = self.count
result['Label'] = self.label
return result
def from_map(self, map={}):
self.count = map.get('Count')
self.label = map.get('Label')
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultLogoResultTopList(TeaModel):
def __init__(self, label=None, score=None, timestamp=None, url=None):
self.label = label
self.score = score
self.timestamp = timestamp
self.url = url
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
self.validate_required(self.url, 'url')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
result['Url'] = self.url
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
self.url = map.get('Url')
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultLogoResult(TeaModel):
def __init__(self, average_score=None, label=None, max_score=None, suggestion=None, counter_list=None, top_list=None):
self.average_score = average_score
self.label = label
self.max_score = max_score
self.suggestion = suggestion
self.counter_list = []
self.top_list = []
def validate(self):
self.validate_required(self.average_score, 'average_score')
self.validate_required(self.label, 'label')
self.validate_required(self.max_score, 'max_score')
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.counter_list, 'counter_list')
if self.counter_list:
for k in self.counter_list:
if k :
k.validate()
self.validate_required(self.top_list, 'top_list')
if self.top_list:
for k in self.top_list:
if k :
k.validate()
def to_map(self):
result = {}
result['AverageScore'] = self.average_score
result['Label'] = self.label
result['MaxScore'] = self.max_score
result['Suggestion'] = self.suggestion
result['CounterList'] = []
if self.counter_list is not None:
for k in self.counter_list:
result['CounterList'].append(k.to_map() if k else None)
else:
result['CounterList'] = None
result['TopList'] = []
if self.top_list is not None:
for k in self.top_list:
result['TopList'].append(k.to_map() if k else None)
else:
result['TopList'] = None
return result
def from_map(self, map={}):
self.average_score = map.get('AverageScore')
self.label = map.get('Label')
self.max_score = map.get('MaxScore')
self.suggestion = map.get('Suggestion')
self.counter_list = []
if map.get('CounterList') is not None:
for k in map.get('CounterList'):
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultLogoResultCounterList()
temp_model = temp_model.from_map(k)
self.counter_list.append(temp_model)
else:
self.counter_list = None
self.top_list = []
if map.get('TopList') is not None:
for k in map.get('TopList'):
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultLogoResultTopList()
temp_model = temp_model.from_map(k)
self.top_list.append(temp_model)
else:
self.top_list = None
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultLiveResultCounterList(TeaModel):
def __init__(self, count=None, label=None):
self.count = count
self.label = label
def validate(self):
self.validate_required(self.count, 'count')
self.validate_required(self.label, 'label')
def to_map(self):
result = {}
result['Count'] = self.count
result['Label'] = self.label
return result
def from_map(self, map={}):
self.count = map.get('Count')
self.label = map.get('Label')
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultLiveResultTopList(TeaModel):
def __init__(self, label=None, score=None, timestamp=None, url=None):
self.label = label
self.score = score
self.timestamp = timestamp
self.url = url
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
self.validate_required(self.url, 'url')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
result['Url'] = self.url
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
self.url = map.get('Url')
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultLiveResult(TeaModel):
def __init__(self, average_score=None, label=None, max_score=None, suggestion=None, counter_list=None, top_list=None):
self.average_score = average_score
self.label = label
self.max_score = max_score
self.suggestion = suggestion
self.counter_list = []
self.top_list = []
def validate(self):
self.validate_required(self.average_score, 'average_score')
self.validate_required(self.label, 'label')
self.validate_required(self.max_score, 'max_score')
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.counter_list, 'counter_list')
if self.counter_list:
for k in self.counter_list:
if k :
k.validate()
self.validate_required(self.top_list, 'top_list')
if self.top_list:
for k in self.top_list:
if k :
k.validate()
def to_map(self):
result = {}
result['AverageScore'] = self.average_score
result['Label'] = self.label
result['MaxScore'] = self.max_score
result['Suggestion'] = self.suggestion
result['CounterList'] = []
if self.counter_list is not None:
for k in self.counter_list:
result['CounterList'].append(k.to_map() if k else None)
else:
result['CounterList'] = None
result['TopList'] = []
if self.top_list is not None:
for k in self.top_list:
result['TopList'].append(k.to_map() if k else None)
else:
result['TopList'] = None
return result
def from_map(self, map={}):
self.average_score = map.get('AverageScore')
self.label = map.get('Label')
self.max_score = map.get('MaxScore')
self.suggestion = map.get('Suggestion')
self.counter_list = []
if map.get('CounterList') is not None:
for k in map.get('CounterList'):
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultLiveResultCounterList()
temp_model = temp_model.from_map(k)
self.counter_list.append(temp_model)
else:
self.counter_list = None
self.top_list = []
if map.get('TopList') is not None:
for k in map.get('TopList'):
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultLiveResultTopList()
temp_model = temp_model.from_map(k)
self.top_list.append(temp_model)
else:
self.top_list = None
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultTerrorismResultCounterList(TeaModel):
def __init__(self, count=None, label=None):
self.count = count
self.label = label
def validate(self):
self.validate_required(self.count, 'count')
self.validate_required(self.label, 'label')
def to_map(self):
result = {}
result['Count'] = self.count
result['Label'] = self.label
return result
def from_map(self, map={}):
self.count = map.get('Count')
self.label = map.get('Label')
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultTerrorismResultTopList(TeaModel):
def __init__(self, label=None, score=None, timestamp=None, url=None):
self.label = label
self.score = score
self.timestamp = timestamp
self.url = url
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
self.validate_required(self.url, 'url')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
result['Url'] = self.url
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
self.url = map.get('Url')
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResultTerrorismResult(TeaModel):
def __init__(self, average_score=None, label=None, max_score=None, suggestion=None, counter_list=None, top_list=None):
self.average_score = average_score
self.label = label
self.max_score = max_score
self.suggestion = suggestion
self.counter_list = []
self.top_list = []
def validate(self):
self.validate_required(self.average_score, 'average_score')
self.validate_required(self.label, 'label')
self.validate_required(self.max_score, 'max_score')
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.counter_list, 'counter_list')
if self.counter_list:
for k in self.counter_list:
if k :
k.validate()
self.validate_required(self.top_list, 'top_list')
if self.top_list:
for k in self.top_list:
if k :
k.validate()
def to_map(self):
result = {}
result['AverageScore'] = self.average_score
result['Label'] = self.label
result['MaxScore'] = self.max_score
result['Suggestion'] = self.suggestion
result['CounterList'] = []
if self.counter_list is not None:
for k in self.counter_list:
result['CounterList'].append(k.to_map() if k else None)
else:
result['CounterList'] = None
result['TopList'] = []
if self.top_list is not None:
for k in self.top_list:
result['TopList'].append(k.to_map() if k else None)
else:
result['TopList'] = None
return result
def from_map(self, map={}):
self.average_score = map.get('AverageScore')
self.label = map.get('Label')
self.max_score = map.get('MaxScore')
self.suggestion = map.get('Suggestion')
self.counter_list = []
if map.get('CounterList') is not None:
for k in map.get('CounterList'):
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultTerrorismResultCounterList()
temp_model = temp_model.from_map(k)
self.counter_list.append(temp_model)
else:
self.counter_list = None
self.top_list = []
if map.get('TopList') is not None:
for k in map.get('TopList'):
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultTerrorismResultTopList()
temp_model = temp_model.from_map(k)
self.top_list.append(temp_model)
else:
self.top_list = None
return self
class GetMediaAuditResultResponseMediaAuditResultVideoResult(TeaModel):
def __init__(self, label=None, suggestion=None, porn_result=None, ad_result=None, logo_result=None, live_result=None, terrorism_result=None):
self.label = label
self.suggestion = suggestion
self.porn_result = porn_result
self.ad_result = ad_result
self.logo_result = logo_result
self.live_result = live_result
self.terrorism_result = terrorism_result
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.porn_result, 'porn_result')
if self.porn_result:
self.porn_result.validate()
self.validate_required(self.ad_result, 'ad_result')
if self.ad_result:
self.ad_result.validate()
self.validate_required(self.logo_result, 'logo_result')
if self.logo_result:
self.logo_result.validate()
self.validate_required(self.live_result, 'live_result')
if self.live_result:
self.live_result.validate()
self.validate_required(self.terrorism_result, 'terrorism_result')
if self.terrorism_result:
self.terrorism_result.validate()
def to_map(self):
result = {}
result['Label'] = self.label
result['Suggestion'] = self.suggestion
if self.porn_result is not None:
result['PornResult'] = self.porn_result.to_map()
else:
result['PornResult'] = None
if self.ad_result is not None:
result['AdResult'] = self.ad_result.to_map()
else:
result['AdResult'] = None
if self.logo_result is not None:
result['LogoResult'] = self.logo_result.to_map()
else:
result['LogoResult'] = None
if self.live_result is not None:
result['LiveResult'] = self.live_result.to_map()
else:
result['LiveResult'] = None
if self.terrorism_result is not None:
result['TerrorismResult'] = self.terrorism_result.to_map()
else:
result['TerrorismResult'] = None
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.suggestion = map.get('Suggestion')
if map.get('PornResult') is not None:
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultPornResult()
self.porn_result = temp_model.from_map(map['PornResult'])
else:
self.porn_result = None
if map.get('AdResult') is not None:
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultAdResult()
self.ad_result = temp_model.from_map(map['AdResult'])
else:
self.ad_result = None
if map.get('LogoResult') is not None:
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultLogoResult()
self.logo_result = temp_model.from_map(map['LogoResult'])
else:
self.logo_result = None
if map.get('LiveResult') is not None:
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultLiveResult()
self.live_result = temp_model.from_map(map['LiveResult'])
else:
self.live_result = None
if map.get('TerrorismResult') is not None:
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResultTerrorismResult()
self.terrorism_result = temp_model.from_map(map['TerrorismResult'])
else:
self.terrorism_result = None
return self
class GetMediaAuditResultResponseMediaAuditResult(TeaModel):
def __init__(self, abnormal_modules=None, label=None, suggestion=None, audio_result=None, image_result=None, text_result=None, video_result=None):
self.abnormal_modules = abnormal_modules
self.label = label
self.suggestion = suggestion
self.audio_result = []
self.image_result = []
self.text_result = []
self.video_result = video_result
def validate(self):
self.validate_required(self.abnormal_modules, 'abnormal_modules')
self.validate_required(self.label, 'label')
self.validate_required(self.suggestion, 'suggestion')
self.validate_required(self.audio_result, 'audio_result')
if self.audio_result:
for k in self.audio_result:
if k :
k.validate()
self.validate_required(self.image_result, 'image_result')
if self.image_result:
for k in self.image_result:
if k :
k.validate()
self.validate_required(self.text_result, 'text_result')
if self.text_result:
for k in self.text_result:
if k :
k.validate()
self.validate_required(self.video_result, 'video_result')
if self.video_result:
self.video_result.validate()
def to_map(self):
result = {}
result['AbnormalModules'] = self.abnormal_modules
result['Label'] = self.label
result['Suggestion'] = self.suggestion
result['AudioResult'] = []
if self.audio_result is not None:
for k in self.audio_result:
result['AudioResult'].append(k.to_map() if k else None)
else:
result['AudioResult'] = None
result['ImageResult'] = []
if self.image_result is not None:
for k in self.image_result:
result['ImageResult'].append(k.to_map() if k else None)
else:
result['ImageResult'] = None
result['TextResult'] = []
if self.text_result is not None:
for k in self.text_result:
result['TextResult'].append(k.to_map() if k else None)
else:
result['TextResult'] = None
if self.video_result is not None:
result['VideoResult'] = self.video_result.to_map()
else:
result['VideoResult'] = None
return result
def from_map(self, map={}):
self.abnormal_modules = map.get('AbnormalModules')
self.label = map.get('Label')
self.suggestion = map.get('Suggestion')
self.audio_result = []
if map.get('AudioResult') is not None:
for k in map.get('AudioResult'):
temp_model = GetMediaAuditResultResponseMediaAuditResultAudioResult()
temp_model = temp_model.from_map(k)
self.audio_result.append(temp_model)
else:
self.audio_result = None
self.image_result = []
if map.get('ImageResult') is not None:
for k in map.get('ImageResult'):
temp_model = GetMediaAuditResultResponseMediaAuditResultImageResult()
temp_model = temp_model.from_map(k)
self.image_result.append(temp_model)
else:
self.image_result = None
self.text_result = []
if map.get('TextResult') is not None:
for k in map.get('TextResult'):
temp_model = GetMediaAuditResultResponseMediaAuditResultTextResult()
temp_model = temp_model.from_map(k)
self.text_result.append(temp_model)
else:
self.text_result = None
if map.get('VideoResult') is not None:
temp_model = GetMediaAuditResultResponseMediaAuditResultVideoResult()
self.video_result = temp_model.from_map(map['VideoResult'])
else:
self.video_result = None
return self
class GetMediaAuditResultDetailRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, media_id=None, page_no=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.media_id = media_id
self.page_no = page_no
def validate(self):
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.page_no, 'page_no')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['MediaId'] = self.media_id
result['PageNo'] = self.page_no
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.media_id = map.get('MediaId')
self.page_no = map.get('PageNo')
return self
class GetMediaAuditResultDetailResponse(TeaModel):
def __init__(self, request_id=None, media_audit_result_detail=None):
self.request_id = request_id
self.media_audit_result_detail = media_audit_result_detail
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.media_audit_result_detail, 'media_audit_result_detail')
if self.media_audit_result_detail:
self.media_audit_result_detail.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.media_audit_result_detail is not None:
result['MediaAuditResultDetail'] = self.media_audit_result_detail.to_map()
else:
result['MediaAuditResultDetail'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('MediaAuditResultDetail') is not None:
temp_model = GetMediaAuditResultDetailResponseMediaAuditResultDetail()
self.media_audit_result_detail = temp_model.from_map(map['MediaAuditResultDetail'])
else:
self.media_audit_result_detail = None
return self
class GetMediaAuditResultDetailResponseMediaAuditResultDetailList(TeaModel):
def __init__(self, porn_label=None, porn_score=None, terrorism_label=None, terrorism_score=None, timestamp=None, url=None, ad_label=None, ad_score=None, live_label=None, live_score=None, logo_label=None, logo_score=None):
self.porn_label = porn_label
self.porn_score = porn_score
self.terrorism_label = terrorism_label
self.terrorism_score = terrorism_score
self.timestamp = timestamp
self.url = url
self.ad_label = ad_label
self.ad_score = ad_score
self.live_label = live_label
self.live_score = live_score
self.logo_label = logo_label
self.logo_score = logo_score
def validate(self):
self.validate_required(self.porn_label, 'porn_label')
self.validate_required(self.porn_score, 'porn_score')
self.validate_required(self.terrorism_label, 'terrorism_label')
self.validate_required(self.terrorism_score, 'terrorism_score')
self.validate_required(self.timestamp, 'timestamp')
self.validate_required(self.url, 'url')
self.validate_required(self.ad_label, 'ad_label')
self.validate_required(self.ad_score, 'ad_score')
self.validate_required(self.live_label, 'live_label')
self.validate_required(self.live_score, 'live_score')
self.validate_required(self.logo_label, 'logo_label')
self.validate_required(self.logo_score, 'logo_score')
def to_map(self):
result = {}
result['PornLabel'] = self.porn_label
result['PornScore'] = self.porn_score
result['TerrorismLabel'] = self.terrorism_label
result['TerrorismScore'] = self.terrorism_score
result['Timestamp'] = self.timestamp
result['Url'] = self.url
result['AdLabel'] = self.ad_label
result['AdScore'] = self.ad_score
result['LiveLabel'] = self.live_label
result['LiveScore'] = self.live_score
result['LogoLabel'] = self.logo_label
result['LogoScore'] = self.logo_score
return result
def from_map(self, map={}):
self.porn_label = map.get('PornLabel')
self.porn_score = map.get('PornScore')
self.terrorism_label = map.get('TerrorismLabel')
self.terrorism_score = map.get('TerrorismScore')
self.timestamp = map.get('Timestamp')
self.url = map.get('Url')
self.ad_label = map.get('AdLabel')
self.ad_score = map.get('AdScore')
self.live_label = map.get('LiveLabel')
self.live_score = map.get('LiveScore')
self.logo_label = map.get('LogoLabel')
self.logo_score = map.get('LogoScore')
return self
class GetMediaAuditResultDetailResponseMediaAuditResultDetail(TeaModel):
def __init__(self, total=None, list_=None):
self.total = total
self.list_ = []
def validate(self):
self.validate_required(self.total, 'total')
self.validate_required(self.list_, 'list_')
if self.list_:
for k in self.list_:
if k :
k.validate()
def to_map(self):
result = {}
result['Total'] = self.total
result['List'] = []
if self.list_ is not None:
for k in self.list_:
result['List'].append(k.to_map() if k else None)
else:
result['List'] = None
return result
def from_map(self, map={}):
self.total = map.get('Total')
self.list_ = []
if map.get('List') is not None:
for k in map.get('List'):
temp_model = GetMediaAuditResultDetailResponseMediaAuditResultDetailList()
temp_model = temp_model.from_map(k)
self.list_.append(temp_model)
else:
self.list_ = None
return self
class GetMediaAuditResultTimelineRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, media_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.media_id = media_id
def validate(self):
self.validate_required(self.media_id, 'media_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['MediaId'] = self.media_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.media_id = map.get('MediaId')
return self
class GetMediaAuditResultTimelineResponse(TeaModel):
def __init__(self, request_id=None, media_audit_result_timeline=None):
self.request_id = request_id
self.media_audit_result_timeline = media_audit_result_timeline
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.media_audit_result_timeline, 'media_audit_result_timeline')
if self.media_audit_result_timeline:
self.media_audit_result_timeline.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.media_audit_result_timeline is not None:
result['MediaAuditResultTimeline'] = self.media_audit_result_timeline.to_map()
else:
result['MediaAuditResultTimeline'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('MediaAuditResultTimeline') is not None:
temp_model = GetMediaAuditResultTimelineResponseMediaAuditResultTimeline()
self.media_audit_result_timeline = temp_model.from_map(map['MediaAuditResultTimeline'])
else:
self.media_audit_result_timeline = None
return self
class GetMediaAuditResultTimelineResponseMediaAuditResultTimelinePorn(TeaModel):
def __init__(self, label=None, score=None, timestamp=None):
self.label = label
self.score = score
self.timestamp = timestamp
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
return self
class GetMediaAuditResultTimelineResponseMediaAuditResultTimelineTerrorism(TeaModel):
def __init__(self, label=None, score=None, timestamp=None):
self.label = label
self.score = score
self.timestamp = timestamp
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
return self
class GetMediaAuditResultTimelineResponseMediaAuditResultTimelineLogo(TeaModel):
def __init__(self, label=None, score=None, timestamp=None):
self.label = label
self.score = score
self.timestamp = timestamp
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
return self
class GetMediaAuditResultTimelineResponseMediaAuditResultTimelineLive(TeaModel):
def __init__(self, label=None, score=None, timestamp=None):
self.label = label
self.score = score
self.timestamp = timestamp
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
return self
class GetMediaAuditResultTimelineResponseMediaAuditResultTimelineAd(TeaModel):
def __init__(self, label=None, score=None, timestamp=None):
self.label = label
self.score = score
self.timestamp = timestamp
def validate(self):
self.validate_required(self.label, 'label')
self.validate_required(self.score, 'score')
self.validate_required(self.timestamp, 'timestamp')
def to_map(self):
result = {}
result['Label'] = self.label
result['Score'] = self.score
result['Timestamp'] = self.timestamp
return result
def from_map(self, map={}):
self.label = map.get('Label')
self.score = map.get('Score')
self.timestamp = map.get('Timestamp')
return self
class GetMediaAuditResultTimelineResponseMediaAuditResultTimeline(TeaModel):
def __init__(self, porn=None, terrorism=None, logo=None, live=None, ad=None):
self.porn = []
self.terrorism = []
self.logo = []
self.live = []
self.ad = []
def validate(self):
self.validate_required(self.porn, 'porn')
if self.porn:
for k in self.porn:
if k :
k.validate()
self.validate_required(self.terrorism, 'terrorism')
if self.terrorism:
for k in self.terrorism:
if k :
k.validate()
self.validate_required(self.logo, 'logo')
if self.logo:
for k in self.logo:
if k :
k.validate()
self.validate_required(self.live, 'live')
if self.live:
for k in self.live:
if k :
k.validate()
self.validate_required(self.ad, 'ad')
if self.ad:
for k in self.ad:
if k :
k.validate()
def to_map(self):
result = {}
result['Porn'] = []
if self.porn is not None:
for k in self.porn:
result['Porn'].append(k.to_map() if k else None)
else:
result['Porn'] = None
result['Terrorism'] = []
if self.terrorism is not None:
for k in self.terrorism:
result['Terrorism'].append(k.to_map() if k else None)
else:
result['Terrorism'] = None
result['Logo'] = []
if self.logo is not None:
for k in self.logo:
result['Logo'].append(k.to_map() if k else None)
else:
result['Logo'] = None
result['Live'] = []
if self.live is not None:
for k in self.live:
result['Live'].append(k.to_map() if k else None)
else:
result['Live'] = None
result['Ad'] = []
if self.ad is not None:
for k in self.ad:
result['Ad'].append(k.to_map() if k else None)
else:
result['Ad'] = None
return result
def from_map(self, map={}):
self.porn = []
if map.get('Porn') is not None:
for k in map.get('Porn'):
temp_model = GetMediaAuditResultTimelineResponseMediaAuditResultTimelinePorn()
temp_model = temp_model.from_map(k)
self.porn.append(temp_model)
else:
self.porn = None
self.terrorism = []
if map.get('Terrorism') is not None:
for k in map.get('Terrorism'):
temp_model = GetMediaAuditResultTimelineResponseMediaAuditResultTimelineTerrorism()
temp_model = temp_model.from_map(k)
self.terrorism.append(temp_model)
else:
self.terrorism = None
self.logo = []
if map.get('Logo') is not None:
for k in map.get('Logo'):
temp_model = GetMediaAuditResultTimelineResponseMediaAuditResultTimelineLogo()
temp_model = temp_model.from_map(k)
self.logo.append(temp_model)
else:
self.logo = None
self.live = []
if map.get('Live') is not None:
for k in map.get('Live'):
temp_model = GetMediaAuditResultTimelineResponseMediaAuditResultTimelineLive()
temp_model = temp_model.from_map(k)
self.live.append(temp_model)
else:
self.live = None
self.ad = []
if map.get('Ad') is not None:
for k in map.get('Ad'):
temp_model = GetMediaAuditResultTimelineResponseMediaAuditResultTimelineAd()
temp_model = temp_model.from_map(k)
self.ad.append(temp_model)
else:
self.ad = None
return self
class AddAITemplateRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, template_name=None, template_type=None, template_config=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.template_name = template_name
self.template_type = template_type
self.template_config = template_config
def validate(self):
self.validate_required(self.template_name, 'template_name')
self.validate_required(self.template_type, 'template_type')
self.validate_required(self.template_config, 'template_config')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['TemplateName'] = self.template_name
result['TemplateType'] = self.template_type
result['TemplateConfig'] = self.template_config
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.template_name = map.get('TemplateName')
self.template_type = map.get('TemplateType')
self.template_config = map.get('TemplateConfig')
return self
class AddAITemplateResponse(TeaModel):
def __init__(self, request_id=None, template_id=None):
self.request_id = request_id
self.template_id = template_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.template_id, 'template_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['TemplateId'] = self.template_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.template_id = map.get('TemplateId')
return self
class DeleteAITemplateRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, template_id=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.template_id = template_id
def validate(self):
self.validate_required(self.template_id, 'template_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['TemplateId'] = self.template_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.template_id = map.get('TemplateId')
return self
class DeleteAITemplateResponse(TeaModel):
def __init__(self, request_id=None, template_id=None):
self.request_id = request_id
self.template_id = template_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.template_id, 'template_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['TemplateId'] = self.template_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.template_id = map.get('TemplateId')
return self
class UpdateAITemplateRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, template_id=None, template_name=None, template_config=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.template_id = template_id
self.template_name = template_name
self.template_config = template_config
def validate(self):
self.validate_required(self.template_id, 'template_id')
self.validate_required(self.template_name, 'template_name')
self.validate_required(self.template_config, 'template_config')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['TemplateId'] = self.template_id
result['TemplateName'] = self.template_name
result['TemplateConfig'] = self.template_config
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.template_id = map.get('TemplateId')
self.template_name = map.get('TemplateName')
self.template_config = map.get('TemplateConfig')
return self
class UpdateAITemplateResponse(TeaModel):
def __init__(self, request_id=None, template_id=None):
self.request_id = request_id
self.template_id = template_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.template_id, 'template_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['TemplateId'] = self.template_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.template_id = map.get('TemplateId')
return self
class GetAITemplateRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, template_id=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.template_id = template_id
def validate(self):
self.validate_required(self.template_id, 'template_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['TemplateId'] = self.template_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.template_id = map.get('TemplateId')
return self
class GetAITemplateResponse(TeaModel):
def __init__(self, request_id=None, template_info=None):
self.request_id = request_id
self.template_info = template_info
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.template_info, 'template_info')
if self.template_info:
self.template_info.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.template_info is not None:
result['TemplateInfo'] = self.template_info.to_map()
else:
result['TemplateInfo'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('TemplateInfo') is not None:
temp_model = GetAITemplateResponseTemplateInfo()
self.template_info = temp_model.from_map(map['TemplateInfo'])
else:
self.template_info = None
return self
class GetAITemplateResponseTemplateInfo(TeaModel):
def __init__(self, template_id=None, template_type=None, template_name=None, template_config=None, source=None, is_default=None, creation_time=None, modify_time=None):
self.template_id = template_id
self.template_type = template_type
self.template_name = template_name
self.template_config = template_config
self.source = source
self.is_default = is_default
self.creation_time = creation_time
self.modify_time = modify_time
def validate(self):
self.validate_required(self.template_id, 'template_id')
self.validate_required(self.template_type, 'template_type')
self.validate_required(self.template_name, 'template_name')
self.validate_required(self.template_config, 'template_config')
self.validate_required(self.source, 'source')
self.validate_required(self.is_default, 'is_default')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modify_time, 'modify_time')
def to_map(self):
result = {}
result['TemplateId'] = self.template_id
result['TemplateType'] = self.template_type
result['TemplateName'] = self.template_name
result['TemplateConfig'] = self.template_config
result['Source'] = self.source
result['IsDefault'] = self.is_default
result['CreationTime'] = self.creation_time
result['ModifyTime'] = self.modify_time
return result
def from_map(self, map={}):
self.template_id = map.get('TemplateId')
self.template_type = map.get('TemplateType')
self.template_name = map.get('TemplateName')
self.template_config = map.get('TemplateConfig')
self.source = map.get('Source')
self.is_default = map.get('IsDefault')
self.creation_time = map.get('CreationTime')
self.modify_time = map.get('ModifyTime')
return self
class ListAITemplateRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, template_type=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.template_type = template_type
def validate(self):
self.validate_required(self.template_type, 'template_type')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['TemplateType'] = self.template_type
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.template_type = map.get('TemplateType')
return self
class ListAITemplateResponse(TeaModel):
def __init__(self, request_id=None, template_info_list=None):
self.request_id = request_id
self.template_info_list = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.template_info_list, 'template_info_list')
if self.template_info_list:
for k in self.template_info_list:
if k :
k.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['TemplateInfoList'] = []
if self.template_info_list is not None:
for k in self.template_info_list:
result['TemplateInfoList'].append(k.to_map() if k else None)
else:
result['TemplateInfoList'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.template_info_list = []
if map.get('TemplateInfoList') is not None:
for k in map.get('TemplateInfoList'):
temp_model = ListAITemplateResponseTemplateInfoList()
temp_model = temp_model.from_map(k)
self.template_info_list.append(temp_model)
else:
self.template_info_list = None
return self
class ListAITemplateResponseTemplateInfoList(TeaModel):
def __init__(self, template_id=None, template_type=None, template_name=None, template_config=None, source=None, is_default=None, creation_time=None, modify_time=None):
self.template_id = template_id
self.template_type = template_type
self.template_name = template_name
self.template_config = template_config
self.source = source
self.is_default = is_default
self.creation_time = creation_time
self.modify_time = modify_time
def validate(self):
self.validate_required(self.template_id, 'template_id')
self.validate_required(self.template_type, 'template_type')
self.validate_required(self.template_name, 'template_name')
self.validate_required(self.template_config, 'template_config')
self.validate_required(self.source, 'source')
self.validate_required(self.is_default, 'is_default')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modify_time, 'modify_time')
def to_map(self):
result = {}
result['TemplateId'] = self.template_id
result['TemplateType'] = self.template_type
result['TemplateName'] = self.template_name
result['TemplateConfig'] = self.template_config
result['Source'] = self.source
result['IsDefault'] = self.is_default
result['CreationTime'] = self.creation_time
result['ModifyTime'] = self.modify_time
return result
def from_map(self, map={}):
self.template_id = map.get('TemplateId')
self.template_type = map.get('TemplateType')
self.template_name = map.get('TemplateName')
self.template_config = map.get('TemplateConfig')
self.source = map.get('Source')
self.is_default = map.get('IsDefault')
self.creation_time = map.get('CreationTime')
self.modify_time = map.get('ModifyTime')
return self
class GetDefaultAITemplateRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, template_type=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.template_type = template_type
def validate(self):
self.validate_required(self.template_type, 'template_type')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['TemplateType'] = self.template_type
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.template_type = map.get('TemplateType')
return self
class GetDefaultAITemplateResponse(TeaModel):
def __init__(self, request_id=None, template_info=None):
self.request_id = request_id
self.template_info = template_info
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.template_info, 'template_info')
if self.template_info:
self.template_info.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.template_info is not None:
result['TemplateInfo'] = self.template_info.to_map()
else:
result['TemplateInfo'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('TemplateInfo') is not None:
temp_model = GetDefaultAITemplateResponseTemplateInfo()
self.template_info = temp_model.from_map(map['TemplateInfo'])
else:
self.template_info = None
return self
class GetDefaultAITemplateResponseTemplateInfo(TeaModel):
def __init__(self, template_id=None, template_type=None, template_name=None, template_config=None, source=None, is_default=None, creation_time=None, modify_time=None):
self.template_id = template_id
self.template_type = template_type
self.template_name = template_name
self.template_config = template_config
self.source = source
self.is_default = is_default
self.creation_time = creation_time
self.modify_time = modify_time
def validate(self):
self.validate_required(self.template_id, 'template_id')
self.validate_required(self.template_type, 'template_type')
self.validate_required(self.template_name, 'template_name')
self.validate_required(self.template_config, 'template_config')
self.validate_required(self.source, 'source')
self.validate_required(self.is_default, 'is_default')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modify_time, 'modify_time')
def to_map(self):
result = {}
result['TemplateId'] = self.template_id
result['TemplateType'] = self.template_type
result['TemplateName'] = self.template_name
result['TemplateConfig'] = self.template_config
result['Source'] = self.source
result['IsDefault'] = self.is_default
result['CreationTime'] = self.creation_time
result['ModifyTime'] = self.modify_time
return result
def from_map(self, map={}):
self.template_id = map.get('TemplateId')
self.template_type = map.get('TemplateType')
self.template_name = map.get('TemplateName')
self.template_config = map.get('TemplateConfig')
self.source = map.get('Source')
self.is_default = map.get('IsDefault')
self.creation_time = map.get('CreationTime')
self.modify_time = map.get('ModifyTime')
return self
class SetDefaultAITemplateRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, template_id=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.template_id = template_id
def validate(self):
self.validate_required(self.template_id, 'template_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['TemplateId'] = self.template_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.template_id = map.get('TemplateId')
return self
class SetDefaultAITemplateResponse(TeaModel):
def __init__(self, request_id=None, template_id=None):
self.request_id = request_id
self.template_id = template_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.template_id, 'template_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['TemplateId'] = self.template_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.template_id = map.get('TemplateId')
return self
class DescribeVodDomainLogRequest(TeaModel):
def __init__(self, owner_id=None, domain_name=None, page_size=None, page_number=None, start_time=None, end_time=None):
self.owner_id = owner_id
self.domain_name = domain_name
self.page_size = page_size
self.page_number = page_number
self.start_time = start_time
self.end_time = end_time
def validate(self):
self.validate_required(self.domain_name, 'domain_name')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['DomainName'] = self.domain_name
result['PageSize'] = self.page_size
result['PageNumber'] = self.page_number
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.domain_name = map.get('DomainName')
self.page_size = map.get('PageSize')
self.page_number = map.get('PageNumber')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
return self
class DescribeVodDomainLogResponse(TeaModel):
def __init__(self, request_id=None, domain_log_details=None):
self.request_id = request_id
self.domain_log_details = domain_log_details
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.domain_log_details, 'domain_log_details')
if self.domain_log_details:
self.domain_log_details.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.domain_log_details is not None:
result['DomainLogDetails'] = self.domain_log_details.to_map()
else:
result['DomainLogDetails'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('DomainLogDetails') is not None:
temp_model = DescribeVodDomainLogResponseDomainLogDetails()
self.domain_log_details = temp_model.from_map(map['DomainLogDetails'])
else:
self.domain_log_details = None
return self
class DescribeVodDomainLogResponseDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail(TeaModel):
def __init__(self, log_name=None, log_path=None, log_size=None, start_time=None, end_time=None):
self.log_name = log_name
self.log_path = log_path
self.log_size = log_size
self.start_time = start_time
self.end_time = end_time
def validate(self):
self.validate_required(self.log_name, 'log_name')
self.validate_required(self.log_path, 'log_path')
self.validate_required(self.log_size, 'log_size')
self.validate_required(self.start_time, 'start_time')
self.validate_required(self.end_time, 'end_time')
def to_map(self):
result = {}
result['LogName'] = self.log_name
result['LogPath'] = self.log_path
result['LogSize'] = self.log_size
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
return result
def from_map(self, map={}):
self.log_name = map.get('LogName')
self.log_path = map.get('LogPath')
self.log_size = map.get('LogSize')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
return self
class DescribeVodDomainLogResponseDomainLogDetailsDomainLogDetailLogInfos(TeaModel):
def __init__(self, log_info_detail=None):
self.log_info_detail = []
def validate(self):
self.validate_required(self.log_info_detail, 'log_info_detail')
if self.log_info_detail:
for k in self.log_info_detail:
if k :
k.validate()
def to_map(self):
result = {}
result['LogInfoDetail'] = []
if self.log_info_detail is not None:
for k in self.log_info_detail:
result['LogInfoDetail'].append(k.to_map() if k else None)
else:
result['LogInfoDetail'] = None
return result
def from_map(self, map={}):
self.log_info_detail = []
if map.get('LogInfoDetail') is not None:
for k in map.get('LogInfoDetail'):
temp_model = DescribeVodDomainLogResponseDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail()
temp_model = temp_model.from_map(k)
self.log_info_detail.append(temp_model)
else:
self.log_info_detail = None
return self
class DescribeVodDomainLogResponseDomainLogDetailsDomainLogDetailPageInfos(TeaModel):
def __init__(self, page_number=None, page_size=None, total=None):
self.page_number = page_number
self.page_size = page_size
self.total = total
def validate(self):
self.validate_required(self.page_number, 'page_number')
self.validate_required(self.page_size, 'page_size')
self.validate_required(self.total, 'total')
def to_map(self):
result = {}
result['PageNumber'] = self.page_number
result['PageSize'] = self.page_size
result['Total'] = self.total
return result
def from_map(self, map={}):
self.page_number = map.get('PageNumber')
self.page_size = map.get('PageSize')
self.total = map.get('Total')
return self
class DescribeVodDomainLogResponseDomainLogDetailsDomainLogDetail(TeaModel):
def __init__(self, domain_name=None, log_count=None, log_infos=None, page_infos=None):
self.domain_name = domain_name
self.log_count = log_count
self.log_infos = log_infos
self.page_infos = page_infos
def validate(self):
self.validate_required(self.domain_name, 'domain_name')
self.validate_required(self.log_count, 'log_count')
self.validate_required(self.log_infos, 'log_infos')
if self.log_infos:
self.log_infos.validate()
self.validate_required(self.page_infos, 'page_infos')
if self.page_infos:
self.page_infos.validate()
def to_map(self):
result = {}
result['DomainName'] = self.domain_name
result['LogCount'] = self.log_count
if self.log_infos is not None:
result['LogInfos'] = self.log_infos.to_map()
else:
result['LogInfos'] = None
if self.page_infos is not None:
result['PageInfos'] = self.page_infos.to_map()
else:
result['PageInfos'] = None
return result
def from_map(self, map={}):
self.domain_name = map.get('DomainName')
self.log_count = map.get('LogCount')
if map.get('LogInfos') is not None:
temp_model = DescribeVodDomainLogResponseDomainLogDetailsDomainLogDetailLogInfos()
self.log_infos = temp_model.from_map(map['LogInfos'])
else:
self.log_infos = None
if map.get('PageInfos') is not None:
temp_model = DescribeVodDomainLogResponseDomainLogDetailsDomainLogDetailPageInfos()
self.page_infos = temp_model.from_map(map['PageInfos'])
else:
self.page_infos = None
return self
class DescribeVodDomainLogResponseDomainLogDetails(TeaModel):
def __init__(self, domain_log_detail=None):
self.domain_log_detail = []
def validate(self):
self.validate_required(self.domain_log_detail, 'domain_log_detail')
if self.domain_log_detail:
for k in self.domain_log_detail:
if k :
k.validate()
def to_map(self):
result = {}
result['DomainLogDetail'] = []
if self.domain_log_detail is not None:
for k in self.domain_log_detail:
result['DomainLogDetail'].append(k.to_map() if k else None)
else:
result['DomainLogDetail'] = None
return result
def from_map(self, map={}):
self.domain_log_detail = []
if map.get('DomainLogDetail') is not None:
for k in map.get('DomainLogDetail'):
temp_model = DescribeVodDomainLogResponseDomainLogDetailsDomainLogDetail()
temp_model = temp_model.from_map(k)
self.domain_log_detail.append(temp_model)
else:
self.domain_log_detail = None
return self
class DescribeVodDomainCertificateInfoRequest(TeaModel):
def __init__(self, owner_id=None, domain_name=None):
self.owner_id = owner_id
self.domain_name = domain_name
def validate(self):
self.validate_required(self.domain_name, 'domain_name')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['DomainName'] = self.domain_name
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.domain_name = map.get('DomainName')
return self
class DescribeVodDomainCertificateInfoResponse(TeaModel):
def __init__(self, request_id=None, cert_infos=None):
self.request_id = request_id
self.cert_infos = cert_infos
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.cert_infos, 'cert_infos')
if self.cert_infos:
self.cert_infos.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.cert_infos is not None:
result['CertInfos'] = self.cert_infos.to_map()
else:
result['CertInfos'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('CertInfos') is not None:
temp_model = DescribeVodDomainCertificateInfoResponseCertInfos()
self.cert_infos = temp_model.from_map(map['CertInfos'])
else:
self.cert_infos = None
return self
class DescribeVodDomainCertificateInfoResponseCertInfosCertInfo(TeaModel):
def __init__(self, domain_name=None, cert_name=None, cert_domain_name=None, cert_expire_time=None, cert_life=None, cert_org=None, cert_type=None, server_certificate_status=None, status=None):
self.domain_name = domain_name
self.cert_name = cert_name
self.cert_domain_name = cert_domain_name
self.cert_expire_time = cert_expire_time
self.cert_life = cert_life
self.cert_org = cert_org
self.cert_type = cert_type
self.server_certificate_status = server_certificate_status
self.status = status
def validate(self):
self.validate_required(self.domain_name, 'domain_name')
self.validate_required(self.cert_name, 'cert_name')
self.validate_required(self.cert_domain_name, 'cert_domain_name')
self.validate_required(self.cert_expire_time, 'cert_expire_time')
self.validate_required(self.cert_life, 'cert_life')
self.validate_required(self.cert_org, 'cert_org')
self.validate_required(self.cert_type, 'cert_type')
self.validate_required(self.server_certificate_status, 'server_certificate_status')
self.validate_required(self.status, 'status')
def to_map(self):
result = {}
result['DomainName'] = self.domain_name
result['CertName'] = self.cert_name
result['CertDomainName'] = self.cert_domain_name
result['CertExpireTime'] = self.cert_expire_time
result['CertLife'] = self.cert_life
result['CertOrg'] = self.cert_org
result['CertType'] = self.cert_type
result['ServerCertificateStatus'] = self.server_certificate_status
result['Status'] = self.status
return result
def from_map(self, map={}):
self.domain_name = map.get('DomainName')
self.cert_name = map.get('CertName')
self.cert_domain_name = map.get('CertDomainName')
self.cert_expire_time = map.get('CertExpireTime')
self.cert_life = map.get('CertLife')
self.cert_org = map.get('CertOrg')
self.cert_type = map.get('CertType')
self.server_certificate_status = map.get('ServerCertificateStatus')
self.status = map.get('Status')
return self
class DescribeVodDomainCertificateInfoResponseCertInfos(TeaModel):
def __init__(self, cert_info=None):
self.cert_info = []
def validate(self):
self.validate_required(self.cert_info, 'cert_info')
if self.cert_info:
for k in self.cert_info:
if k :
k.validate()
def to_map(self):
result = {}
result['CertInfo'] = []
if self.cert_info is not None:
for k in self.cert_info:
result['CertInfo'].append(k.to_map() if k else None)
else:
result['CertInfo'] = None
return result
def from_map(self, map={}):
self.cert_info = []
if map.get('CertInfo') is not None:
for k in map.get('CertInfo'):
temp_model = DescribeVodDomainCertificateInfoResponseCertInfosCertInfo()
temp_model = temp_model.from_map(k)
self.cert_info.append(temp_model)
else:
self.cert_info = None
return self
class DescribeVodDomainTrafficDataRequest(TeaModel):
def __init__(self, owner_id=None, domain_name=None, start_time=None, end_time=None, interval=None, isp_name_en=None, location_name_en=None):
self.owner_id = owner_id
self.domain_name = domain_name
self.start_time = start_time
self.end_time = end_time
self.interval = interval
self.isp_name_en = isp_name_en
self.location_name_en = location_name_en
def validate(self):
pass
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['DomainName'] = self.domain_name
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
result['Interval'] = self.interval
result['IspNameEn'] = self.isp_name_en
result['LocationNameEn'] = self.location_name_en
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.domain_name = map.get('DomainName')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
self.interval = map.get('Interval')
self.isp_name_en = map.get('IspNameEn')
self.location_name_en = map.get('LocationNameEn')
return self
class DescribeVodDomainTrafficDataResponse(TeaModel):
def __init__(self, request_id=None, domain_name=None, start_time=None, end_time=None, data_interval=None, traffic_data_per_interval=None):
self.request_id = request_id
self.domain_name = domain_name
self.start_time = start_time
self.end_time = end_time
self.data_interval = data_interval
self.traffic_data_per_interval = traffic_data_per_interval
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.domain_name, 'domain_name')
self.validate_required(self.start_time, 'start_time')
self.validate_required(self.end_time, 'end_time')
self.validate_required(self.data_interval, 'data_interval')
self.validate_required(self.traffic_data_per_interval, 'traffic_data_per_interval')
if self.traffic_data_per_interval:
self.traffic_data_per_interval.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['DomainName'] = self.domain_name
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
result['DataInterval'] = self.data_interval
if self.traffic_data_per_interval is not None:
result['TrafficDataPerInterval'] = self.traffic_data_per_interval.to_map()
else:
result['TrafficDataPerInterval'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.domain_name = map.get('DomainName')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
self.data_interval = map.get('DataInterval')
if map.get('TrafficDataPerInterval') is not None:
temp_model = DescribeVodDomainTrafficDataResponseTrafficDataPerInterval()
self.traffic_data_per_interval = temp_model.from_map(map['TrafficDataPerInterval'])
else:
self.traffic_data_per_interval = None
return self
class DescribeVodDomainTrafficDataResponseTrafficDataPerIntervalDataModule(TeaModel):
def __init__(self, time_stamp=None, value=None, domestic_value=None, overseas_value=None, https_value=None, https_domestic_value=None, https_overseas_value=None):
self.time_stamp = time_stamp
self.value = value
self.domestic_value = domestic_value
self.overseas_value = overseas_value
self.https_value = https_value
self.https_domestic_value = https_domestic_value
self.https_overseas_value = https_overseas_value
def validate(self):
self.validate_required(self.time_stamp, 'time_stamp')
self.validate_required(self.value, 'value')
self.validate_required(self.domestic_value, 'domestic_value')
self.validate_required(self.overseas_value, 'overseas_value')
self.validate_required(self.https_value, 'https_value')
self.validate_required(self.https_domestic_value, 'https_domestic_value')
self.validate_required(self.https_overseas_value, 'https_overseas_value')
def to_map(self):
result = {}
result['TimeStamp'] = self.time_stamp
result['Value'] = self.value
result['DomesticValue'] = self.domestic_value
result['OverseasValue'] = self.overseas_value
result['HttpsValue'] = self.https_value
result['HttpsDomesticValue'] = self.https_domestic_value
result['HttpsOverseasValue'] = self.https_overseas_value
return result
def from_map(self, map={}):
self.time_stamp = map.get('TimeStamp')
self.value = map.get('Value')
self.domestic_value = map.get('DomesticValue')
self.overseas_value = map.get('OverseasValue')
self.https_value = map.get('HttpsValue')
self.https_domestic_value = map.get('HttpsDomesticValue')
self.https_overseas_value = map.get('HttpsOverseasValue')
return self
class DescribeVodDomainTrafficDataResponseTrafficDataPerInterval(TeaModel):
def __init__(self, data_module=None):
self.data_module = []
def validate(self):
self.validate_required(self.data_module, 'data_module')
if self.data_module:
for k in self.data_module:
if k :
k.validate()
def to_map(self):
result = {}
result['DataModule'] = []
if self.data_module is not None:
for k in self.data_module:
result['DataModule'].append(k.to_map() if k else None)
else:
result['DataModule'] = None
return result
def from_map(self, map={}):
self.data_module = []
if map.get('DataModule') is not None:
for k in map.get('DataModule'):
temp_model = DescribeVodDomainTrafficDataResponseTrafficDataPerIntervalDataModule()
temp_model = temp_model.from_map(k)
self.data_module.append(temp_model)
else:
self.data_module = None
return self
class DescribeVodDomainBpsDataRequest(TeaModel):
def __init__(self, owner_id=None, domain_name=None, start_time=None, end_time=None, interval=None, isp_name_en=None, location_name_en=None):
self.owner_id = owner_id
self.domain_name = domain_name
self.start_time = start_time
self.end_time = end_time
self.interval = interval
self.isp_name_en = isp_name_en
self.location_name_en = location_name_en
def validate(self):
pass
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['DomainName'] = self.domain_name
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
result['Interval'] = self.interval
result['IspNameEn'] = self.isp_name_en
result['LocationNameEn'] = self.location_name_en
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.domain_name = map.get('DomainName')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
self.interval = map.get('Interval')
self.isp_name_en = map.get('IspNameEn')
self.location_name_en = map.get('LocationNameEn')
return self
class DescribeVodDomainBpsDataResponse(TeaModel):
def __init__(self, request_id=None, domain_name=None, start_time=None, end_time=None, location_name_en=None, isp_name_en=None, data_interval=None, bps_data_per_interval=None):
self.request_id = request_id
self.domain_name = domain_name
self.start_time = start_time
self.end_time = end_time
self.location_name_en = location_name_en
self.isp_name_en = isp_name_en
self.data_interval = data_interval
self.bps_data_per_interval = bps_data_per_interval
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.domain_name, 'domain_name')
self.validate_required(self.start_time, 'start_time')
self.validate_required(self.end_time, 'end_time')
self.validate_required(self.location_name_en, 'location_name_en')
self.validate_required(self.isp_name_en, 'isp_name_en')
self.validate_required(self.data_interval, 'data_interval')
self.validate_required(self.bps_data_per_interval, 'bps_data_per_interval')
if self.bps_data_per_interval:
self.bps_data_per_interval.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['DomainName'] = self.domain_name
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
result['LocationNameEn'] = self.location_name_en
result['IspNameEn'] = self.isp_name_en
result['DataInterval'] = self.data_interval
if self.bps_data_per_interval is not None:
result['BpsDataPerInterval'] = self.bps_data_per_interval.to_map()
else:
result['BpsDataPerInterval'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.domain_name = map.get('DomainName')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
self.location_name_en = map.get('LocationNameEn')
self.isp_name_en = map.get('IspNameEn')
self.data_interval = map.get('DataInterval')
if map.get('BpsDataPerInterval') is not None:
temp_model = DescribeVodDomainBpsDataResponseBpsDataPerInterval()
self.bps_data_per_interval = temp_model.from_map(map['BpsDataPerInterval'])
else:
self.bps_data_per_interval = None
return self
class DescribeVodDomainBpsDataResponseBpsDataPerIntervalDataModule(TeaModel):
def __init__(self, time_stamp=None, value=None, domestic_value=None, overseas_value=None, https_value=None, https_domestic_value=None, https_overseas_value=None):
self.time_stamp = time_stamp
self.value = value
self.domestic_value = domestic_value
self.overseas_value = overseas_value
self.https_value = https_value
self.https_domestic_value = https_domestic_value
self.https_overseas_value = https_overseas_value
def validate(self):
self.validate_required(self.time_stamp, 'time_stamp')
self.validate_required(self.value, 'value')
self.validate_required(self.domestic_value, 'domestic_value')
self.validate_required(self.overseas_value, 'overseas_value')
self.validate_required(self.https_value, 'https_value')
self.validate_required(self.https_domestic_value, 'https_domestic_value')
self.validate_required(self.https_overseas_value, 'https_overseas_value')
def to_map(self):
result = {}
result['TimeStamp'] = self.time_stamp
result['Value'] = self.value
result['DomesticValue'] = self.domestic_value
result['OverseasValue'] = self.overseas_value
result['HttpsValue'] = self.https_value
result['HttpsDomesticValue'] = self.https_domestic_value
result['HttpsOverseasValue'] = self.https_overseas_value
return result
def from_map(self, map={}):
self.time_stamp = map.get('TimeStamp')
self.value = map.get('Value')
self.domestic_value = map.get('DomesticValue')
self.overseas_value = map.get('OverseasValue')
self.https_value = map.get('HttpsValue')
self.https_domestic_value = map.get('HttpsDomesticValue')
self.https_overseas_value = map.get('HttpsOverseasValue')
return self
class DescribeVodDomainBpsDataResponseBpsDataPerInterval(TeaModel):
def __init__(self, data_module=None):
self.data_module = []
def validate(self):
self.validate_required(self.data_module, 'data_module')
if self.data_module:
for k in self.data_module:
if k :
k.validate()
def to_map(self):
result = {}
result['DataModule'] = []
if self.data_module is not None:
for k in self.data_module:
result['DataModule'].append(k.to_map() if k else None)
else:
result['DataModule'] = None
return result
def from_map(self, map={}):
self.data_module = []
if map.get('DataModule') is not None:
for k in map.get('DataModule'):
temp_model = DescribeVodDomainBpsDataResponseBpsDataPerIntervalDataModule()
temp_model = temp_model.from_map(k)
self.data_module.append(temp_model)
else:
self.data_module = None
return self
class DescribeVodDomainUsageDataRequest(TeaModel):
def __init__(self, owner_id=None, domain_name=None, start_time=None, end_time=None, type=None, area=None, field=None):
self.owner_id = owner_id
self.domain_name = domain_name
self.start_time = start_time
self.end_time = end_time
self.type = type
self.area = area
self.field = field
def validate(self):
self.validate_required(self.start_time, 'start_time')
self.validate_required(self.end_time, 'end_time')
self.validate_required(self.field, 'field')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['DomainName'] = self.domain_name
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
result['Type'] = self.type
result['Area'] = self.area
result['Field'] = self.field
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.domain_name = map.get('DomainName')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
self.type = map.get('Type')
self.area = map.get('Area')
self.field = map.get('Field')
return self
class DescribeVodDomainUsageDataResponse(TeaModel):
def __init__(self, request_id=None, domain_name=None, start_time=None, end_time=None, type=None, area=None, data_interval=None, usage_data_per_interval=None):
self.request_id = request_id
self.domain_name = domain_name
self.start_time = start_time
self.end_time = end_time
self.type = type
self.area = area
self.data_interval = data_interval
self.usage_data_per_interval = usage_data_per_interval
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.domain_name, 'domain_name')
self.validate_required(self.start_time, 'start_time')
self.validate_required(self.end_time, 'end_time')
self.validate_required(self.type, 'type')
self.validate_required(self.area, 'area')
self.validate_required(self.data_interval, 'data_interval')
self.validate_required(self.usage_data_per_interval, 'usage_data_per_interval')
if self.usage_data_per_interval:
self.usage_data_per_interval.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['DomainName'] = self.domain_name
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
result['Type'] = self.type
result['Area'] = self.area
result['DataInterval'] = self.data_interval
if self.usage_data_per_interval is not None:
result['UsageDataPerInterval'] = self.usage_data_per_interval.to_map()
else:
result['UsageDataPerInterval'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.domain_name = map.get('DomainName')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
self.type = map.get('Type')
self.area = map.get('Area')
self.data_interval = map.get('DataInterval')
if map.get('UsageDataPerInterval') is not None:
temp_model = DescribeVodDomainUsageDataResponseUsageDataPerInterval()
self.usage_data_per_interval = temp_model.from_map(map['UsageDataPerInterval'])
else:
self.usage_data_per_interval = None
return self
class DescribeVodDomainUsageDataResponseUsageDataPerIntervalDataModule(TeaModel):
def __init__(self, time_stamp=None, value=None):
self.time_stamp = time_stamp
self.value = value
def validate(self):
self.validate_required(self.time_stamp, 'time_stamp')
self.validate_required(self.value, 'value')
def to_map(self):
result = {}
result['TimeStamp'] = self.time_stamp
result['Value'] = self.value
return result
def from_map(self, map={}):
self.time_stamp = map.get('TimeStamp')
self.value = map.get('Value')
return self
class DescribeVodDomainUsageDataResponseUsageDataPerInterval(TeaModel):
def __init__(self, data_module=None):
self.data_module = []
def validate(self):
self.validate_required(self.data_module, 'data_module')
if self.data_module:
for k in self.data_module:
if k :
k.validate()
def to_map(self):
result = {}
result['DataModule'] = []
if self.data_module is not None:
for k in self.data_module:
result['DataModule'].append(k.to_map() if k else None)
else:
result['DataModule'] = None
return result
def from_map(self, map={}):
self.data_module = []
if map.get('DataModule') is not None:
for k in map.get('DataModule'):
temp_model = DescribeVodDomainUsageDataResponseUsageDataPerIntervalDataModule()
temp_model = temp_model.from_map(k)
self.data_module.append(temp_model)
else:
self.data_module = None
return self
class DescribeVodCertificateListRequest(TeaModel):
def __init__(self, owner_id=None, security_token=None, domain_name=None):
self.owner_id = owner_id
self.security_token = security_token
self.domain_name = domain_name
def validate(self):
pass
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['SecurityToken'] = self.security_token
result['DomainName'] = self.domain_name
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.security_token = map.get('SecurityToken')
self.domain_name = map.get('DomainName')
return self
class DescribeVodCertificateListResponse(TeaModel):
def __init__(self, request_id=None, certificate_list_model=None):
self.request_id = request_id
self.certificate_list_model = certificate_list_model
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.certificate_list_model, 'certificate_list_model')
if self.certificate_list_model:
self.certificate_list_model.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.certificate_list_model is not None:
result['CertificateListModel'] = self.certificate_list_model.to_map()
else:
result['CertificateListModel'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('CertificateListModel') is not None:
temp_model = DescribeVodCertificateListResponseCertificateListModel()
self.certificate_list_model = temp_model.from_map(map['CertificateListModel'])
else:
self.certificate_list_model = None
return self
class DescribeVodCertificateListResponseCertificateListModelCertListCert(TeaModel):
def __init__(self, cert_name=None, cert_id=None, fingerprint=None, common=None, issuer=None, last_time=None):
self.cert_name = cert_name
self.cert_id = cert_id
self.fingerprint = fingerprint
self.common = common
self.issuer = issuer
self.last_time = last_time
def validate(self):
self.validate_required(self.cert_name, 'cert_name')
self.validate_required(self.cert_id, 'cert_id')
self.validate_required(self.fingerprint, 'fingerprint')
self.validate_required(self.common, 'common')
self.validate_required(self.issuer, 'issuer')
self.validate_required(self.last_time, 'last_time')
def to_map(self):
result = {}
result['CertName'] = self.cert_name
result['CertId'] = self.cert_id
result['Fingerprint'] = self.fingerprint
result['Common'] = self.common
result['Issuer'] = self.issuer
result['LastTime'] = self.last_time
return result
def from_map(self, map={}):
self.cert_name = map.get('CertName')
self.cert_id = map.get('CertId')
self.fingerprint = map.get('Fingerprint')
self.common = map.get('Common')
self.issuer = map.get('Issuer')
self.last_time = map.get('LastTime')
return self
class DescribeVodCertificateListResponseCertificateListModelCertList(TeaModel):
def __init__(self, cert=None):
self.cert = []
def validate(self):
self.validate_required(self.cert, 'cert')
if self.cert:
for k in self.cert:
if k :
k.validate()
def to_map(self):
result = {}
result['Cert'] = []
if self.cert is not None:
for k in self.cert:
result['Cert'].append(k.to_map() if k else None)
else:
result['Cert'] = None
return result
def from_map(self, map={}):
self.cert = []
if map.get('Cert') is not None:
for k in map.get('Cert'):
temp_model = DescribeVodCertificateListResponseCertificateListModelCertListCert()
temp_model = temp_model.from_map(k)
self.cert.append(temp_model)
else:
self.cert = None
return self
class DescribeVodCertificateListResponseCertificateListModel(TeaModel):
def __init__(self, count=None, cert_list=None):
self.count = count
self.cert_list = cert_list
def validate(self):
self.validate_required(self.count, 'count')
self.validate_required(self.cert_list, 'cert_list')
if self.cert_list:
self.cert_list.validate()
def to_map(self):
result = {}
result['Count'] = self.count
if self.cert_list is not None:
result['CertList'] = self.cert_list.to_map()
else:
result['CertList'] = None
return result
def from_map(self, map={}):
self.count = map.get('Count')
if map.get('CertList') is not None:
temp_model = DescribeVodCertificateListResponseCertificateListModelCertList()
self.cert_list = temp_model.from_map(map['CertList'])
else:
self.cert_list = None
return self
class BatchStopVodDomainRequest(TeaModel):
def __init__(self, owner_id=None, security_token=None, domain_names=None):
self.owner_id = owner_id
self.security_token = security_token
self.domain_names = domain_names
def validate(self):
self.validate_required(self.domain_names, 'domain_names')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['SecurityToken'] = self.security_token
result['DomainNames'] = self.domain_names
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.security_token = map.get('SecurityToken')
self.domain_names = map.get('DomainNames')
return self
class BatchStopVodDomainResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class DeleteVodDomainRequest(TeaModel):
def __init__(self, owner_id=None, owner_account=None, security_token=None, domain_name=None):
self.owner_id = owner_id
self.owner_account = owner_account
self.security_token = security_token
self.domain_name = domain_name
def validate(self):
self.validate_required(self.domain_name, 'domain_name')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['OwnerAccount'] = self.owner_account
result['SecurityToken'] = self.security_token
result['DomainName'] = self.domain_name
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.owner_account = map.get('OwnerAccount')
self.security_token = map.get('SecurityToken')
self.domain_name = map.get('DomainName')
return self
class DeleteVodDomainResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class SetVodDomainCertificateRequest(TeaModel):
def __init__(self, owner_id=None, security_token=None, domain_name=None, cert_name=None, sslprotocol=None, sslpub=None, sslpri=None, region=None):
self.owner_id = owner_id
self.security_token = security_token
self.domain_name = domain_name
self.cert_name = cert_name
self.sslprotocol = sslprotocol
self.sslpub = sslpub
self.sslpri = sslpri
self.region = region
def validate(self):
self.validate_required(self.domain_name, 'domain_name')
self.validate_required(self.sslprotocol, 'sslprotocol')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['SecurityToken'] = self.security_token
result['DomainName'] = self.domain_name
result['CertName'] = self.cert_name
result['SSLProtocol'] = self.sslprotocol
result['SSLPub'] = self.sslpub
result['SSLPri'] = self.sslpri
result['Region'] = self.region
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.security_token = map.get('SecurityToken')
self.domain_name = map.get('DomainName')
self.cert_name = map.get('CertName')
self.sslprotocol = map.get('SSLProtocol')
self.sslpub = map.get('SSLPub')
self.sslpri = map.get('SSLPri')
self.region = map.get('Region')
return self
class SetVodDomainCertificateResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class DeleteVodSpecificConfigRequest(TeaModel):
def __init__(self, owner_id=None, security_token=None, domain_name=None, config_id=None):
self.owner_id = owner_id
self.security_token = security_token
self.domain_name = domain_name
self.config_id = config_id
def validate(self):
self.validate_required(self.domain_name, 'domain_name')
self.validate_required(self.config_id, 'config_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['SecurityToken'] = self.security_token
result['DomainName'] = self.domain_name
result['ConfigId'] = self.config_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.security_token = map.get('SecurityToken')
self.domain_name = map.get('DomainName')
self.config_id = map.get('ConfigId')
return self
class DeleteVodSpecificConfigResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class BatchSetVodDomainConfigsRequest(TeaModel):
def __init__(self, owner_id=None, owner_account=None, security_token=None, domain_names=None, functions=None):
self.owner_id = owner_id
self.owner_account = owner_account
self.security_token = security_token
self.domain_names = domain_names
self.functions = functions
def validate(self):
self.validate_required(self.domain_names, 'domain_names')
self.validate_required(self.functions, 'functions')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['OwnerAccount'] = self.owner_account
result['SecurityToken'] = self.security_token
result['DomainNames'] = self.domain_names
result['Functions'] = self.functions
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.owner_account = map.get('OwnerAccount')
self.security_token = map.get('SecurityToken')
self.domain_names = map.get('DomainNames')
self.functions = map.get('Functions')
return self
class BatchSetVodDomainConfigsResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class AddVodDomainRequest(TeaModel):
def __init__(self, owner_id=None, owner_account=None, security_token=None, domain_name=None, sources=None, check_url=None, scope=None):
self.owner_id = owner_id
self.owner_account = owner_account
self.security_token = security_token
self.domain_name = domain_name
self.sources = sources
self.check_url = check_url
self.scope = scope
def validate(self):
self.validate_required(self.domain_name, 'domain_name')
self.validate_required(self.sources, 'sources')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['OwnerAccount'] = self.owner_account
result['SecurityToken'] = self.security_token
result['DomainName'] = self.domain_name
result['Sources'] = self.sources
result['CheckUrl'] = self.check_url
result['Scope'] = self.scope
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.owner_account = map.get('OwnerAccount')
self.security_token = map.get('SecurityToken')
self.domain_name = map.get('DomainName')
self.sources = map.get('Sources')
self.check_url = map.get('CheckUrl')
self.scope = map.get('Scope')
return self
class AddVodDomainResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class DescribeVodRefreshQuotaRequest(TeaModel):
def __init__(self, owner_id=None, security_token=None):
self.owner_id = owner_id
self.security_token = security_token
def validate(self):
pass
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['SecurityToken'] = self.security_token
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.security_token = map.get('SecurityToken')
return self
class DescribeVodRefreshQuotaResponse(TeaModel):
def __init__(self, request_id=None, url_quota=None, dir_quota=None, url_remain=None, dir_remain=None, preload_quota=None, block_quota=None, preload_remain=None, block_remain=None):
self.request_id = request_id
self.url_quota = url_quota
self.dir_quota = dir_quota
self.url_remain = url_remain
self.dir_remain = dir_remain
self.preload_quota = preload_quota
self.block_quota = block_quota
self.preload_remain = preload_remain
self.block_remain = block_remain
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.url_quota, 'url_quota')
self.validate_required(self.dir_quota, 'dir_quota')
self.validate_required(self.url_remain, 'url_remain')
self.validate_required(self.dir_remain, 'dir_remain')
self.validate_required(self.preload_quota, 'preload_quota')
self.validate_required(self.block_quota, 'block_quota')
self.validate_required(self.preload_remain, 'preload_remain')
self.validate_required(self.block_remain, 'block_remain')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['UrlQuota'] = self.url_quota
result['DirQuota'] = self.dir_quota
result['UrlRemain'] = self.url_remain
result['DirRemain'] = self.dir_remain
result['PreloadQuota'] = self.preload_quota
result['BlockQuota'] = self.block_quota
result['PreloadRemain'] = self.preload_remain
result['blockRemain'] = self.block_remain
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.url_quota = map.get('UrlQuota')
self.dir_quota = map.get('DirQuota')
self.url_remain = map.get('UrlRemain')
self.dir_remain = map.get('DirRemain')
self.preload_quota = map.get('PreloadQuota')
self.block_quota = map.get('BlockQuota')
self.preload_remain = map.get('PreloadRemain')
self.block_remain = map.get('blockRemain')
return self
class DescribeVodRefreshTasksRequest(TeaModel):
def __init__(self, owner_id=None, security_token=None, task_id=None, object_path=None, page_number=None, object_type=None, domain_name=None, status=None, page_size=None, start_time=None, end_time=None, resource_group_id=None):
self.owner_id = owner_id
self.security_token = security_token
self.task_id = task_id
self.object_path = object_path
self.page_number = page_number
self.object_type = object_type
self.domain_name = domain_name
self.status = status
self.page_size = page_size
self.start_time = start_time
self.end_time = end_time
self.resource_group_id = resource_group_id
def validate(self):
pass
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['SecurityToken'] = self.security_token
result['TaskId'] = self.task_id
result['ObjectPath'] = self.object_path
result['PageNumber'] = self.page_number
result['ObjectType'] = self.object_type
result['DomainName'] = self.domain_name
result['Status'] = self.status
result['PageSize'] = self.page_size
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
result['ResourceGroupId'] = self.resource_group_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.security_token = map.get('SecurityToken')
self.task_id = map.get('TaskId')
self.object_path = map.get('ObjectPath')
self.page_number = map.get('PageNumber')
self.object_type = map.get('ObjectType')
self.domain_name = map.get('DomainName')
self.status = map.get('Status')
self.page_size = map.get('PageSize')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
self.resource_group_id = map.get('ResourceGroupId')
return self
class DescribeVodRefreshTasksResponse(TeaModel):
def __init__(self, request_id=None, page_number=None, page_size=None, total_count=None, tasks=None):
self.request_id = request_id
self.page_number = page_number
self.page_size = page_size
self.total_count = total_count
self.tasks = tasks
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.page_number, 'page_number')
self.validate_required(self.page_size, 'page_size')
self.validate_required(self.total_count, 'total_count')
self.validate_required(self.tasks, 'tasks')
if self.tasks:
self.tasks.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['PageNumber'] = self.page_number
result['PageSize'] = self.page_size
result['TotalCount'] = self.total_count
if self.tasks is not None:
result['Tasks'] = self.tasks.to_map()
else:
result['Tasks'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.page_number = map.get('PageNumber')
self.page_size = map.get('PageSize')
self.total_count = map.get('TotalCount')
if map.get('Tasks') is not None:
temp_model = DescribeVodRefreshTasksResponseTasks()
self.tasks = temp_model.from_map(map['Tasks'])
else:
self.tasks = None
return self
class DescribeVodRefreshTasksResponseTasksTask(TeaModel):
def __init__(self, task_id=None, object_path=None, process=None, status=None, creation_time=None, description=None, object_type=None):
self.task_id = task_id
self.object_path = object_path
self.process = process
self.status = status
self.creation_time = creation_time
self.description = description
self.object_type = object_type
def validate(self):
self.validate_required(self.task_id, 'task_id')
self.validate_required(self.object_path, 'object_path')
self.validate_required(self.process, 'process')
self.validate_required(self.status, 'status')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.description, 'description')
self.validate_required(self.object_type, 'object_type')
def to_map(self):
result = {}
result['TaskId'] = self.task_id
result['ObjectPath'] = self.object_path
result['Process'] = self.process
result['Status'] = self.status
result['CreationTime'] = self.creation_time
result['Description'] = self.description
result['ObjectType'] = self.object_type
return result
def from_map(self, map={}):
self.task_id = map.get('TaskId')
self.object_path = map.get('ObjectPath')
self.process = map.get('Process')
self.status = map.get('Status')
self.creation_time = map.get('CreationTime')
self.description = map.get('Description')
self.object_type = map.get('ObjectType')
return self
class DescribeVodRefreshTasksResponseTasks(TeaModel):
def __init__(self, task=None):
self.task = []
def validate(self):
self.validate_required(self.task, 'task')
if self.task:
for k in self.task:
if k :
k.validate()
def to_map(self):
result = {}
result['Task'] = []
if self.task is not None:
for k in self.task:
result['Task'].append(k.to_map() if k else None)
else:
result['Task'] = None
return result
def from_map(self, map={}):
self.task = []
if map.get('Task') is not None:
for k in map.get('Task'):
temp_model = DescribeVodRefreshTasksResponseTasksTask()
temp_model = temp_model.from_map(k)
self.task.append(temp_model)
else:
self.task = None
return self
class DescribeVodDomainConfigsRequest(TeaModel):
def __init__(self, owner_id=None, security_token=None, domain_name=None, function_names=None):
self.owner_id = owner_id
self.security_token = security_token
self.domain_name = domain_name
self.function_names = function_names
def validate(self):
self.validate_required(self.domain_name, 'domain_name')
self.validate_required(self.function_names, 'function_names')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['SecurityToken'] = self.security_token
result['DomainName'] = self.domain_name
result['FunctionNames'] = self.function_names
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.security_token = map.get('SecurityToken')
self.domain_name = map.get('DomainName')
self.function_names = map.get('FunctionNames')
return self
class DescribeVodDomainConfigsResponse(TeaModel):
def __init__(self, request_id=None, domain_configs=None):
self.request_id = request_id
self.domain_configs = domain_configs
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.domain_configs, 'domain_configs')
if self.domain_configs:
self.domain_configs.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.domain_configs is not None:
result['DomainConfigs'] = self.domain_configs.to_map()
else:
result['DomainConfigs'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('DomainConfigs') is not None:
temp_model = DescribeVodDomainConfigsResponseDomainConfigs()
self.domain_configs = temp_model.from_map(map['DomainConfigs'])
else:
self.domain_configs = None
return self
class DescribeVodDomainConfigsResponseDomainConfigsDomainConfigFunctionArgsFunctionArg(TeaModel):
def __init__(self, arg_name=None, arg_value=None):
self.arg_name = arg_name
self.arg_value = arg_value
def validate(self):
self.validate_required(self.arg_name, 'arg_name')
self.validate_required(self.arg_value, 'arg_value')
def to_map(self):
result = {}
result['ArgName'] = self.arg_name
result['ArgValue'] = self.arg_value
return result
def from_map(self, map={}):
self.arg_name = map.get('ArgName')
self.arg_value = map.get('ArgValue')
return self
class DescribeVodDomainConfigsResponseDomainConfigsDomainConfigFunctionArgs(TeaModel):
def __init__(self, function_arg=None):
self.function_arg = []
def validate(self):
self.validate_required(self.function_arg, 'function_arg')
if self.function_arg:
for k in self.function_arg:
if k :
k.validate()
def to_map(self):
result = {}
result['FunctionArg'] = []
if self.function_arg is not None:
for k in self.function_arg:
result['FunctionArg'].append(k.to_map() if k else None)
else:
result['FunctionArg'] = None
return result
def from_map(self, map={}):
self.function_arg = []
if map.get('FunctionArg') is not None:
for k in map.get('FunctionArg'):
temp_model = DescribeVodDomainConfigsResponseDomainConfigsDomainConfigFunctionArgsFunctionArg()
temp_model = temp_model.from_map(k)
self.function_arg.append(temp_model)
else:
self.function_arg = None
return self
class DescribeVodDomainConfigsResponseDomainConfigsDomainConfig(TeaModel):
def __init__(self, function_name=None, config_id=None, status=None, function_args=None):
self.function_name = function_name
self.config_id = config_id
self.status = status
self.function_args = function_args
def validate(self):
self.validate_required(self.function_name, 'function_name')
self.validate_required(self.config_id, 'config_id')
self.validate_required(self.status, 'status')
self.validate_required(self.function_args, 'function_args')
if self.function_args:
self.function_args.validate()
def to_map(self):
result = {}
result['FunctionName'] = self.function_name
result['ConfigId'] = self.config_id
result['Status'] = self.status
if self.function_args is not None:
result['FunctionArgs'] = self.function_args.to_map()
else:
result['FunctionArgs'] = None
return result
def from_map(self, map={}):
self.function_name = map.get('FunctionName')
self.config_id = map.get('ConfigId')
self.status = map.get('Status')
if map.get('FunctionArgs') is not None:
temp_model = DescribeVodDomainConfigsResponseDomainConfigsDomainConfigFunctionArgs()
self.function_args = temp_model.from_map(map['FunctionArgs'])
else:
self.function_args = None
return self
class DescribeVodDomainConfigsResponseDomainConfigs(TeaModel):
def __init__(self, domain_config=None):
self.domain_config = []
def validate(self):
self.validate_required(self.domain_config, 'domain_config')
if self.domain_config:
for k in self.domain_config:
if k :
k.validate()
def to_map(self):
result = {}
result['DomainConfig'] = []
if self.domain_config is not None:
for k in self.domain_config:
result['DomainConfig'].append(k.to_map() if k else None)
else:
result['DomainConfig'] = None
return result
def from_map(self, map={}):
self.domain_config = []
if map.get('DomainConfig') is not None:
for k in map.get('DomainConfig'):
temp_model = DescribeVodDomainConfigsResponseDomainConfigsDomainConfig()
temp_model = temp_model.from_map(k)
self.domain_config.append(temp_model)
else:
self.domain_config = None
return self
class DescribeVodUserDomainsRequest(TeaModel):
def __init__(self, owner_id=None, security_token=None, page_size=None, page_number=None, domain_name=None, domain_status=None, domain_search_type=None, cdn_type=None, check_domain_show=None, func_id=None, func_filter=None):
self.owner_id = owner_id
self.security_token = security_token
self.page_size = page_size
self.page_number = page_number
self.domain_name = domain_name
self.domain_status = domain_status
self.domain_search_type = domain_search_type
self.cdn_type = cdn_type
self.check_domain_show = check_domain_show
self.func_id = func_id
self.func_filter = func_filter
def validate(self):
pass
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['SecurityToken'] = self.security_token
result['PageSize'] = self.page_size
result['PageNumber'] = self.page_number
result['DomainName'] = self.domain_name
result['DomainStatus'] = self.domain_status
result['DomainSearchType'] = self.domain_search_type
result['CdnType'] = self.cdn_type
result['CheckDomainShow'] = self.check_domain_show
result['FuncId'] = self.func_id
result['FuncFilter'] = self.func_filter
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.security_token = map.get('SecurityToken')
self.page_size = map.get('PageSize')
self.page_number = map.get('PageNumber')
self.domain_name = map.get('DomainName')
self.domain_status = map.get('DomainStatus')
self.domain_search_type = map.get('DomainSearchType')
self.cdn_type = map.get('CdnType')
self.check_domain_show = map.get('CheckDomainShow')
self.func_id = map.get('FuncId')
self.func_filter = map.get('FuncFilter')
return self
class DescribeVodUserDomainsResponse(TeaModel):
def __init__(self, request_id=None, page_number=None, page_size=None, total_count=None, domains=None):
self.request_id = request_id
self.page_number = page_number
self.page_size = page_size
self.total_count = total_count
self.domains = domains
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.page_number, 'page_number')
self.validate_required(self.page_size, 'page_size')
self.validate_required(self.total_count, 'total_count')
self.validate_required(self.domains, 'domains')
if self.domains:
self.domains.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['PageNumber'] = self.page_number
result['PageSize'] = self.page_size
result['TotalCount'] = self.total_count
if self.domains is not None:
result['Domains'] = self.domains.to_map()
else:
result['Domains'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.page_number = map.get('PageNumber')
self.page_size = map.get('PageSize')
self.total_count = map.get('TotalCount')
if map.get('Domains') is not None:
temp_model = DescribeVodUserDomainsResponseDomains()
self.domains = temp_model.from_map(map['Domains'])
else:
self.domains = None
return self
class DescribeVodUserDomainsResponseDomainsPageDataSourcesSource(TeaModel):
def __init__(self, type=None, content=None, port=None, priority=None):
self.type = type
self.content = content
self.port = port
self.priority = priority
def validate(self):
self.validate_required(self.type, 'type')
self.validate_required(self.content, 'content')
self.validate_required(self.port, 'port')
self.validate_required(self.priority, 'priority')
def to_map(self):
result = {}
result['Type'] = self.type
result['Content'] = self.content
result['Port'] = self.port
result['Priority'] = self.priority
return result
def from_map(self, map={}):
self.type = map.get('Type')
self.content = map.get('Content')
self.port = map.get('Port')
self.priority = map.get('Priority')
return self
class DescribeVodUserDomainsResponseDomainsPageDataSources(TeaModel):
def __init__(self, source=None):
self.source = []
def validate(self):
self.validate_required(self.source, 'source')
if self.source:
for k in self.source:
if k :
k.validate()
def to_map(self):
result = {}
result['Source'] = []
if self.source is not None:
for k in self.source:
result['Source'].append(k.to_map() if k else None)
else:
result['Source'] = None
return result
def from_map(self, map={}):
self.source = []
if map.get('Source') is not None:
for k in map.get('Source'):
temp_model = DescribeVodUserDomainsResponseDomainsPageDataSourcesSource()
temp_model = temp_model.from_map(k)
self.source.append(temp_model)
else:
self.source = None
return self
class DescribeVodUserDomainsResponseDomainsPageData(TeaModel):
def __init__(self, domain_name=None, cname=None, cdn_type=None, domain_status=None, gmt_created=None, gmt_modified=None, description=None, ssl_protocol=None, weight=None, sandbox=None, sources=None):
self.domain_name = domain_name
self.cname = cname
self.cdn_type = cdn_type
self.domain_status = domain_status
self.gmt_created = gmt_created
self.gmt_modified = gmt_modified
self.description = description
self.ssl_protocol = ssl_protocol
self.weight = weight
self.sandbox = sandbox
self.sources = sources
def validate(self):
self.validate_required(self.domain_name, 'domain_name')
self.validate_required(self.cname, 'cname')
self.validate_required(self.cdn_type, 'cdn_type')
self.validate_required(self.domain_status, 'domain_status')
self.validate_required(self.gmt_created, 'gmt_created')
self.validate_required(self.gmt_modified, 'gmt_modified')
self.validate_required(self.description, 'description')
self.validate_required(self.ssl_protocol, 'ssl_protocol')
self.validate_required(self.weight, 'weight')
self.validate_required(self.sandbox, 'sandbox')
self.validate_required(self.sources, 'sources')
if self.sources:
self.sources.validate()
def to_map(self):
result = {}
result['DomainName'] = self.domain_name
result['Cname'] = self.cname
result['CdnType'] = self.cdn_type
result['DomainStatus'] = self.domain_status
result['GmtCreated'] = self.gmt_created
result['GmtModified'] = self.gmt_modified
result['Description'] = self.description
result['SslProtocol'] = self.ssl_protocol
result['Weight'] = self.weight
result['Sandbox'] = self.sandbox
if self.sources is not None:
result['Sources'] = self.sources.to_map()
else:
result['Sources'] = None
return result
def from_map(self, map={}):
self.domain_name = map.get('DomainName')
self.cname = map.get('Cname')
self.cdn_type = map.get('CdnType')
self.domain_status = map.get('DomainStatus')
self.gmt_created = map.get('GmtCreated')
self.gmt_modified = map.get('GmtModified')
self.description = map.get('Description')
self.ssl_protocol = map.get('SslProtocol')
self.weight = map.get('Weight')
self.sandbox = map.get('Sandbox')
if map.get('Sources') is not None:
temp_model = DescribeVodUserDomainsResponseDomainsPageDataSources()
self.sources = temp_model.from_map(map['Sources'])
else:
self.sources = None
return self
class DescribeVodUserDomainsResponseDomains(TeaModel):
def __init__(self, page_data=None):
self.page_data = []
def validate(self):
self.validate_required(self.page_data, 'page_data')
if self.page_data:
for k in self.page_data:
if k :
k.validate()
def to_map(self):
result = {}
result['PageData'] = []
if self.page_data is not None:
for k in self.page_data:
result['PageData'].append(k.to_map() if k else None)
else:
result['PageData'] = None
return result
def from_map(self, map={}):
self.page_data = []
if map.get('PageData') is not None:
for k in map.get('PageData'):
temp_model = DescribeVodUserDomainsResponseDomainsPageData()
temp_model = temp_model.from_map(k)
self.page_data.append(temp_model)
else:
self.page_data = None
return self
class UpdateVodDomainRequest(TeaModel):
def __init__(self, owner_id=None, security_token=None, domain_name=None, sources=None, top_level_domain=None):
self.owner_id = owner_id
self.security_token = security_token
self.domain_name = domain_name
self.sources = sources
self.top_level_domain = top_level_domain
def validate(self):
self.validate_required(self.domain_name, 'domain_name')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['SecurityToken'] = self.security_token
result['DomainName'] = self.domain_name
result['Sources'] = self.sources
result['TopLevelDomain'] = self.top_level_domain
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.security_token = map.get('SecurityToken')
self.domain_name = map.get('DomainName')
self.sources = map.get('Sources')
self.top_level_domain = map.get('TopLevelDomain')
return self
class UpdateVodDomainResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class RefreshVodObjectCachesRequest(TeaModel):
def __init__(self, owner_id=None, security_token=None, object_path=None, object_type=None):
self.owner_id = owner_id
self.security_token = security_token
self.object_path = object_path
self.object_type = object_type
def validate(self):
self.validate_required(self.object_path, 'object_path')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['SecurityToken'] = self.security_token
result['ObjectPath'] = self.object_path
result['ObjectType'] = self.object_type
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.security_token = map.get('SecurityToken')
self.object_path = map.get('ObjectPath')
self.object_type = map.get('ObjectType')
return self
class RefreshVodObjectCachesResponse(TeaModel):
def __init__(self, request_id=None, refresh_task_id=None):
self.request_id = request_id
self.refresh_task_id = refresh_task_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.refresh_task_id, 'refresh_task_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['RefreshTaskId'] = self.refresh_task_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.refresh_task_id = map.get('RefreshTaskId')
return self
class PreloadVodObjectCachesRequest(TeaModel):
def __init__(self, owner_id=None, security_token=None, object_path=None):
self.owner_id = owner_id
self.security_token = security_token
self.object_path = object_path
def validate(self):
self.validate_required(self.object_path, 'object_path')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['SecurityToken'] = self.security_token
result['ObjectPath'] = self.object_path
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.security_token = map.get('SecurityToken')
self.object_path = map.get('ObjectPath')
return self
class PreloadVodObjectCachesResponse(TeaModel):
def __init__(self, request_id=None, preload_task_id=None):
self.request_id = request_id
self.preload_task_id = preload_task_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.preload_task_id, 'preload_task_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['PreloadTaskId'] = self.preload_task_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.preload_task_id = map.get('PreloadTaskId')
return self
class BatchStartVodDomainRequest(TeaModel):
def __init__(self, owner_id=None, security_token=None, domain_names=None):
self.owner_id = owner_id
self.security_token = security_token
self.domain_names = domain_names
def validate(self):
self.validate_required(self.domain_names, 'domain_names')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['SecurityToken'] = self.security_token
result['DomainNames'] = self.domain_names
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.security_token = map.get('SecurityToken')
self.domain_names = map.get('DomainNames')
return self
class BatchStartVodDomainResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class DescribeVodDomainDetailRequest(TeaModel):
def __init__(self, owner_id=None, security_token=None, domain_name=None):
self.owner_id = owner_id
self.security_token = security_token
self.domain_name = domain_name
def validate(self):
self.validate_required(self.domain_name, 'domain_name')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['SecurityToken'] = self.security_token
result['DomainName'] = self.domain_name
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.security_token = map.get('SecurityToken')
self.domain_name = map.get('DomainName')
return self
class DescribeVodDomainDetailResponse(TeaModel):
def __init__(self, request_id=None, domain_detail=None):
self.request_id = request_id
self.domain_detail = domain_detail
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.domain_detail, 'domain_detail')
if self.domain_detail:
self.domain_detail.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.domain_detail is not None:
result['DomainDetail'] = self.domain_detail.to_map()
else:
result['DomainDetail'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('DomainDetail') is not None:
temp_model = DescribeVodDomainDetailResponseDomainDetail()
self.domain_detail = temp_model.from_map(map['DomainDetail'])
else:
self.domain_detail = None
return self
class DescribeVodDomainDetailResponseDomainDetailSourcesSource(TeaModel):
def __init__(self, content=None, type=None, port=None, enabled=None, priority=None):
self.content = content
self.type = type
self.port = port
self.enabled = enabled
self.priority = priority
def validate(self):
self.validate_required(self.content, 'content')
self.validate_required(self.type, 'type')
self.validate_required(self.port, 'port')
self.validate_required(self.enabled, 'enabled')
self.validate_required(self.priority, 'priority')
def to_map(self):
result = {}
result['Content'] = self.content
result['Type'] = self.type
result['Port'] = self.port
result['Enabled'] = self.enabled
result['Priority'] = self.priority
return result
def from_map(self, map={}):
self.content = map.get('Content')
self.type = map.get('Type')
self.port = map.get('Port')
self.enabled = map.get('Enabled')
self.priority = map.get('Priority')
return self
class DescribeVodDomainDetailResponseDomainDetailSources(TeaModel):
def __init__(self, source=None):
self.source = []
def validate(self):
self.validate_required(self.source, 'source')
if self.source:
for k in self.source:
if k :
k.validate()
def to_map(self):
result = {}
result['Source'] = []
if self.source is not None:
for k in self.source:
result['Source'].append(k.to_map() if k else None)
else:
result['Source'] = None
return result
def from_map(self, map={}):
self.source = []
if map.get('Source') is not None:
for k in map.get('Source'):
temp_model = DescribeVodDomainDetailResponseDomainDetailSourcesSource()
temp_model = temp_model.from_map(k)
self.source.append(temp_model)
else:
self.source = None
return self
class DescribeVodDomainDetailResponseDomainDetail(TeaModel):
def __init__(self, gmt_created=None, gmt_modified=None, domain_status=None, cname=None, domain_name=None, description=None, sslprotocol=None, sslpub=None, scope=None, cert_name=None, weight=None, sources=None):
self.gmt_created = gmt_created
self.gmt_modified = gmt_modified
self.domain_status = domain_status
self.cname = cname
self.domain_name = domain_name
self.description = description
self.sslprotocol = sslprotocol
self.sslpub = sslpub
self.scope = scope
self.cert_name = cert_name
self.weight = weight
self.sources = sources
def validate(self):
self.validate_required(self.gmt_created, 'gmt_created')
self.validate_required(self.gmt_modified, 'gmt_modified')
self.validate_required(self.domain_status, 'domain_status')
self.validate_required(self.cname, 'cname')
self.validate_required(self.domain_name, 'domain_name')
self.validate_required(self.description, 'description')
self.validate_required(self.sslprotocol, 'sslprotocol')
self.validate_required(self.sslpub, 'sslpub')
self.validate_required(self.scope, 'scope')
self.validate_required(self.cert_name, 'cert_name')
self.validate_required(self.weight, 'weight')
self.validate_required(self.sources, 'sources')
if self.sources:
self.sources.validate()
def to_map(self):
result = {}
result['GmtCreated'] = self.gmt_created
result['GmtModified'] = self.gmt_modified
result['DomainStatus'] = self.domain_status
result['Cname'] = self.cname
result['DomainName'] = self.domain_name
result['Description'] = self.description
result['SSLProtocol'] = self.sslprotocol
result['SSLPub'] = self.sslpub
result['Scope'] = self.scope
result['CertName'] = self.cert_name
result['Weight'] = self.weight
if self.sources is not None:
result['Sources'] = self.sources.to_map()
else:
result['Sources'] = None
return result
def from_map(self, map={}):
self.gmt_created = map.get('GmtCreated')
self.gmt_modified = map.get('GmtModified')
self.domain_status = map.get('DomainStatus')
self.cname = map.get('Cname')
self.domain_name = map.get('DomainName')
self.description = map.get('Description')
self.sslprotocol = map.get('SSLProtocol')
self.sslpub = map.get('SSLPub')
self.scope = map.get('Scope')
self.cert_name = map.get('CertName')
self.weight = map.get('Weight')
if map.get('Sources') is not None:
temp_model = DescribeVodDomainDetailResponseDomainDetailSources()
self.sources = temp_model.from_map(map['Sources'])
else:
self.sources = None
return self
class DeleteVodTemplateRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, vod_template_id=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.vod_template_id = vod_template_id
def validate(self):
self.validate_required(self.vod_template_id, 'vod_template_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VodTemplateId'] = self.vod_template_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.vod_template_id = map.get('VodTemplateId')
return self
class DeleteVodTemplateResponse(TeaModel):
def __init__(self, request_id=None, vod_template_id=None):
self.request_id = request_id
self.vod_template_id = vod_template_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.vod_template_id, 'vod_template_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['VodTemplateId'] = self.vod_template_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.vod_template_id = map.get('VodTemplateId')
return self
class GetVodTemplateRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, vod_template_id=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.vod_template_id = vod_template_id
def validate(self):
self.validate_required(self.vod_template_id, 'vod_template_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VodTemplateId'] = self.vod_template_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.vod_template_id = map.get('VodTemplateId')
return self
class GetVodTemplateResponse(TeaModel):
def __init__(self, request_id=None, vod_template_info=None):
self.request_id = request_id
self.vod_template_info = vod_template_info
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.vod_template_info, 'vod_template_info')
if self.vod_template_info:
self.vod_template_info.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.vod_template_info is not None:
result['VodTemplateInfo'] = self.vod_template_info.to_map()
else:
result['VodTemplateInfo'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('VodTemplateInfo') is not None:
temp_model = GetVodTemplateResponseVodTemplateInfo()
self.vod_template_info = temp_model.from_map(map['VodTemplateInfo'])
else:
self.vod_template_info = None
return self
class GetVodTemplateResponseVodTemplateInfo(TeaModel):
def __init__(self, name=None, vod_template_id=None, template_type=None, sub_template_type=None, source=None, is_default=None, template_config=None, creation_time=None, modify_time=None):
self.name = name
self.vod_template_id = vod_template_id
self.template_type = template_type
self.sub_template_type = sub_template_type
self.source = source
self.is_default = is_default
self.template_config = template_config
self.creation_time = creation_time
self.modify_time = modify_time
def validate(self):
self.validate_required(self.name, 'name')
self.validate_required(self.vod_template_id, 'vod_template_id')
self.validate_required(self.template_type, 'template_type')
self.validate_required(self.sub_template_type, 'sub_template_type')
self.validate_required(self.source, 'source')
self.validate_required(self.is_default, 'is_default')
self.validate_required(self.template_config, 'template_config')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modify_time, 'modify_time')
def to_map(self):
result = {}
result['Name'] = self.name
result['VodTemplateId'] = self.vod_template_id
result['TemplateType'] = self.template_type
result['SubTemplateType'] = self.sub_template_type
result['Source'] = self.source
result['IsDefault'] = self.is_default
result['TemplateConfig'] = self.template_config
result['CreationTime'] = self.creation_time
result['ModifyTime'] = self.modify_time
return result
def from_map(self, map={}):
self.name = map.get('Name')
self.vod_template_id = map.get('VodTemplateId')
self.template_type = map.get('TemplateType')
self.sub_template_type = map.get('SubTemplateType')
self.source = map.get('Source')
self.is_default = map.get('IsDefault')
self.template_config = map.get('TemplateConfig')
self.creation_time = map.get('CreationTime')
self.modify_time = map.get('ModifyTime')
return self
class ListVodTemplateRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, template_type=None, app_id=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.template_type = template_type
self.app_id = app_id
def validate(self):
self.validate_required(self.template_type, 'template_type')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['TemplateType'] = self.template_type
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.template_type = map.get('TemplateType')
self.app_id = map.get('AppId')
return self
class ListVodTemplateResponse(TeaModel):
def __init__(self, request_id=None, vod_template_info_list=None):
self.request_id = request_id
self.vod_template_info_list = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.vod_template_info_list, 'vod_template_info_list')
if self.vod_template_info_list:
for k in self.vod_template_info_list:
if k :
k.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['VodTemplateInfoList'] = []
if self.vod_template_info_list is not None:
for k in self.vod_template_info_list:
result['VodTemplateInfoList'].append(k.to_map() if k else None)
else:
result['VodTemplateInfoList'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.vod_template_info_list = []
if map.get('VodTemplateInfoList') is not None:
for k in map.get('VodTemplateInfoList'):
temp_model = ListVodTemplateResponseVodTemplateInfoList()
temp_model = temp_model.from_map(k)
self.vod_template_info_list.append(temp_model)
else:
self.vod_template_info_list = None
return self
class ListVodTemplateResponseVodTemplateInfoList(TeaModel):
def __init__(self, name=None, vod_template_id=None, template_type=None, sub_template_type=None, source=None, is_default=None, template_config=None, creation_time=None, modify_time=None, app_id=None):
self.name = name
self.vod_template_id = vod_template_id
self.template_type = template_type
self.sub_template_type = sub_template_type
self.source = source
self.is_default = is_default
self.template_config = template_config
self.creation_time = creation_time
self.modify_time = modify_time
self.app_id = app_id
def validate(self):
self.validate_required(self.name, 'name')
self.validate_required(self.vod_template_id, 'vod_template_id')
self.validate_required(self.template_type, 'template_type')
self.validate_required(self.sub_template_type, 'sub_template_type')
self.validate_required(self.source, 'source')
self.validate_required(self.is_default, 'is_default')
self.validate_required(self.template_config, 'template_config')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modify_time, 'modify_time')
self.validate_required(self.app_id, 'app_id')
def to_map(self):
result = {}
result['Name'] = self.name
result['VodTemplateId'] = self.vod_template_id
result['TemplateType'] = self.template_type
result['SubTemplateType'] = self.sub_template_type
result['Source'] = self.source
result['IsDefault'] = self.is_default
result['TemplateConfig'] = self.template_config
result['CreationTime'] = self.creation_time
result['ModifyTime'] = self.modify_time
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.name = map.get('Name')
self.vod_template_id = map.get('VodTemplateId')
self.template_type = map.get('TemplateType')
self.sub_template_type = map.get('SubTemplateType')
self.source = map.get('Source')
self.is_default = map.get('IsDefault')
self.template_config = map.get('TemplateConfig')
self.creation_time = map.get('CreationTime')
self.modify_time = map.get('ModifyTime')
self.app_id = map.get('AppId')
return self
class UpdateVodTemplateRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, vod_template_id=None, name=None, template_config=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.vod_template_id = vod_template_id
self.name = name
self.template_config = template_config
def validate(self):
self.validate_required(self.vod_template_id, 'vod_template_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VodTemplateId'] = self.vod_template_id
result['Name'] = self.name
result['TemplateConfig'] = self.template_config
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.vod_template_id = map.get('VodTemplateId')
self.name = map.get('Name')
self.template_config = map.get('TemplateConfig')
return self
class UpdateVodTemplateResponse(TeaModel):
def __init__(self, request_id=None, vod_template_id=None):
self.request_id = request_id
self.vod_template_id = vod_template_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.vod_template_id, 'vod_template_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['VodTemplateId'] = self.vod_template_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.vod_template_id = map.get('VodTemplateId')
return self
class AddVodTemplateRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, name=None, template_type=None, sub_template_type=None, template_config=None, app_id=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.name = name
self.template_type = template_type
self.sub_template_type = sub_template_type
self.template_config = template_config
self.app_id = app_id
def validate(self):
self.validate_required(self.name, 'name')
self.validate_required(self.template_type, 'template_type')
self.validate_required(self.template_config, 'template_config')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['Name'] = self.name
result['TemplateType'] = self.template_type
result['SubTemplateType'] = self.sub_template_type
result['TemplateConfig'] = self.template_config
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.name = map.get('Name')
self.template_type = map.get('TemplateType')
self.sub_template_type = map.get('SubTemplateType')
self.template_config = map.get('TemplateConfig')
self.app_id = map.get('AppId')
return self
class AddVodTemplateResponse(TeaModel):
def __init__(self, request_id=None, vod_template_id=None):
self.request_id = request_id
self.vod_template_id = vod_template_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.vod_template_id, 'vod_template_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['VodTemplateId'] = self.vod_template_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.vod_template_id = map.get('VodTemplateId')
return self
class CreateUploadAttachedMediaRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, title=None, business_type=None, media_ext=None, file_name=None, file_size=None, tags=None, cate_id=None, storage_location=None, description=None, user_data=None, cate_ids=None, app_id=None, icon=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.title = title
self.business_type = business_type
self.media_ext = media_ext
self.file_name = file_name
self.file_size = file_size
self.tags = tags
self.cate_id = cate_id
self.storage_location = storage_location
self.description = description
self.user_data = user_data
self.cate_ids = cate_ids
self.app_id = app_id
self.icon = icon
def validate(self):
self.validate_required(self.business_type, 'business_type')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['Title'] = self.title
result['BusinessType'] = self.business_type
result['MediaExt'] = self.media_ext
result['FileName'] = self.file_name
result['FileSize'] = self.file_size
result['Tags'] = self.tags
result['CateId'] = self.cate_id
result['StorageLocation'] = self.storage_location
result['Description'] = self.description
result['UserData'] = self.user_data
result['CateIds'] = self.cate_ids
result['AppId'] = self.app_id
result['Icon'] = self.icon
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.title = map.get('Title')
self.business_type = map.get('BusinessType')
self.media_ext = map.get('MediaExt')
self.file_name = map.get('FileName')
self.file_size = map.get('FileSize')
self.tags = map.get('Tags')
self.cate_id = map.get('CateId')
self.storage_location = map.get('StorageLocation')
self.description = map.get('Description')
self.user_data = map.get('UserData')
self.cate_ids = map.get('CateIds')
self.app_id = map.get('AppId')
self.icon = map.get('Icon')
return self
class CreateUploadAttachedMediaResponse(TeaModel):
def __init__(self, request_id=None, media_id=None, media_url=None, upload_address=None, upload_auth=None, file_url=None):
self.request_id = request_id
self.media_id = media_id
self.media_url = media_url
self.upload_address = upload_address
self.upload_auth = upload_auth
self.file_url = file_url
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.media_url, 'media_url')
self.validate_required(self.upload_address, 'upload_address')
self.validate_required(self.upload_auth, 'upload_auth')
self.validate_required(self.file_url, 'file_url')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['MediaId'] = self.media_id
result['MediaURL'] = self.media_url
result['UploadAddress'] = self.upload_address
result['UploadAuth'] = self.upload_auth
result['FileURL'] = self.file_url
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.media_id = map.get('MediaId')
self.media_url = map.get('MediaURL')
self.upload_address = map.get('UploadAddress')
self.upload_auth = map.get('UploadAuth')
self.file_url = map.get('FileURL')
return self
class RegisterMediaRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, register_metadatas=None, template_group_id=None, user_data=None, workflow_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.register_metadatas = register_metadatas
self.template_group_id = template_group_id
self.user_data = user_data
self.workflow_id = workflow_id
def validate(self):
self.validate_required(self.register_metadatas, 'register_metadatas')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['RegisterMetadatas'] = self.register_metadatas
result['TemplateGroupId'] = self.template_group_id
result['UserData'] = self.user_data
result['WorkflowId'] = self.workflow_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.register_metadatas = map.get('RegisterMetadatas')
self.template_group_id = map.get('TemplateGroupId')
self.user_data = map.get('UserData')
self.workflow_id = map.get('WorkflowId')
return self
class RegisterMediaResponse(TeaModel):
def __init__(self, request_id=None, registered_media_list=None, failed_file_urls=None):
self.request_id = request_id
self.registered_media_list = []
self.failed_file_urls = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.registered_media_list, 'registered_media_list')
if self.registered_media_list:
for k in self.registered_media_list:
if k :
k.validate()
self.validate_required(self.failed_file_urls, 'failed_file_urls')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['RegisteredMediaList'] = []
if self.registered_media_list is not None:
for k in self.registered_media_list:
result['RegisteredMediaList'].append(k.to_map() if k else None)
else:
result['RegisteredMediaList'] = None
result['FailedFileURLs'] = []
if self.failed_file_urls is not None:
for k in self.failed_file_urls:
result['FailedFileURLs'].append(k)
else:
result['FailedFileURLs'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.registered_media_list = []
if map.get('RegisteredMediaList') is not None:
for k in map.get('RegisteredMediaList'):
temp_model = RegisterMediaResponseRegisteredMediaList()
temp_model = temp_model.from_map(k)
self.registered_media_list.append(temp_model)
else:
self.registered_media_list = None
self.failed_file_urls = []
if map.get('FailedFileURLs') is not None:
for k in map.get('FailedFileURLs'):
self.failed_file_urls.append(k)
else:
self.failed_file_urls = None
return self
class RegisterMediaResponseRegisteredMediaList(TeaModel):
def __init__(self, media_id=None, file_url=None, new_register=None):
self.media_id = media_id
self.file_url = file_url
self.new_register = new_register
def validate(self):
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.file_url, 'file_url')
self.validate_required(self.new_register, 'new_register')
def to_map(self):
result = {}
result['MediaId'] = self.media_id
result['FileURL'] = self.file_url
result['NewRegister'] = self.new_register
return result
def from_map(self, map={}):
self.media_id = map.get('MediaId')
self.file_url = map.get('FileURL')
self.new_register = map.get('NewRegister')
return self
class DeleteWatermarkRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, watermark_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.watermark_id = watermark_id
def validate(self):
self.validate_required(self.watermark_id, 'watermark_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['WatermarkId'] = self.watermark_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.watermark_id = map.get('WatermarkId')
return self
class DeleteWatermarkResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class GetWatermarkRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, watermark_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.watermark_id = watermark_id
def validate(self):
self.validate_required(self.watermark_id, 'watermark_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['WatermarkId'] = self.watermark_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.watermark_id = map.get('WatermarkId')
return self
class GetWatermarkResponse(TeaModel):
def __init__(self, request_id=None, watermark_info=None):
self.request_id = request_id
self.watermark_info = watermark_info
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.watermark_info, 'watermark_info')
if self.watermark_info:
self.watermark_info.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.watermark_info is not None:
result['WatermarkInfo'] = self.watermark_info.to_map()
else:
result['WatermarkInfo'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('WatermarkInfo') is not None:
temp_model = GetWatermarkResponseWatermarkInfo()
self.watermark_info = temp_model.from_map(map['WatermarkInfo'])
else:
self.watermark_info = None
return self
class GetWatermarkResponseWatermarkInfo(TeaModel):
def __init__(self, creation_time=None, type=None, is_default=None, watermark_id=None, name=None, file_url=None, watermark_config=None, app_id=None):
self.creation_time = creation_time
self.type = type
self.is_default = is_default
self.watermark_id = watermark_id
self.name = name
self.file_url = file_url
self.watermark_config = watermark_config
self.app_id = app_id
def validate(self):
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.type, 'type')
self.validate_required(self.is_default, 'is_default')
self.validate_required(self.watermark_id, 'watermark_id')
self.validate_required(self.name, 'name')
self.validate_required(self.file_url, 'file_url')
self.validate_required(self.watermark_config, 'watermark_config')
self.validate_required(self.app_id, 'app_id')
def to_map(self):
result = {}
result['CreationTime'] = self.creation_time
result['Type'] = self.type
result['IsDefault'] = self.is_default
result['WatermarkId'] = self.watermark_id
result['Name'] = self.name
result['FileUrl'] = self.file_url
result['WatermarkConfig'] = self.watermark_config
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.creation_time = map.get('CreationTime')
self.type = map.get('Type')
self.is_default = map.get('IsDefault')
self.watermark_id = map.get('WatermarkId')
self.name = map.get('Name')
self.file_url = map.get('FileUrl')
self.watermark_config = map.get('WatermarkConfig')
self.app_id = map.get('AppId')
return self
class SetDefaultWatermarkRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, watermark_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.watermark_id = watermark_id
def validate(self):
self.validate_required(self.watermark_id, 'watermark_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['WatermarkId'] = self.watermark_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.watermark_id = map.get('WatermarkId')
return self
class SetDefaultWatermarkResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class ListWatermarkRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, page_size=None, page_no=None, app_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.page_size = page_size
self.page_no = page_no
self.app_id = app_id
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['PageSize'] = self.page_size
result['PageNo'] = self.page_no
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.page_size = map.get('PageSize')
self.page_no = map.get('PageNo')
self.app_id = map.get('AppId')
return self
class ListWatermarkResponse(TeaModel):
def __init__(self, request_id=None, watermark_infos=None):
self.request_id = request_id
self.watermark_infos = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.watermark_infos, 'watermark_infos')
if self.watermark_infos:
for k in self.watermark_infos:
if k :
k.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['WatermarkInfos'] = []
if self.watermark_infos is not None:
for k in self.watermark_infos:
result['WatermarkInfos'].append(k.to_map() if k else None)
else:
result['WatermarkInfos'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.watermark_infos = []
if map.get('WatermarkInfos') is not None:
for k in map.get('WatermarkInfos'):
temp_model = ListWatermarkResponseWatermarkInfos()
temp_model = temp_model.from_map(k)
self.watermark_infos.append(temp_model)
else:
self.watermark_infos = None
return self
class ListWatermarkResponseWatermarkInfos(TeaModel):
def __init__(self, creation_time=None, type=None, is_default=None, watermark_id=None, name=None, file_url=None, watermark_config=None, app_id=None):
self.creation_time = creation_time
self.type = type
self.is_default = is_default
self.watermark_id = watermark_id
self.name = name
self.file_url = file_url
self.watermark_config = watermark_config
self.app_id = app_id
def validate(self):
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.type, 'type')
self.validate_required(self.is_default, 'is_default')
self.validate_required(self.watermark_id, 'watermark_id')
self.validate_required(self.name, 'name')
self.validate_required(self.file_url, 'file_url')
self.validate_required(self.watermark_config, 'watermark_config')
self.validate_required(self.app_id, 'app_id')
def to_map(self):
result = {}
result['CreationTime'] = self.creation_time
result['Type'] = self.type
result['IsDefault'] = self.is_default
result['WatermarkId'] = self.watermark_id
result['Name'] = self.name
result['FileUrl'] = self.file_url
result['WatermarkConfig'] = self.watermark_config
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.creation_time = map.get('CreationTime')
self.type = map.get('Type')
self.is_default = map.get('IsDefault')
self.watermark_id = map.get('WatermarkId')
self.name = map.get('Name')
self.file_url = map.get('FileUrl')
self.watermark_config = map.get('WatermarkConfig')
self.app_id = map.get('AppId')
return self
class UpdateWatermarkRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, name=None, watermark_id=None, watermark_config=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.name = name
self.watermark_id = watermark_id
self.watermark_config = watermark_config
def validate(self):
self.validate_required(self.watermark_id, 'watermark_id')
self.validate_required(self.watermark_config, 'watermark_config')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['Name'] = self.name
result['WatermarkId'] = self.watermark_id
result['WatermarkConfig'] = self.watermark_config
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.name = map.get('Name')
self.watermark_id = map.get('WatermarkId')
self.watermark_config = map.get('WatermarkConfig')
return self
class UpdateWatermarkResponse(TeaModel):
def __init__(self, request_id=None, watermark_info=None):
self.request_id = request_id
self.watermark_info = watermark_info
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.watermark_info, 'watermark_info')
if self.watermark_info:
self.watermark_info.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.watermark_info is not None:
result['WatermarkInfo'] = self.watermark_info.to_map()
else:
result['WatermarkInfo'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('WatermarkInfo') is not None:
temp_model = UpdateWatermarkResponseWatermarkInfo()
self.watermark_info = temp_model.from_map(map['WatermarkInfo'])
else:
self.watermark_info = None
return self
class UpdateWatermarkResponseWatermarkInfo(TeaModel):
def __init__(self, creation_time=None, type=None, is_default=None, watermark_id=None, name=None, file_url=None, watermark_config=None):
self.creation_time = creation_time
self.type = type
self.is_default = is_default
self.watermark_id = watermark_id
self.name = name
self.file_url = file_url
self.watermark_config = watermark_config
def validate(self):
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.type, 'type')
self.validate_required(self.is_default, 'is_default')
self.validate_required(self.watermark_id, 'watermark_id')
self.validate_required(self.name, 'name')
self.validate_required(self.file_url, 'file_url')
self.validate_required(self.watermark_config, 'watermark_config')
def to_map(self):
result = {}
result['CreationTime'] = self.creation_time
result['Type'] = self.type
result['IsDefault'] = self.is_default
result['WatermarkId'] = self.watermark_id
result['Name'] = self.name
result['FileUrl'] = self.file_url
result['WatermarkConfig'] = self.watermark_config
return result
def from_map(self, map={}):
self.creation_time = map.get('CreationTime')
self.type = map.get('Type')
self.is_default = map.get('IsDefault')
self.watermark_id = map.get('WatermarkId')
self.name = map.get('Name')
self.file_url = map.get('FileUrl')
self.watermark_config = map.get('WatermarkConfig')
return self
class AddWatermarkRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, type=None, name=None, watermark_config=None, file_url=None, app_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.type = type
self.name = name
self.watermark_config = watermark_config
self.file_url = file_url
self.app_id = app_id
def validate(self):
self.validate_required(self.type, 'type')
self.validate_required(self.name, 'name')
self.validate_required(self.watermark_config, 'watermark_config')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['Type'] = self.type
result['Name'] = self.name
result['WatermarkConfig'] = self.watermark_config
result['FileUrl'] = self.file_url
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.type = map.get('Type')
self.name = map.get('Name')
self.watermark_config = map.get('WatermarkConfig')
self.file_url = map.get('FileUrl')
self.app_id = map.get('AppId')
return self
class AddWatermarkResponse(TeaModel):
def __init__(self, request_id=None, watermark_info=None):
self.request_id = request_id
self.watermark_info = watermark_info
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.watermark_info, 'watermark_info')
if self.watermark_info:
self.watermark_info.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.watermark_info is not None:
result['WatermarkInfo'] = self.watermark_info.to_map()
else:
result['WatermarkInfo'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('WatermarkInfo') is not None:
temp_model = AddWatermarkResponseWatermarkInfo()
self.watermark_info = temp_model.from_map(map['WatermarkInfo'])
else:
self.watermark_info = None
return self
class AddWatermarkResponseWatermarkInfo(TeaModel):
def __init__(self, creation_time=None, type=None, is_default=None, watermark_id=None, name=None, file_url=None, watermark_config=None):
self.creation_time = creation_time
self.type = type
self.is_default = is_default
self.watermark_id = watermark_id
self.name = name
self.file_url = file_url
self.watermark_config = watermark_config
def validate(self):
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.type, 'type')
self.validate_required(self.is_default, 'is_default')
self.validate_required(self.watermark_id, 'watermark_id')
self.validate_required(self.name, 'name')
self.validate_required(self.file_url, 'file_url')
self.validate_required(self.watermark_config, 'watermark_config')
def to_map(self):
result = {}
result['CreationTime'] = self.creation_time
result['Type'] = self.type
result['IsDefault'] = self.is_default
result['WatermarkId'] = self.watermark_id
result['Name'] = self.name
result['FileUrl'] = self.file_url
result['WatermarkConfig'] = self.watermark_config
return result
def from_map(self, map={}):
self.creation_time = map.get('CreationTime')
self.type = map.get('Type')
self.is_default = map.get('IsDefault')
self.watermark_id = map.get('WatermarkId')
self.name = map.get('Name')
self.file_url = map.get('FileUrl')
self.watermark_config = map.get('WatermarkConfig')
return self
class GetMediaDNAResultRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, media_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.media_id = media_id
def validate(self):
self.validate_required(self.media_id, 'media_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['MediaId'] = self.media_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.media_id = map.get('MediaId')
return self
class GetMediaDNAResultResponse(TeaModel):
def __init__(self, request_id=None, dnaresult=None):
self.request_id = request_id
self.dnaresult = dnaresult
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.dnaresult, 'dnaresult')
if self.dnaresult:
self.dnaresult.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.dnaresult is not None:
result['DNAResult'] = self.dnaresult.to_map()
else:
result['DNAResult'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('DNAResult') is not None:
temp_model = GetMediaDNAResultResponseDNAResult()
self.dnaresult = temp_model.from_map(map['DNAResult'])
else:
self.dnaresult = None
return self
class GetMediaDNAResultResponseDNAResultVideoDNADetailInput(TeaModel):
def __init__(self, start=None, duration=None):
self.start = start
self.duration = duration
def validate(self):
self.validate_required(self.start, 'start')
self.validate_required(self.duration, 'duration')
def to_map(self):
result = {}
result['Start'] = self.start
result['Duration'] = self.duration
return result
def from_map(self, map={}):
self.start = map.get('Start')
self.duration = map.get('Duration')
return self
class GetMediaDNAResultResponseDNAResultVideoDNADetailDuplication(TeaModel):
def __init__(self, start=None, duration=None):
self.start = start
self.duration = duration
def validate(self):
self.validate_required(self.start, 'start')
self.validate_required(self.duration, 'duration')
def to_map(self):
result = {}
result['Start'] = self.start
result['Duration'] = self.duration
return result
def from_map(self, map={}):
self.start = map.get('Start')
self.duration = map.get('Duration')
return self
class GetMediaDNAResultResponseDNAResultVideoDNADetail(TeaModel):
def __init__(self, input=None, duplication=None):
self.input = input
self.duplication = duplication
def validate(self):
self.validate_required(self.input, 'input')
if self.input:
self.input.validate()
self.validate_required(self.duplication, 'duplication')
if self.duplication:
self.duplication.validate()
def to_map(self):
result = {}
if self.input is not None:
result['Input'] = self.input.to_map()
else:
result['Input'] = None
if self.duplication is not None:
result['Duplication'] = self.duplication.to_map()
else:
result['Duplication'] = None
return result
def from_map(self, map={}):
if map.get('Input') is not None:
temp_model = GetMediaDNAResultResponseDNAResultVideoDNADetailInput()
self.input = temp_model.from_map(map['Input'])
else:
self.input = None
if map.get('Duplication') is not None:
temp_model = GetMediaDNAResultResponseDNAResultVideoDNADetailDuplication()
self.duplication = temp_model.from_map(map['Duplication'])
else:
self.duplication = None
return self
class GetMediaDNAResultResponseDNAResultVideoDNA(TeaModel):
def __init__(self, primary_key=None, similarity=None, detail=None):
self.primary_key = primary_key
self.similarity = similarity
self.detail = []
def validate(self):
self.validate_required(self.primary_key, 'primary_key')
self.validate_required(self.similarity, 'similarity')
self.validate_required(self.detail, 'detail')
if self.detail:
for k in self.detail:
if k :
k.validate()
def to_map(self):
result = {}
result['PrimaryKey'] = self.primary_key
result['Similarity'] = self.similarity
result['Detail'] = []
if self.detail is not None:
for k in self.detail:
result['Detail'].append(k.to_map() if k else None)
else:
result['Detail'] = None
return result
def from_map(self, map={}):
self.primary_key = map.get('PrimaryKey')
self.similarity = map.get('Similarity')
self.detail = []
if map.get('Detail') is not None:
for k in map.get('Detail'):
temp_model = GetMediaDNAResultResponseDNAResultVideoDNADetail()
temp_model = temp_model.from_map(k)
self.detail.append(temp_model)
else:
self.detail = None
return self
class GetMediaDNAResultResponseDNAResult(TeaModel):
def __init__(self, video_dna=None):
self.video_dna = []
def validate(self):
self.validate_required(self.video_dna, 'video_dna')
if self.video_dna:
for k in self.video_dna:
if k :
k.validate()
def to_map(self):
result = {}
result['VideoDNA'] = []
if self.video_dna is not None:
for k in self.video_dna:
result['VideoDNA'].append(k.to_map() if k else None)
else:
result['VideoDNA'] = None
return result
def from_map(self, map={}):
self.video_dna = []
if map.get('VideoDNA') is not None:
for k in map.get('VideoDNA'):
temp_model = GetMediaDNAResultResponseDNAResultVideoDNA()
temp_model = temp_model.from_map(k)
self.video_dna.append(temp_model)
else:
self.video_dna = None
return self
class DeleteMezzaninesRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_ids=None, force=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_ids = video_ids
self.force = force
def validate(self):
self.validate_required(self.video_ids, 'video_ids')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoIds'] = self.video_ids
result['Force'] = self.force
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_ids = map.get('VideoIds')
self.force = map.get('Force')
return self
class DeleteMezzaninesResponse(TeaModel):
def __init__(self, request_id=None, non_exist_video_ids=None, un_removeable_video_ids=None):
self.request_id = request_id
self.non_exist_video_ids = []
self.un_removeable_video_ids = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.non_exist_video_ids, 'non_exist_video_ids')
self.validate_required(self.un_removeable_video_ids, 'un_removeable_video_ids')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['NonExistVideoIds'] = []
if self.non_exist_video_ids is not None:
for k in self.non_exist_video_ids:
result['NonExistVideoIds'].append(k)
else:
result['NonExistVideoIds'] = None
result['UnRemoveableVideoIds'] = []
if self.un_removeable_video_ids is not None:
for k in self.un_removeable_video_ids:
result['UnRemoveableVideoIds'].append(k)
else:
result['UnRemoveableVideoIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.non_exist_video_ids = []
if map.get('NonExistVideoIds') is not None:
for k in map.get('NonExistVideoIds'):
self.non_exist_video_ids.append(k)
else:
self.non_exist_video_ids = None
self.un_removeable_video_ids = []
if map.get('UnRemoveableVideoIds') is not None:
for k in map.get('UnRemoveableVideoIds'):
self.un_removeable_video_ids.append(k)
else:
self.un_removeable_video_ids = None
return self
class UpdateImageInfosRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, resource_real_owner_id=None, update_content=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.resource_real_owner_id = resource_real_owner_id
self.update_content = update_content
def validate(self):
self.validate_required(self.update_content, 'update_content')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceRealOwnerId'] = self.resource_real_owner_id
result['UpdateContent'] = self.update_content
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_real_owner_id = map.get('ResourceRealOwnerId')
self.update_content = map.get('UpdateContent')
return self
class UpdateImageInfosResponse(TeaModel):
def __init__(self, request_id=None, non_exist_image_ids=None):
self.request_id = request_id
self.non_exist_image_ids = non_exist_image_ids
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.non_exist_image_ids, 'non_exist_image_ids')
if self.non_exist_image_ids:
self.non_exist_image_ids.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.non_exist_image_ids is not None:
result['NonExistImageIds'] = self.non_exist_image_ids.to_map()
else:
result['NonExistImageIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('NonExistImageIds') is not None:
temp_model = UpdateImageInfosResponseNonExistImageIds()
self.non_exist_image_ids = temp_model.from_map(map['NonExistImageIds'])
else:
self.non_exist_image_ids = None
return self
class UpdateImageInfosResponseNonExistImageIds(TeaModel):
def __init__(self, image_id=None):
self.image_id = []
def validate(self):
self.validate_required(self.image_id, 'image_id')
def to_map(self):
result = {}
result['ImageId'] = []
if self.image_id is not None:
for k in self.image_id:
result['ImageId'].append(k)
else:
result['ImageId'] = None
return result
def from_map(self, map={}):
self.image_id = []
if map.get('ImageId') is not None:
for k in map.get('ImageId'):
self.image_id.append(k)
else:
self.image_id = None
return self
class DeleteImageRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, delete_image_type=None, image_urls=None, image_ids=None, video_id=None, image_type=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.delete_image_type = delete_image_type
self.image_urls = image_urls
self.image_ids = image_ids
self.video_id = video_id
self.image_type = image_type
def validate(self):
self.validate_required(self.delete_image_type, 'delete_image_type')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['DeleteImageType'] = self.delete_image_type
result['ImageURLs'] = self.image_urls
result['ImageIds'] = self.image_ids
result['VideoId'] = self.video_id
result['ImageType'] = self.image_type
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.delete_image_type = map.get('DeleteImageType')
self.image_urls = map.get('ImageURLs')
self.image_ids = map.get('ImageIds')
self.video_id = map.get('VideoId')
self.image_type = map.get('ImageType')
return self
class DeleteImageResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class ListAuditSecurityIpRequest(TeaModel):
def __init__(self, security_group_name=None):
self.security_group_name = security_group_name
def validate(self):
pass
def to_map(self):
result = {}
result['SecurityGroupName'] = self.security_group_name
return result
def from_map(self, map={}):
self.security_group_name = map.get('SecurityGroupName')
return self
class ListAuditSecurityIpResponse(TeaModel):
def __init__(self, request_id=None, security_ip_list=None):
self.request_id = request_id
self.security_ip_list = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.security_ip_list, 'security_ip_list')
if self.security_ip_list:
for k in self.security_ip_list:
if k :
k.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['SecurityIpList'] = []
if self.security_ip_list is not None:
for k in self.security_ip_list:
result['SecurityIpList'].append(k.to_map() if k else None)
else:
result['SecurityIpList'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.security_ip_list = []
if map.get('SecurityIpList') is not None:
for k in map.get('SecurityIpList'):
temp_model = ListAuditSecurityIpResponseSecurityIpList()
temp_model = temp_model.from_map(k)
self.security_ip_list.append(temp_model)
else:
self.security_ip_list = None
return self
class ListAuditSecurityIpResponseSecurityIpList(TeaModel):
def __init__(self, security_group_name=None, ips=None, creation_time=None, modification_time=None):
self.security_group_name = security_group_name
self.ips = ips
self.creation_time = creation_time
self.modification_time = modification_time
def validate(self):
self.validate_required(self.security_group_name, 'security_group_name')
self.validate_required(self.ips, 'ips')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modification_time, 'modification_time')
def to_map(self):
result = {}
result['SecurityGroupName'] = self.security_group_name
result['Ips'] = self.ips
result['CreationTime'] = self.creation_time
result['ModificationTime'] = self.modification_time
return result
def from_map(self, map={}):
self.security_group_name = map.get('SecurityGroupName')
self.ips = map.get('Ips')
self.creation_time = map.get('CreationTime')
self.modification_time = map.get('ModificationTime')
return self
class SetAuditSecurityIpRequest(TeaModel):
def __init__(self, security_group_name=None, ips=None, operate_mode=None):
self.security_group_name = security_group_name
self.ips = ips
self.operate_mode = operate_mode
def validate(self):
self.validate_required(self.ips, 'ips')
def to_map(self):
result = {}
result['SecurityGroupName'] = self.security_group_name
result['Ips'] = self.ips
result['OperateMode'] = self.operate_mode
return result
def from_map(self, map={}):
self.security_group_name = map.get('SecurityGroupName')
self.ips = map.get('Ips')
self.operate_mode = map.get('OperateMode')
return self
class SetAuditSecurityIpResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class UploadMediaByURLRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, upload_urls=None, template_group_id=None, storage_location=None, upload_metadatas=None, priority=None, message_callback=None, user_data=None, app_id=None, workflow_id=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.upload_urls = upload_urls
self.template_group_id = template_group_id
self.storage_location = storage_location
self.upload_metadatas = upload_metadatas
self.priority = priority
self.message_callback = message_callback
self.user_data = user_data
self.app_id = app_id
self.workflow_id = workflow_id
def validate(self):
self.validate_required(self.upload_urls, 'upload_urls')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['UploadURLs'] = self.upload_urls
result['TemplateGroupId'] = self.template_group_id
result['StorageLocation'] = self.storage_location
result['UploadMetadatas'] = self.upload_metadatas
result['Priority'] = self.priority
result['MessageCallback'] = self.message_callback
result['UserData'] = self.user_data
result['AppId'] = self.app_id
result['WorkflowId'] = self.workflow_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.upload_urls = map.get('UploadURLs')
self.template_group_id = map.get('TemplateGroupId')
self.storage_location = map.get('StorageLocation')
self.upload_metadatas = map.get('UploadMetadatas')
self.priority = map.get('Priority')
self.message_callback = map.get('MessageCallback')
self.user_data = map.get('UserData')
self.app_id = map.get('AppId')
self.workflow_id = map.get('WorkflowId')
return self
class UploadMediaByURLResponse(TeaModel):
def __init__(self, request_id=None, upload_jobs=None):
self.request_id = request_id
self.upload_jobs = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.upload_jobs, 'upload_jobs')
if self.upload_jobs:
for k in self.upload_jobs:
if k :
k.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['UploadJobs'] = []
if self.upload_jobs is not None:
for k in self.upload_jobs:
result['UploadJobs'].append(k.to_map() if k else None)
else:
result['UploadJobs'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.upload_jobs = []
if map.get('UploadJobs') is not None:
for k in map.get('UploadJobs'):
temp_model = UploadMediaByURLResponseUploadJobs()
temp_model = temp_model.from_map(k)
self.upload_jobs.append(temp_model)
else:
self.upload_jobs = None
return self
class UploadMediaByURLResponseUploadJobs(TeaModel):
def __init__(self, job_id=None, source_url=None):
self.job_id = job_id
self.source_url = source_url
def validate(self):
self.validate_required(self.job_id, 'job_id')
self.validate_required(self.source_url, 'source_url')
def to_map(self):
result = {}
result['JobId'] = self.job_id
result['SourceURL'] = self.source_url
return result
def from_map(self, map={}):
self.job_id = map.get('JobId')
self.source_url = map.get('SourceURL')
return self
class UpdateVideoInfosRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, update_content=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.update_content = update_content
def validate(self):
self.validate_required(self.update_content, 'update_content')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['UpdateContent'] = self.update_content
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.update_content = map.get('UpdateContent')
return self
class UpdateVideoInfosResponse(TeaModel):
def __init__(self, request_id=None, non_exist_video_ids=None, forbidden_video_ids=None):
self.request_id = request_id
self.non_exist_video_ids = []
self.forbidden_video_ids = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.non_exist_video_ids, 'non_exist_video_ids')
self.validate_required(self.forbidden_video_ids, 'forbidden_video_ids')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['NonExistVideoIds'] = []
if self.non_exist_video_ids is not None:
for k in self.non_exist_video_ids:
result['NonExistVideoIds'].append(k)
else:
result['NonExistVideoIds'] = None
result['ForbiddenVideoIds'] = []
if self.forbidden_video_ids is not None:
for k in self.forbidden_video_ids:
result['ForbiddenVideoIds'].append(k)
else:
result['ForbiddenVideoIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.non_exist_video_ids = []
if map.get('NonExistVideoIds') is not None:
for k in map.get('NonExistVideoIds'):
self.non_exist_video_ids.append(k)
else:
self.non_exist_video_ids = None
self.forbidden_video_ids = []
if map.get('ForbiddenVideoIds') is not None:
for k in map.get('ForbiddenVideoIds'):
self.forbidden_video_ids.append(k)
else:
self.forbidden_video_ids = None
return self
class SearchMediaRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, search_type=None, fields=None, match=None, sort_by=None, page_no=None, page_size=None, scroll_token=None, session_id=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.search_type = search_type
self.fields = fields
self.match = match
self.sort_by = sort_by
self.page_no = page_no
self.page_size = page_size
self.scroll_token = scroll_token
self.session_id = session_id
def validate(self):
pass
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['SearchType'] = self.search_type
result['Fields'] = self.fields
result['Match'] = self.match
result['SortBy'] = self.sort_by
result['PageNo'] = self.page_no
result['PageSize'] = self.page_size
result['ScrollToken'] = self.scroll_token
result['SessionId'] = self.session_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.search_type = map.get('SearchType')
self.fields = map.get('Fields')
self.match = map.get('Match')
self.sort_by = map.get('SortBy')
self.page_no = map.get('PageNo')
self.page_size = map.get('PageSize')
self.scroll_token = map.get('ScrollToken')
self.session_id = map.get('SessionId')
return self
class SearchMediaResponse(TeaModel):
def __init__(self, request_id=None, scroll_token=None, total=None, media_list=None):
self.request_id = request_id
self.scroll_token = scroll_token
self.total = total
self.media_list = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.scroll_token, 'scroll_token')
self.validate_required(self.total, 'total')
self.validate_required(self.media_list, 'media_list')
if self.media_list:
for k in self.media_list:
if k :
k.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['ScrollToken'] = self.scroll_token
result['Total'] = self.total
result['MediaList'] = []
if self.media_list is not None:
for k in self.media_list:
result['MediaList'].append(k.to_map() if k else None)
else:
result['MediaList'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.scroll_token = map.get('ScrollToken')
self.total = map.get('Total')
self.media_list = []
if map.get('MediaList') is not None:
for k in map.get('MediaList'):
temp_model = SearchMediaResponseMediaList()
temp_model = temp_model.from_map(k)
self.media_list.append(temp_model)
else:
self.media_list = None
return self
class SearchMediaResponseMediaListVideo(TeaModel):
def __init__(self, video_id=None, media_source=None, media_type=None, title=None, tags=None, status=None, size=None, duration=None, description=None, modification_time=None, creation_time=None, cover_url=None, cate_id=None, cate_name=None, download_switch=None, preprocess_status=None, storage_location=None, region_id=None, transcode_mode=None, audit_status=None, audit_aistatus=None, audit_manual_status=None, audit_airesult=None, audit_template_id=None, custom_media_info=None, app_id=None, snapshots=None, sprite_snapshots=None):
self.video_id = video_id
self.media_source = media_source
self.media_type = media_type
self.title = title
self.tags = tags
self.status = status
self.size = size
self.duration = duration
self.description = description
self.modification_time = modification_time
self.creation_time = creation_time
self.cover_url = cover_url
self.cate_id = cate_id
self.cate_name = cate_name
self.download_switch = download_switch
self.preprocess_status = preprocess_status
self.storage_location = storage_location
self.region_id = region_id
self.transcode_mode = transcode_mode
self.audit_status = audit_status
self.audit_aistatus = audit_aistatus
self.audit_manual_status = audit_manual_status
self.audit_airesult = audit_airesult
self.audit_template_id = audit_template_id
self.custom_media_info = custom_media_info
self.app_id = app_id
self.snapshots = []
self.sprite_snapshots = []
def validate(self):
self.validate_required(self.video_id, 'video_id')
self.validate_required(self.media_source, 'media_source')
self.validate_required(self.media_type, 'media_type')
self.validate_required(self.title, 'title')
self.validate_required(self.tags, 'tags')
self.validate_required(self.status, 'status')
self.validate_required(self.size, 'size')
self.validate_required(self.duration, 'duration')
self.validate_required(self.description, 'description')
self.validate_required(self.modification_time, 'modification_time')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.cover_url, 'cover_url')
self.validate_required(self.cate_id, 'cate_id')
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.download_switch, 'download_switch')
self.validate_required(self.preprocess_status, 'preprocess_status')
self.validate_required(self.storage_location, 'storage_location')
self.validate_required(self.region_id, 'region_id')
self.validate_required(self.transcode_mode, 'transcode_mode')
self.validate_required(self.audit_status, 'audit_status')
self.validate_required(self.audit_aistatus, 'audit_aistatus')
self.validate_required(self.audit_manual_status, 'audit_manual_status')
self.validate_required(self.audit_airesult, 'audit_airesult')
self.validate_required(self.audit_template_id, 'audit_template_id')
self.validate_required(self.custom_media_info, 'custom_media_info')
self.validate_required(self.app_id, 'app_id')
self.validate_required(self.snapshots, 'snapshots')
self.validate_required(self.sprite_snapshots, 'sprite_snapshots')
def to_map(self):
result = {}
result['VideoId'] = self.video_id
result['MediaSource'] = self.media_source
result['MediaType'] = self.media_type
result['Title'] = self.title
result['Tags'] = self.tags
result['Status'] = self.status
result['Size'] = self.size
result['Duration'] = self.duration
result['Description'] = self.description
result['ModificationTime'] = self.modification_time
result['CreationTime'] = self.creation_time
result['CoverURL'] = self.cover_url
result['CateId'] = self.cate_id
result['CateName'] = self.cate_name
result['DownloadSwitch'] = self.download_switch
result['PreprocessStatus'] = self.preprocess_status
result['StorageLocation'] = self.storage_location
result['RegionId'] = self.region_id
result['TranscodeMode'] = self.transcode_mode
result['AuditStatus'] = self.audit_status
result['AuditAIStatus'] = self.audit_aistatus
result['AuditManualStatus'] = self.audit_manual_status
result['AuditAIResult'] = self.audit_airesult
result['AuditTemplateId'] = self.audit_template_id
result['CustomMediaInfo'] = self.custom_media_info
result['AppId'] = self.app_id
result['Snapshots'] = []
if self.snapshots is not None:
for k in self.snapshots:
result['Snapshots'].append(k)
else:
result['Snapshots'] = None
result['SpriteSnapshots'] = []
if self.sprite_snapshots is not None:
for k in self.sprite_snapshots:
result['SpriteSnapshots'].append(k)
else:
result['SpriteSnapshots'] = None
return result
def from_map(self, map={}):
self.video_id = map.get('VideoId')
self.media_source = map.get('MediaSource')
self.media_type = map.get('MediaType')
self.title = map.get('Title')
self.tags = map.get('Tags')
self.status = map.get('Status')
self.size = map.get('Size')
self.duration = map.get('Duration')
self.description = map.get('Description')
self.modification_time = map.get('ModificationTime')
self.creation_time = map.get('CreationTime')
self.cover_url = map.get('CoverURL')
self.cate_id = map.get('CateId')
self.cate_name = map.get('CateName')
self.download_switch = map.get('DownloadSwitch')
self.preprocess_status = map.get('PreprocessStatus')
self.storage_location = map.get('StorageLocation')
self.region_id = map.get('RegionId')
self.transcode_mode = map.get('TranscodeMode')
self.audit_status = map.get('AuditStatus')
self.audit_aistatus = map.get('AuditAIStatus')
self.audit_manual_status = map.get('AuditManualStatus')
self.audit_airesult = map.get('AuditAIResult')
self.audit_template_id = map.get('AuditTemplateId')
self.custom_media_info = map.get('CustomMediaInfo')
self.app_id = map.get('AppId')
self.snapshots = []
if map.get('Snapshots') is not None:
for k in map.get('Snapshots'):
self.snapshots.append(k)
else:
self.snapshots = None
self.sprite_snapshots = []
if map.get('SpriteSnapshots') is not None:
for k in map.get('SpriteSnapshots'):
self.sprite_snapshots.append(k)
else:
self.sprite_snapshots = None
return self
class SearchMediaResponseMediaListAudio(TeaModel):
def __init__(self, audio_id=None, media_source=None, title=None, tags=None, status=None, size=None, duration=None, description=None, modification_time=None, creation_time=None, cover_url=None, cate_id=None, cate_name=None, download_switch=None, preprocess_status=None, storage_location=None, region_id=None, transcode_mode=None, audit_status=None, audit_aistatus=None, audit_manual_status=None, audit_airesult=None, audit_template_id=None, custom_media_info=None, app_id=None, snapshots=None, sprite_snapshots=None):
self.audio_id = audio_id
self.media_source = media_source
self.title = title
self.tags = tags
self.status = status
self.size = size
self.duration = duration
self.description = description
self.modification_time = modification_time
self.creation_time = creation_time
self.cover_url = cover_url
self.cate_id = cate_id
self.cate_name = cate_name
self.download_switch = download_switch
self.preprocess_status = preprocess_status
self.storage_location = storage_location
self.region_id = region_id
self.transcode_mode = transcode_mode
self.audit_status = audit_status
self.audit_aistatus = audit_aistatus
self.audit_manual_status = audit_manual_status
self.audit_airesult = audit_airesult
self.audit_template_id = audit_template_id
self.custom_media_info = custom_media_info
self.app_id = app_id
self.snapshots = []
self.sprite_snapshots = []
def validate(self):
self.validate_required(self.audio_id, 'audio_id')
self.validate_required(self.media_source, 'media_source')
self.validate_required(self.title, 'title')
self.validate_required(self.tags, 'tags')
self.validate_required(self.status, 'status')
self.validate_required(self.size, 'size')
self.validate_required(self.duration, 'duration')
self.validate_required(self.description, 'description')
self.validate_required(self.modification_time, 'modification_time')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.cover_url, 'cover_url')
self.validate_required(self.cate_id, 'cate_id')
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.download_switch, 'download_switch')
self.validate_required(self.preprocess_status, 'preprocess_status')
self.validate_required(self.storage_location, 'storage_location')
self.validate_required(self.region_id, 'region_id')
self.validate_required(self.transcode_mode, 'transcode_mode')
self.validate_required(self.audit_status, 'audit_status')
self.validate_required(self.audit_aistatus, 'audit_aistatus')
self.validate_required(self.audit_manual_status, 'audit_manual_status')
self.validate_required(self.audit_airesult, 'audit_airesult')
self.validate_required(self.audit_template_id, 'audit_template_id')
self.validate_required(self.custom_media_info, 'custom_media_info')
self.validate_required(self.app_id, 'app_id')
self.validate_required(self.snapshots, 'snapshots')
self.validate_required(self.sprite_snapshots, 'sprite_snapshots')
def to_map(self):
result = {}
result['AudioId'] = self.audio_id
result['MediaSource'] = self.media_source
result['Title'] = self.title
result['Tags'] = self.tags
result['Status'] = self.status
result['Size'] = self.size
result['Duration'] = self.duration
result['Description'] = self.description
result['ModificationTime'] = self.modification_time
result['CreationTime'] = self.creation_time
result['CoverURL'] = self.cover_url
result['CateId'] = self.cate_id
result['CateName'] = self.cate_name
result['DownloadSwitch'] = self.download_switch
result['PreprocessStatus'] = self.preprocess_status
result['StorageLocation'] = self.storage_location
result['RegionId'] = self.region_id
result['TranscodeMode'] = self.transcode_mode
result['AuditStatus'] = self.audit_status
result['AuditAIStatus'] = self.audit_aistatus
result['AuditManualStatus'] = self.audit_manual_status
result['AuditAIResult'] = self.audit_airesult
result['AuditTemplateId'] = self.audit_template_id
result['CustomMediaInfo'] = self.custom_media_info
result['AppId'] = self.app_id
result['Snapshots'] = []
if self.snapshots is not None:
for k in self.snapshots:
result['Snapshots'].append(k)
else:
result['Snapshots'] = None
result['SpriteSnapshots'] = []
if self.sprite_snapshots is not None:
for k in self.sprite_snapshots:
result['SpriteSnapshots'].append(k)
else:
result['SpriteSnapshots'] = None
return result
def from_map(self, map={}):
self.audio_id = map.get('AudioId')
self.media_source = map.get('MediaSource')
self.title = map.get('Title')
self.tags = map.get('Tags')
self.status = map.get('Status')
self.size = map.get('Size')
self.duration = map.get('Duration')
self.description = map.get('Description')
self.modification_time = map.get('ModificationTime')
self.creation_time = map.get('CreationTime')
self.cover_url = map.get('CoverURL')
self.cate_id = map.get('CateId')
self.cate_name = map.get('CateName')
self.download_switch = map.get('DownloadSwitch')
self.preprocess_status = map.get('PreprocessStatus')
self.storage_location = map.get('StorageLocation')
self.region_id = map.get('RegionId')
self.transcode_mode = map.get('TranscodeMode')
self.audit_status = map.get('AuditStatus')
self.audit_aistatus = map.get('AuditAIStatus')
self.audit_manual_status = map.get('AuditManualStatus')
self.audit_airesult = map.get('AuditAIResult')
self.audit_template_id = map.get('AuditTemplateId')
self.custom_media_info = map.get('CustomMediaInfo')
self.app_id = map.get('AppId')
self.snapshots = []
if map.get('Snapshots') is not None:
for k in map.get('Snapshots'):
self.snapshots.append(k)
else:
self.snapshots = None
self.sprite_snapshots = []
if map.get('SpriteSnapshots') is not None:
for k in map.get('SpriteSnapshots'):
self.sprite_snapshots.append(k)
else:
self.sprite_snapshots = None
return self
class SearchMediaResponseMediaListImage(TeaModel):
def __init__(self, title=None, image_id=None, cate_id=None, cate_name=None, ext=None, creation_time=None, modification_time=None, tags=None, type=None, _url=None, status=None, description=None, storage_location=None, region_id=None, app_id=None):
self.title = title
self.image_id = image_id
self.cate_id = cate_id
self.cate_name = cate_name
self.ext = ext
self.creation_time = creation_time
self.modification_time = modification_time
self.tags = tags
self.type = type
self._url = _url
self.status = status
self.description = description
self.storage_location = storage_location
self.region_id = region_id
self.app_id = app_id
def validate(self):
self.validate_required(self.title, 'title')
self.validate_required(self.image_id, 'image_id')
self.validate_required(self.cate_id, 'cate_id')
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.ext, 'ext')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modification_time, 'modification_time')
self.validate_required(self.tags, 'tags')
self.validate_required(self.type, 'type')
self.validate_required(self._url, '_url')
self.validate_required(self.status, 'status')
self.validate_required(self.description, 'description')
self.validate_required(self.storage_location, 'storage_location')
self.validate_required(self.region_id, 'region_id')
self.validate_required(self.app_id, 'app_id')
def to_map(self):
result = {}
result['Title'] = self.title
result['ImageId'] = self.image_id
result['CateId'] = self.cate_id
result['CateName'] = self.cate_name
result['Ext'] = self.ext
result['CreationTime'] = self.creation_time
result['ModificationTime'] = self.modification_time
result['Tags'] = self.tags
result['Type'] = self.type
result['URL'] = self._url
result['Status'] = self.status
result['Description'] = self.description
result['StorageLocation'] = self.storage_location
result['RegionId'] = self.region_id
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.title = map.get('Title')
self.image_id = map.get('ImageId')
self.cate_id = map.get('CateId')
self.cate_name = map.get('CateName')
self.ext = map.get('Ext')
self.creation_time = map.get('CreationTime')
self.modification_time = map.get('ModificationTime')
self.tags = map.get('Tags')
self.type = map.get('Type')
self._url = map.get('URL')
self.status = map.get('Status')
self.description = map.get('Description')
self.storage_location = map.get('StorageLocation')
self.region_id = map.get('RegionId')
self.app_id = map.get('AppId')
return self
class SearchMediaResponseMediaListAttachedMediaCategories(TeaModel):
def __init__(self, cate_id=None, cate_name=None, level=None, parent_id=None):
self.cate_id = cate_id
self.cate_name = cate_name
self.level = level
self.parent_id = parent_id
def validate(self):
self.validate_required(self.cate_id, 'cate_id')
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.level, 'level')
self.validate_required(self.parent_id, 'parent_id')
def to_map(self):
result = {}
result['CateId'] = self.cate_id
result['CateName'] = self.cate_name
result['Level'] = self.level
result['ParentId'] = self.parent_id
return result
def from_map(self, map={}):
self.cate_id = map.get('CateId')
self.cate_name = map.get('CateName')
self.level = map.get('Level')
self.parent_id = map.get('ParentId')
return self
class SearchMediaResponseMediaListAttachedMedia(TeaModel):
def __init__(self, title=None, media_id=None, ext=None, creation_time=None, modification_time=None, tags=None, business_type=None, _url=None, status=None, description=None, storage_location=None, region_id=None, app_id=None, icon=None, online_status=None, categories=None):
self.title = title
self.media_id = media_id
self.ext = ext
self.creation_time = creation_time
self.modification_time = modification_time
self.tags = tags
self.business_type = business_type
self._url = _url
self.status = status
self.description = description
self.storage_location = storage_location
self.region_id = region_id
self.app_id = app_id
self.icon = icon
self.online_status = online_status
self.categories = []
def validate(self):
self.validate_required(self.title, 'title')
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.ext, 'ext')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modification_time, 'modification_time')
self.validate_required(self.tags, 'tags')
self.validate_required(self.business_type, 'business_type')
self.validate_required(self._url, '_url')
self.validate_required(self.status, 'status')
self.validate_required(self.description, 'description')
self.validate_required(self.storage_location, 'storage_location')
self.validate_required(self.region_id, 'region_id')
self.validate_required(self.app_id, 'app_id')
self.validate_required(self.icon, 'icon')
self.validate_required(self.online_status, 'online_status')
self.validate_required(self.categories, 'categories')
if self.categories:
for k in self.categories:
if k :
k.validate()
def to_map(self):
result = {}
result['Title'] = self.title
result['MediaId'] = self.media_id
result['Ext'] = self.ext
result['CreationTime'] = self.creation_time
result['ModificationTime'] = self.modification_time
result['Tags'] = self.tags
result['BusinessType'] = self.business_type
result['URL'] = self._url
result['Status'] = self.status
result['Description'] = self.description
result['StorageLocation'] = self.storage_location
result['RegionId'] = self.region_id
result['AppId'] = self.app_id
result['Icon'] = self.icon
result['OnlineStatus'] = self.online_status
result['Categories'] = []
if self.categories is not None:
for k in self.categories:
result['Categories'].append(k.to_map() if k else None)
else:
result['Categories'] = None
return result
def from_map(self, map={}):
self.title = map.get('Title')
self.media_id = map.get('MediaId')
self.ext = map.get('Ext')
self.creation_time = map.get('CreationTime')
self.modification_time = map.get('ModificationTime')
self.tags = map.get('Tags')
self.business_type = map.get('BusinessType')
self._url = map.get('URL')
self.status = map.get('Status')
self.description = map.get('Description')
self.storage_location = map.get('StorageLocation')
self.region_id = map.get('RegionId')
self.app_id = map.get('AppId')
self.icon = map.get('Icon')
self.online_status = map.get('OnlineStatus')
self.categories = []
if map.get('Categories') is not None:
for k in map.get('Categories'):
temp_model = SearchMediaResponseMediaListAttachedMediaCategories()
temp_model = temp_model.from_map(k)
self.categories.append(temp_model)
else:
self.categories = None
return self
class SearchMediaResponseMediaList(TeaModel):
def __init__(self, media_type=None, creation_time=None, media_id=None, video=None, audio=None, image=None, attached_media=None):
self.media_type = media_type
self.creation_time = creation_time
self.media_id = media_id
self.video = video
self.audio = audio
self.image = image
self.attached_media = attached_media
def validate(self):
self.validate_required(self.media_type, 'media_type')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.video, 'video')
if self.video:
self.video.validate()
self.validate_required(self.audio, 'audio')
if self.audio:
self.audio.validate()
self.validate_required(self.image, 'image')
if self.image:
self.image.validate()
self.validate_required(self.attached_media, 'attached_media')
if self.attached_media:
self.attached_media.validate()
def to_map(self):
result = {}
result['MediaType'] = self.media_type
result['CreationTime'] = self.creation_time
result['MediaId'] = self.media_id
if self.video is not None:
result['Video'] = self.video.to_map()
else:
result['Video'] = None
if self.audio is not None:
result['Audio'] = self.audio.to_map()
else:
result['Audio'] = None
if self.image is not None:
result['Image'] = self.image.to_map()
else:
result['Image'] = None
if self.attached_media is not None:
result['AttachedMedia'] = self.attached_media.to_map()
else:
result['AttachedMedia'] = None
return result
def from_map(self, map={}):
self.media_type = map.get('MediaType')
self.creation_time = map.get('CreationTime')
self.media_id = map.get('MediaId')
if map.get('Video') is not None:
temp_model = SearchMediaResponseMediaListVideo()
self.video = temp_model.from_map(map['Video'])
else:
self.video = None
if map.get('Audio') is not None:
temp_model = SearchMediaResponseMediaListAudio()
self.audio = temp_model.from_map(map['Audio'])
else:
self.audio = None
if map.get('Image') is not None:
temp_model = SearchMediaResponseMediaListImage()
self.image = temp_model.from_map(map['Image'])
else:
self.image = None
if map.get('AttachedMedia') is not None:
temp_model = SearchMediaResponseMediaListAttachedMedia()
self.attached_media = temp_model.from_map(map['AttachedMedia'])
else:
self.attached_media = None
return self
class GetVideoInfosRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_ids=None, addition_type=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_ids = video_ids
self.addition_type = addition_type
def validate(self):
self.validate_required(self.video_ids, 'video_ids')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoIds'] = self.video_ids
result['AdditionType'] = self.addition_type
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_ids = map.get('VideoIds')
self.addition_type = map.get('AdditionType')
return self
class GetVideoInfosResponse(TeaModel):
def __init__(self, request_id=None, video_list=None, non_exist_video_ids=None):
self.request_id = request_id
self.video_list = []
self.non_exist_video_ids = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.video_list, 'video_list')
if self.video_list:
for k in self.video_list:
if k :
k.validate()
self.validate_required(self.non_exist_video_ids, 'non_exist_video_ids')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['VideoList'] = []
if self.video_list is not None:
for k in self.video_list:
result['VideoList'].append(k.to_map() if k else None)
else:
result['VideoList'] = None
result['NonExistVideoIds'] = []
if self.non_exist_video_ids is not None:
for k in self.non_exist_video_ids:
result['NonExistVideoIds'].append(k)
else:
result['NonExistVideoIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.video_list = []
if map.get('VideoList') is not None:
for k in map.get('VideoList'):
temp_model = GetVideoInfosResponseVideoList()
temp_model = temp_model.from_map(k)
self.video_list.append(temp_model)
else:
self.video_list = None
self.non_exist_video_ids = []
if map.get('NonExistVideoIds') is not None:
for k in map.get('NonExistVideoIds'):
self.non_exist_video_ids.append(k)
else:
self.non_exist_video_ids = None
return self
class GetVideoInfosResponseVideoListThumbnailList(TeaModel):
def __init__(self, _url=None):
self._url = _url
def validate(self):
self.validate_required(self._url, '_url')
def to_map(self):
result = {}
result['URL'] = self._url
return result
def from_map(self, map={}):
self._url = map.get('URL')
return self
class GetVideoInfosResponseVideoList(TeaModel):
def __init__(self, video_id=None, title=None, tags=None, status=None, size=None, duration=None, description=None, modification_time=None, creation_time=None, cover_url=None, cate_id=None, cate_name=None, download_switch=None, template_group_id=None, preprocess_status=None, storage_location=None, region_id=None, custom_media_info=None, app_id=None, thumbnail_list=None, snapshots=None):
self.video_id = video_id
self.title = title
self.tags = tags
self.status = status
self.size = size
self.duration = duration
self.description = description
self.modification_time = modification_time
self.creation_time = creation_time
self.cover_url = cover_url
self.cate_id = cate_id
self.cate_name = cate_name
self.download_switch = download_switch
self.template_group_id = template_group_id
self.preprocess_status = preprocess_status
self.storage_location = storage_location
self.region_id = region_id
self.custom_media_info = custom_media_info
self.app_id = app_id
self.thumbnail_list = []
self.snapshots = []
def validate(self):
self.validate_required(self.video_id, 'video_id')
self.validate_required(self.title, 'title')
self.validate_required(self.tags, 'tags')
self.validate_required(self.status, 'status')
self.validate_required(self.size, 'size')
self.validate_required(self.duration, 'duration')
self.validate_required(self.description, 'description')
self.validate_required(self.modification_time, 'modification_time')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.cover_url, 'cover_url')
self.validate_required(self.cate_id, 'cate_id')
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.download_switch, 'download_switch')
self.validate_required(self.template_group_id, 'template_group_id')
self.validate_required(self.preprocess_status, 'preprocess_status')
self.validate_required(self.storage_location, 'storage_location')
self.validate_required(self.region_id, 'region_id')
self.validate_required(self.custom_media_info, 'custom_media_info')
self.validate_required(self.app_id, 'app_id')
self.validate_required(self.thumbnail_list, 'thumbnail_list')
if self.thumbnail_list:
for k in self.thumbnail_list:
if k :
k.validate()
self.validate_required(self.snapshots, 'snapshots')
def to_map(self):
result = {}
result['VideoId'] = self.video_id
result['Title'] = self.title
result['Tags'] = self.tags
result['Status'] = self.status
result['Size'] = self.size
result['Duration'] = self.duration
result['Description'] = self.description
result['ModificationTime'] = self.modification_time
result['CreationTime'] = self.creation_time
result['CoverURL'] = self.cover_url
result['CateId'] = self.cate_id
result['CateName'] = self.cate_name
result['DownloadSwitch'] = self.download_switch
result['TemplateGroupId'] = self.template_group_id
result['PreprocessStatus'] = self.preprocess_status
result['StorageLocation'] = self.storage_location
result['RegionId'] = self.region_id
result['CustomMediaInfo'] = self.custom_media_info
result['AppId'] = self.app_id
result['ThumbnailList'] = []
if self.thumbnail_list is not None:
for k in self.thumbnail_list:
result['ThumbnailList'].append(k.to_map() if k else None)
else:
result['ThumbnailList'] = None
result['Snapshots'] = []
if self.snapshots is not None:
for k in self.snapshots:
result['Snapshots'].append(k)
else:
result['Snapshots'] = None
return result
def from_map(self, map={}):
self.video_id = map.get('VideoId')
self.title = map.get('Title')
self.tags = map.get('Tags')
self.status = map.get('Status')
self.size = map.get('Size')
self.duration = map.get('Duration')
self.description = map.get('Description')
self.modification_time = map.get('ModificationTime')
self.creation_time = map.get('CreationTime')
self.cover_url = map.get('CoverURL')
self.cate_id = map.get('CateId')
self.cate_name = map.get('CateName')
self.download_switch = map.get('DownloadSwitch')
self.template_group_id = map.get('TemplateGroupId')
self.preprocess_status = map.get('PreprocessStatus')
self.storage_location = map.get('StorageLocation')
self.region_id = map.get('RegionId')
self.custom_media_info = map.get('CustomMediaInfo')
self.app_id = map.get('AppId')
self.thumbnail_list = []
if map.get('ThumbnailList') is not None:
for k in map.get('ThumbnailList'):
temp_model = GetVideoInfosResponseVideoListThumbnailList()
temp_model = temp_model.from_map(k)
self.thumbnail_list.append(temp_model)
else:
self.thumbnail_list = None
self.snapshots = []
if map.get('Snapshots') is not None:
for k in map.get('Snapshots'):
self.snapshots.append(k)
else:
self.snapshots = None
return self
class SubmitPreprocessJobsRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_id=None, preprocess_type=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_id = video_id
self.preprocess_type = preprocess_type
def validate(self):
self.validate_required(self.video_id, 'video_id')
self.validate_required(self.preprocess_type, 'preprocess_type')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoId'] = self.video_id
result['PreprocessType'] = self.preprocess_type
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_id = map.get('VideoId')
self.preprocess_type = map.get('PreprocessType')
return self
class SubmitPreprocessJobsResponse(TeaModel):
def __init__(self, request_id=None, preprocess_jobs=None):
self.request_id = request_id
self.preprocess_jobs = preprocess_jobs
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.preprocess_jobs, 'preprocess_jobs')
if self.preprocess_jobs:
self.preprocess_jobs.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.preprocess_jobs is not None:
result['PreprocessJobs'] = self.preprocess_jobs.to_map()
else:
result['PreprocessJobs'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('PreprocessJobs') is not None:
temp_model = SubmitPreprocessJobsResponsePreprocessJobs()
self.preprocess_jobs = temp_model.from_map(map['PreprocessJobs'])
else:
self.preprocess_jobs = None
return self
class SubmitPreprocessJobsResponsePreprocessJobsPreprocessJob(TeaModel):
def __init__(self, job_id=None):
self.job_id = job_id
def validate(self):
self.validate_required(self.job_id, 'job_id')
def to_map(self):
result = {}
result['JobId'] = self.job_id
return result
def from_map(self, map={}):
self.job_id = map.get('JobId')
return self
class SubmitPreprocessJobsResponsePreprocessJobs(TeaModel):
def __init__(self, preprocess_job=None):
self.preprocess_job = []
def validate(self):
self.validate_required(self.preprocess_job, 'preprocess_job')
if self.preprocess_job:
for k in self.preprocess_job:
if k :
k.validate()
def to_map(self):
result = {}
result['PreprocessJob'] = []
if self.preprocess_job is not None:
for k in self.preprocess_job:
result['PreprocessJob'].append(k.to_map() if k else None)
else:
result['PreprocessJob'] = None
return result
def from_map(self, map={}):
self.preprocess_job = []
if map.get('PreprocessJob') is not None:
for k in map.get('PreprocessJob'):
temp_model = SubmitPreprocessJobsResponsePreprocessJobsPreprocessJob()
temp_model = temp_model.from_map(k)
self.preprocess_job.append(temp_model)
else:
self.preprocess_job = None
return self
class DescribePlayVideoStatisRequest(TeaModel):
def __init__(self, owner_id=None, start_time=None, end_time=None, video_id=None):
self.owner_id = owner_id
self.start_time = start_time
self.end_time = end_time
self.video_id = video_id
def validate(self):
self.validate_required(self.start_time, 'start_time')
self.validate_required(self.end_time, 'end_time')
self.validate_required(self.video_id, 'video_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
result['VideoId'] = self.video_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
self.video_id = map.get('VideoId')
return self
class DescribePlayVideoStatisResponse(TeaModel):
def __init__(self, request_id=None, video_play_statis_details=None):
self.request_id = request_id
self.video_play_statis_details = video_play_statis_details
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.video_play_statis_details, 'video_play_statis_details')
if self.video_play_statis_details:
self.video_play_statis_details.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.video_play_statis_details is not None:
result['VideoPlayStatisDetails'] = self.video_play_statis_details.to_map()
else:
result['VideoPlayStatisDetails'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('VideoPlayStatisDetails') is not None:
temp_model = DescribePlayVideoStatisResponseVideoPlayStatisDetails()
self.video_play_statis_details = temp_model.from_map(map['VideoPlayStatisDetails'])
else:
self.video_play_statis_details = None
return self
class DescribePlayVideoStatisResponseVideoPlayStatisDetailsVideoPlayStatisDetail(TeaModel):
def __init__(self, date=None, play_duration=None, _vv=None, _uv=None, play_range=None, title=None):
self.date = date
self.play_duration = play_duration
self._vv = _vv
self._uv = _uv
self.play_range = play_range
self.title = title
def validate(self):
self.validate_required(self.date, 'date')
self.validate_required(self.play_duration, 'play_duration')
self.validate_required(self._vv, '_vv')
self.validate_required(self._uv, '_uv')
self.validate_required(self.play_range, 'play_range')
self.validate_required(self.title, 'title')
def to_map(self):
result = {}
result['Date'] = self.date
result['PlayDuration'] = self.play_duration
result['VV'] = self._vv
result['UV'] = self._uv
result['PlayRange'] = self.play_range
result['Title'] = self.title
return result
def from_map(self, map={}):
self.date = map.get('Date')
self.play_duration = map.get('PlayDuration')
self._vv = map.get('VV')
self._uv = map.get('UV')
self.play_range = map.get('PlayRange')
self.title = map.get('Title')
return self
class DescribePlayVideoStatisResponseVideoPlayStatisDetails(TeaModel):
def __init__(self, video_play_statis_detail=None):
self.video_play_statis_detail = []
def validate(self):
self.validate_required(self.video_play_statis_detail, 'video_play_statis_detail')
if self.video_play_statis_detail:
for k in self.video_play_statis_detail:
if k :
k.validate()
def to_map(self):
result = {}
result['VideoPlayStatisDetail'] = []
if self.video_play_statis_detail is not None:
for k in self.video_play_statis_detail:
result['VideoPlayStatisDetail'].append(k.to_map() if k else None)
else:
result['VideoPlayStatisDetail'] = None
return result
def from_map(self, map={}):
self.video_play_statis_detail = []
if map.get('VideoPlayStatisDetail') is not None:
for k in map.get('VideoPlayStatisDetail'):
temp_model = DescribePlayVideoStatisResponseVideoPlayStatisDetailsVideoPlayStatisDetail()
temp_model = temp_model.from_map(k)
self.video_play_statis_detail.append(temp_model)
else:
self.video_play_statis_detail = None
return self
class DescribePlayUserTotalRequest(TeaModel):
def __init__(self, owner_id=None, start_time=None, end_time=None):
self.owner_id = owner_id
self.start_time = start_time
self.end_time = end_time
def validate(self):
self.validate_required(self.start_time, 'start_time')
self.validate_required(self.end_time, 'end_time')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
return self
class DescribePlayUserTotalResponse(TeaModel):
def __init__(self, request_id=None, user_play_statis_totals=None):
self.request_id = request_id
self.user_play_statis_totals = user_play_statis_totals
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.user_play_statis_totals, 'user_play_statis_totals')
if self.user_play_statis_totals:
self.user_play_statis_totals.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.user_play_statis_totals is not None:
result['UserPlayStatisTotals'] = self.user_play_statis_totals.to_map()
else:
result['UserPlayStatisTotals'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('UserPlayStatisTotals') is not None:
temp_model = DescribePlayUserTotalResponseUserPlayStatisTotals()
self.user_play_statis_totals = temp_model.from_map(map['UserPlayStatisTotals'])
else:
self.user_play_statis_totals = None
return self
class DescribePlayUserTotalResponseUserPlayStatisTotalsUserPlayStatisTotalVV(TeaModel):
def __init__(self, android=None, i_os=None, flash=None, _html5=None):
self.android = android
self.i_os = i_os
self.flash = flash
self._html5 = _html5
def validate(self):
self.validate_required(self.android, 'android')
self.validate_required(self.i_os, 'i_os')
self.validate_required(self.flash, 'flash')
self.validate_required(self._html5, '_html5')
def to_map(self):
result = {}
result['Android'] = self.android
result['iOS'] = self.i_os
result['Flash'] = self.flash
result['HTML5'] = self._html5
return result
def from_map(self, map={}):
self.android = map.get('Android')
self.i_os = map.get('iOS')
self.flash = map.get('Flash')
self._html5 = map.get('HTML5')
return self
class DescribePlayUserTotalResponseUserPlayStatisTotalsUserPlayStatisTotalUV(TeaModel):
def __init__(self, android=None, i_os=None, flash=None, _html5=None):
self.android = android
self.i_os = i_os
self.flash = flash
self._html5 = _html5
def validate(self):
self.validate_required(self.android, 'android')
self.validate_required(self.i_os, 'i_os')
self.validate_required(self.flash, 'flash')
self.validate_required(self._html5, '_html5')
def to_map(self):
result = {}
result['Android'] = self.android
result['iOS'] = self.i_os
result['Flash'] = self.flash
result['HTML5'] = self._html5
return result
def from_map(self, map={}):
self.android = map.get('Android')
self.i_os = map.get('iOS')
self.flash = map.get('Flash')
self._html5 = map.get('HTML5')
return self
class DescribePlayUserTotalResponseUserPlayStatisTotalsUserPlayStatisTotal(TeaModel):
def __init__(self, date=None, play_duration=None, play_range=None, _vv=None, _uv=None):
self.date = date
self.play_duration = play_duration
self.play_range = play_range
self._vv = _vv
self._uv = _uv
def validate(self):
self.validate_required(self.date, 'date')
self.validate_required(self.play_duration, 'play_duration')
self.validate_required(self.play_range, 'play_range')
self.validate_required(self._vv, '_vv')
if self._vv:
self._vv.validate()
self.validate_required(self._uv, '_uv')
if self._uv:
self._uv.validate()
def to_map(self):
result = {}
result['Date'] = self.date
result['PlayDuration'] = self.play_duration
result['PlayRange'] = self.play_range
if self._vv is not None:
result['VV'] = self._vv.to_map()
else:
result['VV'] = None
if self._uv is not None:
result['UV'] = self._uv.to_map()
else:
result['UV'] = None
return result
def from_map(self, map={}):
self.date = map.get('Date')
self.play_duration = map.get('PlayDuration')
self.play_range = map.get('PlayRange')
if map.get('VV') is not None:
temp_model = DescribePlayUserTotalResponseUserPlayStatisTotalsUserPlayStatisTotalVV()
self._vv = temp_model.from_map(map['VV'])
else:
self._vv = None
if map.get('UV') is not None:
temp_model = DescribePlayUserTotalResponseUserPlayStatisTotalsUserPlayStatisTotalUV()
self._uv = temp_model.from_map(map['UV'])
else:
self._uv = None
return self
class DescribePlayUserTotalResponseUserPlayStatisTotals(TeaModel):
def __init__(self, user_play_statis_total=None):
self.user_play_statis_total = []
def validate(self):
self.validate_required(self.user_play_statis_total, 'user_play_statis_total')
if self.user_play_statis_total:
for k in self.user_play_statis_total:
if k :
k.validate()
def to_map(self):
result = {}
result['UserPlayStatisTotal'] = []
if self.user_play_statis_total is not None:
for k in self.user_play_statis_total:
result['UserPlayStatisTotal'].append(k.to_map() if k else None)
else:
result['UserPlayStatisTotal'] = None
return result
def from_map(self, map={}):
self.user_play_statis_total = []
if map.get('UserPlayStatisTotal') is not None:
for k in map.get('UserPlayStatisTotal'):
temp_model = DescribePlayUserTotalResponseUserPlayStatisTotalsUserPlayStatisTotal()
temp_model = temp_model.from_map(k)
self.user_play_statis_total.append(temp_model)
else:
self.user_play_statis_total = None
return self
class DescribePlayUserAvgRequest(TeaModel):
def __init__(self, owner_id=None, start_time=None, end_time=None):
self.owner_id = owner_id
self.start_time = start_time
self.end_time = end_time
def validate(self):
self.validate_required(self.start_time, 'start_time')
self.validate_required(self.end_time, 'end_time')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
return self
class DescribePlayUserAvgResponse(TeaModel):
def __init__(self, request_id=None, user_play_statis_avgs=None):
self.request_id = request_id
self.user_play_statis_avgs = user_play_statis_avgs
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.user_play_statis_avgs, 'user_play_statis_avgs')
if self.user_play_statis_avgs:
self.user_play_statis_avgs.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.user_play_statis_avgs is not None:
result['UserPlayStatisAvgs'] = self.user_play_statis_avgs.to_map()
else:
result['UserPlayStatisAvgs'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('UserPlayStatisAvgs') is not None:
temp_model = DescribePlayUserAvgResponseUserPlayStatisAvgs()
self.user_play_statis_avgs = temp_model.from_map(map['UserPlayStatisAvgs'])
else:
self.user_play_statis_avgs = None
return self
class DescribePlayUserAvgResponseUserPlayStatisAvgsUserPlayStatisAvg(TeaModel):
def __init__(self, date=None, avg_play_duration=None, avg_play_count=None):
self.date = date
self.avg_play_duration = avg_play_duration
self.avg_play_count = avg_play_count
def validate(self):
self.validate_required(self.date, 'date')
self.validate_required(self.avg_play_duration, 'avg_play_duration')
self.validate_required(self.avg_play_count, 'avg_play_count')
def to_map(self):
result = {}
result['Date'] = self.date
result['AvgPlayDuration'] = self.avg_play_duration
result['AvgPlayCount'] = self.avg_play_count
return result
def from_map(self, map={}):
self.date = map.get('Date')
self.avg_play_duration = map.get('AvgPlayDuration')
self.avg_play_count = map.get('AvgPlayCount')
return self
class DescribePlayUserAvgResponseUserPlayStatisAvgs(TeaModel):
def __init__(self, user_play_statis_avg=None):
self.user_play_statis_avg = []
def validate(self):
self.validate_required(self.user_play_statis_avg, 'user_play_statis_avg')
if self.user_play_statis_avg:
for k in self.user_play_statis_avg:
if k :
k.validate()
def to_map(self):
result = {}
result['UserPlayStatisAvg'] = []
if self.user_play_statis_avg is not None:
for k in self.user_play_statis_avg:
result['UserPlayStatisAvg'].append(k.to_map() if k else None)
else:
result['UserPlayStatisAvg'] = None
return result
def from_map(self, map={}):
self.user_play_statis_avg = []
if map.get('UserPlayStatisAvg') is not None:
for k in map.get('UserPlayStatisAvg'):
temp_model = DescribePlayUserAvgResponseUserPlayStatisAvgsUserPlayStatisAvg()
temp_model = temp_model.from_map(k)
self.user_play_statis_avg.append(temp_model)
else:
self.user_play_statis_avg = None
return self
class DescribePlayTopVideosRequest(TeaModel):
def __init__(self, owner_id=None, biz_date=None, page_no=None, page_size=None):
self.owner_id = owner_id
self.biz_date = biz_date
self.page_no = page_no
self.page_size = page_size
def validate(self):
self.validate_required(self.biz_date, 'biz_date')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['BizDate'] = self.biz_date
result['PageNo'] = self.page_no
result['PageSize'] = self.page_size
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.biz_date = map.get('BizDate')
self.page_no = map.get('PageNo')
self.page_size = map.get('PageSize')
return self
class DescribePlayTopVideosResponse(TeaModel):
def __init__(self, request_id=None, page_no=None, page_size=None, total_num=None, top_play_videos=None):
self.request_id = request_id
self.page_no = page_no
self.page_size = page_size
self.total_num = total_num
self.top_play_videos = top_play_videos
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.page_no, 'page_no')
self.validate_required(self.page_size, 'page_size')
self.validate_required(self.total_num, 'total_num')
self.validate_required(self.top_play_videos, 'top_play_videos')
if self.top_play_videos:
self.top_play_videos.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['PageNo'] = self.page_no
result['PageSize'] = self.page_size
result['TotalNum'] = self.total_num
if self.top_play_videos is not None:
result['TopPlayVideos'] = self.top_play_videos.to_map()
else:
result['TopPlayVideos'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.page_no = map.get('PageNo')
self.page_size = map.get('PageSize')
self.total_num = map.get('TotalNum')
if map.get('TopPlayVideos') is not None:
temp_model = DescribePlayTopVideosResponseTopPlayVideos()
self.top_play_videos = temp_model.from_map(map['TopPlayVideos'])
else:
self.top_play_videos = None
return self
class DescribePlayTopVideosResponseTopPlayVideosTopPlayVideoStatis(TeaModel):
def __init__(self, play_duration=None, _vv=None, _uv=None, video_id=None, title=None):
self.play_duration = play_duration
self._vv = _vv
self._uv = _uv
self.video_id = video_id
self.title = title
def validate(self):
self.validate_required(self.play_duration, 'play_duration')
self.validate_required(self._vv, '_vv')
self.validate_required(self._uv, '_uv')
self.validate_required(self.video_id, 'video_id')
self.validate_required(self.title, 'title')
def to_map(self):
result = {}
result['PlayDuration'] = self.play_duration
result['VV'] = self._vv
result['UV'] = self._uv
result['VideoId'] = self.video_id
result['Title'] = self.title
return result
def from_map(self, map={}):
self.play_duration = map.get('PlayDuration')
self._vv = map.get('VV')
self._uv = map.get('UV')
self.video_id = map.get('VideoId')
self.title = map.get('Title')
return self
class DescribePlayTopVideosResponseTopPlayVideos(TeaModel):
def __init__(self, top_play_video_statis=None):
self.top_play_video_statis = []
def validate(self):
self.validate_required(self.top_play_video_statis, 'top_play_video_statis')
if self.top_play_video_statis:
for k in self.top_play_video_statis:
if k :
k.validate()
def to_map(self):
result = {}
result['TopPlayVideoStatis'] = []
if self.top_play_video_statis is not None:
for k in self.top_play_video_statis:
result['TopPlayVideoStatis'].append(k.to_map() if k else None)
else:
result['TopPlayVideoStatis'] = None
return result
def from_map(self, map={}):
self.top_play_video_statis = []
if map.get('TopPlayVideoStatis') is not None:
for k in map.get('TopPlayVideoStatis'):
temp_model = DescribePlayTopVideosResponseTopPlayVideosTopPlayVideoStatis()
temp_model = temp_model.from_map(k)
self.top_play_video_statis.append(temp_model)
else:
self.top_play_video_statis = None
return self
class ListSnapshotsRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_id=None, snapshot_type=None, auth_timeout=None, page_size=None, page_no=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_id = video_id
self.snapshot_type = snapshot_type
self.auth_timeout = auth_timeout
self.page_size = page_size
self.page_no = page_no
def validate(self):
self.validate_required(self.video_id, 'video_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoId'] = self.video_id
result['SnapshotType'] = self.snapshot_type
result['AuthTimeout'] = self.auth_timeout
result['PageSize'] = self.page_size
result['PageNo'] = self.page_no
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_id = map.get('VideoId')
self.snapshot_type = map.get('SnapshotType')
self.auth_timeout = map.get('AuthTimeout')
self.page_size = map.get('PageSize')
self.page_no = map.get('PageNo')
return self
class ListSnapshotsResponse(TeaModel):
def __init__(self, request_id=None, media_snapshot=None):
self.request_id = request_id
self.media_snapshot = media_snapshot
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.media_snapshot, 'media_snapshot')
if self.media_snapshot:
self.media_snapshot.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.media_snapshot is not None:
result['MediaSnapshot'] = self.media_snapshot.to_map()
else:
result['MediaSnapshot'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('MediaSnapshot') is not None:
temp_model = ListSnapshotsResponseMediaSnapshot()
self.media_snapshot = temp_model.from_map(map['MediaSnapshot'])
else:
self.media_snapshot = None
return self
class ListSnapshotsResponseMediaSnapshotSnapshotsSnapshot(TeaModel):
def __init__(self, index=None, url=None):
self.index = index
self.url = url
def validate(self):
self.validate_required(self.index, 'index')
self.validate_required(self.url, 'url')
def to_map(self):
result = {}
result['Index'] = self.index
result['Url'] = self.url
return result
def from_map(self, map={}):
self.index = map.get('Index')
self.url = map.get('Url')
return self
class ListSnapshotsResponseMediaSnapshotSnapshots(TeaModel):
def __init__(self, snapshot=None):
self.snapshot = []
def validate(self):
self.validate_required(self.snapshot, 'snapshot')
if self.snapshot:
for k in self.snapshot:
if k :
k.validate()
def to_map(self):
result = {}
result['Snapshot'] = []
if self.snapshot is not None:
for k in self.snapshot:
result['Snapshot'].append(k.to_map() if k else None)
else:
result['Snapshot'] = None
return result
def from_map(self, map={}):
self.snapshot = []
if map.get('Snapshot') is not None:
for k in map.get('Snapshot'):
temp_model = ListSnapshotsResponseMediaSnapshotSnapshotsSnapshot()
temp_model = temp_model.from_map(k)
self.snapshot.append(temp_model)
else:
self.snapshot = None
return self
class ListSnapshotsResponseMediaSnapshot(TeaModel):
def __init__(self, total=None, regular=None, creation_time=None, job_id=None, snapshots=None):
self.total = total
self.regular = regular
self.creation_time = creation_time
self.job_id = job_id
self.snapshots = snapshots
def validate(self):
self.validate_required(self.total, 'total')
self.validate_required(self.regular, 'regular')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.job_id, 'job_id')
self.validate_required(self.snapshots, 'snapshots')
if self.snapshots:
self.snapshots.validate()
def to_map(self):
result = {}
result['Total'] = self.total
result['Regular'] = self.regular
result['CreationTime'] = self.creation_time
result['JobId'] = self.job_id
if self.snapshots is not None:
result['Snapshots'] = self.snapshots.to_map()
else:
result['Snapshots'] = None
return result
def from_map(self, map={}):
self.total = map.get('Total')
self.regular = map.get('Regular')
self.creation_time = map.get('CreationTime')
self.job_id = map.get('JobId')
if map.get('Snapshots') is not None:
temp_model = ListSnapshotsResponseMediaSnapshotSnapshots()
self.snapshots = temp_model.from_map(map['Snapshots'])
else:
self.snapshots = None
return self
class SubmitTranscodeJobsRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_id=None, template_group_id=None, pipeline_id=None, encrypt_config=None, override_params=None, priority=None, user_data=None, file_url=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_id = video_id
self.template_group_id = template_group_id
self.pipeline_id = pipeline_id
self.encrypt_config = encrypt_config
self.override_params = override_params
self.priority = priority
self.user_data = user_data
self.file_url = file_url
def validate(self):
self.validate_required(self.template_group_id, 'template_group_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoId'] = self.video_id
result['TemplateGroupId'] = self.template_group_id
result['PipelineId'] = self.pipeline_id
result['EncryptConfig'] = self.encrypt_config
result['OverrideParams'] = self.override_params
result['Priority'] = self.priority
result['UserData'] = self.user_data
result['FileUrl'] = self.file_url
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_id = map.get('VideoId')
self.template_group_id = map.get('TemplateGroupId')
self.pipeline_id = map.get('PipelineId')
self.encrypt_config = map.get('EncryptConfig')
self.override_params = map.get('OverrideParams')
self.priority = map.get('Priority')
self.user_data = map.get('UserData')
self.file_url = map.get('FileUrl')
return self
class SubmitTranscodeJobsResponse(TeaModel):
def __init__(self, request_id=None, transcode_task_id=None, transcode_jobs=None):
self.request_id = request_id
self.transcode_task_id = transcode_task_id
self.transcode_jobs = transcode_jobs
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.transcode_task_id, 'transcode_task_id')
self.validate_required(self.transcode_jobs, 'transcode_jobs')
if self.transcode_jobs:
self.transcode_jobs.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['TranscodeTaskId'] = self.transcode_task_id
if self.transcode_jobs is not None:
result['TranscodeJobs'] = self.transcode_jobs.to_map()
else:
result['TranscodeJobs'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.transcode_task_id = map.get('TranscodeTaskId')
if map.get('TranscodeJobs') is not None:
temp_model = SubmitTranscodeJobsResponseTranscodeJobs()
self.transcode_jobs = temp_model.from_map(map['TranscodeJobs'])
else:
self.transcode_jobs = None
return self
class SubmitTranscodeJobsResponseTranscodeJobsTranscodeJob(TeaModel):
def __init__(self, job_id=None):
self.job_id = job_id
def validate(self):
self.validate_required(self.job_id, 'job_id')
def to_map(self):
result = {}
result['JobId'] = self.job_id
return result
def from_map(self, map={}):
self.job_id = map.get('JobId')
return self
class SubmitTranscodeJobsResponseTranscodeJobs(TeaModel):
def __init__(self, transcode_job=None):
self.transcode_job = []
def validate(self):
self.validate_required(self.transcode_job, 'transcode_job')
if self.transcode_job:
for k in self.transcode_job:
if k :
k.validate()
def to_map(self):
result = {}
result['TranscodeJob'] = []
if self.transcode_job is not None:
for k in self.transcode_job:
result['TranscodeJob'].append(k.to_map() if k else None)
else:
result['TranscodeJob'] = None
return result
def from_map(self, map={}):
self.transcode_job = []
if map.get('TranscodeJob') is not None:
for k in map.get('TranscodeJob'):
temp_model = SubmitTranscodeJobsResponseTranscodeJobsTranscodeJob()
temp_model = temp_model.from_map(k)
self.transcode_job.append(temp_model)
else:
self.transcode_job = None
return self
class ListLiveRecordVideoRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, stream_name=None, domain_name=None, app_name=None, query_type=None, page_no=None, page_size=None, sort_by=None, start_time=None, end_time=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.stream_name = stream_name
self.domain_name = domain_name
self.app_name = app_name
self.query_type = query_type
self.page_no = page_no
self.page_size = page_size
self.sort_by = sort_by
self.start_time = start_time
self.end_time = end_time
def validate(self):
pass
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['StreamName'] = self.stream_name
result['DomainName'] = self.domain_name
result['AppName'] = self.app_name
result['QueryType'] = self.query_type
result['PageNo'] = self.page_no
result['PageSize'] = self.page_size
result['SortBy'] = self.sort_by
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.stream_name = map.get('StreamName')
self.domain_name = map.get('DomainName')
self.app_name = map.get('AppName')
self.query_type = map.get('QueryType')
self.page_no = map.get('PageNo')
self.page_size = map.get('PageSize')
self.sort_by = map.get('SortBy')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
return self
class ListLiveRecordVideoResponse(TeaModel):
def __init__(self, request_id=None, total=None, live_record_video_list=None):
self.request_id = request_id
self.total = total
self.live_record_video_list = live_record_video_list
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.total, 'total')
self.validate_required(self.live_record_video_list, 'live_record_video_list')
if self.live_record_video_list:
self.live_record_video_list.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['Total'] = self.total
if self.live_record_video_list is not None:
result['LiveRecordVideoList'] = self.live_record_video_list.to_map()
else:
result['LiveRecordVideoList'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.total = map.get('Total')
if map.get('LiveRecordVideoList') is not None:
temp_model = ListLiveRecordVideoResponseLiveRecordVideoList()
self.live_record_video_list = temp_model.from_map(map['LiveRecordVideoList'])
else:
self.live_record_video_list = None
return self
class ListLiveRecordVideoResponseLiveRecordVideoListLiveRecordVideoPlayInfoListPlayInfo(TeaModel):
def __init__(self, width=None, height=None, size=None, play_url=None, bitrate=None, definition=None, duration=None, format=None, fps=None, encrypt=None, plaintext=None, complexity=None, stream_type=None, rand=None, job_id=None):
self.width = width
self.height = height
self.size = size
self.play_url = play_url
self.bitrate = bitrate
self.definition = definition
self.duration = duration
self.format = format
self.fps = fps
self.encrypt = encrypt
self.plaintext = plaintext
self.complexity = complexity
self.stream_type = stream_type
self.rand = rand
self.job_id = job_id
def validate(self):
self.validate_required(self.width, 'width')
self.validate_required(self.height, 'height')
self.validate_required(self.size, 'size')
self.validate_required(self.play_url, 'play_url')
self.validate_required(self.bitrate, 'bitrate')
self.validate_required(self.definition, 'definition')
self.validate_required(self.duration, 'duration')
self.validate_required(self.format, 'format')
self.validate_required(self.fps, 'fps')
self.validate_required(self.encrypt, 'encrypt')
self.validate_required(self.plaintext, 'plaintext')
self.validate_required(self.complexity, 'complexity')
self.validate_required(self.stream_type, 'stream_type')
self.validate_required(self.rand, 'rand')
self.validate_required(self.job_id, 'job_id')
def to_map(self):
result = {}
result['Width'] = self.width
result['Height'] = self.height
result['Size'] = self.size
result['PlayURL'] = self.play_url
result['Bitrate'] = self.bitrate
result['Definition'] = self.definition
result['Duration'] = self.duration
result['Format'] = self.format
result['Fps'] = self.fps
result['Encrypt'] = self.encrypt
result['Plaintext'] = self.plaintext
result['Complexity'] = self.complexity
result['StreamType'] = self.stream_type
result['Rand'] = self.rand
result['JobId'] = self.job_id
return result
def from_map(self, map={}):
self.width = map.get('Width')
self.height = map.get('Height')
self.size = map.get('Size')
self.play_url = map.get('PlayURL')
self.bitrate = map.get('Bitrate')
self.definition = map.get('Definition')
self.duration = map.get('Duration')
self.format = map.get('Format')
self.fps = map.get('Fps')
self.encrypt = map.get('Encrypt')
self.plaintext = map.get('Plaintext')
self.complexity = map.get('Complexity')
self.stream_type = map.get('StreamType')
self.rand = map.get('Rand')
self.job_id = map.get('JobId')
return self
class ListLiveRecordVideoResponseLiveRecordVideoListLiveRecordVideoPlayInfoList(TeaModel):
def __init__(self, play_info=None):
self.play_info = []
def validate(self):
self.validate_required(self.play_info, 'play_info')
if self.play_info:
for k in self.play_info:
if k :
k.validate()
def to_map(self):
result = {}
result['PlayInfo'] = []
if self.play_info is not None:
for k in self.play_info:
result['PlayInfo'].append(k.to_map() if k else None)
else:
result['PlayInfo'] = None
return result
def from_map(self, map={}):
self.play_info = []
if map.get('PlayInfo') is not None:
for k in map.get('PlayInfo'):
temp_model = ListLiveRecordVideoResponseLiveRecordVideoListLiveRecordVideoPlayInfoListPlayInfo()
temp_model = temp_model.from_map(k)
self.play_info.append(temp_model)
else:
self.play_info = None
return self
class ListLiveRecordVideoResponseLiveRecordVideoListLiveRecordVideoVideoSnapshots(TeaModel):
def __init__(self, snapshot=None):
self.snapshot = []
def validate(self):
self.validate_required(self.snapshot, 'snapshot')
def to_map(self):
result = {}
result['Snapshot'] = []
if self.snapshot is not None:
for k in self.snapshot:
result['Snapshot'].append(k)
else:
result['Snapshot'] = None
return result
def from_map(self, map={}):
self.snapshot = []
if map.get('Snapshot') is not None:
for k in map.get('Snapshot'):
self.snapshot.append(k)
else:
self.snapshot = None
return self
class ListLiveRecordVideoResponseLiveRecordVideoListLiveRecordVideoVideo(TeaModel):
def __init__(self, video_id=None, title=None, tags=None, status=None, size=None, privilege=None, duration=None, description=None, customer_id=None, create_time=None, creation_time=None, modify_time=None, cover_url=None, cate_id=None, cate_name=None, download_switch=None, template_group_id=None, snapshots=None):
self.video_id = video_id
self.title = title
self.tags = tags
self.status = status
self.size = size
self.privilege = privilege
self.duration = duration
self.description = description
self.customer_id = customer_id
self.create_time = create_time
self.creation_time = creation_time
self.modify_time = modify_time
self.cover_url = cover_url
self.cate_id = cate_id
self.cate_name = cate_name
self.download_switch = download_switch
self.template_group_id = template_group_id
self.snapshots = snapshots
def validate(self):
self.validate_required(self.video_id, 'video_id')
self.validate_required(self.title, 'title')
self.validate_required(self.tags, 'tags')
self.validate_required(self.status, 'status')
self.validate_required(self.size, 'size')
self.validate_required(self.privilege, 'privilege')
self.validate_required(self.duration, 'duration')
self.validate_required(self.description, 'description')
self.validate_required(self.customer_id, 'customer_id')
self.validate_required(self.create_time, 'create_time')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modify_time, 'modify_time')
self.validate_required(self.cover_url, 'cover_url')
self.validate_required(self.cate_id, 'cate_id')
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.download_switch, 'download_switch')
self.validate_required(self.template_group_id, 'template_group_id')
self.validate_required(self.snapshots, 'snapshots')
if self.snapshots:
self.snapshots.validate()
def to_map(self):
result = {}
result['VideoId'] = self.video_id
result['Title'] = self.title
result['Tags'] = self.tags
result['Status'] = self.status
result['Size'] = self.size
result['Privilege'] = self.privilege
result['Duration'] = self.duration
result['Description'] = self.description
result['CustomerId'] = self.customer_id
result['CreateTime'] = self.create_time
result['CreationTime'] = self.creation_time
result['ModifyTime'] = self.modify_time
result['CoverURL'] = self.cover_url
result['CateId'] = self.cate_id
result['CateName'] = self.cate_name
result['DownloadSwitch'] = self.download_switch
result['TemplateGroupId'] = self.template_group_id
if self.snapshots is not None:
result['Snapshots'] = self.snapshots.to_map()
else:
result['Snapshots'] = None
return result
def from_map(self, map={}):
self.video_id = map.get('VideoId')
self.title = map.get('Title')
self.tags = map.get('Tags')
self.status = map.get('Status')
self.size = map.get('Size')
self.privilege = map.get('Privilege')
self.duration = map.get('Duration')
self.description = map.get('Description')
self.customer_id = map.get('CustomerId')
self.create_time = map.get('CreateTime')
self.creation_time = map.get('CreationTime')
self.modify_time = map.get('ModifyTime')
self.cover_url = map.get('CoverURL')
self.cate_id = map.get('CateId')
self.cate_name = map.get('CateName')
self.download_switch = map.get('DownloadSwitch')
self.template_group_id = map.get('TemplateGroupId')
if map.get('Snapshots') is not None:
temp_model = ListLiveRecordVideoResponseLiveRecordVideoListLiveRecordVideoVideoSnapshots()
self.snapshots = temp_model.from_map(map['Snapshots'])
else:
self.snapshots = None
return self
class ListLiveRecordVideoResponseLiveRecordVideoListLiveRecordVideo(TeaModel):
def __init__(self, stream_name=None, domain_name=None, app_name=None, playlist_id=None, record_start_time=None, record_end_time=None, play_info_list=None, video=None):
self.stream_name = stream_name
self.domain_name = domain_name
self.app_name = app_name
self.playlist_id = playlist_id
self.record_start_time = record_start_time
self.record_end_time = record_end_time
self.play_info_list = play_info_list
self.video = video
def validate(self):
self.validate_required(self.stream_name, 'stream_name')
self.validate_required(self.domain_name, 'domain_name')
self.validate_required(self.app_name, 'app_name')
self.validate_required(self.playlist_id, 'playlist_id')
self.validate_required(self.record_start_time, 'record_start_time')
self.validate_required(self.record_end_time, 'record_end_time')
self.validate_required(self.play_info_list, 'play_info_list')
if self.play_info_list:
self.play_info_list.validate()
self.validate_required(self.video, 'video')
if self.video:
self.video.validate()
def to_map(self):
result = {}
result['StreamName'] = self.stream_name
result['DomainName'] = self.domain_name
result['AppName'] = self.app_name
result['PlaylistId'] = self.playlist_id
result['RecordStartTime'] = self.record_start_time
result['RecordEndTime'] = self.record_end_time
if self.play_info_list is not None:
result['PlayInfoList'] = self.play_info_list.to_map()
else:
result['PlayInfoList'] = None
if self.video is not None:
result['Video'] = self.video.to_map()
else:
result['Video'] = None
return result
def from_map(self, map={}):
self.stream_name = map.get('StreamName')
self.domain_name = map.get('DomainName')
self.app_name = map.get('AppName')
self.playlist_id = map.get('PlaylistId')
self.record_start_time = map.get('RecordStartTime')
self.record_end_time = map.get('RecordEndTime')
if map.get('PlayInfoList') is not None:
temp_model = ListLiveRecordVideoResponseLiveRecordVideoListLiveRecordVideoPlayInfoList()
self.play_info_list = temp_model.from_map(map['PlayInfoList'])
else:
self.play_info_list = None
if map.get('Video') is not None:
temp_model = ListLiveRecordVideoResponseLiveRecordVideoListLiveRecordVideoVideo()
self.video = temp_model.from_map(map['Video'])
else:
self.video = None
return self
class ListLiveRecordVideoResponseLiveRecordVideoList(TeaModel):
def __init__(self, live_record_video=None):
self.live_record_video = []
def validate(self):
self.validate_required(self.live_record_video, 'live_record_video')
if self.live_record_video:
for k in self.live_record_video:
if k :
k.validate()
def to_map(self):
result = {}
result['LiveRecordVideo'] = []
if self.live_record_video is not None:
for k in self.live_record_video:
result['LiveRecordVideo'].append(k.to_map() if k else None)
else:
result['LiveRecordVideo'] = None
return result
def from_map(self, map={}):
self.live_record_video = []
if map.get('LiveRecordVideo') is not None:
for k in map.get('LiveRecordVideo'):
temp_model = ListLiveRecordVideoResponseLiveRecordVideoListLiveRecordVideo()
temp_model = temp_model.from_map(k)
self.live_record_video.append(temp_model)
else:
self.live_record_video = None
return self
class CreateAuditRequest(TeaModel):
def __init__(self, audit_content=None):
self.audit_content = audit_content
def validate(self):
self.validate_required(self.audit_content, 'audit_content')
def to_map(self):
result = {}
result['AuditContent'] = self.audit_content
return result
def from_map(self, map={}):
self.audit_content = map.get('AuditContent')
return self
class CreateAuditResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class GetAuditHistoryRequest(TeaModel):
def __init__(self, video_id=None, page_no=None, page_size=None, sort_by=None):
self.video_id = video_id
self.page_no = page_no
self.page_size = page_size
self.sort_by = sort_by
def validate(self):
self.validate_required(self.video_id, 'video_id')
def to_map(self):
result = {}
result['VideoId'] = self.video_id
result['PageNo'] = self.page_no
result['PageSize'] = self.page_size
result['SortBy'] = self.sort_by
return result
def from_map(self, map={}):
self.video_id = map.get('VideoId')
self.page_no = map.get('PageNo')
self.page_size = map.get('PageSize')
self.sort_by = map.get('SortBy')
return self
class GetAuditHistoryResponse(TeaModel):
def __init__(self, request_id=None, status=None, total=None, histories=None):
self.request_id = request_id
self.status = status
self.total = total
self.histories = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.status, 'status')
self.validate_required(self.total, 'total')
self.validate_required(self.histories, 'histories')
if self.histories:
for k in self.histories:
if k :
k.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['Status'] = self.status
result['Total'] = self.total
result['Histories'] = []
if self.histories is not None:
for k in self.histories:
result['Histories'].append(k.to_map() if k else None)
else:
result['Histories'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.status = map.get('Status')
self.total = map.get('Total')
self.histories = []
if map.get('Histories') is not None:
for k in map.get('Histories'):
temp_model = GetAuditHistoryResponseHistories()
temp_model = temp_model.from_map(k)
self.histories.append(temp_model)
else:
self.histories = None
return self
class GetAuditHistoryResponseHistories(TeaModel):
def __init__(self, creation_time=None, status=None, reason=None, comment=None, auditor=None):
self.creation_time = creation_time
self.status = status
self.reason = reason
self.comment = comment
self.auditor = auditor
def validate(self):
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.status, 'status')
self.validate_required(self.reason, 'reason')
self.validate_required(self.comment, 'comment')
self.validate_required(self.auditor, 'auditor')
def to_map(self):
result = {}
result['CreationTime'] = self.creation_time
result['Status'] = self.status
result['Reason'] = self.reason
result['Comment'] = self.comment
result['Auditor'] = self.auditor
return result
def from_map(self, map={}):
self.creation_time = map.get('CreationTime')
self.status = map.get('Status')
self.reason = map.get('Reason')
self.comment = map.get('Comment')
self.auditor = map.get('Auditor')
return self
class ListAIJobRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, job_ids=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.job_ids = job_ids
def validate(self):
self.validate_required(self.job_ids, 'job_ids')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['JobIds'] = self.job_ids
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.job_ids = map.get('JobIds')
return self
class ListAIJobResponse(TeaModel):
def __init__(self, request_id=None, aijob_list=None, non_exist_aijob_ids=None):
self.request_id = request_id
self.aijob_list = aijob_list
self.non_exist_aijob_ids = non_exist_aijob_ids
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.aijob_list, 'aijob_list')
if self.aijob_list:
self.aijob_list.validate()
self.validate_required(self.non_exist_aijob_ids, 'non_exist_aijob_ids')
if self.non_exist_aijob_ids:
self.non_exist_aijob_ids.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.aijob_list is not None:
result['AIJobList'] = self.aijob_list.to_map()
else:
result['AIJobList'] = None
if self.non_exist_aijob_ids is not None:
result['NonExistAIJobIds'] = self.non_exist_aijob_ids.to_map()
else:
result['NonExistAIJobIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('AIJobList') is not None:
temp_model = ListAIJobResponseAIJobList()
self.aijob_list = temp_model.from_map(map['AIJobList'])
else:
self.aijob_list = None
if map.get('NonExistAIJobIds') is not None:
temp_model = ListAIJobResponseNonExistAIJobIds()
self.non_exist_aijob_ids = temp_model.from_map(map['NonExistAIJobIds'])
else:
self.non_exist_aijob_ids = None
return self
class ListAIJobResponseAIJobListAIJob(TeaModel):
def __init__(self, job_id=None, media_id=None, type=None, status=None, code=None, message=None, creation_time=None, complete_time=None, data=None):
self.job_id = job_id
self.media_id = media_id
self.type = type
self.status = status
self.code = code
self.message = message
self.creation_time = creation_time
self.complete_time = complete_time
self.data = data
def validate(self):
self.validate_required(self.job_id, 'job_id')
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.type, 'type')
self.validate_required(self.status, 'status')
self.validate_required(self.code, 'code')
self.validate_required(self.message, 'message')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.complete_time, 'complete_time')
self.validate_required(self.data, 'data')
def to_map(self):
result = {}
result['JobId'] = self.job_id
result['MediaId'] = self.media_id
result['Type'] = self.type
result['Status'] = self.status
result['Code'] = self.code
result['Message'] = self.message
result['CreationTime'] = self.creation_time
result['CompleteTime'] = self.complete_time
result['Data'] = self.data
return result
def from_map(self, map={}):
self.job_id = map.get('JobId')
self.media_id = map.get('MediaId')
self.type = map.get('Type')
self.status = map.get('Status')
self.code = map.get('Code')
self.message = map.get('Message')
self.creation_time = map.get('CreationTime')
self.complete_time = map.get('CompleteTime')
self.data = map.get('Data')
return self
class ListAIJobResponseAIJobList(TeaModel):
def __init__(self, aijob=None):
self.aijob = []
def validate(self):
self.validate_required(self.aijob, 'aijob')
if self.aijob:
for k in self.aijob:
if k :
k.validate()
def to_map(self):
result = {}
result['AIJob'] = []
if self.aijob is not None:
for k in self.aijob:
result['AIJob'].append(k.to_map() if k else None)
else:
result['AIJob'] = None
return result
def from_map(self, map={}):
self.aijob = []
if map.get('AIJob') is not None:
for k in map.get('AIJob'):
temp_model = ListAIJobResponseAIJobListAIJob()
temp_model = temp_model.from_map(k)
self.aijob.append(temp_model)
else:
self.aijob = None
return self
class ListAIJobResponseNonExistAIJobIds(TeaModel):
def __init__(self, string=None):
self.string = []
def validate(self):
self.validate_required(self.string, 'string')
def to_map(self):
result = {}
result['String'] = []
if self.string is not None:
for k in self.string:
result['String'].append(k)
else:
result['String'] = None
return result
def from_map(self, map={}):
self.string = []
if map.get('String') is not None:
for k in map.get('String'):
self.string.append(k)
else:
self.string = None
return self
class SubmitAIJobRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, media_id=None, types=None, config=None, user_data=None, input=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.media_id = media_id
self.types = types
self.config = config
self.user_data = user_data
self.input = input
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['MediaId'] = self.media_id
result['Types'] = self.types
result['Config'] = self.config
result['UserData'] = self.user_data
result['Input'] = self.input
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.media_id = map.get('MediaId')
self.types = map.get('Types')
self.config = map.get('Config')
self.user_data = map.get('UserData')
self.input = map.get('Input')
return self
class SubmitAIJobResponse(TeaModel):
def __init__(self, request_id=None, aijob_list=None):
self.request_id = request_id
self.aijob_list = aijob_list
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.aijob_list, 'aijob_list')
if self.aijob_list:
self.aijob_list.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.aijob_list is not None:
result['AIJobList'] = self.aijob_list.to_map()
else:
result['AIJobList'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('AIJobList') is not None:
temp_model = SubmitAIJobResponseAIJobList()
self.aijob_list = temp_model.from_map(map['AIJobList'])
else:
self.aijob_list = None
return self
class SubmitAIJobResponseAIJobListAIJob(TeaModel):
def __init__(self, job_id=None, type=None, media_id=None, status=None, code=None, message=None, creation_time=None, data=None):
self.job_id = job_id
self.type = type
self.media_id = media_id
self.status = status
self.code = code
self.message = message
self.creation_time = creation_time
self.data = data
def validate(self):
self.validate_required(self.job_id, 'job_id')
self.validate_required(self.type, 'type')
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.status, 'status')
self.validate_required(self.code, 'code')
self.validate_required(self.message, 'message')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.data, 'data')
def to_map(self):
result = {}
result['JobId'] = self.job_id
result['Type'] = self.type
result['MediaId'] = self.media_id
result['Status'] = self.status
result['Code'] = self.code
result['Message'] = self.message
result['CreationTime'] = self.creation_time
result['Data'] = self.data
return result
def from_map(self, map={}):
self.job_id = map.get('JobId')
self.type = map.get('Type')
self.media_id = map.get('MediaId')
self.status = map.get('Status')
self.code = map.get('Code')
self.message = map.get('Message')
self.creation_time = map.get('CreationTime')
self.data = map.get('Data')
return self
class SubmitAIJobResponseAIJobList(TeaModel):
def __init__(self, aijob=None):
self.aijob = []
def validate(self):
self.validate_required(self.aijob, 'aijob')
if self.aijob:
for k in self.aijob:
if k :
k.validate()
def to_map(self):
result = {}
result['AIJob'] = []
if self.aijob is not None:
for k in self.aijob:
result['AIJob'].append(k.to_map() if k else None)
else:
result['AIJob'] = None
return result
def from_map(self, map={}):
self.aijob = []
if map.get('AIJob') is not None:
for k in map.get('AIJob'):
temp_model = SubmitAIJobResponseAIJobListAIJob()
temp_model = temp_model.from_map(k)
self.aijob.append(temp_model)
else:
self.aijob = None
return self
class GetImageInfoRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, image_id=None, auth_timeout=None, output_type=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.image_id = image_id
self.auth_timeout = auth_timeout
self.output_type = output_type
def validate(self):
self.validate_required(self.image_id, 'image_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['ImageId'] = self.image_id
result['AuthTimeout'] = self.auth_timeout
result['OutputType'] = self.output_type
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.image_id = map.get('ImageId')
self.auth_timeout = map.get('AuthTimeout')
self.output_type = map.get('OutputType')
return self
class GetImageInfoResponse(TeaModel):
def __init__(self, request_id=None, image_info=None):
self.request_id = request_id
self.image_info = image_info
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.image_info, 'image_info')
if self.image_info:
self.image_info.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.image_info is not None:
result['ImageInfo'] = self.image_info.to_map()
else:
result['ImageInfo'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('ImageInfo') is not None:
temp_model = GetImageInfoResponseImageInfo()
self.image_info = temp_model.from_map(map['ImageInfo'])
else:
self.image_info = None
return self
class GetImageInfoResponseImageInfoMezzanine(TeaModel):
def __init__(self, original_file_name=None, file_size=None, width=None, height=None, file_url=None):
self.original_file_name = original_file_name
self.file_size = file_size
self.width = width
self.height = height
self.file_url = file_url
def validate(self):
self.validate_required(self.original_file_name, 'original_file_name')
self.validate_required(self.file_size, 'file_size')
self.validate_required(self.width, 'width')
self.validate_required(self.height, 'height')
self.validate_required(self.file_url, 'file_url')
def to_map(self):
result = {}
result['OriginalFileName'] = self.original_file_name
result['FileSize'] = self.file_size
result['Width'] = self.width
result['Height'] = self.height
result['FileURL'] = self.file_url
return result
def from_map(self, map={}):
self.original_file_name = map.get('OriginalFileName')
self.file_size = map.get('FileSize')
self.width = map.get('Width')
self.height = map.get('Height')
self.file_url = map.get('FileURL')
return self
class GetImageInfoResponseImageInfo(TeaModel):
def __init__(self, image_id=None, title=None, creation_time=None, image_type=None, tags=None, _url=None, cate_id=None, cate_name=None, description=None, storage_location=None, status=None, app_id=None, region_id=None, audit_status=None, mezzanine=None):
self.image_id = image_id
self.title = title
self.creation_time = creation_time
self.image_type = image_type
self.tags = tags
self._url = _url
self.cate_id = cate_id
self.cate_name = cate_name
self.description = description
self.storage_location = storage_location
self.status = status
self.app_id = app_id
self.region_id = region_id
self.audit_status = audit_status
self.mezzanine = mezzanine
def validate(self):
self.validate_required(self.image_id, 'image_id')
self.validate_required(self.title, 'title')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.image_type, 'image_type')
self.validate_required(self.tags, 'tags')
self.validate_required(self._url, '_url')
self.validate_required(self.cate_id, 'cate_id')
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.description, 'description')
self.validate_required(self.storage_location, 'storage_location')
self.validate_required(self.status, 'status')
self.validate_required(self.app_id, 'app_id')
self.validate_required(self.region_id, 'region_id')
self.validate_required(self.audit_status, 'audit_status')
self.validate_required(self.mezzanine, 'mezzanine')
if self.mezzanine:
self.mezzanine.validate()
def to_map(self):
result = {}
result['ImageId'] = self.image_id
result['Title'] = self.title
result['CreationTime'] = self.creation_time
result['ImageType'] = self.image_type
result['Tags'] = self.tags
result['URL'] = self._url
result['CateId'] = self.cate_id
result['CateName'] = self.cate_name
result['Description'] = self.description
result['StorageLocation'] = self.storage_location
result['Status'] = self.status
result['AppId'] = self.app_id
result['RegionId'] = self.region_id
result['AuditStatus'] = self.audit_status
if self.mezzanine is not None:
result['Mezzanine'] = self.mezzanine.to_map()
else:
result['Mezzanine'] = None
return result
def from_map(self, map={}):
self.image_id = map.get('ImageId')
self.title = map.get('Title')
self.creation_time = map.get('CreationTime')
self.image_type = map.get('ImageType')
self.tags = map.get('Tags')
self._url = map.get('URL')
self.cate_id = map.get('CateId')
self.cate_name = map.get('CateName')
self.description = map.get('Description')
self.storage_location = map.get('StorageLocation')
self.status = map.get('Status')
self.app_id = map.get('AppId')
self.region_id = map.get('RegionId')
self.audit_status = map.get('AuditStatus')
if map.get('Mezzanine') is not None:
temp_model = GetImageInfoResponseImageInfoMezzanine()
self.mezzanine = temp_model.from_map(map['Mezzanine'])
else:
self.mezzanine = None
return self
class DeleteStreamRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, job_ids=None, video_id=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.job_ids = job_ids
self.video_id = video_id
def validate(self):
self.validate_required(self.job_ids, 'job_ids')
self.validate_required(self.video_id, 'video_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['JobIds'] = self.job_ids
result['VideoId'] = self.video_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.job_ids = map.get('JobIds')
self.video_id = map.get('VideoId')
return self
class DeleteStreamResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class SubmitSnapshotJobRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_id=None, specified_offset_time=None, width=None, height=None, count=None, interval=None, sprite_snapshot_config=None, snapshot_template_id=None, user_data=None, file_url=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_id = video_id
self.specified_offset_time = specified_offset_time
self.width = width
self.height = height
self.count = count
self.interval = interval
self.sprite_snapshot_config = sprite_snapshot_config
self.snapshot_template_id = snapshot_template_id
self.user_data = user_data
self.file_url = file_url
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoId'] = self.video_id
result['SpecifiedOffsetTime'] = self.specified_offset_time
result['Width'] = self.width
result['Height'] = self.height
result['Count'] = self.count
result['Interval'] = self.interval
result['SpriteSnapshotConfig'] = self.sprite_snapshot_config
result['SnapshotTemplateId'] = self.snapshot_template_id
result['UserData'] = self.user_data
result['FileUrl'] = self.file_url
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_id = map.get('VideoId')
self.specified_offset_time = map.get('SpecifiedOffsetTime')
self.width = map.get('Width')
self.height = map.get('Height')
self.count = map.get('Count')
self.interval = map.get('Interval')
self.sprite_snapshot_config = map.get('SpriteSnapshotConfig')
self.snapshot_template_id = map.get('SnapshotTemplateId')
self.user_data = map.get('UserData')
self.file_url = map.get('FileUrl')
return self
class SubmitSnapshotJobResponse(TeaModel):
def __init__(self, request_id=None, snapshot_job=None):
self.request_id = request_id
self.snapshot_job = snapshot_job
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.snapshot_job, 'snapshot_job')
if self.snapshot_job:
self.snapshot_job.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.snapshot_job is not None:
result['SnapshotJob'] = self.snapshot_job.to_map()
else:
result['SnapshotJob'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('SnapshotJob') is not None:
temp_model = SubmitSnapshotJobResponseSnapshotJob()
self.snapshot_job = temp_model.from_map(map['SnapshotJob'])
else:
self.snapshot_job = None
return self
class SubmitSnapshotJobResponseSnapshotJob(TeaModel):
def __init__(self, job_id=None):
self.job_id = job_id
def validate(self):
self.validate_required(self.job_id, 'job_id')
def to_map(self):
result = {}
result['JobId'] = self.job_id
return result
def from_map(self, map={}):
self.job_id = map.get('JobId')
return self
class UpdateEditingProjectRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, project_id=None, title=None, timeline=None, description=None, cover_url=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.project_id = project_id
self.title = title
self.timeline = timeline
self.description = description
self.cover_url = cover_url
def validate(self):
self.validate_required(self.project_id, 'project_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['ProjectId'] = self.project_id
result['Title'] = self.title
result['Timeline'] = self.timeline
result['Description'] = self.description
result['CoverURL'] = self.cover_url
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.project_id = map.get('ProjectId')
self.title = map.get('Title')
self.timeline = map.get('Timeline')
self.description = map.get('Description')
self.cover_url = map.get('CoverURL')
return self
class UpdateEditingProjectResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class SetEditingProjectMaterialsRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, project_id=None, material_ids=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.project_id = project_id
self.material_ids = material_ids
def validate(self):
self.validate_required(self.project_id, 'project_id')
self.validate_required(self.material_ids, 'material_ids')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['ProjectId'] = self.project_id
result['MaterialIds'] = self.material_ids
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.project_id = map.get('ProjectId')
self.material_ids = map.get('MaterialIds')
return self
class SetEditingProjectMaterialsResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class SearchEditingProjectRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, end_time=None, start_time=None, status=None, page_no=None, page_size=None, sort_by=None, title=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.end_time = end_time
self.start_time = start_time
self.status = status
self.page_no = page_no
self.page_size = page_size
self.sort_by = sort_by
self.title = title
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['EndTime'] = self.end_time
result['StartTime'] = self.start_time
result['Status'] = self.status
result['PageNo'] = self.page_no
result['PageSize'] = self.page_size
result['SortBy'] = self.sort_by
result['Title'] = self.title
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.end_time = map.get('EndTime')
self.start_time = map.get('StartTime')
self.status = map.get('Status')
self.page_no = map.get('PageNo')
self.page_size = map.get('PageSize')
self.sort_by = map.get('SortBy')
self.title = map.get('Title')
return self
class SearchEditingProjectResponse(TeaModel):
def __init__(self, request_id=None, total=None, project_list=None):
self.request_id = request_id
self.total = total
self.project_list = project_list
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.total, 'total')
self.validate_required(self.project_list, 'project_list')
if self.project_list:
self.project_list.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['Total'] = self.total
if self.project_list is not None:
result['ProjectList'] = self.project_list.to_map()
else:
result['ProjectList'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.total = map.get('Total')
if map.get('ProjectList') is not None:
temp_model = SearchEditingProjectResponseProjectList()
self.project_list = temp_model.from_map(map['ProjectList'])
else:
self.project_list = None
return self
class SearchEditingProjectResponseProjectListProject(TeaModel):
def __init__(self, project_id=None, creation_time=None, modified_time=None, status=None, description=None, title=None, cover_url=None, storage_location=None, region_id=None, duration=None):
self.project_id = project_id
self.creation_time = creation_time
self.modified_time = modified_time
self.status = status
self.description = description
self.title = title
self.cover_url = cover_url
self.storage_location = storage_location
self.region_id = region_id
self.duration = duration
def validate(self):
self.validate_required(self.project_id, 'project_id')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modified_time, 'modified_time')
self.validate_required(self.status, 'status')
self.validate_required(self.description, 'description')
self.validate_required(self.title, 'title')
self.validate_required(self.cover_url, 'cover_url')
self.validate_required(self.storage_location, 'storage_location')
self.validate_required(self.region_id, 'region_id')
self.validate_required(self.duration, 'duration')
def to_map(self):
result = {}
result['ProjectId'] = self.project_id
result['CreationTime'] = self.creation_time
result['ModifiedTime'] = self.modified_time
result['Status'] = self.status
result['Description'] = self.description
result['Title'] = self.title
result['CoverURL'] = self.cover_url
result['StorageLocation'] = self.storage_location
result['RegionId'] = self.region_id
result['Duration'] = self.duration
return result
def from_map(self, map={}):
self.project_id = map.get('ProjectId')
self.creation_time = map.get('CreationTime')
self.modified_time = map.get('ModifiedTime')
self.status = map.get('Status')
self.description = map.get('Description')
self.title = map.get('Title')
self.cover_url = map.get('CoverURL')
self.storage_location = map.get('StorageLocation')
self.region_id = map.get('RegionId')
self.duration = map.get('Duration')
return self
class SearchEditingProjectResponseProjectList(TeaModel):
def __init__(self, project=None):
self.project = []
def validate(self):
self.validate_required(self.project, 'project')
if self.project:
for k in self.project:
if k :
k.validate()
def to_map(self):
result = {}
result['Project'] = []
if self.project is not None:
for k in self.project:
result['Project'].append(k.to_map() if k else None)
else:
result['Project'] = None
return result
def from_map(self, map={}):
self.project = []
if map.get('Project') is not None:
for k in map.get('Project'):
temp_model = SearchEditingProjectResponseProjectListProject()
temp_model = temp_model.from_map(k)
self.project.append(temp_model)
else:
self.project = None
return self
class ProduceEditingProjectVideoRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, project_id=None, timeline=None, title=None, description=None, cover_url=None, media_metadata=None, produce_config=None, user_data=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.project_id = project_id
self.timeline = timeline
self.title = title
self.description = description
self.cover_url = cover_url
self.media_metadata = media_metadata
self.produce_config = produce_config
self.user_data = user_data
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['ProjectId'] = self.project_id
result['Timeline'] = self.timeline
result['Title'] = self.title
result['Description'] = self.description
result['CoverURL'] = self.cover_url
result['MediaMetadata'] = self.media_metadata
result['ProduceConfig'] = self.produce_config
result['UserData'] = self.user_data
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.project_id = map.get('ProjectId')
self.timeline = map.get('Timeline')
self.title = map.get('Title')
self.description = map.get('Description')
self.cover_url = map.get('CoverURL')
self.media_metadata = map.get('MediaMetadata')
self.produce_config = map.get('ProduceConfig')
self.user_data = map.get('UserData')
return self
class ProduceEditingProjectVideoResponse(TeaModel):
def __init__(self, request_id=None, media_id=None, project_id=None):
self.request_id = request_id
self.media_id = media_id
self.project_id = project_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.media_id, 'media_id')
self.validate_required(self.project_id, 'project_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['MediaId'] = self.media_id
result['ProjectId'] = self.project_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.media_id = map.get('MediaId')
self.project_id = map.get('ProjectId')
return self
class GetEditingProjectMaterialsRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, project_id=None, type=None, material_type=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.project_id = project_id
self.type = type
self.material_type = material_type
def validate(self):
self.validate_required(self.project_id, 'project_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['ProjectId'] = self.project_id
result['Type'] = self.type
result['MaterialType'] = self.material_type
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.project_id = map.get('ProjectId')
self.type = map.get('Type')
self.material_type = map.get('MaterialType')
return self
class GetEditingProjectMaterialsResponse(TeaModel):
def __init__(self, request_id=None, material_list=None):
self.request_id = request_id
self.material_list = material_list
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.material_list, 'material_list')
if self.material_list:
self.material_list.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.material_list is not None:
result['MaterialList'] = self.material_list.to_map()
else:
result['MaterialList'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('MaterialList') is not None:
temp_model = GetEditingProjectMaterialsResponseMaterialList()
self.material_list = temp_model.from_map(map['MaterialList'])
else:
self.material_list = None
return self
class GetEditingProjectMaterialsResponseMaterialListMaterialSnapshots(TeaModel):
def __init__(self, snapshot=None):
self.snapshot = []
def validate(self):
self.validate_required(self.snapshot, 'snapshot')
def to_map(self):
result = {}
result['Snapshot'] = []
if self.snapshot is not None:
for k in self.snapshot:
result['Snapshot'].append(k)
else:
result['Snapshot'] = None
return result
def from_map(self, map={}):
self.snapshot = []
if map.get('Snapshot') is not None:
for k in map.get('Snapshot'):
self.snapshot.append(k)
else:
self.snapshot = None
return self
class GetEditingProjectMaterialsResponseMaterialListMaterialSprites(TeaModel):
def __init__(self, sprite=None):
self.sprite = []
def validate(self):
self.validate_required(self.sprite, 'sprite')
def to_map(self):
result = {}
result['Sprite'] = []
if self.sprite is not None:
for k in self.sprite:
result['Sprite'].append(k)
else:
result['Sprite'] = None
return result
def from_map(self, map={}):
self.sprite = []
if map.get('Sprite') is not None:
for k in map.get('Sprite'):
self.sprite.append(k)
else:
self.sprite = None
return self
class GetEditingProjectMaterialsResponseMaterialListMaterial(TeaModel):
def __init__(self, material_id=None, title=None, tags=None, status=None, size=None, duration=None, description=None, creation_time=None, modified_time=None, cover_url=None, cate_id=None, cate_name=None, source=None, sprite_config=None, snapshots=None, sprites=None):
self.material_id = material_id
self.title = title
self.tags = tags
self.status = status
self.size = size
self.duration = duration
self.description = description
self.creation_time = creation_time
self.modified_time = modified_time
self.cover_url = cover_url
self.cate_id = cate_id
self.cate_name = cate_name
self.source = source
self.sprite_config = sprite_config
self.snapshots = snapshots
self.sprites = sprites
def validate(self):
self.validate_required(self.material_id, 'material_id')
self.validate_required(self.title, 'title')
self.validate_required(self.tags, 'tags')
self.validate_required(self.status, 'status')
self.validate_required(self.size, 'size')
self.validate_required(self.duration, 'duration')
self.validate_required(self.description, 'description')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modified_time, 'modified_time')
self.validate_required(self.cover_url, 'cover_url')
self.validate_required(self.cate_id, 'cate_id')
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.source, 'source')
self.validate_required(self.sprite_config, 'sprite_config')
self.validate_required(self.snapshots, 'snapshots')
if self.snapshots:
self.snapshots.validate()
self.validate_required(self.sprites, 'sprites')
if self.sprites:
self.sprites.validate()
def to_map(self):
result = {}
result['MaterialId'] = self.material_id
result['Title'] = self.title
result['Tags'] = self.tags
result['Status'] = self.status
result['Size'] = self.size
result['Duration'] = self.duration
result['Description'] = self.description
result['CreationTime'] = self.creation_time
result['ModifiedTime'] = self.modified_time
result['CoverURL'] = self.cover_url
result['CateId'] = self.cate_id
result['CateName'] = self.cate_name
result['Source'] = self.source
result['SpriteConfig'] = self.sprite_config
if self.snapshots is not None:
result['Snapshots'] = self.snapshots.to_map()
else:
result['Snapshots'] = None
if self.sprites is not None:
result['Sprites'] = self.sprites.to_map()
else:
result['Sprites'] = None
return result
def from_map(self, map={}):
self.material_id = map.get('MaterialId')
self.title = map.get('Title')
self.tags = map.get('Tags')
self.status = map.get('Status')
self.size = map.get('Size')
self.duration = map.get('Duration')
self.description = map.get('Description')
self.creation_time = map.get('CreationTime')
self.modified_time = map.get('ModifiedTime')
self.cover_url = map.get('CoverURL')
self.cate_id = map.get('CateId')
self.cate_name = map.get('CateName')
self.source = map.get('Source')
self.sprite_config = map.get('SpriteConfig')
if map.get('Snapshots') is not None:
temp_model = GetEditingProjectMaterialsResponseMaterialListMaterialSnapshots()
self.snapshots = temp_model.from_map(map['Snapshots'])
else:
self.snapshots = None
if map.get('Sprites') is not None:
temp_model = GetEditingProjectMaterialsResponseMaterialListMaterialSprites()
self.sprites = temp_model.from_map(map['Sprites'])
else:
self.sprites = None
return self
class GetEditingProjectMaterialsResponseMaterialList(TeaModel):
def __init__(self, material=None):
self.material = []
def validate(self):
self.validate_required(self.material, 'material')
if self.material:
for k in self.material:
if k :
k.validate()
def to_map(self):
result = {}
result['Material'] = []
if self.material is not None:
for k in self.material:
result['Material'].append(k.to_map() if k else None)
else:
result['Material'] = None
return result
def from_map(self, map={}):
self.material = []
if map.get('Material') is not None:
for k in map.get('Material'):
temp_model = GetEditingProjectMaterialsResponseMaterialListMaterial()
temp_model = temp_model.from_map(k)
self.material.append(temp_model)
else:
self.material = None
return self
class GetEditingProjectRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, project_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.project_id = project_id
def validate(self):
self.validate_required(self.project_id, 'project_id')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['ProjectId'] = self.project_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.project_id = map.get('ProjectId')
return self
class GetEditingProjectResponse(TeaModel):
def __init__(self, request_id=None, project=None):
self.request_id = request_id
self.project = project
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.project, 'project')
if self.project:
self.project.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.project is not None:
result['Project'] = self.project.to_map()
else:
result['Project'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('Project') is not None:
temp_model = GetEditingProjectResponseProject()
self.project = temp_model.from_map(map['Project'])
else:
self.project = None
return self
class GetEditingProjectResponseProject(TeaModel):
def __init__(self, project_id=None, creation_time=None, modified_time=None, status=None, description=None, title=None, timeline=None, cover_url=None, storage_location=None, region_id=None):
self.project_id = project_id
self.creation_time = creation_time
self.modified_time = modified_time
self.status = status
self.description = description
self.title = title
self.timeline = timeline
self.cover_url = cover_url
self.storage_location = storage_location
self.region_id = region_id
def validate(self):
self.validate_required(self.project_id, 'project_id')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modified_time, 'modified_time')
self.validate_required(self.status, 'status')
self.validate_required(self.description, 'description')
self.validate_required(self.title, 'title')
self.validate_required(self.timeline, 'timeline')
self.validate_required(self.cover_url, 'cover_url')
self.validate_required(self.storage_location, 'storage_location')
self.validate_required(self.region_id, 'region_id')
def to_map(self):
result = {}
result['ProjectId'] = self.project_id
result['CreationTime'] = self.creation_time
result['ModifiedTime'] = self.modified_time
result['Status'] = self.status
result['Description'] = self.description
result['Title'] = self.title
result['Timeline'] = self.timeline
result['CoverURL'] = self.cover_url
result['StorageLocation'] = self.storage_location
result['RegionId'] = self.region_id
return result
def from_map(self, map={}):
self.project_id = map.get('ProjectId')
self.creation_time = map.get('CreationTime')
self.modified_time = map.get('ModifiedTime')
self.status = map.get('Status')
self.description = map.get('Description')
self.title = map.get('Title')
self.timeline = map.get('Timeline')
self.cover_url = map.get('CoverURL')
self.storage_location = map.get('StorageLocation')
self.region_id = map.get('RegionId')
return self
class DeleteEditingProjectRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, project_ids=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.project_ids = project_ids
def validate(self):
self.validate_required(self.project_ids, 'project_ids')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['ProjectIds'] = self.project_ids
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.project_ids = map.get('ProjectIds')
return self
class DeleteEditingProjectResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class AddEditingProjectRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, title=None, description=None, timeline=None, cover_url=None, division=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.title = title
self.description = description
self.timeline = timeline
self.cover_url = cover_url
self.division = division
def validate(self):
self.validate_required(self.title, 'title')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['Title'] = self.title
result['Description'] = self.description
result['Timeline'] = self.timeline
result['CoverURL'] = self.cover_url
result['Division'] = self.division
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.title = map.get('Title')
self.description = map.get('Description')
self.timeline = map.get('Timeline')
self.cover_url = map.get('CoverURL')
self.division = map.get('Division')
return self
class AddEditingProjectResponse(TeaModel):
def __init__(self, request_id=None, project=None):
self.request_id = request_id
self.project = project
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.project, 'project')
if self.project:
self.project.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.project is not None:
result['Project'] = self.project.to_map()
else:
result['Project'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('Project') is not None:
temp_model = AddEditingProjectResponseProject()
self.project = temp_model.from_map(map['Project'])
else:
self.project = None
return self
class AddEditingProjectResponseProject(TeaModel):
def __init__(self, project_id=None, creation_time=None, modified_time=None, status=None, description=None, title=None):
self.project_id = project_id
self.creation_time = creation_time
self.modified_time = modified_time
self.status = status
self.description = description
self.title = title
def validate(self):
self.validate_required(self.project_id, 'project_id')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modified_time, 'modified_time')
self.validate_required(self.status, 'status')
self.validate_required(self.description, 'description')
self.validate_required(self.title, 'title')
def to_map(self):
result = {}
result['ProjectId'] = self.project_id
result['CreationTime'] = self.creation_time
result['ModifiedTime'] = self.modified_time
result['Status'] = self.status
result['Description'] = self.description
result['Title'] = self.title
return result
def from_map(self, map={}):
self.project_id = map.get('ProjectId')
self.creation_time = map.get('CreationTime')
self.modified_time = map.get('ModifiedTime')
self.status = map.get('Status')
self.description = map.get('Description')
self.title = map.get('Title')
return self
class GetMezzanineInfoRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_id=None, auth_timeout=None, preview_segment=None, output_type=None, addition_type=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_id = video_id
self.auth_timeout = auth_timeout
self.preview_segment = preview_segment
self.output_type = output_type
self.addition_type = addition_type
def validate(self):
self.validate_required(self.video_id, 'video_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoId'] = self.video_id
result['AuthTimeout'] = self.auth_timeout
result['PreviewSegment'] = self.preview_segment
result['OutputType'] = self.output_type
result['AdditionType'] = self.addition_type
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_id = map.get('VideoId')
self.auth_timeout = map.get('AuthTimeout')
self.preview_segment = map.get('PreviewSegment')
self.output_type = map.get('OutputType')
self.addition_type = map.get('AdditionType')
return self
class GetMezzanineInfoResponse(TeaModel):
def __init__(self, request_id=None, mezzanine=None):
self.request_id = request_id
self.mezzanine = mezzanine
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.mezzanine, 'mezzanine')
if self.mezzanine:
self.mezzanine.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.mezzanine is not None:
result['Mezzanine'] = self.mezzanine.to_map()
else:
result['Mezzanine'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('Mezzanine') is not None:
temp_model = GetMezzanineInfoResponseMezzanine()
self.mezzanine = temp_model.from_map(map['Mezzanine'])
else:
self.mezzanine = None
return self
class GetMezzanineInfoResponseMezzanineAudioStreamList(TeaModel):
def __init__(self, index=None, codec_name=None, codec_long_name=None, codec_time_base=None, codec_tag_string=None, codec_tag=None, sample_fmt=None, sample_rate=None, channels=None, channel_layout=None, timebase=None, start_time=None, duration=None, bitrate=None, num_frames=None, lang=None):
self.index = index
self.codec_name = codec_name
self.codec_long_name = codec_long_name
self.codec_time_base = codec_time_base
self.codec_tag_string = codec_tag_string
self.codec_tag = codec_tag
self.sample_fmt = sample_fmt
self.sample_rate = sample_rate
self.channels = channels
self.channel_layout = channel_layout
self.timebase = timebase
self.start_time = start_time
self.duration = duration
self.bitrate = bitrate
self.num_frames = num_frames
self.lang = lang
def validate(self):
self.validate_required(self.index, 'index')
self.validate_required(self.codec_name, 'codec_name')
self.validate_required(self.codec_long_name, 'codec_long_name')
self.validate_required(self.codec_time_base, 'codec_time_base')
self.validate_required(self.codec_tag_string, 'codec_tag_string')
self.validate_required(self.codec_tag, 'codec_tag')
self.validate_required(self.sample_fmt, 'sample_fmt')
self.validate_required(self.sample_rate, 'sample_rate')
self.validate_required(self.channels, 'channels')
self.validate_required(self.channel_layout, 'channel_layout')
self.validate_required(self.timebase, 'timebase')
self.validate_required(self.start_time, 'start_time')
self.validate_required(self.duration, 'duration')
self.validate_required(self.bitrate, 'bitrate')
self.validate_required(self.num_frames, 'num_frames')
self.validate_required(self.lang, 'lang')
def to_map(self):
result = {}
result['Index'] = self.index
result['CodecName'] = self.codec_name
result['CodecLongName'] = self.codec_long_name
result['CodecTimeBase'] = self.codec_time_base
result['CodecTagString'] = self.codec_tag_string
result['CodecTag'] = self.codec_tag
result['SampleFmt'] = self.sample_fmt
result['SampleRate'] = self.sample_rate
result['Channels'] = self.channels
result['ChannelLayout'] = self.channel_layout
result['Timebase'] = self.timebase
result['StartTime'] = self.start_time
result['Duration'] = self.duration
result['Bitrate'] = self.bitrate
result['NumFrames'] = self.num_frames
result['Lang'] = self.lang
return result
def from_map(self, map={}):
self.index = map.get('Index')
self.codec_name = map.get('CodecName')
self.codec_long_name = map.get('CodecLongName')
self.codec_time_base = map.get('CodecTimeBase')
self.codec_tag_string = map.get('CodecTagString')
self.codec_tag = map.get('CodecTag')
self.sample_fmt = map.get('SampleFmt')
self.sample_rate = map.get('SampleRate')
self.channels = map.get('Channels')
self.channel_layout = map.get('ChannelLayout')
self.timebase = map.get('Timebase')
self.start_time = map.get('StartTime')
self.duration = map.get('Duration')
self.bitrate = map.get('Bitrate')
self.num_frames = map.get('NumFrames')
self.lang = map.get('Lang')
return self
class GetMezzanineInfoResponseMezzanineVideoStreamList(TeaModel):
def __init__(self, index=None, codec_name=None, codec_long_name=None, profile=None, codec_time_base=None, codec_tag_string=None, codec_tag=None, width=None, height=None, has_bframes=None, sar=None, dar=None, pix_fmt=None, level=None, fps=None, avg_fps=None, timebase=None, start_time=None, duration=None, num_frames=None, lang=None, rotate=None):
self.index = index
self.codec_name = codec_name
self.codec_long_name = codec_long_name
self.profile = profile
self.codec_time_base = codec_time_base
self.codec_tag_string = codec_tag_string
self.codec_tag = codec_tag
self.width = width
self.height = height
self.has_bframes = has_bframes
self.sar = sar
self.dar = dar
self.pix_fmt = pix_fmt
self.level = level
self.fps = fps
self.avg_fps = avg_fps
self.timebase = timebase
self.start_time = start_time
self.duration = duration
self.num_frames = num_frames
self.lang = lang
self.rotate = rotate
def validate(self):
self.validate_required(self.index, 'index')
self.validate_required(self.codec_name, 'codec_name')
self.validate_required(self.codec_long_name, 'codec_long_name')
self.validate_required(self.profile, 'profile')
self.validate_required(self.codec_time_base, 'codec_time_base')
self.validate_required(self.codec_tag_string, 'codec_tag_string')
self.validate_required(self.codec_tag, 'codec_tag')
self.validate_required(self.width, 'width')
self.validate_required(self.height, 'height')
self.validate_required(self.has_bframes, 'has_bframes')
self.validate_required(self.sar, 'sar')
self.validate_required(self.dar, 'dar')
self.validate_required(self.pix_fmt, 'pix_fmt')
self.validate_required(self.level, 'level')
self.validate_required(self.fps, 'fps')
self.validate_required(self.avg_fps, 'avg_fps')
self.validate_required(self.timebase, 'timebase')
self.validate_required(self.start_time, 'start_time')
self.validate_required(self.duration, 'duration')
self.validate_required(self.num_frames, 'num_frames')
self.validate_required(self.lang, 'lang')
self.validate_required(self.rotate, 'rotate')
def to_map(self):
result = {}
result['Index'] = self.index
result['CodecName'] = self.codec_name
result['CodecLongName'] = self.codec_long_name
result['Profile'] = self.profile
result['CodecTimeBase'] = self.codec_time_base
result['CodecTagString'] = self.codec_tag_string
result['CodecTag'] = self.codec_tag
result['Width'] = self.width
result['Height'] = self.height
result['HasBFrames'] = self.has_bframes
result['Sar'] = self.sar
result['Dar'] = self.dar
result['PixFmt'] = self.pix_fmt
result['Level'] = self.level
result['Fps'] = self.fps
result['AvgFPS'] = self.avg_fps
result['Timebase'] = self.timebase
result['StartTime'] = self.start_time
result['Duration'] = self.duration
result['NumFrames'] = self.num_frames
result['Lang'] = self.lang
result['Rotate'] = self.rotate
return result
def from_map(self, map={}):
self.index = map.get('Index')
self.codec_name = map.get('CodecName')
self.codec_long_name = map.get('CodecLongName')
self.profile = map.get('Profile')
self.codec_time_base = map.get('CodecTimeBase')
self.codec_tag_string = map.get('CodecTagString')
self.codec_tag = map.get('CodecTag')
self.width = map.get('Width')
self.height = map.get('Height')
self.has_bframes = map.get('HasBFrames')
self.sar = map.get('Sar')
self.dar = map.get('Dar')
self.pix_fmt = map.get('PixFmt')
self.level = map.get('Level')
self.fps = map.get('Fps')
self.avg_fps = map.get('AvgFPS')
self.timebase = map.get('Timebase')
self.start_time = map.get('StartTime')
self.duration = map.get('Duration')
self.num_frames = map.get('NumFrames')
self.lang = map.get('Lang')
self.rotate = map.get('Rotate')
return self
class GetMezzanineInfoResponseMezzanine(TeaModel):
def __init__(self, video_id=None, bitrate=None, creation_time=None, duration=None, fps=None, height=None, width=None, size=None, status=None, file_url=None, file_name=None, _crc64=None, preprocess_status=None, output_type=None, audio_stream_list=None, video_stream_list=None):
self.video_id = video_id
self.bitrate = bitrate
self.creation_time = creation_time
self.duration = duration
self.fps = fps
self.height = height
self.width = width
self.size = size
self.status = status
self.file_url = file_url
self.file_name = file_name
self._crc64 = _crc64
self.preprocess_status = preprocess_status
self.output_type = output_type
self.audio_stream_list = []
self.video_stream_list = []
def validate(self):
self.validate_required(self.video_id, 'video_id')
self.validate_required(self.bitrate, 'bitrate')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.duration, 'duration')
self.validate_required(self.fps, 'fps')
self.validate_required(self.height, 'height')
self.validate_required(self.width, 'width')
self.validate_required(self.size, 'size')
self.validate_required(self.status, 'status')
self.validate_required(self.file_url, 'file_url')
self.validate_required(self.file_name, 'file_name')
self.validate_required(self._crc64, '_crc64')
self.validate_required(self.preprocess_status, 'preprocess_status')
self.validate_required(self.output_type, 'output_type')
self.validate_required(self.audio_stream_list, 'audio_stream_list')
if self.audio_stream_list:
for k in self.audio_stream_list:
if k :
k.validate()
self.validate_required(self.video_stream_list, 'video_stream_list')
if self.video_stream_list:
for k in self.video_stream_list:
if k :
k.validate()
def to_map(self):
result = {}
result['VideoId'] = self.video_id
result['Bitrate'] = self.bitrate
result['CreationTime'] = self.creation_time
result['Duration'] = self.duration
result['Fps'] = self.fps
result['Height'] = self.height
result['Width'] = self.width
result['Size'] = self.size
result['Status'] = self.status
result['FileURL'] = self.file_url
result['FileName'] = self.file_name
result['CRC64'] = self._crc64
result['PreprocessStatus'] = self.preprocess_status
result['OutputType'] = self.output_type
result['AudioStreamList'] = []
if self.audio_stream_list is not None:
for k in self.audio_stream_list:
result['AudioStreamList'].append(k.to_map() if k else None)
else:
result['AudioStreamList'] = None
result['VideoStreamList'] = []
if self.video_stream_list is not None:
for k in self.video_stream_list:
result['VideoStreamList'].append(k.to_map() if k else None)
else:
result['VideoStreamList'] = None
return result
def from_map(self, map={}):
self.video_id = map.get('VideoId')
self.bitrate = map.get('Bitrate')
self.creation_time = map.get('CreationTime')
self.duration = map.get('Duration')
self.fps = map.get('Fps')
self.height = map.get('Height')
self.width = map.get('Width')
self.size = map.get('Size')
self.status = map.get('Status')
self.file_url = map.get('FileURL')
self.file_name = map.get('FileName')
self._crc64 = map.get('CRC64')
self.preprocess_status = map.get('PreprocessStatus')
self.output_type = map.get('OutputType')
self.audio_stream_list = []
if map.get('AudioStreamList') is not None:
for k in map.get('AudioStreamList'):
temp_model = GetMezzanineInfoResponseMezzanineAudioStreamList()
temp_model = temp_model.from_map(k)
self.audio_stream_list.append(temp_model)
else:
self.audio_stream_list = None
self.video_stream_list = []
if map.get('VideoStreamList') is not None:
for k in map.get('VideoStreamList'):
temp_model = GetMezzanineInfoResponseMezzanineVideoStreamList()
temp_model = temp_model.from_map(k)
self.video_stream_list.append(temp_model)
else:
self.video_stream_list = None
return self
class UpdateCategoryRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_id=None, resource_owner_account=None, cate_name=None, cate_id=None):
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.cate_name = cate_name
self.cate_id = cate_id
def validate(self):
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.cate_id, 'cate_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['CateName'] = self.cate_name
result['CateId'] = self.cate_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.cate_name = map.get('CateName')
self.cate_id = map.get('CateId')
return self
class UpdateCategoryResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class GetCategoriesRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_id=None, resource_owner_account=None, cate_id=None, page_no=None, page_size=None, sort_by=None, type=None):
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.cate_id = cate_id
self.page_no = page_no
self.page_size = page_size
self.sort_by = sort_by
self.type = type
def validate(self):
pass
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['CateId'] = self.cate_id
result['PageNo'] = self.page_no
result['PageSize'] = self.page_size
result['SortBy'] = self.sort_by
result['Type'] = self.type
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.cate_id = map.get('CateId')
self.page_no = map.get('PageNo')
self.page_size = map.get('PageSize')
self.sort_by = map.get('SortBy')
self.type = map.get('Type')
return self
class GetCategoriesResponse(TeaModel):
def __init__(self, request_id=None, sub_total=None, sub_categories=None, category=None):
self.request_id = request_id
self.sub_total = sub_total
self.sub_categories = sub_categories
self.category = category
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.sub_total, 'sub_total')
self.validate_required(self.sub_categories, 'sub_categories')
if self.sub_categories:
self.sub_categories.validate()
self.validate_required(self.category, 'category')
if self.category:
self.category.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['SubTotal'] = self.sub_total
if self.sub_categories is not None:
result['SubCategories'] = self.sub_categories.to_map()
else:
result['SubCategories'] = None
if self.category is not None:
result['Category'] = self.category.to_map()
else:
result['Category'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.sub_total = map.get('SubTotal')
if map.get('SubCategories') is not None:
temp_model = GetCategoriesResponseSubCategories()
self.sub_categories = temp_model.from_map(map['SubCategories'])
else:
self.sub_categories = None
if map.get('Category') is not None:
temp_model = GetCategoriesResponseCategory()
self.category = temp_model.from_map(map['Category'])
else:
self.category = None
return self
class GetCategoriesResponseSubCategoriesCategory(TeaModel):
def __init__(self, cate_id=None, cate_name=None, level=None, parent_id=None, sub_total=None, type=None):
self.cate_id = cate_id
self.cate_name = cate_name
self.level = level
self.parent_id = parent_id
self.sub_total = sub_total
self.type = type
def validate(self):
self.validate_required(self.cate_id, 'cate_id')
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.level, 'level')
self.validate_required(self.parent_id, 'parent_id')
self.validate_required(self.sub_total, 'sub_total')
self.validate_required(self.type, 'type')
def to_map(self):
result = {}
result['CateId'] = self.cate_id
result['CateName'] = self.cate_name
result['Level'] = self.level
result['ParentId'] = self.parent_id
result['SubTotal'] = self.sub_total
result['Type'] = self.type
return result
def from_map(self, map={}):
self.cate_id = map.get('CateId')
self.cate_name = map.get('CateName')
self.level = map.get('Level')
self.parent_id = map.get('ParentId')
self.sub_total = map.get('SubTotal')
self.type = map.get('Type')
return self
class GetCategoriesResponseSubCategories(TeaModel):
def __init__(self, category=None):
self.category = []
def validate(self):
self.validate_required(self.category, 'category')
if self.category:
for k in self.category:
if k :
k.validate()
def to_map(self):
result = {}
result['Category'] = []
if self.category is not None:
for k in self.category:
result['Category'].append(k.to_map() if k else None)
else:
result['Category'] = None
return result
def from_map(self, map={}):
self.category = []
if map.get('Category') is not None:
for k in map.get('Category'):
temp_model = GetCategoriesResponseSubCategoriesCategory()
temp_model = temp_model.from_map(k)
self.category.append(temp_model)
else:
self.category = None
return self
class GetCategoriesResponseCategory(TeaModel):
def __init__(self, cate_id=None, cate_name=None, level=None, parent_id=None, type=None):
self.cate_id = cate_id
self.cate_name = cate_name
self.level = level
self.parent_id = parent_id
self.type = type
def validate(self):
self.validate_required(self.cate_id, 'cate_id')
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.level, 'level')
self.validate_required(self.parent_id, 'parent_id')
self.validate_required(self.type, 'type')
def to_map(self):
result = {}
result['CateId'] = self.cate_id
result['CateName'] = self.cate_name
result['Level'] = self.level
result['ParentId'] = self.parent_id
result['Type'] = self.type
return result
def from_map(self, map={}):
self.cate_id = map.get('CateId')
self.cate_name = map.get('CateName')
self.level = map.get('Level')
self.parent_id = map.get('ParentId')
self.type = map.get('Type')
return self
class DeleteCategoryRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_id=None, resource_owner_account=None, cate_id=None):
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.cate_id = cate_id
def validate(self):
self.validate_required(self.cate_id, 'cate_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['CateId'] = self.cate_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.cate_id = map.get('CateId')
return self
class DeleteCategoryResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class AddCategoryRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_id=None, resource_owner_account=None, cate_name=None, parent_id=None, type=None):
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.cate_name = cate_name
self.parent_id = parent_id
self.type = type
def validate(self):
self.validate_required(self.cate_name, 'cate_name')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['CateName'] = self.cate_name
result['ParentId'] = self.parent_id
result['Type'] = self.type
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.cate_name = map.get('CateName')
self.parent_id = map.get('ParentId')
self.type = map.get('Type')
return self
class AddCategoryResponse(TeaModel):
def __init__(self, request_id=None, category=None):
self.request_id = request_id
self.category = category
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.category, 'category')
if self.category:
self.category.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.category is not None:
result['Category'] = self.category.to_map()
else:
result['Category'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('Category') is not None:
temp_model = AddCategoryResponseCategory()
self.category = temp_model.from_map(map['Category'])
else:
self.category = None
return self
class AddCategoryResponseCategory(TeaModel):
def __init__(self, cate_id=None, cate_name=None, parent_id=None, level=None, type=None):
self.cate_id = cate_id
self.cate_name = cate_name
self.parent_id = parent_id
self.level = level
self.type = type
def validate(self):
self.validate_required(self.cate_id, 'cate_id')
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.parent_id, 'parent_id')
self.validate_required(self.level, 'level')
self.validate_required(self.type, 'type')
def to_map(self):
result = {}
result['CateId'] = self.cate_id
result['CateName'] = self.cate_name
result['ParentId'] = self.parent_id
result['Level'] = self.level
result['Type'] = self.type
return result
def from_map(self, map={}):
self.cate_id = map.get('CateId')
self.cate_name = map.get('CateName')
self.parent_id = map.get('ParentId')
self.level = map.get('Level')
self.type = map.get('Type')
return self
class GetPlayInfoRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_id=None, formats=None, auth_timeout=None, output_type=None, stream_type=None, re_auth_info=None, definition=None, result_type=None, play_config=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_id = video_id
self.formats = formats
self.auth_timeout = auth_timeout
self.output_type = output_type
self.stream_type = stream_type
self.re_auth_info = re_auth_info
self.definition = definition
self.result_type = result_type
self.play_config = play_config
def validate(self):
self.validate_required(self.video_id, 'video_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoId'] = self.video_id
result['Formats'] = self.formats
result['AuthTimeout'] = self.auth_timeout
result['OutputType'] = self.output_type
result['StreamType'] = self.stream_type
result['ReAuthInfo'] = self.re_auth_info
result['Definition'] = self.definition
result['ResultType'] = self.result_type
result['PlayConfig'] = self.play_config
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_id = map.get('VideoId')
self.formats = map.get('Formats')
self.auth_timeout = map.get('AuthTimeout')
self.output_type = map.get('OutputType')
self.stream_type = map.get('StreamType')
self.re_auth_info = map.get('ReAuthInfo')
self.definition = map.get('Definition')
self.result_type = map.get('ResultType')
self.play_config = map.get('PlayConfig')
return self
class GetPlayInfoResponse(TeaModel):
def __init__(self, request_id=None, play_info_list=None, video_base=None):
self.request_id = request_id
self.play_info_list = play_info_list
self.video_base = video_base
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.play_info_list, 'play_info_list')
if self.play_info_list:
self.play_info_list.validate()
self.validate_required(self.video_base, 'video_base')
if self.video_base:
self.video_base.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.play_info_list is not None:
result['PlayInfoList'] = self.play_info_list.to_map()
else:
result['PlayInfoList'] = None
if self.video_base is not None:
result['VideoBase'] = self.video_base.to_map()
else:
result['VideoBase'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('PlayInfoList') is not None:
temp_model = GetPlayInfoResponsePlayInfoList()
self.play_info_list = temp_model.from_map(map['PlayInfoList'])
else:
self.play_info_list = None
if map.get('VideoBase') is not None:
temp_model = GetPlayInfoResponseVideoBase()
self.video_base = temp_model.from_map(map['VideoBase'])
else:
self.video_base = None
return self
class GetPlayInfoResponsePlayInfoListPlayInfo(TeaModel):
def __init__(self, width=None, height=None, size=None, play_url=None, bitrate=None, definition=None, duration=None, format=None, fps=None, encrypt=None, plaintext=None, complexity=None, stream_type=None, rand=None, job_id=None, preprocess_status=None, watermark_id=None, status=None, creation_time=None, modification_time=None, encrypt_type=None, narrow_band_type=None, specification=None):
self.width = width
self.height = height
self.size = size
self.play_url = play_url
self.bitrate = bitrate
self.definition = definition
self.duration = duration
self.format = format
self.fps = fps
self.encrypt = encrypt
self.plaintext = plaintext
self.complexity = complexity
self.stream_type = stream_type
self.rand = rand
self.job_id = job_id
self.preprocess_status = preprocess_status
self.watermark_id = watermark_id
self.status = status
self.creation_time = creation_time
self.modification_time = modification_time
self.encrypt_type = encrypt_type
self.narrow_band_type = narrow_band_type
self.specification = specification
def validate(self):
self.validate_required(self.width, 'width')
self.validate_required(self.height, 'height')
self.validate_required(self.size, 'size')
self.validate_required(self.play_url, 'play_url')
self.validate_required(self.bitrate, 'bitrate')
self.validate_required(self.definition, 'definition')
self.validate_required(self.duration, 'duration')
self.validate_required(self.format, 'format')
self.validate_required(self.fps, 'fps')
self.validate_required(self.encrypt, 'encrypt')
self.validate_required(self.plaintext, 'plaintext')
self.validate_required(self.complexity, 'complexity')
self.validate_required(self.stream_type, 'stream_type')
self.validate_required(self.rand, 'rand')
self.validate_required(self.job_id, 'job_id')
self.validate_required(self.preprocess_status, 'preprocess_status')
self.validate_required(self.watermark_id, 'watermark_id')
self.validate_required(self.status, 'status')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.modification_time, 'modification_time')
self.validate_required(self.encrypt_type, 'encrypt_type')
self.validate_required(self.narrow_band_type, 'narrow_band_type')
self.validate_required(self.specification, 'specification')
def to_map(self):
result = {}
result['Width'] = self.width
result['Height'] = self.height
result['Size'] = self.size
result['PlayURL'] = self.play_url
result['Bitrate'] = self.bitrate
result['Definition'] = self.definition
result['Duration'] = self.duration
result['Format'] = self.format
result['Fps'] = self.fps
result['Encrypt'] = self.encrypt
result['Plaintext'] = self.plaintext
result['Complexity'] = self.complexity
result['StreamType'] = self.stream_type
result['Rand'] = self.rand
result['JobId'] = self.job_id
result['PreprocessStatus'] = self.preprocess_status
result['WatermarkId'] = self.watermark_id
result['Status'] = self.status
result['CreationTime'] = self.creation_time
result['ModificationTime'] = self.modification_time
result['EncryptType'] = self.encrypt_type
result['NarrowBandType'] = self.narrow_band_type
result['Specification'] = self.specification
return result
def from_map(self, map={}):
self.width = map.get('Width')
self.height = map.get('Height')
self.size = map.get('Size')
self.play_url = map.get('PlayURL')
self.bitrate = map.get('Bitrate')
self.definition = map.get('Definition')
self.duration = map.get('Duration')
self.format = map.get('Format')
self.fps = map.get('Fps')
self.encrypt = map.get('Encrypt')
self.plaintext = map.get('Plaintext')
self.complexity = map.get('Complexity')
self.stream_type = map.get('StreamType')
self.rand = map.get('Rand')
self.job_id = map.get('JobId')
self.preprocess_status = map.get('PreprocessStatus')
self.watermark_id = map.get('WatermarkId')
self.status = map.get('Status')
self.creation_time = map.get('CreationTime')
self.modification_time = map.get('ModificationTime')
self.encrypt_type = map.get('EncryptType')
self.narrow_band_type = map.get('NarrowBandType')
self.specification = map.get('Specification')
return self
class GetPlayInfoResponsePlayInfoList(TeaModel):
def __init__(self, play_info=None):
self.play_info = []
def validate(self):
self.validate_required(self.play_info, 'play_info')
if self.play_info:
for k in self.play_info:
if k :
k.validate()
def to_map(self):
result = {}
result['PlayInfo'] = []
if self.play_info is not None:
for k in self.play_info:
result['PlayInfo'].append(k.to_map() if k else None)
else:
result['PlayInfo'] = None
return result
def from_map(self, map={}):
self.play_info = []
if map.get('PlayInfo') is not None:
for k in map.get('PlayInfo'):
temp_model = GetPlayInfoResponsePlayInfoListPlayInfo()
temp_model = temp_model.from_map(k)
self.play_info.append(temp_model)
else:
self.play_info = None
return self
class GetPlayInfoResponseVideoBaseThumbnailListThumbnail(TeaModel):
def __init__(self, _url=None):
self._url = _url
def validate(self):
self.validate_required(self._url, '_url')
def to_map(self):
result = {}
result['URL'] = self._url
return result
def from_map(self, map={}):
self._url = map.get('URL')
return self
class GetPlayInfoResponseVideoBaseThumbnailList(TeaModel):
def __init__(self, thumbnail=None):
self.thumbnail = []
def validate(self):
self.validate_required(self.thumbnail, 'thumbnail')
if self.thumbnail:
for k in self.thumbnail:
if k :
k.validate()
def to_map(self):
result = {}
result['Thumbnail'] = []
if self.thumbnail is not None:
for k in self.thumbnail:
result['Thumbnail'].append(k.to_map() if k else None)
else:
result['Thumbnail'] = None
return result
def from_map(self, map={}):
self.thumbnail = []
if map.get('Thumbnail') is not None:
for k in map.get('Thumbnail'):
temp_model = GetPlayInfoResponseVideoBaseThumbnailListThumbnail()
temp_model = temp_model.from_map(k)
self.thumbnail.append(temp_model)
else:
self.thumbnail = None
return self
class GetPlayInfoResponseVideoBase(TeaModel):
def __init__(self, output_type=None, cover_url=None, duration=None, status=None, title=None, video_id=None, media_type=None, creation_time=None, transcode_mode=None, thumbnail_list=None):
self.output_type = output_type
self.cover_url = cover_url
self.duration = duration
self.status = status
self.title = title
self.video_id = video_id
self.media_type = media_type
self.creation_time = creation_time
self.transcode_mode = transcode_mode
self.thumbnail_list = thumbnail_list
def validate(self):
self.validate_required(self.output_type, 'output_type')
self.validate_required(self.cover_url, 'cover_url')
self.validate_required(self.duration, 'duration')
self.validate_required(self.status, 'status')
self.validate_required(self.title, 'title')
self.validate_required(self.video_id, 'video_id')
self.validate_required(self.media_type, 'media_type')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.transcode_mode, 'transcode_mode')
self.validate_required(self.thumbnail_list, 'thumbnail_list')
if self.thumbnail_list:
self.thumbnail_list.validate()
def to_map(self):
result = {}
result['OutputType'] = self.output_type
result['CoverURL'] = self.cover_url
result['Duration'] = self.duration
result['Status'] = self.status
result['Title'] = self.title
result['VideoId'] = self.video_id
result['MediaType'] = self.media_type
result['CreationTime'] = self.creation_time
result['TranscodeMode'] = self.transcode_mode
if self.thumbnail_list is not None:
result['ThumbnailList'] = self.thumbnail_list.to_map()
else:
result['ThumbnailList'] = None
return result
def from_map(self, map={}):
self.output_type = map.get('OutputType')
self.cover_url = map.get('CoverURL')
self.duration = map.get('Duration')
self.status = map.get('Status')
self.title = map.get('Title')
self.video_id = map.get('VideoId')
self.media_type = map.get('MediaType')
self.creation_time = map.get('CreationTime')
self.transcode_mode = map.get('TranscodeMode')
if map.get('ThumbnailList') is not None:
temp_model = GetPlayInfoResponseVideoBaseThumbnailList()
self.thumbnail_list = temp_model.from_map(map['ThumbnailList'])
else:
self.thumbnail_list = None
return self
class CreateUploadImageRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_account=None, resource_owner_id=None, title=None, image_type=None, image_ext=None, original_file_name=None, tags=None, storage_location=None, cate_id=None, user_data=None, description=None, app_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.title = title
self.image_type = image_type
self.image_ext = image_ext
self.original_file_name = original_file_name
self.tags = tags
self.storage_location = storage_location
self.cate_id = cate_id
self.user_data = user_data
self.description = description
self.app_id = app_id
def validate(self):
self.validate_required(self.image_type, 'image_type')
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['Title'] = self.title
result['ImageType'] = self.image_type
result['ImageExt'] = self.image_ext
result['OriginalFileName'] = self.original_file_name
result['Tags'] = self.tags
result['StorageLocation'] = self.storage_location
result['CateId'] = self.cate_id
result['UserData'] = self.user_data
result['Description'] = self.description
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.title = map.get('Title')
self.image_type = map.get('ImageType')
self.image_ext = map.get('ImageExt')
self.original_file_name = map.get('OriginalFileName')
self.tags = map.get('Tags')
self.storage_location = map.get('StorageLocation')
self.cate_id = map.get('CateId')
self.user_data = map.get('UserData')
self.description = map.get('Description')
self.app_id = map.get('AppId')
return self
class CreateUploadImageResponse(TeaModel):
def __init__(self, request_id=None, image_id=None, image_url=None, upload_address=None, upload_auth=None, file_url=None):
self.request_id = request_id
self.image_id = image_id
self.image_url = image_url
self.upload_address = upload_address
self.upload_auth = upload_auth
self.file_url = file_url
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.image_id, 'image_id')
self.validate_required(self.image_url, 'image_url')
self.validate_required(self.upload_address, 'upload_address')
self.validate_required(self.upload_auth, 'upload_auth')
self.validate_required(self.file_url, 'file_url')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['ImageId'] = self.image_id
result['ImageURL'] = self.image_url
result['UploadAddress'] = self.upload_address
result['UploadAuth'] = self.upload_auth
result['FileURL'] = self.file_url
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.image_id = map.get('ImageId')
self.image_url = map.get('ImageURL')
self.upload_address = map.get('UploadAddress')
self.upload_auth = map.get('UploadAuth')
self.file_url = map.get('FileURL')
return self
class SetMessageCallbackRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, callback_type=None, callback_url=None, event_type_list=None, auth_switch=None, auth_key=None, resource_real_owner_id=None, mns_endpoint=None, mns_queue_name=None, app_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.callback_type = callback_type
self.callback_url = callback_url
self.event_type_list = event_type_list
self.auth_switch = auth_switch
self.auth_key = auth_key
self.resource_real_owner_id = resource_real_owner_id
self.mns_endpoint = mns_endpoint
self.mns_queue_name = mns_queue_name
self.app_id = app_id
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['CallbackType'] = self.callback_type
result['CallbackURL'] = self.callback_url
result['EventTypeList'] = self.event_type_list
result['AuthSwitch'] = self.auth_switch
result['AuthKey'] = self.auth_key
result['ResourceRealOwnerId'] = self.resource_real_owner_id
result['MnsEndpoint'] = self.mns_endpoint
result['MnsQueueName'] = self.mns_queue_name
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.callback_type = map.get('CallbackType')
self.callback_url = map.get('CallbackURL')
self.event_type_list = map.get('EventTypeList')
self.auth_switch = map.get('AuthSwitch')
self.auth_key = map.get('AuthKey')
self.resource_real_owner_id = map.get('ResourceRealOwnerId')
self.mns_endpoint = map.get('MnsEndpoint')
self.mns_queue_name = map.get('MnsQueueName')
self.app_id = map.get('AppId')
return self
class SetMessageCallbackResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class GetMessageCallbackRequest(TeaModel):
def __init__(self, access_key_id=None, owner_id=None, resource_owner_id=None, resource_owner_account=None, owner_account=None, resource_real_owner_id=None, app_id=None):
self.access_key_id = access_key_id
self.owner_id = owner_id
self.resource_owner_id = resource_owner_id
self.resource_owner_account = resource_owner_account
self.owner_account = owner_account
self.resource_real_owner_id = resource_real_owner_id
self.app_id = app_id
def validate(self):
pass
def to_map(self):
result = {}
result['AccessKeyId'] = self.access_key_id
result['OwnerId'] = self.owner_id
result['ResourceOwnerId'] = self.resource_owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['OwnerAccount'] = self.owner_account
result['ResourceRealOwnerId'] = self.resource_real_owner_id
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.access_key_id = map.get('AccessKeyId')
self.owner_id = map.get('OwnerId')
self.resource_owner_id = map.get('ResourceOwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.owner_account = map.get('OwnerAccount')
self.resource_real_owner_id = map.get('ResourceRealOwnerId')
self.app_id = map.get('AppId')
return self
class GetMessageCallbackResponse(TeaModel):
def __init__(self, request_id=None, message_callback=None):
self.request_id = request_id
self.message_callback = message_callback
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.message_callback, 'message_callback')
if self.message_callback:
self.message_callback.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
if self.message_callback is not None:
result['MessageCallback'] = self.message_callback.to_map()
else:
result['MessageCallback'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
if map.get('MessageCallback') is not None:
temp_model = GetMessageCallbackResponseMessageCallback()
self.message_callback = temp_model.from_map(map['MessageCallback'])
else:
self.message_callback = None
return self
class GetMessageCallbackResponseMessageCallback(TeaModel):
def __init__(self, callback_type=None, callback_url=None, event_type_list=None, auth_switch=None, auth_key=None, mns_endpoint=None, mns_queue_name=None, app_id=None):
self.callback_type = callback_type
self.callback_url = callback_url
self.event_type_list = event_type_list
self.auth_switch = auth_switch
self.auth_key = auth_key
self.mns_endpoint = mns_endpoint
self.mns_queue_name = mns_queue_name
self.app_id = app_id
def validate(self):
self.validate_required(self.callback_type, 'callback_type')
self.validate_required(self.callback_url, 'callback_url')
self.validate_required(self.event_type_list, 'event_type_list')
self.validate_required(self.auth_switch, 'auth_switch')
self.validate_required(self.auth_key, 'auth_key')
self.validate_required(self.mns_endpoint, 'mns_endpoint')
self.validate_required(self.mns_queue_name, 'mns_queue_name')
self.validate_required(self.app_id, 'app_id')
def to_map(self):
result = {}
result['CallbackType'] = self.callback_type
result['CallbackURL'] = self.callback_url
result['EventTypeList'] = self.event_type_list
result['AuthSwitch'] = self.auth_switch
result['AuthKey'] = self.auth_key
result['MnsEndpoint'] = self.mns_endpoint
result['MnsQueueName'] = self.mns_queue_name
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.callback_type = map.get('CallbackType')
self.callback_url = map.get('CallbackURL')
self.event_type_list = map.get('EventTypeList')
self.auth_switch = map.get('AuthSwitch')
self.auth_key = map.get('AuthKey')
self.mns_endpoint = map.get('MnsEndpoint')
self.mns_queue_name = map.get('MnsQueueName')
self.app_id = map.get('AppId')
return self
class UpdateVideoInfoRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_id=None, title=None, tags=None, description=None, cover_url=None, cate_id=None, custom_media_info=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_id = video_id
self.title = title
self.tags = tags
self.description = description
self.cover_url = cover_url
self.cate_id = cate_id
self.custom_media_info = custom_media_info
def validate(self):
self.validate_required(self.video_id, 'video_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoId'] = self.video_id
result['Title'] = self.title
result['Tags'] = self.tags
result['Description'] = self.description
result['CoverURL'] = self.cover_url
result['CateId'] = self.cate_id
result['CustomMediaInfo'] = self.custom_media_info
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_id = map.get('VideoId')
self.title = map.get('Title')
self.tags = map.get('Tags')
self.description = map.get('Description')
self.cover_url = map.get('CoverURL')
self.cate_id = map.get('CateId')
self.custom_media_info = map.get('CustomMediaInfo')
return self
class UpdateVideoInfoResponse(TeaModel):
def __init__(self, request_id=None):
self.request_id = request_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
return self
class GetVideoPlayAuthRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_id=None, auth_info_timeout=None, play_config=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_id = video_id
self.auth_info_timeout = auth_info_timeout
self.play_config = play_config
def validate(self):
self.validate_required(self.video_id, 'video_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoId'] = self.video_id
result['AuthInfoTimeout'] = self.auth_info_timeout
result['PlayConfig'] = self.play_config
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_id = map.get('VideoId')
self.auth_info_timeout = map.get('AuthInfoTimeout')
self.play_config = map.get('PlayConfig')
return self
class GetVideoPlayAuthResponse(TeaModel):
def __init__(self, request_id=None, play_auth=None, video_meta=None):
self.request_id = request_id
self.play_auth = play_auth
self.video_meta = video_meta
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.play_auth, 'play_auth')
self.validate_required(self.video_meta, 'video_meta')
if self.video_meta:
self.video_meta.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['PlayAuth'] = self.play_auth
if self.video_meta is not None:
result['VideoMeta'] = self.video_meta.to_map()
else:
result['VideoMeta'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.play_auth = map.get('PlayAuth')
if map.get('VideoMeta') is not None:
temp_model = GetVideoPlayAuthResponseVideoMeta()
self.video_meta = temp_model.from_map(map['VideoMeta'])
else:
self.video_meta = None
return self
class GetVideoPlayAuthResponseVideoMeta(TeaModel):
def __init__(self, cover_url=None, duration=None, status=None, title=None, video_id=None):
self.cover_url = cover_url
self.duration = duration
self.status = status
self.title = title
self.video_id = video_id
def validate(self):
self.validate_required(self.cover_url, 'cover_url')
self.validate_required(self.duration, 'duration')
self.validate_required(self.status, 'status')
self.validate_required(self.title, 'title')
self.validate_required(self.video_id, 'video_id')
def to_map(self):
result = {}
result['CoverURL'] = self.cover_url
result['Duration'] = self.duration
result['Status'] = self.status
result['Title'] = self.title
result['VideoId'] = self.video_id
return result
def from_map(self, map={}):
self.cover_url = map.get('CoverURL')
self.duration = map.get('Duration')
self.status = map.get('Status')
self.title = map.get('Title')
self.video_id = map.get('VideoId')
return self
class GetVideoListRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, cate_id=None, status=None, page_no=None, page_size=None, sort_by=None, start_time=None, end_time=None, storage_location=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.cate_id = cate_id
self.status = status
self.page_no = page_no
self.page_size = page_size
self.sort_by = sort_by
self.start_time = start_time
self.end_time = end_time
self.storage_location = storage_location
def validate(self):
pass
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['CateId'] = self.cate_id
result['Status'] = self.status
result['PageNo'] = self.page_no
result['PageSize'] = self.page_size
result['SortBy'] = self.sort_by
result['StartTime'] = self.start_time
result['EndTime'] = self.end_time
result['StorageLocation'] = self.storage_location
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.cate_id = map.get('CateId')
self.status = map.get('Status')
self.page_no = map.get('PageNo')
self.page_size = map.get('PageSize')
self.sort_by = map.get('SortBy')
self.start_time = map.get('StartTime')
self.end_time = map.get('EndTime')
self.storage_location = map.get('StorageLocation')
return self
class GetVideoListResponse(TeaModel):
def __init__(self, request_id=None, total=None, video_list=None):
self.request_id = request_id
self.total = total
self.video_list = video_list
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.total, 'total')
self.validate_required(self.video_list, 'video_list')
if self.video_list:
self.video_list.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['Total'] = self.total
if self.video_list is not None:
result['VideoList'] = self.video_list.to_map()
else:
result['VideoList'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.total = map.get('Total')
if map.get('VideoList') is not None:
temp_model = GetVideoListResponseVideoList()
self.video_list = temp_model.from_map(map['VideoList'])
else:
self.video_list = None
return self
class GetVideoListResponseVideoListVideoSnapshots(TeaModel):
def __init__(self, snapshot=None):
self.snapshot = []
def validate(self):
self.validate_required(self.snapshot, 'snapshot')
def to_map(self):
result = {}
result['Snapshot'] = []
if self.snapshot is not None:
for k in self.snapshot:
result['Snapshot'].append(k)
else:
result['Snapshot'] = None
return result
def from_map(self, map={}):
self.snapshot = []
if map.get('Snapshot') is not None:
for k in map.get('Snapshot'):
self.snapshot.append(k)
else:
self.snapshot = None
return self
class GetVideoListResponseVideoListVideo(TeaModel):
def __init__(self, video_id=None, title=None, tags=None, status=None, size=None, duration=None, description=None, create_time=None, modify_time=None, modification_time=None, creation_time=None, cover_url=None, cate_id=None, cate_name=None, storage_location=None, app_id=None, snapshots=None):
self.video_id = video_id
self.title = title
self.tags = tags
self.status = status
self.size = size
self.duration = duration
self.description = description
self.create_time = create_time
self.modify_time = modify_time
self.modification_time = modification_time
self.creation_time = creation_time
self.cover_url = cover_url
self.cate_id = cate_id
self.cate_name = cate_name
self.storage_location = storage_location
self.app_id = app_id
self.snapshots = snapshots
def validate(self):
self.validate_required(self.video_id, 'video_id')
self.validate_required(self.title, 'title')
self.validate_required(self.tags, 'tags')
self.validate_required(self.status, 'status')
self.validate_required(self.size, 'size')
self.validate_required(self.duration, 'duration')
self.validate_required(self.description, 'description')
self.validate_required(self.create_time, 'create_time')
self.validate_required(self.modify_time, 'modify_time')
self.validate_required(self.modification_time, 'modification_time')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.cover_url, 'cover_url')
self.validate_required(self.cate_id, 'cate_id')
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.storage_location, 'storage_location')
self.validate_required(self.app_id, 'app_id')
self.validate_required(self.snapshots, 'snapshots')
if self.snapshots:
self.snapshots.validate()
def to_map(self):
result = {}
result['VideoId'] = self.video_id
result['Title'] = self.title
result['Tags'] = self.tags
result['Status'] = self.status
result['Size'] = self.size
result['Duration'] = self.duration
result['Description'] = self.description
result['CreateTime'] = self.create_time
result['ModifyTime'] = self.modify_time
result['ModificationTime'] = self.modification_time
result['CreationTime'] = self.creation_time
result['CoverURL'] = self.cover_url
result['CateId'] = self.cate_id
result['CateName'] = self.cate_name
result['StorageLocation'] = self.storage_location
result['AppId'] = self.app_id
if self.snapshots is not None:
result['Snapshots'] = self.snapshots.to_map()
else:
result['Snapshots'] = None
return result
def from_map(self, map={}):
self.video_id = map.get('VideoId')
self.title = map.get('Title')
self.tags = map.get('Tags')
self.status = map.get('Status')
self.size = map.get('Size')
self.duration = map.get('Duration')
self.description = map.get('Description')
self.create_time = map.get('CreateTime')
self.modify_time = map.get('ModifyTime')
self.modification_time = map.get('ModificationTime')
self.creation_time = map.get('CreationTime')
self.cover_url = map.get('CoverURL')
self.cate_id = map.get('CateId')
self.cate_name = map.get('CateName')
self.storage_location = map.get('StorageLocation')
self.app_id = map.get('AppId')
if map.get('Snapshots') is not None:
temp_model = GetVideoListResponseVideoListVideoSnapshots()
self.snapshots = temp_model.from_map(map['Snapshots'])
else:
self.snapshots = None
return self
class GetVideoListResponseVideoList(TeaModel):
def __init__(self, video=None):
self.video = []
def validate(self):
self.validate_required(self.video, 'video')
if self.video:
for k in self.video:
if k :
k.validate()
def to_map(self):
result = {}
result['Video'] = []
if self.video is not None:
for k in self.video:
result['Video'].append(k.to_map() if k else None)
else:
result['Video'] = None
return result
def from_map(self, map={}):
self.video = []
if map.get('Video') is not None:
for k in map.get('Video'):
temp_model = GetVideoListResponseVideoListVideo()
temp_model = temp_model.from_map(k)
self.video.append(temp_model)
else:
self.video = None
return self
class GetVideoInfoRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_id=None, addition_type=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_id = video_id
self.addition_type = addition_type
def validate(self):
self.validate_required(self.video_id, 'video_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoId'] = self.video_id
result['AdditionType'] = self.addition_type
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_id = map.get('VideoId')
self.addition_type = map.get('AdditionType')
return self
class GetVideoInfoResponse(TeaModel):
def __init__(self, request_id=None, _ai=None, video=None):
self.request_id = request_id
self._ai = _ai
self.video = video
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self._ai, '_ai')
self.validate_required(self.video, 'video')
if self.video:
self.video.validate()
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['AI'] = self._ai
if self.video is not None:
result['Video'] = self.video.to_map()
else:
result['Video'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self._ai = map.get('AI')
if map.get('Video') is not None:
temp_model = GetVideoInfoResponseVideo()
self.video = temp_model.from_map(map['Video'])
else:
self.video = None
return self
class GetVideoInfoResponseVideoThumbnailListThumbnail(TeaModel):
def __init__(self, _url=None):
self._url = _url
def validate(self):
self.validate_required(self._url, '_url')
def to_map(self):
result = {}
result['URL'] = self._url
return result
def from_map(self, map={}):
self._url = map.get('URL')
return self
class GetVideoInfoResponseVideoThumbnailList(TeaModel):
def __init__(self, thumbnail=None):
self.thumbnail = []
def validate(self):
self.validate_required(self.thumbnail, 'thumbnail')
if self.thumbnail:
for k in self.thumbnail:
if k :
k.validate()
def to_map(self):
result = {}
result['Thumbnail'] = []
if self.thumbnail is not None:
for k in self.thumbnail:
result['Thumbnail'].append(k.to_map() if k else None)
else:
result['Thumbnail'] = None
return result
def from_map(self, map={}):
self.thumbnail = []
if map.get('Thumbnail') is not None:
for k in map.get('Thumbnail'):
temp_model = GetVideoInfoResponseVideoThumbnailListThumbnail()
temp_model = temp_model.from_map(k)
self.thumbnail.append(temp_model)
else:
self.thumbnail = None
return self
class GetVideoInfoResponseVideoSnapshots(TeaModel):
def __init__(self, snapshot=None):
self.snapshot = []
def validate(self):
self.validate_required(self.snapshot, 'snapshot')
def to_map(self):
result = {}
result['Snapshot'] = []
if self.snapshot is not None:
for k in self.snapshot:
result['Snapshot'].append(k)
else:
result['Snapshot'] = None
return result
def from_map(self, map={}):
self.snapshot = []
if map.get('Snapshot') is not None:
for k in map.get('Snapshot'):
self.snapshot.append(k)
else:
self.snapshot = None
return self
class GetVideoInfoResponseVideo(TeaModel):
def __init__(self, video_id=None, title=None, tags=None, status=None, size=None, duration=None, description=None, create_time=None, modify_time=None, modification_time=None, creation_time=None, cover_url=None, cate_id=None, cate_name=None, download_switch=None, template_group_id=None, preprocess_status=None, storage_location=None, region_id=None, custom_media_info=None, audit_status=None, app_id=None, thumbnail_list=None, snapshots=None):
self.video_id = video_id
self.title = title
self.tags = tags
self.status = status
self.size = size
self.duration = duration
self.description = description
self.create_time = create_time
self.modify_time = modify_time
self.modification_time = modification_time
self.creation_time = creation_time
self.cover_url = cover_url
self.cate_id = cate_id
self.cate_name = cate_name
self.download_switch = download_switch
self.template_group_id = template_group_id
self.preprocess_status = preprocess_status
self.storage_location = storage_location
self.region_id = region_id
self.custom_media_info = custom_media_info
self.audit_status = audit_status
self.app_id = app_id
self.thumbnail_list = thumbnail_list
self.snapshots = snapshots
def validate(self):
self.validate_required(self.video_id, 'video_id')
self.validate_required(self.title, 'title')
self.validate_required(self.tags, 'tags')
self.validate_required(self.status, 'status')
self.validate_required(self.size, 'size')
self.validate_required(self.duration, 'duration')
self.validate_required(self.description, 'description')
self.validate_required(self.create_time, 'create_time')
self.validate_required(self.modify_time, 'modify_time')
self.validate_required(self.modification_time, 'modification_time')
self.validate_required(self.creation_time, 'creation_time')
self.validate_required(self.cover_url, 'cover_url')
self.validate_required(self.cate_id, 'cate_id')
self.validate_required(self.cate_name, 'cate_name')
self.validate_required(self.download_switch, 'download_switch')
self.validate_required(self.template_group_id, 'template_group_id')
self.validate_required(self.preprocess_status, 'preprocess_status')
self.validate_required(self.storage_location, 'storage_location')
self.validate_required(self.region_id, 'region_id')
self.validate_required(self.custom_media_info, 'custom_media_info')
self.validate_required(self.audit_status, 'audit_status')
self.validate_required(self.app_id, 'app_id')
self.validate_required(self.thumbnail_list, 'thumbnail_list')
if self.thumbnail_list:
self.thumbnail_list.validate()
self.validate_required(self.snapshots, 'snapshots')
if self.snapshots:
self.snapshots.validate()
def to_map(self):
result = {}
result['VideoId'] = self.video_id
result['Title'] = self.title
result['Tags'] = self.tags
result['Status'] = self.status
result['Size'] = self.size
result['Duration'] = self.duration
result['Description'] = self.description
result['CreateTime'] = self.create_time
result['ModifyTime'] = self.modify_time
result['ModificationTime'] = self.modification_time
result['CreationTime'] = self.creation_time
result['CoverURL'] = self.cover_url
result['CateId'] = self.cate_id
result['CateName'] = self.cate_name
result['DownloadSwitch'] = self.download_switch
result['TemplateGroupId'] = self.template_group_id
result['PreprocessStatus'] = self.preprocess_status
result['StorageLocation'] = self.storage_location
result['RegionId'] = self.region_id
result['CustomMediaInfo'] = self.custom_media_info
result['AuditStatus'] = self.audit_status
result['AppId'] = self.app_id
if self.thumbnail_list is not None:
result['ThumbnailList'] = self.thumbnail_list.to_map()
else:
result['ThumbnailList'] = None
if self.snapshots is not None:
result['Snapshots'] = self.snapshots.to_map()
else:
result['Snapshots'] = None
return result
def from_map(self, map={}):
self.video_id = map.get('VideoId')
self.title = map.get('Title')
self.tags = map.get('Tags')
self.status = map.get('Status')
self.size = map.get('Size')
self.duration = map.get('Duration')
self.description = map.get('Description')
self.create_time = map.get('CreateTime')
self.modify_time = map.get('ModifyTime')
self.modification_time = map.get('ModificationTime')
self.creation_time = map.get('CreationTime')
self.cover_url = map.get('CoverURL')
self.cate_id = map.get('CateId')
self.cate_name = map.get('CateName')
self.download_switch = map.get('DownloadSwitch')
self.template_group_id = map.get('TemplateGroupId')
self.preprocess_status = map.get('PreprocessStatus')
self.storage_location = map.get('StorageLocation')
self.region_id = map.get('RegionId')
self.custom_media_info = map.get('CustomMediaInfo')
self.audit_status = map.get('AuditStatus')
self.app_id = map.get('AppId')
if map.get('ThumbnailList') is not None:
temp_model = GetVideoInfoResponseVideoThumbnailList()
self.thumbnail_list = temp_model.from_map(map['ThumbnailList'])
else:
self.thumbnail_list = None
if map.get('Snapshots') is not None:
temp_model = GetVideoInfoResponseVideoSnapshots()
self.snapshots = temp_model.from_map(map['Snapshots'])
else:
self.snapshots = None
return self
class DeleteVideoRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_ids=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_ids = video_ids
def validate(self):
self.validate_required(self.video_ids, 'video_ids')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoIds'] = self.video_ids
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_ids = map.get('VideoIds')
return self
class DeleteVideoResponse(TeaModel):
def __init__(self, request_id=None, non_exist_video_ids=None, forbidden_video_ids=None):
self.request_id = request_id
self.non_exist_video_ids = []
self.forbidden_video_ids = []
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.non_exist_video_ids, 'non_exist_video_ids')
self.validate_required(self.forbidden_video_ids, 'forbidden_video_ids')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['NonExistVideoIds'] = []
if self.non_exist_video_ids is not None:
for k in self.non_exist_video_ids:
result['NonExistVideoIds'].append(k)
else:
result['NonExistVideoIds'] = None
result['ForbiddenVideoIds'] = []
if self.forbidden_video_ids is not None:
for k in self.forbidden_video_ids:
result['ForbiddenVideoIds'].append(k)
else:
result['ForbiddenVideoIds'] = None
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.non_exist_video_ids = []
if map.get('NonExistVideoIds') is not None:
for k in map.get('NonExistVideoIds'):
self.non_exist_video_ids.append(k)
else:
self.non_exist_video_ids = None
self.forbidden_video_ids = []
if map.get('ForbiddenVideoIds') is not None:
for k in map.get('ForbiddenVideoIds'):
self.forbidden_video_ids.append(k)
else:
self.forbidden_video_ids = None
return self
class RefreshUploadVideoRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, video_id=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.video_id = video_id
def validate(self):
self.validate_required(self.video_id, 'video_id')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['VideoId'] = self.video_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.video_id = map.get('VideoId')
return self
class RefreshUploadVideoResponse(TeaModel):
def __init__(self, request_id=None, upload_auth=None, upload_address=None, video_id=None):
self.request_id = request_id
self.upload_auth = upload_auth
self.upload_address = upload_address
self.video_id = video_id
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.upload_auth, 'upload_auth')
self.validate_required(self.upload_address, 'upload_address')
self.validate_required(self.video_id, 'video_id')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['UploadAuth'] = self.upload_auth
result['UploadAddress'] = self.upload_address
result['VideoId'] = self.video_id
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.upload_auth = map.get('UploadAuth')
self.upload_address = map.get('UploadAddress')
self.video_id = map.get('VideoId')
return self
class CreateUploadVideoRequest(TeaModel):
def __init__(self, owner_id=None, resource_owner_account=None, resource_owner_id=None, cover_url=None, description=None, file_name=None, file_size=None, _ip=None, title=None, cate_id=None, tags=None, transcode_mode=None, user_data=None, template_group_id=None, workflow_id=None, storage_location=None, custom_media_info=None, app_id=None):
self.owner_id = owner_id
self.resource_owner_account = resource_owner_account
self.resource_owner_id = resource_owner_id
self.cover_url = cover_url
self.description = description
self.file_name = file_name
self.file_size = file_size
self._ip = _ip
self.title = title
self.cate_id = cate_id
self.tags = tags
self.transcode_mode = transcode_mode
self.user_data = user_data
self.template_group_id = template_group_id
self.workflow_id = workflow_id
self.storage_location = storage_location
self.custom_media_info = custom_media_info
self.app_id = app_id
def validate(self):
self.validate_required(self.file_name, 'file_name')
self.validate_required(self.title, 'title')
def to_map(self):
result = {}
result['OwnerId'] = self.owner_id
result['ResourceOwnerAccount'] = self.resource_owner_account
result['ResourceOwnerId'] = self.resource_owner_id
result['CoverURL'] = self.cover_url
result['Description'] = self.description
result['FileName'] = self.file_name
result['FileSize'] = self.file_size
result['IP'] = self._ip
result['Title'] = self.title
result['CateId'] = self.cate_id
result['Tags'] = self.tags
result['TranscodeMode'] = self.transcode_mode
result['UserData'] = self.user_data
result['TemplateGroupId'] = self.template_group_id
result['WorkflowId'] = self.workflow_id
result['StorageLocation'] = self.storage_location
result['CustomMediaInfo'] = self.custom_media_info
result['AppId'] = self.app_id
return result
def from_map(self, map={}):
self.owner_id = map.get('OwnerId')
self.resource_owner_account = map.get('ResourceOwnerAccount')
self.resource_owner_id = map.get('ResourceOwnerId')
self.cover_url = map.get('CoverURL')
self.description = map.get('Description')
self.file_name = map.get('FileName')
self.file_size = map.get('FileSize')
self._ip = map.get('IP')
self.title = map.get('Title')
self.cate_id = map.get('CateId')
self.tags = map.get('Tags')
self.transcode_mode = map.get('TranscodeMode')
self.user_data = map.get('UserData')
self.template_group_id = map.get('TemplateGroupId')
self.workflow_id = map.get('WorkflowId')
self.storage_location = map.get('StorageLocation')
self.custom_media_info = map.get('CustomMediaInfo')
self.app_id = map.get('AppId')
return self
class CreateUploadVideoResponse(TeaModel):
def __init__(self, request_id=None, video_id=None, upload_address=None, upload_auth=None):
self.request_id = request_id
self.video_id = video_id
self.upload_address = upload_address
self.upload_auth = upload_auth
def validate(self):
self.validate_required(self.request_id, 'request_id')
self.validate_required(self.video_id, 'video_id')
self.validate_required(self.upload_address, 'upload_address')
self.validate_required(self.upload_auth, 'upload_auth')
def to_map(self):
result = {}
result['RequestId'] = self.request_id
result['VideoId'] = self.video_id
result['UploadAddress'] = self.upload_address
result['UploadAuth'] = self.upload_auth
return result
def from_map(self, map={}):
self.request_id = map.get('RequestId')
self.video_id = map.get('VideoId')
self.upload_address = map.get('UploadAddress')
self.upload_auth = map.get('UploadAuth')
return self
| 38.113456
| 537
| 0.644581
| 77,271
| 661,116
| 5.259709
| 0.015724
| 0.03549
| 0.07598
| 0.091176
| 0.848446
| 0.816794
| 0.778999
| 0.752214
| 0.723684
| 0.700718
| 0
| 0.000073
| 0.250124
| 661,116
| 17,345
| 538
| 38.115653
| 0.819734
| 0.000077
| 0
| 0.814554
| 1
| 0
| 0.101251
| 0.00454
| 0
| 0
| 0
| 0
| 0
| 1
| 0.122921
| false
| 0.001862
| 0.000067
| 0
| 0.215179
| 0.000333
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
2a1b8cca5f9d571e4b1124558209e546d60df3f1
| 585,710
|
py
|
Python
|
yt/visualization/_colormap_data.py
|
Xarthisius/yt
|
321643c3abff64a6f132d98d0747f3558f7552a3
|
[
"BSD-3-Clause-Clear"
] | 1
|
2021-05-20T13:03:57.000Z
|
2021-05-20T13:03:57.000Z
|
yt/visualization/_colormap_data.py
|
Xarthisius/yt
|
321643c3abff64a6f132d98d0747f3558f7552a3
|
[
"BSD-3-Clause-Clear"
] | 31
|
2017-04-19T21:07:18.000Z
|
2017-04-20T01:08:43.000Z
|
yt/visualization/_colormap_data.py
|
stonnes/yt
|
aad3cfa3b4ebab7838352ab467275a27c26ff363
|
[
"BSD-3-Clause-Clear"
] | 2
|
2020-08-12T15:46:11.000Z
|
2021-02-09T13:09:17.000Z
|
### Auto-generated colormap tables, taken from Matplotlib ###
import numpy as np
from numpy import array
color_map_luts = {}
### RdBu ###
color_map_luts['RdBu'] = \
(
array([ 0.40392157, 0.4154556 , 0.42698963, 0.43852365, 0.45005768,
0.4615917 , 0.47312573, 0.48465976, 0.49619378, 0.50772781,
0.51926183, 0.53079586, 0.54232988, 0.55386391, 0.56539794,
0.57693196, 0.58846599, 0.60000001, 0.61153404, 0.62306807,
0.63460209, 0.64613612, 0.65767014, 0.66920417, 0.68073819,
0.69227222, 0.7008074 , 0.70634373, 0.71188006, 0.7174164 ,
0.72295273, 0.72848906, 0.73402539, 0.73956172, 0.74509805,
0.75063439, 0.75617072, 0.76170705, 0.76724338, 0.77277971,
0.77831605, 0.78385238, 0.78938871, 0.79492504, 0.80046137,
0.8059977 , 0.81153404, 0.81707037, 0.8226067 , 0.82814303,
0.83367936, 0.8392157 , 0.84382931, 0.84844292, 0.85305653,
0.85767014, 0.86228375, 0.86689736, 0.87151096, 0.87612457,
0.88073818, 0.88535179, 0.8899654 , 0.89457901, 0.89919262,
0.90380623, 0.90841984, 0.91303345, 0.91764706, 0.92226067,
0.92687428, 0.93148789, 0.9361015 , 0.94071511, 0.94532872,
0.94994233, 0.95455594, 0.95755479, 0.95893887, 0.96032296,
0.96170704, 0.96309112, 0.9644752 , 0.96585929, 0.96724337,
0.96862745, 0.97001154, 0.97139562, 0.9727797 , 0.97416378,
0.97554787, 0.97693195, 0.97831603, 0.97970012, 0.9810842 ,
0.98246828, 0.98385237, 0.98523645, 0.98662053, 0.98800461,
0.9893887 , 0.99077278, 0.99215686, 0.99123414, 0.99031142,
0.9893887 , 0.98846598, 0.98754325, 0.98662053, 0.98569781,
0.98477509, 0.98385237, 0.98292964, 0.98200692, 0.9810842 ,
0.98016148, 0.97923876, 0.97831603, 0.97739331, 0.97647059,
0.97554787, 0.97462515, 0.97370242, 0.9727797 , 0.97185698,
0.97093426, 0.97001154, 0.96908881, 0.9657055 , 0.95986159,
0.95401769, 0.94817378, 0.94232988, 0.93648597, 0.93064206,
0.92479816, 0.91895425, 0.91311035, 0.90726644, 0.90142254,
0.89557863, 0.88973472, 0.88389082, 0.87804691, 0.87220301,
0.8663591 , 0.86051519, 0.85467129, 0.84882738, 0.84298348,
0.83713957, 0.83129567, 0.82545176, 0.81960785, 0.80991927,
0.80023069, 0.79054211, 0.78085353, 0.77116495, 0.76147637,
0.75178779, 0.74209921, 0.73241063, 0.72272205, 0.71303347,
0.70334489, 0.6936563 , 0.68396772, 0.67427914, 0.66459056,
0.65490198, 0.6452134 , 0.63552482, 0.62583624, 0.61614766,
0.60645908, 0.5967705 , 0.58708192, 0.57739334, 0.56647446,
0.55432528, 0.54217611, 0.53002694, 0.51787776, 0.50572859,
0.49357942, 0.48143024, 0.46928107, 0.45713189, 0.44498272,
0.43283355, 0.42068437, 0.4085352 , 0.39638602, 0.38423685,
0.37208768, 0.3599385 , 0.34778933, 0.33564016, 0.32349098,
0.31134181, 0.29919263, 0.28704346, 0.27489429, 0.26274511,
0.25751635, 0.2522876 , 0.24705884, 0.24183008, 0.23660132,
0.23137256, 0.2261438 , 0.22091504, 0.21568629, 0.21045753,
0.20522877, 0.20000001, 0.19477125, 0.18954249, 0.18431374,
0.17908498, 0.17385622, 0.16862746, 0.1633987 , 0.15816994,
0.15294118, 0.14771243, 0.14248367, 0.13725491, 0.13202615,
0.12725875, 0.12295272, 0.11864668, 0.11434064, 0.11003461,
0.10572857, 0.10142254, 0.0971165 , 0.09281046, 0.08850443,
0.08419839, 0.07989235, 0.07558632, 0.07128028, 0.06697424,
0.06266821, 0.05836217, 0.05405613, 0.0497501 , 0.04544406,
0.04113803, 0.03683199, 0.03252595, 0.02821992, 0.02391388,
0.01960784]),
array([ 0. , 0.00369089, 0.00738178, 0.01107266, 0.01476355,
0.01845444, 0.02214533, 0.02583622, 0.02952711, 0.03321799,
0.03690888, 0.04059977, 0.04429066, 0.04798155, 0.05167243,
0.05536332, 0.05905421, 0.0627451 , 0.06643599, 0.07012688,
0.07381776, 0.07750865, 0.08119954, 0.08489043, 0.08858132,
0.0922722 , 0.09965398, 0.11072665, 0.12179931, 0.13287197,
0.14394464, 0.1550173 , 0.16608997, 0.17716263, 0.1882353 ,
0.19930796, 0.21038063, 0.22145329, 0.23252596, 0.24359862,
0.25467129, 0.26574395, 0.27681661, 0.28788928, 0.29896194,
0.31003461, 0.32110727, 0.33217994, 0.3432526 , 0.35432527,
0.36539793, 0.3764706 , 0.3870819 , 0.3976932 , 0.40830451,
0.41891581, 0.42952712, 0.44013842, 0.45074972, 0.46136103,
0.47197233, 0.48258363, 0.49319494, 0.50380624, 0.51441755,
0.52502885, 0.53564015, 0.54625146, 0.55686276, 0.56747407,
0.57808537, 0.58869667, 0.59930798, 0.60991928, 0.62053058,
0.63114189, 0.64175319, 0.65121109, 0.65951559, 0.66782009,
0.67612459, 0.68442908, 0.69273358, 0.70103808, 0.70934258,
0.71764708, 0.72595157, 0.73425607, 0.74256057, 0.75086507,
0.75916956, 0.76747406, 0.77577856, 0.78408306, 0.79238756,
0.80069205, 0.80899655, 0.81730105, 0.82560555, 0.83391004,
0.84221454, 0.85051904, 0.85882354, 0.86312957, 0.86743561,
0.87174165, 0.87604768, 0.88035372, 0.88465975, 0.88896579,
0.89327182, 0.89757786, 0.9018839 , 0.90618993, 0.91049597,
0.914802 , 0.91910804, 0.92341408, 0.92772011, 0.93202615,
0.93633218, 0.94063822, 0.94494426, 0.94925029, 0.95355633,
0.95786236, 0.9621684 , 0.96647443, 0.96724337, 0.9644752 ,
0.96170704, 0.95893887, 0.95617071, 0.95340254, 0.95063437,
0.94786621, 0.94509804, 0.94232988, 0.93956171, 0.93679354,
0.93402538, 0.93125721, 0.92848905, 0.92572088, 0.92295272,
0.92018455, 0.91741638, 0.91464822, 0.91188005, 0.90911189,
0.90634372, 0.90357555, 0.90080739, 0.89803922, 0.89311804,
0.88819685, 0.88327567, 0.87835449, 0.8734333 , 0.86851212,
0.86359093, 0.85866975, 0.85374857, 0.84882738, 0.8439062 ,
0.83898502, 0.83406383, 0.82914265, 0.82422146, 0.81930028,
0.8143791 , 0.80945791, 0.80453673, 0.79961554, 0.79469436,
0.78977318, 0.78485199, 0.77993081, 0.77500963, 0.76870436,
0.76101501, 0.75332566, 0.74563631, 0.73794696, 0.73025761,
0.72256826, 0.71487891, 0.70718956, 0.69950021, 0.69181086,
0.68412151, 0.67643216, 0.66874281, 0.66105346, 0.65336411,
0.64567476, 0.63798541, 0.63029606, 0.62260671, 0.61491736,
0.60722801, 0.59953866, 0.59184931, 0.58415996, 0.57647061,
0.5695502 , 0.56262978, 0.55570937, 0.54878895, 0.54186853,
0.53494812, 0.5280277 , 0.52110729, 0.51418687, 0.50726645,
0.50034604, 0.49342562, 0.48650521, 0.47958479, 0.47266437,
0.46574396, 0.45882354, 0.45190313, 0.44498271, 0.43806229,
0.43114188, 0.42422146, 0.41730105, 0.41038063, 0.40346021,
0.39584776, 0.38754326, 0.37923876, 0.37093426, 0.36262976,
0.35432526, 0.34602077, 0.33771627, 0.32941177, 0.32110727,
0.31280277, 0.30449827, 0.29619378, 0.28788928, 0.27958478,
0.27128028, 0.26297578, 0.25467128, 0.24636679, 0.23806229,
0.22975779, 0.22145329, 0.21314879, 0.20484429, 0.1965398 ,
0.1882353 ]),
array([ 0.12156863, 0.12341407, 0.12525952, 0.12710496, 0.1289504 ,
0.13079585, 0.13264129, 0.13448674, 0.13633218, 0.13817763,
0.14002307, 0.14186851, 0.14371396, 0.1455594 , 0.14740485,
0.14925029, 0.15109574, 0.15294118, 0.15478662, 0.15663207,
0.15847751, 0.16032296, 0.1621684 , 0.16401385, 0.16585929,
0.16770473, 0.17124184, 0.17647059, 0.18169935, 0.18692811,
0.19215687, 0.19738563, 0.20261439, 0.20784314, 0.2130719 ,
0.21830066, 0.22352942, 0.22875818, 0.23398694, 0.23921569,
0.24444445, 0.24967321, 0.25490197, 0.26013073, 0.26535949,
0.27058825, 0.275817 , 0.28104576, 0.28627452, 0.29150328,
0.29673204, 0.3019608 , 0.31011151, 0.31826222, 0.32641293,
0.33456364, 0.34271436, 0.35086507, 0.35901578, 0.36716649,
0.3753172 , 0.38346792, 0.39161863, 0.39976934, 0.40792005,
0.41607076, 0.42422148, 0.43237219, 0.4405229 , 0.44867361,
0.45682432, 0.46497504, 0.47312575, 0.48127646, 0.48942717,
0.49757788, 0.50572859, 0.5151096 , 0.5257209 , 0.53633221,
0.54694351, 0.55755481, 0.56816612, 0.57877742, 0.58938872,
0.60000002, 0.61061133, 0.62122263, 0.63183393, 0.64244523,
0.65305654, 0.66366784, 0.67427914, 0.68489045, 0.69550175,
0.70611305, 0.71672435, 0.72733566, 0.73794696, 0.74855826,
0.75916956, 0.76978087, 0.78039217, 0.78777395, 0.79515572,
0.8025375 , 0.80991927, 0.81730105, 0.82468282, 0.8320646 ,
0.83944638, 0.84682815, 0.85420993, 0.8615917 , 0.86897348,
0.87635526, 0.88373703, 0.89111881, 0.89850058, 0.90588236,
0.91326413, 0.92064591, 0.92802769, 0.93540946, 0.94279124,
0.95017301, 0.95755479, 0.96493656, 0.9680892 , 0.96701269,
0.96593618, 0.96485967, 0.96378316, 0.96270665, 0.96163014,
0.96055364, 0.95947713, 0.95840062, 0.95732411, 0.9562476 ,
0.95517109, 0.95409458, 0.95301807, 0.95194156, 0.95086505,
0.94978855, 0.94871204, 0.94763553, 0.94655902, 0.94548251,
0.944406 , 0.94332949, 0.94225298, 0.94117647, 0.93840831,
0.93564014, 0.93287198, 0.93010381, 0.92733564, 0.92456748,
0.92179931, 0.91903115, 0.91626298, 0.91349481, 0.91072665,
0.90795848, 0.90519032, 0.90242215, 0.89965399, 0.89688582,
0.89411765, 0.89134949, 0.88858132, 0.88581316, 0.88304499,
0.88027682, 0.87750866, 0.87474049, 0.87197233, 0.86851212,
0.86435987, 0.86020762, 0.85605537, 0.85190312, 0.84775087,
0.84359863, 0.83944638, 0.83529413, 0.83114188, 0.82698963,
0.82283738, 0.81868513, 0.81453288, 0.81038063, 0.80622839,
0.80207614, 0.79792389, 0.79377164, 0.78961939, 0.78546714,
0.78131489, 0.77716264, 0.77301039, 0.76885815, 0.7647059 ,
0.7611688 , 0.75763169, 0.75409459, 0.75055749, 0.74702039,
0.74348329, 0.73994619, 0.73640909, 0.73287199, 0.72933489,
0.72579779, 0.72226069, 0.71872358, 0.71518648, 0.71164938,
0.70811228, 0.70457518, 0.70103808, 0.69750098, 0.69396388,
0.69042678, 0.68688968, 0.68335258, 0.67981547, 0.67627837,
0.66874281, 0.65720878, 0.64567476, 0.63414073, 0.62260671,
0.61107268, 0.59953866, 0.58800463, 0.5764706 , 0.56493658,
0.55340255, 0.54186853, 0.5303345 , 0.51880047, 0.50726645,
0.49573242, 0.4841984 , 0.47266437, 0.46113034, 0.44959632,
0.43806229, 0.42652827, 0.41499424, 0.40346022, 0.39192619,
0.38039216]),
array([ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1.]),
)
### algae ###
color_map_luts['algae'] = \
(
array([ 0.3125 , 0.30637255, 0.3002451 , 0.29411765, 0.2879902 ,
0.28186275, 0.27573529, 0.26960784, 0.26348039, 0.25735294,
0.25122549, 0.24509804, 0.23897059, 0.23284314, 0.22671569,
0.22058824, 0.21446078, 0.20833333, 0.20220588, 0.19607843,
0.18995098, 0.18382353, 0.17769608, 0.17156863, 0.16544118,
0.15931373, 0.15318627, 0.14705882, 0.14093137, 0.13480392,
0.12867647, 0.12254902, 0.11642157, 0.11029412, 0.10416667,
0.09803922, 0.09191176, 0.08578431, 0.07965686, 0.07352941,
0.06740196, 0.06127451, 0.05514706, 0.04901961, 0.04289216,
0.03676471, 0.03063725, 0.0245098 , 0.01838235, 0.0122549 ,
0.00612745, 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0.01960784, 0.03921569,
0.05882353, 0.07843137, 0.09803922, 0.11764706, 0.1372549 ,
0.15686275, 0.17647059, 0.19607843, 0.21568627, 0.23529412,
0.25490196, 0.2745098 , 0.29411765, 0.31372549, 0.33333333,
0.35294118, 0.37254902, 0.39215686, 0.41176471, 0.43137255,
0.45098039, 0.47058824, 0.49019608, 0.50980392, 0.52941176,
0.54901961, 0.56862745, 0.58823529, 0.60784314, 0.62745098,
0.64705882, 0.66666667, 0.68627451, 0.70588235, 0.7254902 ,
0.74509804, 0.76470588, 0.78431373, 0.80392157, 0.82352941,
0.84313725, 0.8627451 , 0.88235294, 0.90196078, 0.92156863,
0.94117647, 0.96078431, 0.98039216, 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 0.97564338, 0.94316789,
0.9106924 , 0.87821691, 0.84574142, 0.81326593, 0.78079044,
0.74831495, 0.71583946, 0.68336397, 0.65088848, 0.61841299,
0.5859375 ]),
array([ 0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0.00995711, 0.01991422, 0.02987132,
0.03982843, 0.04978554, 0.05974265, 0.06969975, 0.07965686,
0.08961397, 0.09957108, 0.10952819, 0.11948529, 0.1294424 ,
0.13939951, 0.14935662, 0.15931373, 0.16927083, 0.17922794,
0.18918505, 0.19914216, 0.20909926, 0.21905637, 0.22901348,
0.23897059, 0.2489277 , 0.2588848 , 0.26884191, 0.27879902,
0.28875613, 0.29871324, 0.30867034, 0.31862745, 0.32858456,
0.33854167, 0.34849877, 0.35845588, 0.36841299, 0.3783701 ,
0.38832721, 0.39828431, 0.40824142, 0.41819853, 0.42815564,
0.43811275, 0.44806985, 0.45802696, 0.46798407, 0.47794118,
0.48789828, 0.49785539, 0.5078125 , 0.51746324, 0.52711397,
0.53676471, 0.54641544, 0.55606618, 0.56571691, 0.57536765,
0.58501838, 0.59466912, 0.60431985, 0.61397059, 0.62362132,
0.63327206, 0.64292279, 0.65257353, 0.66222426, 0.671875 ,
0.68152574, 0.69117647, 0.70082721, 0.71047794, 0.72012868,
0.72977941, 0.73943015, 0.74908088, 0.75873162, 0.76838235,
0.77803309, 0.78768382, 0.79733456, 0.80698529, 0.81663603,
0.82628676, 0.8359375 , 0.84558824, 0.85523897, 0.86488971,
0.87454044, 0.88419118, 0.89384191, 0.90349265, 0.91314338,
0.92279412, 0.93244485, 0.94209559, 0.95174632, 0.96139706,
0.97104779, 0.98069853, 0.99034926, 1. , 0.99019608,
0.98039216, 0.97058824, 0.96078431, 0.95098039, 0.94117647,
0.93137255, 0.92156863, 0.91176471, 0.90196078, 0.89215686,
0.88235294, 0.87254902, 0.8627451 , 0.85294118, 0.84313725,
0.83333333, 0.82352941, 0.81372549, 0.80392157, 0.79411765,
0.78431373, 0.7745098 , 0.76470588, 0.75490196, 0.74509804,
0.73529412, 0.7254902 , 0.71568627, 0.70588235, 0.69607843,
0.68627451, 0.67647059, 0.66666667, 0.65686275, 0.64705882,
0.6372549 , 0.62745098, 0.61764706, 0.60784314, 0.59803922,
0.58823529, 0.57843137, 0.56862745, 0.55882353, 0.54901961,
0.53921569, 0.52941176, 0.51960784, 0.50980392, 0.5 ,
0.49019608, 0.48039216, 0.47058824, 0.46078431, 0.45098039,
0.44117647, 0.43137255, 0.42156863, 0.41176471, 0.40196078,
0.39215686, 0.38235294, 0.37254902, 0.3627451 , 0.35294118,
0.34313725, 0.33333333, 0.32352941, 0.31372549, 0.30392157,
0.29411765, 0.28431373, 0.2745098 , 0.26470588, 0.25490196,
0.24509804, 0.23529412, 0.2254902 , 0.21568627, 0.20588235,
0.19607843, 0.18627451, 0.17647059, 0.16666667, 0.15686275,
0.14705882, 0.1372549 , 0.12745098, 0.11764706, 0.10784314,
0.09803922, 0.08823529, 0.07843137, 0.06862745, 0.05882353,
0.04901961, 0.03921569, 0.02941176, 0.01960784, 0.00980392, 0. ]),
array([ 3.12500000e-01, 3.23223039e-01, 3.33946078e-01,
3.44669118e-01, 3.55392157e-01, 3.66115196e-01,
3.76838235e-01, 3.87561275e-01, 3.98284314e-01,
4.09007353e-01, 4.19730392e-01, 4.30453431e-01,
4.41176471e-01, 4.51899510e-01, 4.62622549e-01,
4.73345588e-01, 4.84068627e-01, 4.94791667e-01,
5.05514706e-01, 5.16237745e-01, 5.26960784e-01,
5.37683824e-01, 5.48406863e-01, 5.59129902e-01,
5.69852941e-01, 5.80575980e-01, 5.91299020e-01,
6.02022059e-01, 6.12745098e-01, 6.23468137e-01,
6.34191176e-01, 6.44914216e-01, 6.55637255e-01,
6.66360294e-01, 6.77083333e-01, 6.87806373e-01,
6.98529412e-01, 7.09252451e-01, 7.19975490e-01,
7.30698529e-01, 7.41421569e-01, 7.52144608e-01,
7.62867647e-01, 7.73590686e-01, 7.84313725e-01,
7.95036765e-01, 8.05759804e-01, 8.16482843e-01,
8.27205882e-01, 8.37928922e-01, 8.48651961e-01,
8.59375000e-01, 8.42524510e-01, 8.25674020e-01,
8.08823529e-01, 7.91973039e-01, 7.75122549e-01,
7.58272059e-01, 7.41421569e-01, 7.24571078e-01,
7.07720588e-01, 6.90870098e-01, 6.74019608e-01,
6.57169118e-01, 6.40318627e-01, 6.23468137e-01,
6.06617647e-01, 5.89767157e-01, 5.72916667e-01,
5.56066176e-01, 5.39215686e-01, 5.22365196e-01,
5.05514706e-01, 4.88664216e-01, 4.71813725e-01,
4.54963235e-01, 4.38112745e-01, 4.21262255e-01,
4.04411765e-01, 3.87561275e-01, 3.70710784e-01,
3.53860294e-01, 3.37009804e-01, 3.20159314e-01,
3.03308824e-01, 2.86458333e-01, 2.69607843e-01,
2.52757353e-01, 2.35906863e-01, 2.19056373e-01,
2.02205882e-01, 1.85355392e-01, 1.68504902e-01,
1.51654412e-01, 1.34803922e-01, 1.17953431e-01,
1.01102941e-01, 8.42524510e-02, 6.74019608e-02,
5.05514706e-02, 3.37009804e-02, 1.68504902e-02,
0.00000000e+00, 1.53186275e-03, 3.06372549e-03,
4.59558824e-03, 6.12745098e-03, 7.65931373e-03,
9.19117647e-03, 1.07230392e-02, 1.22549020e-02,
1.37867647e-02, 1.53186275e-02, 1.68504902e-02,
1.83823529e-02, 1.99142157e-02, 2.14460784e-02,
2.29779412e-02, 2.45098039e-02, 2.60416667e-02,
2.75735294e-02, 2.91053922e-02, 3.06372549e-02,
3.21691176e-02, 3.37009804e-02, 3.52328431e-02,
3.67647059e-02, 3.82965686e-02, 3.98284314e-02,
4.13602941e-02, 4.28921569e-02, 4.44240196e-02,
4.59558824e-02, 4.74877451e-02, 4.90196078e-02,
5.05514706e-02, 5.20833333e-02, 5.36151961e-02,
5.51470588e-02, 5.66789216e-02, 5.82107843e-02,
5.97426471e-02, 6.12745098e-02, 6.28063725e-02,
6.43382353e-02, 6.58700980e-02, 6.74019608e-02,
6.89338235e-02, 7.04656863e-02, 7.19975490e-02,
7.35294118e-02, 7.50612745e-02, 7.65931373e-02,
7.81250000e-02, 7.73590686e-02, 7.65931373e-02,
7.58272059e-02, 7.50612745e-02, 7.42953431e-02,
7.35294118e-02, 7.27634804e-02, 7.19975490e-02,
7.12316176e-02, 7.04656863e-02, 6.96997549e-02,
6.89338235e-02, 6.81678922e-02, 6.74019608e-02,
6.66360294e-02, 6.58700980e-02, 6.51041667e-02,
6.43382353e-02, 6.35723039e-02, 6.28063725e-02,
6.20404412e-02, 6.12745098e-02, 6.05085784e-02,
5.97426471e-02, 5.89767157e-02, 5.82107843e-02,
5.74448529e-02, 5.66789216e-02, 5.59129902e-02,
5.51470588e-02, 5.43811275e-02, 5.36151961e-02,
5.28492647e-02, 5.20833333e-02, 5.13174020e-02,
5.05514706e-02, 4.97855392e-02, 4.90196078e-02,
4.82536765e-02, 4.74877451e-02, 4.67218137e-02,
4.59558824e-02, 4.51899510e-02, 4.44240196e-02,
4.36580882e-02, 4.28921569e-02, 4.21262255e-02,
4.13602941e-02, 4.05943627e-02, 3.98284314e-02,
3.90625000e-02, 3.82965686e-02, 3.75306373e-02,
3.67647059e-02, 3.59987745e-02, 3.52328431e-02,
3.44669118e-02, 3.37009804e-02, 3.29350490e-02,
3.21691176e-02, 3.14031863e-02, 3.06372549e-02,
2.98713235e-02, 2.91053922e-02, 2.83394608e-02,
2.75735294e-02, 2.68075980e-02, 2.60416667e-02,
2.52757353e-02, 2.45098039e-02, 2.37438725e-02,
2.29779412e-02, 2.22120098e-02, 2.14460784e-02,
2.06801471e-02, 1.99142157e-02, 1.91482843e-02,
1.83823529e-02, 1.76164216e-02, 1.68504902e-02,
1.60845588e-02, 1.53186275e-02, 1.45526961e-02,
1.37867647e-02, 1.30208333e-02, 1.22549020e-02,
1.14889706e-02, 1.07230392e-02, 9.95710784e-03,
9.19117647e-03, 8.42524510e-03, 7.65931373e-03,
6.89338235e-03, 6.12745098e-03, 5.36151961e-03,
4.59558824e-03, 3.82965686e-03, 3.06372549e-03,
2.29779412e-03, 1.53186275e-03, 7.65931373e-04,
0.00000000e+00]),
array([ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1.]),
)
### gist_stern ###
color_map_luts['gist_stern'] = \
(
array([ 0. , 0.0716923 , 0.14338459, 0.21507689, 0.28676919,
0.35846148, 0.43015378, 0.50184608, 0.57353837, 0.64523067,
0.71692297, 0.78861526, 0.86030756, 0.93199986, 0.99899382,
0.97945625, 0.95991869, 0.94038112, 0.92084356, 0.90130599,
0.88176843, 0.86223087, 0.8426933 , 0.82315574, 0.80361817,
0.78408061, 0.76454305, 0.74500548, 0.72546792, 0.70593035,
0.68639279, 0.66685523, 0.64731766, 0.6277801 , 0.60824253,
0.58870497, 0.5691674 , 0.54962984, 0.53009228, 0.51055471,
0.49101715, 0.47147958, 0.45194202, 0.43240446, 0.41286689,
0.39332933, 0.37379176, 0.3542542 , 0.33471664, 0.31517907,
0.29564151, 0.27610394, 0.25656638, 0.23702881, 0.21749125,
0.19795369, 0.17841612, 0.15887856, 0.13934099, 0.11980343,
0.10026587, 0.0807283 , 0.06119074, 0.04165317, 0.25098039,
0.25490196, 0.25882353, 0.2627451 , 0.26666667, 0.27058824,
0.2745098 , 0.27843137, 0.28235294, 0.28627451, 0.29019608,
0.29411765, 0.29803922, 0.30196078, 0.30588235, 0.30980392,
0.31372549, 0.31764706, 0.32156863, 0.3254902 , 0.32941176,
0.33333333, 0.3372549 , 0.34117647, 0.34509804, 0.34901961,
0.35294118, 0.35686275, 0.36078431, 0.36470588, 0.36862745,
0.37254902, 0.37647059, 0.38039216, 0.38431373, 0.38823529,
0.39215686, 0.39607843, 0.4 , 0.40392157, 0.40784314,
0.41176471, 0.41568627, 0.41960784, 0.42352941, 0.42745098,
0.43137255, 0.43529412, 0.43921569, 0.44313725, 0.44705882,
0.45098039, 0.45490196, 0.45882353, 0.4627451 , 0.46666667,
0.47058824, 0.4745098 , 0.47843137, 0.48235294, 0.48627451,
0.49019608, 0.49411765, 0.49803922, 0.50196078, 0.50588235,
0.50980392, 0.51372549, 0.51764706, 0.52156863, 0.5254902 ,
0.52941176, 0.53333333, 0.5372549 , 0.54117647, 0.54509804,
0.54901961, 0.55294118, 0.55686275, 0.56078431, 0.56470588,
0.56862745, 0.57254902, 0.57647059, 0.58039216, 0.58431373,
0.58823529, 0.59215686, 0.59607843, 0.6 , 0.60392157,
0.60784314, 0.61176471, 0.61568627, 0.61960784, 0.62352941,
0.62745098, 0.63137255, 0.63529412, 0.63921569, 0.64313725,
0.64705882, 0.65098039, 0.65490196, 0.65882353, 0.6627451 ,
0.66666667, 0.67058824, 0.6745098 , 0.67843137, 0.68235294,
0.68627451, 0.69019608, 0.69411765, 0.69803922, 0.70196078,
0.70588235, 0.70980392, 0.71372549, 0.71764706, 0.72156863,
0.7254902 , 0.72941176, 0.73333333, 0.7372549 , 0.74117647,
0.74509804, 0.74901961, 0.75294118, 0.75686275, 0.76078431,
0.76470588, 0.76862745, 0.77254902, 0.77647059, 0.78039216,
0.78431373, 0.78823529, 0.79215686, 0.79607843, 0.8 ,
0.80392157, 0.80784314, 0.81176471, 0.81568627, 0.81960784,
0.82352941, 0.82745098, 0.83137255, 0.83529412, 0.83921569,
0.84313725, 0.84705882, 0.85098039, 0.85490196, 0.85882353,
0.8627451 , 0.86666667, 0.87058824, 0.8745098 , 0.87843137,
0.88235294, 0.88627451, 0.89019608, 0.89411765, 0.89803922,
0.90196078, 0.90588235, 0.90980392, 0.91372549, 0.91764706,
0.92156863, 0.9254902 , 0.92941176, 0.93333333, 0.9372549 ,
0.94117647, 0.94509804, 0.94901961, 0.95294118, 0.95686275,
0.96078431, 0.96470588, 0.96862745, 0.97254902, 0.97647059,
0.98039216, 0.98431373, 0.98823529, 0.99215686, 0.99607843, 1. ]),
array([ 0. , 0.00392157, 0.00784314, 0.01176471, 0.01568627,
0.01960784, 0.02352941, 0.02745098, 0.03137255, 0.03529412,
0.03921569, 0.04313725, 0.04705882, 0.05098039, 0.05490196,
0.05882353, 0.0627451 , 0.06666667, 0.07058824, 0.0745098 ,
0.07843137, 0.08235294, 0.08627451, 0.09019608, 0.09411765,
0.09803922, 0.10196078, 0.10588235, 0.10980392, 0.11372549,
0.11764706, 0.12156863, 0.1254902 , 0.12941176, 0.13333333,
0.1372549 , 0.14117647, 0.14509804, 0.14901961, 0.15294118,
0.15686275, 0.16078431, 0.16470588, 0.16862745, 0.17254902,
0.17647059, 0.18039216, 0.18431373, 0.18823529, 0.19215686,
0.19607843, 0.2 , 0.20392157, 0.20784314, 0.21176471,
0.21568627, 0.21960784, 0.22352941, 0.22745098, 0.23137255,
0.23529412, 0.23921569, 0.24313725, 0.24705882, 0.25098039,
0.25490196, 0.25882353, 0.2627451 , 0.26666667, 0.27058824,
0.2745098 , 0.27843137, 0.28235294, 0.28627451, 0.29019608,
0.29411765, 0.29803922, 0.30196078, 0.30588235, 0.30980392,
0.31372549, 0.31764706, 0.32156863, 0.3254902 , 0.32941176,
0.33333333, 0.3372549 , 0.34117647, 0.34509804, 0.34901961,
0.35294118, 0.35686275, 0.36078431, 0.36470588, 0.36862745,
0.37254902, 0.37647059, 0.38039216, 0.38431373, 0.38823529,
0.39215686, 0.39607843, 0.4 , 0.40392157, 0.40784314,
0.41176471, 0.41568627, 0.41960784, 0.42352941, 0.42745098,
0.43137255, 0.43529412, 0.43921569, 0.44313725, 0.44705882,
0.45098039, 0.45490196, 0.45882353, 0.4627451 , 0.46666667,
0.47058824, 0.4745098 , 0.47843137, 0.48235294, 0.48627451,
0.49019608, 0.49411765, 0.49803922, 0.50196078, 0.50588235,
0.50980392, 0.51372549, 0.51764706, 0.52156863, 0.5254902 ,
0.52941176, 0.53333333, 0.5372549 , 0.54117647, 0.54509804,
0.54901961, 0.55294118, 0.55686275, 0.56078431, 0.56470588,
0.56862745, 0.57254902, 0.57647059, 0.58039216, 0.58431373,
0.58823529, 0.59215686, 0.59607843, 0.6 , 0.60392157,
0.60784314, 0.61176471, 0.61568627, 0.61960784, 0.62352941,
0.62745098, 0.63137255, 0.63529412, 0.63921569, 0.64313725,
0.64705882, 0.65098039, 0.65490196, 0.65882353, 0.6627451 ,
0.66666667, 0.67058824, 0.6745098 , 0.67843137, 0.68235294,
0.68627451, 0.69019608, 0.69411765, 0.69803922, 0.70196078,
0.70588235, 0.70980392, 0.71372549, 0.71764706, 0.72156863,
0.7254902 , 0.72941176, 0.73333333, 0.7372549 , 0.74117647,
0.74509804, 0.74901961, 0.75294118, 0.75686275, 0.76078431,
0.76470588, 0.76862745, 0.77254902, 0.77647059, 0.78039216,
0.78431373, 0.78823529, 0.79215686, 0.79607843, 0.8 ,
0.80392157, 0.80784314, 0.81176471, 0.81568627, 0.81960784,
0.82352941, 0.82745098, 0.83137255, 0.83529412, 0.83921569,
0.84313725, 0.84705882, 0.85098039, 0.85490196, 0.85882353,
0.8627451 , 0.86666667, 0.87058824, 0.8745098 , 0.87843137,
0.88235294, 0.88627451, 0.89019608, 0.89411765, 0.89803922,
0.90196078, 0.90588235, 0.90980392, 0.91372549, 0.91764706,
0.92156863, 0.9254902 , 0.92941176, 0.93333333, 0.9372549 ,
0.94117647, 0.94509804, 0.94901961, 0.95294118, 0.95686275,
0.96078431, 0.96470588, 0.96862745, 0.97254902, 0.97647059,
0.98039216, 0.98431373, 0.98823529, 0.99215686, 0.99607843, 1. ]),
array([ 0. , 0.00784314, 0.01568627, 0.02352941, 0.03137255,
0.03921569, 0.04705882, 0.05490196, 0.0627451 , 0.07058824,
0.07843137, 0.08627451, 0.09411765, 0.10196078, 0.10980392,
0.11764706, 0.1254902 , 0.13333333, 0.14117647, 0.14901961,
0.15686275, 0.16470588, 0.17254902, 0.18039216, 0.18823529,
0.19607843, 0.20392157, 0.21176471, 0.21960784, 0.22745098,
0.23529412, 0.24313725, 0.25098039, 0.25882353, 0.26666667,
0.2745098 , 0.28235294, 0.29019608, 0.29803922, 0.30588235,
0.31372549, 0.32156863, 0.32941176, 0.3372549 , 0.34509804,
0.35294118, 0.36078431, 0.36862745, 0.37647059, 0.38431373,
0.39215686, 0.4 , 0.40784314, 0.41568627, 0.42352941,
0.43137255, 0.43921569, 0.44705882, 0.45490196, 0.4627451 ,
0.47058824, 0.47843137, 0.48627451, 0.49411765, 0.50196078,
0.50980392, 0.51764706, 0.5254902 , 0.53333333, 0.54117647,
0.54901961, 0.55686275, 0.56470588, 0.57254902, 0.58039216,
0.58823529, 0.59607843, 0.60392157, 0.61176471, 0.61960784,
0.62745098, 0.63529412, 0.64313725, 0.65098039, 0.65882353,
0.66666667, 0.6745098 , 0.68235294, 0.69019608, 0.69803922,
0.70588235, 0.71372549, 0.72156863, 0.72941176, 0.7372549 ,
0.74509804, 0.75294118, 0.76078431, 0.76862745, 0.77647059,
0.78431373, 0.79215686, 0.8 , 0.80784314, 0.81568627,
0.82352941, 0.83137255, 0.83921569, 0.84705882, 0.85490196,
0.8627451 , 0.87058824, 0.87843137, 0.88627451, 0.89411765,
0.90196078, 0.90980392, 0.91764706, 0.9254902 , 0.93333333,
0.94117647, 0.94901961, 0.95686275, 0.96470588, 0.97254902,
0.98039216, 0.98823529, 0.99607843, 0.99165624, 0.97496871,
0.95828118, 0.94159366, 0.92490613, 0.90821861, 0.89153108,
0.87484355, 0.85815603, 0.8414685 , 0.82478098, 0.80809345,
0.79140592, 0.7747184 , 0.75803087, 0.74134335, 0.72465582,
0.70796829, 0.69128077, 0.67459324, 0.65790572, 0.64121819,
0.62453066, 0.60784314, 0.59115561, 0.57446809, 0.55778056,
0.54109303, 0.52440551, 0.50771798, 0.49103045, 0.47434293,
0.4576554 , 0.44096788, 0.42428035, 0.40759282, 0.3909053 ,
0.37421777, 0.35753025, 0.34084272, 0.32415519, 0.30746767,
0.29078014, 0.27409262, 0.25740509, 0.24071756, 0.22403004,
0.20734251, 0.19065499, 0.17396746, 0.15727993, 0.14059241,
0.12390488, 0.10721736, 0.09052983, 0.0738423 , 0.05715478,
0.04046725, 0.02377972, 0.0070922 , 0.00850906, 0.02330744,
0.03810581, 0.05290418, 0.06770255, 0.08250092, 0.0972993 ,
0.11209767, 0.12689604, 0.14169441, 0.15649279, 0.17129116,
0.18608953, 0.2008879 , 0.21568627, 0.23048465, 0.24528302,
0.26008139, 0.27487976, 0.28967814, 0.30447651, 0.31927488,
0.33407325, 0.34887162, 0.36367 , 0.37846837, 0.39326674,
0.40806511, 0.42286349, 0.43766186, 0.45246023, 0.4672586 ,
0.48205697, 0.49685535, 0.51165372, 0.52645209, 0.54125046,
0.55604883, 0.57084721, 0.58564558, 0.60044395, 0.61524232,
0.6300407 , 0.64483907, 0.65963744, 0.67443581, 0.68923418,
0.70403256, 0.71883093, 0.7336293 , 0.74842767, 0.76322605,
0.77802442, 0.79282279, 0.80762116, 0.82241953, 0.83721791,
0.85201628, 0.86681465, 0.88161302, 0.89641139, 0.91120977,
0.92600814, 0.94080651, 0.95560488, 0.97040326, 0.98520163, 1. ]),
array([ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1.]),
)
### hot ###
color_map_luts['hot'] = \
(
array([ 0.0416 , 0.05189484, 0.06218969, 0.07248453, 0.08277938,
0.09307422, 0.10336906, 0.11366391, 0.12395875, 0.1342536 ,
0.14454844, 0.15484328, 0.16513813, 0.17543297, 0.18572782,
0.19602266, 0.2063175 , 0.21661235, 0.22690719, 0.23720204,
0.24749688, 0.25779173, 0.26808657, 0.27838141, 0.28867626,
0.2989711 , 0.30926595, 0.31956079, 0.32985563, 0.34015048,
0.35044532, 0.36074017, 0.37103501, 0.38132985, 0.3916247 ,
0.40191954, 0.41221439, 0.42250923, 0.43280407, 0.44309892,
0.45339376, 0.46368861, 0.47398345, 0.48427829, 0.49457314,
0.50486798, 0.51516283, 0.52545767, 0.53575251, 0.54604736,
0.5563422 , 0.56663705, 0.57693189, 0.58722673, 0.59752158,
0.60781642, 0.61811127, 0.62840611, 0.63870096, 0.6489958 ,
0.65929064, 0.66958549, 0.67988033, 0.69017518, 0.70047002,
0.71076486, 0.72105971, 0.73135455, 0.7416494 , 0.75194424,
0.76223908, 0.77253393, 0.78282877, 0.79312362, 0.80341846,
0.8137133 , 0.82400815, 0.83430299, 0.84459784, 0.85489268,
0.86518752, 0.87548237, 0.88577721, 0.89607206, 0.9063669 ,
0.91666174, 0.92695659, 0.93725143, 0.94754628, 0.95784112,
0.96813596, 0.97843081, 0.98872565, 0.9990205 , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. , 1. ]),
array([ 0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0.00931467,
0.01960877, 0.02990287, 0.04019697, 0.05049107, 0.06078517,
0.07107927, 0.08137338, 0.09166748, 0.10196158, 0.11225568,
0.12254978, 0.13284388, 0.14313798, 0.15343208, 0.16372618,
0.17402028, 0.18431438, 0.19460849, 0.20490259, 0.21519669,
0.22549079, 0.23578489, 0.24607899, 0.25637309, 0.26666719,
0.27696129, 0.28725539, 0.29754949, 0.3078436 , 0.3181377 ,
0.3284318 , 0.3387259 , 0.34902 , 0.3593141 , 0.3696082 ,
0.3799023 , 0.3901964 , 0.4004905 , 0.4107846 , 0.42107871,
0.43137281, 0.44166691, 0.45196101, 0.46225511, 0.47254921,
0.48284331, 0.49313741, 0.50343151, 0.51372561, 0.52401971,
0.53431382, 0.54460792, 0.55490202, 0.56519612, 0.57549022,
0.58578432, 0.59607842, 0.60637252, 0.61666662, 0.62696072,
0.63725482, 0.64754893, 0.65784303, 0.66813713, 0.67843123,
0.68872533, 0.69901943, 0.70931353, 0.71960763, 0.72990173,
0.74019583, 0.75048993, 0.76078404, 0.77107814, 0.78137224,
0.79166634, 0.80196044, 0.81225454, 0.82254864, 0.83284274,
0.84313684, 0.85343094, 0.86372504, 0.87401915, 0.88431325,
0.89460735, 0.90490145, 0.91519555, 0.92548965, 0.93578375,
0.94607785, 0.95637195, 0.96666605, 0.97696016, 0.98725426,
0.99754836, 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. , 1. ]),
array([ 0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0.01176372, 0.02720491, 0.0426461 , 0.05808729,
0.07352849, 0.08896968, 0.10441087, 0.11985206, 0.13529325,
0.15073444, 0.16617564, 0.18161683, 0.19705802, 0.21249921,
0.2279404 , 0.2433816 , 0.25882279, 0.27426398, 0.28970517,
0.30514636, 0.32058756, 0.33602875, 0.35146994, 0.36691113,
0.38235232, 0.39779352, 0.41323471, 0.4286759 , 0.44411709,
0.45955828, 0.47499947, 0.49044067, 0.50588186, 0.52132305,
0.53676424, 0.55220543, 0.56764663, 0.58308782, 0.59852901,
0.6139702 , 0.62941139, 0.64485259, 0.66029378, 0.67573497,
0.69117616, 0.70661735, 0.72205855, 0.73749974, 0.75294093,
0.76838212, 0.78382331, 0.79926451, 0.8147057 , 0.83014689,
0.84558808, 0.86102927, 0.87647046, 0.89191166, 0.90735285,
0.92279404, 0.93823523, 0.95367642, 0.96911762, 0.98455881, 1. ]),
array([ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1.]),
)
### jet ###
color_map_luts['jet'] = \
(
array([ 0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0.00948767, 0.02213789, 0.03478811, 0.04743833, 0.06008855,
0.07273877, 0.08538899, 0.09803922, 0.11068944, 0.12333966,
0.13598988, 0.1486401 , 0.16129032, 0.17394054, 0.18659077,
0.19924099, 0.21189121, 0.22454143, 0.23719165, 0.24984187,
0.26249209, 0.27514231, 0.28779254, 0.30044276, 0.31309298,
0.3257432 , 0.33839342, 0.35104364, 0.36369386, 0.37634409,
0.38899431, 0.40164453, 0.41429475, 0.42694497, 0.43959519,
0.45224541, 0.46489564, 0.47754586, 0.49019608, 0.5028463 ,
0.51549652, 0.52814674, 0.54079696, 0.55344719, 0.56609741,
0.57874763, 0.59139785, 0.60404807, 0.61669829, 0.62934851,
0.64199873, 0.65464896, 0.66729918, 0.6799494 , 0.69259962,
0.70524984, 0.71790006, 0.73055028, 0.74320051, 0.75585073,
0.76850095, 0.78115117, 0.79380139, 0.80645161, 0.81910183,
0.83175206, 0.84440228, 0.8570525 , 0.86970272, 0.88235294,
0.89500316, 0.90765338, 0.92030361, 0.93295383, 0.94560405,
0.95825427, 0.97090449, 0.98355471, 0.99620493, 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 0.99910873, 0.98128342, 0.96345811,
0.9456328 , 0.92780749, 0.90998217, 0.89215686, 0.87433155,
0.85650624, 0.83868093, 0.82085561, 0.8030303 , 0.78520499,
0.76737968, 0.74955437, 0.73172906, 0.71390374, 0.69607843,
0.67825312, 0.66042781, 0.6426025 , 0.62477718, 0.60695187,
0.58912656, 0.57130125, 0.55347594, 0.53565062, 0.51782531,
0.5 ]),
array([ 0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 1.96078431e-03,
1.76470588e-02, 3.33333333e-02, 4.90196078e-02,
6.47058824e-02, 8.03921569e-02, 9.60784314e-02,
1.11764706e-01, 1.27450980e-01, 1.43137255e-01,
1.58823529e-01, 1.74509804e-01, 1.90196078e-01,
2.05882353e-01, 2.21568627e-01, 2.37254902e-01,
2.52941176e-01, 2.68627451e-01, 2.84313725e-01,
3.00000000e-01, 3.15686275e-01, 3.31372549e-01,
3.47058824e-01, 3.62745098e-01, 3.78431373e-01,
3.94117647e-01, 4.09803922e-01, 4.25490196e-01,
4.41176471e-01, 4.56862745e-01, 4.72549020e-01,
4.88235294e-01, 5.03921569e-01, 5.19607843e-01,
5.35294118e-01, 5.50980392e-01, 5.66666667e-01,
5.82352941e-01, 5.98039216e-01, 6.13725490e-01,
6.29411765e-01, 6.45098039e-01, 6.60784314e-01,
6.76470588e-01, 6.92156863e-01, 7.07843137e-01,
7.23529412e-01, 7.39215686e-01, 7.54901961e-01,
7.70588235e-01, 7.86274510e-01, 8.01960784e-01,
8.17647059e-01, 8.33333333e-01, 8.49019608e-01,
8.64705882e-01, 8.80392157e-01, 8.96078431e-01,
9.11764706e-01, 9.27450980e-01, 9.43137255e-01,
9.58823529e-01, 9.74509804e-01, 9.90196078e-01,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 1.00000000e+00,
1.00000000e+00, 1.00000000e+00, 9.88380537e-01,
9.73856209e-01, 9.59331881e-01, 9.44807553e-01,
9.30283224e-01, 9.15758896e-01, 9.01234568e-01,
8.86710240e-01, 8.72185911e-01, 8.57661583e-01,
8.43137255e-01, 8.28612927e-01, 8.14088598e-01,
7.99564270e-01, 7.85039942e-01, 7.70515614e-01,
7.55991285e-01, 7.41466957e-01, 7.26942629e-01,
7.12418301e-01, 6.97893972e-01, 6.83369644e-01,
6.68845316e-01, 6.54320988e-01, 6.39796659e-01,
6.25272331e-01, 6.10748003e-01, 5.96223675e-01,
5.81699346e-01, 5.67175018e-01, 5.52650690e-01,
5.38126362e-01, 5.23602033e-01, 5.09077705e-01,
4.94553377e-01, 4.80029049e-01, 4.65504720e-01,
4.50980392e-01, 4.36456064e-01, 4.21931736e-01,
4.07407407e-01, 3.92883079e-01, 3.78358751e-01,
3.63834423e-01, 3.49310094e-01, 3.34785766e-01,
3.20261438e-01, 3.05737110e-01, 2.91212781e-01,
2.76688453e-01, 2.62164125e-01, 2.47639797e-01,
2.33115468e-01, 2.18591140e-01, 2.04066812e-01,
1.89542484e-01, 1.75018155e-01, 1.60493827e-01,
1.45969499e-01, 1.31445171e-01, 1.16920842e-01,
1.02396514e-01, 8.78721859e-02, 7.33478577e-02,
5.88235294e-02, 4.42992012e-02, 2.97748729e-02,
1.52505447e-02, 7.26216412e-04, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00,
0.00000000e+00]),
array([ 0.5 , 0.51782531, 0.53565062, 0.55347594, 0.57130125,
0.58912656, 0.60695187, 0.62477718, 0.6426025 , 0.66042781,
0.67825312, 0.69607843, 0.71390374, 0.73172906, 0.74955437,
0.76737968, 0.78520499, 0.8030303 , 0.82085561, 0.83868093,
0.85650624, 0.87433155, 0.89215686, 0.90998217, 0.92780749,
0.9456328 , 0.96345811, 0.98128342, 0.99910873, 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 0.99620493, 0.98355471, 0.97090449,
0.95825427, 0.94560405, 0.93295383, 0.92030361, 0.90765338,
0.89500316, 0.88235294, 0.86970272, 0.8570525 , 0.84440228,
0.83175206, 0.81910183, 0.80645161, 0.79380139, 0.78115117,
0.76850095, 0.75585073, 0.74320051, 0.73055028, 0.71790006,
0.70524984, 0.69259962, 0.6799494 , 0.66729918, 0.65464896,
0.64199873, 0.62934851, 0.61669829, 0.60404807, 0.59139785,
0.57874763, 0.56609741, 0.55344719, 0.54079696, 0.52814674,
0.51549652, 0.5028463 , 0.49019608, 0.47754586, 0.46489564,
0.45224541, 0.43959519, 0.42694497, 0.41429475, 0.40164453,
0.38899431, 0.37634409, 0.36369386, 0.35104364, 0.33839342,
0.3257432 , 0.31309298, 0.30044276, 0.28779254, 0.27514231,
0.26249209, 0.24984187, 0.23719165, 0.22454143, 0.21189121,
0.19924099, 0.18659077, 0.17394054, 0.16129032, 0.1486401 ,
0.13598988, 0.12333966, 0.11068944, 0.09803922, 0.08538899,
0.07273877, 0.06008855, 0.04743833, 0.03478811, 0.02213789,
0.00948767, 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. ,
0. , 0. , 0. , 0. , 0. , 0. ]),
array([ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1.]),
)
### kamae ###
color_map_luts['kamae'] = \
(
array([ 0.10189667, 0.11463894, 0.12755761, 0.1405963 , 0.15373037,
0.16694395, 0.18022534, 0.1935652 , 0.2069557 , 0.22039001,
0.23386204, 0.24736623, 0.26089743, 0.27445076, 0.28802162,
0.30160555, 0.31519826, 0.32879554, 0.34239328, 0.35598743,
0.36957396, 0.38314889, 0.39670823, 0.41024801, 0.42376423,
0.43725291, 0.45071 , 0.46413146, 0.47751319, 0.49085107,
0.5041409 , 0.51737848, 0.53055952, 0.54367968, 0.55673458,
0.56971976, 0.58263072, 0.59546287, 0.60821158, 0.62087213,
0.63343975, 0.6459096 , 0.65827678, 0.6705363 , 0.68268311,
0.69471212, 0.70661814, 0.71839593, 0.73004018, 0.74154553,
0.75290655, 0.76411775, 0.7751736 , 0.7860685 , 0.79679679,
0.8073528 , 0.81773078, 0.82792495, 0.83792951, 0.8477386 ,
0.85734636, 0.86674688, 0.87593426, 0.88490256, 0.89364586,
0.90215822, 0.9104337 , 0.9184664 , 0.92625041, 0.93377986,
0.94104891, 0.94805175, 0.95478263, 0.96123586, 0.9674058 ,
0.97328689, 0.97887365, 0.98416071, 0.98914277, 0.99381466,
0.99817132, 0.9998451 , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 1. ,
1. , 1. , 1. , 1. , 0.99786575,
0.99359386, 0.98863281, 0.98330578, 0.97761561, 0.97156558,
0.96515943, 0.95840133, 0.95129595, 0.94384841, 0.93606432,
0.92794977, 0.91951136, 0.91075617, 0.90169178, 0.8923263 ,
0.88266832, 0.87272695, 0.86251183, 0.85203309, 0.84130138,
0.83032786, 0.81912419, 0.80770256, 0.79607564, 0.78425658,
0.77225906, 0.76009721, 0.74778563, 0.7353394 , 0.72277404,
0.71010551, 0.69735019, 0.68452487, 0.67164675, 0.65873339,
0.6458027 , 0.63287295, 0.6199627 , 0.60709082, 0.59427645,
0.58153897, 0.56889796, 0.55637322, 0.54398469, 0.53175245,
0.51969665, 0.50783755, 0.4961954 , 0.48479047, 0.47364299,
0.46277308, 0.45220078, 0.44194595, 0.43202827, 0.42246716,
0.41328178, 0.40449095, 0.39611313, 0.38816637, 0.38066827,
0.3736359 , 0.36708582, 0.36103397, 0.35549565, 0.3504855 ,
0.34601741, 0.34210448, 0.33875902, 0.33599244, 0.33381526,
0.33223703, 0.33126631, 0.3309106 , 0.33117634, 0.33206882,
0.33359218, 0.33574936, 0.33854206, 0.3419707 , 0.34603442,
0.35073099, 0.35605684, 0.362007 , 0.36857511, 0.37575334,
0.38353244, 0.39190166, 0.4008488 , 0.41036015, 0.42042051,
0.43101317, 0.44211993, 0.4537211 , 0.46579548, 0.47832042,
0.49127178, 0.504624 , 0.51835009, 0.53242166, 0.54680899,
0.561481 , 0.57640533, 0.59154841, 0.60687543, 0.62235047,
0.63793653, 0.65359557, 0.66928861, 0.68497576, 0.70061634,
0.71616893, 0.73159144, 0.74684123, 0.76187518, 0.77664977,
0.79112121, 0.80524551, 0.81897859, 0.83227639, 0.84509499,
0.85739069, 0.86912016, 0.88024052, 0.8907095 , 0.9004855 ,
0.90952776, 0.91779647, 0.92525286, 0.93185938, 0.93757975,
0.94237913, 0.94622424, 0.94908343, 0.95092687, 0.9517266 ,
0.95145666, 0.95009324, 0.94761471, 0.9440018 , 0.93923763,
0.93330785, 0.92620073, 0.9179072 , 0.90842097, 0.89773857,
0.88585945, 0.87278601, 0.85852366, 0.84308084, 0.8264691 ,
0.80870311]),
array([ 0.09276197, 0.12828558, 0.14148276, 0.15073629, 0.15792564,
0.16377875, 0.16867726, 0.17285336, 0.17646219, 0.17961453,
0.18239341, 0.18486353, 0.18707683, 0.18907613, 0.19089745,
0.19257166, 0.19412563, 0.19558306, 0.1969651 , 0.19829085,
0.19957764, 0.2008414 , 0.20209683, 0.20335757, 0.20463637,
0.20594518, 0.20729526, 0.20869724, 0.21016118, 0.21169665,
0.21331273, 0.21501809, 0.21682099, 0.2187293 , 0.22075054,
0.22289189, 0.2251602 , 0.22756199, 0.23010349, 0.23279061,
0.23562896, 0.23862389, 0.24178042, 0.24510329, 0.24859697,
0.25226561, 0.25611312, 0.26014306, 0.26435875, 0.2687632 ,
0.27335911, 0.27814891, 0.28313472, 0.28831836, 0.29370134,
0.29928488, 0.30506987, 0.31105692, 0.31724629, 0.32363796,
0.33023158, 0.33702647, 0.34402165, 0.35121581, 0.35860731,
0.3661942 , 0.37397421, 0.38194473, 0.39010283, 0.39844526,
0.40696847, 0.41566854, 0.42454128, 0.43358216, 0.44278633,
0.45214864, 0.46166362, 0.47132551, 0.48112825, 0.49106545,
0.50113048, 0.51131639, 0.52161595, 0.53202168, 0.54252581,
0.55312033, 0.56379697, 0.57454721, 0.58536232, 0.59623332,
0.60715103, 0.61810606, 0.62908884, 0.64008959, 0.65109838,
0.66210512, 0.67309958, 0.68407136, 0.69500998, 0.70590484,
0.71674524, 0.7275204 , 0.73821948, 0.74883161, 0.75934584,
0.76975124, 0.78003687, 0.79019179, 0.80020509, 0.81006592,
0.81976349, 0.82928706, 0.83862603, 0.84776989, 0.85670824,
0.86543087, 0.87392769, 0.88218883, 0.8902046 , 0.89796551,
0.90546232, 0.91268605, 0.91962797, 0.92627962, 0.93263287,
0.93867988, 0.94441315, 0.94982552, 0.95491021, 0.95966079,
0.96407124, 0.96813594, 0.97184967, 0.97520769, 0.97820564,
0.98083967, 0.98310638, 0.98500283, 0.98652659, 0.98767574,
0.98844883, 0.98884498, 0.98886377, 0.98850537, 0.98777045,
0.98666024, 0.98517652, 0.98332159, 0.98109835, 0.97851023,
0.9755612 , 0.97225582, 0.9685992 , 0.96459698, 0.96025538,
0.95558116, 0.95058161, 0.94526459, 0.93963846, 0.93371212,
0.92749498, 0.92099698, 0.91422853, 0.90720053, 0.89992437,
0.89241189, 0.88467538, 0.87672756, 0.86858155, 0.86025091,
0.85174954, 0.84309173, 0.8342921 , 0.8253656 , 0.81632747,
0.80719325, 0.79797873, 0.78869994, 0.7793731 , 0.77001465,
0.76064116, 0.75126936, 0.74191609, 0.73259824, 0.7233328 ,
0.71413676, 0.70502712, 0.69602085, 0.68713487, 0.678386 ,
0.66979095, 0.6613663 , 0.65312845, 0.64509359, 0.63727769,
0.62969646, 0.6223653 , 0.61529933, 0.60851328, 0.60202154,
0.59583809, 0.58997647, 0.58444976, 0.57927057, 0.574451 ,
0.5700026 , 0.56593638, 0.56226276, 0.55899154, 0.55613191,
0.5536924 , 0.55168088, 0.55010452, 0.54896977, 0.5482824 ,
0.54804739, 0.54826898, 0.54895066, 0.5500951 , 0.55170422,
0.5537791 , 0.55632002, 0.55932646, 0.56279704, 0.56672959,
0.57112109, 0.57596767, 0.58126467, 0.58700657, 0.59318702,
0.59979888, 0.60683417, 0.61428411, 0.62213911, 0.63038884,
0.63902214, 0.64802713, 0.65739119, 0.66710095, 0.67714237,
0.68750069, 0.69816052, 0.70910582, 0.72031994, 0.73178563,
0.74348511, 0.75540005, 0.76751163, 0.77980056, 0.79224712,
0.80483118, 0.81753226, 0.83032956, 0.84320195, 0.85612808,
0.86908639]),
array([ 0.03921569, 0.14755333, 0.15484709, 0.15910372, 0.16221813,
0.164691 , 0.16675074, 0.16852161, 0.17007905, 0.17147245,
0.17273603, 0.17389454, 0.17496647, 0.17596607, 0.17690456,
0.17779096, 0.17863263, 0.1794357 , 0.1802053 , 0.18094581,
0.18166101, 0.18235416, 0.18302812, 0.18368543, 0.18432833,
0.18495885, 0.18557879, 0.1861898 , 0.1867934 , 0.18739095,
0.18798372, 0.18857288, 0.18915953, 0.18974468, 0.19032928,
0.19091421, 0.19150034, 0.19208844, 0.19267928, 0.19327356,
0.19387199, 0.1944752 , 0.19508383, 0.19569847, 0.19631971,
0.1969481 , 0.19758419, 0.19822848, 0.1988815 , 0.19954371,
0.20021562, 0.20089767, 0.20159031, 0.202294 , 0.20300915,
0.2037362 , 0.20447555, 0.20522761, 0.20599277, 0.20677142,
0.20756395, 0.20837073, 0.20919213, 0.21002852, 0.21088026,
0.21174769, 0.21263118, 0.21353106, 0.21444767, 0.21538136,
0.21633245, 0.21730128, 0.21828817, 0.21929344, 0.22031742,
0.22136043, 0.22242277, 0.22350476, 0.22460671, 0.22572894,
0.22687174, 0.22803542, 0.22922029, 0.23042665, 0.2316548 ,
0.23290505, 0.23417769, 0.23547304, 0.23679141, 0.23813309,
0.2394984 , 0.24088767, 0.24230121, 0.24373936, 0.24520245,
0.24669084, 0.2482049 , 0.24974502, 0.25131159, 0.25290506,
0.25452588, 0.25617456, 0.25785162, 0.25955767, 0.26129335,
0.26305936, 0.26485651, 0.26668567, 0.26854783, 0.27044409,
0.27237568, 0.27434399, 0.2763506 , 0.27839725, 0.28048592,
0.28261885, 0.28479853, 0.28702776, 0.28930969, 0.29164781,
0.29404606, 0.29650878, 0.29904082, 0.30164751, 0.30433477,
0.30710909, 0.3099776 , 0.31294808, 0.31602901, 0.31922957,
0.3225597 , 0.32603009, 0.32965219, 0.33343823, 0.33740118,
0.34155475, 0.34591336, 0.35049209, 0.3553066 , 0.36037309,
0.36570818, 0.37132881, 0.37725211, 0.38349527, 0.39007533,
0.39700904, 0.40431267, 0.41200173, 0.42009082, 0.42859331,
0.43752115, 0.44688456, 0.45669178, 0.46694881, 0.47765913,
0.48882341, 0.50043933, 0.51250128, 0.52500019, 0.53792329,
0.55125402, 0.56497186, 0.57905222, 0.59346649, 0.60818194,
0.62316185, 0.6383656 , 0.65374881, 0.66926358, 0.68485877,
0.70048031, 0.71607158, 0.73157387, 0.7469268 , 0.76206891,
0.77693813, 0.79147243, 0.80561039, 0.81929181, 0.83245833,
0.84505406, 0.85702617, 0.86832547, 0.87890699, 0.88873043,
0.89776066, 0.90596815, 0.91332926, 0.91982658, 0.92544909,
0.93019232, 0.93405839, 0.937056 , 0.93920033, 0.94051286,
0.94102111, 0.94075835, 0.93976317, 0.93807909, 0.93575405,
0.93283987, 0.92939168, 0.92546733, 0.92112679, 0.91643153,
0.91144386, 0.9062264 , 0.90084141, 0.89535028, 0.88981297,
0.88428753, 0.87882965, 0.87349223, 0.86832508, 0.86337457,
0.85868342, 0.8542905 , 0.85023073, 0.84653492, 0.84322986,
0.84033823, 0.83787874, 0.83586622, 0.83431172, 0.83322277,
0.83260351, 0.83245497, 0.83277526, 0.83355988, 0.83480196,
0.83649253, 0.83862079, 0.84117439, 0.84413967, 0.84750191,
0.8512456 , 0.85535461, 0.85981245, 0.86460243, 0.86970782,
0.87511204, 0.88079878, 0.88675211, 0.89295658, 0.89939731,
0.90606008, 0.91293132, 0.91999822, 0.92724869, 0.93467142,
0.94225589, 0.94999229, 0.9578716 , 0.96588553, 0.97402646,
0.98228749]),
array([ 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1., 1.,
1., 1., 1., 1., 1., 1., 1., 1., 1.]),
)
### IDL colormap 0 :: B-W LINEAR ###
color_map_luts['idl00'] = \
(
array([ 0.0000000, 0.0039062, 0.0078125, 0.0117188, 0.0156250, 0.0195312,
0.0234375, 0.0273438, 0.0312500, 0.0351562, 0.0390625, 0.0429688,
0.0468750, 0.0507812, 0.0546875, 0.0585938, 0.0625000, 0.0664062,
0.0703125, 0.0742188, 0.0781250, 0.0820312, 0.0859375, 0.0898438,
0.0937500, 0.0976562, 0.1015625, 0.1054688, 0.1093750, 0.1132812,
0.1171875, 0.1210938, 0.1250000, 0.1289062, 0.1328125, 0.1367188,
0.1406250, 0.1445312, 0.1484375, 0.1523438, 0.1562500, 0.1601562,
0.1640625, 0.1679688, 0.1718750, 0.1757812, 0.1796875, 0.1835938,
0.1875000, 0.1914062, 0.1953125, 0.1992188, 0.2031250, 0.2070312,
0.2109375, 0.2148438, 0.2187500, 0.2226562, 0.2265625, 0.2304688,
0.2343750, 0.2382812, 0.2421875, 0.2460938, 0.2500000, 0.2539062,
0.2578125, 0.2617188, 0.2656250, 0.2695312, 0.2734375, 0.2773438,
0.2812500, 0.2851562, 0.2890625, 0.2929688, 0.2968750, 0.3007812,
0.3046875, 0.3085938, 0.3125000, 0.3164062, 0.3203125, 0.3242188,
0.3281250, 0.3320312, 0.3359375, 0.3398438, 0.3437500, 0.3476562,
0.3515625, 0.3554688, 0.3593750, 0.3632812, 0.3671875, 0.3710938,
0.3750000, 0.3789062, 0.3828125, 0.3867188, 0.3906250, 0.3945312,
0.3984375, 0.4023438, 0.4062500, 0.4101562, 0.4140625, 0.4179688,
0.4218750, 0.4257812, 0.4296875, 0.4335938, 0.4375000, 0.4414062,
0.4453125, 0.4492188, 0.4531250, 0.4570312, 0.4609375, 0.4648438,
0.4687500, 0.4726562, 0.4765625, 0.4804688, 0.4843750, 0.4882812,
0.4921875, 0.4960938, 0.5000000, 0.5039062, 0.5078125, 0.5117188,
0.5156250, 0.5195312, 0.5234375, 0.5273438, 0.5312500, 0.5351562,
0.5390625, 0.5429688, 0.5468750, 0.5507812, 0.5546875, 0.5585938,
0.5625000, 0.5664062, 0.5703125, 0.5742188, 0.5781250, 0.5820312,
0.5859375, 0.5898438, 0.5937500, 0.5976562, 0.6015625, 0.6054688,
0.6093750, 0.6132812, 0.6171875, 0.6210938, 0.6250000, 0.6289062,
0.6328125, 0.6367188, 0.6406250, 0.6445312, 0.6484375, 0.6523438,
0.6562500, 0.6601562, 0.6640625, 0.6679688, 0.6718750, 0.6757812,
0.6796875, 0.6835938, 0.6875000, 0.6914062, 0.6953125, 0.6992188,
0.7031250, 0.7070312, 0.7109375, 0.7148438, 0.7187500, 0.7226562,
0.7265625, 0.7304688, 0.7343750, 0.7382812, 0.7421875, 0.7460938,
0.7500000, 0.7539062, 0.7578125, 0.7617188, 0.7656250, 0.7695312,
0.7734375, 0.7773438, 0.7812500, 0.7851562, 0.7890625, 0.7929688,
0.7968750, 0.8007812, 0.8046875, 0.8085938, 0.8125000, 0.8164062,
0.8203125, 0.8242188, 0.8281250, 0.8320312, 0.8359375, 0.8398438,
0.8437500, 0.8476562, 0.8515625, 0.8554688, 0.8593750, 0.8632812,
0.8671875, 0.8710938, 0.8750000, 0.8789062, 0.8828125, 0.8867188,
0.8906250, 0.8945312, 0.8984375, 0.9023438, 0.9062500, 0.9101562,
0.9140625, 0.9179688, 0.9218750, 0.9257812, 0.9296875, 0.9335938,
0.9375000, 0.9414062, 0.9453125, 0.9492188, 0.9531250, 0.9570312,
0.9609375, 0.9648438, 0.9687500, 0.9726562, 0.9765625, 0.9804688,
0.9843750, 0.9882812, 0.9921875, 0.9960938]),
array([ 0.0000000, 0.0039062, 0.0078125, 0.0117188, 0.0156250, 0.0195312,
0.0234375, 0.0273438, 0.0312500, 0.0351562, 0.0390625, 0.0429688,
0.0468750, 0.0507812, 0.0546875, 0.0585938, 0.0625000, 0.0664062,
0.0703125, 0.0742188, 0.0781250, 0.0820312, 0.0859375, 0.0898438,
0.0937500, 0.0976562, 0.1015625, 0.1054688, 0.1093750, 0.1132812,
0.1171875, 0.1210938, 0.1250000, 0.1289062, 0.1328125, 0.1367188,
0.1406250, 0.1445312, 0.1484375, 0.1523438, 0.1562500, 0.1601562,
0.1640625, 0.1679688, 0.1718750, 0.1757812, 0.1796875, 0.1835938,
0.1875000, 0.1914062, 0.1953125, 0.1992188, 0.2031250, 0.2070312,
0.2109375, 0.2148438, 0.2187500, 0.2226562, 0.2265625, 0.2304688,
0.2343750, 0.2382812, 0.2421875, 0.2460938, 0.2500000, 0.2539062,
0.2578125, 0.2617188, 0.2656250, 0.2695312, 0.2734375, 0.2773438,
0.2812500, 0.2851562, 0.2890625, 0.2929688, 0.2968750, 0.3007812,
0.3046875, 0.3085938, 0.3125000, 0.3164062, 0.3203125, 0.3242188,
0.3281250, 0.3320312, 0.3359375, 0.3398438, 0.3437500, 0.3476562,
0.3515625, 0.3554688, 0.3593750, 0.3632812, 0.3671875, 0.3710938,
0.3750000, 0.3789062, 0.3828125, 0.3867188, 0.3906250, 0.3945312,
0.3984375, 0.4023438, 0.4062500, 0.4101562, 0.4140625, 0.4179688,
0.4218750, 0.4257812, 0.4296875, 0.4335938, 0.4375000, 0.4414062,
0.4453125, 0.4492188, 0.4531250, 0.4570312, 0.4609375, 0.4648438,
0.4687500, 0.4726562, 0.4765625, 0.4804688, 0.4843750, 0.4882812,
0.4921875, 0.4960938, 0.5000000, 0.5039062, 0.5078125, 0.5117188,
0.5156250, 0.5195312, 0.5234375, 0.5273438, 0.5312500, 0.5351562,
0.5390625, 0.5429688, 0.5468750, 0.5507812, 0.5546875, 0.5585938,
0.5625000, 0.5664062, 0.5703125, 0.5742188, 0.5781250, 0.5820312,
0.5859375, 0.5898438, 0.5937500, 0.5976562, 0.6015625, 0.6054688,
0.6093750, 0.6132812, 0.6171875, 0.6210938, 0.6250000, 0.6289062,
0.6328125, 0.6367188, 0.6406250, 0.6445312, 0.6484375, 0.6523438,
0.6562500, 0.6601562, 0.6640625, 0.6679688, 0.6718750, 0.6757812,
0.6796875, 0.6835938, 0.6875000, 0.6914062, 0.6953125, 0.6992188,
0.7031250, 0.7070312, 0.7109375, 0.7148438, 0.7187500, 0.7226562,
0.7265625, 0.7304688, 0.7343750, 0.7382812, 0.7421875, 0.7460938,
0.7500000, 0.7539062, 0.7578125, 0.7617188, 0.7656250, 0.7695312,
0.7734375, 0.7773438, 0.7812500, 0.7851562, 0.7890625, 0.7929688,
0.7968750, 0.8007812, 0.8046875, 0.8085938, 0.8125000, 0.8164062,
0.8203125, 0.8242188, 0.8281250, 0.8320312, 0.8359375, 0.8398438,
0.8437500, 0.8476562, 0.8515625, 0.8554688, 0.8593750, 0.8632812,
0.8671875, 0.8710938, 0.8750000, 0.8789062, 0.8828125, 0.8867188,
0.8906250, 0.8945312, 0.8984375, 0.9023438, 0.9062500, 0.9101562,
0.9140625, 0.9179688, 0.9218750, 0.9257812, 0.9296875, 0.9335938,
0.9375000, 0.9414062, 0.9453125, 0.9492188, 0.9531250, 0.9570312,
0.9609375, 0.9648438, 0.9687500, 0.9726562, 0.9765625, 0.9804688,
0.9843750, 0.9882812, 0.9921875, 0.9960938]),
array([ 0.0000000, 0.0039062, 0.0078125, 0.0117188, 0.0156250, 0.0195312,
0.0234375, 0.0273438, 0.0312500, 0.0351562, 0.0390625, 0.0429688,
0.0468750, 0.0507812, 0.0546875, 0.0585938, 0.0625000, 0.0664062,
0.0703125, 0.0742188, 0.0781250, 0.0820312, 0.0859375, 0.0898438,
0.0937500, 0.0976562, 0.1015625, 0.1054688, 0.1093750, 0.1132812,
0.1171875, 0.1210938, 0.1250000, 0.1289062, 0.1328125, 0.1367188,
0.1406250, 0.1445312, 0.1484375, 0.1523438, 0.1562500, 0.1601562,
0.1640625, 0.1679688, 0.1718750, 0.1757812, 0.1796875, 0.1835938,
0.1875000, 0.1914062, 0.1953125, 0.1992188, 0.2031250, 0.2070312,
0.2109375, 0.2148438, 0.2187500, 0.2226562, 0.2265625, 0.2304688,
0.2343750, 0.2382812, 0.2421875, 0.2460938, 0.2500000, 0.2539062,
0.2578125, 0.2617188, 0.2656250, 0.2695312, 0.2734375, 0.2773438,
0.2812500, 0.2851562, 0.2890625, 0.2929688, 0.2968750, 0.3007812,
0.3046875, 0.3085938, 0.3125000, 0.3164062, 0.3203125, 0.3242188,
0.3281250, 0.3320312, 0.3359375, 0.3398438, 0.3437500, 0.3476562,
0.3515625, 0.3554688, 0.3593750, 0.3632812, 0.3671875, 0.3710938,
0.3750000, 0.3789062, 0.3828125, 0.3867188, 0.3906250, 0.3945312,
0.3984375, 0.4023438, 0.4062500, 0.4101562, 0.4140625, 0.4179688,
0.4218750, 0.4257812, 0.4296875, 0.4335938, 0.4375000, 0.4414062,
0.4453125, 0.4492188, 0.4531250, 0.4570312, 0.4609375, 0.4648438,
0.4687500, 0.4726562, 0.4765625, 0.4804688, 0.4843750, 0.4882812,
0.4921875, 0.4960938, 0.5000000, 0.5039062, 0.5078125, 0.5117188,
0.5156250, 0.5195312, 0.5234375, 0.5273438, 0.5312500, 0.5351562,
0.5390625, 0.5429688, 0.5468750, 0.5507812, 0.5546875, 0.5585938,
0.5625000, 0.5664062, 0.5703125, 0.5742188, 0.5781250, 0.5820312,
0.5859375, 0.5898438, 0.5937500, 0.5976562, 0.6015625, 0.6054688,
0.6093750, 0.6132812, 0.6171875, 0.6210938, 0.6250000, 0.6289062,
0.6328125, 0.6367188, 0.6406250, 0.6445312, 0.6484375, 0.6523438,
0.6562500, 0.6601562, 0.6640625, 0.6679688, 0.6718750, 0.6757812,
0.6796875, 0.6835938, 0.6875000, 0.6914062, 0.6953125, 0.6992188,
0.7031250, 0.7070312, 0.7109375, 0.7148438, 0.7187500, 0.7226562,
0.7265625, 0.7304688, 0.7343750, 0.7382812, 0.7421875, 0.7460938,
0.7500000, 0.7539062, 0.7578125, 0.7617188, 0.7656250, 0.7695312,
0.7734375, 0.7773438, 0.7812500, 0.7851562, 0.7890625, 0.7929688,
0.7968750, 0.8007812, 0.8046875, 0.8085938, 0.8125000, 0.8164062,
0.8203125, 0.8242188, 0.8281250, 0.8320312, 0.8359375, 0.8398438,
0.8437500, 0.8476562, 0.8515625, 0.8554688, 0.8593750, 0.8632812,
0.8671875, 0.8710938, 0.8750000, 0.8789062, 0.8828125, 0.8867188,
0.8906250, 0.8945312, 0.8984375, 0.9023438, 0.9062500, 0.9101562,
0.9140625, 0.9179688, 0.9218750, 0.9257812, 0.9296875, 0.9335938,
0.9375000, 0.9414062, 0.9453125, 0.9492188, 0.9531250, 0.9570312,
0.9609375, 0.9648438, 0.9687500, 0.9726562, 0.9765625, 0.9804688,
0.9843750, 0.9882812, 0.9921875, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 1 :: BLUE ###
color_map_luts['idl01'] = \
(
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0195312, 0.0351562, 0.0507812, 0.0664062, 0.0820312,
0.0976562, 0.1132812, 0.1289062, 0.1445312, 0.1601562, 0.1757812,
0.1914062, 0.2070312, 0.2226562, 0.2382812, 0.2539062, 0.2695312,
0.2851562, 0.3007812, 0.3164062, 0.3320312, 0.3515625, 0.3671875,
0.3828125, 0.3984375, 0.4140625, 0.4296875, 0.4453125, 0.4609375,
0.4765625, 0.4921875, 0.5078125, 0.5234375, 0.5390625, 0.5546875,
0.5703125, 0.5859375, 0.6015625, 0.6171875, 0.6328125, 0.6484375,
0.6640625, 0.6835938, 0.6992188, 0.7148438, 0.7304688, 0.7460938,
0.7617188, 0.7773438, 0.7929688, 0.8085938, 0.8242188, 0.8398438,
0.8554688, 0.8710938, 0.8867188, 0.9023438, 0.9179688, 0.9335938,
0.9492188, 0.9648438, 0.9804688, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0078125, 0.0156250, 0.0195312, 0.0273438, 0.0351562,
0.0390625, 0.0468750, 0.0507812, 0.0585938, 0.0664062, 0.0703125,
0.0781250, 0.0820312, 0.0898438, 0.0976562, 0.1015625, 0.1093750,
0.1132812, 0.1210938, 0.1289062, 0.1328125, 0.1406250, 0.1445312,
0.1523438, 0.1601562, 0.1640625, 0.1718750, 0.1757812, 0.1835938,
0.1914062, 0.1953125, 0.2031250, 0.2070312, 0.2148438, 0.2226562,
0.2265625, 0.2343750, 0.2382812, 0.2460938, 0.2539062, 0.2578125,
0.2656250, 0.2695312, 0.2773438, 0.2851562, 0.2890625, 0.2968750,
0.3007812, 0.3085938, 0.3164062, 0.3203125, 0.3281250, 0.3320312,
0.3398438, 0.3476562, 0.3515625, 0.3593750, 0.3671875, 0.3710938,
0.3789062, 0.3828125, 0.3906250, 0.3984375, 0.4023438, 0.4101562,
0.4140625, 0.4218750, 0.4296875, 0.4335938, 0.4414062, 0.4453125,
0.4531250, 0.4609375, 0.4648438, 0.4726562, 0.4765625, 0.4843750,
0.4921875, 0.4960938, 0.5039062, 0.5078125, 0.5156250, 0.5234375,
0.5273438, 0.5351562, 0.5390625, 0.5468750, 0.5546875, 0.5585938,
0.5664062, 0.5703125, 0.5781250, 0.5859375, 0.5898438, 0.5976562,
0.6015625, 0.6093750, 0.6171875, 0.6210938, 0.6289062, 0.6328125,
0.6406250, 0.6484375, 0.6523438, 0.6601562, 0.6640625, 0.6718750,
0.6796875, 0.6835938, 0.6914062, 0.6992188, 0.7031250, 0.7109375,
0.7148438, 0.7226562, 0.7304688, 0.7343750, 0.7421875, 0.7460938,
0.7539062, 0.7617188, 0.7656250, 0.7734375, 0.7773438, 0.7851562,
0.7929688, 0.7968750, 0.8046875, 0.8085938, 0.8164062, 0.8242188,
0.8281250, 0.8359375, 0.8398438, 0.8476562, 0.8554688, 0.8593750,
0.8671875, 0.8710938, 0.8789062, 0.8867188, 0.8906250, 0.8984375,
0.9023438, 0.9101562, 0.9179688, 0.9218750, 0.9296875, 0.9335938,
0.9414062, 0.9492188, 0.9531250, 0.9609375, 0.9648438, 0.9726562,
0.9804688, 0.9843750, 0.9921875, 0.9960938]),
array([ 0.0000000, 0.0039062, 0.0078125, 0.0156250, 0.0195312, 0.0234375,
0.0312500, 0.0351562, 0.0390625, 0.0468750, 0.0507812, 0.0546875,
0.0625000, 0.0664062, 0.0703125, 0.0781250, 0.0820312, 0.0898438,
0.0937500, 0.0976562, 0.1054688, 0.1093750, 0.1132812, 0.1210938,
0.1250000, 0.1289062, 0.1367188, 0.1406250, 0.1445312, 0.1523438,
0.1562500, 0.1640625, 0.1679688, 0.1718750, 0.1796875, 0.1835938,
0.1875000, 0.1953125, 0.1992188, 0.2031250, 0.2109375, 0.2148438,
0.2187500, 0.2265625, 0.2304688, 0.2382812, 0.2421875, 0.2460938,
0.2539062, 0.2578125, 0.2617188, 0.2695312, 0.2734375, 0.2773438,
0.2851562, 0.2890625, 0.2929688, 0.3007812, 0.3046875, 0.3125000,
0.3164062, 0.3203125, 0.3281250, 0.3320312, 0.3359375, 0.3437500,
0.3476562, 0.3515625, 0.3593750, 0.3632812, 0.3671875, 0.3750000,
0.3789062, 0.3867188, 0.3906250, 0.3945312, 0.4023438, 0.4062500,
0.4101562, 0.4179688, 0.4218750, 0.4257812, 0.4335938, 0.4375000,
0.4414062, 0.4492188, 0.4531250, 0.4609375, 0.4648438, 0.4687500,
0.4765625, 0.4804688, 0.4843750, 0.4921875, 0.4960938, 0.5000000,
0.5078125, 0.5117188, 0.5156250, 0.5234375, 0.5273438, 0.5312500,
0.5390625, 0.5429688, 0.5507812, 0.5546875, 0.5585938, 0.5664062,
0.5703125, 0.5742188, 0.5820312, 0.5859375, 0.5898438, 0.5976562,
0.6015625, 0.6054688, 0.6132812, 0.6171875, 0.6250000, 0.6289062,
0.6328125, 0.6406250, 0.6445312, 0.6484375, 0.6562500, 0.6601562,
0.6640625, 0.6718750, 0.6757812, 0.6796875, 0.6875000, 0.6914062,
0.6992188, 0.7031250, 0.7070312, 0.7148438, 0.7187500, 0.7226562,
0.7304688, 0.7343750, 0.7382812, 0.7460938, 0.7500000, 0.7539062,
0.7617188, 0.7656250, 0.7734375, 0.7773438, 0.7812500, 0.7890625,
0.7929688, 0.7968750, 0.8046875, 0.8085938, 0.8125000, 0.8203125,
0.8242188, 0.8281250, 0.8359375, 0.8398438, 0.8476562, 0.8515625,
0.8554688, 0.8632812, 0.8671875, 0.8710938, 0.8789062, 0.8828125,
0.8867188, 0.8945312, 0.8984375, 0.9023438, 0.9101562, 0.9140625,
0.9218750, 0.9257812, 0.9296875, 0.9375000, 0.9414062, 0.9453125,
0.9531250, 0.9570312, 0.9609375, 0.9687500, 0.9726562, 0.9765625,
0.9843750, 0.9882812, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 2 :: GRN-RED-BLU-WHT ###
color_map_luts['idl02'] = \
(
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0234375,
0.0468750, 0.0703125, 0.0937500, 0.1171875, 0.1406250, 0.1640625,
0.1875000, 0.2109375, 0.2343750, 0.2578125, 0.2812500, 0.3046875,
0.3281250, 0.3515625, 0.3750000, 0.3984375, 0.4218750, 0.4453125,
0.4687500, 0.4921875, 0.5156250, 0.5390625, 0.5625000, 0.5859375,
0.6093750, 0.6328125, 0.6562500, 0.6796875, 0.7031250, 0.7265625,
0.7500000, 0.7734375, 0.7968750, 0.8203125, 0.8437500, 0.8671875,
0.8906250, 0.9140625, 0.9375000, 0.9492188, 0.9609375, 0.9726562,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9804688,
0.9765625, 0.9726562, 0.9687500, 0.9687500, 0.9687500, 0.9687500,
0.9687500, 0.9648438, 0.9609375, 0.9570312, 0.9531250, 0.9492188,
0.9453125, 0.9414062, 0.9375000, 0.9375000, 0.9335938, 0.9296875,
0.9257812, 0.9218750, 0.9218750, 0.9218750, 0.9218750, 0.9179688,
0.9140625, 0.9101562, 0.9062500, 0.9023438, 0.8984375, 0.8945312,
0.8906250, 0.8906250, 0.8906250, 0.8906250, 0.8906250, 0.8867188,
0.8828125, 0.8789062, 0.8750000, 0.8710938, 0.8671875, 0.8632812,
0.8593750, 0.8554688, 0.8515625, 0.8476562, 0.8437500, 0.8437500,
0.8437500, 0.8437500, 0.8437500, 0.8398438, 0.8359375, 0.8320312,
0.8281250, 0.8242188, 0.8203125, 0.8164062, 0.8125000, 0.8085938,
0.8046875, 0.8007812, 0.7968750, 0.7968750, 0.7968750, 0.7968750,
0.7968750, 0.7929688, 0.7890625, 0.7851562, 0.7812500, 0.7773438,
0.7734375, 0.7695312, 0.7656250, 0.7656250, 0.7656250, 0.7656250,
0.7656250, 0.7617188, 0.7578125, 0.7539062, 0.7500000, 0.7460938,
0.7421875, 0.7382812, 0.7343750, 0.7304688, 0.7265625, 0.7226562,
0.7187500, 0.7187500, 0.7187500, 0.7187500, 0.7187500, 0.7148438,
0.7109375, 0.7070312, 0.7031250, 0.6992188, 0.6953125, 0.6914062,
0.6875000, 0.6875000, 0.6875000, 0.6875000, 0.6875000, 0.6835938,
0.6796875, 0.6757812, 0.6718750, 0.6679688, 0.6640625, 0.6601562,
0.6562500, 0.6523438, 0.6484375, 0.6445312, 0.6406250, 0.6406250,
0.6406250, 0.6406250, 0.6406250, 0.6367188, 0.6328125, 0.6289062,
0.6250000, 0.6210938, 0.6171875, 0.6132812, 0.6093750, 0.6054688,
0.6015625, 0.5976562, 0.5937500, 0.5937500, 0.5937500, 0.5937500,
0.5937500, 0.5898438, 0.5859375, 0.5820312, 0.5781250, 0.5898438,
0.6015625, 0.6132812, 0.6250000, 0.6367188, 0.6484375, 0.6601562,
0.6718750, 0.6875000, 0.7031250, 0.7187500, 0.7343750, 0.7460938,
0.7578125, 0.7695312, 0.7812500, 0.7929688, 0.8046875, 0.8164062,
0.8281250, 0.8398438, 0.8515625, 0.8632812, 0.8750000, 0.8906250,
0.9062500, 0.9218750, 0.9375000, 0.9492188, 0.9609375, 0.9726562,
0.9843750, 0.9882812, 0.9921875, 0.9960938]),
array([ 0.0000000, 0.1406250, 0.2812500, 0.2929688, 0.3085938, 0.3203125,
0.3359375, 0.3515625, 0.3632812, 0.3789062, 0.3906250, 0.4062500,
0.4218750, 0.4570312, 0.4921875, 0.5273438, 0.5625000, 0.5976562,
0.6328125, 0.6679688, 0.7031250, 0.7382812, 0.7734375, 0.8085938,
0.8437500, 0.8789062, 0.9140625, 0.9492188, 0.9843750, 0.9726562,
0.9609375, 0.9492188, 0.9375000, 0.9140625, 0.8906250, 0.8671875,
0.8437500, 0.8203125, 0.7968750, 0.7734375, 0.7500000, 0.7265625,
0.7031250, 0.6796875, 0.6562500, 0.6328125, 0.6093750, 0.5859375,
0.5625000, 0.5390625, 0.5156250, 0.4921875, 0.4687500, 0.4453125,
0.4218750, 0.3984375, 0.3750000, 0.3515625, 0.3281250, 0.3046875,
0.2812500, 0.2578125, 0.2343750, 0.2109375, 0.1875000, 0.1640625,
0.1406250, 0.1171875, 0.0937500, 0.0703125, 0.0468750, 0.0234375,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0312500,
0.0625000, 0.0937500, 0.1250000, 0.1562500, 0.1875000, 0.2187500,
0.2500000, 0.2812500, 0.3125000, 0.3437500, 0.3750000, 0.4062500,
0.4375000, 0.4687500, 0.5000000, 0.5273438, 0.5546875, 0.5820312,
0.6093750, 0.6406250, 0.6718750, 0.7031250, 0.7343750, 0.7656250,
0.7968750, 0.8281250, 0.8593750, 0.8906250, 0.9218750, 0.9531250,
0.9843750, 0.9882812, 0.9921875, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0039062, 0.0117188,
0.0195312, 0.0273438, 0.0351562, 0.0390625, 0.0468750, 0.0546875,
0.0625000, 0.0703125, 0.0781250, 0.0859375, 0.0976562, 0.1054688,
0.1132812, 0.1210938, 0.1328125, 0.1367188, 0.1445312, 0.1523438,
0.1601562, 0.1679688, 0.1757812, 0.1835938, 0.1953125, 0.2031250,
0.2109375, 0.2187500, 0.2304688, 0.2382812, 0.2460938, 0.2539062,
0.2617188, 0.2656250, 0.2734375, 0.2812500, 0.2890625, 0.2968750,
0.3046875, 0.3125000, 0.3242188, 0.3320312, 0.3398438, 0.3476562,
0.3593750, 0.3671875, 0.3750000, 0.3828125, 0.3945312, 0.3984375,
0.4062500, 0.4140625, 0.4218750, 0.4296875, 0.4375000, 0.4453125,
0.4531250, 0.4609375, 0.4687500, 0.4765625, 0.4882812, 0.4960938,
0.5039062, 0.5117188, 0.5234375, 0.5273438, 0.5351562, 0.5429688,
0.5507812, 0.5585938, 0.5664062, 0.5742188, 0.5859375, 0.5937500,
0.6015625, 0.6093750, 0.6210938, 0.6250000, 0.6328125, 0.6367188,
0.6445312, 0.6523438, 0.6601562, 0.6679688, 0.6796875, 0.6875000,
0.6953125, 0.7031250, 0.7148438, 0.7226562, 0.7304688, 0.7382812,
0.7500000, 0.7539062, 0.7617188, 0.7695312, 0.7773438, 0.7851562,
0.7929688, 0.8007812, 0.8125000, 0.8203125, 0.8281250, 0.8359375,
0.8437500, 0.8476562, 0.8554688, 0.8632812, 0.8710938, 0.8789062,
0.8867188, 0.8945312, 0.9062500, 0.9140625, 0.9218750, 0.9296875,
0.9414062, 0.9492188, 0.9570312, 0.9648438, 0.9765625, 0.9804688,
0.9843750, 0.9882812, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 3 :: RED TEMPERATURE ###
color_map_luts['idl03'] = \
(
array([ 0.0000000, 0.0039062, 0.0078125, 0.0156250, 0.0195312, 0.0273438,
0.0312500, 0.0390625, 0.0429688, 0.0507812, 0.0546875, 0.0585938,
0.0664062, 0.0703125, 0.0781250, 0.0820312, 0.0898438, 0.0937500,
0.1015625, 0.1054688, 0.1093750, 0.1171875, 0.1210938, 0.1289062,
0.1328125, 0.1406250, 0.1445312, 0.1523438, 0.1562500, 0.1640625,
0.1679688, 0.1718750, 0.1796875, 0.1835938, 0.1914062, 0.1953125,
0.2031250, 0.2070312, 0.2148438, 0.2187500, 0.2226562, 0.2304688,
0.2343750, 0.2421875, 0.2460938, 0.2539062, 0.2578125, 0.2656250,
0.2695312, 0.2734375, 0.2812500, 0.2851562, 0.2929688, 0.2968750,
0.3046875, 0.3085938, 0.3164062, 0.3203125, 0.3281250, 0.3320312,
0.3359375, 0.3437500, 0.3476562, 0.3554688, 0.3593750, 0.3671875,
0.3710938, 0.3789062, 0.3828125, 0.3867188, 0.3945312, 0.3984375,
0.4062500, 0.4101562, 0.4179688, 0.4218750, 0.4296875, 0.4335938,
0.4414062, 0.4453125, 0.4492188, 0.4570312, 0.4609375, 0.4687500,
0.4726562, 0.4804688, 0.4843750, 0.4921875, 0.4960938, 0.5000000,
0.5078125, 0.5117188, 0.5195312, 0.5234375, 0.5312500, 0.5351562,
0.5429688, 0.5468750, 0.5507812, 0.5585938, 0.5625000, 0.5703125,
0.5742188, 0.5820312, 0.5859375, 0.5937500, 0.5976562, 0.6054688,
0.6093750, 0.6132812, 0.6210938, 0.6250000, 0.6328125, 0.6367188,
0.6445312, 0.6484375, 0.6562500, 0.6601562, 0.6640625, 0.6718750,
0.6757812, 0.6835938, 0.6875000, 0.6953125, 0.6992188, 0.7070312,
0.7109375, 0.7187500, 0.7226562, 0.7265625, 0.7343750, 0.7382812,
0.7460938, 0.7500000, 0.7578125, 0.7617188, 0.7695312, 0.7734375,
0.7773438, 0.7851562, 0.7890625, 0.7968750, 0.8007812, 0.8085938,
0.8125000, 0.8203125, 0.8242188, 0.8281250, 0.8359375, 0.8398438,
0.8476562, 0.8515625, 0.8593750, 0.8632812, 0.8710938, 0.8750000,
0.8828125, 0.8867188, 0.8906250, 0.8984375, 0.9023438, 0.9101562,
0.9140625, 0.9218750, 0.9257812, 0.9335938, 0.9375000, 0.9414062,
0.9492188, 0.9531250, 0.9609375, 0.9648438, 0.9726562, 0.9765625,
0.9843750, 0.9882812, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0039062, 0.0117188, 0.0195312, 0.0273438, 0.0351562,
0.0429688, 0.0507812, 0.0585938, 0.0664062, 0.0703125, 0.0781250,
0.0859375, 0.0937500, 0.1015625, 0.1093750, 0.1171875, 0.1250000,
0.1328125, 0.1367188, 0.1445312, 0.1523438, 0.1601562, 0.1679688,
0.1757812, 0.1835938, 0.1914062, 0.1992188, 0.2031250, 0.2109375,
0.2187500, 0.2265625, 0.2343750, 0.2421875, 0.2500000, 0.2578125,
0.2656250, 0.2695312, 0.2773438, 0.2851562, 0.2929688, 0.3007812,
0.3085938, 0.3164062, 0.3242188, 0.3320312, 0.3359375, 0.3437500,
0.3515625, 0.3593750, 0.3671875, 0.3750000, 0.3828125, 0.3906250,
0.3984375, 0.4023438, 0.4101562, 0.4179688, 0.4257812, 0.4335938,
0.4414062, 0.4492188, 0.4570312, 0.4648438, 0.4687500, 0.4765625,
0.4843750, 0.4921875, 0.5000000, 0.5078125, 0.5156250, 0.5234375,
0.5312500, 0.5351562, 0.5429688, 0.5507812, 0.5585938, 0.5664062,
0.5742188, 0.5820312, 0.5898438, 0.5976562, 0.6015625, 0.6093750,
0.6171875, 0.6250000, 0.6328125, 0.6406250, 0.6484375, 0.6562500,
0.6640625, 0.6679688, 0.6757812, 0.6835938, 0.6914062, 0.6992188,
0.7070312, 0.7148438, 0.7226562, 0.7304688, 0.7343750, 0.7421875,
0.7500000, 0.7578125, 0.7656250, 0.7734375, 0.7812500, 0.7890625,
0.7968750, 0.8007812, 0.8085938, 0.8164062, 0.8242188, 0.8320312,
0.8398438, 0.8476562, 0.8554688, 0.8632812, 0.8671875, 0.8750000,
0.8828125, 0.8906250, 0.8984375, 0.9062500, 0.9140625, 0.9218750,
0.9296875, 0.9335938, 0.9414062, 0.9492188, 0.9570312, 0.9648438,
0.9726562, 0.9804688, 0.9882812, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0117188,
0.0273438, 0.0429688, 0.0585938, 0.0742188, 0.0898438, 0.1054688,
0.1210938, 0.1367188, 0.1523438, 0.1679688, 0.1835938, 0.1992188,
0.2109375, 0.2265625, 0.2421875, 0.2578125, 0.2734375, 0.2890625,
0.3046875, 0.3203125, 0.3359375, 0.3515625, 0.3671875, 0.3828125,
0.3984375, 0.4101562, 0.4257812, 0.4414062, 0.4570312, 0.4726562,
0.4882812, 0.5039062, 0.5195312, 0.5351562, 0.5507812, 0.5664062,
0.5820312, 0.5976562, 0.6093750, 0.6250000, 0.6406250, 0.6562500,
0.6718750, 0.6875000, 0.7031250, 0.7187500, 0.7343750, 0.7500000,
0.7656250, 0.7812500, 0.7968750, 0.8085938, 0.8242188, 0.8398438,
0.8554688, 0.8710938, 0.8867188, 0.9023438, 0.9179688, 0.9335938,
0.9492188, 0.9648438, 0.9804688, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 4 :: BLUE ###
color_map_luts['idl04'] = \
(
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0273438,
0.0585938, 0.0859375, 0.1171875, 0.1445312, 0.1757812, 0.2031250,
0.2343750, 0.2617188, 0.2929688, 0.3203125, 0.3515625, 0.3789062,
0.4101562, 0.4375000, 0.4687500, 0.4882812, 0.5078125, 0.5273438,
0.5468750, 0.5664062, 0.5859375, 0.6054688, 0.6250000, 0.6445312,
0.6640625, 0.6835938, 0.7031250, 0.7226562, 0.7421875, 0.7617188,
0.7812500, 0.7812500, 0.7851562, 0.7851562, 0.7890625, 0.7890625,
0.7929688, 0.7929688, 0.7968750, 0.7968750, 0.8007812, 0.8007812,
0.8046875, 0.8046875, 0.8085938, 0.8085938, 0.8125000, 0.8125000,
0.8164062, 0.8164062, 0.8203125, 0.8203125, 0.8242188, 0.8242188,
0.8281250, 0.8281250, 0.8320312, 0.8320312, 0.8359375, 0.8359375,
0.8398438, 0.8398438, 0.8437500, 0.8437500, 0.8476562, 0.8476562,
0.8515625, 0.8515625, 0.8554688, 0.8554688, 0.8593750, 0.8593750,
0.8632812, 0.8632812, 0.8671875, 0.8671875, 0.8710938, 0.8710938,
0.8750000, 0.8750000, 0.8789062, 0.8789062, 0.8828125, 0.8828125,
0.8867188, 0.8867188, 0.8906250, 0.8906250, 0.8945312, 0.8945312,
0.8984375, 0.8984375, 0.9023438, 0.9023438, 0.9062500, 0.9062500,
0.9101562, 0.9101562, 0.9140625, 0.9140625, 0.9179688, 0.9179688,
0.9218750, 0.9218750, 0.9257812, 0.9257812, 0.9296875, 0.9296875,
0.9335938, 0.9335938, 0.9375000, 0.9375000, 0.9414062, 0.9414062,
0.9453125, 0.9453125, 0.9492188, 0.9492188, 0.9531250, 0.9531250,
0.9570312, 0.9570312, 0.9609375, 0.9609375, 0.9648438, 0.9648438,
0.9687500, 0.9687500, 0.9726562, 0.9726562, 0.9765625, 0.9765625,
0.9804688, 0.9804688, 0.9843750, 0.9843750, 0.9882812, 0.9882812,
0.9921875, 0.9921875, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0117188, 0.0234375, 0.0351562,
0.0468750, 0.0585938, 0.0703125, 0.0820312, 0.0976562, 0.1093750,
0.1210938, 0.1328125, 0.1445312, 0.1562500, 0.1679688, 0.1796875,
0.1953125, 0.2070312, 0.2187500, 0.2304688, 0.2421875, 0.2539062,
0.2656250, 0.2773438, 0.2929688, 0.3046875, 0.3164062, 0.3281250,
0.3398438, 0.3515625, 0.3632812, 0.3750000, 0.3906250, 0.4023438,
0.4140625, 0.4257812, 0.4375000, 0.4492188, 0.4609375, 0.4726562,
0.4882812, 0.5000000, 0.5117188, 0.5234375, 0.5351562, 0.5468750,
0.5585938, 0.5703125, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.5859375, 0.5820312, 0.5781250, 0.5781250, 0.5742188, 0.5703125,
0.5703125, 0.5664062, 0.5664062, 0.5625000, 0.5585938, 0.5585938,
0.5546875, 0.5507812, 0.5507812, 0.5468750, 0.5468750, 0.5351562,
0.5273438, 0.5156250, 0.5078125, 0.4960938, 0.4882812, 0.4765625,
0.4687500, 0.4570312, 0.4492188, 0.4375000, 0.4296875, 0.4179688,
0.4101562, 0.3984375, 0.3906250, 0.3632812, 0.3398438, 0.3164062,
0.2929688, 0.2656250, 0.2421875, 0.2187500, 0.1953125, 0.1679688,
0.1445312, 0.1210938, 0.0976562, 0.0703125, 0.0468750, 0.0234375,
0.0000000, 0.0078125, 0.0156250, 0.0234375, 0.0351562, 0.0429688,
0.0507812, 0.0625000, 0.0703125, 0.0781250, 0.0898438, 0.0976562,
0.1054688, 0.1132812, 0.1250000, 0.1328125, 0.1406250, 0.1523438,
0.1601562, 0.1679688, 0.1796875, 0.1875000, 0.1953125, 0.2070312,
0.2148438, 0.2226562, 0.2304688, 0.2421875, 0.2500000, 0.2578125,
0.2695312, 0.2773438, 0.2851562, 0.2968750, 0.3046875, 0.3125000,
0.3242188, 0.3320312, 0.3398438, 0.3476562, 0.3593750, 0.3671875,
0.3750000, 0.3867188, 0.3945312, 0.4023438, 0.4140625, 0.4218750,
0.4296875, 0.4414062, 0.4492188, 0.4570312, 0.4648438, 0.4765625,
0.4843750, 0.4921875, 0.5039062, 0.5117188, 0.5195312, 0.5312500,
0.5390625, 0.5468750, 0.5546875, 0.5664062, 0.5742188, 0.5820312,
0.5937500, 0.6015625, 0.6093750, 0.6210938, 0.6289062, 0.6367188,
0.6484375, 0.6562500, 0.6640625, 0.6718750, 0.6835938, 0.6914062,
0.6992188, 0.7109375, 0.7187500, 0.7265625, 0.7382812, 0.7460938,
0.7539062, 0.7656250, 0.7734375, 0.7812500, 0.7890625, 0.8007812,
0.8085938, 0.8164062, 0.8281250, 0.8359375, 0.8437500, 0.8554688,
0.8632812, 0.8710938, 0.8828125, 0.8906250, 0.8984375, 0.9062500,
0.9179688, 0.9257812, 0.9335938, 0.9453125, 0.9531250, 0.9609375,
0.9726562, 0.9804688, 0.9882812, 0.9960938]),
array([ 0.0000000, 0.0078125, 0.0156250, 0.0234375, 0.0312500, 0.0390625,
0.0468750, 0.0546875, 0.0625000, 0.0703125, 0.0781250, 0.0859375,
0.0976562, 0.1054688, 0.1132812, 0.1210938, 0.1289062, 0.1367188,
0.1445312, 0.1523438, 0.1601562, 0.1679688, 0.1757812, 0.1835938,
0.1953125, 0.2031250, 0.2109375, 0.2187500, 0.2265625, 0.2343750,
0.2421875, 0.2500000, 0.2578125, 0.2656250, 0.2734375, 0.2812500,
0.2929688, 0.3007812, 0.3085938, 0.3164062, 0.3242188, 0.3320312,
0.3398438, 0.3476562, 0.3554688, 0.3632812, 0.3710938, 0.3789062,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3750000, 0.3632812, 0.3515625,
0.3398438, 0.3281250, 0.3164062, 0.3046875, 0.2929688, 0.2773438,
0.2656250, 0.2539062, 0.2421875, 0.2304688, 0.2187500, 0.2070312,
0.1953125, 0.1796875, 0.1679688, 0.1562500, 0.1445312, 0.1328125,
0.1210938, 0.1093750, 0.0976562, 0.0820312, 0.0703125, 0.0585938,
0.0468750, 0.0351562, 0.0234375, 0.0117188, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 5 :: STD GAMMA-II ###
color_map_luts['idl05'] = \
(
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0156250, 0.0351562, 0.0546875, 0.0742188, 0.0898438, 0.1093750,
0.1289062, 0.1484375, 0.1640625, 0.1835938, 0.2031250, 0.2226562,
0.2382812, 0.2578125, 0.2773438, 0.2968750, 0.3164062, 0.3164062,
0.3164062, 0.3164062, 0.3164062, 0.3164062, 0.3164062, 0.3164062,
0.3125000, 0.3125000, 0.3125000, 0.3125000, 0.3125000, 0.3125000,
0.3125000, 0.3085938, 0.3281250, 0.3476562, 0.3671875, 0.3867188,
0.4062500, 0.4257812, 0.4453125, 0.4648438, 0.4843750, 0.5039062,
0.5234375, 0.5429688, 0.5625000, 0.5820312, 0.6015625, 0.6210938,
0.6406250, 0.6601562, 0.6796875, 0.7031250, 0.7226562, 0.7421875,
0.7656250, 0.7851562, 0.8046875, 0.8281250, 0.8476562, 0.8671875,
0.8906250, 0.9101562, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9687500, 0.9375000, 0.9062500, 0.8789062, 0.8476562,
0.8164062, 0.7890625, 0.7578125, 0.7265625, 0.6992188, 0.6679688,
0.6367188, 0.6562500, 0.6757812, 0.6953125, 0.7148438, 0.7343750,
0.7539062, 0.7734375, 0.7929688, 0.8164062, 0.8359375, 0.8554688,
0.8750000, 0.8945312, 0.9140625, 0.9335938, 0.9531250, 0.9726562,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0195312, 0.0390625, 0.0625000, 0.0820312, 0.1054688, 0.1250000,
0.1445312, 0.1679688, 0.1875000, 0.2109375, 0.2304688, 0.2500000,
0.2734375, 0.2929688, 0.3164062, 0.3320312, 0.3515625, 0.3710938,
0.3906250, 0.4101562, 0.4257812, 0.4453125, 0.4648438, 0.4843750,
0.5039062, 0.5234375, 0.5390625, 0.5585938, 0.5781250, 0.5976562,
0.6171875, 0.6367188, 0.6367188, 0.6367188, 0.6367188, 0.6367188,
0.6367188, 0.6367188, 0.6367188, 0.6367188, 0.6367188, 0.6367188,
0.6367188, 0.6367188, 0.6367188, 0.6367188, 0.6367188, 0.6367188,
0.6367188, 0.6367188, 0.6367188, 0.6367188, 0.6367188, 0.6367188,
0.6367188, 0.6367188, 0.6367188, 0.6367188, 0.6367188, 0.6367188,
0.6367188, 0.6367188, 0.6367188, 0.6601562, 0.6835938, 0.7070312,
0.7304688, 0.7539062, 0.7773438, 0.8007812, 0.8281250, 0.8515625,
0.8750000, 0.8984375, 0.9218750, 0.9453125, 0.9687500, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.0195312, 0.0390625, 0.0585938, 0.0781250, 0.1015625,
0.1210938, 0.1406250, 0.1601562, 0.1796875, 0.2031250, 0.2226562,
0.2421875, 0.2617188, 0.2812500, 0.3046875, 0.3242188, 0.3437500,
0.3632812, 0.3828125, 0.4062500, 0.4257812, 0.4453125, 0.4648438,
0.4843750, 0.5078125, 0.5273438, 0.5468750, 0.5664062, 0.5859375,
0.6093750, 0.6289062, 0.6484375, 0.6679688, 0.6875000, 0.7109375,
0.7304688, 0.7500000, 0.7695312, 0.7890625, 0.8125000, 0.8320312,
0.8515625, 0.8710938, 0.8906250, 0.9140625, 0.9335938, 0.9531250,
0.9726562, 0.9960938, 0.9765625, 0.9570312, 0.9335938, 0.9140625,
0.8906250, 0.8710938, 0.8515625, 0.8281250, 0.8085938, 0.7851562,
0.7656250, 0.7421875, 0.7226562, 0.7031250, 0.6796875, 0.6601562,
0.6367188, 0.6171875, 0.5937500, 0.5742188, 0.5546875, 0.5312500,
0.5117188, 0.4882812, 0.4687500, 0.4453125, 0.4257812, 0.4062500,
0.3828125, 0.3632812, 0.3398438, 0.3203125, 0.2968750, 0.2773438,
0.2578125, 0.2343750, 0.2148438, 0.1914062, 0.1718750, 0.1484375,
0.1289062, 0.1093750, 0.0859375, 0.0664062, 0.0429688, 0.0234375,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0156250, 0.0351562, 0.0546875,
0.0742188, 0.0937500, 0.1093750, 0.1289062, 0.1484375, 0.1679688,
0.1875000, 0.2070312, 0.2226562, 0.2421875, 0.2617188, 0.2812500,
0.3007812, 0.3203125, 0.3007812, 0.2773438, 0.2539062, 0.2304688,
0.2070312, 0.1835938, 0.1601562, 0.1406250, 0.1171875, 0.0937500,
0.0703125, 0.0468750, 0.0234375, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0117188, 0.0234375, 0.0351562,
0.0468750, 0.0625000, 0.0742188, 0.0859375, 0.0976562, 0.1132812,
0.1250000, 0.1367188, 0.1484375, 0.1601562, 0.1757812, 0.1875000,
0.1992188, 0.2109375, 0.2265625, 0.2382812, 0.2500000, 0.2617188,
0.2773438, 0.2890625, 0.3007812, 0.3125000, 0.3242188, 0.3398438,
0.3515625, 0.3632812, 0.3750000, 0.3906250, 0.4023438, 0.4140625,
0.4257812, 0.4375000, 0.4531250, 0.4648438, 0.4765625, 0.4882812,
0.5039062, 0.5156250, 0.5273438, 0.5390625, 0.5546875, 0.5664062,
0.5781250, 0.5898438, 0.6015625, 0.6171875, 0.6289062, 0.6406250,
0.6523438, 0.6679688, 0.6796875, 0.6914062, 0.7031250, 0.7148438,
0.7304688, 0.7421875, 0.7539062, 0.7656250, 0.7812500, 0.7929688,
0.8046875, 0.8164062, 0.8320312, 0.8437500, 0.8554688, 0.8671875,
0.8789062, 0.8945312, 0.9062500, 0.9179688, 0.9296875, 0.9453125,
0.9570312, 0.9687500, 0.9804688, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 6 :: PRISM ###
color_map_luts['idl06'] = \
(
array([ 0.0000000, 0.0117188, 0.0273438, 0.0429688, 0.0585938, 0.0742188,
0.0859375, 0.1015625, 0.1171875, 0.1328125, 0.1484375, 0.1601562,
0.1757812, 0.1914062, 0.2070312, 0.2226562, 0.2343750, 0.2500000,
0.2656250, 0.2812500, 0.2968750, 0.3085938, 0.3242188, 0.3398438,
0.3554688, 0.3710938, 0.3828125, 0.3984375, 0.4140625, 0.4296875,
0.4453125, 0.4570312, 0.4726562, 0.4882812, 0.5039062, 0.5195312,
0.5351562, 0.5468750, 0.5625000, 0.5781250, 0.5937500, 0.6093750,
0.6210938, 0.6367188, 0.6523438, 0.6679688, 0.6835938, 0.6953125,
0.7109375, 0.7265625, 0.7421875, 0.7578125, 0.7695312, 0.7851562,
0.8007812, 0.8164062, 0.8320312, 0.8437500, 0.8593750, 0.8750000,
0.8906250, 0.9062500, 0.9179688, 0.9335938, 0.9492188, 0.9648438,
0.9804688, 0.9960938, 0.9804688, 0.9648438, 0.9492188, 0.9335938,
0.9179688, 0.8984375, 0.8828125, 0.8671875, 0.8515625, 0.8359375,
0.8203125, 0.8007812, 0.7851562, 0.7695312, 0.7539062, 0.7382812,
0.7187500, 0.7031250, 0.6875000, 0.6718750, 0.6562500, 0.6406250,
0.6210938, 0.6054688, 0.5898438, 0.5742188, 0.5585938, 0.5390625,
0.5234375, 0.5078125, 0.4921875, 0.4765625, 0.4609375, 0.4414062,
0.4257812, 0.4101562, 0.3945312, 0.3789062, 0.3593750, 0.3437500,
0.3281250, 0.3125000, 0.2968750, 0.2812500, 0.2617188, 0.2460938,
0.2304688, 0.2148438, 0.1992188, 0.1796875, 0.1640625, 0.1484375,
0.1328125, 0.1171875, 0.1015625, 0.0820312, 0.0664062, 0.0507812,
0.0351562, 0.0195312, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0117188,
0.0273438, 0.0429688, 0.0585938, 0.0742188, 0.0898438, 0.1054688,
0.1210938, 0.1367188, 0.1523438, 0.1679688, 0.1835938, 0.1992188,
0.2148438, 0.2304688, 0.2460938, 0.2617188, 0.2773438, 0.2929688,
0.3085938, 0.3242188, 0.3398438, 0.3554688, 0.3710938, 0.3867188,
0.4023438, 0.4179688, 0.4335938, 0.4492188, 0.4648438, 0.4804688,
0.4960938, 0.5117188, 0.5273438, 0.5429688, 0.5585938, 0.5742188,
0.5898438, 0.6054688, 0.6210938, 0.6367188, 0.6523438, 0.6679688,
0.6835938, 0.6992188, 0.7148438, 0.7304688, 0.7460938, 0.7617188,
0.7773438, 0.7929688, 0.8085938, 0.8242188, 0.8398438, 0.8554688,
0.8710938, 0.8867188, 0.9023438, 0.9179688, 0.9335938, 0.9492188,
0.9648438, 0.9804688, 0.9960938, 0.9804688, 0.9648438, 0.9492188,
0.9335938, 0.9179688, 0.9023438, 0.8867188, 0.8710938, 0.8554688,
0.8398438, 0.8242188, 0.8085938, 0.7929688, 0.7773438, 0.7617188,
0.7460938, 0.7304688, 0.7148438, 0.6992188, 0.6835938, 0.6640625,
0.6484375, 0.6328125, 0.6171875, 0.6015625, 0.5859375, 0.5703125,
0.5546875, 0.5390625, 0.5234375, 0.5078125, 0.4921875, 0.4765625,
0.4609375, 0.4453125, 0.4296875, 0.4140625, 0.3984375, 0.3828125,
0.3671875, 0.3515625, 0.3320312, 0.3164062, 0.3007812, 0.2851562,
0.2695312, 0.2539062, 0.2382812, 0.2226562, 0.2070312, 0.1914062,
0.1757812, 0.1601562, 0.1445312, 0.1289062, 0.1132812, 0.0976562,
0.0820312, 0.0664062, 0.0507812, 0.0351562, 0.0195312, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0117188, 0.0273438, 0.0429688, 0.0585938, 0.0742188,
0.0898438, 0.1054688, 0.1171875, 0.1328125, 0.1484375, 0.1640625,
0.1796875, 0.1953125, 0.2109375, 0.2226562, 0.2382812, 0.2539062,
0.2695312, 0.2851562, 0.3007812, 0.3164062, 0.3320312, 0.3437500,
0.3593750, 0.3750000, 0.3906250, 0.4062500, 0.4218750, 0.4375000,
0.4492188, 0.4648438, 0.4804688, 0.4960938, 0.5117188, 0.5273438,
0.5429688, 0.5546875, 0.5703125, 0.5859375, 0.6015625, 0.6171875,
0.6328125, 0.6484375, 0.6640625, 0.6757812, 0.6914062, 0.7070312,
0.7226562, 0.7382812, 0.7539062, 0.7695312, 0.7812500, 0.7968750,
0.8125000, 0.8281250, 0.8437500, 0.8593750, 0.8750000, 0.8867188,
0.9023438, 0.9179688, 0.9335938, 0.9492188, 0.9648438, 0.9804688,
0.9960938, 0.9804688, 0.9648438, 0.9492188, 0.9335938, 0.9179688,
0.9023438, 0.8867188, 0.8710938, 0.8554688, 0.8398438, 0.8242188,
0.8085938, 0.7929688, 0.7773438, 0.7617188, 0.7460938, 0.7304688,
0.7148438, 0.6992188, 0.6835938, 0.6640625, 0.6484375, 0.6328125,
0.6171875, 0.6015625, 0.5859375, 0.5703125, 0.5546875, 0.5390625,
0.5234375, 0.5078125, 0.4921875, 0.4765625, 0.4609375, 0.4453125,
0.4296875, 0.4140625, 0.3984375, 0.3828125, 0.3671875, 0.3515625,
0.3320312, 0.3164062, 0.3007812, 0.2851562, 0.2695312, 0.2539062,
0.2382812, 0.2226562, 0.2070312, 0.1914062, 0.1757812, 0.1601562,
0.1445312, 0.1289062, 0.1132812, 0.0976562, 0.0820312, 0.0664062,
0.0507812, 0.0351562, 0.0195312, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 7 :: RED-PURPLE ###
color_map_luts['idl07'] = \
(
array([ 0.0000000, 0.0000000, 0.0117188, 0.0234375, 0.0390625, 0.0507812,
0.0664062, 0.0781250, 0.0937500, 0.1054688, 0.1171875, 0.1289062,
0.1406250, 0.1523438, 0.1640625, 0.1757812, 0.1875000, 0.1992188,
0.2109375, 0.2226562, 0.2343750, 0.2460938, 0.2578125, 0.2695312,
0.2812500, 0.2929688, 0.3046875, 0.3164062, 0.3281250, 0.3320312,
0.3359375, 0.3398438, 0.3437500, 0.3515625, 0.3593750, 0.3671875,
0.3750000, 0.3789062, 0.3828125, 0.3867188, 0.3906250, 0.3984375,
0.4062500, 0.4140625, 0.4218750, 0.4257812, 0.4296875, 0.4335938,
0.4375000, 0.4453125, 0.4531250, 0.4609375, 0.4687500, 0.4726562,
0.4765625, 0.4804688, 0.4843750, 0.4921875, 0.5000000, 0.5078125,
0.5156250, 0.5195312, 0.5234375, 0.5273438, 0.5312500, 0.5390625,
0.5468750, 0.5546875, 0.5625000, 0.5664062, 0.5703125, 0.5742188,
0.5781250, 0.5859375, 0.5937500, 0.6015625, 0.6093750, 0.6132812,
0.6171875, 0.6210938, 0.6250000, 0.6328125, 0.6406250, 0.6484375,
0.6562500, 0.6601562, 0.6640625, 0.6679688, 0.6718750, 0.6796875,
0.6875000, 0.6953125, 0.7031250, 0.7070312, 0.7109375, 0.7148438,
0.7187500, 0.7226562, 0.7265625, 0.7304688, 0.7343750, 0.7382812,
0.7421875, 0.7460938, 0.7500000, 0.7539062, 0.7578125, 0.7617188,
0.7656250, 0.7734375, 0.7812500, 0.7890625, 0.7968750, 0.8007812,
0.8046875, 0.8085938, 0.8125000, 0.8164062, 0.8203125, 0.8242188,
0.8281250, 0.8320312, 0.8359375, 0.8398438, 0.8437500, 0.8476562,
0.8515625, 0.8554688, 0.8593750, 0.8671875, 0.8750000, 0.8828125,
0.8906250, 0.8945312, 0.8984375, 0.9023438, 0.9062500, 0.9101562,
0.9140625, 0.9179688, 0.9218750, 0.9257812, 0.9296875, 0.9335938,
0.9375000, 0.9414062, 0.9453125, 0.9492188, 0.9531250, 0.9609375,
0.9687500, 0.9765625, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9882812, 0.9921875]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0039062,
0.0078125, 0.0117188, 0.0156250, 0.0156250, 0.0156250, 0.0156250,
0.0156250, 0.0156250, 0.0156250, 0.0156250, 0.0156250, 0.0156250,
0.0156250, 0.0156250, 0.0156250, 0.0195312, 0.0234375, 0.0273438,
0.0312500, 0.0312500, 0.0312500, 0.0312500, 0.0312500, 0.0312500,
0.0312500, 0.0312500, 0.0312500, 0.0312500, 0.0312500, 0.0312500,
0.0312500, 0.0312500, 0.0312500, 0.0312500, 0.0312500, 0.0312500,
0.0312500, 0.0312500, 0.0312500, 0.0312500, 0.0312500, 0.0312500,
0.0312500, 0.0351562, 0.0390625, 0.0429688, 0.0468750, 0.0468750,
0.0468750, 0.0468750, 0.0468750, 0.0468750, 0.0468750, 0.0468750,
0.0468750, 0.0468750, 0.0468750, 0.0468750, 0.0468750, 0.0468750,
0.0468750, 0.0468750, 0.0468750, 0.0468750, 0.0468750, 0.0468750,
0.0468750, 0.0507812, 0.0546875, 0.0585938, 0.0625000, 0.0625000,
0.0625000, 0.0625000, 0.0625000, 0.0625000, 0.0625000, 0.0625000,
0.0625000, 0.0625000, 0.0625000, 0.0625000, 0.0625000, 0.0625000,
0.0625000, 0.0625000, 0.0625000, 0.0664062, 0.0703125, 0.0742188,
0.0781250, 0.0781250, 0.0781250, 0.0781250, 0.0781250, 0.0820312,
0.0859375, 0.0898438, 0.0937500, 0.0937500, 0.0937500, 0.0937500,
0.0937500, 0.0976562, 0.1015625, 0.1054688, 0.1093750, 0.1171875,
0.1250000, 0.1328125, 0.1406250, 0.1484375, 0.1562500, 0.1640625,
0.1718750, 0.1796875, 0.1875000, 0.1953125, 0.2031250, 0.2109375,
0.2187500, 0.2265625, 0.2343750, 0.2382812, 0.2421875, 0.2460938,
0.2500000, 0.2578125, 0.2656250, 0.2734375, 0.2812500, 0.2890625,
0.2968750, 0.3046875, 0.3125000, 0.3203125, 0.3281250, 0.3359375,
0.3437500, 0.3515625, 0.3593750, 0.3671875, 0.3750000, 0.3828125,
0.3906250, 0.3984375, 0.4062500, 0.4179688, 0.4296875, 0.4414062,
0.4531250, 0.4648438, 0.4765625, 0.4882812, 0.5000000, 0.5117188,
0.5234375, 0.5351562, 0.5468750, 0.5585938, 0.5703125, 0.5820312,
0.5937500, 0.6054688, 0.6171875, 0.6289062, 0.6406250, 0.6523438,
0.6640625, 0.6757812, 0.6875000, 0.7031250, 0.7187500, 0.7343750,
0.7500000, 0.7695312, 0.7890625, 0.8085938, 0.8281250, 0.8476562,
0.8671875, 0.8867188, 0.9062500, 0.9257812, 0.9453125, 0.9648438,
0.9843750, 0.9843750, 0.9882812, 0.9921875]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125,
0.0078125, 0.0078125, 0.0117188, 0.0117188, 0.0117188, 0.0117188,
0.0156250, 0.0156250, 0.0156250, 0.0156250, 0.0156250, 0.0195312,
0.0234375, 0.0273438, 0.0351562, 0.0351562, 0.0390625, 0.0429688,
0.0468750, 0.0507812, 0.0546875, 0.0585938, 0.0664062, 0.0664062,
0.0703125, 0.0703125, 0.0742188, 0.0781250, 0.0859375, 0.0898438,
0.0976562, 0.0976562, 0.1015625, 0.1015625, 0.1054688, 0.1093750,
0.1132812, 0.1171875, 0.1250000, 0.1250000, 0.1289062, 0.1289062,
0.1328125, 0.1367188, 0.1406250, 0.1445312, 0.1523438, 0.1523438,
0.1562500, 0.1562500, 0.1601562, 0.1640625, 0.1679688, 0.1718750,
0.1796875, 0.1796875, 0.1835938, 0.1875000, 0.1914062, 0.1953125,
0.1992188, 0.2031250, 0.2109375, 0.2109375, 0.2070312, 0.2070312,
0.2031250, 0.2109375, 0.2187500, 0.2265625, 0.2343750, 0.2343750,
0.2382812, 0.2421875, 0.2460938, 0.2500000, 0.2539062, 0.2578125,
0.2656250, 0.2695312, 0.2734375, 0.2773438, 0.2851562, 0.2890625,
0.2929688, 0.2968750, 0.3007812, 0.3046875, 0.3085938, 0.3125000,
0.3203125, 0.3203125, 0.3242188, 0.3242188, 0.3281250, 0.3320312,
0.3359375, 0.3398438, 0.3476562, 0.3515625, 0.3554688, 0.3593750,
0.3671875, 0.3710938, 0.3750000, 0.3789062, 0.3828125, 0.3867188,
0.3906250, 0.3945312, 0.4023438, 0.4023438, 0.4062500, 0.4101562,
0.4140625, 0.4179688, 0.4218750, 0.4257812, 0.4296875, 0.4335938,
0.4375000, 0.4414062, 0.4492188, 0.4531250, 0.4570312, 0.4609375,
0.4648438, 0.4687500, 0.4726562, 0.4765625, 0.4843750, 0.4843750,
0.4882812, 0.4882812, 0.4921875, 0.4960938, 0.5039062, 0.5117188,
0.5195312, 0.5234375, 0.5312500, 0.5390625, 0.5468750, 0.5507812,
0.5585938, 0.5625000, 0.5703125, 0.5742188, 0.5820312, 0.5898438,
0.5976562, 0.6015625, 0.6093750, 0.6132812, 0.6210938, 0.6250000,
0.6289062, 0.6328125, 0.6406250, 0.6445312, 0.6484375, 0.6523438,
0.6601562, 0.6640625, 0.6718750, 0.6757812, 0.6835938, 0.6875000,
0.6914062, 0.6953125, 0.7031250, 0.7070312, 0.7148438, 0.7187500,
0.7265625, 0.7304688, 0.7343750, 0.7382812, 0.7460938, 0.7500000,
0.7539062, 0.7578125, 0.7656250, 0.7695312, 0.7773438, 0.7812500,
0.7890625, 0.7929688, 0.7968750, 0.8007812, 0.8085938, 0.8125000,
0.8164062, 0.8203125, 0.8281250, 0.8320312, 0.8359375, 0.8398438,
0.8476562, 0.8515625, 0.8554688, 0.8593750, 0.8632812, 0.8671875,
0.8710938, 0.8750000, 0.8828125, 0.8867188, 0.8906250, 0.8945312,
0.8984375, 0.9023438, 0.9062500, 0.9101562, 0.9179688, 0.9218750,
0.9257812, 0.9296875, 0.9335938, 0.9375000, 0.9414062, 0.9453125,
0.9492188, 0.9492188, 0.9531250, 0.9570312, 0.9609375, 0.9609375,
0.9648438, 0.9687500, 0.9726562, 0.9726562, 0.9765625, 0.9804688,
0.9843750, 0.9843750, 0.9882812, 0.9921875]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 8 :: GREEN ###
color_map_luts['idl08'] = \
(
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0039062, 0.0117188, 0.0156250, 0.0234375,
0.0312500, 0.0351562, 0.0429688, 0.0468750, 0.0546875, 0.0625000,
0.0664062, 0.0742188, 0.0781250, 0.0859375, 0.0937500, 0.0976562,
0.1054688, 0.1132812, 0.1171875, 0.1250000, 0.1289062, 0.1367188,
0.1445312, 0.1484375, 0.1562500, 0.1601562, 0.1679688, 0.1757812,
0.1796875, 0.1875000, 0.1953125, 0.1992188, 0.2070312, 0.2109375,
0.2187500, 0.2265625, 0.2304688, 0.2382812, 0.2421875, 0.2500000,
0.2578125, 0.2617188, 0.2695312, 0.2773438, 0.2812500, 0.2890625,
0.2929688, 0.3007812, 0.3085938, 0.3125000, 0.3203125, 0.3242188,
0.3320312, 0.3398438, 0.3437500, 0.3515625, 0.3554688, 0.3632812,
0.3710938, 0.3750000, 0.3828125, 0.3906250, 0.3945312, 0.4023438,
0.4062500, 0.4140625, 0.4218750, 0.4257812, 0.4335938, 0.4375000,
0.4453125, 0.4531250, 0.4570312, 0.4648438, 0.4726562, 0.4765625,
0.4843750, 0.4882812, 0.4960938, 0.5039062, 0.5078125, 0.5156250,
0.5195312, 0.5273438, 0.5351562, 0.5390625, 0.5468750, 0.5546875,
0.5585938, 0.5664062, 0.5703125, 0.5781250, 0.5859375, 0.5898438,
0.5976562, 0.6015625, 0.6093750, 0.6171875, 0.6210938, 0.6289062,
0.6367188, 0.6406250, 0.6484375, 0.6523438, 0.6601562, 0.6679688,
0.6718750, 0.6796875, 0.6835938, 0.6914062, 0.6992188, 0.7031250,
0.7109375, 0.7148438, 0.7226562, 0.7304688, 0.7343750, 0.7421875,
0.7500000, 0.7539062, 0.7617188, 0.7656250, 0.7734375, 0.7812500,
0.7851562, 0.7929688, 0.7968750, 0.8046875, 0.8125000, 0.8164062,
0.8242188, 0.8320312, 0.8359375, 0.8437500, 0.8476562, 0.8554688,
0.8632812, 0.8671875, 0.8750000, 0.8789062, 0.8867188, 0.8945312,
0.8984375, 0.9062500, 0.9140625, 0.9179688, 0.9257812, 0.9296875,
0.9375000, 0.9453125, 0.9492188, 0.9570312, 0.9609375, 0.9687500,
0.9765625, 0.9804688, 0.9882812, 0.9960938]),
array([ 0.0000000, 0.0039062, 0.0078125, 0.0117188, 0.0156250, 0.0195312,
0.0234375, 0.0273438, 0.0312500, 0.0351562, 0.0390625, 0.0429688,
0.0468750, 0.0507812, 0.0546875, 0.0585938, 0.0625000, 0.0664062,
0.0703125, 0.0742188, 0.0781250, 0.0820312, 0.0859375, 0.0898438,
0.0937500, 0.0976562, 0.1015625, 0.1054688, 0.1093750, 0.1132812,
0.1171875, 0.1210938, 0.1250000, 0.1289062, 0.1328125, 0.1367188,
0.1406250, 0.1445312, 0.1484375, 0.1523438, 0.1562500, 0.1601562,
0.1640625, 0.1679688, 0.1718750, 0.1757812, 0.1796875, 0.1835938,
0.1875000, 0.1914062, 0.1953125, 0.1992188, 0.2031250, 0.2070312,
0.2109375, 0.2148438, 0.2187500, 0.2226562, 0.2265625, 0.2304688,
0.2343750, 0.2382812, 0.2421875, 0.2460938, 0.2500000, 0.2539062,
0.2578125, 0.2617188, 0.2656250, 0.2695312, 0.2734375, 0.2773438,
0.2812500, 0.2851562, 0.2890625, 0.2929688, 0.2968750, 0.3007812,
0.3046875, 0.3085938, 0.3125000, 0.3164062, 0.3203125, 0.3242188,
0.3281250, 0.3320312, 0.3359375, 0.3398438, 0.3437500, 0.3476562,
0.3515625, 0.3554688, 0.3593750, 0.3632812, 0.3671875, 0.3710938,
0.3750000, 0.3789062, 0.3828125, 0.3867188, 0.3906250, 0.3945312,
0.3984375, 0.4023438, 0.4062500, 0.4101562, 0.4140625, 0.4179688,
0.4218750, 0.4257812, 0.4296875, 0.4335938, 0.4375000, 0.4414062,
0.4453125, 0.4492188, 0.4531250, 0.4570312, 0.4609375, 0.4648438,
0.4687500, 0.4726562, 0.4765625, 0.4804688, 0.4843750, 0.4882812,
0.4921875, 0.4960938, 0.5000000, 0.5039062, 0.5078125, 0.5117188,
0.5156250, 0.5195312, 0.5234375, 0.5273438, 0.5312500, 0.5351562,
0.5390625, 0.5429688, 0.5468750, 0.5507812, 0.5546875, 0.5585938,
0.5625000, 0.5664062, 0.5703125, 0.5742188, 0.5781250, 0.5820312,
0.5859375, 0.5898438, 0.5937500, 0.5976562, 0.6015625, 0.6054688,
0.6093750, 0.6132812, 0.6171875, 0.6210938, 0.6250000, 0.6289062,
0.6328125, 0.6367188, 0.6406250, 0.6445312, 0.6484375, 0.6523438,
0.6562500, 0.6601562, 0.6640625, 0.6679688, 0.6718750, 0.6757812,
0.6796875, 0.6835938, 0.6875000, 0.6914062, 0.6953125, 0.6992188,
0.7031250, 0.7070312, 0.7109375, 0.7148438, 0.7187500, 0.7226562,
0.7265625, 0.7304688, 0.7343750, 0.7382812, 0.7421875, 0.7460938,
0.7500000, 0.7539062, 0.7578125, 0.7617188, 0.7656250, 0.7695312,
0.7734375, 0.7773438, 0.7812500, 0.7851562, 0.7890625, 0.7929688,
0.7968750, 0.8007812, 0.8046875, 0.8085938, 0.8125000, 0.8164062,
0.8203125, 0.8242188, 0.8281250, 0.8320312, 0.8359375, 0.8398438,
0.8437500, 0.8476562, 0.8515625, 0.8554688, 0.8593750, 0.8632812,
0.8671875, 0.8710938, 0.8750000, 0.8789062, 0.8828125, 0.8867188,
0.8906250, 0.8945312, 0.8984375, 0.9023438, 0.9062500, 0.9101562,
0.9140625, 0.9179688, 0.9218750, 0.9257812, 0.9296875, 0.9335938,
0.9375000, 0.9414062, 0.9453125, 0.9492188, 0.9531250, 0.9570312,
0.9609375, 0.9648438, 0.9687500, 0.9726562, 0.9765625, 0.9804688,
0.9843750, 0.9882812, 0.9921875, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0117188, 0.0234375, 0.0390625, 0.0507812,
0.0664062, 0.0781250, 0.0937500, 0.1054688, 0.1210938, 0.1328125,
0.1445312, 0.1601562, 0.1718750, 0.1875000, 0.1992188, 0.2148438,
0.2265625, 0.2421875, 0.2539062, 0.2656250, 0.2812500, 0.2929688,
0.3085938, 0.3203125, 0.3359375, 0.3476562, 0.3632812, 0.3750000,
0.3867188, 0.4023438, 0.4140625, 0.4296875, 0.4414062, 0.4570312,
0.4687500, 0.4843750, 0.4960938, 0.5078125, 0.5234375, 0.5351562,
0.5507812, 0.5625000, 0.5781250, 0.5898438, 0.6054688, 0.6171875,
0.6289062, 0.6445312, 0.6562500, 0.6718750, 0.6835938, 0.6992188,
0.7109375, 0.7265625, 0.7382812, 0.7500000, 0.7656250, 0.7773438,
0.7929688, 0.8046875, 0.8203125, 0.8320312, 0.8476562, 0.8593750,
0.8710938, 0.8867188, 0.8984375, 0.9140625, 0.9257812, 0.9414062,
0.9531250, 0.9687500, 0.9804688, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 9 :: GRN ###
color_map_luts['idl09'] = \
(
array([ 0.0039062, 0.0039062, 0.0039062, 0.0078125, 0.0078125, 0.0078125,
0.0117188, 0.0117188, 0.0156250, 0.0156250, 0.0156250, 0.0195312,
0.0195312, 0.0195312, 0.0234375, 0.0234375, 0.0273438, 0.0273438,
0.0273438, 0.0312500, 0.0312500, 0.0351562, 0.0351562, 0.0351562,
0.0390625, 0.0390625, 0.0390625, 0.0429688, 0.0429688, 0.0468750,
0.0468750, 0.0468750, 0.0507812, 0.0507812, 0.0507812, 0.0546875,
0.0546875, 0.0585938, 0.0585938, 0.0585938, 0.0625000, 0.0625000,
0.0664062, 0.0664062, 0.0664062, 0.0703125, 0.0703125, 0.0703125,
0.0742188, 0.0742188, 0.0781250, 0.0781250, 0.0781250, 0.0820312,
0.0820312, 0.0820312, 0.0859375, 0.0859375, 0.0898438, 0.0898438,
0.0898438, 0.0937500, 0.0937500, 0.0976562, 0.0976562, 0.0976562,
0.1015625, 0.1015625, 0.1015625, 0.1054688, 0.1054688, 0.1093750,
0.1093750, 0.1093750, 0.1132812, 0.1132812, 0.1132812, 0.1171875,
0.1171875, 0.1210938, 0.1210938, 0.1210938, 0.1250000, 0.1250000,
0.1289062, 0.1289062, 0.1289062, 0.1328125, 0.1328125, 0.1328125,
0.1367188, 0.1367188, 0.1406250, 0.1406250, 0.1406250, 0.1445312,
0.1445312, 0.1445312, 0.1484375, 0.1484375, 0.1523438, 0.1523438,
0.1523438, 0.1562500, 0.1562500, 0.1601562, 0.1601562, 0.1601562,
0.1640625, 0.1640625, 0.1640625, 0.1679688, 0.1679688, 0.1718750,
0.1718750, 0.1718750, 0.1757812, 0.1757812, 0.1757812, 0.1796875,
0.1796875, 0.1835938, 0.1835938, 0.1835938, 0.1875000, 0.1875000,
0.1914062, 0.1914062, 0.1914062, 0.1953125, 0.1953125, 0.1953125,
0.1992188, 0.1992188, 0.2031250, 0.2031250, 0.2031250, 0.2109375,
0.2109375, 0.2148438, 0.2187500, 0.2187500, 0.2226562, 0.2265625,
0.2265625, 0.2304688, 0.2343750, 0.2343750, 0.2382812, 0.2421875,
0.2421875, 0.2460938, 0.2500000, 0.2500000, 0.2578125, 0.2656250,
0.2734375, 0.2773438, 0.2851562, 0.2929688, 0.3007812, 0.3085938,
0.3164062, 0.3242188, 0.3320312, 0.3359375, 0.3437500, 0.3515625,
0.3593750, 0.3671875, 0.3750000, 0.3828125, 0.3867188, 0.3945312,
0.4023438, 0.4101562, 0.4179688, 0.4257812, 0.4335938, 0.4414062,
0.4453125, 0.4531250, 0.4609375, 0.4687500, 0.4765625, 0.4843750,
0.4921875, 0.4960938, 0.5039062, 0.5117188, 0.5195312, 0.5273438,
0.5351562, 0.5429688, 0.5507812, 0.5546875, 0.5625000, 0.5703125,
0.5781250, 0.5859375, 0.5937500, 0.6015625, 0.6093750, 0.6132812,
0.6210938, 0.6289062, 0.6367188, 0.6445312, 0.6523438, 0.6601562,
0.6640625, 0.6718750, 0.6796875, 0.6875000, 0.6953125, 0.7031250,
0.7109375, 0.7187500, 0.7226562, 0.7304688, 0.7382812, 0.7460938,
0.7539062, 0.7617188, 0.7695312, 0.7734375, 0.7812500, 0.7890625,
0.7968750, 0.8046875, 0.8125000, 0.8203125, 0.8281250, 0.8320312,
0.8398438, 0.8476562, 0.8554688, 0.8632812, 0.8710938, 0.8789062,
0.8828125, 0.8906250, 0.8984375, 0.9062500, 0.9140625, 0.9218750,
0.9296875, 0.9375000, 0.9414062, 0.9492188, 0.9570312, 0.9648438,
0.9726562, 0.9804688, 0.9882812, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0039062, 0.0078125, 0.0078125, 0.0117188,
0.0156250, 0.0156250, 0.0195312, 0.0234375, 0.0234375, 0.0273438,
0.0312500, 0.0312500, 0.0351562, 0.0390625, 0.0390625, 0.0429688,
0.0468750, 0.0468750, 0.0507812, 0.0546875, 0.0546875, 0.0585938,
0.0625000, 0.0625000, 0.0664062, 0.0703125, 0.0703125, 0.0742188,
0.0781250, 0.0781250, 0.0820312, 0.0859375, 0.0859375, 0.0898438,
0.0937500, 0.0937500, 0.0976562, 0.1015625, 0.1015625, 0.1054688,
0.1093750, 0.1093750, 0.1132812, 0.1171875, 0.1171875, 0.1210938,
0.1250000, 0.1250000, 0.1289062, 0.1328125, 0.1328125, 0.1367188,
0.1406250, 0.1406250, 0.1445312, 0.1484375, 0.1484375, 0.1523438,
0.1562500, 0.1562500, 0.1601562, 0.1640625, 0.1640625, 0.1679688,
0.1718750, 0.1718750, 0.1757812, 0.1796875, 0.1796875, 0.1835938,
0.1875000, 0.1875000, 0.1914062, 0.1953125, 0.1953125, 0.1992188,
0.2031250, 0.2031250, 0.2070312, 0.2109375, 0.2109375, 0.2148438,
0.2187500, 0.2187500, 0.2226562, 0.2265625, 0.2265625, 0.2304688,
0.2343750, 0.2343750, 0.2382812, 0.2421875, 0.2421875, 0.2460938,
0.2500000, 0.2500000, 0.2539062, 0.2578125, 0.2578125, 0.2617188,
0.2656250, 0.2656250, 0.2695312, 0.2734375, 0.2734375, 0.2773438,
0.2812500, 0.2812500, 0.2851562, 0.2890625, 0.2890625, 0.2929688,
0.2968750, 0.2968750, 0.3007812, 0.3046875, 0.3046875, 0.3085938,
0.3125000, 0.3125000, 0.3164062, 0.3203125, 0.3203125, 0.3242188,
0.3281250, 0.3281250, 0.3320312, 0.3359375, 0.3398438, 0.3437500,
0.3515625, 0.3554688, 0.3593750, 0.3671875, 0.3710938, 0.3750000,
0.3828125, 0.3867188, 0.3906250, 0.3984375, 0.4023438, 0.4062500,
0.4140625, 0.4179688, 0.4218750, 0.4296875, 0.4335938, 0.4375000,
0.4453125, 0.4492188, 0.4531250, 0.4609375, 0.4648438, 0.4687500,
0.4765625, 0.4804688, 0.4843750, 0.4921875, 0.4960938, 0.5000000,
0.5078125, 0.5117188, 0.5156250, 0.5234375, 0.5273438, 0.5312500,
0.5390625, 0.5429688, 0.5468750, 0.5546875, 0.5585938, 0.5664062,
0.5703125, 0.5742188, 0.5820312, 0.5859375, 0.5898438, 0.5976562,
0.6015625, 0.6054688, 0.6132812, 0.6171875, 0.6210938, 0.6289062,
0.6328125, 0.6367188, 0.6445312, 0.6484375, 0.6523438, 0.6601562,
0.6640625, 0.6679688, 0.6757812, 0.6796875, 0.6835938, 0.6914062,
0.6953125, 0.6992188, 0.7070312, 0.7109375, 0.7148438, 0.7226562,
0.7265625, 0.7304688, 0.7382812, 0.7421875, 0.7460938, 0.7539062,
0.7578125, 0.7617188, 0.7695312, 0.7734375, 0.7812500, 0.7851562,
0.7890625, 0.7968750, 0.8007812, 0.8046875, 0.8125000, 0.8164062,
0.8203125, 0.8281250, 0.8320312, 0.8359375, 0.8437500, 0.8476562,
0.8515625, 0.8593750, 0.8632812, 0.8671875, 0.8750000, 0.8789062,
0.8828125, 0.8906250, 0.8945312, 0.8984375, 0.9062500, 0.9101562,
0.9140625, 0.9218750, 0.9257812, 0.9296875, 0.9375000, 0.9414062,
0.9453125, 0.9531250, 0.9570312, 0.9609375, 0.9687500, 0.9726562,
0.9765625, 0.9843750, 0.9882812, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0078125, 0.0078125, 0.0078125, 0.0078125,
0.0117188, 0.0117188, 0.0117188, 0.0117188, 0.0156250, 0.0156250,
0.0156250, 0.0195312, 0.0195312, 0.0195312, 0.0195312, 0.0234375,
0.0234375, 0.0234375, 0.0234375, 0.0273438, 0.0273438, 0.0273438,
0.0273438, 0.0312500, 0.0312500, 0.0312500, 0.0312500, 0.0351562,
0.0351562, 0.0351562, 0.0390625, 0.0390625, 0.0390625, 0.0390625,
0.0429688, 0.0429688, 0.0429688, 0.0429688, 0.0468750, 0.0468750,
0.0468750, 0.0468750, 0.0507812, 0.0507812, 0.0507812, 0.0507812,
0.0546875, 0.0546875, 0.0546875, 0.0585938, 0.0585938, 0.0585938,
0.0585938, 0.0625000, 0.0625000, 0.0625000, 0.0625000, 0.0664062,
0.0664062, 0.0664062, 0.0664062, 0.0703125, 0.0703125, 0.0703125,
0.0703125, 0.0742188, 0.0742188, 0.0742188, 0.0781250, 0.0781250,
0.0781250, 0.0781250, 0.0820312, 0.0820312, 0.0820312, 0.0820312,
0.0859375, 0.0859375, 0.0859375, 0.0859375, 0.0898438, 0.0898438,
0.0898438, 0.0898438, 0.0937500, 0.0937500, 0.0937500, 0.0976562,
0.0976562, 0.0976562, 0.0976562, 0.1015625, 0.1015625, 0.1015625,
0.1015625, 0.1054688, 0.1054688, 0.1054688, 0.1054688, 0.1093750,
0.1093750, 0.1093750, 0.1093750, 0.1132812, 0.1132812, 0.1132812,
0.1171875, 0.1171875, 0.1171875, 0.1171875, 0.1210938, 0.1210938,
0.1210938, 0.1210938, 0.1250000, 0.1250000, 0.1250000, 0.1250000,
0.1289062, 0.1289062, 0.1289062, 0.1289062, 0.1328125, 0.1328125,
0.1328125, 0.1367188, 0.1367188, 0.1367188, 0.1367188, 0.1406250,
0.1406250, 0.1406250, 0.1406250, 0.1445312, 0.1445312, 0.1445312,
0.1445312, 0.1484375, 0.1484375, 0.1484375, 0.1484375, 0.1523438,
0.1523438, 0.1523438, 0.1562500, 0.1562500, 0.1562500, 0.1562500,
0.1601562, 0.1601562, 0.1601562, 0.1601562, 0.1640625, 0.1640625,
0.1640625, 0.1640625, 0.1679688, 0.1679688, 0.1679688, 0.1679688,
0.1718750, 0.1718750, 0.1718750, 0.1757812, 0.1757812, 0.1757812,
0.1757812, 0.1796875, 0.1796875, 0.1796875, 0.1796875, 0.1835938,
0.1835938, 0.1835938, 0.1835938, 0.1875000, 0.1835938, 0.1914062,
0.2031250, 0.2148438, 0.2265625, 0.2382812, 0.2500000, 0.2617188,
0.2734375, 0.2851562, 0.2968750, 0.3085938, 0.3203125, 0.3320312,
0.3437500, 0.3515625, 0.3632812, 0.3750000, 0.3867188, 0.3984375,
0.4101562, 0.4218750, 0.4335938, 0.4453125, 0.4570312, 0.4687500,
0.4804688, 0.4921875, 0.5039062, 0.5117188, 0.5234375, 0.5351562,
0.5468750, 0.5585938, 0.5703125, 0.5820312, 0.5937500, 0.6054688,
0.6171875, 0.6289062, 0.6406250, 0.6523438, 0.6640625, 0.6718750,
0.6835938, 0.6953125, 0.7070312, 0.7187500, 0.7304688, 0.7421875,
0.7539062, 0.7656250, 0.7773438, 0.7890625, 0.8007812, 0.8125000,
0.8242188, 0.8320312, 0.8437500, 0.8554688, 0.8671875, 0.8789062,
0.8906250, 0.9023438, 0.9140625, 0.9257812, 0.9375000, 0.9492188,
0.9609375, 0.9726562, 0.9843750, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 10 :: GREEN-PINK ###
color_map_luts['idl10'] = \
(
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0195312,
0.0390625, 0.0585938, 0.0781250, 0.0976562, 0.1171875, 0.1367188,
0.1562500, 0.1757812, 0.1953125, 0.2148438, 0.2343750, 0.2539062,
0.2734375, 0.2929688, 0.3125000, 0.3281250, 0.3437500, 0.3593750,
0.3750000, 0.3945312, 0.4140625, 0.4335938, 0.4531250, 0.4726562,
0.4921875, 0.5117188, 0.5312500, 0.5507812, 0.5703125, 0.5898438,
0.6093750, 0.6210938, 0.6328125, 0.6445312, 0.6562500, 0.6679688,
0.6796875, 0.6914062, 0.7031250, 0.7148438, 0.7265625, 0.7382812,
0.7500000, 0.7617188, 0.7734375, 0.7851562, 0.7968750, 0.8085938,
0.8203125, 0.8320312, 0.8437500, 0.8554688, 0.8671875, 0.8789062,
0.8906250, 0.9023438, 0.9140625, 0.9257812, 0.9375000, 0.9492188,
0.9609375, 0.9726562, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750, 0.9843750,
0.9843750, 0.9882812, 0.9921875, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0546875, 0.1093750,
0.1679688, 0.2226562, 0.2812500, 0.3164062, 0.3515625, 0.3867188,
0.4218750, 0.4570312, 0.4921875, 0.5273438, 0.5625000, 0.5976562,
0.6328125, 0.6679688, 0.7031250, 0.6992188, 0.6953125, 0.6914062,
0.6875000, 0.6835938, 0.6796875, 0.6757812, 0.6718750, 0.6679688,
0.6640625, 0.6601562, 0.6562500, 0.6523438, 0.6484375, 0.6445312,
0.6406250, 0.6367188, 0.6328125, 0.6289062, 0.6250000, 0.6210938,
0.6171875, 0.6132812, 0.6093750, 0.6015625, 0.5937500, 0.5859375,
0.5781250, 0.5742188, 0.5703125, 0.5664062, 0.5625000, 0.5585938,
0.5546875, 0.5507812, 0.5468750, 0.5429688, 0.5390625, 0.5351562,
0.5312500, 0.5273438, 0.5234375, 0.5195312, 0.5156250, 0.5117188,
0.5078125, 0.5039062, 0.5000000, 0.4921875, 0.4843750, 0.4765625,
0.4687500, 0.4648438, 0.4609375, 0.4570312, 0.4531250, 0.4492188,
0.4453125, 0.4414062, 0.4375000, 0.4335938, 0.4296875, 0.4257812,
0.4218750, 0.4179688, 0.4140625, 0.4101562, 0.4062500, 0.4023438,
0.3984375, 0.3945312, 0.3906250, 0.3867188, 0.3828125, 0.3789062,
0.3750000, 0.3671875, 0.3593750, 0.3515625, 0.3437500, 0.3398438,
0.3359375, 0.3320312, 0.3281250, 0.3242188, 0.3203125, 0.3164062,
0.3125000, 0.3085938, 0.3046875, 0.3007812, 0.2968750, 0.2929688,
0.2890625, 0.2851562, 0.2812500, 0.2773438, 0.2734375, 0.2695312,
0.2656250, 0.2578125, 0.2500000, 0.2421875, 0.2343750, 0.2304688,
0.2265625, 0.2226562, 0.2187500, 0.2109375, 0.2031250, 0.1953125,
0.1875000, 0.1835938, 0.1796875, 0.1757812, 0.1718750, 0.1640625,
0.1562500, 0.1484375, 0.1406250, 0.1328125, 0.1250000, 0.1171875,
0.1093750, 0.1015625, 0.0937500, 0.0859375, 0.0781250, 0.0742188,
0.0703125, 0.0664062, 0.0625000, 0.0546875, 0.0468750, 0.0390625,
0.0312500, 0.0234375, 0.0156250, 0.0078125, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0156250, 0.0312500, 0.0468750,
0.0625000, 0.0781250, 0.0937500, 0.1093750, 0.1250000, 0.1406250,
0.1562500, 0.1718750, 0.1875000, 0.2031250, 0.2187500, 0.2343750,
0.2500000, 0.2656250, 0.2812500, 0.2968750, 0.3125000, 0.3281250,
0.3437500, 0.3593750, 0.3750000, 0.3906250, 0.4062500, 0.4218750,
0.4375000, 0.4531250, 0.4687500, 0.4843750, 0.5000000, 0.5156250,
0.5312500, 0.5468750, 0.5625000, 0.5742188, 0.5859375, 0.5976562,
0.6093750, 0.6250000, 0.6406250, 0.6562500, 0.6718750, 0.6875000,
0.7031250, 0.7187500, 0.7343750, 0.7500000, 0.7656250, 0.7812500,
0.7968750, 0.8125000, 0.8281250, 0.8437500, 0.8593750, 0.8750000,
0.8906250, 0.9062500, 0.9218750, 0.9375000, 0.9531250, 0.9687500,
0.9843750, 0.9882812, 0.9921875, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0039062, 0.0117188, 0.0156250,
0.0234375, 0.0312500, 0.0390625, 0.0468750, 0.0546875, 0.0585938,
0.0664062, 0.0742188, 0.0820312, 0.0898438, 0.0976562, 0.1054688,
0.1132812, 0.1210938, 0.1289062, 0.1367188, 0.1445312, 0.1484375,
0.1562500, 0.1640625, 0.1718750, 0.1796875, 0.1875000, 0.1953125,
0.2070312, 0.2109375, 0.2187500, 0.2265625, 0.2343750, 0.2421875,
0.2500000, 0.2578125, 0.2656250, 0.2695312, 0.2773438, 0.2851562,
0.2929688, 0.3007812, 0.3085938, 0.3164062, 0.3242188, 0.3281250,
0.3359375, 0.3437500, 0.3515625, 0.3593750, 0.3671875, 0.3750000,
0.3867188, 0.3906250, 0.3984375, 0.4062500, 0.4140625, 0.4218750,
0.4296875, 0.4375000, 0.4453125, 0.4531250, 0.4609375, 0.4687500,
0.4765625, 0.4804688, 0.4882812, 0.4960938, 0.5039062, 0.5117188,
0.5195312, 0.5273438, 0.5351562, 0.5390625, 0.5468750, 0.5546875,
0.5625000, 0.5703125, 0.5781250, 0.5859375, 0.5976562, 0.6015625,
0.6093750, 0.6171875, 0.6250000, 0.6328125, 0.6406250, 0.6484375,
0.6562500, 0.6640625, 0.6718750, 0.6796875, 0.6875000, 0.6914062,
0.6992188, 0.7070312, 0.7148438, 0.7226562, 0.7304688, 0.7382812,
0.7460938, 0.7539062, 0.7617188, 0.7695312, 0.7773438, 0.7773438,
0.7734375, 0.7695312, 0.7656250, 0.7656250, 0.7656250, 0.7656250,
0.7617188, 0.7617188, 0.7578125, 0.7539062, 0.7500000, 0.7500000,
0.7460938, 0.7460938, 0.7421875, 0.7421875, 0.7421875, 0.7421875,
0.7421875, 0.7421875, 0.7421875, 0.7421875, 0.7382812, 0.7382812,
0.7343750, 0.7304688, 0.7265625, 0.7265625, 0.7226562, 0.7226562,
0.7187500, 0.7187500, 0.7226562, 0.7265625, 0.7304688, 0.7304688,
0.7304688, 0.7304688, 0.7304688, 0.7304688, 0.7304688, 0.7304688,
0.7343750, 0.7343750, 0.7343750, 0.7343750, 0.7382812, 0.7382812,
0.7382812, 0.7382812, 0.7382812, 0.7382812, 0.7382812, 0.7382812,
0.7421875, 0.7421875, 0.7421875, 0.7421875, 0.7460938, 0.7460938,
0.7460938, 0.7460938, 0.7460938, 0.7500000, 0.7539062, 0.7578125,
0.7617188, 0.7656250, 0.7695312, 0.7734375, 0.7773438, 0.7812500,
0.7851562, 0.7890625, 0.7929688, 0.7929688, 0.7968750, 0.8007812,
0.8046875, 0.8085938, 0.8125000, 0.8164062, 0.8203125, 0.8242188,
0.8281250, 0.8320312, 0.8359375, 0.8359375, 0.8398438, 0.8437500,
0.8476562, 0.8515625, 0.8554688, 0.8593750, 0.8632812, 0.8671875,
0.8710938, 0.8750000, 0.8789062, 0.8828125, 0.8867188, 0.8906250,
0.8945312, 0.8984375, 0.9023438, 0.9062500, 0.9101562, 0.9140625,
0.9179688, 0.9218750, 0.9257812, 0.9257812, 0.9296875, 0.9335938,
0.9375000, 0.9414062, 0.9453125, 0.9492188, 0.9531250, 0.9570312,
0.9609375, 0.9648438, 0.9687500, 0.9726562, 0.9765625, 0.9804688,
0.9843750, 0.9882812, 0.9921875, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 11 :: BLUE-RED ###
color_map_luts['idl11'] = \
(
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0156250, 0.0312500, 0.0468750,
0.0625000, 0.0781250, 0.0937500, 0.1093750, 0.1250000, 0.1406250,
0.1562500, 0.1718750, 0.1875000, 0.2031250, 0.2187500, 0.2343750,
0.2500000, 0.2656250, 0.2812500, 0.2968750, 0.3125000, 0.3320312,
0.3476562, 0.3632812, 0.3789062, 0.3945312, 0.4101562, 0.4257812,
0.4414062, 0.4570312, 0.4726562, 0.4882812, 0.5039062, 0.5195312,
0.5351562, 0.5507812, 0.5664062, 0.5820312, 0.5976562, 0.6132812,
0.6289062, 0.6445312, 0.6640625, 0.6796875, 0.6953125, 0.7109375,
0.7265625, 0.7421875, 0.7578125, 0.7734375, 0.7890625, 0.8046875,
0.8203125, 0.8359375, 0.8515625, 0.8671875, 0.8828125, 0.8984375,
0.9140625, 0.9296875, 0.9453125, 0.9609375, 0.9765625, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.0039062, 0.0078125, 0.0117188, 0.0156250, 0.0312500,
0.0468750, 0.0625000, 0.0820312, 0.0976562, 0.1132812, 0.1289062,
0.1484375, 0.1640625, 0.1796875, 0.1953125, 0.2148438, 0.2304688,
0.2460938, 0.2617188, 0.2812500, 0.2968750, 0.3125000, 0.3281250,
0.3476562, 0.3632812, 0.3789062, 0.3945312, 0.4140625, 0.4296875,
0.4453125, 0.4609375, 0.4804688, 0.4960938, 0.5117188, 0.5273438,
0.5468750, 0.5625000, 0.5781250, 0.5937500, 0.6132812, 0.6289062,
0.6445312, 0.6601562, 0.6796875, 0.6953125, 0.7109375, 0.7265625,
0.7460938, 0.7617188, 0.7773438, 0.7929688, 0.8125000, 0.8281250,
0.8437500, 0.8593750, 0.8789062, 0.8945312, 0.9101562, 0.9257812,
0.9453125, 0.9609375, 0.9765625, 0.9960938, 0.9960938, 0.9804688,
0.9648438, 0.9492188, 0.9335938, 0.9179688, 0.9023438, 0.8867188,
0.8710938, 0.8554688, 0.8398438, 0.8242188, 0.8085938, 0.7929688,
0.7773438, 0.7617188, 0.7460938, 0.7304688, 0.7148438, 0.6992188,
0.6835938, 0.6640625, 0.6484375, 0.6328125, 0.6171875, 0.6015625,
0.5859375, 0.5703125, 0.5546875, 0.5390625, 0.5234375, 0.5078125,
0.4921875, 0.4765625, 0.4609375, 0.4453125, 0.4296875, 0.4140625,
0.3984375, 0.3828125, 0.3671875, 0.3515625, 0.3320312, 0.3164062,
0.3007812, 0.2851562, 0.2695312, 0.2539062, 0.2382812, 0.2226562,
0.2070312, 0.1914062, 0.1757812, 0.1601562, 0.1445312, 0.1289062,
0.1132812, 0.0976562, 0.0820312, 0.0664062, 0.0507812, 0.0351562,
0.0195312, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 0.0000000, 0.0039062, 0.0078125, 0.0117188, 0.0156250, 0.0312500,
0.0468750, 0.0625000, 0.0820312, 0.0976562, 0.1132812, 0.1289062,
0.1484375, 0.1640625, 0.1796875, 0.1953125, 0.2148438, 0.2304688,
0.2460938, 0.2617188, 0.2812500, 0.2968750, 0.3125000, 0.3281250,
0.3476562, 0.3632812, 0.3789062, 0.3945312, 0.4140625, 0.4296875,
0.4453125, 0.4609375, 0.4804688, 0.4960938, 0.5117188, 0.5273438,
0.5468750, 0.5625000, 0.5781250, 0.5937500, 0.6132812, 0.6289062,
0.6445312, 0.6601562, 0.6796875, 0.6953125, 0.7109375, 0.7265625,
0.7460938, 0.7617188, 0.7773438, 0.7929688, 0.8125000, 0.8281250,
0.8437500, 0.8593750, 0.8789062, 0.8945312, 0.9101562, 0.9257812,
0.9453125, 0.9609375, 0.9765625, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9804688, 0.9648438, 0.9492188, 0.9335938, 0.9179688,
0.9023438, 0.8867188, 0.8710938, 0.8515625, 0.8359375, 0.8203125,
0.8046875, 0.7890625, 0.7734375, 0.7578125, 0.7421875, 0.7265625,
0.7070312, 0.6914062, 0.6757812, 0.6601562, 0.6445312, 0.6289062,
0.6132812, 0.5976562, 0.5820312, 0.5625000, 0.5468750, 0.5312500,
0.5156250, 0.5000000, 0.4843750, 0.4687500, 0.4531250, 0.4375000,
0.4179688, 0.4023438, 0.3867188, 0.3710938, 0.3554688, 0.3398438,
0.3242188, 0.3085938, 0.2929688, 0.2734375, 0.2578125, 0.2421875,
0.2265625, 0.2109375, 0.1953125, 0.1796875, 0.1640625, 0.1484375,
0.1289062, 0.1132812, 0.0976562, 0.0820312, 0.0664062, 0.0507812,
0.0351562, 0.0195312, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 12 :: 16 LEVEL ###
color_map_luts['idl12'] = \
(
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.5000000, 0.5000000,
0.5000000, 0.5000000, 0.5000000, 0.5000000, 0.5000000, 0.5000000,
0.5000000, 0.5000000, 0.5000000, 0.5000000, 0.5000000, 0.5000000,
0.5000000, 0.5000000, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.8593750, 0.8593750,
0.8593750, 0.8593750, 0.8593750, 0.8632812, 0.8632812, 0.8632812,
0.8632812, 0.8632812, 0.8671875, 0.8671875, 0.8671875, 0.8671875,
0.8671875, 0.8710938, 0.8593750, 0.8593750, 0.8593750, 0.8593750,
0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750,
0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.3281250, 0.3281250, 0.3281250, 0.3281250, 0.3281250,
0.3281250, 0.3281250, 0.3281250, 0.3281250, 0.3281250, 0.3281250,
0.3281250, 0.3281250, 0.3281250, 0.3281250, 0.6562500, 0.6562500,
0.6562500, 0.6562500, 0.6562500, 0.6562500, 0.6562500, 0.6562500,
0.6562500, 0.6562500, 0.6562500, 0.6562500, 0.6562500, 0.6562500,
0.6562500, 0.6562500, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.7421875, 0.7421875,
0.7421875, 0.7421875, 0.7421875, 0.7421875, 0.7421875, 0.7421875,
0.7421875, 0.7421875, 0.7421875, 0.7421875, 0.7421875, 0.7421875,
0.7421875, 0.7421875, 0.8593750, 0.8593750, 0.8593750, 0.8593750,
0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750,
0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.3281250, 0.3281250, 0.3281250, 0.3281250, 0.3281250, 0.3281250,
0.3281250, 0.3281250, 0.3281250, 0.3281250, 0.3281250, 0.3281250,
0.3281250, 0.3281250, 0.3281250, 0.3281250, 0.6562500, 0.6562500,
0.6562500, 0.6562500, 0.6562500, 0.6562500, 0.6562500, 0.6562500,
0.6562500, 0.6562500, 0.6562500, 0.6562500, 0.6562500, 0.6562500,
0.6562500, 0.6562500, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.8593750, 0.8593750, 0.8593750, 0.8593750,
0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750,
0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750,
0.7031250, 0.7031250, 0.7031250, 0.7031250, 0.7031250, 0.7031250,
0.7031250, 0.7031250, 0.7031250, 0.7031250, 0.7031250, 0.7031250,
0.7031250, 0.7031250, 0.7031250, 0.7031250, 0.5000000, 0.5000000,
0.5000000, 0.5000000, 0.5000000, 0.5000000, 0.5000000, 0.5000000,
0.5000000, 0.5000000, 0.5000000, 0.5000000, 0.5000000, 0.5000000,
0.5000000, 0.5000000, 0.2500000, 0.2500000, 0.2500000, 0.2500000,
0.2500000, 0.2500000, 0.2500000, 0.2500000, 0.2500000, 0.2500000,
0.2500000, 0.2500000, 0.2500000, 0.2500000, 0.2500000, 0.2500000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.7421875, 0.7421875,
0.7421875, 0.7421875, 0.7421875, 0.7421875, 0.7421875, 0.7421875,
0.7421875, 0.7421875, 0.7421875, 0.7421875, 0.7421875, 0.7421875,
0.7421875, 0.7421875, 0.8593750, 0.8593750, 0.8593750, 0.8593750,
0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750,
0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750, 0.8593750,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 13 :: RAINBOW ###
color_map_luts['idl13'] = \
(
array([ 0.0000000, 0.0156250, 0.0351562, 0.0507812, 0.0703125, 0.0859375,
0.1054688, 0.1210938, 0.1406250, 0.1562500, 0.1757812, 0.1953125,
0.2109375, 0.2265625, 0.2382812, 0.2500000, 0.2656250, 0.2695312,
0.2812500, 0.2890625, 0.3007812, 0.3085938, 0.3125000, 0.3203125,
0.3242188, 0.3320312, 0.3281250, 0.3359375, 0.3398438, 0.3437500,
0.3359375, 0.3398438, 0.3398438, 0.3398438, 0.3320312, 0.3281250,
0.3281250, 0.3281250, 0.3242188, 0.3085938, 0.3046875, 0.3007812,
0.2968750, 0.2773438, 0.2734375, 0.2656250, 0.2578125, 0.2343750,
0.2265625, 0.2148438, 0.2070312, 0.1796875, 0.1679688, 0.1562500,
0.1406250, 0.1289062, 0.0976562, 0.0820312, 0.0625000, 0.0468750,
0.0156250, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0156250, 0.0312500, 0.0468750,
0.0820312, 0.0976562, 0.1132812, 0.1289062, 0.1640625, 0.1796875,
0.1992188, 0.2148438, 0.2460938, 0.2617188, 0.2812500, 0.2968750,
0.3125000, 0.3476562, 0.3632812, 0.3789062, 0.3945312, 0.4296875,
0.4453125, 0.4648438, 0.4804688, 0.5117188, 0.5273438, 0.5468750,
0.5625000, 0.5976562, 0.6132812, 0.6289062, 0.6445312, 0.6601562,
0.6953125, 0.7109375, 0.7304688, 0.7460938, 0.7773438, 0.7929688,
0.8125000, 0.8281250, 0.8632812, 0.8789062, 0.8945312, 0.9101562,
0.9453125, 0.9609375, 0.9765625, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0156250, 0.0312500, 0.0625000, 0.0820312,
0.0976562, 0.1132812, 0.1484375, 0.1640625, 0.1796875, 0.1992188,
0.2148438, 0.2460938, 0.2617188, 0.2812500, 0.2968750, 0.3281250,
0.3476562, 0.3632812, 0.3789062, 0.4140625, 0.4296875, 0.4453125,
0.4648438, 0.4960938, 0.5117188, 0.5273438, 0.5468750, 0.5625000,
0.5937500, 0.6132812, 0.6289062, 0.6445312, 0.6796875, 0.6953125,
0.7109375, 0.7304688, 0.7617188, 0.7773438, 0.7929688, 0.8125000,
0.8437500, 0.8593750, 0.8789062, 0.8945312, 0.9101562, 0.9453125,
0.9609375, 0.9765625, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9765625, 0.9453125,
0.9296875, 0.9101562, 0.8945312, 0.8632812, 0.8437500, 0.8281250,
0.8125000, 0.7773438, 0.7617188, 0.7460938, 0.7304688, 0.6953125,
0.6796875, 0.6640625, 0.6445312, 0.6289062, 0.5976562, 0.5781250,
0.5625000, 0.5468750, 0.5117188, 0.4960938, 0.4804688, 0.4648438,
0.4296875, 0.4140625, 0.3984375, 0.3789062, 0.3476562, 0.3320312,
0.3125000, 0.2968750, 0.2812500, 0.2460938, 0.2304688, 0.2148438,
0.1992188, 0.1640625, 0.1484375, 0.1328125, 0.1132812, 0.0820312,
0.0664062, 0.0468750, 0.0312500, 0.0000000]),
array([ 0.0000000, 0.0117188, 0.0273438, 0.0390625, 0.0546875, 0.0742188,
0.0898438, 0.1093750, 0.1250000, 0.1484375, 0.1679688, 0.1875000,
0.2070312, 0.2304688, 0.2460938, 0.2656250, 0.2812500, 0.3007812,
0.3164062, 0.3359375, 0.3554688, 0.3710938, 0.3906250, 0.4062500,
0.4257812, 0.4414062, 0.4609375, 0.4765625, 0.4960938, 0.5156250,
0.5312500, 0.5507812, 0.5664062, 0.5859375, 0.6015625, 0.6210938,
0.6367188, 0.6562500, 0.6757812, 0.6914062, 0.7109375, 0.7265625,
0.7460938, 0.7617188, 0.7812500, 0.7968750, 0.8164062, 0.8359375,
0.8515625, 0.8710938, 0.8867188, 0.9062500, 0.9218750, 0.9414062,
0.9570312, 0.9765625, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9609375, 0.9453125, 0.9296875,
0.9101562, 0.8789062, 0.8593750, 0.8437500, 0.8281250, 0.7929688,
0.7773438, 0.7617188, 0.7460938, 0.7304688, 0.6953125, 0.6796875,
0.6640625, 0.6445312, 0.6132812, 0.5937500, 0.5781250, 0.5625000,
0.5273438, 0.5117188, 0.4960938, 0.4804688, 0.4453125, 0.4296875,
0.4140625, 0.3984375, 0.3789062, 0.3476562, 0.3281250, 0.3125000,
0.2968750, 0.2617188, 0.2460938, 0.2304688, 0.2148438, 0.1796875,
0.1640625, 0.1484375, 0.1328125, 0.0976562, 0.0820312, 0.0625000,
0.0468750, 0.0312500, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 14 :: STEPS ###
color_map_luts['idl14'] = \
(
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0273438,
0.0585938, 0.0898438, 0.1210938, 0.1523438, 0.1835938, 0.2148438,
0.2460938, 0.2734375, 0.3046875, 0.3359375, 0.3671875, 0.3984375,
0.4296875, 0.4609375, 0.4921875, 0.5234375, 0.5546875, 0.5898438,
0.6210938, 0.6562500, 0.6875000, 0.7187500, 0.7539062, 0.7851562,
0.8203125, 0.8515625, 0.8828125, 0.9179688, 0.9492188, 0.9843750,
0.0000000, 0.0039062, 0.0078125, 0.0117188, 0.0156250, 0.0195312,
0.0234375, 0.0273438, 0.0312500, 0.0351562, 0.0390625, 0.0429688,
0.0468750, 0.0546875, 0.0625000, 0.0703125, 0.0781250, 0.0898438,
0.0976562, 0.1054688, 0.1132812, 0.1250000, 0.1328125, 0.1406250,
0.1484375, 0.1601562, 0.1718750, 0.1835938, 0.1953125, 0.2070312,
0.2187500, 0.2304688, 0.2460938, 0.2578125, 0.2695312, 0.2812500,
0.2929688, 0.3046875, 0.3203125, 0.3320312, 0.3476562, 0.3632812,
0.3789062, 0.3945312, 0.4101562, 0.4218750, 0.4375000, 0.4531250,
0.4687500, 0.4843750, 0.5000000, 0.5117188, 0.5273438, 0.5429688,
0.5585938, 0.5742188, 0.5898438, 0.6054688, 0.6210938, 0.6367188,
0.6523438, 0.6679688, 0.6835938, 0.6953125, 0.7070312, 0.7226562,
0.7343750, 0.7500000, 0.7617188, 0.7734375, 0.7890625, 0.8007812,
0.8164062, 0.8281250, 0.8437500, 0.8515625, 0.8593750, 0.8710938,
0.8789062, 0.8867188, 0.8984375, 0.9062500, 0.9140625, 0.9257812,
0.9335938, 0.9414062, 0.9531250, 0.9531250, 0.9570312, 0.9609375,
0.9648438, 0.9648438, 0.9687500, 0.9726562, 0.9765625, 0.9765625,
0.9804688, 0.9843750, 0.9882812, 0.9921875, 0.9921875, 0.9921875,
0.9921875, 0.9921875, 0.9921875, 0.9921875, 0.9921875, 0.9921875,
0.9921875, 0.9921875, 0.9921875, 0.9921875, 0.9921875, 0.9921875,
0.9921875, 0.9921875, 0.9921875, 0.9921875, 0.9921875, 0.9921875,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.1640625, 0.3320312, 0.4960938, 0.6640625, 0.8281250,
0.9960938, 0.9609375, 0.9218750, 0.8828125, 0.8437500, 0.8046875,
0.7695312, 0.7304688, 0.6914062, 0.6523438, 0.6132812, 0.5781250,
0.5390625, 0.5000000, 0.4609375, 0.4218750, 0.3867188, 0.3476562,
0.3085938, 0.2695312, 0.2304688, 0.1953125, 0.1562500, 0.1171875,
0.0781250, 0.0390625, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0078125, 0.0078125, 0.0078125, 0.0078125,
0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125,
0.0078125, 0.0078125, 0.0078125, 0.0039062, 0.0039062, 0.0117188,
0.0195312, 0.0312500, 0.0390625, 0.0468750, 0.0585938, 0.0664062,
0.0742188, 0.0859375, 0.0937500, 0.1015625, 0.1132812, 0.1210938,
0.1289062, 0.1406250, 0.1406250, 0.1484375, 0.1562500, 0.1640625,
0.1757812, 0.1875000, 0.1992188, 0.2109375, 0.2265625, 0.2382812,
0.2500000, 0.2617188, 0.2734375, 0.2851562, 0.3007812, 0.3203125,
0.3398438, 0.3593750, 0.3750000, 0.3906250, 0.4062500, 0.4218750,
0.4414062, 0.4648438, 0.4882812, 0.5117188, 0.5390625, 0.5625000,
0.5898438, 0.6132812, 0.6406250, 0.6679688, 0.6953125, 0.7226562,
0.7539062, 0.7812500, 0.8125000, 0.8398438, 0.8710938, 0.8945312,
0.9179688, 0.9453125, 0.9687500, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0312500, 0.0625000, 0.0937500,
0.1250000, 0.1601562, 0.1914062, 0.2226562, 0.2539062, 0.2890625,
0.3203125, 0.3515625, 0.3828125, 0.4140625, 0.4492188, 0.4804688,
0.5117188, 0.5429688, 0.5781250, 0.6093750, 0.6406250, 0.6718750,
0.7031250, 0.7382812, 0.7695312, 0.8007812, 0.8320312, 0.8671875,
0.8984375, 0.9296875, 0.9609375, 0.9960938, 0.0000000, 0.0195312,
0.0390625, 0.0585938, 0.0820312, 0.1015625, 0.1210938, 0.1445312,
0.1640625, 0.1835938, 0.2070312, 0.2265625, 0.2460938, 0.2695312,
0.2890625, 0.3085938, 0.3320312, 0.3476562, 0.3671875, 0.3828125,
0.4023438, 0.4218750, 0.4375000, 0.4570312, 0.4726562, 0.4921875,
0.5117188, 0.5273438, 0.5468750, 0.5625000, 0.5820312, 0.6015625,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0078125, 0.0078125, 0.0078125, 0.0078125,
0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125,
0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125,
0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125,
0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125,
0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125,
0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125, 0.0078125,
0.0078125, 0.0078125, 0.0078125, 0.0117188, 0.0156250, 0.0195312,
0.0273438, 0.0351562, 0.0468750, 0.0546875, 0.0664062, 0.0781250,
0.0898438, 0.1054688, 0.1171875, 0.1328125, 0.1523438, 0.1718750,
0.1914062, 0.2148438, 0.2343750, 0.2539062, 0.2773438, 0.2968750,
0.3203125, 0.3476562, 0.3789062, 0.4062500, 0.4375000, 0.4687500,
0.5000000, 0.5312500, 0.5664062, 0.5976562, 0.6328125, 0.6679688,
0.7031250, 0.7382812, 0.7734375, 0.8085938, 0.8476562, 0.8750000,
0.9062500, 0.9335938, 0.9648438, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 15 :: STERN SPECIAL ###
color_map_luts['idl15'] = \
(
array([ 0.0000000, 0.0703125, 0.1406250, 0.2109375, 0.2812500, 0.3515625,
0.4218750, 0.4960938, 0.5664062, 0.6367188, 0.7070312, 0.7773438,
0.8476562, 0.9179688, 0.9921875, 0.9726562, 0.9531250, 0.9335938,
0.9140625, 0.8945312, 0.8710938, 0.8515625, 0.8320312, 0.8125000,
0.7929688, 0.7695312, 0.7500000, 0.7304688, 0.7109375, 0.6914062,
0.6718750, 0.6484375, 0.6289062, 0.6093750, 0.5898438, 0.5703125,
0.5468750, 0.5273438, 0.5078125, 0.4882812, 0.4687500, 0.4492188,
0.4257812, 0.4062500, 0.3867188, 0.3671875, 0.3476562, 0.3242188,
0.3046875, 0.2851562, 0.2656250, 0.2460938, 0.2265625, 0.2031250,
0.1835938, 0.1640625, 0.1445312, 0.1250000, 0.1015625, 0.0820312,
0.0625000, 0.0429688, 0.0234375, 0.0000000, 0.2500000, 0.2539062,
0.2578125, 0.2617188, 0.2656250, 0.2695312, 0.2734375, 0.2773438,
0.2812500, 0.2851562, 0.2890625, 0.2929688, 0.2968750, 0.3007812,
0.3046875, 0.3085938, 0.3125000, 0.3164062, 0.3203125, 0.3242188,
0.3281250, 0.3320312, 0.3359375, 0.3398438, 0.3437500, 0.3476562,
0.3515625, 0.3554688, 0.3593750, 0.3632812, 0.3671875, 0.3710938,
0.3750000, 0.3789062, 0.3828125, 0.3867188, 0.3906250, 0.3945312,
0.3984375, 0.4023438, 0.4062500, 0.4101562, 0.4140625, 0.4179688,
0.4218750, 0.4257812, 0.4296875, 0.4335938, 0.4375000, 0.4414062,
0.4453125, 0.4492188, 0.4531250, 0.4570312, 0.4609375, 0.4648438,
0.4687500, 0.4726562, 0.4765625, 0.4804688, 0.4843750, 0.4882812,
0.4921875, 0.4960938, 0.5000000, 0.5039062, 0.5078125, 0.5117188,
0.5156250, 0.5195312, 0.5234375, 0.5273438, 0.5312500, 0.5351562,
0.5390625, 0.5429688, 0.5468750, 0.5507812, 0.5546875, 0.5585938,
0.5625000, 0.5664062, 0.5703125, 0.5742188, 0.5781250, 0.5820312,
0.5859375, 0.5898438, 0.5937500, 0.5976562, 0.6015625, 0.6054688,
0.6093750, 0.6132812, 0.6171875, 0.6210938, 0.6250000, 0.6289062,
0.6328125, 0.6367188, 0.6406250, 0.6445312, 0.6484375, 0.6523438,
0.6562500, 0.6601562, 0.6640625, 0.6679688, 0.6718750, 0.6757812,
0.6796875, 0.6835938, 0.6875000, 0.6914062, 0.6953125, 0.6992188,
0.7031250, 0.7070312, 0.7109375, 0.7148438, 0.7187500, 0.7226562,
0.7265625, 0.7304688, 0.7343750, 0.7382812, 0.7421875, 0.7460938,
0.7500000, 0.7539062, 0.7578125, 0.7617188, 0.7656250, 0.7695312,
0.7734375, 0.7773438, 0.7812500, 0.7851562, 0.7890625, 0.7929688,
0.7968750, 0.8007812, 0.8046875, 0.8085938, 0.8125000, 0.8164062,
0.8203125, 0.8242188, 0.8281250, 0.8320312, 0.8359375, 0.8398438,
0.8437500, 0.8476562, 0.8515625, 0.8554688, 0.8593750, 0.8632812,
0.8671875, 0.8710938, 0.8750000, 0.8789062, 0.8828125, 0.8867188,
0.8906250, 0.8945312, 0.8984375, 0.9023438, 0.9062500, 0.9101562,
0.9140625, 0.9179688, 0.9218750, 0.9257812, 0.9296875, 0.9335938,
0.9375000, 0.9414062, 0.9453125, 0.9492188, 0.9531250, 0.9570312,
0.9609375, 0.9648438, 0.9687500, 0.9726562, 0.9765625, 0.9804688,
0.9843750, 0.9882812, 0.9921875, 0.9960938]),
array([ 0.0000000, 0.0039062, 0.0078125, 0.0117188, 0.0156250, 0.0195312,
0.0234375, 0.0273438, 0.0312500, 0.0351562, 0.0390625, 0.0429688,
0.0468750, 0.0507812, 0.0546875, 0.0585938, 0.0625000, 0.0664062,
0.0703125, 0.0742188, 0.0781250, 0.0820312, 0.0859375, 0.0898438,
0.0937500, 0.0976562, 0.1015625, 0.1054688, 0.1093750, 0.1132812,
0.1171875, 0.1210938, 0.1250000, 0.1289062, 0.1328125, 0.1367188,
0.1406250, 0.1445312, 0.1484375, 0.1523438, 0.1562500, 0.1601562,
0.1640625, 0.1679688, 0.1718750, 0.1757812, 0.1796875, 0.1835938,
0.1875000, 0.1914062, 0.1953125, 0.1992188, 0.2031250, 0.2070312,
0.2109375, 0.2148438, 0.2187500, 0.2226562, 0.2265625, 0.2304688,
0.2343750, 0.2382812, 0.2421875, 0.2460938, 0.2500000, 0.2539062,
0.2578125, 0.2617188, 0.2656250, 0.2695312, 0.2734375, 0.2773438,
0.2812500, 0.2851562, 0.2890625, 0.2929688, 0.2968750, 0.3007812,
0.3046875, 0.3085938, 0.3125000, 0.3164062, 0.3203125, 0.3242188,
0.3281250, 0.3320312, 0.3359375, 0.3398438, 0.3437500, 0.3476562,
0.3515625, 0.3554688, 0.3593750, 0.3632812, 0.3671875, 0.3710938,
0.3750000, 0.3789062, 0.3828125, 0.3867188, 0.3906250, 0.3945312,
0.3984375, 0.4023438, 0.4062500, 0.4101562, 0.4140625, 0.4179688,
0.4218750, 0.4257812, 0.4296875, 0.4335938, 0.4375000, 0.4414062,
0.4453125, 0.4492188, 0.4531250, 0.4570312, 0.4609375, 0.4648438,
0.4687500, 0.4726562, 0.4765625, 0.4804688, 0.4843750, 0.4882812,
0.4921875, 0.4960938, 0.5000000, 0.5039062, 0.5078125, 0.5117188,
0.5156250, 0.5195312, 0.5234375, 0.5273438, 0.5312500, 0.5351562,
0.5390625, 0.5429688, 0.5468750, 0.5507812, 0.5546875, 0.5585938,
0.5625000, 0.5664062, 0.5703125, 0.5742188, 0.5781250, 0.5820312,
0.5859375, 0.5898438, 0.5937500, 0.5976562, 0.6015625, 0.6054688,
0.6093750, 0.6132812, 0.6171875, 0.6210938, 0.6250000, 0.6289062,
0.6328125, 0.6367188, 0.6406250, 0.6445312, 0.6484375, 0.6523438,
0.6562500, 0.6601562, 0.6640625, 0.6679688, 0.6718750, 0.6757812,
0.6796875, 0.6835938, 0.6875000, 0.6914062, 0.6953125, 0.6992188,
0.7031250, 0.7070312, 0.7109375, 0.7148438, 0.7187500, 0.7226562,
0.7265625, 0.7304688, 0.7343750, 0.7382812, 0.7421875, 0.7460938,
0.7500000, 0.7539062, 0.7578125, 0.7617188, 0.7656250, 0.7695312,
0.7734375, 0.7773438, 0.7812500, 0.7851562, 0.7890625, 0.7929688,
0.7968750, 0.8007812, 0.8046875, 0.8085938, 0.8125000, 0.8164062,
0.8203125, 0.8242188, 0.8281250, 0.8320312, 0.8359375, 0.8398438,
0.8437500, 0.8476562, 0.8515625, 0.8554688, 0.8593750, 0.8632812,
0.8671875, 0.8710938, 0.8750000, 0.8789062, 0.8828125, 0.8867188,
0.8906250, 0.8945312, 0.8984375, 0.9023438, 0.9062500, 0.9101562,
0.9140625, 0.9179688, 0.9218750, 0.9257812, 0.9296875, 0.9335938,
0.9375000, 0.9414062, 0.9453125, 0.9492188, 0.9531250, 0.9570312,
0.9609375, 0.9648438, 0.9687500, 0.9726562, 0.9765625, 0.9804688,
0.9843750, 0.9882812, 0.9921875, 0.9960938]),
array([ 0.0000000, 0.0039062, 0.0117188, 0.0195312, 0.0273438, 0.0351562,
0.0429688, 0.0507812, 0.0585938, 0.0664062, 0.0742188, 0.0820312,
0.0898438, 0.0976562, 0.1054688, 0.1132812, 0.1210938, 0.1289062,
0.1367188, 0.1445312, 0.1523438, 0.1601562, 0.1679688, 0.1757812,
0.1835938, 0.1914062, 0.1992188, 0.2070312, 0.2148438, 0.2226562,
0.2304688, 0.2382812, 0.2460938, 0.2539062, 0.2617188, 0.2695312,
0.2773438, 0.2851562, 0.2929688, 0.3007812, 0.3085938, 0.3164062,
0.3242188, 0.3320312, 0.3398438, 0.3476562, 0.3554688, 0.3632812,
0.3710938, 0.3789062, 0.3867188, 0.3945312, 0.4023438, 0.4101562,
0.4179688, 0.4257812, 0.4335938, 0.4414062, 0.4492188, 0.4570312,
0.4648438, 0.4726562, 0.4804688, 0.4882812, 0.4960938, 0.5039062,
0.5117188, 0.5195312, 0.5273438, 0.5351562, 0.5429688, 0.5507812,
0.5585938, 0.5664062, 0.5742188, 0.5820312, 0.5898438, 0.5976562,
0.6054688, 0.6132812, 0.6210938, 0.6289062, 0.6367188, 0.6445312,
0.6523438, 0.6601562, 0.6679688, 0.6757812, 0.6835938, 0.6914062,
0.6992188, 0.7070312, 0.7148438, 0.7226562, 0.7304688, 0.7382812,
0.7460938, 0.7539062, 0.7617188, 0.7695312, 0.7773438, 0.7851562,
0.7929688, 0.8007812, 0.8085938, 0.8164062, 0.8242188, 0.8320312,
0.8398438, 0.8476562, 0.8554688, 0.8632812, 0.8710938, 0.8789062,
0.8867188, 0.8945312, 0.9023438, 0.9101562, 0.9179688, 0.9257812,
0.9335938, 0.9414062, 0.9492188, 0.9570312, 0.9648438, 0.9726562,
0.9804688, 0.9882812, 0.9960938, 0.9804688, 0.9648438, 0.9492188,
0.9296875, 0.9140625, 0.8984375, 0.8828125, 0.8632812, 0.8476562,
0.8320312, 0.8164062, 0.7968750, 0.7812500, 0.7656250, 0.7500000,
0.7304688, 0.7148438, 0.6992188, 0.6835938, 0.6640625, 0.6484375,
0.6328125, 0.6171875, 0.5976562, 0.5820312, 0.5664062, 0.5507812,
0.5312500, 0.5156250, 0.5000000, 0.4843750, 0.4648438, 0.4492188,
0.4335938, 0.4179688, 0.3984375, 0.3828125, 0.3671875, 0.3515625,
0.3320312, 0.3164062, 0.3007812, 0.2851562, 0.2656250, 0.2500000,
0.2343750, 0.2187500, 0.1992188, 0.1835938, 0.1679688, 0.1523438,
0.1328125, 0.1171875, 0.1015625, 0.0859375, 0.0664062, 0.0507812,
0.0351562, 0.0195312, 0.0000000, 0.0117188, 0.0273438, 0.0429688,
0.0585938, 0.0742188, 0.0859375, 0.1015625, 0.1171875, 0.1328125,
0.1484375, 0.1601562, 0.1757812, 0.1914062, 0.2070312, 0.2226562,
0.2343750, 0.2500000, 0.2656250, 0.2812500, 0.2968750, 0.3085938,
0.3242188, 0.3398438, 0.3554688, 0.3710938, 0.3828125, 0.3984375,
0.4140625, 0.4296875, 0.4453125, 0.4570312, 0.4726562, 0.4882812,
0.5039062, 0.5195312, 0.5351562, 0.5468750, 0.5625000, 0.5781250,
0.5937500, 0.6093750, 0.6210938, 0.6367188, 0.6523438, 0.6679688,
0.6835938, 0.6953125, 0.7109375, 0.7265625, 0.7421875, 0.7578125,
0.7695312, 0.7851562, 0.8007812, 0.8164062, 0.8320312, 0.8437500,
0.8593750, 0.8750000, 0.8906250, 0.9062500, 0.9179688, 0.9335938,
0.9492188, 0.9648438, 0.9804688, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 16 :: Haze ###
color_map_luts['idl16'] = \
(
array([ 0.6523438, 0.6523438, 0.9960938, 0.9921875, 0.9726562, 0.9648438,
0.9570312, 0.9492188, 0.9453125, 0.9375000, 0.9296875, 0.9218750,
0.9140625, 0.9062500, 0.8984375, 0.8906250, 0.8828125, 0.8750000,
0.8671875, 0.8593750, 0.8515625, 0.8437500, 0.8359375, 0.8281250,
0.8203125, 0.8125000, 0.8046875, 0.7968750, 0.7890625, 0.7812500,
0.7734375, 0.7656250, 0.7578125, 0.7500000, 0.7421875, 0.7343750,
0.7265625, 0.7187500, 0.7109375, 0.7031250, 0.6953125, 0.6875000,
0.6796875, 0.6718750, 0.6640625, 0.6562500, 0.6484375, 0.6406250,
0.6328125, 0.6250000, 0.6171875, 0.6093750, 0.6015625, 0.5937500,
0.5859375, 0.5781250, 0.5703125, 0.5625000, 0.5546875, 0.5507812,
0.5429688, 0.5351562, 0.5273438, 0.5195312, 0.5117188, 0.5039062,
0.4960938, 0.4882812, 0.4804688, 0.4726562, 0.4648438, 0.4570312,
0.4492188, 0.4414062, 0.4335938, 0.4257812, 0.4179688, 0.4101562,
0.4023438, 0.3945312, 0.3867188, 0.3789062, 0.3710938, 0.3632812,
0.3554688, 0.3476562, 0.3398438, 0.3320312, 0.3242188, 0.3164062,
0.3085938, 0.3007812, 0.2929688, 0.2851562, 0.2773438, 0.2695312,
0.2617188, 0.2539062, 0.2460938, 0.2382812, 0.2304688, 0.2226562,
0.2148438, 0.2070312, 0.1992188, 0.1914062, 0.1835938, 0.1757812,
0.1679688, 0.1601562, 0.1562500, 0.1484375, 0.1406250, 0.1328125,
0.1250000, 0.1171875, 0.1093750, 0.1015625, 0.0937500, 0.0859375,
0.0781250, 0.0703125, 0.0625000, 0.0546875, 0.0468750, 0.0507812,
0.0312500, 0.0234375, 0.0156250, 0.0156250, 0.0234375, 0.0273438,
0.0351562, 0.0429688, 0.0507812, 0.0585938, 0.0664062, 0.0742188,
0.0820312, 0.0898438, 0.0976562, 0.1054688, 0.1132812, 0.1210938,
0.1289062, 0.1367188, 0.1445312, 0.1523438, 0.1601562, 0.1679688,
0.1757812, 0.1835938, 0.1914062, 0.1992188, 0.2070312, 0.2148438,
0.2226562, 0.2304688, 0.2382812, 0.2460938, 0.2539062, 0.2617188,
0.2695312, 0.2773438, 0.2851562, 0.2929688, 0.3007812, 0.3085938,
0.3164062, 0.3242188, 0.3320312, 0.3398438, 0.3476562, 0.3554688,
0.3632812, 0.3710938, 0.3789062, 0.3867188, 0.3945312, 0.4023438,
0.4101562, 0.4179688, 0.4218750, 0.4296875, 0.4375000, 0.4453125,
0.4531250, 0.4609375, 0.4687500, 0.4765625, 0.4843750, 0.4921875,
0.5000000, 0.5078125, 0.5156250, 0.5234375, 0.5312500, 0.5390625,
0.5468750, 0.5546875, 0.5625000, 0.5703125, 0.5781250, 0.5859375,
0.5937500, 0.6015625, 0.6093750, 0.6171875, 0.6250000, 0.6328125,
0.6406250, 0.6484375, 0.6562500, 0.6640625, 0.6718750, 0.6796875,
0.6875000, 0.6953125, 0.7031250, 0.7109375, 0.7187500, 0.7265625,
0.7343750, 0.7421875, 0.7500000, 0.7578125, 0.7656250, 0.7734375,
0.7812500, 0.7890625, 0.7968750, 0.8046875, 0.8125000, 0.8203125,
0.8242188, 0.8320312, 0.8398438, 0.8476562, 0.8554688, 0.8632812,
0.8710938, 0.8789062, 0.8867188, 0.8945312, 0.9023438, 0.9101562,
0.9179688, 0.9257812, 0.9335938, 0.9414062, 0.9492188, 0.9570312,
0.9648438, 0.9726562, 0.9804688, 0.9804688]),
array([ 0.4375000, 0.4375000, 0.8320312, 0.8281250, 0.8203125, 0.8164062,
0.8125000, 0.8046875, 0.8007812, 0.7929688, 0.7890625, 0.7812500,
0.7773438, 0.7734375, 0.7656250, 0.7617188, 0.7539062, 0.7500000,
0.7460938, 0.7382812, 0.7343750, 0.7265625, 0.7226562, 0.7148438,
0.7109375, 0.7070312, 0.6992188, 0.6953125, 0.6875000, 0.6835938,
0.6796875, 0.6718750, 0.6679688, 0.6601562, 0.6562500, 0.6484375,
0.6445312, 0.6406250, 0.6328125, 0.6289062, 0.6210938, 0.6171875,
0.6132812, 0.6054688, 0.6015625, 0.5937500, 0.5898438, 0.5859375,
0.5781250, 0.5742188, 0.5664062, 0.5625000, 0.5546875, 0.5507812,
0.5468750, 0.5390625, 0.5351562, 0.5273438, 0.5234375, 0.5195312,
0.5117188, 0.5078125, 0.5000000, 0.4960938, 0.4882812, 0.4843750,
0.4804688, 0.4726562, 0.4687500, 0.4609375, 0.4570312, 0.4531250,
0.4453125, 0.4414062, 0.4335938, 0.4296875, 0.4257812, 0.4179688,
0.4140625, 0.4062500, 0.4023438, 0.3945312, 0.3906250, 0.3867188,
0.3789062, 0.3750000, 0.3671875, 0.3632812, 0.3593750, 0.3515625,
0.3476562, 0.3398438, 0.3359375, 0.3281250, 0.3242188, 0.3203125,
0.3125000, 0.3085938, 0.3007812, 0.2968750, 0.2929688, 0.2851562,
0.2812500, 0.2734375, 0.2695312, 0.2656250, 0.2578125, 0.2539062,
0.2460938, 0.2421875, 0.2343750, 0.2304688, 0.2265625, 0.2187500,
0.2148438, 0.2070312, 0.2031250, 0.1992188, 0.1914062, 0.1875000,
0.1796875, 0.1757812, 0.1679688, 0.1640625, 0.1601562, 0.1523438,
0.1484375, 0.1406250, 0.1367188, 0.1328125, 0.1250000, 0.1210938,
0.1250000, 0.1289062, 0.1328125, 0.1406250, 0.1445312, 0.1484375,
0.1562500, 0.1601562, 0.1640625, 0.1718750, 0.1757812, 0.1796875,
0.1875000, 0.1914062, 0.1953125, 0.2031250, 0.2070312, 0.2109375,
0.2187500, 0.2226562, 0.2265625, 0.2343750, 0.2382812, 0.2421875,
0.2500000, 0.2539062, 0.2578125, 0.2656250, 0.2695312, 0.2734375,
0.2812500, 0.2851562, 0.2929688, 0.2968750, 0.3007812, 0.3085938,
0.3125000, 0.3164062, 0.3242188, 0.3281250, 0.3320312, 0.3398438,
0.3437500, 0.3476562, 0.3554688, 0.3593750, 0.3632812, 0.3710938,
0.3750000, 0.3789062, 0.3867188, 0.3906250, 0.3945312, 0.4023438,
0.4062500, 0.4101562, 0.4179688, 0.4218750, 0.4257812, 0.4335938,
0.4375000, 0.4414062, 0.4492188, 0.4531250, 0.4570312, 0.4648438,
0.4687500, 0.4726562, 0.4804688, 0.4843750, 0.4882812, 0.4960938,
0.5000000, 0.5039062, 0.5117188, 0.5156250, 0.5195312, 0.5273438,
0.5312500, 0.5351562, 0.5429688, 0.5468750, 0.5507812, 0.5585938,
0.5625000, 0.5664062, 0.5742188, 0.5781250, 0.5820312, 0.5898438,
0.5937500, 0.5976562, 0.6054688, 0.6093750, 0.6132812, 0.6210938,
0.6250000, 0.6289062, 0.6367188, 0.6406250, 0.6445312, 0.6523438,
0.6562500, 0.6601562, 0.6679688, 0.6718750, 0.6757812, 0.6835938,
0.6875000, 0.6914062, 0.6992188, 0.7031250, 0.7070312, 0.7148438,
0.7187500, 0.7226562, 0.7304688, 0.7343750, 0.7382812, 0.7460938,
0.7500000, 0.7539062, 0.7617188, 0.7617188]),
array([ 0.9960938, 0.9960938, 0.9921875, 0.9804688, 0.9765625, 0.9726562,
0.9687500, 0.9648438, 0.9609375, 0.9570312, 0.9531250, 0.9492188,
0.9453125, 0.9414062, 0.9375000, 0.9335938, 0.9296875, 0.9257812,
0.9218750, 0.9179688, 0.9140625, 0.9101562, 0.9062500, 0.9023438,
0.8984375, 0.8945312, 0.8906250, 0.8867188, 0.8828125, 0.8789062,
0.8750000, 0.8710938, 0.8671875, 0.8632812, 0.8593750, 0.8554688,
0.8515625, 0.8476562, 0.8437500, 0.8398438, 0.8359375, 0.8320312,
0.8281250, 0.8242188, 0.8203125, 0.8164062, 0.8125000, 0.8085938,
0.8046875, 0.8007812, 0.7968750, 0.7929688, 0.7890625, 0.7851562,
0.7812500, 0.7773438, 0.7734375, 0.7695312, 0.7656250, 0.7617188,
0.7578125, 0.7539062, 0.7500000, 0.7460938, 0.7421875, 0.7382812,
0.7343750, 0.7304688, 0.7265625, 0.7226562, 0.7187500, 0.7148438,
0.7109375, 0.7070312, 0.7031250, 0.6992188, 0.6953125, 0.6914062,
0.6875000, 0.6835938, 0.6796875, 0.6757812, 0.6718750, 0.6679688,
0.6640625, 0.6601562, 0.6562500, 0.6523438, 0.6484375, 0.6445312,
0.6406250, 0.6367188, 0.6328125, 0.6289062, 0.6250000, 0.6210938,
0.6171875, 0.6132812, 0.6093750, 0.6054688, 0.6015625, 0.5976562,
0.5937500, 0.5898438, 0.5859375, 0.5820312, 0.5781250, 0.5742188,
0.5703125, 0.5664062, 0.5625000, 0.5585938, 0.5546875, 0.5507812,
0.5468750, 0.5429688, 0.5390625, 0.5351562, 0.5312500, 0.5273438,
0.5234375, 0.5195312, 0.5156250, 0.5117188, 0.5078125, 0.5039062,
0.5000000, 0.4960938, 0.4921875, 0.4882812, 0.4843750, 0.4804688,
0.4765625, 0.4726562, 0.4687500, 0.4648438, 0.4609375, 0.4570312,
0.4531250, 0.4492188, 0.4453125, 0.4414062, 0.4375000, 0.4335938,
0.4296875, 0.4257812, 0.4218750, 0.4179688, 0.4140625, 0.4101562,
0.4062500, 0.4023438, 0.3984375, 0.3945312, 0.3906250, 0.3867188,
0.3828125, 0.3789062, 0.3750000, 0.3710938, 0.3671875, 0.3632812,
0.3593750, 0.3554688, 0.3515625, 0.3476562, 0.3437500, 0.3398438,
0.3359375, 0.3320312, 0.3281250, 0.3242188, 0.3203125, 0.3164062,
0.3125000, 0.3085938, 0.3046875, 0.3007812, 0.2968750, 0.2929688,
0.2890625, 0.2851562, 0.2812500, 0.2773438, 0.2734375, 0.2695312,
0.2656250, 0.2617188, 0.2578125, 0.2539062, 0.2500000, 0.2460938,
0.2421875, 0.2382812, 0.2343750, 0.2304688, 0.2265625, 0.2226562,
0.2187500, 0.2148438, 0.2109375, 0.2070312, 0.2031250, 0.1992188,
0.1953125, 0.1914062, 0.1875000, 0.1835938, 0.1796875, 0.1757812,
0.1718750, 0.1679688, 0.1640625, 0.1601562, 0.1562500, 0.1523438,
0.1484375, 0.1445312, 0.1406250, 0.1367188, 0.1328125, 0.1289062,
0.1250000, 0.1210938, 0.1171875, 0.1132812, 0.1093750, 0.1054688,
0.1015625, 0.0976562, 0.0937500, 0.0898438, 0.0859375, 0.0820312,
0.0781250, 0.0742188, 0.0703125, 0.0664062, 0.0625000, 0.0585938,
0.0546875, 0.0507812, 0.0468750, 0.0429688, 0.0507812, 0.0351562,
0.0312500, 0.0273438, 0.0234375, 0.0195312, 0.0156250, 0.0117188,
0.0078125, 0.0039062, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 17 :: Blue - Pastel - Red ###
color_map_luts['idl17'] = \
(
array([ 0.1289062, 0.1289062, 0.1250000, 0.1210938, 0.1210938, 0.1171875,
0.1132812, 0.1093750, 0.1054688, 0.1015625, 0.0976562, 0.0937500,
0.0898438, 0.0859375, 0.0820312, 0.0781250, 0.0742188, 0.0664062,
0.0625000, 0.0585938, 0.0546875, 0.0468750, 0.0429688, 0.0507812,
0.0312500, 0.0273438, 0.0195312, 0.0156250, 0.0078125, 0.0039062,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0078125, 0.0156250, 0.0195312, 0.0273438, 0.0312500, 0.0507812,
0.0429688, 0.0507812, 0.0546875, 0.0585938, 0.0664062, 0.0703125,
0.0742188, 0.0781250, 0.0820312, 0.1132812, 0.1406250, 0.1640625,
0.1875000, 0.2070312, 0.2265625, 0.2382812, 0.2539062, 0.2656250,
0.2734375, 0.2812500, 0.2851562, 0.2890625, 0.2890625, 0.2890625,
0.2929688, 0.2929688, 0.2968750, 0.2968750, 0.2968750, 0.3007812,
0.2968750, 0.3007812, 0.3046875, 0.3085938, 0.3125000, 0.3164062,
0.3242188, 0.3281250, 0.3320312, 0.3359375, 0.3437500, 0.3476562,
0.3554688, 0.3593750, 0.3554688, 0.3671875, 0.3750000, 0.3828125,
0.3906250, 0.3984375, 0.4062500, 0.4140625, 0.4218750, 0.4257812,
0.4335938, 0.4375000, 0.4414062, 0.4492188, 0.4531250, 0.4570312,
0.4648438, 0.4687500, 0.4726562, 0.4804688, 0.4843750, 0.4882812,
0.4960938, 0.5000000, 0.5039062, 0.5117188, 0.5156250, 0.5195312,
0.5273438, 0.5312500, 0.5351562, 0.5390625, 0.5468750, 0.5507812,
0.5546875, 0.5625000, 0.5664062, 0.5703125, 0.5781250, 0.5820312,
0.5859375, 0.5937500, 0.5976562, 0.6015625, 0.6093750, 0.6132812,
0.6171875, 0.6250000, 0.6289062, 0.6328125, 0.6406250, 0.6445312,
0.6484375, 0.6562500, 0.6601562, 0.6640625, 0.6718750, 0.6757812,
0.6796875, 0.6835938, 0.6914062, 0.6953125, 0.6992188, 0.7070312,
0.7109375, 0.7148438, 0.7226562, 0.7265625, 0.7304688, 0.7382812,
0.7421875, 0.7460938, 0.7539062, 0.7539062]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0039062, 0.0117188, 0.0195312, 0.0234375, 0.0312500,
0.0507812, 0.0468750, 0.0507812, 0.0585938, 0.0664062, 0.0742188,
0.0820312, 0.0898438, 0.0976562, 0.1054688, 0.1132812, 0.1210938,
0.1289062, 0.1367188, 0.1445312, 0.1523438, 0.1640625, 0.1718750,
0.1796875, 0.1914062, 0.1992188, 0.2070312, 0.2187500, 0.2265625,
0.2343750, 0.2460938, 0.2539062, 0.2656250, 0.2773438, 0.2851562,
0.2968750, 0.3046875, 0.3164062, 0.3281250, 0.3398438, 0.3476562,
0.3593750, 0.3710938, 0.3828125, 0.3945312, 0.4062500, 0.4179688,
0.4296875, 0.4414062, 0.4531250, 0.4648438, 0.4765625, 0.4882812,
0.5000000, 0.5117188, 0.5234375, 0.5390625, 0.5507812, 0.5625000,
0.5781250, 0.5898438, 0.6015625, 0.6171875, 0.6289062, 0.6445312,
0.6562500, 0.6718750, 0.6835938, 0.6992188, 0.7109375, 0.7265625,
0.7421875, 0.7539062, 0.7695312, 0.7851562, 0.8007812, 0.8164062,
0.8281250, 0.8437500, 0.8593750, 0.8750000, 0.8906250, 0.9062500,
0.9140625, 0.9179688, 0.9218750, 0.9296875, 0.9335938, 0.9375000,
0.9414062, 0.9492188, 0.9531250, 0.9570312, 0.9609375, 0.9648438,
0.9726562, 0.9726562, 0.9609375, 0.9531250, 0.9414062, 0.9257812,
0.9062500, 0.8867188, 0.8710938, 0.8515625, 0.8359375, 0.8164062,
0.8007812, 0.7851562, 0.7656250, 0.7500000, 0.7343750, 0.7187500,
0.7031250, 0.6835938, 0.6679688, 0.6523438, 0.6367188, 0.6250000,
0.6093750, 0.5937500, 0.5781250, 0.5625000, 0.5507812, 0.5351562,
0.5195312, 0.5078125, 0.4921875, 0.4804688, 0.4648438, 0.4531250,
0.4531250, 0.4492188, 0.4414062, 0.4375000, 0.4296875, 0.4257812,
0.4062500, 0.4062500, 0.4023438, 0.3984375, 0.3945312, 0.3906250,
0.3867188, 0.3828125, 0.3789062, 0.3750000, 0.3710938, 0.3671875,
0.3632812, 0.3593750, 0.3437500, 0.3437500, 0.3437500, 0.3398438,
0.3359375, 0.3320312, 0.3320312, 0.3281250, 0.3242188, 0.3203125,
0.3125000, 0.3085938, 0.3046875, 0.2968750, 0.2929688, 0.2890625,
0.2851562, 0.2773438, 0.2734375, 0.2695312, 0.2656250, 0.2617188,
0.2578125, 0.2500000, 0.2460938, 0.2382812, 0.2265625, 0.2187500,
0.2109375, 0.2031250, 0.1914062, 0.1835938, 0.1757812, 0.1679688,
0.1601562, 0.1562500, 0.1484375, 0.1406250, 0.1328125, 0.1289062,
0.1210938, 0.1132812, 0.1093750, 0.1015625, 0.0976562, 0.0898438,
0.0859375, 0.0820312, 0.0742188, 0.0703125, 0.0664062, 0.0625000,
0.0546875, 0.0507812, 0.0468750, 0.0429688, 0.0507812, 0.0351562,
0.0312500, 0.0273438, 0.0273438, 0.0234375, 0.0195312, 0.0156250,
0.0156250, 0.0117188, 0.0078125, 0.0078125, 0.0039062, 0.0039062,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 0.3750000, 0.3750000, 0.3789062, 0.3867188, 0.3906250, 0.3945312,
0.3984375, 0.4062500, 0.4101562, 0.4140625, 0.4179688, 0.4218750,
0.4296875, 0.4335938, 0.4375000, 0.4414062, 0.4492188, 0.4531250,
0.4570312, 0.4609375, 0.4648438, 0.4726562, 0.4765625, 0.4804688,
0.4843750, 0.4882812, 0.4960938, 0.5000000, 0.5039062, 0.5078125,
0.5156250, 0.5195312, 0.5234375, 0.5273438, 0.5312500, 0.5390625,
0.5429688, 0.5468750, 0.5507812, 0.5585938, 0.5625000, 0.5664062,
0.5703125, 0.5742188, 0.5820312, 0.5859375, 0.5898438, 0.5937500,
0.6015625, 0.6054688, 0.6093750, 0.6132812, 0.6171875, 0.6250000,
0.6289062, 0.6328125, 0.6367188, 0.6406250, 0.6484375, 0.6523438,
0.6562500, 0.6601562, 0.6679688, 0.6718750, 0.6757812, 0.6796875,
0.6835938, 0.6914062, 0.6953125, 0.6992188, 0.7031250, 0.7109375,
0.7148438, 0.7187500, 0.7226562, 0.7265625, 0.7343750, 0.7382812,
0.7421875, 0.7460938, 0.7539062, 0.7578125, 0.7617188, 0.7656250,
0.7695312, 0.7773438, 0.7812500, 0.7851562, 0.7890625, 0.7929688,
0.8007812, 0.8046875, 0.8085938, 0.8125000, 0.8203125, 0.8242188,
0.8281250, 0.8320312, 0.8359375, 0.8437500, 0.8476562, 0.8515625,
0.8554688, 0.8632812, 0.8671875, 0.8710938, 0.8750000, 0.8789062,
0.8867188, 0.8906250, 0.8945312, 0.8984375, 0.9062500, 0.9101562,
0.9062500, 0.8984375, 0.8945312, 0.8867188, 0.8789062, 0.8710938,
0.8671875, 0.8593750, 0.8515625, 0.8437500, 0.8359375, 0.8281250,
0.8203125, 0.8125000, 0.5820312, 0.5546875, 0.5273438, 0.4960938,
0.4609375, 0.4335938, 0.4023438, 0.3710938, 0.3437500, 0.3164062,
0.2890625, 0.2617188, 0.2343750, 0.2070312, 0.1835938, 0.1562500,
0.1328125, 0.1093750, 0.0859375, 0.0859375, 0.0898438, 0.0937500,
0.0976562, 0.1015625, 0.1054688, 0.1093750, 0.1093750, 0.1132812,
0.1171875, 0.1171875, 0.1210938, 0.1210938, 0.1250000, 0.1250000,
0.1132812, 0.1093750, 0.1015625, 0.0976562, 0.0898438, 0.0859375,
0.0781250, 0.0703125, 0.0664062, 0.0625000, 0.0585938, 0.0546875,
0.0507812, 0.0468750, 0.0429688, 0.0507812, 0.0351562, 0.0312500,
0.0273438, 0.0234375, 0.0195312, 0.0195312, 0.0156250, 0.0117188,
0.0117188, 0.0078125, 0.0039062, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 18 :: Pastels ###
color_map_luts['idl18'] = \
(
array([ 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9882812,
0.9804688, 0.9726562, 0.9648438, 0.9570312, 0.9492188, 0.9414062,
0.9335938, 0.9257812, 0.9179688, 0.9101562, 0.9023438, 0.8945312,
0.8867188, 0.8789062, 0.8710938, 0.8632812, 0.8554688, 0.8476562,
0.8437500, 0.8359375, 0.8281250, 0.8203125, 0.8125000, 0.8046875,
0.7968750, 0.7890625, 0.7812500, 0.7734375, 0.7656250, 0.7578125,
0.7500000, 0.7421875, 0.7343750, 0.7265625, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0078125, 0.0312500, 0.0507812,
0.0742188, 0.0976562, 0.1171875, 0.1406250, 0.1640625, 0.1875000,
0.2070312, 0.2304688, 0.2539062, 0.2773438, 0.2968750, 0.3203125,
0.3437500, 0.3632812, 0.3867188, 0.4101562, 0.4335938, 0.4531250,
0.4765625, 0.5000000, 0.5195312, 0.5429688, 0.5664062, 0.5898438,
0.6093750, 0.6328125, 0.6562500, 0.6757812, 0.6992188, 0.7226562,
0.7460938, 0.7656250, 0.7890625, 0.8125000, 0.8359375, 0.8554688,
0.8789062, 0.9023438, 0.9218750, 0.9453125, 0.9687500, 0.9921875,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.5468750, 0.5703125,
0.5937500, 0.6132812, 0.6367188, 0.6601562, 0.6796875, 0.7031250,
0.7265625, 0.7500000, 0.7695312, 0.7929688, 0.8164062, 0.8359375,
0.8593750, 0.8828125, 0.9062500, 0.9257812, 0.9492188, 0.9726562,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9765625, 0.9531250, 0.9296875, 0.9101562, 0.8867188, 0.8632812,
0.8398438, 0.8203125, 0.7968750, 0.7734375, 0.7539062, 0.7304688,
0.7070312, 0.6835938, 0.6640625, 0.6640625]),
array([ 0.2812500, 0.2812500, 0.2890625, 0.2968750, 0.3046875, 0.3125000,
0.3203125, 0.3281250, 0.3359375, 0.3437500, 0.3515625, 0.3554688,
0.3632812, 0.3710938, 0.3789062, 0.3867188, 0.3945312, 0.4023438,
0.4101562, 0.4179688, 0.4257812, 0.4335938, 0.4414062, 0.4492188,
0.4570312, 0.4648438, 0.4726562, 0.4804688, 0.4882812, 0.4960938,
0.5039062, 0.5117188, 0.5195312, 0.5273438, 0.5351562, 0.5429688,
0.5507812, 0.5546875, 0.5625000, 0.5703125, 0.5781250, 0.5859375,
0.5937500, 0.6015625, 0.6093750, 0.6171875, 0.6250000, 0.6328125,
0.6406250, 0.6484375, 0.6562500, 0.6640625, 0.6718750, 0.6796875,
0.6875000, 0.6953125, 0.7031250, 0.7109375, 0.7187500, 0.7265625,
0.7343750, 0.7421875, 0.7460938, 0.7539062, 0.7617188, 0.7695312,
0.7773438, 0.7851562, 0.7929688, 0.8007812, 0.8085938, 0.8164062,
0.8242188, 0.8320312, 0.8398438, 0.8476562, 0.8554688, 0.8632812,
0.8710938, 0.8789062, 0.8867188, 0.8945312, 0.9023438, 0.9101562,
0.9179688, 0.9257812, 0.9335938, 0.9414062, 0.9453125, 0.9531250,
0.9609375, 0.9687500, 0.9765625, 0.9843750, 0.9921875, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9726562, 0.9492188, 0.9257812, 0.9062500, 0.8828125,
0.8593750, 0.8359375, 0.8164062, 0.7929688, 0.7695312, 0.7500000,
0.7265625, 0.7031250, 0.6796875, 0.6601562, 0.6367188, 0.6132812,
0.5937500, 0.5703125, 0.5468750, 0.5234375, 0.5039062, 0.4804688,
0.4570312, 0.4375000, 0.4140625, 0.3906250, 0.3671875, 0.3476562,
0.3242188, 0.3007812, 0.2773438, 0.2578125, 0.2343750, 0.2109375,
0.1914062, 0.1679688, 0.1445312, 0.1210938, 0.1015625, 0.0781250,
0.0546875, 0.0351562, 0.0117188, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 19 :: Hue Sat Lightness 1 ###
color_map_luts['idl19'] = \
(
array([ 0.9804688, 0.9804688, 0.9804688, 0.9804688, 0.9843750, 0.9843750,
0.9882812, 0.9843750, 0.9843750, 0.9804688, 0.9804688, 0.9765625,
0.9765625, 0.9726562, 0.9726562, 0.9726562, 0.9687500, 0.9687500,
0.9648438, 0.9648438, 0.9609375, 0.9609375, 0.9609375, 0.9570312,
0.9570312, 0.9531250, 0.9531250, 0.9492188, 0.9492188, 0.9492188,
0.9453125, 0.9453125, 0.9414062, 0.9414062, 0.9414062, 0.9375000,
0.9375000, 0.9375000, 0.9335938, 0.9335938, 0.9335938, 0.9296875,
0.9296875, 0.9257812, 0.9179688, 0.8984375, 0.8828125, 0.8671875,
0.8476562, 0.8320312, 0.8164062, 0.8007812, 0.7851562, 0.7695312,
0.7578125, 0.7421875, 0.7265625, 0.7148438, 0.6992188, 0.6875000,
0.6757812, 0.6601562, 0.6484375, 0.6367188, 0.6250000, 0.6132812,
0.6015625, 0.5898438, 0.5781250, 0.5664062, 0.5585938, 0.5468750,
0.5351562, 0.5273438, 0.5195312, 0.5078125, 0.5000000, 0.4921875,
0.4843750, 0.4765625, 0.4687500, 0.4609375, 0.4531250, 0.4453125,
0.4375000, 0.4335938, 0.4257812, 0.4257812, 0.4296875, 0.4335938,
0.4414062, 0.4453125, 0.4492188, 0.4531250, 0.4570312, 0.4609375,
0.4648438, 0.4726562, 0.4765625, 0.4804688, 0.4882812, 0.4882812,
0.4921875, 0.4960938, 0.5000000, 0.5039062, 0.5117188, 0.5156250,
0.5195312, 0.5273438, 0.5312500, 0.5351562, 0.5390625, 0.5429688,
0.5468750, 0.5468750, 0.5507812, 0.5546875, 0.5625000, 0.5664062,
0.5703125, 0.5742188, 0.5781250, 0.5820312, 0.5859375, 0.5898438,
0.5937500, 0.5976562, 0.6015625, 0.6054688, 0.6093750, 0.6132812,
0.6171875, 0.6210938, 0.6250000, 0.6289062, 0.6328125, 0.6367188,
0.6406250, 0.6445312, 0.6484375, 0.6523438, 0.6562500, 0.6601562,
0.6640625, 0.6679688, 0.6679688, 0.6718750, 0.6796875, 0.6796875,
0.6835938, 0.6875000, 0.6914062, 0.6953125, 0.6992188, 0.7031250,
0.7070312, 0.7109375, 0.7148438, 0.7187500, 0.7226562, 0.7226562,
0.7265625, 0.7304688, 0.7343750, 0.7382812, 0.7421875, 0.7421875,
0.7460938, 0.7500000, 0.7539062, 0.7578125, 0.7617188, 0.7656250,
0.7695312, 0.7773438, 0.7812500, 0.7890625, 0.7929688, 0.7968750,
0.8046875, 0.8085938, 0.8125000, 0.8203125, 0.8242188, 0.8281250,
0.8320312, 0.8359375, 0.8398438, 0.8437500, 0.8476562, 0.8515625,
0.8554688, 0.8593750, 0.8593750, 0.8632812, 0.8671875, 0.8710938,
0.8750000, 0.8789062, 0.8828125, 0.8828125, 0.8867188, 0.8906250,
0.8906250, 0.8945312, 0.8984375, 0.8984375, 0.9023438, 0.9062500,
0.9062500, 0.9101562, 0.9101562, 0.9140625, 0.9179688, 0.9179688,
0.9179688, 0.9218750, 0.9218750, 0.9218750, 0.9257812, 0.9257812,
0.9257812, 0.9296875, 0.9296875, 0.9335938, 0.9335938, 0.9335938,
0.9375000, 0.9375000, 0.9375000, 0.9414062, 0.9453125, 0.9453125,
0.9453125, 0.9453125, 0.9492188, 0.9492188, 0.9531250, 0.9531250,
0.9531250, 0.9570312, 0.9570312, 0.9609375, 0.9609375, 0.9609375,
0.9648438, 0.9648438, 0.9687500, 0.9687500, 0.9726562, 0.9726562,
0.9765625, 0.9765625, 0.9804688, 0.9804688]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0039062, 0.0039062, 0.0078125,
0.0078125, 0.0156250, 0.0195312, 0.0273438, 0.0312500, 0.0273438,
0.0351562, 0.0507812, 0.0312500, 0.0585938, 0.0664062, 0.0703125,
0.0781250, 0.0820312, 0.0898438, 0.0937500, 0.1015625, 0.1054688,
0.1093750, 0.1171875, 0.1210938, 0.1289062, 0.1328125, 0.1367188,
0.1445312, 0.1484375, 0.1562500, 0.1601562, 0.1640625, 0.1718750,
0.1757812, 0.1796875, 0.1875000, 0.1914062, 0.1953125, 0.2031250,
0.2070312, 0.2148438, 0.2187500, 0.2226562, 0.2304688, 0.2343750,
0.2382812, 0.2460938, 0.2500000, 0.2539062, 0.2578125, 0.2656250,
0.2695312, 0.2734375, 0.2812500, 0.2851562, 0.2890625, 0.2968750,
0.3007812, 0.3046875, 0.3085938, 0.3164062, 0.3203125, 0.3242188,
0.3281250, 0.3320312, 0.3359375, 0.3398438, 0.3437500, 0.3515625,
0.3554688, 0.3593750, 0.3632812, 0.3710938, 0.3750000, 0.3789062,
0.3828125, 0.3867188, 0.3945312, 0.3984375, 0.4023438, 0.4062500,
0.4101562, 0.4179688, 0.4218750, 0.4296875, 0.4453125, 0.4609375,
0.4765625, 0.4882812, 0.5039062, 0.5156250, 0.5312500, 0.5429688,
0.5585938, 0.5703125, 0.5820312, 0.5937500, 0.6093750, 0.6171875,
0.6289062, 0.6406250, 0.6523438, 0.6640625, 0.6757812, 0.6835938,
0.6953125, 0.7070312, 0.7187500, 0.7265625, 0.7343750, 0.7460938,
0.7539062, 0.7617188, 0.7695312, 0.7773438, 0.7851562, 0.7929688,
0.8007812, 0.8085938, 0.8164062, 0.8242188, 0.8320312, 0.8398438,
0.8437500, 0.8515625, 0.8593750, 0.8632812, 0.8671875, 0.8671875,
0.8671875, 0.8671875, 0.8671875, 0.8671875, 0.8671875, 0.8671875,
0.8671875, 0.8671875, 0.8671875, 0.8671875, 0.8671875, 0.8671875,
0.8671875, 0.8671875, 0.8710938, 0.8710938, 0.8710938, 0.8710938,
0.8710938, 0.8710938, 0.8710938, 0.8710938, 0.8710938, 0.8710938,
0.8710938, 0.8710938, 0.8710938, 0.8750000, 0.8750000, 0.8750000,
0.8750000, 0.8750000, 0.8750000, 0.8750000, 0.8750000, 0.8789062,
0.8789062, 0.8789062, 0.8789062, 0.8789062, 0.8789062, 0.8789062,
0.8828125, 0.8828125, 0.8828125, 0.8828125, 0.8828125, 0.8828125,
0.8867188, 0.8867188, 0.8867188, 0.8867188, 0.8867188, 0.8906250,
0.8906250, 0.8906250, 0.8906250, 0.8906250, 0.8945312, 0.8945312,
0.8945312, 0.8945312, 0.8945312, 0.8945312, 0.8984375, 0.8984375,
0.8984375, 0.8984375, 0.9023438, 0.9023438, 0.9062500, 0.9062500,
0.9062500, 0.9062500, 0.9062500, 0.9101562, 0.9101562, 0.9101562,
0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9179688, 0.9179688,
0.9179688, 0.9218750, 0.9218750, 0.9218750, 0.9218750, 0.9218750,
0.9257812, 0.9257812, 0.9257812, 0.9257812, 0.9296875, 0.9296875,
0.9296875, 0.9335938, 0.9335938, 0.9335938, 0.9375000, 0.9375000,
0.9414062, 0.9414062, 0.9453125, 0.9453125, 0.9453125, 0.9492188,
0.9492188, 0.9531250, 0.9531250, 0.9570312, 0.9570312, 0.9609375,
0.9609375, 0.9648438, 0.9648438, 0.9687500, 0.9687500, 0.9726562,
0.9726562, 0.9765625, 0.9765625, 0.9765625]),
array([ 0.0117188, 0.0117188, 0.0351562, 0.0585938, 0.0859375, 0.1093750,
0.1328125, 0.1601562, 0.1875000, 0.2148438, 0.2421875, 0.2578125,
0.2851562, 0.3164062, 0.3281250, 0.3671875, 0.3906250, 0.4140625,
0.4375000, 0.4609375, 0.4843750, 0.5078125, 0.5273438, 0.5507812,
0.5742188, 0.5937500, 0.6132812, 0.6328125, 0.6562500, 0.6757812,
0.6953125, 0.7148438, 0.7304688, 0.7500000, 0.7695312, 0.7851562,
0.8046875, 0.8203125, 0.8398438, 0.8554688, 0.8710938, 0.8867188,
0.9023438, 0.9179688, 0.9257812, 0.9257812, 0.9218750, 0.9218750,
0.9218750, 0.9179688, 0.9179688, 0.9179688, 0.9179688, 0.9140625,
0.9140625, 0.9140625, 0.9101562, 0.9101562, 0.9101562, 0.9062500,
0.9062500, 0.9062500, 0.9062500, 0.9023438, 0.9023438, 0.9023438,
0.8984375, 0.8984375, 0.8984375, 0.8984375, 0.8984375, 0.8945312,
0.8945312, 0.8945312, 0.8945312, 0.8906250, 0.8906250, 0.8906250,
0.8906250, 0.8906250, 0.8867188, 0.8867188, 0.8867188, 0.8867188,
0.8867188, 0.8828125, 0.8828125, 0.8828125, 0.8828125, 0.8828125,
0.8789062, 0.8789062, 0.8789062, 0.8789062, 0.8789062, 0.8789062,
0.8789062, 0.8750000, 0.8750000, 0.8750000, 0.8750000, 0.8750000,
0.8750000, 0.8750000, 0.8750000, 0.8750000, 0.8710938, 0.8710938,
0.8710938, 0.8710938, 0.8710938, 0.8710938, 0.8710938, 0.8710938,
0.8710938, 0.8710938, 0.8710938, 0.8710938, 0.8671875, 0.8671875,
0.8671875, 0.8671875, 0.8671875, 0.8671875, 0.8671875, 0.8671875,
0.8671875, 0.8671875, 0.8671875, 0.8671875, 0.8632812, 0.8593750,
0.8515625, 0.8476562, 0.8437500, 0.8359375, 0.8320312, 0.8281250,
0.8242188, 0.8203125, 0.8125000, 0.8085938, 0.8046875, 0.8046875,
0.8007812, 0.7968750, 0.7929688, 0.7890625, 0.7890625, 0.7851562,
0.7812500, 0.7812500, 0.7773438, 0.7734375, 0.7734375, 0.7695312,
0.7695312, 0.7695312, 0.7656250, 0.7695312, 0.7656250, 0.7656250,
0.7617188, 0.7617188, 0.7617188, 0.7617188, 0.7617188, 0.7617188,
0.7617188, 0.7617188, 0.7617188, 0.7617188, 0.7617188, 0.7656250,
0.7656250, 0.7695312, 0.7734375, 0.7773438, 0.7812500, 0.7851562,
0.7851562, 0.7890625, 0.7929688, 0.7968750, 0.8007812, 0.8007812,
0.8046875, 0.8085938, 0.8125000, 0.8164062, 0.8164062, 0.8203125,
0.8242188, 0.8281250, 0.8281250, 0.8320312, 0.8320312, 0.8359375,
0.8398438, 0.8437500, 0.8437500, 0.8476562, 0.8515625, 0.8515625,
0.8554688, 0.8593750, 0.8632812, 0.8632812, 0.8671875, 0.8710938,
0.8710938, 0.8750000, 0.8789062, 0.8828125, 0.8828125, 0.8867188,
0.8906250, 0.8906250, 0.8945312, 0.8984375, 0.8984375, 0.9023438,
0.9062500, 0.9062500, 0.9101562, 0.9101562, 0.9140625, 0.9179688,
0.9179688, 0.9218750, 0.9257812, 0.9257812, 0.9296875, 0.9296875,
0.9335938, 0.9375000, 0.9375000, 0.9414062, 0.9414062, 0.9453125,
0.9492188, 0.9492188, 0.9531250, 0.9531250, 0.9570312, 0.9609375,
0.9609375, 0.9648438, 0.9648438, 0.9687500, 0.9687500, 0.9726562,
0.9726562, 0.9765625, 0.9765625, 0.9765625]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 20 :: Hue Sat Lightness 2 ###
color_map_luts['idl20'] = \
(
array([ 0.9882812, 0.9882812, 0.9804688, 0.9765625, 0.9765625, 0.9726562,
0.9726562, 0.9687500, 0.9687500, 0.9648438, 0.9648438, 0.9609375,
0.9609375, 0.9609375, 0.9570312, 0.9570312, 0.9531250, 0.9531250,
0.9531250, 0.9492188, 0.9492188, 0.9453125, 0.9453125, 0.9453125,
0.9414062, 0.9414062, 0.9375000, 0.9375000, 0.9375000, 0.9335938,
0.9335938, 0.9335938, 0.9296875, 0.9296875, 0.9296875, 0.9257812,
0.9257812, 0.9218750, 0.9218750, 0.9218750, 0.9179688, 0.9179688,
0.9179688, 0.9179688, 0.9140625, 0.9101562, 0.9101562, 0.9062500,
0.9062500, 0.9023438, 0.9023438, 0.8984375, 0.8945312, 0.8945312,
0.8906250, 0.8867188, 0.8828125, 0.8828125, 0.8789062, 0.8750000,
0.8710938, 0.8710938, 0.8671875, 0.8632812, 0.8593750, 0.8554688,
0.8515625, 0.8476562, 0.8437500, 0.8398438, 0.8359375, 0.8320312,
0.8281250, 0.8242188, 0.8203125, 0.8125000, 0.8085938, 0.8046875,
0.8007812, 0.7968750, 0.7890625, 0.7812500, 0.7773438, 0.7734375,
0.7656250, 0.7617188, 0.7578125, 0.7500000, 0.7500000, 0.7460938,
0.7460938, 0.7421875, 0.7382812, 0.7343750, 0.7304688, 0.7226562,
0.7226562, 0.7187500, 0.7148438, 0.7148438, 0.7109375, 0.7070312,
0.7031250, 0.6992188, 0.6953125, 0.6914062, 0.6875000, 0.6835938,
0.6796875, 0.6757812, 0.6718750, 0.6718750, 0.6679688, 0.6640625,
0.6601562, 0.6562500, 0.6523438, 0.6484375, 0.6445312, 0.6445312,
0.6406250, 0.6367188, 0.6328125, 0.6289062, 0.6250000, 0.6210938,
0.6171875, 0.6132812, 0.6093750, 0.6054688, 0.6015625, 0.5976562,
0.5937500, 0.5898438, 0.5820312, 0.5781250, 0.5742188, 0.5703125,
0.5664062, 0.5625000, 0.5585938, 0.5546875, 0.5468750, 0.5429688,
0.5390625, 0.5390625, 0.5351562, 0.5312500, 0.5273438, 0.5234375,
0.5156250, 0.5117188, 0.5078125, 0.5039062, 0.5000000, 0.4960938,
0.4921875, 0.4882812, 0.4843750, 0.4765625, 0.4726562, 0.4687500,
0.4648438, 0.4609375, 0.4609375, 0.4531250, 0.4453125, 0.4414062,
0.4375000, 0.4335938, 0.4335938, 0.4257812, 0.4218750, 0.4257812,
0.4335938, 0.4453125, 0.4492188, 0.4570312, 0.4609375, 0.4687500,
0.4804688, 0.4882812, 0.4960938, 0.5039062, 0.5117188, 0.5234375,
0.5351562, 0.5429688, 0.5507812, 0.5625000, 0.5742188, 0.5859375,
0.5937500, 0.6054688, 0.6171875, 0.6289062, 0.6406250, 0.6523438,
0.6679688, 0.6796875, 0.6914062, 0.7070312, 0.7187500, 0.7343750,
0.7500000, 0.7617188, 0.7773438, 0.7929688, 0.8085938, 0.8242188,
0.8437500, 0.8593750, 0.8750000, 0.8906250, 0.9101562, 0.9257812,
0.9296875, 0.9335938, 0.9335938, 0.9375000, 0.9375000, 0.9375000,
0.9414062, 0.9414062, 0.9414062, 0.9453125, 0.9453125, 0.9492188,
0.9492188, 0.9492188, 0.9531250, 0.9531250, 0.9570312, 0.9570312,
0.9570312, 0.9609375, 0.9609375, 0.9648438, 0.9648438, 0.9648438,
0.9687500, 0.9687500, 0.9726562, 0.9726562, 0.9765625, 0.9765625,
0.9804688, 0.9804688, 0.9843750, 0.9843750, 0.9882812, 0.9882812,
0.9921875, 0.9921875, 0.9921875, 0.9921875]),
array([ 0.9843750, 0.9843750, 0.9765625, 0.9765625, 0.9726562, 0.9726562,
0.9687500, 0.9687500, 0.9648438, 0.9648438, 0.9609375, 0.9609375,
0.9570312, 0.9570312, 0.9531250, 0.9531250, 0.9492188, 0.9453125,
0.9453125, 0.9414062, 0.9414062, 0.9375000, 0.9335938, 0.9335938,
0.9296875, 0.9296875, 0.9257812, 0.9218750, 0.9218750, 0.9179688,
0.9179688, 0.9140625, 0.9101562, 0.9101562, 0.9062500, 0.9062500,
0.9023438, 0.8984375, 0.8984375, 0.8945312, 0.8906250, 0.8906250,
0.8867188, 0.8828125, 0.8828125, 0.8789062, 0.8750000, 0.8710938,
0.8710938, 0.8671875, 0.8632812, 0.8632812, 0.8593750, 0.8554688,
0.8515625, 0.8515625, 0.8476562, 0.8476562, 0.8437500, 0.8398438,
0.8359375, 0.8359375, 0.8320312, 0.8281250, 0.8242188, 0.8242188,
0.8164062, 0.8164062, 0.8125000, 0.8125000, 0.8046875, 0.8046875,
0.8007812, 0.8007812, 0.7968750, 0.7890625, 0.7890625, 0.7851562,
0.7851562, 0.7812500, 0.7773438, 0.7695312, 0.7695312, 0.7656250,
0.7656250, 0.7617188, 0.7617188, 0.7578125, 0.7578125, 0.7578125,
0.7578125, 0.7578125, 0.7578125, 0.7578125, 0.7617188, 0.7578125,
0.7617188, 0.7617188, 0.7617188, 0.7656250, 0.7656250, 0.7656250,
0.7695312, 0.7695312, 0.7734375, 0.7734375, 0.7773438, 0.7773438,
0.7812500, 0.7812500, 0.7851562, 0.7890625, 0.7929688, 0.7968750,
0.7968750, 0.8007812, 0.8046875, 0.8085938, 0.8125000, 0.8203125,
0.8242188, 0.8281250, 0.8320312, 0.8398438, 0.8437500, 0.8476562,
0.8554688, 0.8593750, 0.8671875, 0.8671875, 0.8671875, 0.8671875,
0.8671875, 0.8671875, 0.8710938, 0.8710938, 0.8710938, 0.8710938,
0.8710938, 0.8710938, 0.8710938, 0.8710938, 0.8710938, 0.8710938,
0.8710938, 0.8710938, 0.8710938, 0.8710938, 0.8710938, 0.8710938,
0.8750000, 0.8750000, 0.8750000, 0.8750000, 0.8750000, 0.8750000,
0.8750000, 0.8750000, 0.8750000, 0.8789062, 0.8789062, 0.8789062,
0.8789062, 0.8789062, 0.8789062, 0.8789062, 0.8828125, 0.8828125,
0.8828125, 0.8828125, 0.8828125, 0.8867188, 0.8867188, 0.8867188,
0.8867188, 0.8867188, 0.8867188, 0.8906250, 0.8906250, 0.8906250,
0.8906250, 0.8945312, 0.8945312, 0.8945312, 0.8945312, 0.8945312,
0.8984375, 0.8984375, 0.8984375, 0.8984375, 0.9023438, 0.9023438,
0.9023438, 0.9023438, 0.9062500, 0.9062500, 0.9062500, 0.9062500,
0.9101562, 0.9101562, 0.9101562, 0.9140625, 0.9140625, 0.9140625,
0.9140625, 0.9179688, 0.9179688, 0.9179688, 0.9218750, 0.9218750,
0.9218750, 0.9257812, 0.9257812, 0.9257812, 0.9296875, 0.9296875,
0.9179688, 0.9023438, 0.8867188, 0.8710938, 0.8515625, 0.8359375,
0.8203125, 0.8007812, 0.7851562, 0.7656250, 0.7460938, 0.7304688,
0.7109375, 0.6914062, 0.6718750, 0.6523438, 0.6328125, 0.6132812,
0.5898438, 0.5703125, 0.5468750, 0.5273438, 0.5039062, 0.4804688,
0.4570312, 0.4335938, 0.4140625, 0.3867188, 0.3632812, 0.3320312,
0.3046875, 0.2890625, 0.2617188, 0.2382812, 0.2109375, 0.1835938,
0.1562500, 0.1289062, 0.1054688, 0.1054688]),
array([ 0.9843750, 0.9843750, 0.9765625, 0.9765625, 0.9726562, 0.9726562,
0.9687500, 0.9687500, 0.9648438, 0.9648438, 0.9609375, 0.9609375,
0.9570312, 0.9570312, 0.9531250, 0.9531250, 0.9492188, 0.9492188,
0.9492188, 0.9453125, 0.9453125, 0.9414062, 0.9414062, 0.9414062,
0.9375000, 0.9375000, 0.9335938, 0.9335938, 0.9335938, 0.9296875,
0.9296875, 0.9296875, 0.9257812, 0.9257812, 0.9257812, 0.9257812,
0.9218750, 0.9218750, 0.9218750, 0.9218750, 0.9179688, 0.9179688,
0.9179688, 0.9179688, 0.9140625, 0.9140625, 0.9140625, 0.9140625,
0.9101562, 0.9101562, 0.9101562, 0.9062500, 0.9062500, 0.9062500,
0.9062500, 0.9023438, 0.9023438, 0.9023438, 0.8984375, 0.8984375,
0.8984375, 0.8984375, 0.8945312, 0.8945312, 0.8945312, 0.8945312,
0.8945312, 0.8906250, 0.8906250, 0.8906250, 0.8906250, 0.8867188,
0.8867188, 0.8867188, 0.8867188, 0.8867188, 0.8828125, 0.8828125,
0.8828125, 0.8828125, 0.8828125, 0.8828125, 0.8789062, 0.8828125,
0.8789062, 0.8789062, 0.8789062, 0.8789062, 0.8750000, 0.8789062,
0.8750000, 0.8750000, 0.8750000, 0.8750000, 0.8750000, 0.8750000,
0.8750000, 0.8750000, 0.8750000, 0.8710938, 0.8710938, 0.8710938,
0.8710938, 0.8710938, 0.8710938, 0.8710938, 0.8710938, 0.8710938,
0.8710938, 0.8710938, 0.8710938, 0.8671875, 0.8671875, 0.8671875,
0.8671875, 0.8671875, 0.8671875, 0.8671875, 0.8671875, 0.8671875,
0.8671875, 0.8671875, 0.8671875, 0.8671875, 0.8671875, 0.8671875,
0.8671875, 0.8671875, 0.8671875, 0.8671875, 0.8593750, 0.8515625,
0.8476562, 0.8398438, 0.8320312, 0.8242188, 0.8203125, 0.8125000,
0.8046875, 0.7968750, 0.7890625, 0.7812500, 0.7695312, 0.7617188,
0.7539062, 0.7460938, 0.7343750, 0.7265625, 0.7148438, 0.7070312,
0.6953125, 0.6875000, 0.6757812, 0.6640625, 0.6562500, 0.6445312,
0.6328125, 0.6210938, 0.6093750, 0.5976562, 0.5859375, 0.5703125,
0.5585938, 0.5468750, 0.5351562, 0.5195312, 0.5039062, 0.4921875,
0.4765625, 0.4609375, 0.4531250, 0.4375000, 0.4179688, 0.4140625,
0.4101562, 0.4101562, 0.4062500, 0.3984375, 0.3906250, 0.3867188,
0.3867188, 0.3789062, 0.3750000, 0.3671875, 0.3632812, 0.3632812,
0.3554688, 0.3515625, 0.3437500, 0.3437500, 0.3359375, 0.3320312,
0.3242188, 0.3242188, 0.3164062, 0.3125000, 0.3046875, 0.3046875,
0.2968750, 0.2929688, 0.2851562, 0.2812500, 0.2773438, 0.2734375,
0.2695312, 0.2617188, 0.2578125, 0.2539062, 0.2460938, 0.2421875,
0.2421875, 0.2304688, 0.2265625, 0.2265625, 0.2148438, 0.2109375,
0.2109375, 0.1992188, 0.1953125, 0.1914062, 0.1835938, 0.1796875,
0.1757812, 0.1679688, 0.1640625, 0.1601562, 0.1523438, 0.1484375,
0.1406250, 0.1367188, 0.1328125, 0.1250000, 0.1210938, 0.1171875,
0.1093750, 0.1054688, 0.0976562, 0.0937500, 0.0898438, 0.0859375,
0.0781250, 0.0703125, 0.0664062, 0.0585938, 0.0546875, 0.0507812,
0.0312500, 0.0507812, 0.0312500, 0.0273438, 0.0195312, 0.0156250,
0.0078125, 0.0039062, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 21 :: Hue Sat Value 1 ###
color_map_luts['idl21'] = \
(
array([ 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9843750, 0.9648438, 0.9453125, 0.9257812,
0.9101562, 0.8906250, 0.8710938, 0.8554688, 0.8359375, 0.8203125,
0.8007812, 0.7851562, 0.7656250, 0.7500000, 0.7343750, 0.7187500,
0.6992188, 0.6835938, 0.6679688, 0.6523438, 0.6367188, 0.6210938,
0.6054688, 0.5898438, 0.5742188, 0.5625000, 0.5468750, 0.5312500,
0.5195312, 0.5039062, 0.4882812, 0.4765625, 0.4609375, 0.4492188,
0.4375000, 0.4218750, 0.4101562, 0.3984375, 0.3867188, 0.3710938,
0.3593750, 0.3476562, 0.3359375, 0.3320312, 0.3359375, 0.3398438,
0.3437500, 0.3476562, 0.3515625, 0.3554688, 0.3593750, 0.3632812,
0.3671875, 0.3710938, 0.3750000, 0.3789062, 0.3828125, 0.3867188,
0.3906250, 0.3945312, 0.3984375, 0.4023438, 0.4062500, 0.4101562,
0.4140625, 0.4179688, 0.4218750, 0.4257812, 0.4296875, 0.4335938,
0.4375000, 0.4414062, 0.4453125, 0.4492188, 0.4531250, 0.4570312,
0.4609375, 0.4648438, 0.4687500, 0.4726562, 0.4765625, 0.4804688,
0.4843750, 0.4882812, 0.4921875, 0.4960938, 0.5000000, 0.5039062,
0.5078125, 0.5117188, 0.5156250, 0.5195312, 0.5234375, 0.5273438,
0.5312500, 0.5351562, 0.5390625, 0.5429688, 0.5468750, 0.5507812,
0.5546875, 0.5585938, 0.5625000, 0.5664062, 0.5703125, 0.5742188,
0.5781250, 0.5820312, 0.5859375, 0.5898438, 0.5937500, 0.5976562,
0.6015625, 0.6054688, 0.6093750, 0.6132812, 0.6171875, 0.6210938,
0.6250000, 0.6289062, 0.6328125, 0.6367188, 0.6406250, 0.6445312,
0.6484375, 0.6523438, 0.6562500, 0.6601562, 0.6640625, 0.6718750,
0.6835938, 0.6914062, 0.7031250, 0.7148438, 0.7265625, 0.7343750,
0.7460938, 0.7578125, 0.7656250, 0.7773438, 0.7851562, 0.7929688,
0.8046875, 0.8125000, 0.8203125, 0.8320312, 0.8398438, 0.8476562,
0.8554688, 0.8632812, 0.8710938, 0.8789062, 0.8867188, 0.8945312,
0.8984375, 0.9062500, 0.9140625, 0.9218750, 0.9257812, 0.9335938,
0.9375000, 0.9453125, 0.9492188, 0.9570312, 0.9609375, 0.9648438,
0.9687500, 0.9765625, 0.9804688, 0.9843750, 0.9882812, 0.9921875,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0039062, 0.0078125, 0.0117188, 0.0156250,
0.0195312, 0.0234375, 0.0273438, 0.0312500, 0.0351562, 0.0507812,
0.0429688, 0.0468750, 0.0507812, 0.0546875, 0.0585938, 0.0625000,
0.0664062, 0.0703125, 0.0742188, 0.0781250, 0.0820312, 0.0859375,
0.0898438, 0.0937500, 0.0976562, 0.1015625, 0.1054688, 0.1093750,
0.1132812, 0.1171875, 0.1210938, 0.1250000, 0.1289062, 0.1328125,
0.1367188, 0.1406250, 0.1445312, 0.1484375, 0.1523438, 0.1562500,
0.1601562, 0.1640625, 0.1679688, 0.1718750, 0.1757812, 0.1796875,
0.1835938, 0.1875000, 0.1914062, 0.1953125, 0.1992188, 0.2031250,
0.2070312, 0.2109375, 0.2148438, 0.2187500, 0.2226562, 0.2265625,
0.2304688, 0.2343750, 0.2382812, 0.2421875, 0.2460938, 0.2500000,
0.2500000, 0.2539062, 0.2578125, 0.2617188, 0.2656250, 0.2695312,
0.2734375, 0.2773438, 0.2812500, 0.2851562, 0.2890625, 0.2929688,
0.2968750, 0.3007812, 0.3046875, 0.3085938, 0.3125000, 0.3164062,
0.3203125, 0.3242188, 0.3281250, 0.3398438, 0.3593750, 0.3789062,
0.3984375, 0.4179688, 0.4335938, 0.4531250, 0.4726562, 0.4882812,
0.5078125, 0.5234375, 0.5429688, 0.5585938, 0.5742188, 0.5937500,
0.6093750, 0.6250000, 0.6406250, 0.6562500, 0.6718750, 0.6875000,
0.7031250, 0.7187500, 0.7343750, 0.7500000, 0.7656250, 0.7773438,
0.7929688, 0.8085938, 0.8203125, 0.8359375, 0.8476562, 0.8632812,
0.8750000, 0.8906250, 0.9023438, 0.9140625, 0.9296875, 0.9414062,
0.9531250, 0.9648438, 0.9765625, 0.9882812, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9921875, 0.9882812, 0.9843750, 0.9804688, 0.9804688, 0.9765625,
0.9726562, 0.9726562, 0.9687500, 0.9648438, 0.9648438, 0.9609375,
0.9609375, 0.9609375, 0.9570312, 0.9570312, 0.9570312, 0.9570312,
0.9531250, 0.9531250, 0.9531250, 0.9531250, 0.9531250, 0.9531250,
0.9570312, 0.9570312, 0.9570312, 0.9570312, 0.9609375, 0.9609375,
0.9609375, 0.9648438, 0.9648438, 0.9687500, 0.9726562, 0.9726562,
0.9765625, 0.9804688, 0.9804688, 0.9804688]),
array([ 0.0117188, 0.0117188, 0.0507812, 0.0664062, 0.0898438, 0.1171875,
0.1445312, 0.1718750, 0.1953125, 0.2226562, 0.2460938, 0.2734375,
0.2968750, 0.3203125, 0.3476562, 0.3710938, 0.3945312, 0.4179688,
0.4453125, 0.4687500, 0.4921875, 0.5156250, 0.5390625, 0.5625000,
0.5820312, 0.6054688, 0.6289062, 0.6523438, 0.6718750, 0.6953125,
0.7187500, 0.7382812, 0.7617188, 0.7812500, 0.8007812, 0.8242188,
0.8437500, 0.8632812, 0.8867188, 0.9062500, 0.9257812, 0.9453125,
0.9648438, 0.9843750, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9882812, 0.9765625,
0.9648438, 0.9531250, 0.9453125, 0.9335938, 0.9218750, 0.9140625,
0.9023438, 0.8945312, 0.8828125, 0.8750000, 0.8632812, 0.8554688,
0.8476562, 0.8359375, 0.8281250, 0.8203125, 0.8125000, 0.8046875,
0.7968750, 0.7890625, 0.7812500, 0.7734375, 0.7656250, 0.7578125,
0.7500000, 0.7460938, 0.7382812, 0.7304688, 0.7265625, 0.7187500,
0.7148438, 0.7070312, 0.7031250, 0.6992188, 0.6914062, 0.6875000,
0.6835938, 0.6796875, 0.6757812, 0.6718750, 0.6679688, 0.6679688,
0.6718750, 0.6757812, 0.6796875, 0.6835938, 0.6875000, 0.6914062,
0.6953125, 0.6992188, 0.7031250, 0.7070312, 0.7109375, 0.7148438,
0.7187500, 0.7226562, 0.7265625, 0.7304688, 0.7343750, 0.7382812,
0.7421875, 0.7460938, 0.7460938, 0.7500000, 0.7539062, 0.7578125,
0.7617188, 0.7656250, 0.7695312, 0.7734375, 0.7773438, 0.7812500,
0.7851562, 0.7890625, 0.7929688, 0.7968750, 0.8007812, 0.8046875,
0.8085938, 0.8125000, 0.8164062, 0.8203125, 0.8242188, 0.8281250,
0.8320312, 0.8359375, 0.8398438, 0.8437500, 0.8476562, 0.8515625,
0.8554688, 0.8593750, 0.8632812, 0.8671875, 0.8710938, 0.8750000,
0.8789062, 0.8828125, 0.8867188, 0.8906250, 0.8945312, 0.8984375,
0.9023438, 0.9062500, 0.9101562, 0.9140625, 0.9179688, 0.9218750,
0.9257812, 0.9296875, 0.9335938, 0.9375000, 0.9414062, 0.9453125,
0.9492188, 0.9531250, 0.9570312, 0.9609375, 0.9648438, 0.9687500,
0.9726562, 0.9765625, 0.9804688, 0.9804688]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 22 :: Hue Sat Value 2 ###
color_map_luts['idl22'] = \
(
array([ 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9921875, 0.9882812, 0.9843750, 0.9804688,
0.9726562, 0.9687500, 0.9648438, 0.9609375, 0.9531250, 0.9492188,
0.9414062, 0.9375000, 0.9296875, 0.9257812, 0.9179688, 0.9101562,
0.9023438, 0.8984375, 0.8906250, 0.8828125, 0.8750000, 0.8671875,
0.8593750, 0.8515625, 0.8437500, 0.8320312, 0.8242188, 0.8164062,
0.8085938, 0.7968750, 0.7890625, 0.7773438, 0.7695312, 0.7578125,
0.7500000, 0.7382812, 0.7304688, 0.7187500, 0.7070312, 0.6953125,
0.6835938, 0.6718750, 0.6640625, 0.6562500, 0.6523438, 0.6484375,
0.6445312, 0.6406250, 0.6367188, 0.6328125, 0.6289062, 0.6250000,
0.6210938, 0.6171875, 0.6132812, 0.6093750, 0.6054688, 0.6015625,
0.5976562, 0.5937500, 0.5898438, 0.5859375, 0.5820312, 0.5781250,
0.5742188, 0.5703125, 0.5664062, 0.5625000, 0.5585938, 0.5546875,
0.5507812, 0.5468750, 0.5429688, 0.5390625, 0.5351562, 0.5312500,
0.5273438, 0.5234375, 0.5195312, 0.5156250, 0.5117188, 0.5078125,
0.5039062, 0.5000000, 0.4960938, 0.4921875, 0.4882812, 0.4843750,
0.4804688, 0.4765625, 0.4726562, 0.4687500, 0.4648438, 0.4609375,
0.4570312, 0.4531250, 0.4492188, 0.4453125, 0.4414062, 0.4375000,
0.4335938, 0.4296875, 0.4257812, 0.4218750, 0.4179688, 0.4140625,
0.4101562, 0.4062500, 0.4023438, 0.3984375, 0.3945312, 0.3906250,
0.3867188, 0.3828125, 0.3789062, 0.3750000, 0.3710938, 0.3671875,
0.3632812, 0.3593750, 0.3554688, 0.3515625, 0.3476562, 0.3437500,
0.3398438, 0.3359375, 0.3320312, 0.3320312, 0.3281250, 0.3281250,
0.3437500, 0.3554688, 0.3671875, 0.3789062, 0.3906250, 0.4023438,
0.4179688, 0.4296875, 0.4453125, 0.4570312, 0.4726562, 0.4843750,
0.5000000, 0.5117188, 0.5273438, 0.5429688, 0.5585938, 0.5703125,
0.5859375, 0.6015625, 0.6171875, 0.6328125, 0.6484375, 0.6640625,
0.6796875, 0.6992188, 0.7148438, 0.7304688, 0.7460938, 0.7656250,
0.7812500, 0.8007812, 0.8164062, 0.8359375, 0.8515625, 0.8710938,
0.8906250, 0.9101562, 0.9257812, 0.9453125, 0.9648438, 0.9843750,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.9882812, 0.9882812, 0.9843750, 0.9804688, 0.9765625, 0.9726562,
0.9687500, 0.9648438, 0.9609375, 0.9570312, 0.9531250, 0.9492188,
0.9453125, 0.9414062, 0.9375000, 0.9335938, 0.9296875, 0.9257812,
0.9218750, 0.9179688, 0.9140625, 0.9101562, 0.9062500, 0.9023438,
0.8984375, 0.8945312, 0.8906250, 0.8867188, 0.8828125, 0.8789062,
0.8750000, 0.8710938, 0.8671875, 0.8632812, 0.8593750, 0.8554688,
0.8515625, 0.8476562, 0.8437500, 0.8398438, 0.8359375, 0.8320312,
0.8281250, 0.8242188, 0.8203125, 0.8164062, 0.8125000, 0.8085938,
0.8046875, 0.8007812, 0.7968750, 0.7929688, 0.7890625, 0.7851562,
0.7812500, 0.7773438, 0.7734375, 0.7695312, 0.7656250, 0.7617188,
0.7578125, 0.7539062, 0.7500000, 0.7460938, 0.7421875, 0.7382812,
0.7343750, 0.7304688, 0.7265625, 0.7226562, 0.7187500, 0.7148438,
0.7109375, 0.7070312, 0.7031250, 0.6992188, 0.6953125, 0.6914062,
0.6875000, 0.6835938, 0.6796875, 0.6757812, 0.6718750, 0.6679688,
0.6640625, 0.6601562, 0.6601562, 0.6601562, 0.6640625, 0.6679688,
0.6718750, 0.6757812, 0.6796875, 0.6875000, 0.6914062, 0.6953125,
0.7031250, 0.7070312, 0.7148438, 0.7187500, 0.7265625, 0.7343750,
0.7382812, 0.7460938, 0.7539062, 0.7617188, 0.7695312, 0.7773438,
0.7851562, 0.7929688, 0.8007812, 0.8085938, 0.8164062, 0.8242188,
0.8359375, 0.8437500, 0.8515625, 0.8632812, 0.8710938, 0.8828125,
0.8906250, 0.9023438, 0.9101562, 0.9218750, 0.9335938, 0.9414062,
0.9531250, 0.9648438, 0.9765625, 0.9882812, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9843750, 0.9648438, 0.9453125, 0.9257812, 0.9062500, 0.8828125,
0.8632812, 0.8437500, 0.8242188, 0.8007812, 0.7812500, 0.7578125,
0.7382812, 0.7148438, 0.6953125, 0.6718750, 0.6484375, 0.6250000,
0.6054688, 0.5820312, 0.5585938, 0.5351562, 0.5117188, 0.4882812,
0.4648438, 0.4414062, 0.4179688, 0.3906250, 0.3671875, 0.3437500,
0.3164062, 0.2929688, 0.2695312, 0.2421875, 0.2187500, 0.1914062,
0.1640625, 0.1406250, 0.1132812, 0.1132812]),
array([ 0.9882812, 0.9882812, 0.9843750, 0.9804688, 0.9765625, 0.9726562,
0.9687500, 0.9687500, 0.9648438, 0.9648438, 0.9609375, 0.9609375,
0.9570312, 0.9570312, 0.9531250, 0.9531250, 0.9531250, 0.9531250,
0.9492188, 0.9492188, 0.9492188, 0.9492188, 0.9492188, 0.9492188,
0.9492188, 0.9492188, 0.9531250, 0.9531250, 0.9531250, 0.9531250,
0.9570312, 0.9570312, 0.9609375, 0.9609375, 0.9648438, 0.9648438,
0.9687500, 0.9726562, 0.9765625, 0.9765625, 0.9804688, 0.9843750,
0.9882812, 0.9921875, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9882812, 0.9765625,
0.9648438, 0.9531250, 0.9414062, 0.9257812, 0.9140625, 0.9023438,
0.8867188, 0.8750000, 0.8593750, 0.8476562, 0.8320312, 0.8203125,
0.8046875, 0.7929688, 0.7773438, 0.7617188, 0.7460938, 0.7304688,
0.7148438, 0.6992188, 0.6835938, 0.6679688, 0.6523438, 0.6367188,
0.6210938, 0.6054688, 0.5859375, 0.5703125, 0.5546875, 0.5351562,
0.5195312, 0.5000000, 0.4843750, 0.4648438, 0.4453125, 0.4296875,
0.4101562, 0.3906250, 0.3710938, 0.3515625, 0.3359375, 0.3242188,
0.3203125, 0.3164062, 0.3125000, 0.3085938, 0.3046875, 0.3007812,
0.2968750, 0.2929688, 0.2890625, 0.2851562, 0.2812500, 0.2773438,
0.2734375, 0.2695312, 0.2656250, 0.2617188, 0.2578125, 0.2539062,
0.2500000, 0.2460938, 0.2421875, 0.2382812, 0.2343750, 0.2304688,
0.2265625, 0.2226562, 0.2187500, 0.2148438, 0.2109375, 0.2070312,
0.2031250, 0.1992188, 0.1953125, 0.1914062, 0.1875000, 0.1835938,
0.1796875, 0.1757812, 0.1718750, 0.1679688, 0.1640625, 0.1601562,
0.1562500, 0.1523438, 0.1484375, 0.1445312, 0.1406250, 0.1367188,
0.1328125, 0.1289062, 0.1250000, 0.1210938, 0.1171875, 0.1132812,
0.1093750, 0.1054688, 0.1015625, 0.0976562, 0.0937500, 0.0898438,
0.0859375, 0.0820312, 0.0781250, 0.0742188, 0.0703125, 0.0664062,
0.0625000, 0.0585938, 0.0546875, 0.0507812, 0.0468750, 0.0429688,
0.0507812, 0.0351562, 0.0312500, 0.0273438, 0.0234375, 0.0195312,
0.0156250, 0.0117188, 0.0078125, 0.0078125]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 23 :: Purple-Red + Stripes ###
color_map_luts['idl23'] = \
(
array([ 0.0000000, 0.0000000, 0.4960938, 0.7460938, 0.7343750, 0.7265625,
0.7187500, 0.7109375, 0.6992188, 0.6914062, 0.5468750, 0.5390625,
0.6640625, 0.6562500, 0.6445312, 0.6367188, 0.6289062, 0.6171875,
0.6093750, 0.6015625, 0.4726562, 0.4648438, 0.5742188, 0.5664062,
0.5546875, 0.5468750, 0.5390625, 0.5273438, 0.5195312, 0.5117188,
0.4023438, 0.3945312, 0.4843750, 0.4765625, 0.4648438, 0.4570312,
0.4492188, 0.4375000, 0.4296875, 0.4218750, 0.3281250, 0.3203125,
0.3945312, 0.3867188, 0.3750000, 0.3671875, 0.3593750, 0.3476562,
0.3398438, 0.3320312, 0.2578125, 0.2500000, 0.3046875, 0.2968750,
0.2851562, 0.2773438, 0.2695312, 0.2578125, 0.2500000, 0.2421875,
0.1835938, 0.1796875, 0.2148438, 0.2031250, 0.1953125, 0.1875000,
0.1796875, 0.1679688, 0.1601562, 0.1523438, 0.1132812, 0.1054688,
0.1250000, 0.1132812, 0.1054688, 0.0976562, 0.0898438, 0.0781250,
0.0703125, 0.0625000, 0.0429688, 0.0351562, 0.0351562, 0.0234375,
0.0156250, 0.0078125, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0156250, 0.0468750, 0.0703125,
0.0937500, 0.1171875, 0.1406250, 0.1640625, 0.1875000, 0.2109375,
0.1875000, 0.2070312, 0.2812500, 0.3046875, 0.3320312, 0.3554688,
0.3789062, 0.4023438, 0.4257812, 0.4492188, 0.3789062, 0.3984375,
0.5195312, 0.5429688, 0.5664062, 0.5898438, 0.6132812, 0.6367188,
0.6640625, 0.6875000, 0.5664062, 0.5859375, 0.7578125, 0.7812500,
0.8046875, 0.8281250, 0.8515625, 0.8750000, 0.8984375, 0.9218750,
0.7578125, 0.7773438, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.7968750, 0.7968750,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.7968750, 0.7968750, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.7968750, 0.7968750, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.7968750, 0.7968750,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.4960938, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0234375, 0.0468750, 0.0703125,
0.0742188, 0.0937500, 0.1406250, 0.1640625, 0.1875000, 0.2109375,
0.2343750, 0.2578125, 0.2812500, 0.3046875, 0.2656250, 0.2812500,
0.3789062, 0.4023438, 0.4257812, 0.4492188, 0.4726562, 0.4960938,
0.5195312, 0.5429688, 0.4531250, 0.4726562, 0.6132812, 0.6367188,
0.6640625, 0.6875000, 0.7109375, 0.7343750, 0.7578125, 0.7812500,
0.6445312, 0.6640625, 0.8515625, 0.8750000, 0.8984375, 0.9218750,
0.9453125, 0.9687500, 0.9960938, 0.9960938, 0.7968750, 0.7968750,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.7968750, 0.7968750, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.7968750, 0.7968750, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.7968750, 0.7968750,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.7968750, 0.7968750, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.7968750, 0.7968750, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.7968750, 0.7968750,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.7968750, 0.7968750, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.7968750, 0.7968750, 0.9960938, 0.9687500, 0.9453125, 0.9179688,
0.8945312, 0.8710938, 0.8437500, 0.8203125, 0.6367188, 0.6171875,
0.7460938, 0.7187500, 0.6953125, 0.6718750, 0.6445312, 0.6210938,
0.5976562, 0.5703125, 0.4375000, 0.4179688, 0.4960938, 0.4726562,
0.4492188, 0.4296875, 0.4062500, 0.3828125, 0.3593750, 0.3359375,
0.2500000, 0.2343750, 0.2695312, 0.2460938, 0.2226562, 0.2031250,
0.1796875, 0.1562500, 0.1328125, 0.1093750, 0.0703125, 0.0507812,
0.0429688, 0.0195312, 0.0000000, 0.0000000]),
array([ 0.0000000, 0.0000000, 0.4960938, 0.7460938, 0.7500000, 0.7500000,
0.7539062, 0.7578125, 0.7617188, 0.7617188, 0.6132812, 0.6132812,
0.7734375, 0.7734375, 0.7773438, 0.7812500, 0.7851562, 0.7890625,
0.7890625, 0.7929688, 0.6367188, 0.6406250, 0.8007812, 0.8046875,
0.8085938, 0.8125000, 0.8125000, 0.8164062, 0.8203125, 0.8242188,
0.6601562, 0.6640625, 0.8320312, 0.8359375, 0.8398438, 0.8398438,
0.8437500, 0.8476562, 0.8515625, 0.8515625, 0.6835938, 0.6875000,
0.8632812, 0.8632812, 0.8671875, 0.8710938, 0.8750000, 0.8789062,
0.8789062, 0.8828125, 0.7070312, 0.7109375, 0.8906250, 0.8945312,
0.8984375, 0.9023438, 0.9023438, 0.9062500, 0.9101562, 0.9140625,
0.7343750, 0.7343750, 0.9218750, 0.9257812, 0.9296875, 0.9296875,
0.9335938, 0.9375000, 0.9414062, 0.9414062, 0.7578125, 0.7578125,
0.9531250, 0.9570312, 0.9570312, 0.9609375, 0.9648438, 0.9687500,
0.9687500, 0.9726562, 0.7812500, 0.7812500, 0.9804688, 0.9843750,
0.9882812, 0.9921875, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.7968750, 0.7968750, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.7968750, 0.7968750,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.7968750, 0.7968750, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.7968750, 0.7968750, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9687500, 0.7578125, 0.7382812,
0.8984375, 0.8750000, 0.8515625, 0.8281250, 0.8046875, 0.7812500,
0.7578125, 0.7343750, 0.5664062, 0.5468750, 0.6601562, 0.6367188,
0.6132812, 0.5898438, 0.5664062, 0.5429688, 0.5195312, 0.4960938,
0.3789062, 0.3593750, 0.4257812, 0.4023438, 0.3789062, 0.3554688,
0.3281250, 0.3046875, 0.2812500, 0.2578125, 0.1875000, 0.1679688,
0.1875000, 0.1640625, 0.1406250, 0.1171875, 0.0937500, 0.0703125,
0.0468750, 0.0234375, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0078125, 0.0195312, 0.0273438,
0.0390625, 0.0468750, 0.0585938, 0.0664062, 0.0625000, 0.0703125,
0.0976562, 0.1093750, 0.1171875, 0.1289062, 0.1367188, 0.1484375,
0.1562500, 0.1679688, 0.1406250, 0.1484375, 0.1992188, 0.1875000,
0.1796875, 0.1718750, 0.1601562, 0.1523438, 0.1445312, 0.1328125,
0.0976562, 0.0937500, 0.1054688, 0.0976562, 0.0898438, 0.0781250,
0.0703125, 0.0625000, 0.0507812, 0.0429688, 0.0273438, 0.0195312,
0.0156250, 0.0078125, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 24 :: Beach ###
color_map_luts['idl24'] = \
(
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0156250, 0.0312500,
0.0468750, 0.0664062, 0.0820312, 0.0976562, 0.1132812, 0.1328125,
0.1484375, 0.1640625, 0.1796875, 0.1992188, 0.2148438, 0.2304688,
0.2500000, 0.2656250, 0.2812500, 0.2968750, 0.3164062, 0.3320312,
0.3476562, 0.3632812, 0.3828125, 0.3984375, 0.4140625, 0.4296875,
0.4492188, 0.4648438, 0.4804688, 0.5000000, 0.5156250, 0.5312500,
0.5468750, 0.2968750, 0.2968750, 0.2968750, 0.3164062, 0.3320312,
0.3476562, 0.3632812, 0.3828125, 0.3984375, 0.4140625, 0.4296875,
0.4492188, 0.4648438, 0.4804688, 0.5000000, 0.5156250, 0.5312500,
0.5468750, 0.5664062, 0.5820312, 0.5976562, 0.6132812, 0.6132812,
0.6289062, 0.6406250, 0.6523438, 0.6640625, 0.6757812, 0.6914062,
0.7031250, 0.7148438, 0.7265625, 0.7382812, 0.7539062, 0.7656250,
0.7773438, 0.7890625, 0.8007812, 0.8164062, 0.8281250, 0.8398438,
0.8515625, 0.8515625, 0.8554688, 0.8593750, 0.8671875, 0.8710938,
0.8750000, 0.8789062, 0.8828125, 0.8867188, 0.8945312, 0.8984375,
0.9023438, 0.9062500, 0.9101562, 0.9140625, 0.9218750, 0.9257812,
0.9296875, 0.9335938, 0.9375000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 0.9804688, 0.9804688, 0.9726562, 0.9648438, 0.9570312, 0.9492188,
0.9414062, 0.9296875, 0.9218750, 0.9140625, 0.9062500, 0.8984375,
0.8906250, 0.8828125, 0.8750000, 0.8632812, 0.8554688, 0.8476562,
0.8398438, 0.8320312, 0.8242188, 0.8164062, 0.8046875, 0.7968750,
0.7890625, 0.7812500, 0.7734375, 0.7656250, 0.7578125, 0.7500000,
0.7382812, 0.7304688, 0.7226562, 0.7148438, 0.7070312, 0.6992188,
0.6914062, 0.6796875, 0.6718750, 0.6640625, 0.6562500, 0.6484375,
0.6406250, 0.6328125, 0.6250000, 0.6132812, 0.6054688, 0.5976562,
0.5898438, 0.5820312, 0.5742188, 0.5664062, 0.5546875, 0.5468750,
0.5390625, 0.5312500, 0.5234375, 0.5156250, 0.5078125, 0.5000000,
0.5000000, 0.5039062, 0.5117188, 0.5195312, 0.5234375, 0.5312500,
0.5390625, 0.5429688, 0.5507812, 0.5585938, 0.5664062, 0.5703125,
0.5781250, 0.5859375, 0.5898438, 0.5976562, 0.6054688, 0.6132812,
0.6171875, 0.6250000, 0.6328125, 0.6367188, 0.6445312, 0.6523438,
0.6562500, 0.6640625, 0.6718750, 0.6796875, 0.6835938, 0.6914062,
0.6992188, 0.7031250, 0.7109375, 0.7109375, 0.6914062, 0.6679688,
0.6445312, 0.6250000, 0.6015625, 0.5820312, 0.5585938, 0.5390625,
0.5156250, 0.4921875, 0.4726562, 0.4492188, 0.4296875, 0.4062500,
0.3867188, 0.3632812, 0.3437500, 0.3203125, 0.2968750, 0.2773438,
0.2539062, 0.2343750, 0.2109375, 0.1914062, 0.1679688, 0.1445312,
0.1250000, 0.1015625, 0.0820312, 0.0585938, 0.0507812, 0.0156250,
0.0000000, 0.0000000, 0.0000000, 0.0156250, 0.0312500, 0.0468750,
0.0664062, 0.0820312, 0.0976562, 0.1132812, 0.1328125, 0.1484375,
0.1640625, 0.1796875, 0.1992188, 0.2148438, 0.2304688, 0.2500000,
0.2656250, 0.2812500, 0.2968750, 0.3164062, 0.3164062, 0.3320312,
0.3476562, 0.3632812, 0.3828125, 0.3984375, 0.4140625, 0.4296875,
0.4492188, 0.4648438, 0.4804688, 0.5000000, 0.5156250, 0.5312500,
0.5468750, 0.5664062, 0.5820312, 0.5976562, 0.6132812, 0.6328125,
0.6328125, 0.6484375, 0.6640625, 0.6796875, 0.6992188, 0.7148438,
0.7304688, 0.7500000, 0.7656250, 0.7812500, 0.7968750, 0.8164062,
0.8320312, 0.8476562, 0.8632812, 0.8828125, 0.8984375, 0.9140625,
0.9296875, 0.9492188, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0156250, 0.0312500, 0.0468750, 0.0664062, 0.0820312, 0.0976562,
0.1132812, 0.1328125, 0.1484375, 0.1640625, 0.1796875, 0.1992188,
0.2148438, 0.2304688, 0.2500000, 0.2656250, 0.2812500, 0.2968750,
0.3164062, 0.3320312, 0.3476562, 0.3632812, 0.3828125, 0.3984375,
0.4140625, 0.4296875, 0.4492188, 0.4648438, 0.4804688, 0.5000000,
0.5156250, 0.5312500, 0.5312500, 0.5312500, 0.5312500, 0.5312500,
0.5312500, 0.5312500, 0.5312500, 0.5312500, 0.5312500, 0.5312500,
0.5312500, 0.5312500, 0.5312500, 0.5312500, 0.5312500, 0.5312500,
0.5312500, 0.5312500, 0.5312500, 0.5312500, 0.5312500, 0.5312500,
0.5312500, 0.5312500, 0.5312500, 0.5312500, 0.5312500, 0.5312500,
0.5312500, 0.5312500, 0.5312500, 0.5312500, 0.5312500, 0.2968750,
0.2968750, 0.2968750, 0.2812500, 0.2656250, 0.2500000, 0.2343750,
0.2187500, 0.2031250, 0.1875000, 0.1718750, 0.1562500, 0.1406250,
0.1250000, 0.1093750, 0.0898438, 0.0742188, 0.0585938, 0.0429688,
0.0273438, 0.0117188, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0156250, 0.0312500, 0.0468750, 0.0664062,
0.0820312, 0.0976562, 0.1132812, 0.1328125, 0.1484375, 0.1640625,
0.1796875, 0.1992188, 0.2148438, 0.2304688, 0.2500000, 0.2656250,
0.2812500, 0.2968750, 0.3164062, 0.3164062, 0.3281250, 0.3437500,
0.3554688, 0.3710938, 0.3828125, 0.3984375, 0.4101562, 0.4257812,
0.4414062, 0.4531250, 0.4687500, 0.4804688, 0.4960938, 0.5078125,
0.5234375, 0.5351562, 0.5507812, 0.5664062, 0.5781250, 0.5937500,
0.6054688, 0.6210938, 0.6210938, 0.6328125, 0.6484375, 0.6640625,
0.6757812, 0.6914062, 0.7070312, 0.7187500, 0.7343750, 0.7500000,
0.7617188, 0.7773438, 0.7929688, 0.8046875, 0.8203125, 0.8359375,
0.8476562, 0.8632812, 0.8789062, 0.8906250, 0.9062500, 0.9218750,
0.9335938, 0.0000000, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 25 :: Mac Style ###
color_map_luts['idl25'] = \
(
array([ 0.4843750, 0.4843750, 0.4687500, 0.4492188, 0.4335938, 0.4140625,
0.3984375, 0.3789062, 0.3632812, 0.3437500, 0.3281250, 0.3085938,
0.2929688, 0.2734375, 0.2578125, 0.2382812, 0.2226562, 0.2031250,
0.1875000, 0.1679688, 0.1523438, 0.1328125, 0.1171875, 0.0976562,
0.0820312, 0.0625000, 0.0468750, 0.0273438, 0.0117188, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0039062, 0.0195312,
0.0507812, 0.0546875, 0.0742188, 0.0898438, 0.1093750, 0.1250000,
0.1445312, 0.1601562, 0.1796875, 0.1953125, 0.2148438, 0.2304688,
0.2500000, 0.2656250, 0.2851562, 0.3007812, 0.3203125, 0.3359375,
0.3554688, 0.3710938, 0.3906250, 0.4062500, 0.4257812, 0.4414062,
0.4609375, 0.4804688, 0.4921875, 0.5156250, 0.5273438, 0.5507812,
0.5625000, 0.5859375, 0.5976562, 0.6210938, 0.6328125, 0.6562500,
0.6679688, 0.6914062, 0.7031250, 0.7265625, 0.7382812, 0.7617188,
0.7734375, 0.7968750, 0.8085938, 0.8320312, 0.8437500, 0.8671875,
0.8789062, 0.9023438, 0.9140625, 0.9375000, 0.9492188, 0.9726562,
0.9843750, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0078125,
0.0234375, 0.0429688, 0.0585938, 0.0781250, 0.0937500, 0.1132812,
0.1289062, 0.1484375, 0.1640625, 0.1835938, 0.1992188, 0.2187500,
0.2343750, 0.2539062, 0.2695312, 0.2890625, 0.3046875, 0.3242188,
0.3398438, 0.3593750, 0.3750000, 0.3945312, 0.4101562, 0.4296875,
0.4453125, 0.4648438, 0.4765625, 0.5000000, 0.5117188, 0.5351562,
0.5468750, 0.5703125, 0.5820312, 0.6054688, 0.6171875, 0.6406250,
0.6523438, 0.6757812, 0.6875000, 0.7109375, 0.7226562, 0.7460938,
0.7578125, 0.7812500, 0.7929688, 0.8164062, 0.8281250, 0.8515625,
0.8632812, 0.8867188, 0.8984375, 0.9218750, 0.9375000, 0.9570312,
0.9726562, 0.9921875, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9843750, 0.9648438, 0.9492188, 0.9296875, 0.9140625,
0.8945312, 0.8789062, 0.8593750, 0.8437500, 0.8242188, 0.8085938,
0.7890625, 0.7734375, 0.7539062, 0.7382812, 0.7187500, 0.7031250,
0.6835938, 0.6679688, 0.6484375, 0.6328125, 0.6132812, 0.5976562,
0.5781250, 0.5625000, 0.5429688, 0.5273438, 0.5117188, 0.4921875,
0.4765625, 0.4570312, 0.4414062, 0.4218750, 0.4062500, 0.3867188,
0.3710938, 0.3515625, 0.3359375, 0.3164062, 0.3007812, 0.2812500,
0.2656250, 0.2460938, 0.2304688, 0.2109375, 0.1953125, 0.1757812,
0.1601562, 0.1406250, 0.1250000, 0.1054688, 0.0898438, 0.0703125,
0.0546875, 0.0351562, 0.0195312, 0.0195312]),
array([ 0.9960938, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9921875, 0.9960938, 0.9921875, 0.9960938,
0.9921875, 0.9960938, 0.9765625, 0.9648438, 0.9414062, 0.9296875,
0.9062500, 0.8945312, 0.8710938, 0.8593750, 0.8359375, 0.8242188,
0.8007812, 0.7890625, 0.7656250, 0.7539062, 0.7304688, 0.7187500,
0.6953125, 0.6835938, 0.6601562, 0.6484375, 0.6250000, 0.6132812,
0.5898438, 0.5781250, 0.5546875, 0.5429688, 0.5195312, 0.5078125,
0.4882812, 0.4726562, 0.4531250, 0.4375000, 0.4179688, 0.4023438,
0.3828125, 0.3671875, 0.3476562, 0.3320312, 0.3125000, 0.2968750,
0.2773438, 0.2617188, 0.2421875, 0.2265625, 0.2070312, 0.1914062,
0.1718750, 0.1562500, 0.1367188, 0.1210938, 0.1015625, 0.0859375,
0.0664062, 0.0507812, 0.0312500, 0.0156250, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 26 :: Eos A ###
color_map_luts['idl26'] = \
(
array([ 0.0000000, 0.0000000, 0.4960938, 0.4804688, 0.4648438, 0.4453125,
0.4296875, 0.4140625, 0.3984375, 0.3789062, 0.3281250, 0.3125000,
0.2968750, 0.3125000, 0.2968750, 0.2812500, 0.2617188, 0.2460938,
0.2304688, 0.2148438, 0.1757812, 0.1640625, 0.1484375, 0.1484375,
0.1289062, 0.1132812, 0.0976562, 0.0820312, 0.0625000, 0.0468750,
0.0273438, 0.0117188, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0312500, 0.0664062, 0.0976562,
0.1328125, 0.1640625, 0.1992188, 0.2304688, 0.2382812, 0.2656250,
0.2968750, 0.3632812, 0.3984375, 0.4296875, 0.4648438, 0.4960938,
0.5312500, 0.5625000, 0.5351562, 0.5664062, 0.5976562, 0.6953125,
0.7304688, 0.7617188, 0.7968750, 0.8281250, 0.8632812, 0.8945312,
0.8359375, 0.8632812, 0.8945312, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.8945312, 0.8945312,
0.8945312, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.8945312, 0.8945312, 0.8945312, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.8945312, 0.8945312, 0.8945312, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.8945312, 0.8945312,
0.8945312, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.8945312, 0.8945312, 0.8945312, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.8945312, 0.8945312, 0.8945312, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.8945312, 0.8945312,
0.8945312, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.8945312, 0.8945312, 0.8945312, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.8945312, 0.8945312, 0.8945312, 0.9882812, 0.9804688, 0.9726562,
0.9687500, 0.9609375, 0.9531250, 0.9453125, 0.8476562, 0.8398438,
0.8320312, 0.9218750, 0.9140625, 0.9062500, 0.8984375, 0.8945312,
0.8867188, 0.8789062, 0.7851562, 0.7812500, 0.7734375, 0.8515625,
0.8476562, 0.8398438, 0.8320312, 0.8242188, 0.8203125, 0.8125000,
0.7265625, 0.7187500, 0.7109375, 0.7851562, 0.7773438, 0.7734375,
0.7656250, 0.7578125, 0.7500000, 0.7460938, 0.6640625, 0.6601562,
0.6523438, 0.7187500, 0.7109375, 0.7031250, 0.6992188, 0.6914062,
0.6835938, 0.6796875, 0.6054688, 0.5976562, 0.5898438, 0.6523438,
0.6445312, 0.6367188, 0.6289062, 0.6250000, 0.6171875, 0.6093750,
0.5429688, 0.5390625, 0.5312500, 0.5820312, 0.5781250, 0.5703125,
0.5625000, 0.5585938, 0.5507812, 0.5429688, 0.4843750, 0.4765625,
0.4687500, 0.5156250, 0.5078125, 0.5078125]),
array([ 0.0000000, 0.0000000, 0.4960938, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0664062, 0.1328125, 0.1992188,
0.2656250, 0.3320312, 0.3984375, 0.4648438, 0.4765625, 0.5351562,
0.5976562, 0.7304688, 0.7968750, 0.8632812, 0.9296875, 0.9960938,
0.9960938, 0.9960938, 0.8945312, 0.8945312, 0.8945312, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.8945312, 0.8945312, 0.8945312, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.8945312, 0.8945312,
0.8945312, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.8945312, 0.8945312, 0.8945312, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.8945312, 0.8945312, 0.8945312, 0.9765625, 0.9609375, 0.9453125,
0.9296875, 0.9101562, 0.8945312, 0.8789062, 0.7734375, 0.7617188,
0.7460938, 0.8125000, 0.7968750, 0.7773438, 0.7617188, 0.7460938,
0.7304688, 0.7109375, 0.6250000, 0.6093750, 0.5937500, 0.6445312,
0.6289062, 0.6132812, 0.5976562, 0.5781250, 0.5625000, 0.5468750,
0.4765625, 0.4609375, 0.4453125, 0.4882812, 0.4804688, 0.4726562,
0.4648438, 0.4531250, 0.4453125, 0.4375000, 0.3867188, 0.3789062,
0.3710938, 0.4062500, 0.3984375, 0.3867188, 0.3789062, 0.3710938,
0.3632812, 0.3554688, 0.3125000, 0.3046875, 0.2968750, 0.3203125,
0.3125000, 0.3046875, 0.2968750, 0.2890625, 0.2812500, 0.2734375,
0.2382812, 0.2304688, 0.2226562, 0.2382812, 0.2304688, 0.2226562,
0.2148438, 0.2070312, 0.1953125, 0.1875000, 0.1640625, 0.1562500,
0.1484375, 0.1562500, 0.1484375, 0.1406250, 0.1289062, 0.1210938,
0.1132812, 0.1054688, 0.0859375, 0.0820312, 0.0742188, 0.0742188,
0.0625000, 0.0546875, 0.0468750, 0.0507812, 0.0312500, 0.0234375,
0.0117188, 0.0039062, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 0.0000000, 0.0000000, 0.4960938, 0.7539062, 0.7617188, 0.7695312,
0.7773438, 0.7851562, 0.7968750, 0.8046875, 0.7304688, 0.7382812,
0.7460938, 0.8359375, 0.8437500, 0.8515625, 0.8632812, 0.8710938,
0.8789062, 0.8867188, 0.8046875, 0.8125000, 0.8203125, 0.9179688,
0.9296875, 0.9375000, 0.9453125, 0.9531250, 0.9609375, 0.9687500,
0.8789062, 0.8867188, 0.8945312, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.8945312, 0.8945312,
0.8945312, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9296875, 0.8632812, 0.7148438, 0.6562500, 0.5937500, 0.5976562,
0.5273438, 0.4609375, 0.3945312, 0.3281250, 0.2617188, 0.1953125,
0.1171875, 0.0585938, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 27 :: Eos B ###
color_map_luts['idl27'] = \
(
array([ 0.9960938, 0.9960938, 0.4960938, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0351562,
0.0703125, 0.1054688, 0.1406250, 0.1757812, 0.1914062, 0.2226562,
0.2812500, 0.3164062, 0.3554688, 0.3906250, 0.4257812, 0.4609375,
0.4960938, 0.5312500, 0.5117188, 0.5429688, 0.6367188, 0.6757812,
0.7109375, 0.7460938, 0.7812500, 0.8164062, 0.8515625, 0.8867188,
0.8320312, 0.8632812, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.8945312, 0.8945312,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.8945312, 0.8945312, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.8945312, 0.8945312, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.8945312, 0.8945312,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.8945312, 0.8945312, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.8945312, 0.8945312, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.8945312, 0.8945312,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.8945312, 0.8945312, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.8945312, 0.8945312, 0.9960938, 0.9882812, 0.9804688, 0.9726562,
0.9648438, 0.9570312, 0.9492188, 0.9414062, 0.8398438, 0.8359375,
0.9179688, 0.9140625, 0.9062500, 0.8984375, 0.8906250, 0.8828125,
0.8750000, 0.8671875, 0.7734375, 0.7656250, 0.8437500, 0.8398438,
0.8320312, 0.8242188, 0.8164062, 0.8085938, 0.8007812, 0.7929688,
0.7070312, 0.6992188, 0.7695312, 0.7656250, 0.7578125, 0.7500000,
0.7421875, 0.7343750, 0.7265625, 0.7187500, 0.6406250, 0.6328125,
0.6953125, 0.6875000, 0.6835938, 0.6757812, 0.6679688, 0.6601562,
0.6523438, 0.6445312, 0.5742188, 0.5664062, 0.6210938, 0.6132812,
0.6093750, 0.6015625, 0.5937500, 0.5859375, 0.5781250, 0.5703125,
0.5078125, 0.5000000, 0.5468750, 0.5390625, 0.5351562, 0.5273438,
0.5195312, 0.5117188, 0.5039062, 0.4960938, 0.4414062, 0.4335938,
0.4726562, 0.4648438, 0.4570312, 0.4570312]),
array([ 0.9960938, 0.9960938, 0.4960938, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0273438, 0.0585938, 0.0898438,
0.1210938, 0.1523438, 0.1835938, 0.2148438, 0.2226562, 0.2500000,
0.3085938, 0.3398438, 0.3710938, 0.4023438, 0.4335938, 0.4648438,
0.4960938, 0.5273438, 0.5039062, 0.5312500, 0.6210938, 0.6523438,
0.6835938, 0.7148438, 0.7460938, 0.7773438, 0.8085938, 0.8398438,
0.7812500, 0.8085938, 0.9335938, 0.9648438, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.8945312, 0.8945312,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.8945312, 0.8945312, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.8945312, 0.8945312, 0.9960938, 0.9765625, 0.9609375, 0.9453125,
0.9296875, 0.9101562, 0.8945312, 0.8789062, 0.7734375, 0.7617188,
0.8281250, 0.8125000, 0.7968750, 0.7773438, 0.7617188, 0.7460938,
0.7304688, 0.7109375, 0.6250000, 0.6093750, 0.6601562, 0.6445312,
0.6289062, 0.6132812, 0.5976562, 0.5781250, 0.5625000, 0.5468750,
0.4765625, 0.4609375, 0.4960938, 0.4882812, 0.4804688, 0.4726562,
0.4648438, 0.4531250, 0.4453125, 0.4375000, 0.3867188, 0.3789062,
0.4140625, 0.4062500, 0.3984375, 0.3867188, 0.3789062, 0.3710938,
0.3632812, 0.3554688, 0.3125000, 0.3046875, 0.3281250, 0.3203125,
0.3125000, 0.3046875, 0.2968750, 0.2890625, 0.2812500, 0.2734375,
0.2382812, 0.2304688, 0.2460938, 0.2382812, 0.2304688, 0.2226562,
0.2148438, 0.2070312, 0.1953125, 0.1875000, 0.1640625, 0.1562500,
0.1640625, 0.1562500, 0.1484375, 0.1406250, 0.1289062, 0.1210938,
0.1132812, 0.1054688, 0.0859375, 0.0820312, 0.0820312, 0.0742188,
0.0625000, 0.0546875, 0.0468750, 0.0507812, 0.0312500, 0.0234375,
0.0117188, 0.0039062, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 0.9960938, 0.9960938, 0.4960938, 0.5117188, 0.5312500, 0.5468750,
0.5625000, 0.5781250, 0.5976562, 0.6132812, 0.5664062, 0.5820312,
0.6640625, 0.6796875, 0.6953125, 0.7109375, 0.7304688, 0.7460938,
0.7617188, 0.7773438, 0.7148438, 0.7304688, 0.8281250, 0.8437500,
0.8632812, 0.8789062, 0.8945312, 0.9101562, 0.9296875, 0.9453125,
0.8632812, 0.8789062, 0.9960938, 0.9648438, 0.9335938, 0.9023438,
0.8710938, 0.8398438, 0.8085938, 0.7773438, 0.6718750, 0.6406250,
0.6835938, 0.6523438, 0.6210938, 0.5898438, 0.5585938, 0.5273438,
0.4960938, 0.4648438, 0.3906250, 0.3632812, 0.3710938, 0.3398438,
0.3085938, 0.2773438, 0.2460938, 0.2148438, 0.1835938, 0.1523438,
0.1093750, 0.0820312, 0.0585938, 0.0273438, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 28 :: Hardcandy ###
color_map_luts['idl28'] = \
(
array([ 0.0156250, 0.0156250, 0.0195312, 0.0273438, 0.0351562, 0.0429688,
0.0468750, 0.0546875, 0.0585938, 0.0625000, 0.0664062, 0.0664062,
0.0703125, 0.0703125, 0.0703125, 0.0664062, 0.0625000, 0.0585938,
0.0546875, 0.0507812, 0.0429688, 0.0507812, 0.0312500, 0.0195312,
0.0117188, 0.0039062, 0.0000000, 0.0117188, 0.0195312, 0.0273438,
0.0507812, 0.0468750, 0.0507812, 0.0585938, 0.0664062, 0.0703125,
0.0742188, 0.0742188, 0.0742188, 0.0742188, 0.0742188, 0.0703125,
0.0625000, 0.0546875, 0.0468750, 0.0351562, 0.0195312, 0.0078125,
0.0078125, 0.0234375, 0.0429688, 0.0664062, 0.0898438, 0.1132812,
0.1406250, 0.1640625, 0.1914062, 0.2187500, 0.2500000, 0.2773438,
0.3046875, 0.3320312, 0.3632812, 0.3906250, 0.4140625, 0.4414062,
0.4648438, 0.4882812, 0.5078125, 0.5273438, 0.5429688, 0.5585938,
0.5703125, 0.5820312, 0.5859375, 0.5898438, 0.5937500, 0.5898438,
0.5859375, 0.5781250, 0.5664062, 0.5546875, 0.5390625, 0.5195312,
0.4960938, 0.4726562, 0.4453125, 0.4179688, 0.3867188, 0.3515625,
0.3203125, 0.2851562, 0.2460938, 0.2109375, 0.1718750, 0.1367188,
0.0976562, 0.0625000, 0.0234375, 0.0039062, 0.0507812, 0.0703125,
0.0976562, 0.1250000, 0.1484375, 0.1718750, 0.1875000, 0.2031250,
0.2148438, 0.2187500, 0.2226562, 0.2226562, 0.2187500, 0.2070312,
0.1953125, 0.1757812, 0.1523438, 0.1289062, 0.0976562, 0.0625000,
0.0234375, 0.0117188, 0.0585938, 0.1054688, 0.1562500, 0.2070312,
0.2617188, 0.3164062, 0.3750000, 0.4335938, 0.4921875, 0.5507812,
0.6093750, 0.6640625, 0.7226562, 0.7773438, 0.8281250, 0.8789062,
0.9257812, 0.9687500, 0.9843750, 0.9453125, 0.9140625, 0.8867188,
0.8671875, 0.8476562, 0.8359375, 0.8281250, 0.8281250, 0.8320312,
0.8437500, 0.8593750, 0.8789062, 0.9062500, 0.9375000, 0.9726562,
0.9804688, 0.9335938, 0.8828125, 0.8320312, 0.7734375, 0.7148438,
0.6523438, 0.5859375, 0.5195312, 0.4531250, 0.3828125, 0.3164062,
0.2500000, 0.1835938, 0.1171875, 0.0546875, 0.0039062, 0.0585938,
0.1132812, 0.1640625, 0.2109375, 0.2500000, 0.2851562, 0.3164062,
0.3398438, 0.3554688, 0.3671875, 0.3710938, 0.3710938, 0.3593750,
0.3437500, 0.3203125, 0.2929688, 0.2578125, 0.2148438, 0.1640625,
0.1093750, 0.0507812, 0.0117188, 0.0820312, 0.1562500, 0.2343750,
0.3164062, 0.4023438, 0.4882812, 0.5742188, 0.6640625, 0.7539062,
0.8437500, 0.9335938, 0.9726562, 0.8906250, 0.8085938, 0.7304688,
0.6562500, 0.5898438, 0.5234375, 0.4648438, 0.4140625, 0.3710938,
0.3320312, 0.3007812, 0.2773438, 0.2617188, 0.2539062, 0.2578125,
0.2656250, 0.2812500, 0.3085938, 0.3398438, 0.3828125, 0.4296875,
0.4843750, 0.5468750, 0.6171875, 0.6914062, 0.7695312, 0.8554688,
0.9414062, 0.9570312, 0.8632812, 0.7656250, 0.6679688, 0.5664062,
0.4687500, 0.3710938, 0.2734375, 0.1796875, 0.0898438, 0.0039062,
0.0742188, 0.1523438, 0.2226562, 0.2890625, 0.3476562, 0.3984375,
0.4375000, 0.4726562, 0.4960938, 0.4960938]),
array([ 0.1992188, 0.1992188, 0.2265625, 0.2539062, 0.2812500, 0.3085938,
0.3320312, 0.3593750, 0.3867188, 0.4101562, 0.4335938, 0.4570312,
0.4843750, 0.5039062, 0.5273438, 0.5507812, 0.5703125, 0.5937500,
0.6132812, 0.6328125, 0.6523438, 0.6679688, 0.6875000, 0.7031250,
0.7187500, 0.7343750, 0.7460938, 0.7617188, 0.7734375, 0.7851562,
0.7929688, 0.8046875, 0.8125000, 0.8203125, 0.8281250, 0.8320312,
0.8359375, 0.8398438, 0.8437500, 0.8437500, 0.8437500, 0.8437500,
0.8437500, 0.8398438, 0.8398438, 0.8320312, 0.8281250, 0.8203125,
0.8164062, 0.8046875, 0.7968750, 0.7851562, 0.7773438, 0.7617188,
0.7500000, 0.7382812, 0.7226562, 0.7070312, 0.6914062, 0.6718750,
0.6562500, 0.6367188, 0.6171875, 0.5976562, 0.5781250, 0.5546875,
0.5351562, 0.5117188, 0.4882812, 0.4648438, 0.4414062, 0.4140625,
0.3906250, 0.3632812, 0.3398438, 0.3125000, 0.2851562, 0.2617188,
0.2343750, 0.2070312, 0.1796875, 0.1523438, 0.1250000, 0.0976562,
0.0703125, 0.0429688, 0.0156250, 0.0078125, 0.0351562, 0.0625000,
0.0859375, 0.1132812, 0.1406250, 0.1640625, 0.1914062, 0.2148438,
0.2382812, 0.2656250, 0.2890625, 0.3085938, 0.3320312, 0.3554688,
0.3750000, 0.3945312, 0.4140625, 0.4335938, 0.4531250, 0.4687500,
0.4882812, 0.5039062, 0.5195312, 0.5312500, 0.5468750, 0.5585938,
0.5703125, 0.5820312, 0.5898438, 0.5976562, 0.6054688, 0.6132812,
0.6210938, 0.6250000, 0.6289062, 0.6328125, 0.6328125, 0.6328125,
0.6328125, 0.6328125, 0.6328125, 0.6289062, 0.6250000, 0.6210938,
0.6132812, 0.6054688, 0.5976562, 0.5898438, 0.5781250, 0.5703125,
0.5585938, 0.5429688, 0.5312500, 0.5156250, 0.5000000, 0.4843750,
0.4687500, 0.4492188, 0.4335938, 0.4140625, 0.3945312, 0.3710938,
0.3515625, 0.3281250, 0.3085938, 0.2851562, 0.2617188, 0.2382812,
0.2109375, 0.1875000, 0.1640625, 0.1367188, 0.1093750, 0.0859375,
0.0585938, 0.0312500, 0.0039062, 0.0195312, 0.0468750, 0.0742188,
0.1015625, 0.1289062, 0.1562500, 0.1835938, 0.2109375, 0.2382812,
0.2617188, 0.2890625, 0.3164062, 0.3437500, 0.3671875, 0.3945312,
0.4179688, 0.4414062, 0.4687500, 0.4921875, 0.5117188, 0.5351562,
0.5585938, 0.5781250, 0.6015625, 0.6210938, 0.6406250, 0.6562500,
0.6757812, 0.6914062, 0.7070312, 0.7226562, 0.7382812, 0.7539062,
0.7656250, 0.7773438, 0.7890625, 0.7968750, 0.8085938, 0.8164062,
0.8242188, 0.8281250, 0.8359375, 0.8398438, 0.8437500, 0.8437500,
0.8437500, 0.8437500, 0.8437500, 0.8437500, 0.8398438, 0.8359375,
0.8320312, 0.8281250, 0.8203125, 0.8125000, 0.8046875, 0.7929688,
0.7851562, 0.7734375, 0.7578125, 0.7460938, 0.7304688, 0.7187500,
0.7031250, 0.6835938, 0.6679688, 0.6484375, 0.6289062, 0.6093750,
0.5898438, 0.5703125, 0.5468750, 0.5273438, 0.5039062, 0.4804688,
0.4570312, 0.4335938, 0.4062500, 0.3828125, 0.3554688, 0.3320312,
0.3046875, 0.2773438, 0.2500000, 0.2226562, 0.1953125, 0.1718750,
0.1445312, 0.1171875, 0.0898438, 0.0898438]),
array([ 0.4531250, 0.4531250, 0.4101562, 0.3671875, 0.3281250, 0.2890625,
0.2500000, 0.2148438, 0.1796875, 0.1484375, 0.1171875, 0.0937500,
0.0703125, 0.0468750, 0.0312500, 0.0195312, 0.0078125, 0.0000000,
0.0000000, 0.0000000, 0.0039062, 0.0117188, 0.0234375, 0.0507812,
0.0546875, 0.0781250, 0.1015625, 0.1289062, 0.1601562, 0.1953125,
0.2304688, 0.2656250, 0.3046875, 0.3437500, 0.3867188, 0.4257812,
0.4687500, 0.5117188, 0.5546875, 0.5976562, 0.6367188, 0.6796875,
0.7187500, 0.7539062, 0.7890625, 0.8242188, 0.8515625, 0.8828125,
0.9062500, 0.9296875, 0.9492188, 0.9648438, 0.9765625, 0.9843750,
0.9882812, 0.9882812, 0.9882812, 0.9804688, 0.9726562, 0.9609375,
0.9414062, 0.9218750, 0.8984375, 0.8750000, 0.8437500, 0.8125000,
0.7812500, 0.7421875, 0.7070312, 0.6679688, 0.6250000, 0.5859375,
0.5429688, 0.5000000, 0.4570312, 0.4140625, 0.3750000, 0.3320312,
0.2929688, 0.2539062, 0.2187500, 0.1835938, 0.1523438, 0.1210938,
0.0937500, 0.0703125, 0.0507812, 0.0351562, 0.0195312, 0.0078125,
0.0000000, 0.0000000, 0.0000000, 0.0039062, 0.0117188, 0.0195312,
0.0351562, 0.0546875, 0.0742188, 0.0976562, 0.1250000, 0.1562500,
0.1875000, 0.2226562, 0.2617188, 0.2968750, 0.3398438, 0.3789062,
0.4218750, 0.4648438, 0.5078125, 0.5468750, 0.5898438, 0.6328125,
0.6718750, 0.7109375, 0.7500000, 0.7851562, 0.8164062, 0.8476562,
0.8789062, 0.9023438, 0.9257812, 0.9453125, 0.9609375, 0.9726562,
0.9843750, 0.9882812, 0.9921875, 0.9882812, 0.9843750, 0.9726562,
0.9609375, 0.9453125, 0.9257812, 0.9023438, 0.8789062, 0.8476562,
0.8164062, 0.7851562, 0.7500000, 0.7109375, 0.6718750, 0.6328125,
0.5898438, 0.5468750, 0.5078125, 0.4648438, 0.4218750, 0.3789062,
0.3398438, 0.2968750, 0.2617188, 0.2226562, 0.1875000, 0.1562500,
0.1250000, 0.0976562, 0.0742188, 0.0546875, 0.0351562, 0.0195312,
0.0117188, 0.0039062, 0.0000000, 0.0000000, 0.0000000, 0.0078125,
0.0195312, 0.0351562, 0.0507812, 0.0703125, 0.0937500, 0.1210938,
0.1523438, 0.1835938, 0.2187500, 0.2539062, 0.2929688, 0.3320312,
0.3750000, 0.4140625, 0.4570312, 0.5000000, 0.5429688, 0.5859375,
0.6250000, 0.6679688, 0.7070312, 0.7421875, 0.7812500, 0.8125000,
0.8437500, 0.8750000, 0.8984375, 0.9218750, 0.9414062, 0.9609375,
0.9726562, 0.9804688, 0.9882812, 0.9882812, 0.9882812, 0.9843750,
0.9765625, 0.9648438, 0.9492188, 0.9296875, 0.9062500, 0.8828125,
0.8515625, 0.8242188, 0.7890625, 0.7539062, 0.7187500, 0.6796875,
0.6367188, 0.5976562, 0.5546875, 0.5117188, 0.4687500, 0.4257812,
0.3867188, 0.3437500, 0.3046875, 0.2656250, 0.2304688, 0.1953125,
0.1601562, 0.1289062, 0.1015625, 0.0781250, 0.0546875, 0.0507812,
0.0234375, 0.0117188, 0.0039062, 0.0000000, 0.0000000, 0.0000000,
0.0078125, 0.0195312, 0.0312500, 0.0468750, 0.0703125, 0.0937500,
0.1171875, 0.1484375, 0.1796875, 0.2148438, 0.2500000, 0.2890625,
0.3281250, 0.3671875, 0.4101562, 0.4101562]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 29 :: Nature ###
color_map_luts['idl29'] = \
(
array([ 0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562,
0.4101562, 0.4101562, 0.4101562, 0.4296875, 0.4453125, 0.4804688,
0.4960938, 0.5117188, 0.5273438, 0.5585938, 0.5742188, 0.5859375,
0.6132812, 0.6250000, 0.6367188, 0.6445312, 0.6640625, 0.6718750,
0.6796875, 0.6875000, 0.6992188, 0.7031250, 0.7031250, 0.7070312,
0.7109375, 0.7070312, 0.7070312, 0.7031250, 0.6992188, 0.6914062,
0.6796875, 0.6718750, 0.6640625, 0.6562500, 0.6367188, 0.6250000,
0.6132812, 0.6015625, 0.5742188, 0.5585938, 0.5429688, 0.5117188,
0.4960938, 0.4804688, 0.4648438, 0.4296875, 0.4101562, 0.3906250,
0.3750000, 0.3398438, 0.3203125, 0.3007812, 0.2656250, 0.2460938,
0.2304688, 0.2109375, 0.1796875, 0.1640625, 0.1484375, 0.1171875,
0.1015625, 0.0898438, 0.0742188, 0.0507812, 0.0507812, 0.0312500,
0.0195312, 0.0039062, 0.0000000, 0.0078125, 0.0195312, 0.0234375,
0.0234375, 0.0273438, 0.0312500, 0.0273438, 0.0273438, 0.0234375,
0.0195312, 0.0117188, 0.0078125, 0.0039062, 0.0117188, 0.0195312,
0.0312500, 0.0507812, 0.0625000, 0.0742188, 0.1015625, 0.1171875,
0.1328125, 0.1484375, 0.1796875, 0.1953125, 0.2109375, 0.2304688,
0.2656250, 0.2851562, 0.3007812, 0.3359375, 0.3554688, 0.3750000,
0.3906250, 0.4296875, 0.4453125, 0.4648438, 0.4960938, 0.5117188,
0.5273438, 0.5429688, 0.5742188, 0.5859375, 0.6015625, 0.6132812,
0.6367188, 0.6445312, 0.6562500, 0.6718750, 0.6796875, 0.6875000,
0.6914062, 0.7031250, 0.7031250, 0.7070312, 0.7109375, 0.7070312,
0.7070312, 0.7031250, 0.6992188, 0.6914062, 0.6875000, 0.6796875,
0.6640625, 0.6562500, 0.6445312, 0.6250000, 0.6132812, 0.6015625,
0.5859375, 0.5585938, 0.5429688, 0.5273438, 0.4960938, 0.4804688,
0.4648438, 0.4453125, 0.4101562, 0.3906250, 0.3750000, 0.3554688,
0.3203125, 0.3007812, 0.2851562, 0.2460938, 0.2304688, 0.2109375,
0.1953125, 0.1640625, 0.1484375, 0.1328125, 0.1171875, 0.0898438,
0.0742188, 0.0625000, 0.0507812, 0.0312500, 0.0195312, 0.0117188,
0.0000000, 0.0078125, 0.0117188, 0.0234375, 0.0234375, 0.0273438,
0.0273438, 0.0273438, 0.0273438, 0.0234375, 0.0234375, 0.0117188,
0.0078125, 0.0000000, 0.0117188, 0.0195312, 0.0312500, 0.0507812,
0.0625000, 0.0742188, 0.0898438, 0.1171875, 0.1328125, 0.1484375,
0.1640625, 0.1953125, 0.2109375, 0.2304688, 0.2460938, 0.2851562,
0.3007812, 0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125,
0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125,
0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125,
0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125,
0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125,
0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125,
0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125,
0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125, 0.3203125,
0.3203125, 0.0000000, 0.9960938, 0.9960938]),
array([ 0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375,
0.9609375, 0.9609375, 0.9609375, 0.9804688, 0.9882812, 0.9531250,
0.9335938, 0.9179688, 0.9023438, 0.8750000, 0.8671875, 0.8554688,
0.8437500, 0.8359375, 0.8359375, 0.8320312, 0.8359375, 0.8398438,
0.8437500, 0.8515625, 0.8710938, 0.8828125, 0.8945312, 0.9257812,
0.9414062, 0.9609375, 0.9804688, 0.9687500, 0.9492188, 0.9257812,
0.8789062, 0.8515625, 0.8281250, 0.8007812, 0.7500000, 0.7265625,
0.6992188, 0.6757812, 0.6250000, 0.6015625, 0.5781250, 0.5351562,
0.5156250, 0.4960938, 0.4765625, 0.4414062, 0.4257812, 0.4101562,
0.3984375, 0.3750000, 0.3671875, 0.3593750, 0.3476562, 0.3437500,
0.3437500, 0.3437500, 0.3437500, 0.3476562, 0.3515625, 0.3632812,
0.3710938, 0.3789062, 0.3867188, 0.4062500, 0.4179688, 0.4296875,
0.4414062, 0.4687500, 0.4843750, 0.4960938, 0.5234375, 0.5390625,
0.5507812, 0.5664062, 0.5937500, 0.6054688, 0.6171875, 0.6406250,
0.6484375, 0.6601562, 0.6679688, 0.6835938, 0.6875000, 0.6953125,
0.6992188, 0.7031250, 0.7031250, 0.7031250, 0.7031250, 0.6992188,
0.6953125, 0.6875000, 0.6757812, 0.6679688, 0.6601562, 0.6484375,
0.6289062, 0.6171875, 0.6015625, 0.5781250, 0.5625000, 0.5468750,
0.5312500, 0.5000000, 0.4843750, 0.4687500, 0.4375000, 0.4218750,
0.4062500, 0.3906250, 0.3593750, 0.3437500, 0.3320312, 0.3164062,
0.2890625, 0.2773438, 0.2656250, 0.2421875, 0.2343750, 0.2226562,
0.2148438, 0.1992188, 0.1953125, 0.1875000, 0.1796875, 0.1757812,
0.1718750, 0.1718750, 0.1679688, 0.1679688, 0.1679688, 0.1718750,
0.1718750, 0.1757812, 0.1796875, 0.1835938, 0.1875000, 0.1914062,
0.1992188, 0.2070312, 0.2109375, 0.2148438, 0.2226562, 0.2304688,
0.2343750, 0.2382812, 0.2460938, 0.2500000, 0.2500000, 0.2539062,
0.2578125, 0.2617188, 0.2617188, 0.2617188, 0.2617188, 0.2617188,
0.2617188, 0.2578125, 0.2578125, 0.2539062, 0.2500000, 0.2421875,
0.2382812, 0.2343750, 0.2265625, 0.2187500, 0.2148438, 0.2070312,
0.1953125, 0.1875000, 0.1796875, 0.1679688, 0.1601562, 0.1523438,
0.1445312, 0.1328125, 0.1250000, 0.1171875, 0.1093750, 0.0976562,
0.0898438, 0.0859375, 0.0742188, 0.0664062, 0.0625000, 0.0585938,
0.0468750, 0.0429688, 0.0507812, 0.0312500, 0.0273438, 0.0234375,
0.0234375, 0.0156250, 0.0156250, 0.0117188, 0.0078125, 0.0039062,
0.0039062, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.9960938, 0.9960938]),
array([ 0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625,
0.9140625, 0.9140625, 0.9140625, 0.8671875, 0.8203125, 0.7265625,
0.6835938, 0.6406250, 0.5976562, 0.5156250, 0.4765625, 0.4414062,
0.3710938, 0.3398438, 0.3085938, 0.2812500, 0.2304688, 0.2109375,
0.1914062, 0.1718750, 0.1445312, 0.1328125, 0.1250000, 0.1171875,
0.1132812, 0.1171875, 0.1210938, 0.1328125, 0.1445312, 0.1562500,
0.1914062, 0.2109375, 0.2304688, 0.2578125, 0.3085938, 0.3398438,
0.3710938, 0.4062500, 0.4765625, 0.5156250, 0.5546875, 0.6406250,
0.6835938, 0.7265625, 0.7734375, 0.8671875, 0.9140625, 0.9609375,
0.9804688, 0.8867188, 0.8359375, 0.7890625, 0.6914062, 0.6445312,
0.5976562, 0.5507812, 0.4609375, 0.4179688, 0.3750000, 0.2929688,
0.2539062, 0.2187500, 0.1835938, 0.1171875, 0.0859375, 0.0585938,
0.0351562, 0.0078125, 0.0273438, 0.0468750, 0.0742188, 0.0859375,
0.0937500, 0.0976562, 0.1054688, 0.1015625, 0.0976562, 0.0859375,
0.0742188, 0.0625000, 0.0468750, 0.0078125, 0.0078125, 0.0351562,
0.0585938, 0.1171875, 0.1484375, 0.1835938, 0.2539062, 0.2929688,
0.3320312, 0.3750000, 0.4609375, 0.5039062, 0.5507812, 0.5976562,
0.6914062, 0.7382812, 0.7890625, 0.8828125, 0.9335938, 0.9804688,
0.9609375, 0.8671875, 0.8203125, 0.7734375, 0.6835938, 0.6406250,
0.5976562, 0.5546875, 0.4765625, 0.4414062, 0.4062500, 0.3710938,
0.3085938, 0.2812500, 0.2578125, 0.2109375, 0.1914062, 0.1718750,
0.1562500, 0.1328125, 0.1250000, 0.1210938, 0.1132812, 0.1171875,
0.1210938, 0.1250000, 0.1445312, 0.1562500, 0.1718750, 0.1914062,
0.2304688, 0.2578125, 0.2812500, 0.3398438, 0.3710938, 0.4062500,
0.4414062, 0.5156250, 0.5546875, 0.5976562, 0.6835938, 0.7265625,
0.7734375, 0.8203125, 0.9140625, 0.9609375, 0.9804688, 0.9335938,
0.8359375, 0.7890625, 0.7382812, 0.6445312, 0.5976562, 0.5507812,
0.5039062, 0.4179688, 0.3750000, 0.3320312, 0.2929688, 0.2187500,
0.1835938, 0.1484375, 0.0859375, 0.0585938, 0.0351562, 0.0078125,
0.0273438, 0.0468750, 0.0625000, 0.0859375, 0.0937500, 0.0976562,
0.1015625, 0.1015625, 0.0976562, 0.0937500, 0.0859375, 0.0625000,
0.0468750, 0.0273438, 0.0078125, 0.0351562, 0.0585938, 0.0859375,
0.1484375, 0.1835938, 0.2187500, 0.2929688, 0.3320312, 0.3750000,
0.4179688, 0.5039062, 0.5507812, 0.5976562, 0.6445312, 0.7382812,
0.7890625, 0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375,
0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375,
0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375,
0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375,
0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375,
0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375,
0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375,
0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375, 0.8359375,
0.8359375, 0.0000000, 0.9960938, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 30 :: Ocean ###
color_map_luts['idl30'] = \
(
array([ 0.2109375, 0.2109375, 0.2304688, 0.2460938, 0.2656250, 0.2851562,
0.3007812, 0.3203125, 0.3203125, 0.3398438, 0.3554688, 0.3750000,
0.3906250, 0.4101562, 0.4296875, 0.4453125, 0.4648438, 0.4804688,
0.4960938, 0.5117188, 0.5273438, 0.5429688, 0.5585938, 0.5585938,
0.5742188, 0.5859375, 0.6015625, 0.6132812, 0.6250000, 0.6367188,
0.6445312, 0.6562500, 0.6640625, 0.6718750, 0.6796875, 0.6875000,
0.6914062, 0.6914062, 0.6992188, 0.7031250, 0.7031250, 0.7070312,
0.7070312, 0.7109375, 0.7070312, 0.7070312, 0.7031250, 0.7031250,
0.6992188, 0.6914062, 0.6875000, 0.6796875, 0.6796875, 0.6718750,
0.6640625, 0.6562500, 0.6445312, 0.6367188, 0.6250000, 0.6132812,
0.6015625, 0.5859375, 0.5742188, 0.5585938, 0.5429688, 0.5273438,
0.5117188, 0.5117188, 0.4960938, 0.4804688, 0.4648438, 0.4453125,
0.4296875, 0.4101562, 0.3906250, 0.3750000, 0.3554688, 0.3359375,
0.3203125, 0.3007812, 0.2851562, 0.2656250, 0.2656250, 0.2460938,
0.2304688, 0.2109375, 0.1953125, 0.1796875, 0.1640625, 0.1484375,
0.1328125, 0.1171875, 0.1015625, 0.0898438, 0.0742188, 0.0625000,
0.0507812, 0.0507812, 0.0507812, 0.0312500, 0.0195312, 0.0117188,
0.0039062, 0.0000000, 0.0078125, 0.0117188, 0.0195312, 0.0234375,
0.0234375, 0.0273438, 0.0273438, 0.0312500, 0.0312500, 0.0273438,
0.0273438, 0.0234375, 0.0234375, 0.0195312, 0.0117188, 0.0078125,
0.0000000, 0.0039062, 0.0117188, 0.0195312, 0.0312500, 0.0507812,
0.0507812, 0.0507812, 0.0625000, 0.0742188, 0.0898438, 0.1015625,
0.1171875, 0.1328125, 0.1484375, 0.1640625, 0.1796875, 0.1953125,
0.2109375, 0.2304688, 0.2460938, 0.2656250, 0.2656250, 0.2851562,
0.3007812, 0.3203125, 0.3398438, 0.3554688, 0.3750000, 0.3906250,
0.4101562, 0.4296875, 0.4453125, 0.4648438, 0.4804688, 0.4960938,
0.5117188, 0.5117188, 0.5273438, 0.5429688, 0.5585938, 0.5742188,
0.5859375, 0.6015625, 0.6132812, 0.6250000, 0.6367188, 0.6445312,
0.6562500, 0.6640625, 0.6718750, 0.6718750, 0.6796875, 0.6875000,
0.6914062, 0.6992188, 0.7031250, 0.7031250, 0.7070312, 0.7070312,
0.7109375, 0.7070312, 0.7070312, 0.7031250, 0.7031250, 0.6992188,
0.6992188, 0.6914062, 0.6875000, 0.6796875, 0.6718750, 0.6640625,
0.6562500, 0.6445312, 0.6367188, 0.6250000, 0.6132812, 0.6015625,
0.5859375, 0.5742188, 0.5585938, 0.5585938, 0.5429688, 0.5273438,
0.5117188, 0.4960938, 0.4804688, 0.4648438, 0.4453125, 0.4296875,
0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562,
0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562,
0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562,
0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562,
0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562,
0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562,
0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562, 0.4101562,
0.4101562, 0.0000000, 0.9960938, 0.9960938]),
array([ 0.2617188, 0.2617188, 0.2617188, 0.2617188, 0.2617188, 0.2617188,
0.2617188, 0.2578125, 0.2578125, 0.2578125, 0.2539062, 0.2500000,
0.2500000, 0.2460938, 0.2421875, 0.2382812, 0.2343750, 0.2304688,
0.2226562, 0.2187500, 0.2148438, 0.2109375, 0.2070312, 0.2070312,
0.2031250, 0.1992188, 0.1914062, 0.1875000, 0.1835938, 0.1835938,
0.1796875, 0.1757812, 0.1718750, 0.1718750, 0.1718750, 0.1679688,
0.1679688, 0.1679688, 0.1679688, 0.1679688, 0.1718750, 0.1718750,
0.1757812, 0.1796875, 0.1835938, 0.1875000, 0.1953125, 0.1992188,
0.2070312, 0.2148438, 0.2226562, 0.2343750, 0.2343750, 0.2421875,
0.2539062, 0.2656250, 0.2773438, 0.2890625, 0.3046875, 0.3164062,
0.3320312, 0.3437500, 0.3593750, 0.3750000, 0.3906250, 0.4062500,
0.4218750, 0.4218750, 0.4375000, 0.4531250, 0.4687500, 0.4843750,
0.5000000, 0.5156250, 0.5312500, 0.5468750, 0.5625000, 0.5781250,
0.5898438, 0.6015625, 0.6171875, 0.6289062, 0.6289062, 0.6406250,
0.6484375, 0.6601562, 0.6679688, 0.6757812, 0.6835938, 0.6875000,
0.6953125, 0.6992188, 0.7031250, 0.7031250, 0.7031250, 0.7031250,
0.7031250, 0.7031250, 0.6992188, 0.6992188, 0.6953125, 0.6875000,
0.6835938, 0.6757812, 0.6679688, 0.6601562, 0.6484375, 0.6406250,
0.6289062, 0.6171875, 0.6054688, 0.5937500, 0.5937500, 0.5781250,
0.5664062, 0.5507812, 0.5390625, 0.5234375, 0.5117188, 0.4960938,
0.4843750, 0.4687500, 0.4570312, 0.4414062, 0.4296875, 0.4179688,
0.4062500, 0.4062500, 0.3945312, 0.3867188, 0.3789062, 0.3710938,
0.3632812, 0.3554688, 0.3515625, 0.3476562, 0.3437500, 0.3437500,
0.3437500, 0.3437500, 0.3437500, 0.3476562, 0.3476562, 0.3554688,
0.3593750, 0.3671875, 0.3750000, 0.3867188, 0.3984375, 0.4101562,
0.4257812, 0.4414062, 0.4570312, 0.4765625, 0.4960938, 0.5156250,
0.5351562, 0.5351562, 0.5546875, 0.5781250, 0.6015625, 0.6250000,
0.6484375, 0.6757812, 0.6992188, 0.7265625, 0.7500000, 0.7773438,
0.8007812, 0.8281250, 0.8515625, 0.8515625, 0.8789062, 0.9023438,
0.9257812, 0.9492188, 0.9687500, 0.9921875, 0.9804688, 0.9609375,
0.9414062, 0.9257812, 0.9101562, 0.8945312, 0.8828125, 0.8710938,
0.8710938, 0.8593750, 0.8515625, 0.8437500, 0.8398438, 0.8359375,
0.8320312, 0.8320312, 0.8359375, 0.8359375, 0.8437500, 0.8476562,
0.8554688, 0.8671875, 0.8750000, 0.8750000, 0.8906250, 0.9023438,
0.9179688, 0.9335938, 0.9531250, 0.9687500, 0.9882812, 0.9804688,
0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375,
0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375,
0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375,
0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375,
0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375,
0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375,
0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375,
0.9609375, 0.0000000, 0.9960938, 0.9960938]),
array([ 0.5507812, 0.5507812, 0.5976562, 0.6445312, 0.6914062, 0.7382812,
0.7890625, 0.8359375, 0.8359375, 0.8867188, 0.9335938, 0.9804688,
0.9609375, 0.9140625, 0.8671875, 0.8203125, 0.7734375, 0.7265625,
0.6835938, 0.6406250, 0.5976562, 0.5546875, 0.5156250, 0.5156250,
0.4765625, 0.4414062, 0.4062500, 0.3710938, 0.3398438, 0.3085938,
0.2812500, 0.2578125, 0.2304688, 0.2109375, 0.1914062, 0.1718750,
0.1562500, 0.1562500, 0.1445312, 0.1328125, 0.1250000, 0.1210938,
0.1171875, 0.1132812, 0.1171875, 0.1210938, 0.1250000, 0.1328125,
0.1445312, 0.1562500, 0.1718750, 0.1914062, 0.1914062, 0.2109375,
0.2304688, 0.2578125, 0.2812500, 0.3085938, 0.3398438, 0.3710938,
0.4062500, 0.4414062, 0.4765625, 0.5156250, 0.5546875, 0.5976562,
0.6406250, 0.6406250, 0.6835938, 0.7265625, 0.7734375, 0.8203125,
0.8671875, 0.9140625, 0.9609375, 0.9804688, 0.9335938, 0.8828125,
0.8359375, 0.7890625, 0.7382812, 0.6914062, 0.6914062, 0.6445312,
0.5976562, 0.5507812, 0.5039062, 0.4609375, 0.4179688, 0.3750000,
0.3320312, 0.2929688, 0.2539062, 0.2187500, 0.1835938, 0.1484375,
0.1171875, 0.1171875, 0.0859375, 0.0585938, 0.0351562, 0.0078125,
0.0078125, 0.0273438, 0.0468750, 0.0625000, 0.0742188, 0.0859375,
0.0937500, 0.0976562, 0.1015625, 0.1054688, 0.1054688, 0.1015625,
0.0976562, 0.0937500, 0.0859375, 0.0742188, 0.0625000, 0.0468750,
0.0273438, 0.0078125, 0.0078125, 0.0351562, 0.0585938, 0.0859375,
0.1171875, 0.1171875, 0.1484375, 0.1835938, 0.2187500, 0.2539062,
0.2929688, 0.3320312, 0.3750000, 0.4179688, 0.4609375, 0.5039062,
0.5507812, 0.5976562, 0.6445312, 0.6914062, 0.6914062, 0.7382812,
0.7890625, 0.8359375, 0.8867188, 0.9335938, 0.9804688, 0.9609375,
0.9140625, 0.8671875, 0.8203125, 0.7734375, 0.7265625, 0.6835938,
0.6406250, 0.6406250, 0.5976562, 0.5546875, 0.5156250, 0.4765625,
0.4414062, 0.4062500, 0.3710938, 0.3398438, 0.3085938, 0.2812500,
0.2578125, 0.2304688, 0.2109375, 0.2109375, 0.1914062, 0.1718750,
0.1562500, 0.1445312, 0.1328125, 0.1250000, 0.1210938, 0.1171875,
0.1132812, 0.1171875, 0.1210938, 0.1250000, 0.1328125, 0.1445312,
0.1445312, 0.1562500, 0.1718750, 0.1914062, 0.2109375, 0.2304688,
0.2578125, 0.2812500, 0.3085938, 0.3398438, 0.3710938, 0.4062500,
0.4414062, 0.4765625, 0.5156250, 0.5156250, 0.5546875, 0.5976562,
0.6406250, 0.6835938, 0.7265625, 0.7734375, 0.8203125, 0.8671875,
0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625,
0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625,
0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625,
0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625,
0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625,
0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625,
0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625, 0.9140625,
0.9140625, 0.0000000, 0.9960938, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 31 :: Peppermint ###
color_map_luts['idl31'] = \
(
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.3125000, 0.3125000,
0.3125000, 0.3125000, 0.6250000, 0.6250000, 0.6250000, 0.6250000,
0.9375000, 0.9375000, 0.9375000, 0.9375000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.3125000, 0.3125000, 0.3125000, 0.3125000,
0.6250000, 0.6250000, 0.6250000, 0.6250000, 0.9375000, 0.9375000,
0.9375000, 0.9375000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.3125000, 0.3125000, 0.3125000, 0.3125000, 0.6250000, 0.6250000,
0.6250000, 0.6250000, 0.9375000, 0.9375000, 0.9375000, 0.9375000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.3125000, 0.3125000,
0.3125000, 0.3125000, 0.6250000, 0.6250000, 0.6250000, 0.6250000,
0.9375000, 0.9375000, 0.9375000, 0.9375000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.3125000, 0.3125000, 0.3125000, 0.3125000,
0.6250000, 0.6250000, 0.6250000, 0.6250000, 0.9375000, 0.9375000,
0.9375000, 0.9375000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.3125000, 0.3125000, 0.3125000, 0.3125000, 0.6250000, 0.6250000,
0.6250000, 0.6250000, 0.9375000, 0.9375000, 0.9375000, 0.9375000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.3125000, 0.3125000,
0.3125000, 0.3125000, 0.6250000, 0.6250000, 0.6250000, 0.6250000,
0.9375000, 0.9375000, 0.9375000, 0.9375000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.3125000, 0.3125000, 0.3125000, 0.3125000,
0.6250000, 0.6250000, 0.6250000, 0.6250000, 0.9375000, 0.9375000,
0.9375000, 0.9375000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.3125000, 0.3125000, 0.3125000, 0.3125000, 0.6250000, 0.6250000,
0.6250000, 0.6250000, 0.9375000, 0.9375000, 0.9375000, 0.9375000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.3125000, 0.3125000,
0.3125000, 0.3125000, 0.6250000, 0.6250000, 0.6250000, 0.6250000,
0.9375000, 0.9375000, 0.9375000, 0.9375000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.3125000, 0.3125000, 0.3125000, 0.3125000,
0.6250000, 0.6250000, 0.6250000, 0.6250000, 0.9375000, 0.9375000,
0.9375000, 0.9375000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.3125000, 0.3125000, 0.3125000, 0.3125000, 0.6250000, 0.6250000,
0.6250000, 0.6250000, 0.9375000, 0.9375000, 0.9375000, 0.9375000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.3125000, 0.3125000,
0.3164062, 0.3125000, 0.6250000, 0.6250000, 0.6250000, 0.6250000,
0.9375000, 0.9375000, 0.9375000, 0.9375000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.3125000, 0.3125000, 0.3125000, 0.3125000,
0.6250000, 0.6250000, 0.6250000, 0.6250000, 0.9375000, 0.9375000,
0.9375000, 0.9375000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.3125000, 0.3125000, 0.3125000, 0.3125000, 0.6250000, 0.6250000,
0.6250000, 0.6250000, 0.9375000, 0.9375000, 0.9375000, 0.9375000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.3125000, 0.3125000,
0.3125000, 0.3125000, 0.6250000, 0.6250000, 0.6250000, 0.6250000,
0.9375000, 0.9375000, 0.9375000, 0.9375000]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0625000, 0.0625000,
0.0625000, 0.0625000, 0.0625000, 0.0625000, 0.0625000, 0.0625000,
0.0625000, 0.0625000, 0.0625000, 0.0625000, 0.0625000, 0.0625000,
0.0625000, 0.0625000, 0.1250000, 0.1250000, 0.1250000, 0.1250000,
0.1250000, 0.1250000, 0.1250000, 0.1250000, 0.1250000, 0.1250000,
0.1250000, 0.1250000, 0.1250000, 0.1250000, 0.1250000, 0.1250000,
0.1875000, 0.1875000, 0.1875000, 0.1875000, 0.1875000, 0.1875000,
0.1875000, 0.1875000, 0.1875000, 0.1875000, 0.1875000, 0.1875000,
0.1875000, 0.1875000, 0.1875000, 0.1875000, 0.2500000, 0.2500000,
0.2500000, 0.2500000, 0.2500000, 0.2500000, 0.2500000, 0.2500000,
0.2500000, 0.2500000, 0.2500000, 0.2500000, 0.2500000, 0.2500000,
0.2500000, 0.2500000, 0.3125000, 0.3125000, 0.3125000, 0.3125000,
0.3125000, 0.3125000, 0.3125000, 0.3125000, 0.3125000, 0.3125000,
0.3125000, 0.3125000, 0.3125000, 0.3125000, 0.3125000, 0.3125000,
0.3750000, 0.3750000, 0.3750000, 0.3750000, 0.3750000, 0.3750000,
0.3750000, 0.3750000, 0.3750000, 0.3750000, 0.3750000, 0.3750000,
0.3750000, 0.3750000, 0.3750000, 0.3750000, 0.4375000, 0.4375000,
0.4375000, 0.4375000, 0.4375000, 0.4375000, 0.4375000, 0.4375000,
0.4375000, 0.4375000, 0.4375000, 0.4375000, 0.4375000, 0.4375000,
0.4375000, 0.4375000, 0.5000000, 0.5000000, 0.5000000, 0.5000000,
0.5000000, 0.5000000, 0.5000000, 0.5000000, 0.5000000, 0.5000000,
0.5000000, 0.5000000, 0.5000000, 0.5000000, 0.5000000, 0.5000000,
0.5625000, 0.5625000, 0.5625000, 0.5625000, 0.5625000, 0.5625000,
0.5625000, 0.5625000, 0.5625000, 0.5625000, 0.5625000, 0.5625000,
0.5625000, 0.5625000, 0.5625000, 0.5625000, 0.6250000, 0.6250000,
0.6250000, 0.6250000, 0.6250000, 0.6250000, 0.6250000, 0.6250000,
0.6250000, 0.6250000, 0.6250000, 0.6250000, 0.6250000, 0.6250000,
0.6250000, 0.6250000, 0.6875000, 0.6875000, 0.6875000, 0.6875000,
0.6875000, 0.6875000, 0.6875000, 0.6875000, 0.6875000, 0.6875000,
0.6875000, 0.6875000, 0.6875000, 0.6875000, 0.6875000, 0.6875000,
0.7500000, 0.7500000, 0.7500000, 0.7500000, 0.7500000, 0.7500000,
0.7539062, 0.7500000, 0.7500000, 0.7500000, 0.7500000, 0.7500000,
0.7500000, 0.7500000, 0.7500000, 0.7500000, 0.8125000, 0.8125000,
0.8125000, 0.8125000, 0.8125000, 0.8125000, 0.8125000, 0.8125000,
0.8125000, 0.8125000, 0.8125000, 0.8125000, 0.8125000, 0.8125000,
0.8125000, 0.8125000, 0.8750000, 0.8750000, 0.8750000, 0.8750000,
0.8750000, 0.8750000, 0.8750000, 0.8750000, 0.8750000, 0.8750000,
0.8750000, 0.8750000, 0.8750000, 0.8750000, 0.8750000, 0.8750000,
0.9375000, 0.9375000, 0.9375000, 0.9375000, 0.9375000, 0.9375000,
0.9375000, 0.9375000, 0.9375000, 0.9375000, 0.9375000, 0.9375000,
0.9375000, 0.9375000, 0.9375000, 0.9375000]),
array([ 0.3125000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.9375000, 0.0000000, 0.3125000,
0.6250000, 0.9375000, 0.0000000, 0.3125000, 0.6250000, 0.9375000,
0.0000000, 0.3125000, 0.6250000, 0.6250000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 32 :: Plasma ###
color_map_luts['idl32'] = \
(
array([ 0.0078125, 0.0078125, 0.0117188, 0.0156250, 0.0195312, 0.0234375,
0.0273438, 0.0312500, 0.0351562, 0.0507812, 0.0429688, 0.0507812,
0.0546875, 0.0585938, 0.0625000, 0.0664062, 0.0703125, 0.0742188,
0.0820312, 0.0859375, 0.0898438, 0.0937500, 0.0976562, 0.1015625,
0.1054688, 0.1093750, 0.1171875, 0.1210938, 0.1250000, 0.1289062,
0.1328125, 0.1367188, 0.1406250, 0.1445312, 0.1484375, 0.1523438,
0.1523438, 0.1562500, 0.1601562, 0.1640625, 0.1679688, 0.1718750,
0.1757812, 0.1796875, 0.1796875, 0.1835938, 0.1875000, 0.1914062,
0.1953125, 0.1992188, 0.2031250, 0.2070312, 0.2109375, 0.2148438,
0.2187500, 0.2226562, 0.2265625, 0.2304688, 0.2343750, 0.2382812,
0.2421875, 0.2460938, 0.2539062, 0.2578125, 0.2617188, 0.2656250,
0.2734375, 0.2773438, 0.2812500, 0.2890625, 0.2929688, 0.3007812,
0.3046875, 0.3085938, 0.3164062, 0.3203125, 0.3281250, 0.3320312,
0.3359375, 0.3437500, 0.3476562, 0.3515625, 0.3593750, 0.3632812,
0.3671875, 0.3710938, 0.3789062, 0.3828125, 0.3867188, 0.3906250,
0.3945312, 0.3984375, 0.4023438, 0.4023438, 0.4062500, 0.4101562,
0.4140625, 0.4179688, 0.4179688, 0.4218750, 0.4218750, 0.4257812,
0.4296875, 0.4296875, 0.4335938, 0.4335938, 0.4375000, 0.4414062,
0.4414062, 0.4453125, 0.4453125, 0.4492188, 0.4531250, 0.4570312,
0.4570312, 0.4609375, 0.4648438, 0.4687500, 0.4726562, 0.4765625,
0.4804688, 0.4843750, 0.4882812, 0.4960938, 0.5000000, 0.5039062,
0.5117188, 0.5156250, 0.5234375, 0.5273438, 0.5351562, 0.5390625,
0.5468750, 0.5546875, 0.5585938, 0.5664062, 0.5742188, 0.5820312,
0.5859375, 0.5937500, 0.6015625, 0.6054688, 0.6132812, 0.6171875,
0.6250000, 0.6289062, 0.6367188, 0.6406250, 0.6484375, 0.6523438,
0.6562500, 0.6601562, 0.6640625, 0.6679688, 0.6718750, 0.6757812,
0.6796875, 0.6796875, 0.6835938, 0.6835938, 0.6875000, 0.6875000,
0.6914062, 0.6914062, 0.6953125, 0.6953125, 0.6953125, 0.6953125,
0.6992188, 0.6992188, 0.6992188, 0.7031250, 0.7031250, 0.7031250,
0.7070312, 0.7070312, 0.7109375, 0.7109375, 0.7148438, 0.7187500,
0.7187500, 0.7226562, 0.7265625, 0.7304688, 0.7343750, 0.7421875,
0.7460938, 0.7500000, 0.7578125, 0.7617188, 0.7695312, 0.7734375,
0.7812500, 0.7890625, 0.7968750, 0.8046875, 0.8125000, 0.8203125,
0.8281250, 0.8359375, 0.8437500, 0.8515625, 0.8593750, 0.8671875,
0.8750000, 0.8789062, 0.8867188, 0.8945312, 0.9023438, 0.9062500,
0.9140625, 0.9218750, 0.9257812, 0.9296875, 0.9335938, 0.9414062,
0.9453125, 0.9453125, 0.9492188, 0.9531250, 0.9570312, 0.9570312,
0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9609375, 0.9648438,
0.9648438, 0.9648438, 0.9648438, 0.9648438, 0.9648438, 0.9648438,
0.9648438, 0.9648438, 0.9648438, 0.9648438, 0.9648438, 0.9648438,
0.9687500, 0.9687500, 0.9687500, 0.9726562, 0.9765625, 0.9804688,
0.9804688, 0.9843750, 0.9921875, 0.9960938, 0.9921875, 0.9843750,
0.9804688, 0.9726562, 0.9648438, 0.9648438]),
array([ 0.0742188, 0.0742188, 0.0781250, 0.0859375, 0.0976562, 0.1132812,
0.1289062, 0.1484375, 0.1718750, 0.1992188, 0.2265625, 0.2539062,
0.2851562, 0.3164062, 0.3476562, 0.3828125, 0.4140625, 0.4492188,
0.4843750, 0.5156250, 0.5468750, 0.5781250, 0.6054688, 0.6328125,
0.6601562, 0.6835938, 0.7031250, 0.7187500, 0.7343750, 0.7460938,
0.7539062, 0.7578125, 0.7617188, 0.7578125, 0.7539062, 0.7460938,
0.7343750, 0.7187500, 0.7031250, 0.6835938, 0.6601562, 0.6328125,
0.6054688, 0.5781250, 0.5468750, 0.5156250, 0.4843750, 0.4492188,
0.4179688, 0.3828125, 0.3476562, 0.3164062, 0.2851562, 0.2539062,
0.2265625, 0.1992188, 0.1718750, 0.1484375, 0.1289062, 0.1132812,
0.0976562, 0.0859375, 0.0781250, 0.0742188, 0.0742188, 0.0742188,
0.0781250, 0.0859375, 0.0976562, 0.1132812, 0.1289062, 0.1484375,
0.1718750, 0.1992188, 0.2265625, 0.2539062, 0.2851562, 0.3164062,
0.3476562, 0.3828125, 0.4179688, 0.4492188, 0.4843750, 0.5156250,
0.5468750, 0.5781250, 0.6054688, 0.6328125, 0.6601562, 0.6835938,
0.7031250, 0.7187500, 0.7343750, 0.7460938, 0.7539062, 0.7578125,
0.7617188, 0.7578125, 0.7539062, 0.7460938, 0.7343750, 0.7187500,
0.7031250, 0.6835938, 0.6601562, 0.6328125, 0.6054688, 0.5781250,
0.5468750, 0.5156250, 0.4843750, 0.4492188, 0.4140625, 0.3828125,
0.3476562, 0.3164062, 0.2851562, 0.2539062, 0.2265625, 0.1992188,
0.1718750, 0.1484375, 0.1289062, 0.1132812, 0.0976562, 0.0859375,
0.0781250, 0.0742188, 0.0742188, 0.0742188, 0.0781250, 0.0859375,
0.0976562, 0.1132812, 0.1289062, 0.1484375, 0.1718750, 0.1992188,
0.2265625, 0.2539062, 0.2851562, 0.3164062, 0.3476562, 0.3828125,
0.4179688, 0.4492188, 0.4843750, 0.5156250, 0.5468750, 0.5781250,
0.6054688, 0.6328125, 0.6601562, 0.6835938, 0.7031250, 0.7187500,
0.7343750, 0.7460938, 0.7539062, 0.7578125, 0.7617188, 0.7578125,
0.7539062, 0.7460938, 0.7343750, 0.7187500, 0.7031250, 0.6835938,
0.6601562, 0.6328125, 0.6054688, 0.5781250, 0.5468750, 0.5156250,
0.4843750, 0.4492188, 0.4140625, 0.3828125, 0.3476562, 0.3164062,
0.2851562, 0.2539062, 0.2265625, 0.1992188, 0.1718750, 0.1484375,
0.1289062, 0.1132812, 0.0976562, 0.0859375, 0.0781250, 0.0742188,
0.0742188, 0.0742188, 0.0781250, 0.0859375, 0.0976562, 0.1132812,
0.1289062, 0.1484375, 0.1718750, 0.1992188, 0.2265625, 0.2539062,
0.2851562, 0.3164062, 0.3476562, 0.3828125, 0.4179688, 0.4492188,
0.4843750, 0.5156250, 0.5468750, 0.5781250, 0.6054688, 0.6328125,
0.6601562, 0.6835938, 0.7031250, 0.7187500, 0.7343750, 0.7460938,
0.7539062, 0.7578125, 0.7617188, 0.7578125, 0.7539062, 0.7460938,
0.7343750, 0.7187500, 0.7031250, 0.6835938, 0.6601562, 0.6328125,
0.6054688, 0.5781250, 0.5468750, 0.5156250, 0.4843750, 0.4492188,
0.4140625, 0.3828125, 0.3476562, 0.3164062, 0.2851562, 0.2539062,
0.2265625, 0.1992188, 0.1718750, 0.1484375, 0.1289062, 0.1132812,
0.0976562, 0.0859375, 0.0781250, 0.0781250]),
array([ 0.0273438, 0.0273438, 0.0429688, 0.0585938, 0.0742188, 0.0859375,
0.1015625, 0.1171875, 0.1328125, 0.1523438, 0.1679688, 0.1835938,
0.1992188, 0.2148438, 0.2304688, 0.2460938, 0.2617188, 0.2773438,
0.2929688, 0.3046875, 0.3203125, 0.3359375, 0.3515625, 0.3632812,
0.3789062, 0.3906250, 0.4023438, 0.4179688, 0.4296875, 0.4414062,
0.4531250, 0.4648438, 0.4765625, 0.4882812, 0.5000000, 0.5078125,
0.5195312, 0.5312500, 0.5429688, 0.5507812, 0.5625000, 0.5742188,
0.5859375, 0.5976562, 0.6093750, 0.6210938, 0.6328125, 0.6445312,
0.6601562, 0.6718750, 0.6875000, 0.7031250, 0.7187500, 0.7343750,
0.7500000, 0.7656250, 0.7851562, 0.8007812, 0.8203125, 0.8398438,
0.8593750, 0.8789062, 0.8984375, 0.9179688, 0.9414062, 0.9609375,
0.9804688, 0.9882812, 0.9687500, 0.9492188, 0.9257812, 0.9062500,
0.8867188, 0.8671875, 0.8476562, 0.8281250, 0.8085938, 0.7890625,
0.7734375, 0.7578125, 0.7421875, 0.7265625, 0.7109375, 0.6992188,
0.6875000, 0.6718750, 0.6640625, 0.6523438, 0.6445312, 0.6328125,
0.6250000, 0.6171875, 0.6132812, 0.6054688, 0.6015625, 0.5937500,
0.5898438, 0.5859375, 0.5781250, 0.5742188, 0.5703125, 0.5625000,
0.5585938, 0.5507812, 0.5468750, 0.5390625, 0.5312500, 0.5234375,
0.5156250, 0.5039062, 0.4921875, 0.4804688, 0.4687500, 0.4531250,
0.4414062, 0.4218750, 0.4062500, 0.3867188, 0.3671875, 0.3476562,
0.3242188, 0.3046875, 0.2812500, 0.2539062, 0.2304688, 0.2070312,
0.1796875, 0.1523438, 0.1250000, 0.0976562, 0.0703125, 0.0429688,
0.0195312, 0.9882812, 0.9609375, 0.9335938, 0.9101562, 0.8867188,
0.8632812, 0.8398438, 0.8203125, 0.8007812, 0.7812500, 0.7617188,
0.7460938, 0.7343750, 0.7187500, 0.7070312, 0.6953125, 0.6875000,
0.6796875, 0.6718750, 0.6679688, 0.6640625, 0.6601562, 0.6601562,
0.6562500, 0.6562500, 0.6562500, 0.6562500, 0.6601562, 0.6601562,
0.6601562, 0.6601562, 0.6640625, 0.6640625, 0.6640625, 0.6601562,
0.6601562, 0.6562500, 0.6523438, 0.6484375, 0.6406250, 0.6328125,
0.6250000, 0.6132812, 0.6015625, 0.5859375, 0.5703125, 0.5507812,
0.5312500, 0.5117188, 0.4882812, 0.4648438, 0.4375000, 0.4140625,
0.3828125, 0.3554688, 0.3242188, 0.2929688, 0.2617188, 0.2265625,
0.1953125, 0.1601562, 0.1289062, 0.0937500, 0.0625000, 0.0312500,
0.9960938, 0.9648438, 0.9335938, 0.9062500, 0.8789062, 0.8554688,
0.8320312, 0.8085938, 0.7890625, 0.7695312, 0.7539062, 0.7382812,
0.7265625, 0.7148438, 0.7070312, 0.6992188, 0.6953125, 0.6914062,
0.6914062, 0.6914062, 0.6953125, 0.6992188, 0.7031250, 0.7070312,
0.7148438, 0.7187500, 0.7265625, 0.7343750, 0.7421875, 0.7500000,
0.7539062, 0.7617188, 0.7656250, 0.7695312, 0.7734375, 0.7734375,
0.7734375, 0.7734375, 0.7695312, 0.7617188, 0.7539062, 0.7460938,
0.7343750, 0.7187500, 0.7031250, 0.6835938, 0.6601562, 0.6367188,
0.6093750, 0.5820312, 0.5546875, 0.5195312, 0.4882812, 0.4531250,
0.4179688, 0.3789062, 0.3398438, 0.3398438]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 33 :: Blue-Red ###
color_map_luts['idl33'] = \
(
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0117188, 0.0273438, 0.0429688,
0.0585938, 0.0742188, 0.0898438, 0.1054688, 0.1210938, 0.1367188,
0.1523438, 0.1679688, 0.1835938, 0.1992188, 0.2148438, 0.2304688,
0.2460938, 0.2617188, 0.2773438, 0.2929688, 0.3085938, 0.3242188,
0.3398438, 0.3554688, 0.3710938, 0.3867188, 0.4023438, 0.4179688,
0.4335938, 0.4492188, 0.4648438, 0.4804688, 0.4960938, 0.5117188,
0.5273438, 0.5429688, 0.5585938, 0.5742188, 0.5898438, 0.6054688,
0.6210938, 0.6367188, 0.6523438, 0.6679688, 0.6835938, 0.6992188,
0.7148438, 0.7304688, 0.7460938, 0.7617188, 0.7773438, 0.7929688,
0.8085938, 0.8242188, 0.8398438, 0.8554688, 0.8710938, 0.8867188,
0.9023438, 0.9179688, 0.9335938, 0.9492188, 0.9648438, 0.9804688,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9765625,
0.9609375, 0.9414062, 0.9257812, 0.9101562, 0.8906250, 0.8750000,
0.8554688, 0.8398438, 0.8242188, 0.8046875, 0.7890625, 0.7695312,
0.7539062, 0.7382812, 0.7187500, 0.7031250, 0.6835938, 0.6679688,
0.6523438, 0.6328125, 0.6171875, 0.5976562, 0.5820312, 0.5664062,
0.5468750, 0.5312500, 0.5117188, 0.5117188]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0117188, 0.0273438,
0.0429688, 0.0585938, 0.0742188, 0.0898438, 0.1054688, 0.1210938,
0.1367188, 0.1523438, 0.1679688, 0.1835938, 0.1992188, 0.2148438,
0.2304688, 0.2460938, 0.2617188, 0.2773438, 0.2929688, 0.3085938,
0.3242188, 0.3398438, 0.3554688, 0.3710938, 0.3867188, 0.4023438,
0.4179688, 0.4335938, 0.4492188, 0.4648438, 0.4804688, 0.4960938,
0.5117188, 0.5273438, 0.5429688, 0.5585938, 0.5742188, 0.5898438,
0.6054688, 0.6210938, 0.6367188, 0.6523438, 0.6679688, 0.6835938,
0.6992188, 0.7148438, 0.7304688, 0.7460938, 0.7617188, 0.7773438,
0.7929688, 0.8085938, 0.8242188, 0.8398438, 0.8554688, 0.8710938,
0.8867188, 0.9023438, 0.9179688, 0.9335938, 0.9492188, 0.9648438,
0.9804688, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9804688, 0.9648438, 0.9492188, 0.9335938, 0.9179688,
0.9023438, 0.8867188, 0.8710938, 0.8554688, 0.8398438, 0.8242188,
0.8085938, 0.7929688, 0.7773438, 0.7617188, 0.7460938, 0.7304688,
0.7148438, 0.6992188, 0.6835938, 0.6679688, 0.6523438, 0.6367188,
0.6210938, 0.6054688, 0.5898438, 0.5742188, 0.5585938, 0.5429688,
0.5273438, 0.5117188, 0.4960938, 0.4804688, 0.4648438, 0.4492188,
0.4335938, 0.4179688, 0.4023438, 0.3867188, 0.3710938, 0.3554688,
0.3398438, 0.3242188, 0.3085938, 0.2929688, 0.2773438, 0.2617188,
0.2460938, 0.2304688, 0.2148438, 0.1992188, 0.1835938, 0.1679688,
0.1523438, 0.1367188, 0.1210938, 0.1054688, 0.0898438, 0.0742188,
0.0585938, 0.0429688, 0.0273438, 0.0117188, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 0.5117188, 0.5117188, 0.5273438, 0.5429688, 0.5585938, 0.5742188,
0.5898438, 0.6054688, 0.6210938, 0.6367188, 0.6523438, 0.6679688,
0.6835938, 0.6992188, 0.7148438, 0.7304688, 0.7460938, 0.7617188,
0.7773438, 0.7929688, 0.8085938, 0.8242188, 0.8398438, 0.8554688,
0.8710938, 0.8867188, 0.9023438, 0.9179688, 0.9335938, 0.9492188,
0.9648438, 0.9804688, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9804688, 0.9648438, 0.9492188,
0.9335938, 0.9179688, 0.9023438, 0.8867188, 0.8710938, 0.8554688,
0.8398438, 0.8242188, 0.8085938, 0.7929688, 0.7773438, 0.7617188,
0.7460938, 0.7304688, 0.7148438, 0.6992188, 0.6835938, 0.6679688,
0.6523438, 0.6367188, 0.6210938, 0.6054688, 0.5898438, 0.5742188,
0.5585938, 0.5429688, 0.5273438, 0.5117188, 0.4960938, 0.4804688,
0.4648438, 0.4492188, 0.4335938, 0.4179688, 0.4023438, 0.3867188,
0.3710938, 0.3554688, 0.3398438, 0.3242188, 0.3085938, 0.2929688,
0.2773438, 0.2617188, 0.2460938, 0.2304688, 0.2148438, 0.1992188,
0.1835938, 0.1679688, 0.1523438, 0.1367188, 0.1210938, 0.1054688,
0.0898438, 0.0742188, 0.0585938, 0.0429688, 0.0273438, 0.0117188,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 34 :: Rainbow ###
color_map_luts['idl34'] = \
(
array([ 0.4843750, 0.4843750, 0.4687500, 0.4492188, 0.4335938, 0.4140625,
0.3984375, 0.3789062, 0.3632812, 0.3437500, 0.3281250, 0.3085938,
0.2929688, 0.2734375, 0.2578125, 0.2382812, 0.2226562, 0.2031250,
0.1875000, 0.1679688, 0.1523438, 0.1328125, 0.1171875, 0.0976562,
0.0820312, 0.0625000, 0.0468750, 0.0273438, 0.0117188, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0039062, 0.0195312,
0.0507812, 0.0546875, 0.0742188, 0.0898438, 0.1093750, 0.1250000,
0.1445312, 0.1601562, 0.1796875, 0.1953125, 0.2148438, 0.2304688,
0.2500000, 0.2656250, 0.2851562, 0.3007812, 0.3203125, 0.3359375,
0.3554688, 0.3710938, 0.3906250, 0.4062500, 0.4257812, 0.4414062,
0.4609375, 0.4804688, 0.4960938, 0.5156250, 0.5312500, 0.5507812,
0.5664062, 0.5859375, 0.6015625, 0.6210938, 0.6367188, 0.6562500,
0.6718750, 0.6914062, 0.7070312, 0.7265625, 0.7421875, 0.7617188,
0.7773438, 0.7968750, 0.8125000, 0.8320312, 0.8476562, 0.8671875,
0.8828125, 0.9023438, 0.9179688, 0.9375000, 0.9531250, 0.9726562,
0.9882812, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0078125,
0.0234375, 0.0429688, 0.0585938, 0.0781250, 0.0937500, 0.1132812,
0.1289062, 0.1484375, 0.1640625, 0.1835938, 0.1992188, 0.2187500,
0.2343750, 0.2539062, 0.2695312, 0.2890625, 0.3046875, 0.3242188,
0.3398438, 0.3593750, 0.3750000, 0.3945312, 0.4101562, 0.4296875,
0.4453125, 0.4648438, 0.4804688, 0.5000000, 0.5156250, 0.5351562,
0.5507812, 0.5703125, 0.5859375, 0.6054688, 0.6210938, 0.6406250,
0.6562500, 0.6757812, 0.6914062, 0.7109375, 0.7265625, 0.7460938,
0.7617188, 0.7812500, 0.7968750, 0.8164062, 0.8320312, 0.8515625,
0.8671875, 0.8867188, 0.9023438, 0.9218750, 0.9414062, 0.9570312,
0.9765625, 0.9921875, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9843750, 0.9687500, 0.9492188, 0.9335938, 0.9140625,
0.8984375, 0.8789062, 0.8632812, 0.8437500, 0.8281250, 0.8085938,
0.7929688, 0.7734375, 0.7578125, 0.7382812, 0.7226562, 0.7031250,
0.6875000, 0.6679688, 0.6523438, 0.6328125, 0.6171875, 0.5976562,
0.5820312, 0.5625000, 0.5468750, 0.5273438, 0.5117188, 0.4921875,
0.4765625, 0.4570312, 0.4414062, 0.4218750, 0.4062500, 0.3867188,
0.3710938, 0.3515625, 0.3359375, 0.3164062, 0.3007812, 0.2812500,
0.2656250, 0.2460938, 0.2304688, 0.2109375, 0.1953125, 0.1757812,
0.1601562, 0.1406250, 0.1250000, 0.1054688, 0.0898438, 0.0703125,
0.0546875, 0.0351562, 0.0195312, 0.0195312]),
array([ 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9804688, 0.9648438, 0.9453125, 0.9296875,
0.9101562, 0.8945312, 0.8750000, 0.8593750, 0.8398438, 0.8242188,
0.8046875, 0.7890625, 0.7695312, 0.7539062, 0.7343750, 0.7187500,
0.6992188, 0.6835938, 0.6640625, 0.6484375, 0.6289062, 0.6132812,
0.5937500, 0.5781250, 0.5585938, 0.5429688, 0.5234375, 0.5078125,
0.4882812, 0.4726562, 0.4531250, 0.4375000, 0.4179688, 0.4023438,
0.3828125, 0.3671875, 0.3476562, 0.3320312, 0.3125000, 0.2968750,
0.2773438, 0.2617188, 0.2421875, 0.2265625, 0.2070312, 0.1914062,
0.1718750, 0.1562500, 0.1367188, 0.1210938, 0.1015625, 0.0859375,
0.0664062, 0.0507812, 0.0312500, 0.0156250, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 35 :: Blue Waves ###
color_map_luts['idl35'] = \
(
array([ 0.3203125, 0.3203125, 0.3007812, 0.2851562, 0.2656250, 0.2460938,
0.2304688, 0.2109375, 0.1953125, 0.1796875, 0.1640625, 0.1484375,
0.1328125, 0.1171875, 0.1015625, 0.0898438, 0.0742188, 0.0625000,
0.0507812, 0.0507812, 0.0312500, 0.0195312, 0.0117188, 0.0039062,
0.0000000, 0.0078125, 0.0117188, 0.0195312, 0.0234375, 0.0234375,
0.0273438, 0.0273438, 0.0312500, 0.0273438, 0.0273438, 0.0234375,
0.0234375, 0.0195312, 0.0117188, 0.0078125, 0.0000000, 0.0039062,
0.0117188, 0.0195312, 0.0312500, 0.0507812, 0.0507812, 0.0625000,
0.0742188, 0.0898438, 0.1015625, 0.1171875, 0.1328125, 0.1484375,
0.1640625, 0.1796875, 0.1953125, 0.2109375, 0.2304688, 0.2460938,
0.2656250, 0.2851562, 0.3007812, 0.3203125, 0.3398438, 0.3554688,
0.3750000, 0.3906250, 0.4101562, 0.4296875, 0.4453125, 0.4648438,
0.4804688, 0.4960938, 0.5117188, 0.5273438, 0.5429688, 0.5585938,
0.5742188, 0.5859375, 0.6015625, 0.6132812, 0.6250000, 0.6367188,
0.6445312, 0.6562500, 0.6640625, 0.6718750, 0.6796875, 0.6875000,
0.6914062, 0.6992188, 0.7031250, 0.7031250, 0.7070312, 0.7070312,
0.7109375, 0.7070312, 0.7070312, 0.7031250, 0.7031250, 0.6992188,
0.6914062, 0.6875000, 0.6796875, 0.6718750, 0.6640625, 0.6562500,
0.6445312, 0.6367188, 0.6250000, 0.6132812, 0.6015625, 0.5859375,
0.5742188, 0.5585938, 0.5429688, 0.5273438, 0.5117188, 0.4960938,
0.4804688, 0.4648438, 0.4453125, 0.4296875, 0.4101562, 0.3906250,
0.3750000, 0.3554688, 0.3359375, 0.3203125, 0.3007812, 0.2851562,
0.2656250, 0.2460938, 0.2304688, 0.2109375, 0.1953125, 0.1796875,
0.1640625, 0.1484375, 0.1328125, 0.1171875, 0.1015625, 0.0898438,
0.0742188, 0.0625000, 0.0507812, 0.0507812, 0.0312500, 0.0195312,
0.0117188, 0.0039062, 0.0000000, 0.0078125, 0.0117188, 0.0195312,
0.0234375, 0.0234375, 0.0273438, 0.0273438, 0.0312500, 0.0273438,
0.0273438, 0.0234375, 0.0234375, 0.0195312, 0.0117188, 0.0078125,
0.0000000, 0.0039062, 0.0117188, 0.0195312, 0.0312500, 0.0507812,
0.0507812, 0.0625000, 0.0742188, 0.0898438, 0.1015625, 0.1171875,
0.1328125, 0.1484375, 0.1640625, 0.1796875, 0.1953125, 0.2109375,
0.2304688, 0.2460938, 0.2656250, 0.2851562, 0.3007812, 0.3203125,
0.3398438, 0.3554688, 0.3750000, 0.3906250, 0.4101562, 0.4296875,
0.4453125, 0.4648438, 0.4804688, 0.4960938, 0.5117188, 0.5273438,
0.5429688, 0.5585938, 0.5742188, 0.5859375, 0.6015625, 0.6132812,
0.6250000, 0.6367188, 0.6445312, 0.6562500, 0.6640625, 0.6718750,
0.6796875, 0.6875000, 0.6914062, 0.6992188, 0.7031250, 0.7031250,
0.7070312, 0.7070312, 0.7109375, 0.7070312, 0.7070312, 0.7031250,
0.7031250, 0.6992188, 0.6914062, 0.6875000, 0.6796875, 0.6718750,
0.6640625, 0.6562500, 0.6445312, 0.6367188, 0.6250000, 0.6132812,
0.6015625, 0.5859375, 0.5742188, 0.5585938, 0.5429688, 0.5273438,
0.5117188, 0.4960938, 0.4804688, 0.4648438, 0.4453125, 0.4296875,
0.4101562, 0.3906250, 0.3750000, 0.3750000]),
array([ 0.0000000, 0.0000000, 0.0039062, 0.0039062, 0.0078125, 0.0078125,
0.0117188, 0.0156250, 0.0156250, 0.0195312, 0.0234375, 0.0234375,
0.0273438, 0.0312500, 0.0351562, 0.0507812, 0.0429688, 0.0468750,
0.0507812, 0.0585938, 0.0625000, 0.0664062, 0.0742188, 0.0781250,
0.0859375, 0.0898438, 0.0976562, 0.1054688, 0.1093750, 0.1171875,
0.1250000, 0.1328125, 0.1367188, 0.1445312, 0.1523438, 0.1601562,
0.1679688, 0.1757812, 0.1796875, 0.1875000, 0.1953125, 0.1992188,
0.2070312, 0.2148438, 0.2187500, 0.2265625, 0.2304688, 0.2343750,
0.2382812, 0.2421875, 0.2460938, 0.2500000, 0.2539062, 0.2578125,
0.2578125, 0.2617188, 0.2617188, 0.2617188, 0.2617188, 0.2617188,
0.2617188, 0.2617188, 0.2617188, 0.2578125, 0.2578125, 0.2539062,
0.2500000, 0.2500000, 0.2460938, 0.2421875, 0.2382812, 0.2343750,
0.2304688, 0.2226562, 0.2187500, 0.2148438, 0.2109375, 0.2070312,
0.2031250, 0.1992188, 0.1914062, 0.1875000, 0.1835938, 0.1835938,
0.1796875, 0.1757812, 0.1718750, 0.1718750, 0.1718750, 0.1679688,
0.1679688, 0.1679688, 0.1679688, 0.1718750, 0.1718750, 0.1757812,
0.1796875, 0.1835938, 0.1875000, 0.1953125, 0.1992188, 0.2070312,
0.2148438, 0.2226562, 0.2343750, 0.2421875, 0.2539062, 0.2656250,
0.2773438, 0.2890625, 0.3046875, 0.3164062, 0.3320312, 0.3437500,
0.3593750, 0.3750000, 0.3906250, 0.4062500, 0.4218750, 0.4375000,
0.4531250, 0.4687500, 0.4843750, 0.5000000, 0.5156250, 0.5312500,
0.5468750, 0.5625000, 0.5781250, 0.5898438, 0.6015625, 0.6171875,
0.6289062, 0.6406250, 0.6484375, 0.6601562, 0.6679688, 0.6757812,
0.6835938, 0.6875000, 0.6953125, 0.6992188, 0.7031250, 0.7031250,
0.7031250, 0.7031250, 0.7031250, 0.6992188, 0.6992188, 0.6953125,
0.6875000, 0.6835938, 0.6757812, 0.6679688, 0.6601562, 0.6484375,
0.6406250, 0.6289062, 0.6171875, 0.6054688, 0.5937500, 0.5781250,
0.5664062, 0.5507812, 0.5390625, 0.5234375, 0.5117188, 0.4960938,
0.4843750, 0.4687500, 0.4570312, 0.4414062, 0.4296875, 0.4179688,
0.4062500, 0.3945312, 0.3867188, 0.3789062, 0.3710938, 0.3632812,
0.3554688, 0.3515625, 0.3476562, 0.3437500, 0.3437500, 0.3437500,
0.3437500, 0.3437500, 0.3476562, 0.3554688, 0.3593750, 0.3671875,
0.3750000, 0.3867188, 0.3984375, 0.4101562, 0.4257812, 0.4414062,
0.4570312, 0.4765625, 0.4960938, 0.5156250, 0.5351562, 0.5546875,
0.5781250, 0.6015625, 0.6250000, 0.6484375, 0.6757812, 0.6992188,
0.7265625, 0.7500000, 0.7773438, 0.8007812, 0.8281250, 0.8515625,
0.8789062, 0.9023438, 0.9257812, 0.9492188, 0.9687500, 0.9921875,
0.9804688, 0.9609375, 0.9414062, 0.9257812, 0.9101562, 0.8945312,
0.8828125, 0.8710938, 0.8593750, 0.8515625, 0.8437500, 0.8398438,
0.8359375, 0.8320312, 0.8320312, 0.8359375, 0.8359375, 0.8437500,
0.8476562, 0.8554688, 0.8671875, 0.8750000, 0.8906250, 0.9023438,
0.9179688, 0.9335938, 0.9531250, 0.9687500, 0.9882812, 0.9804688,
0.9609375, 0.9375000, 0.9140625, 0.9140625]),
array([ 0.8359375, 0.8359375, 0.7890625, 0.7382812, 0.6914062, 0.6445312,
0.5976562, 0.5507812, 0.5039062, 0.4609375, 0.4179688, 0.3750000,
0.3320312, 0.2929688, 0.2539062, 0.2187500, 0.1835938, 0.1484375,
0.1171875, 0.0859375, 0.0585938, 0.0351562, 0.0078125, 0.0078125,
0.0273438, 0.0468750, 0.0625000, 0.0742188, 0.0859375, 0.0937500,
0.0976562, 0.1015625, 0.1054688, 0.1015625, 0.0976562, 0.0937500,
0.0859375, 0.0742188, 0.0625000, 0.0468750, 0.0273438, 0.0078125,
0.0078125, 0.0351562, 0.0585938, 0.0859375, 0.1171875, 0.1484375,
0.1835938, 0.2187500, 0.2539062, 0.2929688, 0.3320312, 0.3750000,
0.4179688, 0.4609375, 0.5039062, 0.5507812, 0.5976562, 0.6445312,
0.6914062, 0.7382812, 0.7890625, 0.8359375, 0.8867188, 0.9335938,
0.9804688, 0.9609375, 0.9140625, 0.8671875, 0.8203125, 0.7734375,
0.7265625, 0.6835938, 0.6406250, 0.5976562, 0.5546875, 0.5156250,
0.4765625, 0.4414062, 0.4062500, 0.3710938, 0.3398438, 0.3085938,
0.2812500, 0.2578125, 0.2304688, 0.2109375, 0.1914062, 0.1718750,
0.1562500, 0.1445312, 0.1328125, 0.1250000, 0.1210938, 0.1171875,
0.1132812, 0.1171875, 0.1210938, 0.1250000, 0.1328125, 0.1445312,
0.1562500, 0.1718750, 0.1914062, 0.2109375, 0.2304688, 0.2578125,
0.2812500, 0.3085938, 0.3398438, 0.3710938, 0.4062500, 0.4414062,
0.4765625, 0.5156250, 0.5546875, 0.5976562, 0.6406250, 0.6835938,
0.7265625, 0.7734375, 0.8203125, 0.8671875, 0.9140625, 0.9609375,
0.9804688, 0.9335938, 0.8828125, 0.8359375, 0.7890625, 0.7382812,
0.6914062, 0.6445312, 0.5976562, 0.5507812, 0.5039062, 0.4609375,
0.4179688, 0.3750000, 0.3320312, 0.2929688, 0.2539062, 0.2187500,
0.1835938, 0.1484375, 0.1171875, 0.0859375, 0.0585938, 0.0351562,
0.0078125, 0.0078125, 0.0273438, 0.0468750, 0.0625000, 0.0742188,
0.0859375, 0.0937500, 0.0976562, 0.1015625, 0.1054688, 0.1015625,
0.0976562, 0.0937500, 0.0859375, 0.0742188, 0.0625000, 0.0468750,
0.0273438, 0.0078125, 0.0078125, 0.0351562, 0.0585938, 0.0859375,
0.1171875, 0.1484375, 0.1835938, 0.2187500, 0.2539062, 0.2929688,
0.3320312, 0.3750000, 0.4179688, 0.4609375, 0.5039062, 0.5507812,
0.5976562, 0.6445312, 0.6914062, 0.7382812, 0.7890625, 0.8359375,
0.8867188, 0.9335938, 0.9804688, 0.9609375, 0.9140625, 0.8671875,
0.8203125, 0.7734375, 0.7265625, 0.6835938, 0.6406250, 0.5976562,
0.5546875, 0.5156250, 0.4765625, 0.4414062, 0.4062500, 0.3710938,
0.3398438, 0.3085938, 0.2812500, 0.2578125, 0.2304688, 0.2109375,
0.1914062, 0.1718750, 0.1562500, 0.1445312, 0.1328125, 0.1250000,
0.1210938, 0.1171875, 0.1132812, 0.1171875, 0.1210938, 0.1250000,
0.1328125, 0.1445312, 0.1562500, 0.1718750, 0.1914062, 0.2109375,
0.2304688, 0.2578125, 0.2812500, 0.3085938, 0.3398438, 0.3710938,
0.4062500, 0.4414062, 0.4765625, 0.5156250, 0.5546875, 0.5976562,
0.6406250, 0.6835938, 0.7265625, 0.7734375, 0.8203125, 0.8671875,
0.9140625, 0.9609375, 0.9804688, 0.9804688]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 36 :: Volcano ###
color_map_luts['idl36'] = \
(
array([ 0.2500000, 0.2500000, 0.2343750, 0.2226562, 0.2109375, 0.1992188,
0.1875000, 0.1757812, 0.1640625, 0.1562500, 0.1445312, 0.1367188,
0.1250000, 0.1171875, 0.1093750, 0.1015625, 0.0937500, 0.0859375,
0.0781250, 0.0742188, 0.0664062, 0.0625000, 0.0546875, 0.0507812,
0.0468750, 0.0429688, 0.0507812, 0.0351562, 0.0351562, 0.0312500,
0.0273438, 0.0273438, 0.0273438, 0.0273438, 0.0273438, 0.0273438,
0.0273438, 0.0273438, 0.0273438, 0.0312500, 0.0312500, 0.0351562,
0.0507812, 0.0429688, 0.0468750, 0.0507812, 0.0546875, 0.0585938,
0.0664062, 0.0703125, 0.0781250, 0.0859375, 0.0898438, 0.0976562,
0.1054688, 0.1171875, 0.1250000, 0.1328125, 0.1445312, 0.1523438,
0.1640625, 0.1718750, 0.1835938, 0.1953125, 0.2070312, 0.2187500,
0.2304688, 0.2460938, 0.2578125, 0.2734375, 0.2851562, 0.3007812,
0.3125000, 0.3281250, 0.3437500, 0.3593750, 0.3750000, 0.3906250,
0.4062500, 0.4257812, 0.4414062, 0.4570312, 0.4765625, 0.4921875,
0.5117188, 0.5312500, 0.5468750, 0.5664062, 0.5859375, 0.6054688,
0.6250000, 0.6445312, 0.6640625, 0.6835938, 0.7031250, 0.7265625,
0.7460938, 0.7656250, 0.7851562, 0.8085938, 0.8281250, 0.8515625,
0.8710938, 0.8945312, 0.9140625, 0.9375000, 0.9609375, 0.9804688,
0.9882812, 0.9648438, 0.9414062, 0.9218750, 0.8984375, 0.8750000,
0.8515625, 0.8320312, 0.8085938, 0.7851562, 0.7617188, 0.7382812,
0.7148438, 0.6953125, 0.6718750, 0.6484375, 0.6250000, 0.6015625,
0.5781250, 0.5585938, 0.5351562, 0.5117188, 0.4882812, 0.4687500,
0.4453125, 0.4218750, 0.4023438, 0.3789062, 0.3593750, 0.3359375,
0.3125000, 0.2929688, 0.2734375, 0.2500000, 0.2304688, 0.2070312,
0.1875000, 0.1679688, 0.1484375, 0.1289062, 0.1093750, 0.0898438,
0.0703125, 0.0507812, 0.0312500, 0.0117188, 0.0039062, 0.0195312,
0.0507812, 0.0585938, 0.0742188, 0.0898438, 0.1093750, 0.1250000,
0.1406250, 0.1562500, 0.1718750, 0.1875000, 0.2031250, 0.2187500,
0.2343750, 0.2460938, 0.2617188, 0.2734375, 0.2851562, 0.3007812,
0.3125000, 0.3242188, 0.3359375, 0.3476562, 0.3593750, 0.3671875,
0.3789062, 0.3906250, 0.3984375, 0.4062500, 0.4179688, 0.4257812,
0.4335938, 0.4414062, 0.4453125, 0.4531250, 0.4609375, 0.4648438,
0.4726562, 0.4765625, 0.4804688, 0.4843750, 0.4882812, 0.4921875,
0.4960938, 0.5000000, 0.5000000, 0.5039062, 0.5039062, 0.5039062,
0.5039062, 0.5039062, 0.5039062, 0.5039062, 0.5039062, 0.5039062,
0.5000000, 0.4960938, 0.4960938, 0.4921875, 0.4882812, 0.4843750,
0.4804688, 0.4765625, 0.4687500, 0.4648438, 0.4570312, 0.4531250,
0.4453125, 0.4375000, 0.4296875, 0.4218750, 0.4140625, 0.4023438,
0.3945312, 0.3867188, 0.3750000, 0.3632812, 0.3554688, 0.3437500,
0.3320312, 0.3203125, 0.3085938, 0.2929688, 0.2812500, 0.2695312,
0.2539062, 0.2421875, 0.2265625, 0.2109375, 0.1953125, 0.1835938,
0.1679688, 0.1523438, 0.1328125, 0.1171875, 0.1015625, 0.0859375,
0.0664062, 0.0507812, 0.0312500, 0.0312500]),
array([ 0.1367188, 0.1367188, 0.1562500, 0.1718750, 0.1914062, 0.2109375,
0.2265625, 0.2460938, 0.2617188, 0.2812500, 0.2968750, 0.3125000,
0.3281250, 0.3476562, 0.3632812, 0.3750000, 0.3906250, 0.4062500,
0.4218750, 0.4335938, 0.4492188, 0.4609375, 0.4726562, 0.4843750,
0.4960938, 0.5078125, 0.5195312, 0.5273438, 0.5351562, 0.5468750,
0.5546875, 0.5625000, 0.5664062, 0.5742188, 0.5781250, 0.5859375,
0.5898438, 0.5937500, 0.5937500, 0.5976562, 0.5976562, 0.5976562,
0.5976562, 0.5976562, 0.5976562, 0.5976562, 0.5937500, 0.5898438,
0.5859375, 0.5820312, 0.5781250, 0.5703125, 0.5664062, 0.5585938,
0.5507812, 0.5429688, 0.5351562, 0.5234375, 0.5156250, 0.5039062,
0.4921875, 0.4804688, 0.4687500, 0.4570312, 0.4414062, 0.4296875,
0.4140625, 0.4023438, 0.3867188, 0.3710938, 0.3554688, 0.3398438,
0.3242188, 0.3085938, 0.2890625, 0.2734375, 0.2578125, 0.2382812,
0.2226562, 0.2031250, 0.1835938, 0.1679688, 0.1484375, 0.1289062,
0.1132812, 0.0937500, 0.0742188, 0.0585938, 0.0507812, 0.0195312,
0.0039062, 0.0117188, 0.0273438, 0.0468750, 0.0625000, 0.0781250,
0.0976562, 0.1132812, 0.1289062, 0.1445312, 0.1601562, 0.1757812,
0.1914062, 0.2070312, 0.2187500, 0.2343750, 0.2460938, 0.2578125,
0.2695312, 0.2812500, 0.2929688, 0.3046875, 0.3125000, 0.3242188,
0.3320312, 0.3398438, 0.3476562, 0.3554688, 0.3593750, 0.3671875,
0.3710938, 0.3750000, 0.3789062, 0.3828125, 0.3867188, 0.3867188,
0.3867188, 0.3867188, 0.3867188, 0.3867188, 0.3867188, 0.3828125,
0.3789062, 0.3789062, 0.3710938, 0.3671875, 0.3632812, 0.3554688,
0.3476562, 0.3437500, 0.3359375, 0.3242188, 0.3164062, 0.3046875,
0.2968750, 0.2851562, 0.2734375, 0.2617188, 0.2500000, 0.2382812,
0.2226562, 0.2109375, 0.1953125, 0.1796875, 0.1640625, 0.1484375,
0.1328125, 0.1171875, 0.1015625, 0.0859375, 0.0664062, 0.0507812,
0.0351562, 0.0156250, 0.0000000, 0.0156250, 0.0351562, 0.0507812,
0.0703125, 0.0898438, 0.1054688, 0.1250000, 0.1445312, 0.1601562,
0.1796875, 0.1992188, 0.2148438, 0.2343750, 0.2500000, 0.2695312,
0.2851562, 0.3007812, 0.3203125, 0.3359375, 0.3515625, 0.3671875,
0.3828125, 0.3984375, 0.4101562, 0.4257812, 0.4375000, 0.4531250,
0.4648438, 0.4765625, 0.4882812, 0.5000000, 0.5117188, 0.5195312,
0.5312500, 0.5390625, 0.5468750, 0.5546875, 0.5625000, 0.5703125,
0.5742188, 0.5820312, 0.5859375, 0.5898438, 0.5937500, 0.5937500,
0.5976562, 0.5976562, 0.5976562, 0.5976562, 0.5976562, 0.5976562,
0.5937500, 0.5937500, 0.5898438, 0.5859375, 0.5820312, 0.5742188,
0.5703125, 0.5625000, 0.5546875, 0.5468750, 0.5390625, 0.5312500,
0.5195312, 0.5117188, 0.5000000, 0.4882812, 0.4765625, 0.4648438,
0.4531250, 0.4375000, 0.4257812, 0.4101562, 0.3945312, 0.3828125,
0.3671875, 0.3515625, 0.3359375, 0.3164062, 0.3007812, 0.2851562,
0.2656250, 0.2500000, 0.2343750, 0.2148438, 0.1953125, 0.1796875,
0.1601562, 0.1445312, 0.1250000, 0.1250000]),
array([ 0.4531250, 0.4531250, 0.4101562, 0.3671875, 0.3281250, 0.2890625,
0.2500000, 0.2148438, 0.1796875, 0.1484375, 0.1171875, 0.0937500,
0.0703125, 0.0468750, 0.0312500, 0.0195312, 0.0078125, 0.0000000,
0.0000000, 0.0000000, 0.0039062, 0.0117188, 0.0234375, 0.0507812,
0.0546875, 0.0781250, 0.1015625, 0.1289062, 0.1601562, 0.1953125,
0.2304688, 0.2656250, 0.3046875, 0.3437500, 0.3867188, 0.4257812,
0.4687500, 0.5117188, 0.5546875, 0.5976562, 0.6367188, 0.6796875,
0.7187500, 0.7539062, 0.7890625, 0.8242188, 0.8515625, 0.8828125,
0.9062500, 0.9296875, 0.9492188, 0.9648438, 0.9765625, 0.9843750,
0.9882812, 0.9882812, 0.9882812, 0.9804688, 0.9726562, 0.9609375,
0.9414062, 0.9218750, 0.8984375, 0.8750000, 0.8437500, 0.8125000,
0.7812500, 0.7421875, 0.7070312, 0.6679688, 0.6250000, 0.5859375,
0.5429688, 0.5000000, 0.4570312, 0.4140625, 0.3750000, 0.3320312,
0.2929688, 0.2539062, 0.2187500, 0.1835938, 0.1523438, 0.1210938,
0.0937500, 0.0703125, 0.0507812, 0.0351562, 0.0195312, 0.0078125,
0.0000000, 0.0000000, 0.0000000, 0.0039062, 0.0117188, 0.0195312,
0.0351562, 0.0546875, 0.0742188, 0.0976562, 0.1250000, 0.1562500,
0.1875000, 0.2226562, 0.2617188, 0.2968750, 0.3398438, 0.3789062,
0.4218750, 0.4648438, 0.5078125, 0.5468750, 0.5898438, 0.6328125,
0.6718750, 0.7109375, 0.7500000, 0.7851562, 0.8164062, 0.8476562,
0.8789062, 0.9023438, 0.9257812, 0.9453125, 0.9609375, 0.9726562,
0.9843750, 0.9882812, 0.9921875, 0.9882812, 0.9843750, 0.9726562,
0.9609375, 0.9453125, 0.9257812, 0.9023438, 0.8789062, 0.8476562,
0.8164062, 0.7851562, 0.7500000, 0.7109375, 0.6718750, 0.6328125,
0.5898438, 0.5468750, 0.5078125, 0.4648438, 0.4218750, 0.3789062,
0.3398438, 0.2968750, 0.2617188, 0.2226562, 0.1875000, 0.1562500,
0.1250000, 0.0976562, 0.0742188, 0.0546875, 0.0351562, 0.0195312,
0.0117188, 0.0039062, 0.0000000, 0.0000000, 0.0000000, 0.0078125,
0.0195312, 0.0351562, 0.0507812, 0.0703125, 0.0937500, 0.1210938,
0.1523438, 0.1835938, 0.2187500, 0.2539062, 0.2929688, 0.3320312,
0.3750000, 0.4140625, 0.4570312, 0.5000000, 0.5429688, 0.5859375,
0.6250000, 0.6679688, 0.7070312, 0.7421875, 0.7812500, 0.8125000,
0.8437500, 0.8750000, 0.8984375, 0.9218750, 0.9414062, 0.9609375,
0.9726562, 0.9804688, 0.9882812, 0.9882812, 0.9882812, 0.9843750,
0.9765625, 0.9648438, 0.9492188, 0.9296875, 0.9062500, 0.8828125,
0.8515625, 0.8242188, 0.7890625, 0.7539062, 0.7187500, 0.6796875,
0.6367188, 0.5976562, 0.5546875, 0.5117188, 0.4687500, 0.4257812,
0.3867188, 0.3437500, 0.3046875, 0.2656250, 0.2304688, 0.1953125,
0.1601562, 0.1289062, 0.1015625, 0.0781250, 0.0546875, 0.0507812,
0.0234375, 0.0117188, 0.0039062, 0.0000000, 0.0000000, 0.0000000,
0.0078125, 0.0195312, 0.0312500, 0.0468750, 0.0703125, 0.0937500,
0.1171875, 0.1484375, 0.1796875, 0.2148438, 0.2500000, 0.2890625,
0.3281250, 0.3671875, 0.4101562, 0.4101562]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 37 :: Waves ###
color_map_luts['idl37'] = \
(
array([ 0.4843750, 0.4843750, 0.4726562, 0.4609375, 0.4492188, 0.4375000,
0.4257812, 0.4140625, 0.4023438, 0.3906250, 0.3789062, 0.3671875,
0.3554688, 0.3437500, 0.3320312, 0.3203125, 0.3085938, 0.2968750,
0.2851562, 0.2734375, 0.2656250, 0.2539062, 0.2421875, 0.2343750,
0.2226562, 0.2109375, 0.2031250, 0.1914062, 0.1835938, 0.1757812,
0.1640625, 0.1562500, 0.1484375, 0.1406250, 0.1289062, 0.1210938,
0.1132812, 0.1054688, 0.0976562, 0.0937500, 0.0859375, 0.0781250,
0.0742188, 0.0664062, 0.0585938, 0.0546875, 0.0507812, 0.0429688,
0.0507812, 0.0351562, 0.0312500, 0.0273438, 0.0234375, 0.0195312,
0.0156250, 0.0156250, 0.0117188, 0.0078125, 0.0078125, 0.0039062,
0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0078125, 0.0078125,
0.0117188, 0.0156250, 0.0156250, 0.0195312, 0.0234375, 0.0273438,
0.0312500, 0.0351562, 0.0507812, 0.0429688, 0.0507812, 0.0546875,
0.0585938, 0.0664062, 0.0742188, 0.0781250, 0.0859375, 0.0937500,
0.0976562, 0.1054688, 0.1132812, 0.1210938, 0.1289062, 0.1406250,
0.1484375, 0.1562500, 0.1640625, 0.1757812, 0.1835938, 0.1914062,
0.2031250, 0.2109375, 0.2226562, 0.2343750, 0.2421875, 0.2539062,
0.2656250, 0.2734375, 0.2851562, 0.2968750, 0.3085938, 0.3203125,
0.3320312, 0.3437500, 0.3554688, 0.3671875, 0.3789062, 0.3906250,
0.4023438, 0.4140625, 0.4257812, 0.4375000, 0.4492188, 0.4609375,
0.4726562, 0.4843750, 0.5000000, 0.5117188, 0.5234375, 0.5351562,
0.5468750, 0.5585938, 0.5703125, 0.5820312, 0.5937500, 0.6054688,
0.6171875, 0.6289062, 0.6406250, 0.6523438, 0.6640625, 0.6757812,
0.6875000, 0.6992188, 0.7109375, 0.7226562, 0.7304688, 0.7421875,
0.7539062, 0.7617188, 0.7734375, 0.7851562, 0.7929688, 0.8046875,
0.8125000, 0.8203125, 0.8320312, 0.8398438, 0.8476562, 0.8554688,
0.8671875, 0.8750000, 0.8828125, 0.8906250, 0.8984375, 0.9023438,
0.9101562, 0.9179688, 0.9218750, 0.9296875, 0.9375000, 0.9414062,
0.9453125, 0.9531250, 0.9570312, 0.9609375, 0.9648438, 0.9687500,
0.9726562, 0.9765625, 0.9804688, 0.9804688, 0.9843750, 0.9882812,
0.9882812, 0.9921875, 0.9921875, 0.9921875, 0.9921875, 0.9921875,
0.9960938, 0.9921875, 0.9921875, 0.9921875, 0.9921875, 0.9921875,
0.9882812, 0.9882812, 0.9843750, 0.9804688, 0.9804688, 0.9765625,
0.9726562, 0.9687500, 0.9648438, 0.9609375, 0.9570312, 0.9531250,
0.9453125, 0.9414062, 0.9375000, 0.9296875, 0.9218750, 0.9179688,
0.9101562, 0.9023438, 0.8984375, 0.8906250, 0.8828125, 0.8750000,
0.8671875, 0.8554688, 0.8476562, 0.8398438, 0.8320312, 0.8203125,
0.8125000, 0.8046875, 0.7929688, 0.7851562, 0.7734375, 0.7617188,
0.7539062, 0.7421875, 0.7304688, 0.7226562, 0.7109375, 0.6992188,
0.6875000, 0.6757812, 0.6640625, 0.6523438, 0.6406250, 0.6289062,
0.6171875, 0.6054688, 0.5937500, 0.5820312, 0.5703125, 0.5585938,
0.5468750, 0.5351562, 0.5234375, 0.5234375]),
array([ 0.4726562, 0.4726562, 0.5507812, 0.6054688, 0.6250000, 0.6054688,
0.5507812, 0.4726562, 0.3789062, 0.2812500, 0.2031250, 0.1484375,
0.1328125, 0.1484375, 0.2031250, 0.2812500, 0.3750000, 0.4726562,
0.5507812, 0.6054688, 0.6250000, 0.6054688, 0.5507812, 0.4726562,
0.3789062, 0.2812500, 0.2031250, 0.1484375, 0.1328125, 0.1484375,
0.2031250, 0.2812500, 0.3750000, 0.4726562, 0.5507812, 0.6054688,
0.6250000, 0.6054688, 0.5507812, 0.4726562, 0.3789062, 0.2812500,
0.2031250, 0.1484375, 0.1328125, 0.1484375, 0.2031250, 0.2812500,
0.3750000, 0.4726562, 0.5507812, 0.6054688, 0.6250000, 0.6054688,
0.5507812, 0.4726562, 0.3789062, 0.2812500, 0.2031250, 0.1484375,
0.1328125, 0.1484375, 0.2031250, 0.2812500, 0.3750000, 0.4726562,
0.5507812, 0.6054688, 0.6250000, 0.6054688, 0.5507812, 0.4726562,
0.3789062, 0.2812500, 0.2031250, 0.1484375, 0.1328125, 0.1484375,
0.2031250, 0.2812500, 0.3750000, 0.4726562, 0.5507812, 0.6054688,
0.6250000, 0.6054688, 0.5507812, 0.4726562, 0.3789062, 0.2812500,
0.2031250, 0.1484375, 0.1328125, 0.1484375, 0.2031250, 0.2812500,
0.3750000, 0.4726562, 0.5507812, 0.6054688, 0.6250000, 0.6054688,
0.5507812, 0.4726562, 0.3789062, 0.2812500, 0.2031250, 0.1484375,
0.1328125, 0.1484375, 0.2031250, 0.2812500, 0.3750000, 0.4726562,
0.5507812, 0.6054688, 0.6250000, 0.6054688, 0.5507812, 0.4726562,
0.3750000, 0.2812500, 0.2031250, 0.1484375, 0.1328125, 0.1484375,
0.2031250, 0.2812500, 0.3789062, 0.4726562, 0.5507812, 0.6054688,
0.6250000, 0.6054688, 0.5507812, 0.4726562, 0.3750000, 0.2812500,
0.2031250, 0.1484375, 0.1328125, 0.1484375, 0.2031250, 0.2812500,
0.3789062, 0.4726562, 0.5507812, 0.6054688, 0.6250000, 0.6054688,
0.5507812, 0.4726562, 0.3750000, 0.2812500, 0.2031250, 0.1484375,
0.1328125, 0.1484375, 0.2031250, 0.2812500, 0.3789062, 0.4726562,
0.5507812, 0.6054688, 0.6250000, 0.6054688, 0.5507812, 0.4726562,
0.3750000, 0.2812500, 0.2031250, 0.1484375, 0.1328125, 0.1484375,
0.2031250, 0.2812500, 0.3789062, 0.4726562, 0.5507812, 0.6054688,
0.6250000, 0.6054688, 0.5507812, 0.4726562, 0.3750000, 0.2812500,
0.2031250, 0.1484375, 0.1328125, 0.1484375, 0.2031250, 0.2812500,
0.3789062, 0.4726562, 0.5507812, 0.6054688, 0.6250000, 0.6054688,
0.5507812, 0.4726562, 0.3750000, 0.2812500, 0.2031250, 0.1484375,
0.1328125, 0.1484375, 0.2031250, 0.2812500, 0.3789062, 0.4726562,
0.5507812, 0.6054688, 0.6250000, 0.6054688, 0.5507812, 0.4726562,
0.3750000, 0.2812500, 0.2031250, 0.1484375, 0.1328125, 0.1484375,
0.2031250, 0.2812500, 0.3789062, 0.4726562, 0.5507812, 0.6054688,
0.6250000, 0.6054688, 0.5507812, 0.4726562, 0.3750000, 0.2812500,
0.2031250, 0.1484375, 0.1328125, 0.1484375, 0.2031250, 0.2812500,
0.3789062, 0.4726562, 0.5507812, 0.6054688, 0.6250000, 0.6054688,
0.5507812, 0.4726562, 0.3750000, 0.2812500, 0.2031250, 0.1484375,
0.1328125, 0.1484375, 0.2031250, 0.2031250]),
array([ 0.5117188, 0.5117188, 0.5234375, 0.5351562, 0.5468750, 0.5585938,
0.5703125, 0.5820312, 0.5937500, 0.6054688, 0.6171875, 0.6289062,
0.6406250, 0.6523438, 0.6640625, 0.6757812, 0.6875000, 0.6992188,
0.7109375, 0.7226562, 0.7304688, 0.7421875, 0.7539062, 0.7617188,
0.7734375, 0.7851562, 0.7929688, 0.8046875, 0.8125000, 0.8203125,
0.8320312, 0.8398438, 0.8476562, 0.8554688, 0.8671875, 0.8750000,
0.8828125, 0.8906250, 0.8984375, 0.9023438, 0.9101562, 0.9179688,
0.9218750, 0.9296875, 0.9375000, 0.9414062, 0.9453125, 0.9531250,
0.9570312, 0.9609375, 0.9648438, 0.9687500, 0.9726562, 0.9765625,
0.9804688, 0.9804688, 0.9843750, 0.9882812, 0.9882812, 0.9921875,
0.9921875, 0.9921875, 0.9921875, 0.9921875, 0.9960938, 0.9921875,
0.9921875, 0.9921875, 0.9921875, 0.9921875, 0.9882812, 0.9882812,
0.9843750, 0.9804688, 0.9804688, 0.9765625, 0.9726562, 0.9687500,
0.9648438, 0.9609375, 0.9570312, 0.9531250, 0.9453125, 0.9414062,
0.9375000, 0.9296875, 0.9218750, 0.9179688, 0.9101562, 0.9023438,
0.8984375, 0.8906250, 0.8828125, 0.8750000, 0.8671875, 0.8554688,
0.8476562, 0.8398438, 0.8320312, 0.8203125, 0.8125000, 0.8046875,
0.7929688, 0.7851562, 0.7734375, 0.7617188, 0.7539062, 0.7421875,
0.7304688, 0.7226562, 0.7109375, 0.6992188, 0.6875000, 0.6757812,
0.6640625, 0.6523438, 0.6406250, 0.6289062, 0.6171875, 0.6054688,
0.5937500, 0.5820312, 0.5703125, 0.5585938, 0.5468750, 0.5351562,
0.5234375, 0.5117188, 0.4960938, 0.4843750, 0.4726562, 0.4609375,
0.4492188, 0.4375000, 0.4257812, 0.4140625, 0.4023438, 0.3906250,
0.3789062, 0.3671875, 0.3554688, 0.3437500, 0.3320312, 0.3203125,
0.3085938, 0.2968750, 0.2851562, 0.2734375, 0.2656250, 0.2539062,
0.2421875, 0.2343750, 0.2226562, 0.2109375, 0.2031250, 0.1914062,
0.1835938, 0.1757812, 0.1640625, 0.1562500, 0.1484375, 0.1406250,
0.1289062, 0.1210938, 0.1132812, 0.1054688, 0.0976562, 0.0937500,
0.0859375, 0.0781250, 0.0742188, 0.0664062, 0.0585938, 0.0546875,
0.0507812, 0.0429688, 0.0507812, 0.0351562, 0.0312500, 0.0273438,
0.0234375, 0.0195312, 0.0156250, 0.0156250, 0.0117188, 0.0078125,
0.0078125, 0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062, 0.0039062,
0.0078125, 0.0078125, 0.0117188, 0.0156250, 0.0156250, 0.0195312,
0.0234375, 0.0273438, 0.0312500, 0.0351562, 0.0507812, 0.0429688,
0.0507812, 0.0546875, 0.0585938, 0.0664062, 0.0742188, 0.0781250,
0.0859375, 0.0937500, 0.0976562, 0.1054688, 0.1132812, 0.1210938,
0.1289062, 0.1406250, 0.1484375, 0.1562500, 0.1640625, 0.1757812,
0.1835938, 0.1914062, 0.2031250, 0.2109375, 0.2226562, 0.2343750,
0.2421875, 0.2539062, 0.2656250, 0.2734375, 0.2851562, 0.2968750,
0.3085938, 0.3203125, 0.3320312, 0.3437500, 0.3554688, 0.3671875,
0.3789062, 0.3906250, 0.4023438, 0.4140625, 0.4257812, 0.4375000,
0.4492188, 0.4609375, 0.4726562, 0.4726562]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 38 :: Rainbow18 ###
color_map_luts['idl38'] = \
(
array([ 0.0000000, 0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.6835938, 0.6835938, 0.6835938, 0.6835938, 0.6835938, 0.6835938,
0.6835938, 0.6835938, 0.6835938, 0.6835938, 0.6835938, 0.6835938,
0.6835938, 0.6835938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.5468750, 0.5468750, 0.5468750, 0.5468750,
0.5468750, 0.5468750, 0.5468750, 0.5468750, 0.5468750, 0.5468750,
0.5468750, 0.5468750, 0.5468750, 0.5468750, 0.5468750, 0.5468750,
0.6640625, 0.6640625, 0.6640625, 0.6640625, 0.6640625, 0.6640625,
0.6640625, 0.6640625, 0.6640625, 0.6640625, 0.6640625, 0.6640625,
0.6640625, 0.6640625, 0.6640625, 0.6640625, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.6250000, 0.6250000, 0.6250000, 0.6250000, 0.6250000, 0.6250000,
0.6250000, 0.6250000, 0.6250000, 0.6250000, 0.6250000, 0.6250000,
0.6250000, 0.6250000, 0.6250000, 0.6250000, 0.4882812, 0.4882812,
0.4882812, 0.4882812, 0.4882812, 0.4882812, 0.4882812, 0.4882812,
0.4882812, 0.4882812, 0.4882812, 0.4882812, 0.4882812, 0.4882812,
0.4882812, 0.4882812, 0.1953125, 0.1953125, 0.1953125, 0.1953125,
0.1953125, 0.1953125, 0.1953125, 0.1953125, 0.1953125, 0.1953125,
0.1953125, 0.1953125, 0.1953125, 0.1953125, 0.1953125, 0.1953125,
0.1953125, 0.1953125, 0.1953125, 0.1953125, 0.1953125, 0.1953125,
0.1953125, 0.1953125, 0.1953125, 0.1953125, 0.1953125, 0.1953125,
0.1953125, 0.1953125, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375, 0.5859375,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.7812500,
0.7812500, 0.7812500, 0.7812500, 0.7812500, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.4687500, 0.4687500, 0.4687500, 0.4687500, 0.4687500, 0.4687500,
0.4687500, 0.4687500, 0.4687500, 0.4687500, 0.4687500, 0.4687500,
0.4687500, 0.4687500, 0.4687500, 0.4687500, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250, 0.3906250,
0.2929688, 0.2929688, 0.2929688, 0.2929688, 0.2929688, 0.2929688,
0.2929688, 0.2929688, 0.2929688, 0.2929688, 0.2929688, 0.2929688,
0.2929688, 0.2929688, 0.9960938, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 39 :: Rainbow + white ###
color_map_luts['idl39'] = \
(
array([ 0.0000000, 0.0156250, 0.0351562, 0.0507812, 0.0703125, 0.0859375,
0.1054688, 0.1210938, 0.1406250, 0.1562500, 0.1757812, 0.1953125,
0.2265625, 0.2382812, 0.2500000, 0.2656250, 0.2695312, 0.2812500,
0.2890625, 0.3007812, 0.3085938, 0.3125000, 0.3203125, 0.3242188,
0.3281250, 0.3359375, 0.3398438, 0.3437500, 0.3359375, 0.3398438,
0.3398438, 0.3398438, 0.3320312, 0.3281250, 0.3281250, 0.3281250,
0.3085938, 0.3046875, 0.3007812, 0.2968750, 0.2773438, 0.2734375,
0.2656250, 0.2578125, 0.2343750, 0.2265625, 0.2148438, 0.1796875,
0.1679688, 0.1562500, 0.1406250, 0.1289062, 0.0976562, 0.0820312,
0.0625000, 0.0468750, 0.0156250, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0156250, 0.0312500, 0.0468750,
0.0820312, 0.0976562, 0.1132812, 0.1640625, 0.1796875, 0.1992188,
0.2148438, 0.2460938, 0.2617188, 0.2812500, 0.2968750, 0.3125000,
0.3476562, 0.3632812, 0.3789062, 0.4296875, 0.4453125, 0.4648438,
0.4804688, 0.5117188, 0.5273438, 0.5468750, 0.5625000, 0.5976562,
0.6132812, 0.6289062, 0.6445312, 0.6953125, 0.7109375, 0.7304688,
0.7460938, 0.7773438, 0.7929688, 0.8125000, 0.8281250, 0.8632812,
0.8789062, 0.8945312, 0.9453125, 0.9609375, 0.9765625, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0156250, 0.0625000,
0.0820312, 0.0976562, 0.1132812, 0.1484375, 0.1640625, 0.1796875,
0.1992188, 0.2148438, 0.2460938, 0.2617188, 0.2812500, 0.3281250,
0.3476562, 0.3632812, 0.3789062, 0.4140625, 0.4296875, 0.4453125,
0.4648438, 0.4960938, 0.5117188, 0.5273438, 0.5468750, 0.5937500,
0.6132812, 0.6289062, 0.6445312, 0.6796875, 0.6953125, 0.7109375,
0.7304688, 0.7617188, 0.7773438, 0.7929688, 0.8437500, 0.8593750,
0.8789062, 0.8945312, 0.9101562, 0.9453125, 0.9609375, 0.9765625,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9765625, 0.9453125, 0.9296875, 0.9101562, 0.8945312, 0.8632812,
0.8437500, 0.8281250, 0.7773438, 0.7617188, 0.7460938, 0.7304688,
0.6953125, 0.6796875, 0.6640625, 0.6445312, 0.6289062, 0.5976562,
0.5781250, 0.5625000, 0.5117188, 0.4960938, 0.4804688, 0.4648438,
0.4296875, 0.4140625, 0.3984375, 0.3789062, 0.3476562, 0.3320312,
0.3125000, 0.2968750, 0.2460938, 0.2304688, 0.2148438, 0.1992188,
0.1640625, 0.1484375, 0.1328125, 0.1132812, 0.0820312, 0.0664062,
0.0468750, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.9960938]),
array([ 0.0000000, 0.0117188, 0.0273438, 0.0390625, 0.0546875, 0.0742188,
0.0898438, 0.1093750, 0.1250000, 0.1484375, 0.1679688, 0.1875000,
0.2304688, 0.2460938, 0.2656250, 0.2812500, 0.3007812, 0.3164062,
0.3359375, 0.3554688, 0.3710938, 0.3906250, 0.4062500, 0.4257812,
0.4609375, 0.4765625, 0.4960938, 0.5156250, 0.5312500, 0.5507812,
0.5664062, 0.5859375, 0.6015625, 0.6210938, 0.6367188, 0.6562500,
0.6914062, 0.7109375, 0.7265625, 0.7460938, 0.7617188, 0.7812500,
0.7968750, 0.8164062, 0.8359375, 0.8515625, 0.8710938, 0.9062500,
0.9218750, 0.9414062, 0.9570312, 0.9765625, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9609375, 0.9453125, 0.9296875, 0.8789062, 0.8593750,
0.8437500, 0.8281250, 0.7929688, 0.7773438, 0.7617188, 0.7460938,
0.7304688, 0.6953125, 0.6796875, 0.6640625, 0.6132812, 0.5937500,
0.5781250, 0.5625000, 0.5273438, 0.5117188, 0.4960938, 0.4804688,
0.4453125, 0.4296875, 0.4140625, 0.3984375, 0.3476562, 0.3281250,
0.3125000, 0.2968750, 0.2617188, 0.2460938, 0.2304688, 0.2148438,
0.1796875, 0.1640625, 0.1484375, 0.0976562, 0.0820312, 0.0625000,
0.0468750, 0.0312500, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.9960938]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
### IDL colormap 40 :: Rainbow + black ###
color_map_luts['idl40'] = \
(
array([ 0.0000000, 0.0156250, 0.0351562, 0.0507812, 0.0703125, 0.0859375,
0.1054688, 0.1210938, 0.1406250, 0.1562500, 0.1757812, 0.1953125,
0.2265625, 0.2382812, 0.2500000, 0.2656250, 0.2695312, 0.2812500,
0.2890625, 0.3007812, 0.3085938, 0.3125000, 0.3203125, 0.3242188,
0.3281250, 0.3359375, 0.3398438, 0.3437500, 0.3359375, 0.3398438,
0.3398438, 0.3398438, 0.3320312, 0.3281250, 0.3281250, 0.3281250,
0.3085938, 0.3046875, 0.3007812, 0.2968750, 0.2773438, 0.2734375,
0.2656250, 0.2578125, 0.2343750, 0.2265625, 0.2148438, 0.1796875,
0.1679688, 0.1562500, 0.1406250, 0.1289062, 0.0976562, 0.0820312,
0.0625000, 0.0468750, 0.0156250, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0156250, 0.0312500, 0.0468750,
0.0820312, 0.0976562, 0.1132812, 0.1640625, 0.1796875, 0.1992188,
0.2148438, 0.2460938, 0.2617188, 0.2812500, 0.2968750, 0.3125000,
0.3476562, 0.3632812, 0.3789062, 0.4296875, 0.4453125, 0.4648438,
0.4804688, 0.5117188, 0.5273438, 0.5468750, 0.5625000, 0.5976562,
0.6132812, 0.6289062, 0.6445312, 0.6953125, 0.7109375, 0.7304688,
0.7460938, 0.7773438, 0.7929688, 0.8125000, 0.8281250, 0.8632812,
0.8789062, 0.8945312, 0.9453125, 0.9609375, 0.9765625, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.0000000]),
array([ 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0156250, 0.0625000,
0.0820312, 0.0976562, 0.1132812, 0.1484375, 0.1640625, 0.1796875,
0.1992188, 0.2148438, 0.2460938, 0.2617188, 0.2812500, 0.3281250,
0.3476562, 0.3632812, 0.3789062, 0.4140625, 0.4296875, 0.4453125,
0.4648438, 0.4960938, 0.5117188, 0.5273438, 0.5468750, 0.5937500,
0.6132812, 0.6289062, 0.6445312, 0.6796875, 0.6953125, 0.7109375,
0.7304688, 0.7617188, 0.7773438, 0.7929688, 0.8437500, 0.8593750,
0.8789062, 0.8945312, 0.9101562, 0.9453125, 0.9609375, 0.9765625,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9765625, 0.9453125, 0.9296875, 0.9101562, 0.8945312, 0.8632812,
0.8437500, 0.8281250, 0.7773438, 0.7617188, 0.7460938, 0.7304688,
0.6953125, 0.6796875, 0.6640625, 0.6445312, 0.6289062, 0.5976562,
0.5781250, 0.5625000, 0.5117188, 0.4960938, 0.4804688, 0.4648438,
0.4296875, 0.4140625, 0.3984375, 0.3789062, 0.3476562, 0.3320312,
0.3125000, 0.2968750, 0.2460938, 0.2304688, 0.2148438, 0.1992188,
0.1640625, 0.1484375, 0.1328125, 0.1132812, 0.0820312, 0.0664062,
0.0468750, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 0.0000000, 0.0117188, 0.0273438, 0.0390625, 0.0546875, 0.0742188,
0.0898438, 0.1093750, 0.1250000, 0.1484375, 0.1679688, 0.1875000,
0.2304688, 0.2460938, 0.2656250, 0.2812500, 0.3007812, 0.3164062,
0.3359375, 0.3554688, 0.3710938, 0.3906250, 0.4062500, 0.4257812,
0.4609375, 0.4765625, 0.4960938, 0.5156250, 0.5312500, 0.5507812,
0.5664062, 0.5859375, 0.6015625, 0.6210938, 0.6367188, 0.6562500,
0.6914062, 0.7109375, 0.7265625, 0.7460938, 0.7617188, 0.7812500,
0.7968750, 0.8164062, 0.8359375, 0.8515625, 0.8710938, 0.9062500,
0.9218750, 0.9414062, 0.9570312, 0.9765625, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938, 0.9960938,
0.9960938, 0.9609375, 0.9453125, 0.9296875, 0.8789062, 0.8593750,
0.8437500, 0.8281250, 0.7929688, 0.7773438, 0.7617188, 0.7460938,
0.7304688, 0.6953125, 0.6796875, 0.6640625, 0.6132812, 0.5937500,
0.5781250, 0.5625000, 0.5273438, 0.5117188, 0.4960938, 0.4804688,
0.4453125, 0.4296875, 0.4140625, 0.3984375, 0.3476562, 0.3281250,
0.3125000, 0.2968750, 0.2617188, 0.2460938, 0.2304688, 0.2148438,
0.1796875, 0.1640625, 0.1484375, 0.0976562, 0.0820312, 0.0625000,
0.0468750, 0.0312500, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000, 0.0000000,
0.0000000, 0.0000000, 0.0000000, 0.0000000]),
array([ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0,
1.0, 1.0, 1.0, 1.0, 1.0, 1.0]),
)
color_map_luts["doom"] = (
array([
0, 31, 23, 75, 255, 27, 19, 11, 7, 47, 35, 23, 15, 79, 71, 63,
255, 247, 243, 235, 231, 223, 219, 211, 203, 199, 191, 187, 179, 175, 167, 163,
155, 151, 143, 139, 131, 127, 119, 115, 107, 103, 95, 91, 83, 79, 71, 67,
255, 255, 255, 255, 255, 255, 255, 255, 255, 247, 239, 231, 223, 215, 207, 203,
191, 179, 171, 163, 155, 143, 135, 127, 119, 107, 95, 83, 75, 63, 51, 43,
239, 231, 223, 219, 211, 203, 199, 191, 183, 179, 171, 167, 159, 151, 147, 139,
131, 127, 119, 111, 107, 99, 91, 87, 79, 71, 67, 59, 55, 47, 39, 35,
119, 111, 103, 95, 91, 83, 75, 67, 63, 55, 47, 39, 31, 23, 19, 11,
191, 183, 175, 167, 159, 155, 147, 139, 131, 123, 119, 111, 103, 95, 87, 83,
159, 143, 131, 119, 103, 91, 79, 67, 123, 111, 103, 91, 83, 71, 63, 55,
255, 235, 215, 195, 175, 155, 135, 115, 255, 255, 255, 255, 255, 255, 255, 255,
255, 239, 227, 215, 203, 191, 179, 167, 155, 139, 127, 115, 103, 91, 79, 67,
231, 199, 171, 143, 115, 83, 55, 27, 0, 0, 0, 0, 0, 0, 0, 0,
255, 255, 255, 255, 255, 255, 255, 255, 243, 235, 223, 215, 203, 195, 183, 175,
255, 255, 255, 255, 255, 255, 255, 255, 167, 159, 147, 135, 79, 67, 55, 47,
0, 0, 0, 0, 0, 0, 0, 0, 255, 255, 255, 255, 207, 159, 111,
167]) / 255.0,
array([
0, 23, 15, 75, 255, 27, 19, 11, 7, 55, 43, 31, 23, 59, 51, 43,
183, 171, 163, 151, 143, 135, 123, 115, 107, 99, 91, 87, 79, 71, 63, 59,
51, 47, 43, 35, 31, 27, 23, 19, 15, 11, 7, 7, 7, 0, 0, 0,
235, 227, 219, 211, 207, 199, 191, 187, 179, 171, 163, 155, 147, 139, 131, 127,
123, 115, 111, 107, 99, 95, 87, 83, 79, 71, 67, 63, 55, 47, 43, 35,
239, 231, 223, 219, 211, 203, 199, 191, 183, 179, 171, 167, 159, 151, 147, 139,
131, 127, 119, 111, 107, 99, 91, 87, 79, 71, 67, 59, 55, 47, 39, 35,
255, 239, 223, 207, 191, 175, 159, 147, 131, 115, 99, 83, 67, 51, 35, 23,
167, 159, 151, 143, 135, 127, 123, 115, 107, 99, 95, 87, 83, 75, 67, 63,
131, 119, 107, 95, 83, 71, 59, 51, 127, 115, 107, 99, 87, 79, 71, 63,
255, 219, 187, 155, 123, 91, 67, 43, 255, 219, 187, 155, 123, 95, 63, 31,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
231, 199, 171, 143, 115, 83, 55, 27, 0, 0, 0, 0, 0, 0, 0, 0,
255, 235, 215, 199, 179, 163, 143, 127, 115, 111, 103, 95, 87, 79, 71, 67,
255, 255, 255, 255, 255, 255, 255, 255, 63, 55, 47, 35, 59, 47, 35, 27,
0, 0, 0, 0, 0, 0, 0, 0, 159, 231, 123, 0, 0, 0, 0,
107]) / 255.0,
array([
0, 11, 7, 75, 255, 27, 19, 11, 7, 31, 15, 7, 0, 43, 35, 27,
183, 171, 163, 151, 143, 135, 123, 115, 107, 99, 91, 87, 79, 71, 63, 59,
51, 47, 43, 35, 31, 27, 23, 19, 15, 11, 7, 7, 7, 0, 0, 0,
223, 211, 199, 187, 179, 167, 155, 147, 131, 123, 115, 107, 99, 91, 83, 79,
75, 71, 67, 63, 59, 55, 51, 47, 43, 39, 35, 31, 27, 23, 19, 15,
239, 231, 223, 219, 211, 203, 199, 191, 183, 179, 171, 167, 159, 151, 147, 139,
131, 127, 119, 111, 107, 99, 91, 87, 79, 71, 67, 59, 55, 47, 39, 35,
111, 103, 95, 87, 79, 71, 63, 55, 47, 43, 35, 27, 23, 15, 11, 7,
143, 135, 127, 119, 111, 107, 99, 91, 87, 79, 75, 67, 63, 55, 51, 47,
99, 83, 75, 63, 51, 43, 35, 27, 99, 87, 79, 71, 59, 51, 43, 39,
115, 87, 67, 47, 31, 19, 7, 0, 255, 219, 187, 155, 123, 95, 63, 31,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
255, 255, 255, 255, 255, 255, 255, 255, 255, 227, 203, 179, 155, 131, 107, 83,
255, 219, 187, 155, 123, 91, 59, 27, 23, 15, 15, 11, 7, 0, 0, 0,
255, 215, 179, 143, 107, 71, 35, 0, 0, 0, 0, 0, 39, 27, 19, 11,
83, 71, 59, 47, 35, 23, 11, 0, 67, 75, 255, 255, 207, 155, 107,
107]) / 255.0,
np.ones(256),
)
_parameters = {'xp': [-6.0027356902356814, -42.46106902356901,
41.393097643097661, 69.344486531986547, 6.15004208754209,
17.695180976430976],
'yp': [-19.704861111111086, 56.857638888888886,
-8.1597222222222001, 58.680555555555543, -23.958333333333314,
-16.059027777777771],
'min_Jp': 17.1875,
'max_Jp': 82.1875}
color_map_luts["octarine"] = (array(
[ 0.01845663, 0.01940818, 0.02066025, 0.02218966, 0.02395409, 0.02595033,
0.02817596, 0.03060653, 0.03322304, 0.03602798, 0.03900455, 0.04208415,
0.04516324, 0.04823603, 0.05128648, 0.05431253, 0.05730541, 0.06025524,
0.0631607 , 0.06601581, 0.0688137 , 0.07155484, 0.07423302, 0.07684491,
0.07939306, 0.08186684, 0.08427203, 0.08660745, 0.08886448, 0.09105658,
0.09316971, 0.09521672, 0.09719719, 0.09910774, 0.10096841, 0.10275846,
0.10451309, 0.10621217, 0.10788683, 0.10952759, 0.1111585 , 0.11277895,
0.11440998, 0.11605498, 0.11773643, 0.11945691, 0.12124361, 0.1230952,
0.12504265, 0.12708539, 0.12924907, 0.13154308, 0.13398218, 0.13657917,
0.13934934, 0.14230244, 0.14544595, 0.14880137, 0.15236868, 0.15615269,
0.16016659, 0.16442043, 0.16890677, 0.1736277 , 0.17858407, 0.18378678,
0.18922358, 0.19488582, 0.20076673, 0.2068576 , 0.21314778, 0.21962487,
0.22627485, 0.23308241, 0.24003134, 0.2471049 , 0.25428629, 0.26155934,
0.26890755, 0.27631616, 0.28377157, 0.29126147, 0.29877494, 0.30630245,
0.31383585, 0.3213683 , 0.32889415, 0.33640883, 0.34390875, 0.35139113,
0.35885392, 0.36629566, 0.37371536, 0.38111248, 0.38848676, 0.39583821,
0.40316703, 0.41047357, 0.41775516, 0.42501568, 0.4322558 , 0.43947622,
0.44667761, 0.4538607 , 0.46102616, 0.4681747 , 0.4753059 , 0.48242091,
0.48952159, 0.49660864, 0.50368272, 0.5107445 , 0.51779465, 0.52483372,
0.53186264, 0.53888257, 0.54589416, 0.55289811, 0.55989507, 0.56688575,
0.57387113, 0.58085317, 0.58783159, 0.59480708, 0.60178032, 0.60875202,
0.61572288, 0.62269359, 0.6296661 , 0.63664175, 0.64361962, 0.65060034,
0.65758453, 0.66457277, 0.67156565, 0.67856369, 0.68556743, 0.69257733,
0.69959381, 0.70661727, 0.71364828, 0.72068785, 0.7277347 , 0.73478882,
0.74185008, 0.74891821, 0.7559928 , 0.76307522, 0.77016399, 0.77725777,
0.78435528, 0.79145495, 0.7985548 , 0.8056524 , 0.81274479, 0.8198318,
0.82691566, 0.83398271, 0.84102675, 0.84805028, 0.85504479, 0.8619907,
0.86889642, 0.87572945, 0.88249039, 0.88914374, 0.89568162, 0.90206422,
0.90825663, 0.91421853, 0.91990203, 0.92525379, 0.93021961, 0.93475119,
0.93881359, 0.94239114, 0.94548927, 0.94813199, 0.950356 , 0.95220389,
0.95371848, 0.95494533, 0.955918 , 0.95666379, 0.95722053, 0.95760023,
0.95783176, 0.95791958, 0.95789564, 0.9577547 , 0.95751076, 0.95718454,
0.95677095, 0.95627776, 0.95571186, 0.95508526, 0.95439943, 0.95365604,
0.95285946, 0.9520137 , 0.9511224 , 0.95018892, 0.94921639, 0.94820771,
0.94716564, 0.94609279, 0.94499169, 0.94386477, 0.9427144 , 0.94154291,
0.94035262, 0.9391458 , 0.93792477, 0.93669181, 0.93544924, 0.9341994,
0.93294465, 0.93168737, 0.93042998, 0.92917492, 0.92792467, 0.9266817,
0.92544809, 0.92422626, 0.92301878, 0.9218282 , 0.92065707, 0.91950796,
0.91838341, 0.91728597, 0.91621816, 0.91518248, 0.91418144, 0.9132175,
0.91229316, 0.91141094, 0.91057341, 0.90978329, 0.90904349, 0.90835722,
0.90772821, 0.90716087, 0.9066524 , 0.90620748, 0.90584124, 0.90556585,
0.90536904, 0.90529003, 0.90533583, 0.90556318, 0.90603649, 0.90695623,
0.90913313, 0.91657895, 0.92518702, 0.93347579]), array(
[ 0.14549808, 0.14959758, 0.15353745, 0.15733732, 0.1610376 , 0.16463933,
0.16813881, 0.17155785, 0.17491483, 0.17819541, 0.18141182, 0.18458839,
0.18770724, 0.19077643, 0.19381948, 0.19681897, 0.19978209, 0.20272758,
0.20564068, 0.20852987, 0.21140659, 0.21425995, 0.21710135, 0.21993298,
0.22274859, 0.22556395, 0.22836995, 0.23116975, 0.23397288, 0.23676848,
0.23957041, 0.24237069, 0.2451726 , 0.24798083, 0.25078633, 0.2536041,
0.25641791, 0.25924206, 0.26206407, 0.2648926 , 0.2677197 , 0.27054988,
0.27337716, 0.27620452, 0.27902542, 0.28184388, 0.28465047, 0.28745244,
0.29023681, 0.29301229, 0.2957673 , 0.2985035 , 0.30121847, 0.30390569,
0.30656793, 0.30919798, 0.31179276, 0.31435225, 0.3168706 , 0.31934487,
0.32177243, 0.32414968, 0.32647317, 0.32873992, 0.3309469 , 0.33309004,
0.33516695, 0.33717534, 0.33911292, 0.34097773, 0.34276826, 0.34448346,
0.34612285, 0.34768649, 0.34917502, 0.35058959, 0.35193184, 0.35320373,
0.35440776, 0.3555465 , 0.35662265, 0.35763896, 0.35859819, 0.35950301,
0.36035598, 0.36115947, 0.36191571, 0.36262669, 0.36329423, 0.36391995,
0.36450527, 0.36505146, 0.36555959, 0.36603063, 0.36646538, 0.36686454,
0.36722872, 0.36755843, 0.36785545, 0.36811875, 0.36834862, 0.36854528,
0.3687089 , 0.36883963, 0.36893758, 0.36900282, 0.36903596, 0.36903681,
0.36900473, 0.36893965, 0.36884148, 0.36871009, 0.36854532, 0.36834702,
0.36811484, 0.3678482 , 0.36754678, 0.36721023, 0.36683815, 0.36643008,
0.36598535, 0.36550255, 0.36498174, 0.36442226, 0.36382344, 0.36318451,
0.3625047 , 0.36178315, 0.36101802, 0.36020779, 0.35935264, 0.35845149,
0.35750326, 0.35650677, 0.35546082, 0.35436416, 0.35321545, 0.35201335,
0.35075644, 0.34944329, 0.34807215, 0.3466408 , 0.34514904, 0.34359543,
0.34197858, 0.34029709, 0.33854968, 0.33673306, 0.33484673, 0.33289005,
0.33086222, 0.3287627 , 0.32659138, 0.3243486 , 0.32203538, 0.31964923,
0.31718431, 0.31465481, 0.31206608, 0.3094119 , 0.3067005 , 0.30395628,
0.30116449, 0.29836962, 0.29556856, 0.29281389, 0.29011662, 0.28754017,
0.28514306, 0.28299549, 0.28118369, 0.27980714, 0.27897084, 0.27877267,
0.27928815, 0.28055737, 0.28257918, 0.28531437, 0.2886962 , 0.29264343,
0.29707203, 0.30189644, 0.30704703, 0.31246579, 0.318088 , 0.32388104,
0.32979805, 0.33582149, 0.34190762, 0.34805406, 0.35424005, 0.36044006,
0.36665573, 0.37287672, 0.37909448, 0.38529658, 0.39148116, 0.39764648,
0.40378866, 0.40990456, 0.41599162, 0.42204777, 0.42807135, 0.43406103,
0.44001575, 0.44593465, 0.45181705, 0.45766241, 0.46347028, 0.46924029,
0.47497214, 0.48066556, 0.4863203 , 0.49193612, 0.49751281, 0.50305013,
0.50854783, 0.51400566, 0.51942335, 0.52480059, 0.53013708, 0.53543248,
0.54068668, 0.54589935, 0.55107004, 0.55619831, 0.56128369, 0.56632567,
0.57132372, 0.5762773 , 0.58118582, 0.58604867, 0.5908652 , 0.59563471,
0.60035645, 0.60502957, 0.60965313, 0.61422605, 0.61874705, 0.62321462,
0.62762687, 0.63198146, 0.63627878, 0.64051559, 0.64468414, 0.64877752,
0.6527965 , 0.65672131, 0.66054037, 0.66421949, 0.66770704, 0.67086745,
0.67317041, 0.67282641, 0.67266658, 0.67286793]), array(
[ 0.31784919, 0.31399639, 0.31040105, 0.30704607, 0.30380333, 0.30070875,
0.29782465, 0.29508233, 0.29241622, 0.28993656, 0.28760832, 0.28531346,
0.28318494, 0.28120084, 0.27922989, 0.27740774, 0.27570877, 0.27402022,
0.27246419, 0.27099788, 0.26955239, 0.26822345, 0.26693985, 0.26569724,
0.2645547 , 0.26340288, 0.26231968, 0.26128857, 0.26024441, 0.2592725,
0.25827349, 0.25730732, 0.25634957, 0.25536473, 0.25441368, 0.25338488,
0.25238608, 0.25130798, 0.25022886, 0.24907581, 0.2478929 , 0.24663333,
0.24532558, 0.24393036, 0.24247998, 0.24092303, 0.23931621, 0.23757501,
0.23579155, 0.23385836, 0.23186082, 0.22975416, 0.22753042, 0.22523787,
0.22279557, 0.22026374, 0.21765214, 0.2148911 , 0.21203983, 0.20910422,
0.20605986, 0.20289957, 0.19965924, 0.19633992, 0.19294399, 0.18945376,
0.18589623, 0.18228559, 0.17863001, 0.17493902, 0.17122338, 0.16749485,
0.16376586, 0.16004918, 0.15635755, 0.15270334, 0.14909821, 0.1455525,
0.14207653, 0.13867843, 0.13536508, 0.13214209, 0.12901386, 0.12598366,
0.12305378, 0.12022564, 0.11749993, 0.11487682, 0.11235599, 0.10993683,
0.10761855, 0.10540021, 0.10328085, 0.10125952, 0.09933535, 0.09750756,
0.09577548, 0.09413856, 0.09259879, 0.09115321, 0.08980156, 0.08854366,
0.08737943, 0.0863088 , 0.08533173, 0.08444816, 0.08365874, 0.08296295,
0.08235974, 0.08184879, 0.08142963, 0.0811017 , 0.08086426, 0.08071652,
0.08065732, 0.08068528, 0.08079915, 0.08099759, 0.08127912, 0.08164221,
0.08208509, 0.08260558, 0.08320245, 0.08387405, 0.08461872, 0.08543485,
0.08632086, 0.08727529, 0.08829637, 0.08938269, 0.09053368, 0.09174839,
0.09302606, 0.09436609, 0.09576809, 0.0972319 , 0.09875759, 0.10034547,
0.10199611, 0.10371036, 0.10548936, 0.10733453, 0.10924784, 0.11123145,
0.1132879 , 0.11542014, 0.11763156, 0.1199261 , 0.12230825, 0.12478303,
0.12735611, 0.13003383, 0.13282332, 0.1357325 , 0.13877022, 0.14194733,
0.14527745, 0.14877095, 0.15244171, 0.15631008, 0.16039526, 0.16471264,
0.16929903, 0.17416921, 0.17936813, 0.18491671, 0.19087146, 0.19726367,
0.20413699, 0.21153645, 0.2195002 , 0.22805202, 0.23719324, 0.24689635,
0.25710328, 0.26773032, 0.27867898, 0.2898494 , 0.30115214, 0.31251542,
0.3238872 , 0.33520885, 0.34646952, 0.35766645, 0.36875439, 0.37976247,
0.39066078, 0.40148085, 0.41217762, 0.42279543, 0.4333259 , 0.44374506,
0.45408352, 0.46434054, 0.47451587, 0.48459837, 0.49459666, 0.50451736,
0.51436098, 0.5241281 , 0.53381937, 0.54343549, 0.55297718, 0.56244513,
0.57184006, 0.58116264, 0.59041354, 0.59959339, 0.60870282, 0.61774243,
0.62671284, 0.63561464, 0.64444846, 0.65321495, 0.6619148 , 0.67054874,
0.67911758, 0.68762222, 0.69606366, 0.70444301, 0.71276152, 0.72102061,
0.7292224 , 0.73736877, 0.74546167, 0.75350327, 0.76149601, 0.76944257,
0.7773459 , 0.78520926, 0.79303621, 0.80083062, 0.80859672, 0.81633909,
0.82406267, 0.83177277, 0.83947509, 0.84717571, 0.85488105, 0.86259792,
0.87033341, 0.87809481, 0.88590073, 0.89376265, 0.90168051, 0.90966175,
0.9177585 , 0.92595735, 0.93431661, 0.94285311, 0.95166927, 0.96090167,
0.97095595, 0.97849108, 0.98057884, 0.98147471]), np.ones(256))
parameters = {'xp': [25.813729633909759, 31.169191027506741,
-75.940036844432967, -15.794085808651431,
-6.7309972964103792],
'yp': [14.230225988700568, -99.470338983050823,
9.2867231638418275, 41.007532956685509,
31.532485875706215],
'min_Jp': 27.2243940579,
'max_Jp': 94.7771696638}
color_map_luts["arbre"] = (array(
[ 0.44131774, 0.44370177, 0.44605933, 0.44839054, 0.45067478, 0.45293504,
0.45516891, 0.45735977, 0.45952958, 0.46167133, 0.46377662, 0.4658642,
0.4679203 , 0.46994924, 0.4719642 , 0.47394237, 0.47590549, 0.47785176,
0.47976766, 0.48167637, 0.48355944, 0.48542865, 0.48728952, 0.48912419,
0.49095845, 0.49277134, 0.49457845, 0.49637777, 0.49816203, 0.49995019,
0.50171533, 0.50348733, 0.50524307, 0.50700027, 0.50874826, 0.51049227,
0.51223193, 0.5139633 , 0.51569293, 0.51741103, 0.51912775, 0.52083067,
0.52253029, 0.52421475, 0.52589174, 0.52755306, 0.52920041, 0.53083242,
0.53244156, 0.5340366 , 0.53559728, 0.53714122, 0.53864625, 0.54012236,
0.54156358, 0.5429568 , 0.54431299, 0.54561357, 0.5468594 , 0.54805251,
0.54917186, 0.55022123, 0.55119891, 0.55208818, 0.55288205, 0.55358155,
0.55417814, 0.55465144, 0.55499875, 0.55521509, 0.55529007, 0.55521283,
0.55496547, 0.55453915, 0.55392731, 0.55311827, 0.55210037, 0.55086221,
0.54939281, 0.54768186, 0.54571994, 0.5434988 , 0.54101159, 0.53825315,
0.53522015, 0.53191138, 0.52832782, 0.52447273, 0.52035171, 0.51597263,
0.51134556, 0.50648253, 0.5013963 , 0.49610438, 0.49062382, 0.48497218,
0.47916766, 0.47322878, 0.46717417, 0.46102228, 0.45479123, 0.44850028,
0.44216678, 0.43580508, 0.42943042, 0.42305718, 0.41669888, 0.41036814,
0.4040767 , 0.39783545, 0.39165443, 0.38554287, 0.37950919, 0.37356107,
0.36770548, 0.36194865, 0.35629619, 0.35075301, 0.34532345, 0.34001119,
0.33481937, 0.32975052, 0.32480662, 0.31998909, 0.3152988 , 0.31073609,
0.30630076, 0.30199208, 0.29780879, 0.29374913, 0.28981083, 0.28599112,
0.2822876 , 0.2786961 , 0.27521186, 0.27183029, 0.2685464 , 0.26535482,
0.26224983, 0.2592254 , 0.25627525, 0.25339285, 0.25057146, 0.24780425,
0.24508425, 0.24240456, 0.23975784, 0.23713717, 0.23453574, 0.23194694,
0.2293644 , 0.22678204, 0.22419418, 0.22159558, 0.21898153, 0.21634792,
0.21369107, 0.21100766, 0.2082966 , 0.20555708, 0.20278935, 0.19999489,
0.19717647, 0.19433834, 0.19148635, 0.18862811, 0.18577317, 0.18293319,
0.1801221 , 0.17735631, 0.17465482, 0.17203943, 0.16953482, 0.16716741,
0.16496905, 0.16297318, 0.16121584, 0.15973528, 0.15857143, 0.15776521,
0.15735758, 0.15738856, 0.15789607, 0.15891475, 0.16047487, 0.16260134,
0.16531299, 0.16862212, 0.17253417, 0.17704869, 0.18215934, 0.1878543,
0.19411741, 0.20092909, 0.20826721, 0.21610797, 0.22442667, 0.23319827,
0.24239792, 0.25200153, 0.26199056, 0.27233871, 0.28302468, 0.29402831,
0.30533058, 0.31691362, 0.3287703 , 0.34087697, 0.353218 , 0.36577922,
0.37855287, 0.39153018, 0.40469046, 0.41802196, 0.43152574, 0.4451854,
0.45898439, 0.47292271, 0.48699148, 0.50116973, 0.51546387, 0.52985625,
0.54433284, 0.55890334, 0.57353506, 0.58824263, 0.60299664, 0.61780476,
0.63264342, 0.64751846, 0.66240265, 0.67730956, 0.69220565, 0.70709988,
0.72197277, 0.73680781, 0.75161342, 0.76636275, 0.78104266, 0.7956434,
0.81016108, 0.82456869, 0.83884997, 0.85298622, 0.8669555 , 0.88073158,
0.89428251, 0.90756872, 0.92054055, 0.933148 , 0.94530521, 0.95690622,
0.96783447, 0.97790967, 0.986926 , 0.99464852]), array(
[ 0.05626182, 0.06063603, 0.06486246, 0.06895821, 0.07296132, 0.0768539,
0.08064911, 0.08437114, 0.08800482, 0.09156317, 0.09505774, 0.09847813,
0.10183875, 0.10513951, 0.1083756 , 0.11156296, 0.11469159, 0.11776515,
0.12079126, 0.12376178, 0.12668524, 0.1295584 , 0.13238112, 0.13515848,
0.13788542, 0.14056641, 0.14319933, 0.14578505, 0.14832396, 0.15081614,
0.15326083, 0.15565984, 0.15801096, 0.16031668, 0.16257524, 0.16478787,
0.16695485, 0.1690751 , 0.17115162, 0.17318085, 0.17516841, 0.1771089,
0.17900954, 0.18086473, 0.18268134, 0.18445603, 0.18619262, 0.18789332,
0.18955541, 0.19119063, 0.19278568, 0.19436176, 0.19590425, 0.19742907,
0.19893786, 0.20042606, 0.20191306, 0.20339073, 0.2048706 , 0.20636577,
0.20786968, 0.20939933, 0.21096715, 0.21257494, 0.21423423, 0.21596274,
0.21777215, 0.21966954, 0.22167374, 0.22380222, 0.22607063, 0.22849545,
0.23109288, 0.23388218, 0.23688208, 0.24011005, 0.24358302, 0.24731693,
0.2513262 , 0.25562329, 0.26021807, 0.26511744, 0.2703248 , 0.27583977,
0.28165796, 0.28777089, 0.29416603, 0.30082712, 0.30773447, 0.3148655,
0.3221953 , 0.32969733, 0.33734475, 0.34510833, 0.35296022, 0.36087366,
0.3688232 , 0.37678504, 0.38473729, 0.39266014, 0.40053592, 0.40834821,
0.41608347, 0.42373148, 0.43128293, 0.43873028, 0.44606759, 0.45329038,
0.46039546, 0.46738076, 0.47424525, 0.48098872, 0.48761174, 0.49411548,
0.50050166, 0.50677243, 0.51293031, 0.51897811, 0.52491887, 0.53075583,
0.53649234, 0.54213187, 0.54767795, 0.55313418, 0.55850412, 0.56379138,
0.56899954, 0.57413213, 0.57919266, 0.58418458, 0.58911129, 0.59397611,
0.59878205, 0.60353246, 0.60823062, 0.61287956, 0.61748225, 0.62204154,
0.62656023, 0.63104102, 0.63548651, 0.63989924, 0.64428164, 0.64863606,
0.65296474, 0.65726983, 0.66155346, 0.66581762, 0.67006415, 0.67429484,
0.67851134, 0.68271522, 0.68690793, 0.69109084, 0.69526517, 0.69943206,
0.70359259, 0.70774778, 0.7118983 , 0.71604481, 0.72018788, 0.72432796,
0.72846539, 0.73260037, 0.73673302, 0.74086331, 0.74499111, 0.7491162,
0.75323821, 0.7573567 , 0.76147109, 0.76558071, 0.7696848 , 0.77378264,
0.7778731 , 0.7819551 , 0.78602749, 0.79008902, 0.79413838, 0.79817417,
0.80219489, 0.80619902, 0.81018492, 0.81415092, 0.81809528, 0.82201619,
0.8259118 , 0.82978021, 0.83361959, 0.83742793, 0.84120311, 0.84494307,
0.84864571, 0.85230891, 0.85593052, 0.85950837, 0.86304028, 0.86652408,
0.86995756, 0.87333854, 0.87666491, 0.87993431, 0.88314454, 0.88629345,
0.88937891, 0.89239883, 0.89535078, 0.89823289, 0.9010432 , 0.9037798,
0.90644047, 0.90902303, 0.91152628, 0.91394863, 0.91628739, 0.91854149,
0.92071018, 0.92279108, 0.92478281, 0.92668571, 0.92849682, 0.93021638,
0.93184454, 0.9333779 , 0.93481986, 0.93616638, 0.93742098, 0.9385809,
0.93964931, 0.94062391, 0.94150928, 0.94230167, 0.94300773, 0.9436249,
0.9441573 , 0.94460885, 0.94497728, 0.9452696 , 0.94548972, 0.94564084,
0.94572458, 0.94574964, 0.94572195, 0.94564856, 0.94553784, 0.94539999,
0.94524753, 0.94509613, 0.94496566, 0.94487644, 0.94486297, 0.94496862,
0.9452415 , 0.94575723, 0.94660423, 0.94788672]), array(
[ 0.04951266, 0.06083219, 0.07165053, 0.08210915, 0.09247329, 0.10260581,
0.11257765, 0.12255122, 0.13238498, 0.14215586, 0.15194141, 0.16162489,
0.17131665, 0.18099838, 0.19059467, 0.20026607, 0.20988044, 0.21946015,
0.22909981, 0.23866289, 0.24827349, 0.25786718, 0.2674192 , 0.27704703,
0.28660208, 0.2962198 , 0.30581382, 0.31540414, 0.3250423 , 0.33462062,
0.34430922, 0.35393291, 0.36363845, 0.37332276, 0.38305586, 0.39280948,
0.40258886, 0.41242099, 0.42226577, 0.43218573, 0.44211511, 0.45213185,
0.46216464, 0.47228627, 0.48244044, 0.49267364, 0.50296577, 0.51331525,
0.52375993, 0.53422779, 0.54483694, 0.55545388, 0.56620423, 0.57700138,
0.5878611 , 0.59884035, 0.60984329, 0.62095468, 0.63213636, 0.6433441,
0.6546616 , 0.6660279 , 0.67741372, 0.68886382, 0.70036612, 0.71186928,
0.72336666, 0.73489587, 0.74641297, 0.75788429, 0.76929516, 0.7806286,
0.79188503, 0.80303085, 0.81402588, 0.82484364, 0.83545535, 0.84583016,
0.85593546, 0.86573722, 0.87520057, 0.88429036, 0.89297186, 0.90121149,
0.90897763, 0.91624135, 0.92297716, 0.92916362, 0.93478393, 0.93982627,
0.944284 , 0.9481558 , 0.95144555, 0.95416177, 0.95631799, 0.95793177,
0.95902407, 0.95961865, 0.95974148, 0.95942014, 0.95868324, 0.95756071,
0.95608217, 0.9542758 , 0.95216987, 0.94979177, 0.94716782, 0.94432316,
0.94128162, 0.93806566, 0.93469637, 0.93119344, 0.92757518, 0.92385855,
0.92005924, 0.91619167, 0.91226907, 0.90830358, 0.90430622, 0.90028706,
0.8962552 , 0.89221888, 0.88818549, 0.88416167, 0.88015334, 0.87616574,
0.87220349, 0.86827062, 0.86437059, 0.86050638, 0.85668045, 0.85289483,
0.84915193, 0.84545249, 0.84179674, 0.83818509, 0.83461764, 0.83109413,
0.82761399, 0.82417636, 0.82078008, 0.81742372, 0.81410558, 0.81082372,
0.80757594, 0.80435989, 0.80117258, 0.79801115, 0.79487252, 0.79175341,
0.78865036, 0.78555973, 0.78247771, 0.77940035, 0.77632353, 0.77324301,
0.77015423, 0.76705215, 0.76393282, 0.76079161, 0.75762382, 0.75442468,
0.7511894 , 0.74791315, 0.74459109, 0.74121838, 0.73779019, 0.73430173,
0.73074825, 0.72712503, 0.72342746, 0.71965096, 0.71579107, 0.71184237,
0.70780168, 0.70366489, 0.69942802, 0.69508722, 0.69063878, 0.68607916,
0.68140497, 0.67661297, 0.67170012, 0.66666354, 0.66150054, 0.65620859,
0.65078539, 0.64522878, 0.63953554, 0.63370386, 0.62773308, 0.62162183,
0.61536895, 0.60897349, 0.60243471, 0.59575208, 0.5889253 , 0.58195428,
0.57483914, 0.56757997, 0.56016891, 0.55261464, 0.54491821, 0.53708088,
0.52910417, 0.52098984, 0.51272693, 0.50432884, 0.49579898, 0.48714013,
0.47834844, 0.46942272, 0.46037716, 0.45121575, 0.4419283 , 0.43252618,
0.42302131, 0.41340722, 0.40368844, 0.3938839 , 0.38398203, 0.37399931,
0.36394886, 0.35381793, 0.34364247, 0.33340639, 0.32314442, 0.31285132,
0.30255889, 0.2922684 , 0.28202116, 0.27181653, 0.26171116, 0.25171982,
0.24189603, 0.23229831, 0.22296839, 0.21399898, 0.20548226, 0.19752366,
0.19024226, 0.18379968, 0.17836522, 0.17412601, 0.17128095, 0.17003118,
0.17056788, 0.17305931, 0.17763999, 0.18441057, 0.19343386, 0.2047358,
0.21833687, 0.2341978 , 0.25223614, 0.2722682]), np.ones(256))
# Used to reconstruct the colormap in viscm
parameters = {
"xp": [
-2.3569023569023386,
29.24031986531989,
21.948653198653204,
-25.44718013468011,
-4.78745791245791,
],
"yp": [
-27.604166666666657,
-30.642361111111086,
24.652777777777771,
-13.6284722222222,
23.4375,
],
"min_Jp": 15,
"max_Jp": 95,
}
color_map_luts["kelp"] = (array(
[ 0.07873808, 0.08503098, 0.09119215, 0.09725944, 0.10324966, 0.10914691,
0.1149903 , 0.12076614, 0.12647234, 0.13214487, 0.13775951, 0.14331952,
0.14885405, 0.15434127, 0.15978387, 0.16520148, 0.17058327, 0.17592717,
0.1812416 , 0.18653223, 0.19178949, 0.19701509, 0.20221806, 0.20739605,
0.21254477, 0.21766522, 0.22276163, 0.22783646, 0.232884 , 0.23790477,
0.24289917, 0.24786997, 0.25281796, 0.25773939, 0.26263436, 0.26750288,
0.27234491, 0.27716076, 0.28195253, 0.28671682, 0.29145343, 0.29616211,
0.30084257, 0.30549451, 0.31011758, 0.31471143, 0.31927567, 0.32380992,
0.32831456, 0.3327882 , 0.33723043, 0.34164086, 0.34601907, 0.35036466,
0.35467722, 0.35895634, 0.36320162, 0.36741265, 0.37158905, 0.37573041,
0.37983636, 0.38390652, 0.38794052, 0.391938 , 0.3958986 , 0.39982199,
0.40370783, 0.40755579, 0.41136559, 0.41513702, 0.41886962, 0.42256312,
0.42621724, 0.42983171, 0.43340628, 0.43694071, 0.44043477, 0.44388826,
0.44730096, 0.4506727 , 0.4540033 , 0.45729265, 0.46054056, 0.46374691,
0.4669116 , 0.47003456, 0.47311572, 0.47615505, 0.47915255, 0.48210822,
0.48502208, 0.4878942 , 0.49072469, 0.49351365, 0.49626124, 0.49896763,
0.50163303, 0.50425765, 0.50684177, 0.50938571, 0.51188977, 0.51435433,
0.51677977, 0.5191665 , 0.52151498, 0.52382573, 0.52609922, 0.52833601,
0.53053664, 0.53270171, 0.53483184, 0.53692768, 0.53898991, 0.54101933,
0.54301655, 0.5449823 , 0.54691736, 0.54882248, 0.55069849, 0.55254618,
0.55436641, 0.55616019, 0.55792828, 0.55967151, 0.56139081, 0.56308707,
0.56476124, 0.56641427, 0.56804712, 0.56966078, 0.57125625, 0.57283474,
0.5743971 , 0.57594437, 0.57747763, 0.578998 , 0.58050659, 0.58200457,
0.58349311, 0.58497344, 0.58644679, 0.58791447, 0.58937777, 0.59083808,
0.59229669, 0.59375499, 0.59521431, 0.59667599, 0.5981412 , 0.59961095,
0.60108588, 0.60256604, 0.60405059, 0.60553731, 0.60702199, 0.60849757,
0.60995371, 0.61137672, 0.61275043, 0.61405949, 0.61529472, 0.61645863,
0.61756755, 0.6186476 , 0.61972621, 0.62082374, 0.62195065, 0.62310898,
0.62429421, 0.62549895, 0.62671518, 0.62793547, 0.62915284, 0.63036156,
0.63155892, 0.63274216, 0.63390941, 0.63505915, 0.6361885 , 0.63730024,
0.63839517, 0.63947435, 0.64053552, 0.64158527, 0.64262677, 0.64365947,
0.64469056, 0.6457271 , 0.6467694 , 0.6478306 , 0.64891699, 0.65003829,
0.65120839, 0.65243764, 0.6537444 , 0.65514254, 0.65665209, 0.65829045,
0.66007696, 0.66202922, 0.66416348, 0.66649284, 0.66902763, 0.67177387,
0.67473363, 0.6779068 , 0.68128823, 0.68487229, 0.68865042, 0.69261428,
0.69675486, 0.70106274, 0.7055261 , 0.71013753, 0.71488908, 0.71977295,
0.72478197, 0.72990967, 0.73515031, 0.74049508, 0.74593782, 0.75147747,
0.75711082, 0.76283528, 0.76864883, 0.77453293, 0.78049489, 0.78653899,
0.79266478, 0.7988389 , 0.80509156, 0.81142348, 0.81779745, 0.82424433,
0.83076477, 0.83731914, 0.84395228, 0.85063328, 0.8573683 , 0.86417388,
0.87100664, 0.87792232, 0.88485711, 0.89186942, 0.898911 , 0.90601831,
0.91316089, 0.92036241, 0.92760063, 0.93489628, 0.94222522, 0.94961559,
0.95703072, 0.96451696, 0.97201416, 0.97959794]), array(
[ 0.02380049, 0.02762946, 0.0314955 , 0.03538367, 0.03929263, 0.04314916,
0.04681625, 0.05034685, 0.05376738, 0.05706764, 0.06028584, 0.06343363,
0.06649987, 0.06951333, 0.0724811 , 0.07539619, 0.07827446, 0.0811238,
0.08394364, 0.08673511, 0.08950972, 0.0922702 , 0.09501404, 0.0977463,
0.10047279, 0.10319545, 0.10591402, 0.10862929, 0.11134673, 0.11406773,
0.11679361, 0.11952425, 0.12226063, 0.12500588, 0.12776095, 0.13052669,
0.13330389, 0.13609311, 0.13889411, 0.1417089 , 0.14453802, 0.14738192,
0.15024103, 0.15311572, 0.15600633, 0.15891314, 0.1618364 , 0.16477634,
0.16773294, 0.17070662, 0.17369747, 0.17670558, 0.17973101, 0.18277379,
0.18583395, 0.18891149, 0.19200641, 0.19511868, 0.19824828, 0.20139517,
0.20455931, 0.20774066, 0.21093915, 0.21415474, 0.21738737, 0.22063697,
0.22390351, 0.22718691, 0.23048713, 0.23380417, 0.23713792, 0.24048832,
0.2438553 , 0.24723882, 0.25063881, 0.25405521, 0.25748797, 0.26093702,
0.26440229, 0.26788372, 0.27138123, 0.27489488, 0.27842445, 0.28196986,
0.28553099, 0.28910775, 0.29270002, 0.29630767, 0.29993058, 0.30356863,
0.30722174, 0.31088964, 0.31457215, 0.3182691 , 0.32198029, 0.32570551,
0.32944456, 0.33319721, 0.33696322, 0.34074232, 0.34453424, 0.34833872,
0.35215547, 0.35598423, 0.35982468, 0.36367647, 0.36753933, 0.37141294,
0.37529698, 0.37919113, 0.38309506, 0.38700843, 0.39093088, 0.394862,
0.39880154, 0.40274917, 0.40670453, 0.41066731, 0.41463715, 0.41861372,
0.42259669, 0.4265856 , 0.43058022, 0.43458024, 0.43858535, 0.44259523,
0.44660955, 0.45062802, 0.45465032, 0.45867614, 0.46270517, 0.466737,
0.47077145, 0.47480823, 0.47884705, 0.48288761, 0.48692962, 0.4909728,
0.49501685, 0.49906149, 0.50310643, 0.5071514 , 0.51119613, 0.51524033,
0.51928381, 0.52332635, 0.52736778, 0.531408 , 0.53544701, 0.53948493,
0.54352212, 0.54755923, 0.55159738, 0.55563825, 0.55968439, 0.56373935,
0.56780781, 0.57189523, 0.57600725, 0.58014816, 0.58431885, 0.58851523,
0.59272844, 0.59694739, 0.6011624 , 0.6053679 , 0.60956269, 0.61374861,
0.61792946, 0.62210956, 0.62629294, 0.63048304, 0.63468291, 0.63889495,
0.64312026, 0.64735999, 0.65161492, 0.65588577, 0.66017389, 0.66447826,
0.66879882, 0.67313546, 0.67748957, 0.68185887, 0.68624266, 0.69064192,
0.69505448, 0.69947837, 0.70391466, 0.70835911, 0.71281063, 0.71726683,
0.72172374, 0.72617917, 0.73062754, 0.73506547, 0.73948684, 0.74388673,
0.74825915, 0.7525986 , 0.75689972, 0.76115802, 0.76536957, 0.76953177,
0.77364343, 0.77770289, 0.78171225, 0.78567138, 0.78958223, 0.79344761,
0.79726965, 0.80105066, 0.8047929 , 0.80849913, 0.81217164, 0.81581257,
0.81942391, 0.82300747, 0.82656492, 0.83009816, 0.83360887, 0.83709793,
0.84056637, 0.844015 , 0.84744449, 0.85085836, 0.85425577, 0.85763616,
0.8609997 , 0.8643531 , 0.86769067, 0.87101222, 0.87432566, 0.87762463,
0.88090892, 0.88418748, 0.88745026, 0.89070437, 0.89394846, 0.89717856,
0.90040525, 0.90361483, 0.90682325, 0.91001579, 0.9132048 , 0.91638083,
0.9195519 , 0.92271171, 0.92586627, 0.92900992, 0.93214934, 0.93527665,
0.93840226, 0.94151285, 0.9446259 , 0.94771918]), array(
[ 0.45890713, 0.46137905, 0.46384563, 0.46630529, 0.46875421, 0.4711862,
0.47360008, 0.47599069, 0.47835461, 0.48068977, 0.48299219, 0.4852595,
0.48748847, 0.48967699, 0.49182306, 0.49392292, 0.4959753 , 0.49797881,
0.4999306 , 0.50182767, 0.50367037, 0.5054572 , 0.50718436, 0.50885097,
0.51045736, 0.51200237, 0.51348338, 0.51489809, 0.51624834, 0.51753338,
0.51875253, 0.51990356, 0.52098523, 0.52199968, 0.52294672, 0.52382624,
0.52463824, 0.52538248, 0.52605675, 0.52666444, 0.52720607, 0.52768224,
0.5280937 , 0.5284413 , 0.52872599, 0.52894886, 0.52911108, 0.5292139,
0.52925736, 0.52924451, 0.5291769 , 0.52905617, 0.52888406, 0.52866235,
0.5283929 , 0.52807762, 0.52771851, 0.52731757, 0.52687689, 0.52639856,
0.52588473, 0.52533756, 0.52475925, 0.524152 , 0.52351804, 0.5228596,
0.52217891, 0.5214782 , 0.52075951, 0.52002465, 0.51927646, 0.51851715,
0.51774891, 0.51697393, 0.51619438, 0.5154124 , 0.5146301 , 0.51384958,
0.51307291, 0.51230212, 0.51153923, 0.51078544, 0.51004343, 0.50931521,
0.50860267, 0.50790763, 0.50723191, 0.50657725, 0.50594539, 0.50533791,
0.50475611, 0.50420208, 0.50367737, 0.50318346, 0.50272179, 0.50229376,
0.50190069, 0.5015438 , 0.50122435, 0.50094363, 0.50070274, 0.50050273,
0.50034459, 0.50022925, 0.50015758, 0.50013055, 0.50014881, 0.50021302,
0.50032381, 0.50048172, 0.50068726, 0.50094086, 0.50124298, 0.50159412,
0.50199429, 0.50244368, 0.50294243, 0.50349062, 0.5040883 , 0.50473544,
0.50543197, 0.50617805, 0.5069733 , 0.50781742, 0.50871016, 0.5096512,
0.51064021, 0.51167679, 0.51276051, 0.5138909 , 0.51506743, 0.51628978,
0.51755709, 0.51886873, 0.52022401, 0.52162216, 0.52306241, 0.52454388,
0.52606564, 0.52762668, 0.5292259 , 0.53086207, 0.53253385, 0.53423975,
0.53597803, 0.53774675, 0.53954371, 0.54136636, 0.54321177, 0.54507652,
0.54695667, 0.54884775, 0.55074476, 0.55264242, 0.55453558, 0.55642011,
0.55829453, 0.56016223, 0.56203375, 0.56392814, 0.56587122, 0.56788936,
0.57000019, 0.57220545, 0.57449055, 0.57683063, 0.57919892, 0.58157275,
0.58393538, 0.58627588, 0.58858776, 0.59086745, 0.59311274, 0.59532221,
0.59749564, 0.59963222, 0.60173091, 0.60379008, 0.60580649, 0.60777924,
0.6097056 , 0.61158212, 0.61340237, 0.6151645 , 0.61686366, 0.61849128,
0.62004292, 0.62151305, 0.62288934, 0.62416816, 0.62533879, 0.62639158,
0.62731938, 0.6281096 , 0.62875725, 0.62925097, 0.62958736, 0.62976024,
0.62976899, 0.62961438, 0.62930119, 0.62883586, 0.62822926, 0.62749232,
0.62663432, 0.62567778, 0.62461908, 0.62348256, 0.62227864, 0.621005,
0.6196701 , 0.61828149, 0.61685751, 0.61539115, 0.61388335, 0.61233673,
0.61075292, 0.60913269, 0.607476 , 0.60579314, 0.60408651, 0.60234546,
0.60056748, 0.59874959, 0.59688839, 0.59502121, 0.59312158, 0.59117279,
0.58917064, 0.58718501, 0.58514178, 0.58303558, 0.58094288, 0.57879227,
0.5765793 , 0.57438349, 0.57210749, 0.56981243, 0.56748232, 0.56508082,
0.56269289, 0.56020367, 0.55773849, 0.5551784 , 0.55261699, 0.54997983,
0.54732492, 0.54460356, 0.54185741, 0.53904386, 0.53620824, 0.53329363,
0.53036982, 0.52734442, 0.52433316, 0.52118636]), np.ones(256))
# Used to reconstruct the colormap in viscm
parameters = {'xp': [ 3.444773825208614, -17.207400087834856,
-12.632024921242106, -21.656364855235495,
16.850570926657895, 55.256368028107175,
14.676657883179644, 12.502744839701393,
40.401295564339051, 0.90854194115064502],
'yp': [-1.6304347826086598, -24.818840579710098,
-9.447194719471895, 6.796617161716227,
-5.6159420289854722, 57.065217391304373,
13.224637681159436, 3.4420289855072781,
58.514492753623216, 0.1811594202898732],
'min_Jp': 3.96624472574, 'max_Jp': 96.5975103734}
color_map_luts["dusk"] = (array(
[ 0.02379297, 0.0261157 , 0.02850455, 0.03095137, 0.0334476 , 0.0360304,
0.03863824, 0.04128529, 0.04384689, 0.04631624, 0.04870907, 0.05097181,
0.05316059, 0.05519077, 0.05714277, 0.05892787, 0.06062771, 0.06214595,
0.06357023, 0.06480933, 0.06592827, 0.06687993, 0.06766224, 0.06830946,
0.06872415, 0.0689718 , 0.06904334, 0.06886045, 0.06844799, 0.06780027,
0.06689054, 0.06568777, 0.06415629, 0.06225567, 0.05994102, 0.05716433,
0.0538775 , 0.05003897, 0.04551728, 0.04029295, 0.03446229, 0.02874366,
0.02385447, 0.02127502, 0.02242508, 0.0275301 , 0.03578777, 0.0460108,
0.05640918, 0.06656043, 0.07634217, 0.08577769, 0.0948332 , 0.10358394,
0.11202107, 0.1201887 , 0.12811962, 0.13583301, 0.14334681, 0.15067405,
0.15783121, 0.16483645, 0.17170112, 0.17843538, 0.18504822, 0.19154762,
0.19793598, 0.20422296, 0.21041472, 0.21651599, 0.22253073, 0.22846216,
0.23431275, 0.24008353, 0.24576942, 0.25137838, 0.25691024, 0.26236467,
0.2677416 , 0.27303884, 0.27827346, 0.28346958, 0.28867439, 0.29395695,
0.29940706, 0.30508966, 0.31101811, 0.31715338, 0.32345196, 0.32986905,
0.33636963, 0.34292913, 0.34953992, 0.35619361, 0.36288108, 0.36960242,
0.37635671, 0.38314097, 0.38995328, 0.39679542, 0.40366619, 0.41056374,
0.41748952, 0.4244427 , 0.43142299, 0.43843086, 0.44546541, 0.45252642,
0.45961609, 0.46673201, 0.47387346, 0.48104441, 0.4882424 , 0.4954658,
0.5027165 , 0.50999774, 0.51730448, 0.52463621, 0.53199987, 0.53939166,
0.54680881, 0.55425097, 0.56172938, 0.56923401, 0.57676432, 0.58432014,
0.59191314, 0.59953375, 0.60718079, 0.6148543 , 0.62255842, 0.63029849,
0.63806608, 0.64586138, 0.65368467, 0.66153629, 0.66942125, 0.67734101,
0.68528996, 0.69326842, 0.70127674, 0.70931527, 0.71738431, 0.72548409,
0.73361473, 0.74177618, 0.74996816, 0.75819004, 0.76644077, 0.77471875,
0.78302933, 0.79137839, 0.79974926, 0.80813611, 0.81657205, 0.82501275,
0.83349386, 0.84198258, 0.85048492, 0.8590003 , 0.86751392, 0.87598709,
0.88439937, 0.89263161, 0.90038304, 0.90687168, 0.91166375, 0.91561895,
0.91938826, 0.92318052, 0.9269946 , 0.93070173, 0.93405155, 0.93665497,
0.93818572, 0.93886516, 0.93923641, 0.93951639, 0.93979528, 0.94008554,
0.9403692 , 0.94071214, 0.94104779, 0.94137354, 0.94172077, 0.9420958,
0.94244563, 0.94274487, 0.94309703, 0.94344151, 0.94369514, 0.94407978,
0.94432487, 0.94468376, 0.9449135 , 0.94526127, 0.94544804, 0.945808,
0.94601776, 0.94631082, 0.94656632, 0.9467505 , 0.94706511, 0.94725625,
0.9474877 , 0.94776129, 0.9479231 , 0.94816834, 0.94843142, 0.94859414,
0.9488144 , 0.94909331, 0.9492829 , 0.94943682, 0.94975423, 0.94999285,
0.95015253, 0.9504141 , 0.95072075, 0.95095877, 0.95112839, 0.95145943,
0.95179158, 0.95206534, 0.95228128, 0.95264039, 0.95303147, 0.95337439,
0.95367005, 0.95401622, 0.95449739, 0.95494063, 0.95534717, 0.95571839,
0.95624412, 0.95681749, 0.95736483, 0.9578879 , 0.95838862, 0.95906407,
0.95978233, 0.96048784, 0.96118301, 0.96187054, 0.96267628, 0.96359786,
0.96452242, 0.96545346, 0.9663949 , 0.96735109, 0.96853232, 0.96975252,
0.97100046, 0.9722811 , 0.97360166, 0.97499094]), array(
[ 0.01131879, 0.01391783, 0.01674789, 0.01980761, 0.02309557, 0.02659703,
0.03032697, 0.03427332, 0.03844574, 0.04276988, 0.04704341, 0.05129054,
0.05550078, 0.05969933, 0.06386921, 0.06803423, 0.07217737, 0.07632217,
0.08045053, 0.08458326, 0.0887074 , 0.09283339, 0.0969619 , 0.10108667,
0.10522618, 0.10936788, 0.1135134 , 0.1176759 , 0.12185004, 0.12603586,
0.13023651, 0.1344553 , 0.13869563, 0.14296085, 0.14725413, 0.15157814,
0.15593465, 0.16032384, 0.16475544, 0.16922528, 0.17373863, 0.17827184,
0.1827844 , 0.18715937, 0.19126004, 0.19503246, 0.19852956, 0.20182311,
0.20496848, 0.20800345, 0.21095494, 0.21383778, 0.21666923, 0.21945445,
0.22220507, 0.22492545, 0.22761943, 0.23029139, 0.232945 , 0.23558391,
0.23821051, 0.24082617, 0.24343288, 0.24603239, 0.24862627, 0.25121599,
0.25380393, 0.25639065, 0.25897721, 0.26156482, 0.2641547 , 0.26674815,
0.26934657, 0.27195171, 0.274567 , 0.27719243, 0.27983033, 0.28248333,
0.2851544 , 0.28784764, 0.29056213, 0.2932949 , 0.29603493, 0.29876097,
0.30144013, 0.30404208, 0.30655158, 0.3089731 , 0.31131738, 0.31359848,
0.31582875, 0.31801758, 0.32016861, 0.32228546, 0.3243719 , 0.32642829,
0.32845517, 0.33045378, 0.33242493, 0.33436795, 0.33628328, 0.33817163,
0.34003234, 0.34186568, 0.34367166, 0.34544999, 0.34720092, 0.34892444,
0.35061943, 0.35228681, 0.35392679, 0.35553735, 0.35711946, 0.35867374,
0.36019909, 0.36169371, 0.36315988, 0.36459771, 0.36600339, 0.36737862,
0.36872465, 0.37004148, 0.37132268, 0.37257345, 0.37379387, 0.37498382,
0.37613623, 0.37725628, 0.37834438, 0.37940027, 0.38042109, 0.38140311,
0.38235118, 0.38326484, 0.38414358, 0.38498682, 0.38579085, 0.38655416,
0.38728007, 0.38796794, 0.3886171 , 0.38922686, 0.38979653, 0.39032549,
0.39081315, 0.39125906, 0.39166297, 0.39202487, 0.39234513, 0.39262465,
0.39285875, 0.39304214, 0.39318804, 0.39330134, 0.3933541 , 0.39338391,
0.39336059, 0.3933133 , 0.39323839, 0.39313869, 0.39303156, 0.39295965,
0.39295557, 0.39315799, 0.39391119, 0.39605497, 0.39998337, 0.40475771,
0.40971377, 0.41464651, 0.41955776, 0.42457034, 0.42991332, 0.43592086,
0.44281731, 0.45031271, 0.45790211, 0.46542398, 0.47282633, 0.48011752,
0.48732483, 0.49440541, 0.50141998, 0.50837558, 0.51525348, 0.52205415,
0.52881949, 0.53556909, 0.54223396, 0.54885896, 0.55550043, 0.56201556,
0.56858101, 0.57503769, 0.58153866, 0.58793414, 0.59439323, 0.60071983,
0.60710417, 0.61341299, 0.61971646, 0.6260332 , 0.63225511, 0.63852001,
0.64474137, 0.65092034, 0.65713626, 0.66329112, 0.66941973, 0.67558021,
0.68169667, 0.68777066, 0.69387233, 0.69997643, 0.70599397, 0.71203573,
0.71810111, 0.72411175, 0.73009422, 0.73609755, 0.74212117, 0.74807095,
0.75401458, 0.75997634, 0.7659557 , 0.77187449, 0.77777791, 0.78369726,
0.78963205, 0.79554605, 0.80140962, 0.80728734, 0.81317876, 0.8190834,
0.82493514, 0.83077307, 0.83662327, 0.84248528, 0.84835861, 0.85417838,
0.85998992, 0.86581204, 0.87164424, 0.877486 , 0.88329814, 0.88908291,
0.8948766 , 0.9006787 , 0.90648868, 0.91230608, 0.91806899, 0.9238354,
0.92961071, 0.93539672, 0.94119732, 0.94701577]), array(
[ 0.02001135, 0.02410049, 0.0285127 , 0.03327199, 0.03840892, 0.04377278,
0.04914302, 0.05449872, 0.05987322, 0.06527853, 0.07069504, 0.07616998,
0.08164232, 0.08718911, 0.0927269 , 0.09833499, 0.10393204, 0.10960072,
0.11525772, 0.12097641, 0.12669592, 0.13244873, 0.13822862, 0.14400333,
0.14983392, 0.15566404, 0.16149121, 0.16735218, 0.17321659, 0.17907296,
0.18491908, 0.19075078, 0.19656126, 0.20233991, 0.20807104, 0.21373203,
0.21929102, 0.22470403, 0.22993048, 0.2348811 , 0.23944453, 0.24342373,
0.24654791, 0.24854699, 0.24944069, 0.24964107, 0.24954394, 0.24938897,
0.24925926, 0.24920029, 0.24923631, 0.24934712, 0.24956187, 0.24984924,
0.25022917, 0.25068854, 0.25121928, 0.25182018, 0.25248939, 0.25322692,
0.25402939, 0.25489122, 0.25581039, 0.25678491, 0.25781293, 0.25889267,
0.26002567, 0.26120803, 0.26243772, 0.26371326, 0.26503318, 0.26639597,
0.26779993, 0.26924355, 0.27072854, 0.27224553, 0.27378857, 0.27534839,
0.27691073, 0.27845714, 0.27994688, 0.28132934, 0.28254139, 0.28352939,
0.28426343, 0.28477016, 0.28511888, 0.2853897 , 0.28562523, 0.28584846,
0.28606765, 0.28628369, 0.28648659, 0.2866717 , 0.28683846, 0.28698041,
0.28709378, 0.28717794, 0.2872321 , 0.28725271, 0.28723935, 0.28719253,
0.28710992, 0.28699145, 0.2868367 , 0.28664459, 0.28641544, 0.28614894,
0.28584249, 0.28549799, 0.28511576, 0.28469141, 0.28422699, 0.28372376,
0.28317939, 0.28259016, 0.28196082, 0.28129151, 0.28057453, 0.27981338,
0.27901054, 0.27816595, 0.27726695, 0.2763238 , 0.27533659, 0.27430498,
0.27321529, 0.27207747, 0.27089221, 0.26965877, 0.26837161, 0.26702355,
0.26562346, 0.26417019, 0.2626624 , 0.26109861, 0.25947144, 0.25777762,
0.25602258, 0.25420436, 0.25232078, 0.25036953, 0.2483481 , 0.24625386,
0.24408403, 0.24183578, 0.23950621, 0.23709248, 0.23459188, 0.23200196,
0.22930941, 0.22649861, 0.22358618, 0.22057215, 0.21739359, 0.2141051,
0.21063096, 0.20699978, 0.20316855, 0.19908944, 0.19471496, 0.19000133,
0.1847768 , 0.17886461, 0.17199335, 0.16449989, 0.15797658, 0.15243265,
0.1469976 , 0.14126571, 0.13521428, 0.12907937, 0.12349501, 0.11987508,
0.12047985, 0.12617587, 0.1352476 , 0.14599545, 0.15747549, 0.16925814,
0.18117203, 0.19298222, 0.20476193, 0.21648737, 0.22808422, 0.23953607,
0.25094286, 0.26235208, 0.27357466, 0.28472765, 0.29596437, 0.30689052,
0.31799337, 0.32882896, 0.33982619, 0.35056047, 0.36151349, 0.37212065,
0.38293088, 0.39355561, 0.40419893, 0.41491671, 0.42538398, 0.43601357,
0.44654349, 0.4569744 , 0.46755003, 0.47796579, 0.48832714, 0.49881686,
0.50919369, 0.51945918, 0.52983799, 0.54024888, 0.55039796, 0.56064657,
0.57099376, 0.58117647, 0.59128027, 0.60146991, 0.6117441 , 0.62177734,
0.63179964, 0.64189483, 0.65206133, 0.66202135, 0.67193144, 0.68190219,
0.69193176, 0.70188796, 0.71165938, 0.72147981, 0.73134717, 0.74125921,
0.75096714, 0.76061378, 0.77029569, 0.78001026, 0.78975461, 0.79927776,
0.80875027, 0.81824276, 0.82775166, 0.83727291, 0.84665036, 0.85588868,
0.86512674, 0.87435845, 0.88357649, 0.89277169, 0.90169092, 0.91054951,
0.91934683, 0.92805132, 0.93660318, 0.9448656 ]), np.ones(256))
# Aliases
color_map_luts['B-W LINEAR'] = color_map_luts['idl00']
color_map_luts['BLUE'] = color_map_luts['idl01']
color_map_luts['GRN-RED-BLU-WHT'] = color_map_luts['idl02']
color_map_luts['RED TEMPERATURE'] = color_map_luts['idl03']
color_map_luts['BLUE'] = color_map_luts['idl04']
color_map_luts['STD GAMMA-II'] = color_map_luts['idl05']
color_map_luts['PRISM'] = color_map_luts['idl06']
color_map_luts['RED-PURPLE'] = color_map_luts['idl07']
color_map_luts['GREEN'] = color_map_luts['idl08']
color_map_luts['GRN'] = color_map_luts['idl09']
color_map_luts['GREEN-PINK'] = color_map_luts['idl10']
color_map_luts['BLUE-RED'] = color_map_luts['idl11']
color_map_luts['16 LEVEL'] = color_map_luts['idl12']
color_map_luts['RAINBOW'] = color_map_luts['idl13']
color_map_luts['STEPS'] = color_map_luts['idl14']
color_map_luts['STERN SPECIAL'] = color_map_luts['idl15']
color_map_luts['Haze'] = color_map_luts['idl16']
color_map_luts['Blue - Pastel - Red'] = color_map_luts['idl17']
color_map_luts['Pastels'] = color_map_luts['idl18']
color_map_luts['Hue Sat Lightness 1'] = color_map_luts['idl19']
color_map_luts['Hue Sat Lightness 2'] = color_map_luts['idl20']
color_map_luts['Hue Sat Value 1'] = color_map_luts['idl21']
color_map_luts['Hue Sat Value 2'] = color_map_luts['idl22']
color_map_luts['Purple-Red + Stripes'] = color_map_luts['idl23']
color_map_luts['Beach'] = color_map_luts['idl24']
color_map_luts['Mac Style'] = color_map_luts['idl25']
color_map_luts['Eos A'] = color_map_luts['idl26']
color_map_luts['Eos B'] = color_map_luts['idl27']
color_map_luts['Hardcandy'] = color_map_luts['idl28']
color_map_luts['Nature'] = color_map_luts['idl29']
color_map_luts['Ocean'] = color_map_luts['idl30']
color_map_luts['Peppermint'] = color_map_luts['idl31']
color_map_luts['Plasma'] = color_map_luts['idl32']
color_map_luts['Blue-Red'] = color_map_luts['idl33']
color_map_luts['Rainbow'] = color_map_luts['idl34']
color_map_luts['Blue Waves'] = color_map_luts['idl35']
color_map_luts['Volcano'] = color_map_luts['idl36']
color_map_luts['Waves'] = color_map_luts['idl37']
color_map_luts['Rainbow18'] = color_map_luts['idl38']
color_map_luts['Rainbow + white'] = color_map_luts['idl39']
color_map_luts['Rainbow + black'] = color_map_luts['idl40']
# Create a reversed LUT for each of the above defined LUTs
# and append a "_r" (for reversal. consistent with MPL convention).
# So for example, the reversal of "Waves" is "Waves_r"
temp = {}
for k,v in color_map_luts.items():
temp[k+"_r"] = (v[0][::-1], v[1][::-1], v[2][::-1], v[3][::-1])
color_map_luts.update(temp)
| 69.372261
| 86
| 0.587268
| 102,353
| 585,710
| 3.357801
| 0.062324
| 0.061109
| 0.091262
| 0.121683
| 0.821189
| 0.785624
| 0.782804
| 0.752745
| 0.750894
| 0.716455
| 0
| 0.752546
| 0.231785
| 585,710
| 8,442
| 87
| 69.380479
| 0.011272
| 0.002737
| 0
| 0.527771
| 1
| 0
| 0.001574
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.000241
| 0
| 0.000241
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
2a8930576924323d28ca7907ba47bf5b2178a5bf
| 7,576
|
py
|
Python
|
tests/unit/test_decorator.py
|
hackerrdave/signalfx-python-tracing
|
55f50c7b71cea642bb18733e452988a32f899fbb
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/test_decorator.py
|
hackerrdave/signalfx-python-tracing
|
55f50c7b71cea642bb18733e452988a32f899fbb
|
[
"Apache-2.0"
] | null | null | null |
tests/unit/test_decorator.py
|
hackerrdave/signalfx-python-tracing
|
55f50c7b71cea642bb18733e452988a32f899fbb
|
[
"Apache-2.0"
] | null | null | null |
# Copyright (C) 2018 SignalFx, Inc. All rights reserved.
import pytest
from opentracing.mocktracer import MockTracer
from opentracing.ext import tags as ext_tags
import opentracing
from signalfx_tracing.utils import trace
class DecoratorTest(object):
@pytest.fixture(autouse=True)
def _setup_tracer(self):
self.tracer = MockTracer()
opentracing.tracer = self.tracer
class TestFunctionDecorator(DecoratorTest):
def test_unused_decorator(self):
@trace
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
return 123
assert self.tracer.finished_spans() == []
assert traced_function.__name__ == 'traced_function'
def test_basic_decorator(self):
@trace
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
return 123
assert traced_function(1, one=1) == 123
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'traced_function'
assert spans[0].tags == dict()
assert traced_function.__name__ == 'traced_function'
def test_named_decorator(self):
@trace('operation_name')
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
return 123
assert traced_function(1, one=1) == 123
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'operation_name'
assert spans[0].tags == dict()
assert traced_function.__name__ == 'traced_function'
def test_tagged_decorator(self):
@trace(tags=dict(one=1, two='2'))
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
return 123
assert traced_function(1, one=1) == 123
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'traced_function'
assert spans[0].tags == dict(one=1, two='2')
assert traced_function.__name__ == 'traced_function'
def test_named_and_tagged_decorator(self):
@trace('operation_name', tags=dict(one=1, two='2'))
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
return 123
assert traced_function(1, one=1) == 123
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'operation_name'
assert spans[0].tags == dict(one=1, two='2')
assert traced_function.__name__ == 'traced_function'
def test_positional_named_and_tagged_decorator(self):
@trace('operation_name', dict(one=1, two='2'))
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
return 123
assert traced_function(1, one=1) == 123
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'operation_name'
assert spans[0].tags == dict(one=1, two='2')
assert traced_function.__name__ == 'traced_function'
def test_errored_function(self):
class CustomException(Exception):
pass
@trace
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
raise CustomException('SomeException')
with pytest.raises(CustomException):
traced_function(1, one=1)
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'traced_function'
assert spans[0].tags == {ext_tags.ERROR: True}
assert len(spans[0].logs) == 1
assert spans[0].logs[0].key_values.get('error.object')
assert traced_function.__name__ == 'traced_function'
def test_named_and_tagged_errored_function(self):
class CustomException(Exception):
pass
@trace('operation_name', tags=dict(one=1, two='2'))
def traced_function(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
raise CustomException('SomeException')
with pytest.raises(CustomException):
traced_function(1, one=1)
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'operation_name'
assert spans[0].tags == {'one': 1, 'two': '2', ext_tags.ERROR: True}
assert len(spans[0].logs) == 1
assert spans[0].logs[0].key_values.get('error.object')
assert traced_function.__name__ == 'traced_function'
class TestMethodDecorator(DecoratorTest):
def test_named_and_tagged_errored_method(self):
class CustomException(Exception):
pass
class Thing(object):
@trace('operation_name', tags=dict(one=1, two='2'))
def traced_method(self, *args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
raise CustomException('SomeException')
with pytest.raises(CustomException):
Thing().traced_method(1, one=1)
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'operation_name'
assert spans[0].tags == {'one': 1, 'two': '2', ext_tags.ERROR: True}
assert len(spans[0].logs) == 1
assert spans[0].logs[0].key_values.get('error.object')
assert Thing().traced_method.__name__ == 'traced_method'
def test_named_and_tagged_errored_classmethod(self):
class CustomException(Exception):
pass
class Thing(object):
@classmethod
@trace('operation_name', tags=dict(one=1, two='2'))
def traced_method(cls, *args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
raise CustomException('SomeException')
with pytest.raises(CustomException):
Thing().traced_method(1, one=1)
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'operation_name'
assert spans[0].tags == {'one': 1, 'two': '2', ext_tags.ERROR: True}
assert len(spans[0].logs) == 1
assert spans[0].logs[0].key_values.get('error.object')
assert Thing().traced_method.__name__ == 'traced_method'
def test_named_and_tagged_errored_staticmethod(self):
class CustomException(Exception):
pass
class Thing(object):
@staticmethod
@trace('operation_name', tags=dict(one=1, two='2'))
def traced_method(*args, **kwargs):
assert args == (1,)
assert kwargs == dict(one=1)
raise CustomException('SomeException')
with pytest.raises(CustomException):
Thing.traced_method(1, one=1)
spans = self.tracer.finished_spans()
assert len(spans) == 1
assert spans[0].operation_name == 'operation_name'
assert spans[0].tags == {'one': 1, 'two': '2', ext_tags.ERROR: True}
assert len(spans[0].logs) == 1
assert spans[0].logs[0].key_values.get('error.object')
assert Thing().traced_method.__name__ == 'traced_method'
| 34.280543
| 76
| 0.600317
| 886
| 7,576
| 4.93228
| 0.08465
| 0.032037
| 0.06865
| 0.044622
| 0.889245
| 0.876888
| 0.870481
| 0.870481
| 0.786728
| 0.785584
| 0
| 0.028597
| 0.275343
| 7,576
| 220
| 77
| 34.436364
| 0.767395
| 0.007128
| 0
| 0.8
| 0
| 0
| 0.074867
| 0
| 0
| 0
| 0
| 0
| 0.464706
| 1
| 0.135294
| false
| 0.029412
| 0.029412
| 0
| 0.264706
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
aab1c79596669f057100a8f64cf829bb5401f878
| 36,348
|
py
|
Python
|
src/OYTX_Recog/Hierarchical_Attn_With_Senti_Map.py
|
Ruiver/CTCNet
|
539e55ec9fed06028379d35dfd5cd4074755ffd8
|
[
"Apache-2.0"
] | 6
|
2020-09-17T06:30:41.000Z
|
2021-11-07T14:19:23.000Z
|
src/OYTX_Recog/Hierarchical_Attn_With_Senti_Map.py
|
Ruiver/CTCNet
|
539e55ec9fed06028379d35dfd5cd4074755ffd8
|
[
"Apache-2.0"
] | null | null | null |
src/OYTX_Recog/Hierarchical_Attn_With_Senti_Map.py
|
Ruiver/CTCNet
|
539e55ec9fed06028379d35dfd5cd4074755ffd8
|
[
"Apache-2.0"
] | 3
|
2020-09-21T13:00:47.000Z
|
2021-10-30T07:32:05.000Z
|
"""
author: ouyangtianxiong
date: 2019/12/23
des: implements attention-based emotion recognition
Based on code from https://github.com/KaihuaTang/VQA2.0-Recent-Approachs-2018.pytorch
"""
import sys
sys.path.append('../')
__author__ = 'ouyangtianxiong.bupt.edu.cn'
from sklearn.metrics import classification_report, confusion_matrix, accuracy_score, precision_score, recall_score, f1_score
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.utils.data import DataLoader
from torch.nn.utils import clip_grad_norm_
from torch.optim import Adam,SGD, RMSprop, Adagrad
from torch.nn import CrossEntropyLoss
import numpy as np
from Common_utils.model_evaluation import plot_acc_loss_curve
from Common_utils.model_training import GradualWarmupScheduler, LabelSmoothSoftmax
from Common_utils.basic_module import FCNet
from Common_utils.basic_utils import seed_normalization
import os
from data_set.seed_iv import SEED_IV, SEED_IV_DATASET
from Hierarchical_Attn import MultiBlocks, OneSideInterModalityUpdate, InterModalityUpdate,SingleBlock,EEGFeatureExtractor,EYEFeatureExtractor,Classifier
import pickle
import pandas as pd
from sklearn.svm import SVC
from sklearn.model_selection import GridSearchCV, train_test_split
from sklearn.metrics import classification_report, confusion_matrix, accuracy_score, f1_score, precision_score, recall_score
os.environ['CUDA_VISIBLE_DEVICES'] = '2'
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
class Senti_Map_Classifier(nn.Sequential):
def __init__(self, in_features, mid_features, out_features, drop=0.0):
super(Senti_Map_Classifier, self).__init__()
# define number of detector for each sentiment class
self.k = 10
self.emotion_class = out_features
eeg_detectors = []
eye_detectors = []
for i in range(out_features):
eeg_detectors.append(
nn.Conv1d(in_channels=in_features, out_channels=self.k, kernel_size=1, stride=1, padding=0, bias=True))
eye_detectors.append(
nn.Conv1d(in_channels=in_features, out_channels=self.k, kernel_size=1, stride=1, padding=0, bias=True))
self.eeg_detectors = nn.ModuleList(eeg_detectors)
self.eye_detectors = nn.ModuleList(eye_detectors)
self.lin1 = FCNet(in_features * self.emotion_class, mid_features, activate='relu', drop=drop)
self.lin2 = FCNet(mid_features, out_features, drop=drop)
emotion_classifer = []
self.bilinears = nn.ModuleList([nn.Bilinear(in1_features=in_features, in2_features=in_features, out_features=in_features) for _ in range(self.emotion_class)])
for i in range(self.emotion_class):
emotion_classifer.append(nn.Sequential(
nn.Dropout(p=drop),
FCNet(in_features, mid_features, activate='relu', drop=drop),
FCNet(mid_features, 1, drop=drop)
))
self.emotion_classifer = nn.ModuleList(emotion_classifer)
def eeg_senti_relevance_detect(self, v):
b, r, d = v.shape
v = v.permute(0, 2, 1)
eeg_activate = []
for i in range(self.emotion_class):
# [batch, k, r]
k_eeg_activate_per_class = torch.softmax(self.eeg_detectors[i](v), dim=-1)
# [batch, 1, k ,r]
eeg_activate = k_eeg_activate_per_class.unsqueeze(dim=1) if i == 0 else torch.cat(
(eeg_activate, k_eeg_activate_per_class.unsqueeze(dim=1)), dim=1)
assert eeg_activate.shape == torch.Size([b, self.emotion_class, self.k, r]), "sentiment map wrong!! {}".format(
eeg_activate.shape)
#print('eeg_activate', eeg_activate.shape, eeg_activate[0])
return eeg_activate.permute(0, 1, 3, 2)
def eye_senti_relevance_detect(self, v):
b, r, d = v.shape
v = v.permute(0, 2, 1)
eye_activate = []
for i in range(self.emotion_class):
# [batch, k, r]
k_eye_activate_per_class = torch.softmax(self.eeg_detectors[i](v), dim=-1)
# [batch, 1, k ,r]
eye_activate = k_eye_activate_per_class.unsqueeze(dim=1) if i == 0 else torch.cat(
(eye_activate, k_eye_activate_per_class.unsqueeze(dim=1)), dim=1)
assert eye_activate.shape == torch.Size([b, self.emotion_class, self.k, r]), "sentiment map wrong!! {}".format(
eye_activate.shape)
#('eye_activate', eye_activate.shape, eye_activate[0])
return eye_activate.permute(0, 1, 3, 2)
def forward(self, v, q):
"""
:param v: [batch, r1, features]
:param q: [batch, r2, features]
:return:
"""
b, r1 = v.shape[0], v.shape[1]
r2 = q.shape[1]
eeg = v
eye = q
# [batch, emotion_class, r1, k]
eeg_senti_relevance = self.eeg_senti_relevance_detect(v)
#print('eeg_senti_relevance', eeg_senti_relevance.shape)
# [batch, emotion_class, r2, k]
eye_senti_relevance = self.eye_senti_relevance_detect(q)
#print('eye_senti_relevance', eye_senti_relevance.shape)
# # [batch, emotion_class, r1,1]
# attn_eeg = eeg_senti_relevance.sum(dim=3, keepdims=True) / self.k
#
# # [batch, emotion_class, r2,1]
# attn_eye = eye_senti_relevance.sum(dim=3, keepdims=True) / self.k
#
# # [batch, emotion_class, r1, 1] * [batch, 1, r1, features] = [batch, emotion class, r, features]
# # introduce learnable sentiment relevance
# map_eeg = attn_eeg * eeg.unsqueeze(dim=1)
# map_eye = attn_eye * eye.unsqueeze(dim=1)
# # [batch, emotion_class, feature]
# map_eeg = map_eeg.sum(dim=2) / r1
# map_eye = map_eye.sum(dim=2) / r2
#
#
# fusion_feature = map_eeg * map_eye
# final = fusion_feature.view(b, -1)
# out = self.lin1(final)
# out = self.lin2(out)
# [batch, emotion_class, r1,1]
attn_eeg = eeg_senti_relevance.sum(dim=3, keepdim=True) / self.k
#print('attn_eeg', attn_eeg.shape,attn_eeg[0])
emotion_eeg_attn = attn_eeg.squeeze().sum(dim=2, keepdim=True) / attn_eeg.size(2)
# [batch, emotion_class] represents the maximum activate in sentiment map
emotion_eeg_attn = emotion_eeg_attn.squeeze()
# [batch, emotion_class, r2,1]
attn_eye = eye_senti_relevance.sum(dim=3, keepdim=True) / self.k
#print('attn_eye', attn_eye.shape,attn_eye[0])
emotion_eye_attn = attn_eye.squeeze().sum(dim=2, keepdim=True) / attn_eye.size(2)
emotion_eye_attn = emotion_eye_attn.squeeze()
#print('emotion_eeg_attn', emotion_eeg_attn[0])
#print('emotion_eye_attn', emotion_eye_attn[0])
# [batch, emotion_class, r1, 1] * [batch, 1, r1, features] = [batch, emotion class, r, features]
# introduce learnable sentiment relevance
map_eeg = attn_eeg * eeg.unsqueeze(dim=1)
map_eye = attn_eye * eye.unsqueeze(dim=1)
print("attn_eeg {}\n".format(attn_eeg.cpu().detach().numpy()))
print("attn_eye {}\n".format(attn_eye.cpu().detach().numpy()))
out = []
for i in range(self.emotion_class):
emotion_specific_eeg = map_eeg[:, i, :, :].squeeze().mean(1).squeeze()
emotion_specific_eye = map_eye[:, i, :, :].squeeze().mean(1).squeeze()
tmp = self.bilinears[i](emotion_specific_eeg, emotion_specific_eye)
out1 = self.emotion_classifer[i](tmp)
out.append(out1)
out = torch.cat(out, dim=-1)
return out
class Senti_Map_Classifier2(nn.Sequential):
def __init__(self, in_features, mid_features, out_features, drop=0.0):
super(Senti_Map_Classifier2, self).__init__()
# define number of detector for each sentiment class
self.k = 10
self.emotion_class = out_features
self.downconv = nn.Sequential(
nn.Conv2d(in_channels=1, out_channels=self.emotion_class * self.k, kernel_size=1, stride=1, padding=0,
bias=True)
)
self.GAP = nn.AvgPool2d(4)
self.lin1 = FCNet(in_features * self.emotion_class, mid_features, activate='relu', drop=drop)
self.lin2 = FCNet(mid_features, out_features, drop=drop)
def eeg_senti_relevance_detect(self, v):
b, r, d = v.shape
v = v.permute(0, 2, 1)
eeg_activate = []
for i in range(self.emotion_class):
# [batch, k, r]
k_eeg_activate_per_class = torch.softmax(self.eeg_detectors[i](v), dim=-1)
# [batch, 1, k ,r]
eeg_activate = k_eeg_activate_per_class.unsqueeze(dim=1) if i == 0 else torch.cat(
(eeg_activate, k_eeg_activate_per_class.unsqueeze(dim=1)), dim=1)
assert eeg_activate.shape == torch.Size([b, self.emotion_class, self.k, r]), "sentiment map wrong!! {}".format(
eeg_activate.shape)
return eeg_activate.permute(0, 1, 3, 2)
def eye_senti_relevance_detect(self, v):
b, r, d = v.shape
v = v.permute(0, 2, 1)
eye_activate = []
for i in range(self.emotion_class):
# [batch, k, r]
k_eye_activate_per_class = torch.softmax(self.eeg_detectors[i](v), dim=-1)
# [batch, 1, k ,r]
eye_activate = k_eye_activate_per_class.unsqueeze(dim=1) if i == 0 else torch.cat(
(eye_activate, k_eye_activate_per_class.unsqueeze(dim=1)), dim=1)
assert eye_activate.shape == torch.Size([b, self.emotion_class, self.k, r]), "sentiment map wrong!! {}".format(
eye_activate.shape)
return eye_activate.permute(0, 1, 3, 2)
def forward(self, v, q):
"""
:param v: [batch, r1, features]
:param q: [batch, r2, features]
:return:
"""
b, r1 = v.shape[0], v.shape[1]
r2 = q.shape[1]
eeg = v
eye = q
# [batch, emotion_class, r1, k]
eeg_senti_relevance = self.eeg_senti_relevance_detect(v)
# [batch, emotion_class, r2, k]
eye_senti_relevance = self.eye_senti_relevance_detect(q)
# [batch, emotion_class, r1,1]
attn_eeg = eeg_senti_relevance.sum(dim=3, keepdim=True) / self.k
# [batch, emotion_class, r2,1]
attn_eye = eye_senti_relevance.sum(dim=3, keepdim=True) / self.k
# [batch, emotion_class, r1, 1] * [batch, 1, r1, features] = [batch, emotion class, r, features]
# introduce learnable sentiment relevance
map_eeg = attn_eeg * eeg.unsqueeze(dim=1)
map_eye = attn_eye * eye.unsqueeze(dim=1)
# [batch, emotion_class, feature]
map_eeg = map_eeg.sum(dim=2) / r1
map_eye = map_eye.sum(dim=2) / r2
fusion_feature = map_eeg * map_eye
final = fusion_feature.view(b, -1)
out = self.lin1(final)
out = self.lin2(out)
return out
class Hierarchical_ATTN_With_Senti_Map(nn.Module):
def __init__(self):
super(Hierarchical_ATTN_With_Senti_Map, self).__init__()
self.eye_features = 64 # 256
self.eeg_features = 64 # 256
self.hidden_feature = 128 # 256
self.num_inter_head = 4
self.num_intra_head = 4
self.num_block = 1
assert self.hidden_feature % self.num_inter_head == 0, 'hidden features size can not be divided by header nums, please check!!'
assert self.hidden_feature % self.num_inter_head == 0, 'hidden features size can not be divided by header nums, please check!!'
# basic feature extractor
self.eegFeatureExtractor = EEGFeatureExtractor(eeg_size=5, output_size=self.eeg_features)
self.eyeFeatureExtractor = EYEFeatureExtractor(eye_size=31, output_size=self.eeg_features)
# inter- & intra-modality attention flow mechanism for fusion cross modality feature
self.interIntraBlocks = MultiBlocks(
num_blocks=self.num_block,
v_size=self.eeg_features,
q_size=self.eye_features,
output_size=self.hidden_feature,
num_inter_head=self.num_inter_head,
num_intra_head=self.num_intra_head,
drop=0.5
)
# self.interIntraBlocks = MultiBlocks(
# num_blocks=self.num_block,
# v_size=self.eeg_features,
# q_size=self.eye_features,
# output_size=self.hidden_feature,
# num_inter_head=self.num_inter_head,
# num_intra_head=self.num_intra_head,
# drop=0.5
# )
# emotion classifier
# self.classifier = Classifier(
# in_features=self.hidden_feature,
# mid_features=512, out_features=4,
# drop=0.5)
self.classifier = Senti_Map_Classifier(
in_features=self.hidden_feature,
mid_features=512, out_features=4,
drop=0.5)
def forward(self, v, q, flag=0):
"""
:param v: eeg feature [batch, n, 5]
:param q: eye feature [batch, 31]
:return: predict logits [batch, max_answer]
"""
# prepare v & q feature
v = self.eegFeatureExtractor(v)
q = self.eyeFeatureExtractor(q)
# feature normalization
v = v / (v.norm(p=2, dim=2, keepdim=True) + 1e-12).expand_as(v) # [batch, num_obj, feature]
q = q / (q.norm(p=2, dim=2, keepdim=True) + 1e-12).expand_as(q)
# inter- & intra- modality attention flow
v, q = self.interIntraBlocks(v, q)
if flag == 1:
return v, q
else:
# predict logits
answer = self.classifier(v, q)
return answer
def test(session=1):
def build_classifier():
c_range = np.logspace(-10, 10, 11, base=2)
gamma_range = np.logspace(-10, 2, 11, base=2)
kernel = ['rbf']
parameters = {'C': c_range, "kernel": kernel, "gamma":gamma_range}
print("building svm classifier")
svm_clf = SVC()
gs = GridSearchCV(svm_clf, param_grid=parameters, refit=True, n_jobs=-1, verbose=2)
return gs
# prepare data
balance = True
shuffle = False
modal = 'concat'
svm_clf = build_classifier()
test_acc_list = []
test_precision_list = []
test_recall_list = []
test_f1_list = []
for idx in range(1, 16):
print("contructing dataset...")
eeg = SEED_IV(session=session, individual=idx, modal=modal, shuffle=shuffle, balance=balance, k_fold=6)
k_fold_data = eeg.get_training_kfold_data()
for fold, (train_X, train_Y, test_X, test_Y) in enumerate(k_fold_data):
train_X, train_Y, test_X, test_Y = seed_normalization(train_X, train_Y, test_X, test_Y, nor_method=1,
merge=1,
column=0)
net = Hierarchical_ATTN_With_Senti_Map()
save_model_path = '../../saved_models/%s/session_%d/subject_%d/fold_%d' % (
net.__class__.__name__, session, idx, fold // 2)
net = net.to(device)
checkpoint = torch.load(os.path.join(save_model_path, net.__class__.__name__))
net.load_state_dict(checkpoint['net'])
net.eval()
with torch.no_grad():
eeg = train_X[:, :310]
eye = train_X[:, 310:]
eeg = eeg.reshape(-1, 62, 5)
eeg = torch.FloatTensor(eeg).to(device)
eye = torch.FloatTensor(eye).to(device)
transformed_eeg, transformed_eye = net(eeg, eye, 1)
transformed_eeg = transformed_eeg.view(transformed_eeg.size(0), -1).cpu().numpy()
transformed_eye = transformed_eye.view(transformed_eye.size(0), -1).cpu().numpy()
new_train_X = np.hstack((transformed_eeg, transformed_eye))
eeg = test_X[:, :310]
eye = test_X[:, 310:]
eeg = eeg.reshape(-1, 62, 5)
eeg = torch.FloatTensor(eeg).to(device)
eye = torch.FloatTensor(eye).to(device)
transformed_eeg, transformed_eye = net(eeg, eye, 1)
transformed_eeg = transformed_eeg.view(transformed_eeg.size(0), -1).cpu().numpy()
transformed_eye = transformed_eye.view(transformed_eye.size(0), -1).cpu().numpy()
new_test_X = np.hstack((transformed_eeg, transformed_eye))
new_train_X, train_Y, new_test_X, test_Y = seed_normalization(new_train_X, train_Y, new_test_X, test_Y, nor_method=1,
merge=0,
column=0)
svm_clf.fit(new_train_X, train_Y)
predict = svm_clf.predict(new_test_X)
test_acc_list.append(accuracy_score(test_Y, predict))
test_precision_list.append(precision_score(test_Y, predict, average='macro'))
test_recall_list.append(recall_score(test_Y, predict, average="macro"))
test_f1_list.append(f1_score(test_Y, predict, average="macro"))
print("classification report\n{}\nACC {}\nconfusion matrix\n{}\n".format(
classification_report(test_Y, predict, digits=4), accuracy_score(test_Y, predict),
confusion_matrix(test_Y, predict)))
df = pd.DataFrame().from_dict({"accuracy": test_acc_list,
"precision": test_precision_list,
"recall": test_recall_list,
"f1": test_f1_list})
df_mean = df.mean()
df_std = df.std()
df = df.append(df_mean, ignore_index=True)
df = df.append(df_std, ignore_index=True)
df.to_csv('./session%02d/results4.csv' % (session))
def visualize_matrix(individual=2, session=3, file_path=None):
balance = True
shuffle = True
modal = 'concat'
eeg = SEED_IV(session=session, individual=individual, modal=modal, shuffle=shuffle, balance=balance, k_fold=3)
k_fold_data = eeg.get_training_kfold_data()
for fold, (train_X, train_Y, test_X, test_Y) in enumerate(k_fold_data):
train_X, train_Y, test_X, test_Y = seed_normalization(train_X, train_Y, test_X, test_Y, nor_method=1, merge=0,
column=0)
train_X = train_X.astype(np.float32)
test_X = test_X.astype(np.float32)
train_Y = train_Y.astype(np.int32)
test_Y = test_Y.astype(np.int32)
net = Hierarchical_ATTN_With_Senti_Map()
save_model_path = '../../saved_models/%s/session_%d/subject_%d/fold_%d' % (
net.__class__.__name__, session, individual, fold)
net = net.to(device)
checkpoint = torch.load(os.path.join(save_model_path, net.__class__.__name__))
net.load_state_dict(checkpoint['net'])
net.eval()
with torch.no_grad():
eeg = test_X[:, :310]
eye = test_X[:, 310:]
eeg = eeg.reshape(-1, 62, 5)
for i in range(0,len(eeg), 2):
b = torch.FloatTensor(eeg[i:i+2]).to(device)
e = torch.FloatTensor(eye[i:i+2]).to(device)
print(b.shape)
print(e.shape)
out = net(b, e)
def subject_dependent(session=1):
# prepare data
session = session
balance = True
shuffle = True
modal = 'concat'
nor_method = 1
label_smooth = 0.3
fine_tuning = True
best_acc_list = []
best_precision_list = []
best_recall_list = []
best_f1_list = []
result_save_path = './seed_results/session{}'.format(session)
if not os.path.exists(result_save_path):
os.makedirs(result_save_path)
# reading the data in the whole dataset
for idx in range(1, 16):
best_acc = -1
best_precision = -1
best_recall = -1
best_f1 = -1
print("contructing dataset...")
eeg = SEED_IV(session=session, individual=idx, modal=modal, shuffle=shuffle, balance=balance)
train_X, train_Y, test_X, test_Y = eeg.get_training_data()
print("train_X shape", train_X.shape)
print("train_Y shape", train_Y.shape)
print("test_X shape", test_X.shape)
print("test_Y shape", test_Y.shape)
train_X, train_Y, test_X, test_Y = seed_normalization(train_X, train_Y, test_X, test_Y, nor_method=1, merge=0,
column=0)
train_X = train_X.astype(np.float32)
test_X = test_X.astype(np.float32)
train_Y = train_Y.astype(np.int32)
test_Y = test_Y.astype(np.int32)
print("train_X shape", train_X.shape)
print("train_Y shape", train_Y.shape)
print("test_X shape", test_X.shape)
print("test_Y shape", test_Y.shape)
# Hyper-parameters
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
epochs = 500
batch_size = 1024
learning_rate = 1e-4
criterion = LabelSmoothSoftmax(lb_smooth=label_smooth)
exp_des = "%d_dependent_in_seesion_%d_%s_%s_%s_%d_%d" % (
idx, session, 'balance' if balance else 'without_balance',
'shuffle' if shuffle else "without_shuffle", 'seed', epochs, batch_size)
print("starting subject-dependent training experiments on individual %d in session %d"% (idx, session))
print("train_X shape", train_X.shape)
print("train_Y shape", train_Y.shape)
print("test_X shape", test_X.shape)
print("test_Y shape", test_Y.shape)
print("model construction...")
net = Hierarchical_ATTN_With_Senti_Map()
# if fine_tuning we continue train the pretrained model
net = net.to(device)
save_model_path = '../../saved_models/%s/session_%d/subject_%d' % (net.__class__.__name__, session, idx)
if not os.path.exists(save_model_path):
os.makedirs(save_model_path)
optimization = RMSprop(net.parameters(), lr=learning_rate, weight_decay=0.01)
# save model training state
running_loss_list = []
running_acc_list = []
testing_loss_list =[]
testing_acc_list = []
print("start training...")
scheduler_cosine = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer=optimization, T_max=epochs)
scheduler_warmup = GradualWarmupScheduler(optimizer=optimization, multiplier=10,
total_epoch=np.ceil(0.1 * epochs),
after_scheduler=scheduler_cosine)
for epoch in range(epochs):
net.train()
optimization.zero_grad()
#print("脏数据统计", torch.sum(torch.isnan(feature), dim=0))
eeg = train_X[:, :310]
eye = train_X[:, 310:]
eeg = eeg.reshape(-1, 62, 5)
eeg = torch.FloatTensor(eeg).to(device)
eye = torch.FloatTensor(eye).to(device)
#print("eeg type {}, eye type {}".format(type(eeg),type(eye)))
target = torch.LongTensor(train_Y).to(device)
out = net(eeg, eye)
#print("batch output",out[0])
loss = criterion(out, target)
loss.backward()
clip_grad_norm_(net.parameters(), max_norm=10)
optimization.step()
scheduler_warmup.step()
running_loss = loss.item()
#print("batch loss", loss.item())
_, prediction = torch.max(out.data, dim=-1)
total = target.size(0)
correct = prediction.eq(target.data).cpu().sum().item()
cur_loss = running_loss / len(train_X)
cur_acc = correct / total
if isinstance(cur_acc, torch.Tensor):
cur_acc = cur_acc.item()
if isinstance(cur_loss, torch.Tensor):
cur_loss = cur_loss.item()
print('Epoch %d/%d\tTraining Loss: %.10f | Acc: %.3f%% (%d/%d)' % (epoch, epochs,
cur_loss, 100 * cur_acc, correct, total))
running_loss_list.append(cur_loss)
running_acc_list.append(cur_acc)
if epoch % 1 == 0:
net.eval()
print("start evaluating...")
eeg = test_X[:, :310]
eye = test_X[:, 310:]
eeg = eeg.reshape(-1, 62, 5)
eeg = torch.FloatTensor(eeg).to(device)
eye = torch.FloatTensor(eye).to(device)
target = torch.LongTensor(test_Y).to(device)
with torch.no_grad():
out = net(eeg, eye)
loss = criterion(out, target)
testing_loss = loss.item()
_, prediction = torch.max(out.data, dim=-1)
# print(prediction)
test_total = target.size(0)
test_correct = prediction.eq(target.data).cpu().sum().item()
y_pre = prediction.cpu().numpy()
y_true = target.cpu().numpy()
test_acc = accuracy_score(y_true, y_pre)
test_loss = testing_loss / test_total
if isinstance(test_acc, torch.Tensor):
test_acc = test_acc.item()
if isinstance(test_loss, torch.Tensor):
test_loss = test_loss.item()
print('Testset Loss: %.10f | Acc: %.3f%% (%d/%d)' % (
test_loss, 100 * test_acc, test_correct, test_total))
testing_acc_list.append(test_acc)
testing_loss_list.append(test_loss)
if test_acc > best_acc:
best_acc = test_acc
best_precision = precision_score(y_true, y_pre, average="macro")
best_recall = precision_score(y_true, y_pre, average="macro")
best_f1 = f1_score(y_true, y_pre, average="macro")
print("better model founded in testsets, start saving new model")
model_name = '%s' % (net.__class__.__name__)
state = {
'net': net.state_dict(),
'epoch': epoch,
'best_acc': best_acc,
'current_loss': test_loss
}
torch.save(state, os.path.join(save_model_path, model_name))
best_f1_list.append(best_f1)
best_acc_list.append(best_acc)
best_precision_list.append(best_precision)
best_recall_list.append(best_recall)
plot_acc_loss_curve({'train_loss': running_loss_list,
'train_acc': running_acc_list,
'test_loss': testing_loss_list,
'test_acc': testing_acc_list}, net.__class__.__name__, exp_des)
df = pd.DataFrame().from_dict({
"acc":best_acc_list,
"precision":best_precision_list,
"recall":best_recall_list,
"f1":best_f1_list
})
df_mean = df.mean()
df_std = df.std()
df = df.append(df_mean, ignore_index=True)
df = df.append(df_std, ignore_index=True)
df.to_csv(result_save_path+'/results.csv')
def subject_dependent_CV(session=1):
# prepare data
session = session
balance = True
shuffle = False
modal = 'concat'
nor_method = 1
label_smooth = 0.3
fine_tuning = True
best_acc_list = []
best_precision_list = []
best_recall_list = []
best_f1_list = []
result_save_path = './seed_cv_results/session{}'.format(session)
if not os.path.exists(result_save_path):
os.makedirs(result_save_path)
# reading the data in the whole dataset
for idx in range(1, 16):
print("contructing dataset...")
eeg = SEED_IV(session=session, individual=idx, modal=modal, shuffle=shuffle, balance=balance, k_fold=3)
k_fold_data = eeg.get_training_kfold_data()
for fold, (train_X, train_Y, test_X, test_Y) in enumerate(k_fold_data):
best_acc = -1
best_precision = -1
best_recall = -1
best_f1 = -1
print("train_X shape", train_X.shape)
print("train_Y shape", train_Y.shape)
print("test_X shape", test_X.shape)
print("test_Y shape", test_Y.shape)
train_X, train_Y, test_X, test_Y = seed_normalization(train_X, train_Y, test_X, test_Y, nor_method=1, merge=0,
column=0)
train_X = train_X.astype(np.float32)
test_X = test_X.astype(np.float32)
train_Y = train_Y.astype(np.int32)
test_Y = test_Y.astype(np.int32)
# Hyper-parameters
device = torch.device('cuda') if torch.cuda.is_available() else torch.device('cpu')
epochs = 500
batch_size = 1024
learning_rate = 1e-4
criterion = LabelSmoothSoftmax(lb_smooth=label_smooth)
exp_des = "%d_dependent_in_seesion_%d_fold%d_%s_%s_%s_%d_%d" % (
idx, session, fold, 'balance' if balance else 'without_balance',
'shuffle' if shuffle else "without_shuffle", 'seed', epochs, batch_size)
print("starting subject-dependent training experiments on individual %d in session %d"% (idx, session))
print("train_X shape", train_X.shape)
print("train_Y shape", train_Y.shape)
print("test_X shape", test_X.shape)
print("test_Y shape", test_Y.shape)
print("model construction...")
net = Hierarchical_ATTN_With_Senti_Map()
# if fine_tuning we continue train the pretrained model
net = net.to(device)
save_model_path = '../../saved_models/%s/session_%d/subject_%d/fold_%d' % (net.__class__.__name__, session, idx,fold)
if not os.path.exists(save_model_path):
os.makedirs(save_model_path)
optimization = RMSprop(net.parameters(), lr=learning_rate, weight_decay=0.01)
# save model training state
running_loss_list = []
running_acc_list = []
testing_loss_list =[]
testing_acc_list = []
print("start training...")
scheduler_cosine = torch.optim.lr_scheduler.CosineAnnealingLR(optimizer=optimization, T_max=epochs)
scheduler_warmup = GradualWarmupScheduler(optimizer=optimization, multiplier=10,
total_epoch=np.ceil(0.1 * epochs),
after_scheduler=scheduler_cosine)
for epoch in range(epochs):
net.train()
optimization.zero_grad()
#print("脏数据统计", torch.sum(torch.isnan(feature), dim=0))
eeg = train_X[:, :310]
eye = train_X[:, 310:]
eeg = eeg.reshape(-1, 62, 5)
eeg = torch.FloatTensor(eeg).to(device)
eye = torch.FloatTensor(eye).to(device)
#print("eeg type {}, eye type {}".format(type(eeg),type(eye)))
target = torch.LongTensor(train_Y).to(device)
out = net(eeg, eye)
#print("batch output",out[0])
loss = criterion(out, target)
loss.backward()
clip_grad_norm_(net.parameters(), max_norm=10)
optimization.step()
scheduler_warmup.step()
running_loss = loss.item()
#print("batch loss", loss.item())
_, prediction = torch.max(out.data, dim=-1)
total = target.size(0)
correct = prediction.eq(target.data).cpu().sum().item()
cur_loss = running_loss / len(train_X)
cur_acc = correct / total
if isinstance(cur_acc, torch.Tensor):
cur_acc = cur_acc.item()
if isinstance(cur_loss, torch.Tensor):
cur_loss = cur_loss.item()
print('Epoch %d/%d\tTraining Loss: %.10f | Acc: %.3f%% (%d/%d)' % (epoch, epochs,
cur_loss, 100 * cur_acc, correct, total))
running_loss_list.append(cur_loss)
running_acc_list.append(cur_acc)
if epoch % 1 == 0:
net.eval()
print("start evaluating...")
eeg = test_X[:, :310]
eye = test_X[:, 310:]
eeg = eeg.reshape(-1, 62, 5)
eeg = torch.FloatTensor(eeg).to(device)
eye = torch.FloatTensor(eye).to(device)
target = torch.LongTensor(test_Y).to(device)
with torch.no_grad():
out = net(eeg, eye)
loss = criterion(out, target)
testing_loss = loss.item()
_, prediction = torch.max(out.data, dim=-1)
# print(prediction)
test_total = target.size(0)
test_correct = prediction.eq(target.data).cpu().sum().item()
y_pre = prediction.cpu().numpy()
y_true = target.cpu().numpy()
test_acc = accuracy_score(y_true, y_pre)
test_loss = testing_loss / test_total
if isinstance(test_acc, torch.Tensor):
test_acc = test_acc.item()
if isinstance(test_loss, torch.Tensor):
test_loss = test_loss.item()
print('Testset Loss: %.10f | Acc: %.3f%% (%d/%d)' % (
test_loss, 100 * test_acc, test_correct, test_total))
testing_acc_list.append(test_acc)
testing_loss_list.append(test_loss)
if test_acc > best_acc:
best_acc = test_acc
best_precision = precision_score(y_true, y_pre, average="macro")
best_recall = precision_score(y_true, y_pre, average="macro")
best_f1 = f1_score(y_true, y_pre, average="macro")
print("better model founded in testsets, start saving new model")
model_name = '%s' % (net.__class__.__name__)
state = {
'net': net.state_dict(),
'epoch': epoch,
'best_acc': best_acc,
'current_loss': test_loss
}
torch.save(state, os.path.join(save_model_path, model_name))
best_f1_list.append(best_f1)
best_acc_list.append(best_acc)
best_precision_list.append(best_precision)
best_recall_list.append(best_recall)
plot_acc_loss_curve({'train_loss': running_loss_list,
'train_acc': running_acc_list,
'test_loss': testing_loss_list,
'test_acc': testing_acc_list}, net.__class__.__name__, exp_des)
df = pd.DataFrame().from_dict({
"acc":best_acc_list,
"precision":best_precision_list,
"recall":best_recall_list,
"f1":best_f1_list
})
df_mean = df.mean()
df_std = df.std()
df = df.append(df_mean, ignore_index=True)
df = df.append(df_std, ignore_index=True)
df.to_csv(result_save_path+'/results.csv')
if __name__ == '__main__':
# for mode in ['subject_dependent', 'subject_independent']:
# for session in range(1, 4):
# main(session, mode)
# main(1, 'subject_dependent')
visualize_matrix(2, 3)
# for session in [3,2, 1]:
# subject_dependent_CV(session)
# for session in [3, 2, 1]:
# test(session)
print("experiment done!")
| 46.126904
| 166
| 0.578931
| 4,536
| 36,348
| 4.3653
| 0.090388
| 0.012121
| 0.016312
| 0.00909
| 0.810363
| 0.78693
| 0.767335
| 0.757335
| 0.751225
| 0.746073
| 0
| 0.020734
| 0.308683
| 36,348
| 788
| 167
| 46.126904
| 0.767272
| 0.107241
| 0
| 0.723051
| 0
| 0.003317
| 0.06546
| 0.012074
| 0
| 0
| 0
| 0
| 0.00995
| 1
| 0.024876
| false
| 0
| 0.036484
| 0
| 0.08126
| 0.072968
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
aac86f7de7b2cba67310de0df3235bfba3413252
| 8,533
|
py
|
Python
|
botmother/Conversation.py
|
InsightLab/BotMother-Python
|
56f79ad5defb6a6250573deed29f417357e9c9f3
|
[
"MIT"
] | null | null | null |
botmother/Conversation.py
|
InsightLab/BotMother-Python
|
56f79ad5defb6a6250573deed29f417357e9c9f3
|
[
"MIT"
] | null | null | null |
botmother/Conversation.py
|
InsightLab/BotMother-Python
|
56f79ad5defb6a6250573deed29f417357e9c9f3
|
[
"MIT"
] | null | null | null |
"""
Module conataining the Conversation class.
This class is used to create a conversation flow to the bot
"""
from .exception.Exceptions import *
from telegram.ext import Filters,ConversationHandler
class Conversation():
#static value to represent the end of a conversation
END = ConversationHandler.END
def __init__(self):
self.entry_points = []
self.states = {}
self.fallbacks = []
def add_command_entry_point(self,command,command_handler,pass_user_data=False):
"""
This method adds a command event as a entry point to the conversation.
Entry poins are events that, when triggered, starts the conversation flow.
Parameters
----------
command : String
The name of the command that will trigger the event
command_handler : Callable
The Callable object that will execute. Must receive 2 parameters:
bot : the bot object from python-telegram-bot
update : the update object from python-telegram-bot
This callable must return the next state of the conversation. Conversation.END
will represents the end of the conversation
pass_user_data: Boolean
This says if an object will be passed over the states of the conversation,
allowing to store information.
"""
if(callable(command_handler)):
if isinstance(command, str):
self.entry_points.append((command,command_handler,None,pass_user_data))
else:
raise NotAStringException("{} isn't a valid command name. Command names must be string")
else:
raise NotCallableException("{} is not a function".format(command_handler))
def add_message_entry_point(self,message_handler,message_filter=Filters.text,pass_user_data=False):
"""
This method adds a message event as a entry point to the conversation.
Entry poins are events that, when triggered, starts the conversation flow.
Parameters
----------
message_handler : Callable
The Callable object that will execute. Must receive 2 parameters:
bot : the bot object from python-telegram-bot
update : the update object from python-telegram-bot
This callable must return the next state of the conversation. Conversation.END
will represents the end of the conversation
message_filter: Filter from python-telegram-bot
A filter that will defines wich kind of message will trigger this event.
The default is text.
pass_user_data: Boolean
This says if an object will be passed over the states of the conversation,
allowing to store information.
"""
if(callable(message_handler)):
self.entry_points.append((None,message_handler,message_filter,pass_user_data))
else:
raise NotCallableException("{} is not a function".format(message_handler))
def get_entry_points(self):
"""
Return the list of entry_points as a tuple (command,function,filter), where:
* If command = None, then is a Command Handler
* Else, is a Message Handler
Returns
-------
entry_points : List(command,function,filter)
List of command(if is a command handler), handler function and
filter(if is message handler)
"""
return self.entry_points
def add_command_to_state(self,state,command,command_handler,pass_user_data=False):
"""
This method adds a command event to a state of the conversation.
Parameters
----------
state: String
The state of the conversation that this handler will be designed
command : String
The name of the command that will trigger the event
command_handler : Callable
The Callable object that will execute. Must receive 2 parameters:
bot : the bot object from python-telegram-bot
update : the update object from python-telegram-bot
This callable must return the next state of the conversation. Conversation.END
will represents the end of the conversation
pass_user_data: Boolean
This says if an object will be passed over the states of the conversation,
allowing to store information.
"""
if(callable(command_handler)):
if isinstance(command, str):
if not state in self.states:
self.states[state] = []
self.states[state].append((command,command_handler,None,pass_user_data))
else:
raise NotAStringException("{} isn't a valid command name. Command names must be string")
else:
raise NotCallableException("{} is not a function".format(command_handler))
def add_message_to_state(self,state,message_handler,message_filter=Filters.text,pass_user_data=False):
"""
This method adds a message event to a state of the conversation.
Parameters
----------
state: String
The state of the conversation that this handler will be designed
message_handler : Callable
The Callable object that will execute. Must receive 2 parameters:
bot : the bot object from python-telegram-bot
update : the update object from python-telegram-bot
This callable must return the next state of the conversation. Conversation.END
will represents the end of the conversation
message_filter: Filter from python-telegram-bot
A filter that will defines wich kind of message will trigger this event.
The default is text.
pass_user_data: Boolean
This says if an object will be passed over the states of the conversation,
allowing to store information.
"""
if(callable(message_handler)):
if not state in self.states:
self.states[state] = []
self.states[state].append((None,message_handler,message_filter,pass_user_data))
else:
raise NotCallableException("{} is not a function".format(message_handler))
def get_states(self):
"""
Return the dict where the key is a state and the value is a list of
tuple like (command,function,filter), where:
* If command = None, then is a Command Handler
* Else, is a Message Handler
Returns
-------
states : dict()
dict where the key is a state and the value is a list
of command(if is a command handler), handler function and
filter(if is message handler)
"""
return self.states
def add_command_to_fallback(self,command,command_handler,pass_user_data=False):
"""
This method adds a command event as a fallback to the conversation.
Fallbacks are events that, when triggered, may cancel the conversation.
Parameters
----------
command : String
The name of the command that will trigger the event
command_handler : Callable
The Callable object that will execute. Must receive 2 parameters:
bot : the bot object from python-telegram-bot
update : the update object from python-telegram-bot
This callable must return the next state of the conversation. Conversation.END
will represents the end of the conversation.
pass_user_data: Boolean
This says if an object will be passed over the states of the conversation,
allowing to store information.
"""
if(callable(command_handler)):
if isinstance(command, str):
self.fallbacks.append((command,command_handler,None,pass_user_data))
else:
raise NotAStringException("{} isn't a valid command name. Command names must be string")
else:
raise NotCallableException("{} is not a function".format(command_handler))
def add_message_to_fallback(self,message_handler,message_filter=Filters.text,pass_user_data=False):
"""
This method adds a message event as a fallback to the conversation.
Fallbacks are events that, when triggered, may cancel the conversation.
Parameters
----------
message_handler : Callable
The Callable object that will execute. Must receive 2 parameters:
bot : the bot object from python-telegram-bot
update : the update object from python-telegram-bot
This callable must return the next state of the conversation. Conversation.END
will represents the end of the conversation
message_filter: Filter from python-telegram-bot
A filter that will defines wich kind of message will trigger this event.
The default is text.
pass_user_data: Boolean
This says if an object will be passed over the states of the conversation,
allowing to store information.
"""
if(callable(message_handler)):
self.fallbacks.append((None,message_handler,message_filter,pass_user_data))
else:
raise NotCallableException("{} is not a function".format(message_handler))
def get_fallbacks(self):
"""
Return the list of entry_points as a tuple (command,function,filter), where:
* If command = None, then is a Command Handler
* Else, is a Message Handler
Returns
-------
fallbacks : List(command,function,filter)
List of command(if is a commkand handler), handler function and
filter(if is message handler)
"""
return self.fallbacks
| 36.780172
| 103
| 0.747217
| 1,225
| 8,533
| 5.116735
| 0.09551
| 0.074186
| 0.059668
| 0.050255
| 0.911615
| 0.911615
| 0.911615
| 0.911615
| 0.911615
| 0.911615
| 0
| 0.000858
| 0.180476
| 8,533
| 232
| 104
| 36.780172
| 0.895467
| 0.711239
| 0
| 0.54386
| 0
| 0
| 0.110697
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.175439
| false
| 0.210526
| 0.035088
| 0
| 0.298246
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
aacdf80433d05642d72e4a622220f4d4bc3c34ab
| 3,746
|
py
|
Python
|
Maple/search_indexes.py
|
ShinJJang/Podium
|
6a335a70a51b33438c541100a04554c04ad8ced6
|
[
"MIT"
] | null | null | null |
Maple/search_indexes.py
|
ShinJJang/Podium
|
6a335a70a51b33438c541100a04554c04ad8ced6
|
[
"MIT"
] | null | null | null |
Maple/search_indexes.py
|
ShinJJang/Podium
|
6a335a70a51b33438c541100a04554c04ad8ced6
|
[
"MIT"
] | null | null | null |
from haystack import indexes
from django.contrib.auth.models import User
from .models import Posts, Groups, HighSchools, University, Teams, Companies, Hobbies, PLanguages
class PostIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
post = indexes.EdgeNgramField(model_attr='post')
def get_model(self):
return Posts
def index_queryset(self, using=None):
"""Used when the entire index for model is updated."""
return self.get_model().objects.all()
class UserIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
username = indexes.EdgeNgramField(model_attr='username')
email = indexes.CharField(model_attr='email')
def get_model(self):
return User
def index_queryset(self, using=None):
"""Used when the entire index for model is updated."""
return self.get_model().objects.all()
class GroupIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
group_name = indexes.EdgeNgramField(model_attr='group_name')
description = indexes.EdgeNgramField(model_attr='description')
def get_model(self):
return Groups
def index_queryset(self, using=None):
"""Used when the entire index for model is updated."""
return self.get_model().objects.all().exclude(open_scope=2)
class HighSchoolsIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
name = indexes.EdgeNgramField(model_attr='name')
def get_model(self):
return HighSchools
def index_queryset(self, using=None):
"""Used when the entire index for model is updated."""
return self.get_model().objects.all()
class UniversityIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
name = indexes.EdgeNgramField(model_attr='name')
def get_model(self):
return University
def index_queryset(self, using=None):
"""Used when the entire index for model is updated."""
return self.get_model().objects.all()
class TeamsIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
name = indexes.EdgeNgramField(model_attr='name')
def get_model(self):
return Teams
def index_queryset(self, using=None):
"""Used when the entire index for model is updated."""
return self.get_model().objects.all()
class CompaniesIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
name = indexes.EdgeNgramField(model_attr='name')
def get_model(self):
return Companies
def index_queryset(self, using=None):
"""Used when the entire index for model is updated."""
return self.get_model().objects.all()
class HobbiesIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
name = indexes.EdgeNgramField(model_attr='name')
def get_model(self):
return Hobbies
def index_queryset(self, using=None):
"""Used when the entire index for model is updated."""
return self.get_model().objects.all()
class PLanguagesIndex(indexes.SearchIndex, indexes.Indexable):
text = indexes.CharField(document=True, use_template=True)
name = indexes.EdgeNgramField(model_attr='name')
def get_model(self):
return PLanguages
def index_queryset(self, using=None):
"""Used when the entire index for model is updated."""
return self.get_model().objects.all()
| 33.150442
| 97
| 0.709824
| 463
| 3,746
| 5.634989
| 0.140389
| 0.055194
| 0.099655
| 0.114987
| 0.796857
| 0.759678
| 0.759678
| 0.759678
| 0.759678
| 0.759678
| 0
| 0.000326
| 0.181527
| 3,746
| 113
| 98
| 33.150442
| 0.85062
| 0.117459
| 0
| 0.602941
| 0
| 0
| 0.019013
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.264706
| false
| 0
| 0.044118
| 0.132353
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 8
|
aae2f5a705e6dfeb999768faf0eb29171d70a6bc
| 8,184
|
py
|
Python
|
models.py
|
gray-li/maddpg
|
afd93f8d36812e0ddddd5c8267900aa9babdc378
|
[
"MIT"
] | null | null | null |
models.py
|
gray-li/maddpg
|
afd93f8d36812e0ddddd5c8267900aa9babdc378
|
[
"MIT"
] | null | null | null |
models.py
|
gray-li/maddpg
|
afd93f8d36812e0ddddd5c8267900aa9babdc378
|
[
"MIT"
] | null | null | null |
import torch
import torch.nn as nn
import torch.optim as optim
import torch.nn.functional as F
def hidden_init(layer):
fan_in = layer.weight.data.size()[0]
lim = 1. / np.sqrt(fan_in)
return (-lim, lim)
class MADDPGModel(nn.Module):
def __init__(self, n_agents, state_dims, action_dims,
critic_hidden_layers = (128, 64),
actor_hidden_layers = (128, 64)):
super().__init__()
actor_layers_input_size = state_dims
actor_layers = []
for units in actor_hidden_layers:
actor_layers.append(nn.Linear(actor_layers_input_size, units))
actor_layers_input_size = units
if actor_layers:
self.actor_layers = nn.ModuleList(actor_layers)
# add the action values to the first layer instead of the 2nd layer, which
# was used in the original DDPG paper
critic_layers_input_size = (state_dims + action_dims) * n_agents
critic_layers = []
for units in critic_hidden_layers:
critic_layers.append(nn.Linear(critic_layers_input_size, units))
critic_layers_input_size = units
if critic_layers:
self.critic_layers = nn.ModuleList(critic_layers)
self.actor_output_layer = nn.Linear(actor_layers_input_size, action_dims)
torch.nn.init.uniform_(self.actor_output_layer.weight, -3e-3, 3e-3)
self.critic_output_layer = nn.Linear(critic_layers_input_size, 1)
# parameter lists for optimizing the actor and critic networks
self.actor_params = list(self.actor_layers.parameters()) + list(self.actor_output_layer.parameters())
self.critic_params = list(self.critic_layers.parameters()) + list(self.critic_output_layer.parameters())
def forward(self, state):
# applying the tanh activations in forward as they are stateless functions
x = state
for layer in self.actor_layers:
x = F.relu(layer(x))
# action returned is scaled between -1 and 1 from tanh activation
# the DDPG agent scales the action vector in the action function
action = F.tanh(self.actor_output_layer(x))
return action
def critic_value(self, state, action):
x = torch.cat((state, action), dim = 1)
for layer in self.critic_layers:
x = F.relu(layer(x))
value = self.critic_output_layer(x)
return value
class DDPGModel(nn.Module):
def __init__(self, state_dims, action_dims,
shared_hidden_layers = tuple(),
critic_hidden_layers = (128, 64),
actor_hidden_layers = (128, 64)):
super().__init__()
input_size = state_dims
shared_layers = []
for units in shared_hidden_layers:
shared_layers.append(nn.Linear(input_size, units))
input_size = units
if shared_layers:
self.shared_layers = nn.ModuleList(shared_layers)
actor_layers_input_size = input_size
actor_layers = []
for units in actor_hidden_layers:
actor_layers.append(nn.Linear(actor_layers_input_size, units))
actor_layers_input_size = units
if actor_layers:
self.actor_layers = nn.ModuleList(actor_layers)
# add the action values to the first layer instead of the 2nd layer, which
# was used in the original DDPG paper
critic_layers_input_size = input_size + action_dims
critic_layers = []
for units in critic_hidden_layers:
critic_layers.append(nn.Linear(critic_layers_input_size, units))
critic_layers_input_size = units
if critic_layers:
self.critic_layers = nn.ModuleList(critic_layers)
self.actor_output_layer = nn.Linear(actor_layers_input_size, action_dims)
self.critic_output_layer = nn.Linear(critic_layers_input_size, 1)
# parameter lists for optimizing the actor and critic networks
if hasattr(self, 'shared_layers'):
self.shared_params = list(self.shared_layers.parameters())
else:
self.shared_params = []
self.actor_params = list(self.actor_layers.parameters()) + list(self.actor_output_layer.parameters()) + self.shared_params
self.critic_params = list(self.critic_layers.parameters()) + list(self.critic_output_layer.parameters()) + self.shared_params
def forward(self, state):
# applying the tanh activations in forward as they are stateless functions
x = state
if hasattr(self, 'shared_layers'):
for layer in self.shared_layers:
x = F.relu(layer(x))
for layer in self.actor_layers:
x = F.relu(layer(x))
# action returned is scaled between -1 and 1 from tanh activation
# the DDPG agent scales the action vector in the action function
action = F.tanh(self.actor_output_layer(x))
return action
def critic_value(self, state, action):
x = torch.cat((state, action), dim = 1)
if hasattr(self, 'shared_layers'):
for layer in self.shared_layers:
x = F.relu(layer(x))
for layer in self.critic_layers:
x = F.relu(layer(x))
value = self.critic_output_layer(x)
return value
# Mulit-Agent Distributional Deep Deterministic Policy Gradients
class MAD3PGModel(nn.Module):
def __init__(self, n_agents, state_dims, action_dims, quantiles,
critic_hidden_layers = (128, 64),
actor_hidden_layers = (128, 64)):
super().__init__()
actor_layers_input_size = state_dims
actor_layers = []
for units in actor_hidden_layers:
actor_layers.append(nn.Linear(actor_layers_input_size, units))
actor_layers_input_size = units
if actor_layers:
self.actor_layers = nn.ModuleList(actor_layers)
# add the action values to the first layer instead of the 2nd layer, which
# was used in the original DDPG paper
critic_layers_input_size = (state_dims + action_dims) * n_agents
critic_layers = []
for units in critic_hidden_layers:
critic_layers.append(nn.Linear(critic_layers_input_size, units))
critic_layers_input_size = units
if critic_layers:
self.critic_layers = nn.ModuleList(critic_layers)
self.actor_output_layer = nn.Linear(actor_layers_input_size, action_dims)
torch.nn.init.uniform_(self.actor_output_layer.weight, -3e-3, 3e-3)
self.critic_output_layer = nn.Linear(critic_layers_input_size, quantiles)
# parameter lists for optimizing the actor and critic networks
self.actor_params = list(self.actor_layers.parameters()) + list(self.actor_output_layer.parameters())
self.critic_params = list(self.critic_layers.parameters()) + list(self.critic_output_layer.parameters())
def forward(self, state):
# applying the tanh activations in forward as they are stateless functions
x = state
for layer in self.actor_layers:
x = F.relu(layer(x))
# action returned is scaled between -1 and 1 from tanh activation
# the DDPG agent scales the action vector in the action function
action = F.tanh(self.actor_output_layer(x))
return action
def critic_value(self, state, action):
x = torch.cat((state, action), dim = 1)
for layer in self.critic_layers:
x = F.relu(layer(x))
quantiles = self.critic_output_layer(x)
return quantiles
| 41.543147
| 134
| 0.612903
| 1,000
| 8,184
| 4.755
| 0.106
| 0.076341
| 0.07571
| 0.050473
| 0.879285
| 0.863091
| 0.851314
| 0.851314
| 0.851314
| 0.851314
| 0
| 0.009774
| 0.312439
| 8,184
| 197
| 135
| 41.543147
| 0.835259
| 0.143573
| 0
| 0.759399
| 0
| 0
| 0.00574
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.075188
| false
| 0
| 0.030075
| 0
| 0.180451
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2abecc9fc8d83881ef70d762f202af564272384d
| 50,735
|
py
|
Python
|
scripts/ccg2lambda_tools_test.py
|
BlackNat5937/ccg2lambda
|
fd59fd541cfceb82ac55273e3b437792b467b9a6
|
[
"Apache-2.0"
] | 1
|
2019-04-21T16:14:00.000Z
|
2019-04-21T16:14:00.000Z
|
scripts/ccg2lambda_tools_test.py
|
BlackNat5937/ccg2lambda
|
fd59fd541cfceb82ac55273e3b437792b467b9a6
|
[
"Apache-2.0"
] | null | null | null |
scripts/ccg2lambda_tools_test.py
|
BlackNat5937/ccg2lambda
|
fd59fd541cfceb82ac55273e3b437792b467b9a6
|
[
"Apache-2.0"
] | null | null | null |
#!/usr/bin/python3
# -*- coding: utf-8 -*-
#
# Copyright 2015 Pascual Martinez-Gomez
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import unittest
from lxml import etree
from nltk.sem.logic import Expression
from ccg2lambda_tools import (assign_semantics_to_ccg, type_raise, build_ccg_tree)
from logic_parser import lexpr
from semantic_index import (SemanticRule, SemanticIndex,
get_attributes_from_ccg_node_recursively, find_node_by_id)
class TypeRaiseTestCase(unittest.TestCase):
def test_const_expr_raised1(self):
expr = lexpr(r'nice')
order = 1
raised_expr = type_raise(expr, order)
expected_raised_expr = lexpr(r'\X.nice(X)')
self.assertEqual(expected_raised_expr, raised_expr)
def test_expr_raised1(self):
expr = lexpr(r'\x.nice(x)')
order = 1
raised_expr = type_raise(expr, order)
expected_raised_expr = lexpr(r'\P x.nice(P(x))')
self.assertEqual(expected_raised_expr, raised_expr)
def test_expr_raised2(self):
expr = lexpr(r'\x.nice(x)')
order = 2
raised_expr = type_raise(expr, order)
expected_raised_expr = lexpr(r'\P Q x.nice(P(Q, x))')
self.assertEqual(expected_raised_expr, raised_expr)
class AssignSemanticsToCCGTestCase(unittest.TestCase):
def setUp(self):
self.semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'NP', r'\P.P'),
SemanticRule(r'NP/NP', r'\P Q x.(Q(x) & P(x))',
{'rule' : 'ADN'}),
SemanticRule(r'S\NP', r'\P x.P(x)'),
SemanticRule(r'S\NP\NP', r'\P y x.P(x, y)'),
SemanticRule(r'S\NP\NP\NP', r'\P z y x.P(x, y, z)'),
SemanticRule(r'default', r'\P x.x')]
self.semantic_index.rules = semantic_rules
def test_token_to_const_latin(self):
sentence_str = r"""
<sentence id="s0">
<tokens>
<token base="*" pos="名詞-固有名詞-組織" surf="Scala" id="t0_0"/>
</tokens>
<ccg root="sp0-3">
<span terminal="t0_0" category="NP[mod=nm,case=nc]" end="1" begin="0" id="sp0-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, self.semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_Scala')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_token_to_const_japanese(self):
sentence_str = r"""
<sentence id="s0">
<tokens>
<token base="言語" pos="名詞-一般" surf="言語" id="t0_3"/>
</tokens>
<ccg root="sp0-9">
<span terminal="t0_3" category="NP[mod=nm,case=nc]" end="4" begin="3" id="sp0-9"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, self.semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_言語')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_token_to_function_1arg(self):
sentence_str = r"""
<sentence id="s0">
<tokens>
<token base="です" katsuyou="基本形" pos="助動詞" surf="です" id="t0_4"/>
</tokens>
<ccg root="sp0-10">
<span terminal="t0_4" category="S[mod=nm,form=base]\NP[mod=nm,case=nc]" end="5" begin="4" id="sp0-10"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, self.semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'\x._です(x)')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_token_to_function_2args(self):
sentence_str = r"""
<sentence id="s0">
<tokens>
<token base="は" pos="助詞-係助詞" surf="は" id="t0_1"/>
</tokens>
<ccg root="sp0-4">
<span terminal="t0_1" category="(S/S)\NP[mod=nm,case=nc]" end="2" begin="1" id="sp0-4"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, self.semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'\x y._は(y, x)')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_typeraising_for_unary_pred(self):
sentence_str = r"""
<sentence id="s0">
<tokens>
<token base="良い" katsuyou="基本形" pos="形容詞-自立" surf="良い" id="t0_2"/>
</tokens>
<ccg root="sp0-7">
<span child="sp0-8" rule="ADN" category="NP[case=nc]/NP[case=nc]" end="3" begin="2" id="sp0-7"/>
<span terminal="t0_2" category="S[mod=adn,form=base]" end="3" begin="2" id="sp0-8"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, self.semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'\P x.(P(x) & _良い(x))')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_func_application_forward(self):
sentence_str = r"""
<sentence id="s0">
<tokens>
<token base="良い" katsuyou="基本形" pos="形容詞-自立" surf="良い" id="t0_2"/>
<token base="言語" pos="名詞-一般" surf="言語" id="t0_3"/>
</tokens>
<ccg root="sp0-6">
<span child="sp0-7 sp0-9" rule=">" category="NP[mod=nm,case=nc]" end="4" begin="2" id="sp0-6"/>
<span child="sp0-8" rule="ADN" category="NP[case=nc]/NP[case=nc]" end="3" begin="2" id="sp0-7"/>
<span terminal="t0_2" category="S[mod=adn,form=base]" end="3" begin="2" id="sp0-8"/>
<span terminal="t0_3" category="NP[mod=nm,case=nc]" end="4" begin="3" id="sp0-9"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, self.semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'\x.(_言語(x) & _良い(x))')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_func_application_backward(self):
sentence_str = r"""
<sentence id="s0">
<tokens>
<token base="*" pos="名詞-固有名詞-組織" surf="Scala" id="t0_0"/>
<token base="は" pos="助詞-係助詞" surf="は" id="t0_1"/>
</tokens>
<ccg root="sp0-2">
<span child="sp0-3 sp0-4" rule="<" category="S/S" end="2" begin="0" id="sp0-2"/>
<span terminal="t0_0" category="NP[mod=nm,case=nc]" end="1" begin="0" id="sp0-3"/>
<span terminal="t0_1" category="(S/S)\NP[mod=nm,case=nc]" end="2" begin="1" id="sp0-4"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, self.semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'\y._は(y, _Scala)')
self.assertEqual(expected_semantics, lexpr(semantics))
# Note: the rule that signals function combination contains the "B" character.
def test_func_combination_backward(self):
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="簡潔" pos="名詞-形容動詞語幹" surf="簡潔" id="t1_3"/>
<token base="です" katsuyou="基本形" pos="助動詞" surf="です" id="t1_4"/>
</tokens>
<ccg root="sp1-7">
<span child="sp1-8 sp1-9" rule="<B" category="S[mod=nm,form=base]\NP[mod=nm,case=ga]" end="5" begin="3" id="sp1-7"/>
<span terminal="t1_3" category="S[mod=nm,form=da]\NP[mod=nm,case=ga]" end="4" begin="3" id="sp1-8"/>
<span terminal="t1_4" category="S[mod=nm,form=base]\S[mod=nm,form=da]" end="5" begin="4" id="sp1-9"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, self.semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'\x._です(_簡潔(x))')
self.assertEqual(expected_semantics, lexpr(semantics))
# Note: the rule that signals function combination contains the "B" character.
def test_func_combination_backwardSimple(self):
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="F" pos="pos1" surf="F" id="t1_3"/>
<token base="G" katsuyou="katsuyou2" pos="pos2" surf="G" id="t1_4"/>
</tokens>
<ccg root="sp1-7">
<span child="sp1-8 sp1-9" rule="<B" category="S[mod=nm,form=base]\NP[mod=nm,case=ga]" end="5" begin="3" id="sp1-7"/>
<span terminal="t1_3" category="S[mod=nm,form=da]\NP[mod=nm,case=ga]" end="4" begin="3" id="sp1-8"/>
<span terminal="t1_4" category="S[mod=nm,form=base]\S[mod=nm,form=da]" end="5" begin="4" id="sp1-9"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, self.semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'\x._G(_F(x))')
self.assertEqual(expected_semantics, lexpr(semantics))
# Note: the rule that signals function combination contains the "B" character.
def test_func_combination_backwardSimpleTwoArgs(self):
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="F" pos="pos1" surf="F" id="t1_3"/>
<token base="G" katsuyou="katsuyou2" pos="pos2" surf="G" id="t1_4"/>
</tokens>
<ccg root="sp1-7">
<span child="sp1-8 sp1-9" rule="<B2" category="S[mod=nm,form=base]\NP[mod=nm,case=ga]\NP" end="5" begin="3" id="sp1-7"/>
<span terminal="t1_3" category="S[mod=nm,form=da]\NP[mod=nm,case=ga]\NP" end="4" begin="3" id="sp1-8"/>
<span terminal="t1_4" category="S[mod=nm,form=base]\S[mod=nm,form=da]" end="5" begin="4" id="sp1-9"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, self.semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'\y x._G(_F(x, y))')
self.assertEqual(expected_semantics, lexpr(semantics))
# Note: the rule that signals function combination contains the "B" character.
def test_func_combination_backwardComplexTwoArgs(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'S\NP\NP', r'\P y x e. P(e, x, y)'),
SemanticRule(r'S\S', r'\P Q e. AND(past(e), Q(e))')]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token id="s1_4" surf="ほめ" pos="動詞" pos1="自立" pos2="*" pos3="*" inflectionType="一段" inflectionForm="連用形" base="ほめる" reading="ホメ"/>
<token id="s1_5" surf="た" pos="助動詞" pos1="*" pos2="*" pos3="*" inflectionType="特殊・タ" inflectionForm="基本形" base="た" reading="タ"/>
</tokens>
<ccg root="s1_sp9">
<span id="s1_sp9" begin="4" end="6" category="(S[mod=nm,form=base]\NP[mod=nm,case=ga])\NP[mod=nm,case=o]" rule="<B2" child="s1_sp10 s1_sp11"/>
<span id="s1_sp10" begin="4" end="5" category="(S[mod=nm,form=cont]\NP[mod=nm,case=ga])\NP[mod=nm,case=o]" terminal="s1_4"/>
<span id="s1_sp11" begin="5" end="6" category="S[mod=nm,form=base]\S[mod=nm,form=cont]" terminal="s1_5"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'\y x e.AND(past(e), _ほめる(x, y, e))')
self.assertEqual(expected_semantics, lexpr(semantics))
# Note: the rule that signals function combination contains the "B" character.
def test_function_combination_forward(self):
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="とても" pos="副詞-助詞類接続" surf="とても" id="t1_2"/>
<token base="簡潔" pos="名詞-形容動詞語幹" surf="簡潔" id="t1_3"/>
<token base="です" katsuyou="基本形" pos="助動詞" surf="です" id="t1_4"/>
</tokens>
<ccg root="sp1-5">
<span child="sp1-6 sp1-7" rule=">B" category="S[mod=nm,form=base]\NP[mod=nm,case=ga]" end="5" begin="2" id="sp1-5"/>
<span terminal="t1_2" category="S/S" end="3" begin="2" id="sp1-6"/>
<span child="sp1-8 sp1-9" rule="<B" category="S[mod=nm,form=base]\NP[mod=nm,case=ga]" end="5" begin="3" id="sp1-7"/>
<span terminal="t1_3" category="S[mod=nm,form=da]\NP[mod=nm,case=ga]" end="4" begin="3" id="sp1-8"/>
<span terminal="t1_4" category="S[mod=nm,form=base]\S[mod=nm,form=da]" end="5" begin="4" id="sp1-9"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, self.semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'\x._とても(_です(_簡潔(x)))')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_lexical_unary(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'N', r'\P.P'),
SemanticRule(r'NP', r'\P.(P -> P)', {'rule' : 'lex'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
</tokens>
<ccg root="sp1-2">
<span terminal="t1_1" category="N" end="2" begin="1" id="sp1-1"/>
<span child="sp1-1" rule="lex" category="NP" end="2" begin="1" id="sp1-2"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base1 -> _base1')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_lexical_unaryChildmatch(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'N', r'\P.P'),
SemanticRule(r'NP', r'\P.(P -> P)', {'child0_category' : 'CAT1'}),
SemanticRule(r'NP', r'\P.(P & P)', {'child0_category' : 'CAT2'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
</tokens>
<ccg root="sp1-2">
<span terminal="t1_1" category="CAT2" end="2" begin="1" id="sp1-1"/>
<span child="sp1-1" rule="lex" category="NP" end="2" begin="1" id="sp1-2"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base1 & _base1')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_lexical_unaryChildSurfmatch(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'N', r'\P.P'),
SemanticRule(r'NP', r'\P.(P -> P)', {'child0_surf' : '_surfX'}),
SemanticRule(r'NP', r'\P.(P & P)', {'child0_surf' : '_surf1'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
</tokens>
<ccg root="sp1-2">
<span terminal="t1_1" category="CAT2" end="2" begin="1" id="sp1-1"/>
<span child="sp1-1" rule="lex" category="NP" end="2" begin="1" id="sp1-2"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base1 & _base1')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_lexical_unaryChildNomatch(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'N', r'\P.P'),
SemanticRule(r'NP', r'\P.(P -> P)', {'child0_category' : 'R'}),
SemanticRule(r'NP', r'\P.(P & P)', {'child0_category' : 'T'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
</tokens>
<ccg root="sp1-2">
<span terminal="t1_1" category="N" end="2" begin="1" id="sp1-1"/>
<span child="sp1-1" rule="lex" category="NP" end="2" begin="1" id="sp1-2"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base1 & _base1')
self.assertNotEqual(expected_semantics, lexpr(semantics))
def test_lexical_unaryPOSmatchLastUnderespecified(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'N', r'\P.P'),
SemanticRule(r'NP', r'\P.(P & P)', {'child0_pos' : 'NNP'}),
SemanticRule(r'NP', r'\P.(P -> P)', {'rule' : 'lex'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
</tokens>
<ccg root="sp1-2">
<span terminal="t1_1" category="N" pos="NNP" end="2" begin="1" id="sp1-1"/>
<span child="sp1-1" rule="lex" category="NP" end="2" begin="1" id="sp1-2"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base1 -> _base1')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_lexical_unaryPOSmatch(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'N', r'\P.P'),
SemanticRule(r'NP', r'\P.(P & P)', {'child0_pos' : 'pos1'}),
SemanticRule(r'NP', r'\P.(P -> P)', {'child0_pos' : 'xyz'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
</tokens>
<ccg root="sp1-2">
<span terminal="t1_1" category="N" end="2" begin="1" id="sp1-1"/>
<span child="sp1-1" rule="lex" category="NP" end="2" begin="1" id="sp1-2"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base1 & _base1')
self.assertEqual(expected_semantics, lexpr(semantics))
# We still need to tell somehow that the third rule is a rule
# for inner nodes of the CCG tree (and not terminal leaves).
# Specifying an attribute name that starts by "child" does the job.
def test_lexical_binary_match_generic(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'cat1', r'\P.P'),
SemanticRule(r'cat2', r'\P.P'),
SemanticRule(r'NP', r'\P Q.(Q -> P)', {'rule' : 'lex'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
<token base="base2" pos="pos2" surf="surf2" id="t1_2"/>
</tokens>
<ccg root="sp1-3">
<span terminal="t1_1" category="cat1" end="2" begin="1" id="sp1-1"/>
<span terminal="t1_2" category="cat2" end="3" begin="2" id="sp1-2"/>
<span child="sp1-1 sp1-2" rule="lex" category="NP" end="3" begin="1" id="sp1-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base2 -> _base1')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_lexical_binary_specify_left_child(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'cat1', r'\P.P'),
SemanticRule(r'cat2', r'\P.P'),
SemanticRule(r'NP', r'\P Q.(Q -> P)', {'child0_category' : 'cat1'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
<token base="base2" pos="pos2" surf="surf2" id="t1_2"/>
</tokens>
<ccg root="sp1-3">
<span terminal="t1_1" category="cat1" end="2" begin="1" id="sp1-1"/>
<span terminal="t1_2" category="cat2" end="3" begin="2" id="sp1-2"/>
<span child="sp1-1 sp1-2" rule="lex" category="NP" end="3" begin="1" id="sp1-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base2 -> _base1')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_lexical_binary_specify_right_child(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'cat1', r'\P.P'),
SemanticRule(r'cat2', r'\P.P'),
SemanticRule(r'NP', r'\P Q.(Q -> P)', {'child1_category' : 'cat2'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
<token base="base2" pos="pos2" surf="surf2" id="t1_2"/>
</tokens>
<ccg root="sp1-3">
<span terminal="t1_1" category="cat1" end="2" begin="1" id="sp1-1"/>
<span terminal="t1_2" category="cat2" end="3" begin="2" id="sp1-2"/>
<span child="sp1-1 sp1-2" rule="lex" category="NP" end="3" begin="1" id="sp1-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base2 -> _base1')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_lexical_binary_specify_both_children(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'cat1', r'\P.P'),
SemanticRule(r'cat2', r'\P.P'),
SemanticRule(r'NP', r'\P Q.(Q -> P)', {'child0_category' : 'cat1',
'child1_category' : 'cat2'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
<token base="base2" pos="pos2" surf="surf2" id="t1_2"/>
</tokens>
<ccg root="sp1-3">
<span terminal="t1_1" category="cat1" end="2" begin="1" id="sp1-1"/>
<span terminal="t1_2" category="cat2" end="3" begin="2" id="sp1-2"/>
<span child="sp1-1 sp1-2" rule="lex" category="NP" end="3" begin="1" id="sp1-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base2 -> _base1')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_lexical_binary_specify_both_childrenNomatch(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'cat1', r'\P.P'),
SemanticRule(r'cat2', r'\P.P'),
SemanticRule(r'NP', r'\P Q.(Q -> P)', {'child0_category' : 'cat3',
'child1_category' : 'cat2'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
<token base="base2" pos="pos2" surf="surf2" id="t1_2"/>
</tokens>
<ccg root="sp1-3">
<span terminal="t1_1" category="cat1" end="2" begin="1" id="sp1-1"/>
<span terminal="t1_2" category="cat2" end="3" begin="2" id="sp1-2"/>
<span child="sp1-1 sp1-2" rule="lex" category="NP" end="3" begin="1" id="sp1-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base2 -> _base1')
self.assertNotEqual(expected_semantics, lexpr(semantics))
def test_match_traverse_2levels(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'cat1', r'\P.P'),
SemanticRule(r'cat2', r'\P.P'),
SemanticRule(r'cat3', r'\P.P'),
SemanticRule(r'NP', r'\P Q.(Q & P)', {'rule' : 'lex'}),
SemanticRule(r'NP', r'\P Q.(Q -> P)',
{'child0_child0_category' : 'cat1'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
<token base="base2" pos="pos2" surf="surf2" id="t1_2"/>
<token base="base3" pos="pos3" surf="surf3" id="t1_3"/>
</tokens>
<ccg root="sp1-5">
<span terminal="t1_1" category="cat1" end="2" begin="1" id="sp1-1"/>
<span terminal="t1_2" category="cat2" end="3" begin="2" id="sp1-2"/>
<span terminal="t1_3" category="cat3" end="4" begin="3" id="sp1-3"/>
<span child="sp1-1 sp1-2" rule="lex" category="NP" end="3" begin="1" id="sp1-4"/>
<span child="sp1-4 sp1-3" rule="lex" category="NP" end="4" begin="1" id="sp1-5"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base3 -> (_base2 & _base1)')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_match_any(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'cat1', r'\P.P'),
SemanticRule(r'cat2', r'\P.P'),
SemanticRule(r'cat3', r'\P.P'),
SemanticRule(r'NP', r'\P Q.(Q & P)', {'rule' : 'lex'}),
SemanticRule(r'NP', r'\P Q.(Q -> P)', {'child_any_category' : 'cat3'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
<token base="base2" pos="pos2" surf="surf2" id="t1_2"/>
<token base="base3" pos="pos3" surf="surf3" id="t1_3"/>
</tokens>
<ccg root="sp1-5">
<span terminal="t1_1" category="cat1" end="2" begin="1" id="sp1-1"/>
<span terminal="t1_2" category="cat2" end="3" begin="2" id="sp1-2"/>
<span terminal="t1_3" category="cat3" end="4" begin="3" id="sp1-3"/>
<span child="sp1-1 sp1-2" rule="lex" category="NP" end="3" begin="1" id="sp1-4"/>
<span child="sp1-4 sp1-3" rule="lex" category="NP" end="4" begin="1" id="sp1-5"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base3 -> (_base2 & _base1)')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_match_anyCategoryWithFeats(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'cat1', r'\P.P'),
SemanticRule(r'cat2', r'\P.P'),
SemanticRule(r'XX[case=ga]', r'\P.P'),
SemanticRule(r'NP', r'\P Q.(Q & P)', {'rule' : 'lex'}),
SemanticRule(r'NP', r'\P Q.(Q -> P)',
{'child_any_category' : 'XX'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
<token base="base2" pos="pos2" surf="surf2" id="t1_2"/>
<token base="base3" pos="pos3" surf="surf3" id="t1_3"/>
</tokens>
<ccg root="sp1-5">
<span terminal="t1_1" category="cat1" end="2" begin="1" id="sp1-1"/>
<span terminal="t1_2" category="cat2" end="3" begin="2" id="sp1-2"/>
<span terminal="t1_3" category="XX[case=ga]" end="4" begin="3" id="sp1-3"/>
<span child="sp1-1 sp1-2" rule="lex" category="NP" end="3" begin="1" id="sp1-4"/>
<span child="sp1-4 sp1-3" rule="lex" category="NP" end="4" begin="1" id="sp1-5"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base3 -> (_base2 & _base1)')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_match_any2(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'cat1', r'\P.P'),
SemanticRule(r'cat2', r'\P.P'),
SemanticRule(r'cat3', r'\P.P'),
SemanticRule(r'NP', r'\P Q.(Q & P)', {'rule' : 'lex'}),
SemanticRule(r'NP', r'\P Q.(Q | P)', {'child_any_pos' : 'pos1'}),
SemanticRule(r'NP', r'\P Q.(Q -> P)', {'child_any_category' : 'cat3'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
<token base="base2" pos="pos2" surf="surf2" id="t1_2"/>
<token base="base3" pos="pos3" surf="surf3" id="t1_3"/>
</tokens>
<ccg root="sp1-5">
<span terminal="t1_1" category="cat1" pos="pos1" end="2" begin="1" id="sp1-1"/>
<span terminal="t1_2" category="cat2" pos="pos2" end="3" begin="2" id="sp1-2"/>
<span terminal="t1_3" category="cat3" pos="pos3" end="4" begin="3" id="sp1-3"/>
<span child="sp1-1 sp1-2" rule="lex" category="NP" end="3" begin="1" id="sp1-4"/>
<span child="sp1-4 sp1-3" rule="lex" category="NP" end="4" begin="1" id="sp1-5"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base3 -> (_base2 | _base1)')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_lexical_binary_surf_any_surf(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'cat1', r'\P.P'),
SemanticRule(r'cat2', r'\P.P'),
SemanticRule(r'NP', r'\P Q.(Q -> P)', {'child1_surf' : '_surf2',
'child_any_surf' : '_surf1'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
<token base="base2" pos="pos2" surf="surf2" id="t1_2"/>
</tokens>
<ccg root="sp1-3">
<span terminal="t1_1" category="cat1" end="2" begin="1" id="sp1-1"/>
<span terminal="t1_2" category="cat2" end="3" begin="2" id="sp1-2"/>
<span child="sp1-1 sp1-2" rule="lex" category="NP" end="3" begin="1" id="sp1-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base2 -> _base1')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_inner_node_child_category(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'cat1', r'\P.P'),
SemanticRule(r'NP/NP', r'\P.P'),
SemanticRule(r'NP', r'\P Q.(Q -> P)',
{'child1_category' : 'NP/NP'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
<token base="base2" pos="pos2" surf="surf2" id="t1_2"/>
</tokens>
<ccg root="sp1-3">
<span terminal="t1_1" category="cat1" end="2" begin="1" id="sp1-1"/>
<span terminal="t1_2" category="NP/NP" end="3" begin="2" id="sp1-2"/>
<span child="sp1-1 sp1-2" rule="lex" category="NP" end="3" begin="1" id="sp1-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base2 -> _base1')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_inner_node_child_categoryWithFeats(self):
semantic_index = SemanticIndex(None)
semantic_rules = [SemanticRule(r'cat1', r'\P.P'),
SemanticRule(r'NP/NP', r'\P.P'),
SemanticRule(r'NP', r'\P Q.(Q -> P)',
{'child1_category' : 'NP/NP'})]
semantic_index.rules = semantic_rules
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
<token base="base2" pos="pos2" surf="surf2" id="t1_2"/>
</tokens>
<ccg root="sp1-3">
<span terminal="t1_1" category="cat1" end="2" begin="1" id="sp1-1"/>
<span terminal="t1_2" category="NP/NP[mod=xx]" end="3" begin="2" id="sp1-2"/>
<span child="sp1-1 sp1-2" rule="lex" category="NP" end="3" begin="1" id="sp1-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_base2 -> _base1')
self.assertEqual(expected_semantics, lexpr(semantics))
class get_attributes_from_ccg_node_recursivelyTestCase(unittest.TestCase):
def test_terminal(self):
sentence_str = r"""
<sentence id="s1">
<tokens>
<token base="base1" pos="pos1" surf="surf1" id="t1_1"/>
</tokens>
<ccg root="sp1-1">
<span terminal="t1_1" category="cat1" end="2" begin="1" id="sp1-1"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = sentence.find("ccg")
ccg_root = build_ccg_tree(ccg_tree)
tokens = sentence.find("tokens")
attributes = get_attributes_from_ccg_node_recursively(ccg_root, tokens)
expected_attributes = {'terminal' : 't1_1',
'category' : 'cat1',
'end' : '2',
'begin' : '1',
'id' : 'sp1-1',
'base' : 'base1',
'pos' : 'pos1',
'surf' : 'surf1'}
self.assertEqual(len(expected_attributes), len(attributes))
for k in expected_attributes:
self.assertEqual(expected_attributes[k], attributes[k])
def test_preterminal(self):
sentence_str = r"""
<sentence id="s1">
<tokens>
<token surf="surf1" id="t1_1"/>
</tokens>
<ccg root="sp1-2">
<span terminal="t1_1" category="cat1" id="sp1-1"/>
<span child="sp1-1" rule="lex" category="NP" id="sp1-2"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = sentence.find("ccg")
ccg_root = build_ccg_tree(ccg_tree)
tokens = sentence.find("tokens")
attributes = get_attributes_from_ccg_node_recursively(ccg_root, tokens)
expected_attributes = {'category' : 'NP',
'rule' : 'lex',
'id' : 'sp1-2',
'child' : 'sp1-1',
'child0_terminal' : 't1_1',
'child0_surf' : 'surf1',
'child0_category' : 'cat1',
'child0_id' : 'sp1-1'}
self.assertEqual(len(expected_attributes), len(attributes))
for k in expected_attributes:
self.assertEqual(expected_attributes.get(k, None), attributes.get(k, None))
def test_nonterminal1(self):
sentence_str = r"""
<sentence id="s1">
<tokens>
<token surf="surf1" id="t1_1"/>
</tokens>
<ccg root="sp1-3">
<span terminal="t1_1" category="cat1" id="sp1-1"/>
<span child="sp1-1" rule="lex" category="NP" id="sp1-2"/>
<span child="sp1-2" rule="rr" category="NPP" id="sp1-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = sentence.find("ccg")
ccg_root = build_ccg_tree(ccg_tree)
tokens = sentence.find("tokens")
attributes = get_attributes_from_ccg_node_recursively(ccg_root, tokens)
expected_attributes = {'category' : 'NPP',
'rule' : 'rr',
'id' : 'sp1-3',
'child' : 'sp1-2',
'child0_category' : 'NP',
'child0_rule' : 'lex',
'child0_id' : 'sp1-2',
'child0_child' : 'sp1-1',
'child0_child0_terminal' : 't1_1',
'child0_child0_surf' : 'surf1',
'child0_child0_category' : 'cat1',
'child0_child0_id' : 'sp1-1'}
self.assertEqual(len(expected_attributes), len(attributes))
for k in expected_attributes:
self.assertEqual(expected_attributes.get(k, None), attributes.get(k, None))
def test_nonterminal2(self):
sentence_str = r"""
<sentence id="s1">
<tokens>
<token surf="surf1" id="t1_1"/>
<token surf="surf2" id="t1_2"/>
</tokens>
<ccg root="sp1-5">
<span terminal="t1_1" category="cat1" id="sp1-1"/>
<span terminal="t1_2" category="cat2" id="sp1-2"/>
<span child="sp1-1" rule="lex1" category="NP1" id="sp1-3"/>
<span child="sp1-2" rule="lex2" category="NP2" id="sp1-4"/>
<span child="sp1-3 sp1-4" rule="rr" category="NPP" id="sp1-5"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = sentence.find("ccg")
ccg_root = build_ccg_tree(ccg_tree)
tokens = sentence.find("tokens")
attributes = get_attributes_from_ccg_node_recursively(ccg_root, tokens)
expected_attributes = {'category' : 'NPP',
'rule' : 'rr',
'id' : 'sp1-5',
'child' : 'sp1-3 sp1-4',
'child0_category' : 'NP1',
'child0_rule' : 'lex1',
'child0_id' : 'sp1-3',
'child0_child' : 'sp1-1',
'child0_child0_terminal' : 't1_1',
'child0_child0_surf' : 'surf1',
'child0_child0_category' : 'cat1',
'child0_child0_id' : 'sp1-1',
'child1_category' : 'NP2',
'child1_rule' : 'lex2',
'child1_id' : 'sp1-4',
'child1_child' : 'sp1-2',
'child1_child0_terminal' : 't1_2',
'child1_child0_surf' : 'surf2',
'child1_child0_category' : 'cat2',
'child1_child0_id' : 'sp1-2'}
self.assertEqual(len(expected_attributes), len(attributes),
'\n{0}\nvs.\n{1}'.format(expected_attributes, attributes))
for k in expected_attributes:
self.assertEqual(expected_attributes.get(k, None), attributes.get(k, None))
def test_NonterminalButpreterminal(self):
sentence_str = r"""
<sentence id="s1">
<tokens>
<token surf="surf1" id="t1_1"/>
<token surf="surf2" id="t1_2"/>
</tokens>
<ccg root="sp1-5">
<span terminal="t1_1" category="cat1" id="sp1-1"/>
<span terminal="t1_2" category="cat2" id="sp1-2"/>
<span child="sp1-1" rule="lex1" category="NP1" id="sp1-3"/>
<span child="sp1-2" rule="lex2" category="NP2" id="sp1-4"/>
<span child="sp1-3 sp1-4" rule="rr" category="NPP" id="sp1-5"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = sentence.find("ccg")
ccg_root = build_ccg_tree(ccg_tree)
tokens = sentence.find("tokens")
attributes = get_attributes_from_ccg_node_recursively(ccg_root[1], tokens)
expected_attributes = {'category' : 'NP2',
'rule' : 'lex2',
'id' : 'sp1-4',
'child' : 'sp1-2',
'child0_terminal' : 't1_2',
'child0_surf' : 'surf2',
'child0_category' : 'cat2',
'child0_id' : 'sp1-2'}
self.assertEqual(len(expected_attributes), len(attributes),
'\n{0}\nvs.\n{1}'.format(expected_attributes, attributes))
for k in expected_attributes:
self.assertEqual(expected_attributes.get(k, None), attributes.get(k, None))
class AssignSemanticsToCCGWithFeatsTestCase(unittest.TestCase):
def test_np_feature_no(self):
semantic_index = SemanticIndex(None)
semantic_index.rules = [SemanticRule(r'NP', r'\P.P')]
sentence_str = r"""
<sentence id="s0">
<tokens>
<token base="basepred" pos="pos1" surf="surfpred" id="t0_0"/>
</tokens>
<ccg root="sp0-3">
<span terminal="t0_0" category="NP" end="1" begin="0" id="sp0-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_basepred')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_np_feature_pos_equal(self):
semantic_index = SemanticIndex(None)
semantic_index.rules = [SemanticRule(r'NP', r'\P.(P | P)', {'pos' : 'pos1'}),
SemanticRule(r'NP', r'\P.(P & P)', {'pos' : 'pos2'})]
sentence_str = r"""
<sentence id="s0">
<tokens>
<token base="basepred" pos="pos1" surf="surfpred" id="t0_0"/>
</tokens>
<ccg root="sp0-3">
<span terminal="t0_0" category="NP" end="1" begin="0" id="sp0-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'(_basepred | _basepred)')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_np_feature_pos_default(self):
semantic_index = SemanticIndex(None)
semantic_index.rules = [SemanticRule(r'NP', r'\P.(P | P)', {'pos' : 'pos1'}),
SemanticRule(r'NP', r'\P.(P & P)', {'pos' : 'pos2'})]
sentence_str = r"""
<sentence id="s0">
<tokens>
<token base="basepred" pos="pos3" surf="surfpred" id="t0_0"/>
</tokens>
<ccg root="sp0-3">
<span terminal="t0_0" category="NP" end="1" begin="0" id="sp0-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_basepred')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_np_feature_syntactic_feat(self):
semantic_index = SemanticIndex(None)
semantic_index.rules = [SemanticRule(r'NP[feat1=val1]', r'\P.(P | P)'),
SemanticRule(r'NP[feat1=val2]', r'\P.(P & P)')]
sentence_str = r"""
<sentence id="s0">
<tokens>
<token base="basepred" pos="pos3" surf="surfpred" id="t0_0"/>
</tokens>
<ccg root="sp0-3">
<span terminal="t0_0" category="NP[feat1=val2]" end="1" begin="0" id="sp0-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_basepred & _basepred')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_np_feature_syntactic_featSubsume1(self):
semantic_index = SemanticIndex(None)
semantic_index.rules = [SemanticRule(r'NP[feat1=val1]', r'\P.(P | P)'),
SemanticRule(r'NP', r'\P.(P & P)')]
sentence_str = r"""
<sentence id="s0">
<tokens>
<token base="basepred" pos="pos3" surf="surfpred" id="t0_0"/>
</tokens>
<ccg root="sp0-3">
<span terminal="t0_0" category="NP[feat1=valX]" end="1" begin="0" id="sp0-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_basepred & _basepred')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_np_feature_syntactic_featSubsume2(self):
semantic_index = SemanticIndex(None)
semantic_index.rules = [SemanticRule(r'NP[feat1=val1]', r'\P.(P | P)'),
SemanticRule(r'NP[feat1=val2]', r'\P.(P & P)')]
sentence_str = r"""
<sentence id="s0">
<tokens>
<token base="basepred" pos="pos3" surf="surfpred" id="t0_0"/>
</tokens>
<ccg root="sp0-3">
<span terminal="t0_0" category="NP[feat1=val2,feat2=val1]" end="1" begin="0" id="sp0-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_basepred & _basepred')
self.assertEqual(expected_semantics, lexpr(semantics))
def test_np_feature_syntactic_featNoSubsume(self):
semantic_index = SemanticIndex(None)
semantic_index.rules = [SemanticRule(r'NP[feat1=val1]', r'\P.(P | P)'),
SemanticRule(r'NP[feat2=val1]', r'\P.(P & P)')]
sentence_str = r"""
<sentence id="s0">
<tokens>
<token base="basepred" pos="pos3" surf="surfpred" id="t0_0"/>
</tokens>
<ccg root="sp0-3">
<span terminal="t0_0" category="NP" end="1" begin="0" id="sp0-3"/>
</ccg>
</sentence>
"""
sentence = etree.fromstring(sentence_str)
ccg_tree = assign_semantics_to_ccg(sentence, semantic_index)
semantics = ccg_tree.get('sem', None)
expected_semantics = lexpr(r'_basepred')
self.assertEqual(expected_semantics, lexpr(semantics))
if __name__ == '__main__':
suite1 = unittest.TestLoader().loadTestsFromTestCase(TypeRaiseTestCase)
suite2 = unittest.TestLoader().loadTestsFromTestCase(AssignSemanticsToCCGTestCase)
suite3 = unittest.TestLoader().loadTestsFromTestCase(AssignSemanticsToCCGWithFeatsTestCase)
suite4 = unittest.TestLoader().loadTestsFromTestCase(
get_attributes_from_ccg_node_recursivelyTestCase)
suites = unittest.TestSuite([suite1, suite2, suite3, suite4])
unittest.TextTestRunner(verbosity=2).run(suites)
| 46.291058
| 155
| 0.558175
| 6,381
| 50,735
| 4.275035
| 0.052656
| 0.018146
| 0.05968
| 0.030793
| 0.890392
| 0.881924
| 0.873236
| 0.87089
| 0.867114
| 0.846805
| 0
| 0.038337
| 0.277126
| 50,735
| 1,095
| 156
| 46.333333
| 0.70544
| 0.023238
| 0
| 0.807692
| 0
| 0.110454
| 0.460672
| 0.030687
| 0
| 0
| 0
| 0
| 0.04931
| 1
| 0.045365
| false
| 0
| 0.005917
| 0
| 0.055227
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2ac473b400731d4fdef86b09785b88d0089e9e45
| 20,627
|
py
|
Python
|
expyct/collection.py
|
mthaak/expyct
|
1af2b3ed63c4445a5ec6f4a5c3b3207943c229ac
|
[
"MIT"
] | 1
|
2022-03-02T09:12:20.000Z
|
2022-03-02T09:12:20.000Z
|
expyct/collection.py
|
mthaak/expyct
|
1af2b3ed63c4445a5ec6f4a5c3b3207943c229ac
|
[
"MIT"
] | null | null | null |
expyct/collection.py
|
mthaak/expyct
|
1af2b3ed63c4445a5ec6f4a5c3b3207943c229ac
|
[
"MIT"
] | null | null | null |
import typing
from collections import Counter
from dataclasses import dataclass
from expyct.base import Equals, MapBefore, Satisfies, Optional, BaseMatcher
from expyct.base import Instance
@dataclass(repr=False, eq=False)
class AllOrAny(BaseMatcher):
"""Mixin for matching a collection object by checking that all or at least
one of its members are equal to the given.
Like all other `expyct` objects, these can be nested. For example,
`assert l == exp.AllOrAny(all=exp.Int(min=3))`.
Args:
all : all members of collection must equal
any : any member of collection must equal
"""
all: typing.Optional[typing.Any] = None
any: typing.Optional[typing.Any] = None
def __init__(
self,
all: typing.Optional[typing.Any] = None,
any: typing.Optional[typing.Any] = None,
):
self.all = all
self.any = any
def _eq(self, other):
if self.all is not None:
if not all(x == self.all for x in other):
return False
if self.any is not None:
if not any(x == self.any for x in other):
return False
return True
@dataclass(repr=False, eq=False)
class Length(BaseMatcher):
"""Mixin for matching a collection object by its length as the result of `len()`.
Args:
length : object length must be exactly
min_length : object length must be at least
max_length : object length must be at most
non_empty : object must have at least one member [default: `False`]
"""
length: typing.Optional[int] = None
min_length: typing.Optional[int] = None
max_length: typing.Optional[int] = None
non_empty: bool = False
def __init__(
self,
length: typing.Optional[int] = None,
min_length: typing.Optional[int] = None,
max_length: typing.Optional[int] = None,
non_empty: bool = False,
):
self.length = length
self.min_length = min_length
self.max_length = max_length
self.non_empty = non_empty
def _eq(self, other):
if self.length is not None:
if not len(other) == self.length:
return False
if self.min_length is not None:
if not len(other) >= self.min_length:
return False
if self.max_length is not None:
if not len(other) <= self.max_length:
return False
if self.non_empty:
if not len(other) > 0:
return False
return True
@dataclass(repr=False, eq=False)
class Contains(BaseMatcher):
"""Mixin matching a collection object by the containment of specified members.
Args:
superset_of : collection of which the object must be a superset
subset_of : collection of which the object must be a subset
"""
superset_of: typing.Optional[typing.Collection] = None
subset_of: typing.Optional[typing.Collection] = None
def __init__(
self,
superset_of: typing.Optional[typing.Collection] = None,
subset_of: typing.Optional[typing.Collection] = None,
):
self.superset_of = superset_of
self.subset_of = subset_of
def _eq(self, other):
if self.subset_of is not None:
if isinstance(other, dict) and isinstance(self.subset_of, dict):
if not all(x in self.subset_of.items() for x in other.items()):
return False
else:
if not all(x in self.subset_of for x in other):
return False
if self.superset_of is not None:
if isinstance(other, dict) and isinstance(self.superset_of, dict):
if not all(x in other.items() for x in self.superset_of.items()):
return False
else:
if not all(x in other for x in self.superset_of):
return False
return True
@dataclass(repr=False, eq=False)
class Collection(
Satisfies,
Contains,
Length,
Instance,
Equals[typing.Collection],
Optional,
MapBefore,
AllOrAny,
BaseMatcher,
):
"""Match any object that is an instance of `typing.Collection`.
Args:
all : all members of collection must equal
any : any member of collection must equal
map_before : apply function before checking equality
optional : whether `None` is allowed
equals : object must equal exactly. This is useful together with
`map_before` to check a value after applying a function
type : type of object must equal to given type
instance_of : object must be an instance of given type
length : object length must be exactly
min_length : object length must be at least
max_length : object length must be at most
non_empty : object must have at least one member [default: `False`]
superset_of : collection of which the object must be a superset
subset_of : collection of which the object must be a subset
satisfies : object must satisfy predicate
"""
def __init__(
self,
all: typing.Optional[typing.Any] = None,
any: typing.Optional[typing.Any] = None,
map_before: typing.Optional[typing.Callable] = None,
optional: typing.Optional[bool] = None,
equals: typing.Optional[typing.Any] = None,
type: typing.Optional[typing.Type] = None,
instance_of: typing.Optional[typing.Type] = None,
length: typing.Optional[int] = None,
min_length: typing.Optional[int] = None,
max_length: typing.Optional[int] = None,
non_empty: bool = False,
superset_of: typing.Optional[typing.Collection] = None,
subset_of: typing.Optional[typing.Collection] = None,
satisfies: typing.Optional[typing.Callable[[typing.Any], bool]] = None,
):
self.all = all
self.any = any
self.map_before = map_before
self.optional = optional
self.equals = equals
self.type = type
self.instance_of = instance_of
self.length = length
self.min_length = min_length
self.max_length = max_length
self.non_empty = non_empty
self.superset_of = superset_of
self.subset_of = subset_of
self.satisfies = satisfies
def _eq(self, other):
try:
other = MapBefore.map(self, other)
except Exception:
return False
if other is None:
return Optional._eq(self, other)
if not isinstance(other, typing.Collection):
return False
if not Equals._eq(self, other):
return False
if not Instance._eq(self, other):
return False
if not Length._eq(self, other):
return False
if not Contains._eq(self, other):
return False
if not Satisfies._eq(self, other):
return False
if not AllOrAny._eq(self, other):
return False
return True
@dataclass(repr=False, eq=False)
class List(
Satisfies, Contains, Length, Equals[list], Optional, MapBefore, AllOrAny, BaseMatcher, list
):
"""Match any object that is an instance of `list`.
Args:
all : all members of collection must equal
any : any member of collection must equal
map_before : apply function before checking equality
optional : whether `None` is allowed
equals : object must equal exactly. This is useful together with
`map_before` to check a value after applying a function
length : object length must be exactly
min_length : object length must be at least
max_length : object length must be at most
non_empty : object must have at least one member [default: `False`]
superset_of : collection of which the object must be a superset
subset_of : collection of which the object must be a subset
satisfies : object must satisfy predicate
ignore_order : whether to ignore order for `equals`
"""
ignore_order: bool = False
def __new__(cls, *args, **kwargs):
return list.__new__(cls)
def __init__(
self,
all: typing.Optional[typing.Any] = None,
any: typing.Optional[typing.Any] = None,
map_before: typing.Optional[typing.Callable] = None,
optional: typing.Optional[bool] = None,
equals: typing.Optional[typing.Any] = None,
length: typing.Optional[int] = None,
min_length: typing.Optional[int] = None,
max_length: typing.Optional[int] = None,
non_empty: bool = False,
superset_of: typing.Optional[typing.Collection] = None,
subset_of: typing.Optional[typing.Collection] = None,
satisfies: typing.Optional[typing.Callable[[typing.Any], bool]] = None,
ignore_order: bool = False,
):
self.all = all
self.any = any
self.map_before = map_before
self.optional = optional
self.equals = equals
self.length = length
self.min_length = min_length
self.max_length = max_length
self.non_empty = non_empty
self.superset_of = superset_of
self.subset_of = subset_of
self.satisfies = satisfies
self.ignore_order = ignore_order
def _eq(self, other):
try:
other = MapBefore.map(self, other)
except Exception:
return False
if other is None:
return Optional._eq(self, other)
if not isinstance(other, list):
return False
if self.ignore_order:
if not self._equals_ignore_order(self.equals, other):
return False
else:
if not Equals._eq(self, other):
return False
if not Length._eq(self, other):
return False
if not Contains._eq(self, other):
return False
if not Satisfies._eq(self, other):
return False
if not AllOrAny._eq(self, other):
return False
return True
@staticmethod
def _equals_ignore_order(a: typing.List, b: typing.List):
# https://stackoverflow.com/a/7829249/4443309
try:
return Counter(a) == Counter(b) # O(n)
except TypeError:
return len(a) == len(b) and all(a.count(i) == b.count(i) for i in a) # O(n * n)
@dataclass(repr=False, eq=False)
class Tuple(
Satisfies, Contains, Length, Equals[tuple], Optional, MapBefore, AllOrAny, BaseMatcher, tuple
):
"""Match any object that is an instance of `tuple`.
Args:
all : all members of collection must equal
any : any member of collection must equal
map_before : apply function before checking equality
optional : whether `None` is allowed
equals : object must equal exactly. This is useful together with
`map_before` to check a value after applying a function
type : type of object must equal to given type
instance_of : object must be an instance of given type
length : object length must be exactly
min_length : object length must be at least
max_length : object length must be at most
non_empty : object must have at least one member [default: `False`]
superset_of : collection of which the object must be a superset
subset_of : collection of which the object must be a subset
satisfies : object must satisfy predicate
"""
def __new__(cls, *args, **kwargs):
return tuple.__new__(cls)
def __init__(
self,
all: typing.Optional[typing.Any] = None,
any: typing.Optional[typing.Any] = None,
map_before: typing.Optional[typing.Callable] = None,
optional: typing.Optional[bool] = None,
equals: typing.Optional[typing.Any] = None,
length: typing.Optional[int] = None,
min_length: typing.Optional[int] = None,
max_length: typing.Optional[int] = None,
non_empty: bool = False,
superset_of: typing.Optional[typing.Collection] = None,
subset_of: typing.Optional[typing.Collection] = None,
satisfies: typing.Optional[typing.Callable[[typing.Any], bool]] = None,
):
self.all = all
self.any = any
self.map_before = map_before
self.optional = optional
self.equals = equals
self.length = length
self.min_length = min_length
self.max_length = max_length
self.non_empty = non_empty
self.superset_of = superset_of
self.subset_of = subset_of
self.satisfies = satisfies
def _eq(self, other):
try:
other = MapBefore.map(self, other)
except Exception:
return False
if other is None:
return Optional._eq(self, other)
if not isinstance(other, tuple):
return False
if not Equals._eq(self, other):
return False
if not Length._eq(self, other):
return False
if not Contains._eq(self, other):
return False
if not Satisfies._eq(self, other):
return False
if not AllOrAny._eq(self, other):
return False
return True
@dataclass(repr=False, eq=False)
class Set(
Satisfies, Contains, Length, Equals[set], Optional, MapBefore, AllOrAny, BaseMatcher, set
):
"""Match any object that is an instance of `set`.
Args:
all : all members of collection must equal
any : any member of collection must equal
map_before : apply function before checking equality
optional : whether `None` is allowed
equals : object must equal exactly. This is useful together with
`map_before` to check a value after applying a function
type : type of object must equal to given type
instance_of : object must be an instance of given type
length : object length must be exactly
min_length : object length must be at least
max_length : object length must be at most
non_empty : object must have at least one member [default: `False`]
superset_of : collection of which the object must be a superset
subset_of : collection of which the object must be a subset
satisfies : object must satisfy predicate
"""
def __new__(cls, *args, **kwargs):
return set.__new__(cls)
def __init__(
self,
all: typing.Optional[typing.Any] = None,
any: typing.Optional[typing.Any] = None,
map_before: typing.Optional[typing.Callable] = None,
optional: typing.Optional[bool] = None,
equals: typing.Optional[typing.Any] = None,
length: typing.Optional[int] = None,
min_length: typing.Optional[int] = None,
max_length: typing.Optional[int] = None,
non_empty: bool = False,
superset_of: typing.Optional[typing.Collection] = None,
subset_of: typing.Optional[typing.Collection] = None,
satisfies: typing.Optional[typing.Callable[[typing.Any], bool]] = None,
):
self.all = all
self.any = any
self.map_before = map_before
self.optional = optional
self.equals = equals
self.length = length
self.min_length = min_length
self.max_length = max_length
self.non_empty = non_empty
self.superset_of = superset_of
self.subset_of = subset_of
self.satisfies = satisfies
def _eq(self, other):
try:
other = MapBefore.map(self, other)
except Exception:
return False
if other is None:
return Optional._eq(self, other)
if not isinstance(other, set):
return False
if not Equals._eq(self, other):
return False
if not Length._eq(self, other):
return False
if not Contains._eq(self, other):
return False
if not Satisfies._eq(self, other):
return False
if not AllOrAny._eq(self, other):
return False
return True
@dataclass(repr=False, eq=False)
class Dict(Satisfies, Contains, Length, Equals[dict], Optional, MapBefore, BaseMatcher, dict):
"""Match any object that is an instance of `dict`.
Args:
map_before : apply function before checking equality
optional : whether `None` is allowed
equals : object must equal exactly. This is useful together with
`map_before` to check a value after applying a function
length : object length must be exactly
min_length : object length must be at least
max_length : object length must be at most
non_empty : object must have at least one member [default: `False`]
superset_of : collection of which the object must be a superset
subset_of : collection of which the object must be a subset
satisfies : object must satisfy predicate
keys : dict keys must equal
values : dict values must equal
keys_all : all dict keys must equal
keys_any : any dict key must equal
values_all : all dict values must equal
values_any : any dict value must equal
"""
superset_of: typing.Optional[dict] = None
subset_of: typing.Optional[dict] = None
keys: typing.Optional[typing.Set] = None # type: ignore
values: typing.Optional[typing.List] = None # type: ignore
keys_all: typing.Optional[typing.Any] = None
keys_any: typing.Optional[typing.Any] = None
values_all: typing.Optional[typing.Any] = None
values_any: typing.Optional[typing.Any] = None
def __new__(cls, *args, **kwargs):
return dict.__new__(cls)
def __init__(
self,
map_before: typing.Optional[typing.Callable] = None,
optional: typing.Optional[bool] = None,
equals: typing.Optional[typing.Any] = None,
length: typing.Optional[int] = None,
min_length: typing.Optional[int] = None,
max_length: typing.Optional[int] = None,
non_empty: bool = False,
superset_of: typing.Optional[dict] = None,
subset_of: typing.Optional[dict] = None,
satisfies: typing.Optional[typing.Callable[[typing.Any], bool]] = None,
keys: typing.Optional[typing.Set] = None,
values: typing.Optional[typing.List] = None,
keys_all: typing.Optional[typing.Any] = None,
keys_any: typing.Optional[typing.Any] = None,
values_all: typing.Optional[typing.Any] = None,
values_any: typing.Optional[typing.Any] = None,
):
self.all = all
self.any = any
self.map_before = map_before
self.optional = optional
self.equals = equals
self.length = length
self.min_length = min_length
self.max_length = max_length
self.non_empty = non_empty
self.superset_of = superset_of
self.subset_of = subset_of
self.satisfies = satisfies
self.keys = keys
self.values = values
self.keys_all = keys_all
self.keys_any = keys_any
self.values_all = values_all
self.values_any = values_any
def _eq(self, other):
try:
other = MapBefore.map(self, other)
except Exception:
return False
if other is None:
return Optional._eq(self, other)
if not isinstance(other, dict):
return False
if not Equals._eq(self, other):
return False
if not Length._eq(self, other):
return False
if self.keys is not None:
if not other.keys() == self.keys:
return False
if self.values is not None:
if not other.values() == self.values:
return False
if not Contains._eq(self, other):
return False
if not Satisfies._eq(self, other):
return False
if self.keys_all is not None:
if not all(x == self.keys_all for x in other.keys()):
return False
if self.keys_any is not None:
if not any(x == self.keys_any for x in other.keys()):
return False
if self.values_all is not None:
if not all(x == self.values_all for x in other.values()):
return False
if self.values_any is not None:
if not any(x == self.values_any for x in other.values()):
return False
return True
| 36.124343
| 97
| 0.616183
| 2,625
| 20,627
| 4.722667
| 0.054095
| 0.093732
| 0.085505
| 0.046382
| 0.860692
| 0.843188
| 0.813987
| 0.802372
| 0.773413
| 0.743406
| 0
| 0.001115
| 0.30431
| 20,627
| 570
| 98
| 36.187719
| 0.862787
| 0.256169
| 0
| 0.725248
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.05198
| false
| 0
| 0.012376
| 0.009901
| 0.30198
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
6324d673709389849e8968c86723be8630e32eeb
| 1,463
|
py
|
Python
|
sample_test.py
|
m3hrdadfi/rouge-metric
|
0c8da39bd52891fe328a2555b82d7147c6e423f7
|
[
"Apache-2.0"
] | null | null | null |
sample_test.py
|
m3hrdadfi/rouge-metric
|
0c8da39bd52891fe328a2555b82d7147c6e423f7
|
[
"Apache-2.0"
] | null | null | null |
sample_test.py
|
m3hrdadfi/rouge-metric
|
0c8da39bd52891fe328a2555b82d7147c6e423f7
|
[
"Apache-2.0"
] | 1
|
2021-11-05T18:25:09.000Z
|
2021-11-05T18:25:09.000Z
|
from datasets import load_metric
metric = load_metric("./rouge")
# Language: en-English
references = ["The quick brown fox jumps over the lazy dog"]
predictions = ["The quick brown fox jumps over the lazy dog"]
result = metric.compute(predictions=predictions, references=references, language="en")
result = {key: round(value.mid.fmeasure, 4) * 100 for key, value in result.items()}
print(f"Language: English, result: {result}")
references = ["The quick brown fox jumps over the lazy dog"]
predictions = ["The quick black cat jumps over the lazy fox"]
result = metric.compute(predictions=predictions, references=references, language="en")
result = {key: round(value.mid.fmeasure, 4) * 100 for key, value in result.items()}
print(f"Language: English, result: {result}")
# Language: fa-Persian
references = ["روباه قهوهای سریع از روی سگ تنبل میپرد"]
predictions = ["روباه قهوهای سریع از روی سگ تنبل میپرد"]
result = metric.compute(predictions=predictions, references=references, language="fa")
result = {key: round(value.mid.fmeasure, 4) * 100 for key, value in result.items()}
print(f"Language: Persian, result: {result}")
references = ["روباه قهوهای سریع از روی سگ تنبل میپرد"]
predictions = ["گربه سیاه سریع از روی روباه تنبل میپرد"]
result = metric.compute(predictions=predictions, references=references, language="fa")
result = {key: round(value.mid.fmeasure, 4) * 100 for key, value in result.items()}
print(f"Language: Persian, result: {result}")
| 48.766667
| 86
| 0.738893
| 221
| 1,463
| 4.914027
| 0.226244
| 0.029466
| 0.044199
| 0.058932
| 0.878453
| 0.878453
| 0.878453
| 0.878453
| 0.878453
| 0.853591
| 0
| 0.012529
| 0.127136
| 1,463
| 30
| 87
| 48.766667
| 0.83242
| 0.028025
| 0
| 0.727273
| 0
| 0
| 0.342254
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.045455
| 0
| 0.045455
| 0.181818
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
2ddada57cf35c5d85ef0ba39076bbd29ef0ac3c0
| 144
|
py
|
Python
|
darwinian_shift/reference_data/__init__.py
|
michaelhall28/darwinian_shift
|
7554532379d1650e9174fdf3ab0a0f0074b4d2c5
|
[
"MIT"
] | null | null | null |
darwinian_shift/reference_data/__init__.py
|
michaelhall28/darwinian_shift
|
7554532379d1650e9174fdf3ab0a0f0074b4d2c5
|
[
"MIT"
] | null | null | null |
darwinian_shift/reference_data/__init__.py
|
michaelhall28/darwinian_shift
|
7554532379d1650e9174fdf3ab0a0f0074b4d2c5
|
[
"MIT"
] | null | null | null |
from .reference_utils import get_source_genome_reference_file_paths, download_reference_data_from_latest_ensembl, download_grch37_reference_data
| 144
| 144
| 0.944444
| 20
| 144
| 6.1
| 0.7
| 0.213115
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.014388
| 0.034722
| 144
| 1
| 144
| 144
| 0.863309
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
2dfa5359ec506e3753b62a88ecd733aab925024f
| 8,106
|
py
|
Python
|
osmchadjango/roulette_integration/tests/test_views.py
|
jbronn/osmcha-django
|
0de03fa081205f3a43114c5eb25211217f2dc0af
|
[
"BSD-2-Clause"
] | 27
|
2015-09-06T00:39:39.000Z
|
2021-12-09T10:30:52.000Z
|
osmchadjango/roulette_integration/tests/test_views.py
|
jbronn/osmcha-django
|
0de03fa081205f3a43114c5eb25211217f2dc0af
|
[
"BSD-2-Clause"
] | 494
|
2015-09-10T19:39:38.000Z
|
2022-03-29T08:07:37.000Z
|
osmchadjango/roulette_integration/tests/test_views.py
|
jbronn/osmcha-django
|
0de03fa081205f3a43114c5eb25211217f2dc0af
|
[
"BSD-2-Clause"
] | 17
|
2015-08-10T22:58:56.000Z
|
2021-09-24T17:03:16.000Z
|
from django.urls import reverse
from social_django.models import UserSocialAuth
from rest_framework.test import APITestCase
from ...users.models import User
from ...changeset.tests.modelfactories import SuspicionReasonsFactory
from ..models import ChallengeIntegration
class TestChallengeIntegrationListCreateView(APITestCase):
def setUp(self):
self.user = User.objects.create_user(
username='user_1',
password='password',
email='a@a.com',
is_staff=True
)
UserSocialAuth.objects.create(
user=self.user,
provider='openstreetmap',
uid='123123',
)
self.user_2 = User.objects.create_user(
username='test_2',
password='password',
email='b@a.com'
)
UserSocialAuth.objects.create(
user=self.user_2,
provider='openstreetmap',
uid='444444',
)
self.reason_1 = SuspicionReasonsFactory(name="Grafitti")
self.url = reverse('challenge:list-create')
def test_list_challenges_unauthenticated(self):
response = self.client.get(self.url)
self.assertEqual(response.status_code, 401)
def test_list_challenges_non_staff_user(self):
self.client.login(username=self.user_2.username, password='password')
response = self.client.get(self.url)
self.assertEqual(response.status_code, 403)
def test_create_challenge_unauthenticated(self):
response = self.client.post(self.url, {'challenge_id': 1234, 'reasons': [self.reason_1.id]})
self.assertEqual(response.status_code, 401)
self.assertEqual(ChallengeIntegration.objects.count(), 0)
def test_create_challenge_non_staff_user(self):
self.client.login(username=self.user_2.username, password='password')
response = self.client.post(self.url, {'challenge_id': 1234, 'reasons': [self.reason_1.id]})
self.assertEqual(response.status_code, 403)
self.assertEqual(ChallengeIntegration.objects.count(), 0)
def test_create_and_list_challenges_staf_user(self):
self.client.login(username=self.user.username, password='password')
response = self.client.post(self.url, {'challenge_id': 1234, 'reasons': [self.reason_1.id]})
self.assertEqual(response.status_code, 201)
response = self.client.get(self.url)
self.assertEqual(response.status_code, 200)
self.assertEqual(len(response.data.get('results')), 1)
self.assertEqual(response.data.get('results')[0].get('reasons'), [self.reason_1.id])
self.assertTrue(response.data.get('results')[0].get('active'))
class TestChallengeIntegrationDetailView(APITestCase):
def setUp(self):
self.user = User.objects.create_user(
username='user_1',
password='password',
email='a@a.com',
is_staff=True
)
UserSocialAuth.objects.create(
user=self.user,
provider='openstreetmap',
uid='123123',
)
self.user_2 = User.objects.create_user(
username='test_2',
password='password',
email='b@a.com'
)
UserSocialAuth.objects.create(
user=self.user_2,
provider='openstreetmap',
uid='444444',
)
self.reason_1 = SuspicionReasonsFactory(name="Grafitti")
self.reason_2 = SuspicionReasonsFactory(name="Vandalism")
self.integration = ChallengeIntegration.objects.create(challenge_id=1234, user=self.user)
self.integration.reasons.add(self.reason_1)
def test_get_challenges_unauthenticated(self):
response = self.client.get(
reverse('challenge:detail', args=[self.integration.pk])
)
self.assertEqual(response.status_code, 401)
def test_list_challenges_non_staff_user(self):
self.client.login(username=self.user_2.username, password='password')
response = self.client.get(
reverse('challenge:detail', args=[self.integration.pk])
)
self.assertEqual(response.status_code, 403)
def test_delete_challenge_unauthenticated(self):
response = self.client.delete(
reverse('challenge:detail', args=[self.integration.pk])
)
self.assertEqual(response.status_code, 401)
self.assertEqual(ChallengeIntegration.objects.count(), 1)
def test_delete_challenge_non_staff_user(self):
self.client.login(username=self.user_2.username, password='password')
response = self.client.delete(
reverse('challenge:detail', args=[self.integration.pk])
)
self.assertEqual(response.status_code, 403)
self.assertEqual(ChallengeIntegration.objects.count(), 1)
def test_delete_challenge_staff_user(self):
self.client.login(username=self.user.username, password='password')
response = self.client.delete(
reverse('challenge:detail', args=[self.integration.pk])
)
self.assertEqual(response.status_code, 204)
self.assertEqual(ChallengeIntegration.objects.count(), 0)
def test_update_challenge_unauthenticated(self):
response = self.client.put(
reverse('challenge:detail', args=[self.integration.pk]),
{'challenge_id': 12345, 'reasons': [self.reason_1.id]}
)
self.assertEqual(response.status_code, 401)
response = self.client.patch(
reverse('challenge:detail', args=[self.integration.pk]),
{'challenge_id': 12345, 'reasons': [self.reason_1.id]}
)
self.assertEqual(response.status_code, 401)
self.assertEqual(
ChallengeIntegration.objects.filter(challenge_id=12345).count(),
0
)
def test_update_challenge_non_staff_user(self):
self.client.login(username=self.user_2.username, password='password')
response = self.client.put(
reverse('challenge:detail', args=[self.integration.pk]),
{'challenge_id': 12345, 'reasons': [self.reason_1.id]}
)
self.assertEqual(response.status_code, 403)
self.assertEqual(
ChallengeIntegration.objects.filter(challenge_id=12345).count(),
0
)
response = self.client.patch(
reverse('challenge:detail', args=[self.integration.pk]),
{'challenge_id': 12345, 'reasons': [self.reason_1.id]}
)
self.assertEqual(response.status_code, 403)
self.assertEqual(
ChallengeIntegration.objects.filter(challenge_id=12345).count(),
0
)
def test_update_challenge_staff_user_put_method(self):
self.client.login(username=self.user.username, password='password')
response = self.client.put(
reverse('challenge:detail', args=[self.integration.pk]),
{'challenge_id': 12345, 'reasons': [self.reason_1.id]}
)
self.assertEqual(response.status_code, 200)
self.assertEqual(
ChallengeIntegration.objects.filter(challenge_id=12345).count(),
1
)
self.assertEqual(
ChallengeIntegration.objects.filter(challenge_id=1234).count(),
0
)
def test_update_challenge_staff_user_patch_method(self):
self.client.login(username=self.user.username, password='password')
response = self.client.patch(
reverse('challenge:detail', args=[self.integration.pk]),
{'challenge_id': 123456, 'reasons': [self.reason_1.id, self.reason_2.id]}
)
self.assertEqual(response.status_code, 200)
self.integration.refresh_from_db()
self.assertEqual(self.integration.challenge_id, 123456)
self.assertEqual(self.integration.reasons.count(), 2)
self.assertEqual(
ChallengeIntegration.objects.filter(challenge_id=1234).count(),
0
)
| 40.328358
| 100
| 0.637306
| 860
| 8,106
| 5.851163
| 0.10814
| 0.09539
| 0.082273
| 0.097973
| 0.85155
| 0.85155
| 0.813792
| 0.802266
| 0.767488
| 0.747218
| 0
| 0.032495
| 0.24451
| 8,106
| 200
| 101
| 40.53
| 0.78919
| 0
| 0
| 0.640449
| 0
| 0
| 0.081298
| 0.002591
| 0
| 0
| 0
| 0
| 0.185393
| 1
| 0.089888
| false
| 0.073034
| 0.033708
| 0
| 0.134831
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
fa75defea1e1e894c5da64fb2801fac579437184
| 1,050
|
py
|
Python
|
tests/utils/test_utils.py
|
maxxiefjv/privpack
|
b6bff78588362e57bc3f1268ab864026db4a1afa
|
[
"MIT"
] | null | null | null |
tests/utils/test_utils.py
|
maxxiefjv/privpack
|
b6bff78588362e57bc3f1268ab864026db4a1afa
|
[
"MIT"
] | 1
|
2020-11-06T16:02:51.000Z
|
2020-11-06T16:02:51.000Z
|
tests/utils/test_utils.py
|
maxxiefjv/privpack
|
b6bff78588362e57bc3f1268ab864026db4a1afa
|
[
"MIT"
] | null | null | null |
# import torch
# from privpack import compute_released_data_metrics, binary_bivariate_mutual_information_statistic
# from privpack import hamming_distance
# from privpack import binary_bivariate_mutual_information_zx, binary_bivariate_mutual_information_zy, binary_bivariate_distortion_zy
#
# def test_compute_released_data_metrics():
# mock_released_data = torch.Tensor([
# [0],
# [0],
# [1],
# [1]
# ])
# mock_data = torch.Tensor([
# [0, 0],
# [1, 0],
# [0, 1],
# [1, 1]
# ])
# expected = {
# 'binary_bivariate_mutual_information_zx': 0.0,
# 'binary_bivariate_mutual_information_zy': 1.0,
# 'binary_bivariate_distortion_zy': 0.0
# }
# actual = compute_released_data_metrics(mock_released_data, mock_data, [
# binary_bivariate_mutual_information_zx,
# binary_bivariate_mutual_information_zy,
# binary_bivariate_distortion_zy
# ])
# assert expected == actual
def test_something():
assert True
| 28.378378
| 133
| 0.660952
| 116
| 1,050
| 5.508621
| 0.25
| 0.234742
| 0.230047
| 0.350548
| 0.58529
| 0.478873
| 0.428795
| 0.29734
| 0.29734
| 0.29734
| 0
| 0.022556
| 0.24
| 1,050
| 36
| 134
| 29.166667
| 0.778195
| 0.902857
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.5
| 1
| 0.5
| true
| 0
| 0
| 0
| 0.5
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
fac5afb61881ebc24f0d0d18522ad18af835ad72
| 417
|
py
|
Python
|
test/res/example.include.mkcommit.py
|
kjczarne/mkcommit
|
84745a4e30af2b5bbc4cbc770a75cb3f81fab38d
|
[
"MIT"
] | 2
|
2021-09-30T10:02:14.000Z
|
2021-11-11T13:53:36.000Z
|
test/res/example.include.mkcommit.py
|
kjczarne/mkcommit
|
84745a4e30af2b5bbc4cbc770a75cb3f81fab38d
|
[
"MIT"
] | 16
|
2021-09-18T13:52:10.000Z
|
2022-02-04T10:22:27.000Z
|
test/res/example.include.mkcommit.py
|
kjczarne/mkcommit
|
84745a4e30af2b5bbc4cbc770a75cb3f81fab38d
|
[
"MIT"
] | null | null | null |
from mkcommit import to_stdout, include
commit, on_commit = include(
"https://raw.githubusercontent.com/kjczarne/mkcommit/master/test/res/example.semantic.mkcommit.py") # noqa: E501
commit, on_commit = include(
"https://raw.githubusercontent.com/kjczarne/mkcommit/master/test/res/example.semantic.mkcommit.py", # noqa: E501
"tempname.mkcommit.py"
)
if __name__ == "__main__":
to_stdout(commit())
| 32.076923
| 117
| 0.741007
| 53
| 417
| 5.603774
| 0.471698
| 0.10101
| 0.094276
| 0.141414
| 0.747475
| 0.747475
| 0.747475
| 0.747475
| 0.747475
| 0.747475
| 0
| 0.016304
| 0.117506
| 417
| 12
| 118
| 34.75
| 0.790761
| 0.05036
| 0
| 0.222222
| 0
| 0.222222
| 0.559796
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.111111
| 0
| 0.111111
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
e2144beabab2712ee705a4bf506aecec2c08471c
| 2,007
|
py
|
Python
|
test/unit/test_getters.py
|
cspeidel/napalm-s350
|
c26a86503ee79b1c21b183f499a5178b17aec995
|
[
"Apache-2.0"
] | 1
|
2019-11-07T17:40:15.000Z
|
2019-11-07T17:40:15.000Z
|
test/unit/test_getters.py
|
cspeidel/napalm-s350
|
c26a86503ee79b1c21b183f499a5178b17aec995
|
[
"Apache-2.0"
] | null | null | null |
test/unit/test_getters.py
|
cspeidel/napalm-s350
|
c26a86503ee79b1c21b183f499a5178b17aec995
|
[
"Apache-2.0"
] | 1
|
2019-11-07T17:40:36.000Z
|
2019-11-07T17:40:36.000Z
|
"""Tests for getters."""
from napalm.base.test.getters import BaseTestGetters
import pytest
@pytest.mark.usefixtures("set_device_parameters")
class TestGetter(BaseTestGetters):
"""Test get_* methods."""
@pytest.mark.skip
def test_get_interfaces(self, test_case):
"""Need to implement."""
raise NotImplementedError
@pytest.mark.skip
def test_get_ntp_servers(self, test_case):
"""Need to implement."""
raise NotImplementedError
@pytest.mark.skip
def test_get_interfaces_counters(self, test_case):
"""Need to implement."""
raise NotImplementedError
@pytest.mark.skip
def test_get_lldp_neighbors_detail(self, test_case):
"""Need to implement."""
raise NotImplementedError
@pytest.mark.skip
def test_get_lldp_neighbors(self, test_case):
"""Need to implement."""
raise NotImplementedError
@pytest.mark.skip
def test_get_facts(self, test_case):
"""Need to implement."""
raise NotImplementedError
@pytest.mark.skip
def test_is_alive(self, test_case):
"""Need to implement."""
raise NotImplementedError
@pytest.mark.skip
def test_get_config(self, test_case):
"""Need to implement."""
raise NotImplementedError
@pytest.mark.skip
def test_get_arp_table(self, test_case):
"""Need to implement."""
raise NotImplementedError
@pytest.mark.skip
def test_get_interfaces_ip(self, test_case):
"""Need to implement."""
raise NotImplementedError
@pytest.mark.skip
def test_get_arp_table_with_vrf(self, test_case):
"""Need to implement."""
raise NotImplementedError
@pytest.mark.skip
def test_get_config_filtered(self, test_case):
"""Need to implement."""
raise NotImplementedError
@pytest.mark.skip
def test_method_signatures(self, test_case):
"""Need to implement."""
raise NotImplementedError
| 26.407895
| 56
| 0.663677
| 230
| 2,007
| 5.56087
| 0.204348
| 0.109461
| 0.142299
| 0.172791
| 0.823299
| 0.823299
| 0.823299
| 0.796716
| 0.756841
| 0.756841
| 0
| 0
| 0.231689
| 2,007
| 75
| 57
| 26.76
| 0.829442
| 0.142003
| 0
| 0.604651
| 0
| 0
| 0.012758
| 0.012758
| 0
| 0
| 0
| 0
| 0
| 1
| 0.302326
| false
| 0
| 0.046512
| 0
| 0.372093
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
ea2774b3fec0d883c817c7b5bcbfaeb7ed9b8972
| 451,805
|
py
|
Python
|
QUBEKit/proteins/protein_tools.py
|
cole-group/QUBEK
|
50f8a9c06396f2222a6fe058bf764a6bd7021e38
|
[
"MIT"
] | 14
|
2018-10-19T12:32:39.000Z
|
2022-01-07T05:06:06.000Z
|
QUBEKit/proteins/protein_tools.py
|
cole-group/QUBEK
|
50f8a9c06396f2222a6fe058bf764a6bd7021e38
|
[
"MIT"
] | null | null | null |
QUBEKit/proteins/protein_tools.py
|
cole-group/QUBEK
|
50f8a9c06396f2222a6fe058bf764a6bd7021e38
|
[
"MIT"
] | 6
|
2019-02-26T13:32:58.000Z
|
2021-06-01T15:11:27.000Z
|
#!/usr/bin/env python3
import numpy as np
import simtk.openmm as mm
def apply_opls_combo(system, switching_distance=None):
"""Apply the opls combination rules to a OpenMM system and return the new system."""
# Get the system information from the openmm system
forces = {system.getForce(index).__class__.__name__: system.getForce(index) for index in
range(system.getNumForces())}
# Use the nondonded_force to get the same rules
nonbonded_force = forces['NonbondedForce']
lorentz = mm.CustomNonbondedForce(
'epsilon*((sigma/r)^12-(sigma/r)^6); sigma=sqrt(sigma1*sigma2); epsilon=sqrt(epsilon1*epsilon2)*4.0')
lorentz.setNonbondedMethod(mm.CustomNonbondedForce.CutoffPeriodic)
lorentz.addPerParticleParameter('sigma')
lorentz.addPerParticleParameter('epsilon')
lorentz.setCutoffDistance(nonbonded_force.getCutoffDistance())
lorentz.setUseLongRangeCorrection(True)
if switching_distance:
lorentz.setUseSwitchingFunction(True)
lorentz.setSwitchingDistance(switching_distance)
system.addForce(lorentz)
l_j_set = {}
# For each particle, calculate the combination list again
for index in range(nonbonded_force.getNumParticles()):
charge, sigma, epsilon = nonbonded_force.getParticleParameters(index)
l_j_set[index] = (sigma, epsilon, charge)
lorentz.addParticle([sigma, epsilon])
nonbonded_force.setParticleParameters(index, charge, 0, 0)
for i in range(nonbonded_force.getNumExceptions()):
(p1, p2, q, sig, eps) = nonbonded_force.getExceptionParameters(i)
# ALL THE 12,13 and 14 interactions are EXCLUDED FROM CUSTOM NONBONDED FORCE
lorentz.addExclusion(p1, p2)
if eps._value != 0.0:
charge = 0.5 * (l_j_set[p1][2] * l_j_set[p2][2])
sig14 = np.sqrt(l_j_set[p1][0] * l_j_set[p2][0])
nonbonded_force.setExceptionParameters(i, p1, p2, charge, sig14, eps)
return system
def get_water(water=None):
"""Print an opls compatible water model to be used with the qube force field."""
tip3p = '''<ForceField>
<AtomTypes>
<Type name="tip3p-O" class="OW" element="O" mass="15.99943"/>
<Type name="tip3p-H" class="HW" element="H" mass="1.007947"/>
</AtomTypes>
<Residues>
<Residue name="HOH">
<Atom name="O" type="tip3p-O"/>
<Atom name="H1" type="tip3p-H"/>
<Atom name="H2" type="tip3p-H"/>
<Bond atomName1="O" atomName2="H1"/>
<Bond atomName1="O" atomName2="H2"/>
</Residue>
</Residues>
<HarmonicBondForce>
<Bond class1="OW" class2="HW" length="0.09572" k="462750.4"/>
</HarmonicBondForce>
<HarmonicAngleForce>
<Angle class1="HW" class2="OW" class3="HW" angle="1.82421813418" k="836.8"/>
</HarmonicAngleForce>
<NonbondedForce coulomb14scale="0.5" lj14scale="0.5">
<Atom type="tip3p-O" charge="-0.834" sigma="0.31507524065751241" epsilon="0.635968"/>
<Atom type="tip3p-H" charge="0.417" sigma="1" epsilon="0"/>
</NonbondedForce>
</ForceField>'''
spce = '''<ForceField>
<AtomTypes>
<Type name="spce-O" class="OW" element="O" mass="15.99943"/>
<Type name="spce-H" class="HW" element="H" mass="1.007947"/>
</AtomTypes>
<Residues>
<Residue name="HOH">
<Atom name="O" type="spce-O"/>
<Atom name="H1" type="spce-H"/>
<Atom name="H2" type="spce-H"/>
<Bond atomName1="O" atomName2="H1"/>
<Bond atomName1="O" atomName2="H2"/>
</Residue>
</Residues>
<HarmonicBondForce>
<Bond class1="OW" class2="HW" length="0.1" k="462750.4"/>
</HarmonicBondForce>
<HarmonicAngleForce>
<Angle class1="HW" class2="OW" class3="HW" angle="1.91061193216" k="836.8"/>
</HarmonicAngleForce>
<NonbondedForce coulomb14scale="0.5" lj14scale="0.5">
<Atom type="spce-O" charge="-0.8476" sigma="0.31657195050398818" epsilon="0.6497752"/>
<Atom type="spce-H" charge="0.4238" sigma="1" epsilon="0"/>
</NonbondedForce>
</ForceField>'''
tip4pew = '''<ForceField>
<AtomTypes>
<Type name="tip4pew-O" class="OW" element="O" mass="15.99943"/>
<Type name="tip4pew-H" class="HW" element="H" mass="1.007947"/>
<Type name="tip4pew-M" class="MW" mass="0"/>
</AtomTypes>
<Residues>
<Residue name="HOH">
<Atom name="O" type="tip4pew-O"/>
<Atom name="H1" type="tip4pew-H"/>
<Atom name="H2" type="tip4pew-H"/>
<Atom name="M" type="tip4pew-M"/>
<VirtualSite type="average3" siteName="M" atomName1="O" atomName2="H1" atomName3="H2" weight1="0.786646558" weight2="0.106676721" weight3="0.106676721"/>
<Bond atomName1="O" atomName2="H1"/>
<Bond atomName1="O" atomName2="H2"/>
</Residue>
</Residues>
<HarmonicBondForce>
<Bond class1="OW" class2="HW" length="0.09572" k="462750.4"/>
</HarmonicBondForce>
<HarmonicAngleForce>
<Angle class1="HW" class2="OW" class3="HW" angle="1.82421813418" k="836.8"/>
</HarmonicAngleForce>
<NonbondedForce coulomb14scale="0.5" lj14scale="0.5">
<Atom type="tip4pew-O" charge="0" sigma="0.316435" epsilon="0.680946"/>
<Atom type="tip4pew-H" charge="0.52422" sigma="1" epsilon="0"/>
<Atom type="tip4pew-M" charge="-1.04844" sigma="1" epsilon="0"/>
</NonbondedForce>
</ForceField>'''
tip5p = '''<ForceField>
<AtomTypes>
<Type name="tip5p-O" class="OW" element="O" mass="15.99943"/>
<Type name="tip5p-H" class="HW" element="H" mass="1.007947"/>
<Type name="tip5p-M" class="MW" mass="0"/>
</AtomTypes>
<Residues>
<Residue name="HOH">
<Atom name="O" type="tip5p-O"/>
<Atom name="H1" type="tip5p-H"/>
<Atom name="H2" type="tip5p-H"/>
<Atom name="M1" type="tip5p-M"/>
<Atom name="M2" type="tip5p-M"/>
<VirtualSite type="outOfPlane" siteName="M1" atomName1="O" atomName2="H1" atomName3="H2" weight12="-0.34490826" weight13="-0.34490826" weightCross="-6.4437903"/>
<VirtualSite type="outOfPlane" siteName="M2" atomName1="O" atomName2="H1" atomName3="H2" weight12="-0.34490826" weight13="-0.34490826" weightCross="6.4437903"/>
<Bond atomName1="O" atomName2="H1"/>
<Bond atomName1="O" atomName2="H2"/>
</Residue>
</Residues>
<HarmonicBondForce>
<Bond class1="OW" class2="HW" length="0.09572" k="462750.4"/>
</HarmonicBondForce>
<HarmonicAngleForce>
<Angle class1="HW" class2="OW" class3="HW" angle="1.82421813418" k="836.8"/>
</HarmonicAngleForce>
<NonbondedForce coulomb14scale="0.5" lj14scale="0.5">
<Atom type="tip5p-O" charge="0" sigma="0.312" epsilon="0.66944"/>
<Atom type="tip5p-H" charge="0.241" sigma="1" epsilon="0"/>
<Atom type="tip5p-M" charge="-0.241" sigma="1" epsilon="0"/>
</NonbondedForce>
</ForceField>'''
tip3pfb = '''<ForceField>
<Info>
<DateGenerated>2014-05-28</DateGenerated>
<Reference>Lee-Ping Wang, Todd J. Martinez and Vijay S. Pande. Building force fields - an automatic, systematic and reproducible approach. Journal of Physical Chemistry Letters, 2014, 5, pp 1885-1891. DOI:10.1021/jz500737m</Reference>
</Info>
<AtomTypes>
<Type name="tip3p-fb-O" class="OW" element="O" mass="15.99943"/>
<Type name="tip3p-fb-H" class="HW" element="H" mass="1.007947"/>
</AtomTypes>
<Residues>
<Residue name="HOH">
<Atom name="O" type="tip3p-fb-O"/>
<Atom name="H1" type="tip3p-fb-H"/>
<Atom name="H2" type="tip3p-fb-H"/>
<Bond from="0" to="1"/>
<Bond from="0" to="2"/>
</Residue>
</Residues>
<HarmonicBondForce>
<Bond class1="OW" class2="HW" length="0.101181082494" k="462750.4"/>
</HarmonicBondForce>
<HarmonicAngleForce>
<Angle class1="HW" class2="OW" class3="HW" angle="1.88754640288" k="836.8"/>
</HarmonicAngleForce>
<NonbondedForce coulomb14scale="0.5" lj14scale="0.5">
<Atom type="tip3p-fb-O" charge="-0.848448690103" sigma="0.317796456355" epsilon="0.652143528104" />
<Atom type="tip3p-fb-H" charge="0.4242243450515" sigma="1" epsilon="0" />
</NonbondedForce>
</ForceField>'''
tip4pfb = '''<ForceField>
<Info>
<DateGenerated>2014-05-28</DateGenerated>
<Reference>Lee-Ping Wang, Todd J. Martinez and Vijay S. Pande. Building force fields - an automatic, systematic and reproducible approach. Journal of Physical Chemistry Letters, 2014, 5, pp 1885-1891. DOI:10.1021/jz500737m</Reference>
</Info>
<AtomTypes>
<Type name="tip4p-fb-O" class="OW" element="O" mass="15.99943"/>
<Type name="tip4p-fb-H" class="HW" element="H" mass="1.007947"/>
<Type name="tip4p-fb-M" class="MW" mass="0"/>
</AtomTypes>
<Residues>
<Residue name="HOH">
<Atom name="O" type="tip4p-fb-O"/>
<Atom name="H1" type="tip4p-fb-H"/>
<Atom name="H2" type="tip4p-fb-H"/>
<Atom name="M" type="tip4p-fb-M"/>
<VirtualSite type="average3" index="3" atom1="0" atom2="1" atom3="2" weight1="8.203146574531e-01" weight2="8.984267127345e-02" weight3="8.984267127345e-02" />
<Bond from="0" to="1"/>
<Bond from="0" to="2"/>
</Residue>
</Residues>
<HarmonicBondForce>
<Bond class1="OW" class2="HW" length="0.09572" k="462750.4"/>
</HarmonicBondForce>
<HarmonicAngleForce>
<Angle class1="HW" class2="OW" class3="HW" angle="1.82421813418" k="836.8"/>
</HarmonicAngleForce>
<NonbondedForce coulomb14scale="0.5" lj14scale="0.5">
<Atom type="tip4p-fb-O" charge="0" sigma="3.165552430462e-01" epsilon="7.492790213533e-01" />
<Atom type="tip4p-fb-H" charge="5.258681106763e-01" sigma="1" epsilon="0" />
<Atom type="tip4p-fb-M" charge="-1.0517362213526e+00" sigma="1" epsilon="0" />
</NonbondedForce>
</ForceField>'''
tip4pd = '''<ForceField>
<Info>
<Reference>Water Dispersion Interactions Strongly Influence Simulated Structural Properties of Disordered Protein States
Stefano Piana, Alexander G. Donchev, Paul Robustelli, and David E. Shaw
The Journal of Physical Chemistry B 2015 119 (16), 5113-5123
DOI: 10.1021/jp508971m </Reference>
</Info>
<AtomTypes>
<Type name="tip4pew-O" class="OW" element="O" mass="15.99943"/>
<Type name="tip4pew-H" class="HW" element="H" mass="1.007947"/>
<Type name="tip4pew-M" class="MW" mass="0"/>
</AtomTypes>
<Residues>
<Residue name="HOH">
<Atom name="O" type="tip4pew-O"/>
<Atom name="H1" type="tip4pew-H"/>
<Atom name="H2" type="tip4pew-H"/>
<Atom name="M" type="tip4pew-M"/>
<VirtualSite type="average3" siteName="M" atomName1="O" atomName2="H1" atomName3="H2" weight1="0.786646558" weight2="0.106676721" weight3="0.106676721"/>
<Bond atomName1="O" atomName2="H1"/>
<Bond atomName1="O" atomName2="H2"/>
</Residue>
</Residues>
<HarmonicBondForce>
<Bond class1="OW" class2="HW" length="0.09572" k="462750.4"/>
</HarmonicBondForce>
<HarmonicAngleForce>
<Angle class1="HW" class2="OW" class3="HW" angle="1.82421813418" k="836.8"/>
</HarmonicAngleForce>
<NonbondedForce coulomb14scale="0.5" lj14scale="0.5">
<Atom type="tip4pew-O" charge="0" sigma="0.316435" epsilon="0.936554"/>
<Atom type="tip4pew-H" charge="0.58" sigma="1" epsilon="0"/>
<Atom type="tip4pew-M" charge="-1.16" sigma="1" epsilon="0"/>
</NonbondedForce>
</ForceField>'''
opc = '''<ForceField>
<Info>
<Reference>Water Dispersion Interactions Strongly Influence Simulated Structural Properties of Disordered Protein States
Stefano Piana, Alexander G. Donchev, Paul Robustelli, and David E. Shaw
The Journal of Physical Chemistry B 2015 119 (16), 5113-5123
DOI: 10.1021/jp508971m</Reference>
</Info>
<AtomTypes>
<Type name="opc-O" class="OW" element="O" mass="15.99943"/>
<Type name="opc-H" class="HW" element="H" mass="1.007947"/>
<Type name="opc-M" class="MW" mass="0"/>
</AtomTypes>
<Residues>
<Residue name="HOH">
<Atom name="O" type="opc-O"/>
<Atom name="H1" type="opc-H"/>
<Atom name="H2" type="opc-H"/>
<Atom name="M" type="opc-M"/>
<VirtualSite type="localCoords" index="3" atom1="0" atom2="1" atom3="2" wo1="1.0" wo2="0.0" wo3="0.0" wx1="-1.0" wx2="1.0" wx3="0.0" wy1="-1.0" wy2="0.0" wy3="1.0" p1="0.00986" p2="0.01253" p3="0.000"/>
<Bond atomName1="O" atomName2="H1"/>
<Bond atomName1="O" atomName2="H2"/>
</Residue>
</Residues>
<HarmonicBondForce>
<Bond class1="OW" class2="HW" length="0.08724" k="462750.4"/>
</HarmonicBondForce>
<HarmonicAngleForce>
<Angle class1="HW" class2="OW" class3="HW" angle="1.808161105" k="836.8"/>
</HarmonicAngleForce>
<NonbondedForce coulomb14scale="0.5" lj14scale="0.5">
<Atom type="opc-O" charge="0" sigma="0.316655" epsilon="0.89036"/>
<Atom type="opc-H" charge="0.6791" sigma="1" epsilon="0"/>
<Atom type="opc-M" charge="-1.3582" sigma="1" epsilon="0"/>
</NonbondedForce>
</ForceField>'''
water_dict = {
'tip3p': tip3p, 'spce': spce, 'tip3pfb': tip3pfb, # 3 particle waters
'tip4p': tip4pew, 'tip4pew': tip4pew, 'tip4p-d': tip4pd, 'tip4pfb': tip4pfb, 'opc': opc, # 4 particle waters
'tip5p': tip5p # 5 particle waters
}
if not water or water == 'help':
print('Please enter a water model from the current options:\nOpenMM standard '
'models:\ntip3p\ntip4pew\ntip5p\nspce\nForcebalance models:\ntip3pfb\ntip4pfb\nExtras:\ntip4p-d\nopc')
else:
with open(f'QUBE_{water}.xml', 'w+') as xml:
xml.write(water_dict[water])
def pdb_reformat(reference, target):
"""Rewrite a QUBEKit system pdb traj file to have the correct atom and residue names."""
from QUBEKit.ligand import Protein
# load the original file as a reference
pro = Protein(reference)
print(pro.pdb_names)
# load the target file now
with open(target, 'r') as traj:
lines = traj.readlines()
# now loop through the target file and replace the atom and residue names
PRO = False
i = 0
new_traj = open('QUBE_traj.pdb', 'w+')
for line in lines:
# Find where the protein starts
if 'MODEL' in line:
PRO = True
new_traj.write(line)
i = 1
continue
elif 'TER' in line:
PRO = False
if 'QUP' in line:
new_traj.write(f'{line[:16]} {pro.residues[-1]:4}{line[21:]}')
else:
new_traj.write(line)
continue
# If we are in the protein re-write the protein file
if PRO:
if len(pro.pdb_names[i-1]) <= 3:
new_traj.write(f'ATOM {i:4} {pro.pdb_names[i-1]:3} {pro.Residues[i-1]:4}{line[21:]}')
elif len(pro.pdb_names[i-1]) == 4:
new_traj.write(f'ATOM {i:4} {pro.pdb_names[i-1]:4} {pro.Residues[i-1]:4}{line[21:]}')
i += 1
else:
new_traj.write(line)
def qube_general():
"""Write out the qube general force field to be used in parametrisation."""
with open('QUBE_general_pi.xml', 'w+') as qube:
qube.write('''<ForceField>
<Info>
<DateGenerated>2019-02-14-20190321-correctedHIS,THR,LYS,ASP issues, PRO-amino are still opls </DateGenerated>
<Reference>modified using amber forcefield template +amber charges + opls atomtype+modified seminario parameters</Reference>
</Info>
<AtomTypes>
<!-- from excel script -->
<Type class="C" element="C" mass="12.011" name="C235"/>
<Type class="C" element="C" mass="12.011" name="C267"/>
<Type class="C" element="C" mass="12.011" name="C271"/>
<Type class="CA" element="C" mass="12.011" name="C145"/>
<Type class="CA" element="C" mass="12.011" name="C166"/>
<Type class="CA" element="C" mass="12.011" name="C302"/>
<Type class="CB" element="C" mass="12.011" name="C501"/>
<Type class="CN" element="C" mass="12.011" name="C502"/>
<Type class="CR" element="C" mass="12.011" name="C506"/>
<Type class="CR" element="C" mass="12.011" name="C509"/>
<Type class="CS" element="C" mass="12.011" name="C500"/>
<Type class="CT" element="C" mass="12.011" name="C135"/>
<Type class="CT" element="C" mass="12.011" name="C136"/>
<Type class="CT" element="C" mass="12.011" name="C137"/>
<Type class="CT" element="C" mass="12.011" name="C149"/>
<Type class="CT" element="C" mass="12.011" name="C157"/>
<Type class="CT" element="C" mass="12.011" name="C158"/>
<Type class="CT" element="C" mass="12.011" name="C206"/>
<Type class="CT" element="C" mass="12.011" name="C209"/>
<Type class="CT" element="C" mass="12.011" name="C210"/>
<Type class="CT" element="C" mass="12.011" name="C214"/>
<Type class="CT" element="C" mass="12.011" name="C223"/>
<!-- from c-alfa renaming -->
<Type class="CT" element="C" mass="12.011" name="C224"/>
<Type class="CT" element="C" mass="12.011" name="C224A"/>
<Type class="CT" element="C" mass="12.011" name="C224I"/>
<Type class="CT" element="C" mass="12.011" name="C224S"/>
<Type class="CT" element="C" mass="12.011" name="C224K"/>
<Type class="CT" element="C" mass="12.011" name="C224Y"/>
<!-- from c-alfa DONE -->
<Type class="CT" element="C" mass="12.011" name="C242"/>
<Type class="CT" element="C" mass="12.011" name="C245"/>
<Type class="CT" element="C" mass="12.011" name="C246"/>
<Type class="CT" element="C" mass="12.011" name="C274"/>
<Type class="CT" element="C" mass="12.011" name="C283"/>
<Type class="CT" element="C" mass="12.011" name="C284"/>
<Type class="CT" element="C" mass="12.011" name="C285"/>
<Type class="CT" element="C" mass="12.011" name="C292"/>
<Type class="CT" element="C" mass="12.011" name="C293"/>
<Type class="CT" element="C" mass="12.011" name="C295"/>
<Type class="CT" element="C" mass="12.011" name="C296"/>
<Type class="CT" element="C" mass="12.011" name="C307"/>
<Type class="CT" element="C" mass="12.011" name="C308"/>
<Type class="CT" element="C" mass="12.011" name="C505"/>
<Type class="CV" element="C" mass="12.011" name="C507"/>
<Type class="CW" element="C" mass="12.011" name="C508"/>
<Type class="CW" element="C" mass="12.011" name="C514"/>
<Type class="CX" element="C" mass="12.011" name="C510"/>
<Type class="H" element="H" mass="1.008" name="H240"/>
<Type class="H" element="H" mass="1.008" name="H241"/>
<Type class="H" element="H" mass="1.008" name="H504"/>
<Type class="H" element="H" mass="1.008" name="H513"/>
<Type class="H3" element="H" mass="1.008" name="H290"/>
<Type class="H3" element="H" mass="1.008" name="H301"/>
<Type class="H3" element="H" mass="1.008" name="H304"/>
<Type class="H3" element="H" mass="1.008" name="H310"/>
<Type class="HA" element="H" mass="1.008" name="H146"/>
<Type class="HC" element="H" mass="1.008" name="H140"/>
<Type class="HO" element="H" mass="1.008" name="H155"/>
<Type class="HO" element="H" mass="1.008" name="H168"/>
<Type class="HO" element="H" mass="1.008" name="H270"/>
<Type class="HS" element="H" mass="1.008" name="H204"/>
<Type class="N" element="N" mass="14.007" name="N237"/>
<Type class="N" element="N" mass="14.007" name="N238"/>
<Type class="N" element="N" mass="14.007" name="N239"/>
<Type class="N2" element="N" mass="14.007" name="N300"/>
<Type class="N2" element="N" mass="14.007" name="N303"/>
<Type class="N3" element="N" mass="14.007" name="N287"/>
<Type class="N3" element="N" mass="14.007" name="N309"/>
<Type class="NA" element="N" mass="14.007" name="N503"/>
<Type class="NA" element="N" mass="14.007" name="N512"/>
<Type class="NB" element="N" mass="14.007" name="N511"/>
<Type class="O" element="O" mass="15.9994" name="O236"/>
<Type class="O" element="O" mass="15.9994" name="O269"/>
<Type class="O2" element="O" mass="15.9994" name="O272"/>
<Type class="OH" element="O" mass="15.9994" name="O154"/>
<Type class="OH" element="O" mass="15.9994" name="O167"/>
<Type class="OH" element="O" mass="15.9994" name="O268"/>
<Type class="S" element="S" mass="32.06" name="S202"/>
<Type class="S" element="S" mass="32.06" name="S203"/>
<Type class="SH" element="S" mass="32.06" name="S200"/>
<!-- from excel script -->
<!--DATA FOR WATER -->
<Type class="OT" element="O" mass="15.9994" name="tip3p-O"/>
<Type class="HT" element="H" mass="15.9994" name="tip3p-H"/>
<!--DATA FOR IONS -->
<Type class="SOD" element="Na" mass="22.989800" name="SOD"/>
<Type class="CLA" element="Cl" mass="35.450000" name="CLA"/>
</AtomTypes>
<Residues>
<Residue name="TIP3">
<Atom charge="-0.834" name="OH2" type="tip3p-O"/>
<Atom charge="0.417" name="H1" type="tip3p-H"/>
<Atom charge="0.417" name="H2" type="tip3p-H"/>
<Bond atomName1="OH2" atomName2="H1"/>
<Bond atomName1="OH2" atomName2="H2"/>
</Residue>
<Residue name="SOD">
<Atom charge="1" name="SOD" type="SOD"/>
</Residue>
<Residue name="CLA">
<Atom charge="-1" name="CLA" type="CLA"/>
</Residue>
<Residue name="ALA">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="0.0337" name="CA" type="C224A"/>
<Atom charge="0.0823" name="HA" type="H140"/>
<Atom charge="-0.1825" name="CB" type="C135"/>
<Atom charge="0.0603" name="HB1" type="H140"/>
<Atom charge="0.0603" name="HB2" type="H140"/>
<Atom charge="0.0603" name="HB3" type="H140"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB1"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="ARG">
<Atom charge="-0.3479" name="N" type="N238"/>
<Atom charge="0.2747" name="H" type="H241"/>
<Atom charge="-0.2637" name="CA" type="C224"/>
<Atom charge="0.156" name="HA" type="H140"/>
<Atom charge="-0.0007" name="CB" type="C136"/>
<Atom charge="0.0327" name="HB2" type="H140"/>
<Atom charge="0.0327" name="HB3" type="H140"/>
<Atom charge="0.039" name="CG" type="C308"/>
<Atom charge="0.0285" name="HG2" type="H140"/>
<Atom charge="0.0285" name="HG3" type="H140"/>
<Atom charge="0.0486" name="CD" type="C307"/>
<Atom charge="0.0687" name="HD2" type="H140"/>
<Atom charge="0.0687" name="HD3" type="H140"/>
<Atom charge="-0.5295" name="NE" type="N303"/>
<Atom charge="0.3456" name="HE" type="H304"/>
<Atom charge="0.8076" name="CZ" type="C302"/>
<Atom charge="-0.8627" name="NH1" type="N300"/>
<Atom charge="0.4478" name="HH11" type="H301"/>
<Atom charge="0.4478" name="HH12" type="H301"/>
<Atom charge="-0.8627" name="NH2" type="N300"/>
<Atom charge="0.4478" name="HH21" type="H301"/>
<Atom charge="0.4478" name="HH22" type="H301"/>
<Atom charge="0.7341" name="C" type="C235"/>
<Atom charge="-0.5894" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CD"/>
<Bond atomName1="CD" atomName2="HD2"/>
<Bond atomName1="CD" atomName2="HD3"/>
<Bond atomName1="CD" atomName2="NE"/>
<Bond atomName1="NE" atomName2="HE"/>
<Bond atomName1="NE" atomName2="CZ"/>
<Bond atomName1="CZ" atomName2="NH1"/>
<Bond atomName1="CZ" atomName2="NH2"/>
<Bond atomName1="NH1" atomName2="HH11"/>
<Bond atomName1="NH1" atomName2="HH12"/>
<Bond atomName1="NH2" atomName2="HH21"/>
<Bond atomName1="NH2" atomName2="HH22"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="ASH">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="0.0341" name="CA" type="C224"/>
<Atom charge="0.0864" name="HA" type="H140"/>
<Atom charge="-0.0316" name="CB" type="C136"/>
<Atom charge="0.0488" name="HB2" type="H140"/>
<Atom charge="0.0488" name="HB3" type="H140"/>
<Atom charge="0.6462" name="CG" type="C267"/>
<Atom charge="-0.5554" name="OD1" type="O269"/>
<Atom charge="-0.6376" name="OD2" type="O268"/>
<Atom charge="0.4747" name="HD2" type="H270"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="OD1"/>
<Bond atomName1="CG" atomName2="OD2"/>
<Bond atomName1="OD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="ASN">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="0.0143" name="CA" type="C224"/>
<Atom charge="0.1048" name="HA" type="H140"/>
<Atom charge="-0.2041" name="CB" type="C136"/>
<Atom charge="0.0797" name="HB2" type="H140"/>
<Atom charge="0.0797" name="HB3" type="H140"/>
<Atom charge="0.713" name="CG" type="C235"/>
<Atom charge="-0.5931" name="OD1" type="O236"/>
<Atom charge="-0.9191" name="ND2" type="N237"/>
<Atom charge="0.4196" name="HD21" type="H240"/>
<Atom charge="0.4196" name="HD22" type="H240"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="OD1"/>
<Bond atomName1="CG" atomName2="ND2"/>
<Bond atomName1="ND2" atomName2="HD21"/>
<Bond atomName1="ND2" atomName2="HD22"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="ASP">
<Atom charge="-0.5163" name="N" type="N238"/>
<Atom charge="0.2936" name="H" type="H241"/>
<Atom charge="0.0381" name="CA" type="C224"/>
<Atom charge="0.088" name="HA" type="H140"/>
<Atom charge="-0.0303" name="CB" type="C274"/>
<Atom charge="-0.0122" name="HB2" type="H140"/>
<Atom charge="-0.0122" name="HB3" type="H140"/>
<Atom charge="0.7994" name="CG" type="C271"/>
<Atom charge="-0.8014" name="OD1" type="O272"/>
<Atom charge="-0.8014" name="OD2" type="O272"/>
<Atom charge="0.5366" name="C" type="C235"/>
<Atom charge="-0.5819" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="OD1"/>
<Bond atomName1="CG" atomName2="OD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="CYS">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="0.0213" name="CA" type="C224"/>
<Atom charge="0.1124" name="HA" type="H140"/>
<Atom charge="-0.1231" name="CB" type="C206"/>
<Atom charge="0.1112" name="HB2" type="H140"/>
<Atom charge="0.1112" name="HB3" type="H140"/>
<Atom charge="-0.3119" name="SG" type="S200"/>
<Atom charge="0.1933" name="HG" type="H204"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="SG"/>
<Bond atomName1="SG" atomName2="HG"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="CYX">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="0.0429" name="CA" type="C224"/>
<Atom charge="0.0766" name="HA" type="H140"/>
<Atom charge="-0.079" name="CB" type="C214"/>
<Atom charge="0.091" name="HB2" type="H140"/>
<Atom charge="0.091" name="HB3" type="H140"/>
<Atom charge="-0.1081" name="SG" type="S203"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="SG"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="SG"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="GLH">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="0.0145" name="CA" type="C224"/>
<Atom charge="0.0779" name="HA" type="H140"/>
<Atom charge="-0.0071" name="CB" type="C136"/>
<Atom charge="0.0256" name="HB2" type="H140"/>
<Atom charge="0.0256" name="HB3" type="H140"/>
<Atom charge="-0.0174" name="CG" type="C136"/>
<Atom charge="0.043" name="HG2" type="H140"/>
<Atom charge="0.043" name="HG3" type="H140"/>
<Atom charge="0.6801" name="CD" type="C267"/>
<Atom charge="-0.5838" name="OE1" type="O269"/>
<Atom charge="-0.6511" name="OE2" type="O268"/>
<Atom charge="0.4641" name="HE2" type="H270"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CD"/>
<Bond atomName1="CD" atomName2="OE1"/>
<Bond atomName1="CD" atomName2="OE2"/>
<Bond atomName1="OE2" atomName2="HE2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="GLN">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="-0.0031" name="CA" type="C224"/>
<Atom charge="0.085" name="HA" type="H140"/>
<Atom charge="-0.0036" name="CB" type="C136"/>
<Atom charge="0.0171" name="HB2" type="H140"/>
<Atom charge="0.0171" name="HB3" type="H140"/>
<Atom charge="-0.0645" name="CG" type="C136"/>
<Atom charge="0.0352" name="HG2" type="H140"/>
<Atom charge="0.0352" name="HG3" type="H140"/>
<Atom charge="0.6951" name="CD" type="C235"/>
<Atom charge="-0.6086" name="OE1" type="O236"/>
<Atom charge="-0.9407" name="NE2" type="N237"/>
<Atom charge="0.4251" name="HE21" type="H240"/>
<Atom charge="0.4251" name="HE22" type="H240"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CD"/>
<Bond atomName1="CD" atomName2="OE1"/>
<Bond atomName1="CD" atomName2="NE2"/>
<Bond atomName1="NE2" atomName2="HE21"/>
<Bond atomName1="NE2" atomName2="HE22"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="GLU">
<Atom charge="-0.5163" name="N" type="N238"/>
<Atom charge="0.2936" name="H" type="H241"/>
<Atom charge="0.0397" name="CA" type="C224"/>
<Atom charge="0.1105" name="HA" type="H140"/>
<Atom charge="0.056" name="CB" type="C136"/>
<Atom charge="-0.0173" name="HB2" type="H140"/>
<Atom charge="-0.0173" name="HB3" type="H140"/>
<Atom charge="0.0136" name="CG" type="C274"/>
<Atom charge="-0.0425" name="HG2" type="H140"/>
<Atom charge="-0.0425" name="HG3" type="H140"/>
<Atom charge="0.8054" name="CD" type="C271"/>
<Atom charge="-0.8188" name="OE1" type="O272"/>
<Atom charge="-0.8188" name="OE2" type="O272"/>
<Atom charge="0.5366" name="C" type="C235"/>
<Atom charge="-0.5819" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CD"/>
<Bond atomName1="CD" atomName2="OE1"/>
<Bond atomName1="CD" atomName2="OE2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="GLY">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="-0.0252" name="CA" type="C223"/>
<Atom charge="0.0698" name="HA2" type="H140"/>
<Atom charge="0.0698" name="HA3" type="H140"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA2"/>
<Bond atomName1="CA" atomName2="HA3"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="HID">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="0.0188" name="CA" type="C224"/>
<Atom charge="0.0881" name="HA" type="H140"/>
<Atom charge="-0.0462" name="CB" type="C505"/>
<Atom charge="0.0402" name="HB2" type="H140"/>
<Atom charge="0.0402" name="HB3" type="H140"/>
<Atom charge="-0.0266" name="CG" type="C508"/>
<Atom charge="-0.3811" name="ND1" type="N503"/>
<Atom charge="0.3649" name="HD1" type="H504"/>
<Atom charge="0.2057" name="CE1" type="C506"/>
<Atom charge="0.1392" name="HE1" type="H146"/>
<Atom charge="-0.5727" name="NE2" type="N511"/>
<Atom charge="0.1292" name="CD2" type="C507"/>
<Atom charge="0.1147" name="HD2" type="H146"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="ND1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="ND1" atomName2="HD1"/>
<Bond atomName1="ND1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="NE2"/>
<Bond atomName1="NE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="HIE">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="-0.0581" name="CA" type="C224"/>
<Atom charge="0.136" name="HA" type="H140"/>
<Atom charge="-0.0074" name="CB" type="C505"/>
<Atom charge="0.0367" name="HB2" type="H140"/>
<Atom charge="0.0367" name="HB3" type="H140"/>
<Atom charge="0.1868" name="CG" type="C507"/>
<Atom charge="-0.5432" name="ND1" type="N511"/>
<Atom charge="0.1635" name="CE1" type="C506"/>
<Atom charge="0.1435" name="HE1" type="H146"/>
<Atom charge="-0.2795" name="NE2" type="N503"/>
<Atom charge="0.3339" name="HE2" type="H504"/>
<Atom charge="-0.2207" name="CD2" type="C508"/>
<Atom charge="0.1862" name="HD2" type="H146"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="ND1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="ND1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="NE2"/>
<Bond atomName1="NE2" atomName2="HE2"/>
<Bond atomName1="NE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="HIP">
<Atom charge="-0.3479" name="N" type="N238"/>
<Atom charge="0.2747" name="H" type="H241"/>
<Atom charge="-0.1354" name="CA" type="C224"/>
<Atom charge="0.1212" name="HA" type="H140"/>
<Atom charge="-0.0414" name="CB" type="C505"/>
<Atom charge="0.081" name="HB2" type="H140"/>
<Atom charge="0.081" name="HB3" type="H140"/>
<Atom charge="-0.0012" name="CG" type="C510"/>
<Atom charge="-0.1513" name="ND1" type="N512"/>
<Atom charge="0.3866" name="HD1" type="H513"/>
<Atom charge="-0.017" name="CE1" type="C509"/>
<Atom charge="0.2681" name="HE1" type="H146"/>
<Atom charge="-0.1718" name="NE2" type="N512"/>
<Atom charge="0.3911" name="HE2" type="H513"/>
<Atom charge="-0.1141" name="CD2" type="C510"/>
<Atom charge="0.2317" name="HD2" type="H146"/>
<Atom charge="0.7341" name="C" type="C235"/>
<Atom charge="-0.5894" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="ND1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="ND1" atomName2="HD1"/>
<Bond atomName1="ND1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="NE2"/>
<Bond atomName1="NE2" atomName2="HE2"/>
<Bond atomName1="NE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="ILE">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="-0.0597" name="CA" type="C224I"/>
<Atom charge="0.0869" name="HA" type="H140"/>
<Atom charge="0.1303" name="CB" type="C137"/>
<Atom charge="0.0187" name="HB" type="H140"/>
<Atom charge="-0.3204" name="CG2" type="C135"/>
<Atom charge="0.0882" name="HG21" type="H140"/>
<Atom charge="0.0882" name="HG22" type="H140"/>
<Atom charge="0.0882" name="HG23" type="H140"/>
<Atom charge="-0.043" name="CG1" type="C136"/>
<Atom charge="0.0236" name="HG12" type="H140"/>
<Atom charge="0.0236" name="HG13" type="H140"/>
<Atom charge="-0.066" name="CD1" type="C135"/>
<Atom charge="0.0186" name="HD11" type="H140"/>
<Atom charge="0.0186" name="HD12" type="H140"/>
<Atom charge="0.0186" name="HD13" type="H140"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB"/>
<Bond atomName1="CB" atomName2="CG2"/>
<Bond atomName1="CB" atomName2="CG1"/>
<Bond atomName1="CG2" atomName2="HG21"/>
<Bond atomName1="CG2" atomName2="HG22"/>
<Bond atomName1="CG2" atomName2="HG23"/>
<Bond atomName1="CG1" atomName2="HG12"/>
<Bond atomName1="CG1" atomName2="HG13"/>
<Bond atomName1="CG1" atomName2="CD1"/>
<Bond atomName1="CD1" atomName2="HD11"/>
<Bond atomName1="CD1" atomName2="HD12"/>
<Bond atomName1="CD1" atomName2="HD13"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="LEU">
<Atom charge="-0.6104" name="N" type="N238"/>
<Atom charge="0.3534" name="H" type="H241"/>
<Atom charge="0.1797" name="CA" type="C224"/>
<Atom charge="0.0778" name="HA" type="H140"/>
<Atom charge="-0.2488" name="CB" type="C136"/>
<Atom charge="0.0848" name="HB2" type="H140"/>
<Atom charge="0.0637" name="HB3" type="H140"/>
<Atom charge="0.3273" name="CG" type="C137"/>
<Atom charge="-0.0217" name="HG" type="H140"/>
<Atom charge="-0.3691" name="CD1" type="C135"/>
<Atom charge="0.0868" name="HD11" type="H140"/>
<Atom charge="0.0868" name="HD12" type="H140"/>
<Atom charge="0.0868" name="HD13" type="H140"/>
<Atom charge="-0.3739" name="CD2" type="C135"/>
<Atom charge="0.0939" name="HD21" type="H140"/>
<Atom charge="0.0939" name="HD22" type="H140"/>
<Atom charge="0.0939" name="HD23" type="H140"/>
<Atom charge="0.4661" name="C" type="C235"/>
<Atom charge="-0.6200" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG"/>
<Bond atomName1="CG" atomName2="CD1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="CD1" atomName2="HD11"/>
<Bond atomName1="CD1" atomName2="HD12"/>
<Bond atomName1="CD1" atomName2="HD13"/>
<Bond atomName1="CD2" atomName2="HD21"/>
<Bond atomName1="CD2" atomName2="HD22"/>
<Bond atomName1="CD2" atomName2="HD23"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="LYS">
<Atom charge="-0.3479" name="N" type="N238"/>
<Atom charge="0.2747" name="H" type="H241"/>
<Atom charge="-0.24" name="CA" type="C224K"/>
<Atom charge="0.1426" name="HA" type="H140"/>
<Atom charge="-0.0094" name="CB" type="C136"/>
<Atom charge="0.0362" name="HB2" type="H140"/>
<Atom charge="0.0362" name="HB3" type="H140"/>
<Atom charge="0.0187" name="CG" type="C136"/>
<Atom charge="0.0103" name="HG2" type="H140"/>
<Atom charge="0.0103" name="HG3" type="H140"/>
<Atom charge="-0.0479" name="CD" type="C136"/>
<Atom charge="0.0621" name="HD2" type="H140"/>
<Atom charge="0.0621" name="HD3" type="H140"/>
<Atom charge="-0.0143" name="CE" type="C292"/>
<Atom charge="0.1135" name="HE2" type="H140"/>
<Atom charge="0.1135" name="HE3" type="H140"/>
<Atom charge="-0.3854" name="NZ" type="N287"/>
<Atom charge="0.34" name="HZ1" type="H290"/>
<Atom charge="0.34" name="HZ2" type="H290"/>
<Atom charge="0.34" name="HZ3" type="H290"/>
<Atom charge="0.7341" name="C" type="C235"/>
<Atom charge="-0.5894" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CD"/>
<Bond atomName1="CD" atomName2="HD2"/>
<Bond atomName1="CD" atomName2="HD3"/>
<Bond atomName1="CD" atomName2="CE"/>
<Bond atomName1="CE" atomName2="HE2"/>
<Bond atomName1="CE" atomName2="HE3"/>
<Bond atomName1="CE" atomName2="NZ"/>
<Bond atomName1="NZ" atomName2="HZ1"/>
<Bond atomName1="NZ" atomName2="HZ2"/>
<Bond atomName1="NZ" atomName2="HZ3"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="MET">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="-0.0237" name="CA" type="C224"/>
<Atom charge="0.088" name="HA" type="H140"/>
<Atom charge="0.0342" name="CB" type="C136"/>
<Atom charge="0.0241" name="HB2" type="H140"/>
<Atom charge="0.0241" name="HB3" type="H140"/>
<Atom charge="0.0018" name="CG" type="C210"/>
<Atom charge="0.044" name="HG2" type="H140"/>
<Atom charge="0.044" name="HG3" type="H140"/>
<Atom charge="-0.2737" name="SD" type="S202"/>
<Atom charge="-0.0536" name="CE" type="C209"/>
<Atom charge="0.0684" name="HE1" type="H140"/>
<Atom charge="0.0684" name="HE2" type="H140"/>
<Atom charge="0.0684" name="HE3" type="H140"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="SD"/>
<Bond atomName1="SD" atomName2="CE"/>
<Bond atomName1="CE" atomName2="HE1"/>
<Bond atomName1="CE" atomName2="HE2"/>
<Bond atomName1="CE" atomName2="HE3"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="PHE">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="-0.0024" name="CA" type="C224"/>
<Atom charge="0.0978" name="HA" type="H140"/>
<Atom charge="-0.0343" name="CB" type="C149"/>
<Atom charge="0.0295" name="HB2" type="H140"/>
<Atom charge="0.0295" name="HB3" type="H140"/>
<Atom charge="0.0118" name="CG" type="C145"/>
<Atom charge="-0.1256" name="CD1" type="C145"/>
<Atom charge="0.133" name="HD1" type="H146"/>
<Atom charge="-0.1704" name="CE1" type="C145"/>
<Atom charge="0.143" name="HE1" type="H146"/>
<Atom charge="-0.1072" name="CZ" type="C145"/>
<Atom charge="0.1297" name="HZ" type="H146"/>
<Atom charge="-0.1704" name="CE2" type="C145"/>
<Atom charge="0.143" name="HE2" type="H146"/>
<Atom charge="-0.1256" name="CD2" type="C145"/>
<Atom charge="0.133" name="HD2" type="H146"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="CD1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="CD1" atomName2="HD1"/>
<Bond atomName1="CD1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="CZ"/>
<Bond atomName1="CZ" atomName2="HZ"/>
<Bond atomName1="CZ" atomName2="CE2"/>
<Bond atomName1="CE2" atomName2="HE2"/>
<Bond atomName1="CE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="PRO">
<Atom charge="-0.2548" name="N" type="N239"/>
<Atom charge="0.0192" name="CD" type="C245"/>
<Atom charge="0.0391" name="HD2" type="H140"/>
<Atom charge="0.0391" name="HD3" type="H140"/>
<Atom charge="0.0189" name="CG" type="C136"/>
<Atom charge="0.0213" name="HG2" type="H140"/>
<Atom charge="0.0213" name="HG3" type="H140"/>
<Atom charge="-0.007" name="CB" type="C136"/>
<Atom charge="0.0253" name="HB2" type="H140"/>
<Atom charge="0.0253" name="HB3" type="H140"/>
<Atom charge="-0.0266" name="CA" type="C246"/>
<Atom charge="0.0641" name="HA" type="H140"/>
<Atom charge="0.5896" name="C" type="C235"/>
<Atom charge="-0.5748" name="O" type="O236"/>
<Bond atomName1="N" atomName2="CD"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CD" atomName2="HD2"/>
<Bond atomName1="CD" atomName2="HD3"/>
<Bond atomName1="CD" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CB"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="SER">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="-0.0249" name="CA" type="C224S"/>
<Atom charge="0.0843" name="HA" type="H140"/>
<Atom charge="0.2117" name="CB" type="C157"/>
<Atom charge="0.0352" name="HB2" type="H140"/>
<Atom charge="0.0352" name="HB3" type="H140"/>
<Atom charge="-0.6546" name="OG" type="O154"/>
<Atom charge="0.4275" name="HG" type="H155"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="OG"/>
<Bond atomName1="OG" atomName2="HG"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="THR">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="-0.0389" name="CA" type="C224S"/>
<Atom charge="0.1007" name="HA" type="H140"/>
<Atom charge="0.3654" name="CB" type="C158"/>
<Atom charge="0.0043" name="HB" type="H140"/>
<Atom charge="-0.2438" name="CG2" type="C135"/>
<Atom charge="0.0642" name="HG21" type="H140"/>
<Atom charge="0.0642" name="HG22" type="H140"/>
<Atom charge="0.0642" name="HG23" type="H140"/>
<Atom charge="-0.6761" name="OG1" type="O154"/>
<Atom charge="0.4102" name="HG1" type="H155"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB"/>
<Bond atomName1="CB" atomName2="CG2"/>
<Bond atomName1="CB" atomName2="OG1"/>
<Bond atomName1="CG2" atomName2="HG21"/>
<Bond atomName1="CG2" atomName2="HG22"/>
<Bond atomName1="CG2" atomName2="HG23"/>
<Bond atomName1="OG1" atomName2="HG1"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="TRP">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="-0.0275" name="CA" type="C224"/>
<Atom charge="0.1123" name="HA" type="H140"/>
<Atom charge="-0.005" name="CB" type="C136"/>
<Atom charge="0.0339" name="HB2" type="H140"/>
<Atom charge="0.0339" name="HB3" type="H140"/>
<Atom charge="-0.1415" name="CG" type="C500"/>
<Atom charge="-0.1638" name="CD1" type="C514"/>
<Atom charge="0.2062" name="HD1" type="H146"/>
<Atom charge="-0.3418" name="NE1" type="N503"/>
<Atom charge="0.3412" name="HE1" type="H504"/>
<Atom charge="0.138" name="CE2" type="C502"/>
<Atom charge="-0.2601" name="CZ2" type="C145"/>
<Atom charge="0.1572" name="HZ2" type="H146"/>
<Atom charge="-0.1134" name="CH2" type="C145"/>
<Atom charge="0.1417" name="HH2" type="H146"/>
<Atom charge="-0.1972" name="CZ3" type="C145"/>
<Atom charge="0.1447" name="HZ3" type="H146"/>
<Atom charge="-0.2387" name="CE3" type="C145"/>
<Atom charge="0.17" name="HE3" type="H146"/>
<Atom charge="0.1243" name="CD2" type="C501"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="CD1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="CD1" atomName2="HD1"/>
<Bond atomName1="CD1" atomName2="NE1"/>
<Bond atomName1="NE1" atomName2="HE1"/>
<Bond atomName1="NE1" atomName2="CE2"/>
<Bond atomName1="CE2" atomName2="CZ2"/>
<Bond atomName1="CE2" atomName2="CD2"/>
<Bond atomName1="CZ2" atomName2="HZ2"/>
<Bond atomName1="CZ2" atomName2="CH2"/>
<Bond atomName1="CH2" atomName2="HH2"/>
<Bond atomName1="CH2" atomName2="CZ3"/>
<Bond atomName1="CZ3" atomName2="HZ3"/>
<Bond atomName1="CZ3" atomName2="CE3"/>
<Bond atomName1="CE3" atomName2="HE3"/>
<Bond atomName1="CE3" atomName2="CD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="TYR">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="-0.0014" name="CA" type="C224Y"/>
<Atom charge="0.0876" name="HA" type="H140"/>
<Atom charge="-0.0152" name="CB" type="C149"/>
<Atom charge="0.0295" name="HB2" type="H140"/>
<Atom charge="0.0295" name="HB3" type="H140"/>
<Atom charge="-0.0011" name="CG" type="C145"/>
<Atom charge="-0.1906" name="CD1" type="C145"/>
<Atom charge="0.1699" name="HD1" type="H146"/>
<Atom charge="-0.2341" name="CE1" type="C145"/>
<Atom charge="0.1656" name="HE1" type="H146"/>
<Atom charge="0.3226" name="CZ" type="C166"/>
<Atom charge="-0.5579" name="OH" type="O167"/>
<Atom charge="0.3992" name="HH" type="H168"/>
<Atom charge="-0.2341" name="CE2" type="C145"/>
<Atom charge="0.1656" name="HE2" type="H146"/>
<Atom charge="-0.1906" name="CD2" type="C145"/>
<Atom charge="0.1699" name="HD2" type="H146"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="CD1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="CD1" atomName2="HD1"/>
<Bond atomName1="CD1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="CZ"/>
<Bond atomName1="CZ" atomName2="OH"/>
<Bond atomName1="CZ" atomName2="CE2"/>
<Bond atomName1="OH" atomName2="HH"/>
<Bond atomName1="CE2" atomName2="HE2"/>
<Bond atomName1="CE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="VAL">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="-0.0875" name="CA" type="C224"/>
<Atom charge="0.0969" name="HA" type="H140"/>
<Atom charge="0.2985" name="CB" type="C137"/>
<Atom charge="-0.0297" name="HB" type="H140"/>
<Atom charge="-0.3192" name="CG1" type="C135"/>
<Atom charge="0.0791" name="HG11" type="H140"/>
<Atom charge="0.0791" name="HG12" type="H140"/>
<Atom charge="0.0791" name="HG13" type="H140"/>
<Atom charge="-0.3192" name="CG2" type="C135"/>
<Atom charge="0.0791" name="HG21" type="H140"/>
<Atom charge="0.0791" name="HG22" type="H140"/>
<Atom charge="0.0791" name="HG23" type="H140"/>
<Atom charge="0.5973" name="C" type="C235"/>
<Atom charge="-0.5679" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB"/>
<Bond atomName1="CB" atomName2="CG1"/>
<Bond atomName1="CB" atomName2="CG2"/>
<Bond atomName1="CG1" atomName2="HG11"/>
<Bond atomName1="CG1" atomName2="HG12"/>
<Bond atomName1="CG1" atomName2="HG13"/>
<Bond atomName1="CG2" atomName2="HG21"/>
<Bond atomName1="CG2" atomName2="HG22"/>
<Bond atomName1="CG2" atomName2="HG23"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="N"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="CALA">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.1747" name="CA" type="C283"/>
<Atom charge="0.1067" name="HA" type="H140"/>
<Atom charge="-0.2093" name="CB" type="C135"/>
<Atom charge="0.0764" name="HB1" type="H140"/>
<Atom charge="0.0764" name="HB2" type="H140"/>
<Atom charge="0.0764" name="HB3" type="H140"/>
<Atom charge="0.7731" name="C" type="C271"/>
<Atom charge="-0.8055" name="O" type="O272"/>
<Atom charge="-0.8055" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB1"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CARG">
<Atom charge="-0.3481" name="N" type="N238"/>
<Atom charge="0.2764" name="H" type="H241"/>
<Atom charge="-0.3068" name="CA" type="C283"/>
<Atom charge="0.1447" name="HA" type="H140"/>
<Atom charge="-0.0374" name="CB" type="C136"/>
<Atom charge="0.0371" name="HB2" type="H140"/>
<Atom charge="0.0371" name="HB3" type="H140"/>
<Atom charge="0.0744" name="CG" type="C308"/>
<Atom charge="0.0185" name="HG2" type="H140"/>
<Atom charge="0.0185" name="HG3" type="H140"/>
<Atom charge="0.1114" name="CD" type="C307"/>
<Atom charge="0.0468" name="HD2" type="H140"/>
<Atom charge="0.0468" name="HD3" type="H140"/>
<Atom charge="-0.5564" name="NE" type="N303"/>
<Atom charge="0.3479" name="HE" type="H304"/>
<Atom charge="0.8368" name="CZ" type="C302"/>
<Atom charge="-0.8737" name="NH1" type="N300"/>
<Atom charge="0.4493" name="HH11" type="H301"/>
<Atom charge="0.4493" name="HH12" type="H301"/>
<Atom charge="-0.8737" name="NH2" type="N300"/>
<Atom charge="0.4493" name="HH21" type="H301"/>
<Atom charge="0.4493" name="HH22" type="H301"/>
<Atom charge="0.8557" name="C" type="C271"/>
<Atom charge="-0.8266" name="O" type="O272"/>
<Atom charge="-0.8266" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CD"/>
<Bond atomName1="CD" atomName2="HD2"/>
<Bond atomName1="CD" atomName2="HD3"/>
<Bond atomName1="CD" atomName2="NE"/>
<Bond atomName1="NE" atomName2="HE"/>
<Bond atomName1="NE" atomName2="CZ"/>
<Bond atomName1="CZ" atomName2="NH1"/>
<Bond atomName1="CZ" atomName2="NH2"/>
<Bond atomName1="NH1" atomName2="HH11"/>
<Bond atomName1="NH1" atomName2="HH12"/>
<Bond atomName1="NH2" atomName2="HH21"/>
<Bond atomName1="NH2" atomName2="HH22"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CASH">
<Atom charge="-0.4157" name="N" type="N238"/>
<Atom charge="0.2719" name="H" type="H241"/>
<Atom charge="0.0341" name="CA" type="C283"/>
<Atom charge="0.0864" name="HA" type="H140"/>
<Atom charge="-0.0316" name="CB" type="C136"/>
<Atom charge="0.0488" name="HB2" type="H140"/>
<Atom charge="0.0488" name="HB3" type="H140"/>
<Atom charge="0.6462" name="CG" type="C267"/>
<Atom charge="-0.5554" name="OD1" type="O269"/>
<Atom charge="-0.6376" name="OD2" type="O268"/>
<Atom charge="0.4747" name="HD2" type="H270"/>
<Atom charge="0.805" name="C" type="C271"/>
<Atom charge="-0.8147" name="O" type="O272"/>
<Atom charge="-0.8147" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="OD1"/>
<Bond atomName1="CG" atomName2="OD2"/>
<Bond atomName1="OD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CASN">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.208" name="CA" type="C283"/>
<Atom charge="0.1358" name="HA" type="H140"/>
<Atom charge="-0.2299" name="CB" type="C136"/>
<Atom charge="0.1023" name="HB2" type="H140"/>
<Atom charge="0.1023" name="HB3" type="H140"/>
<Atom charge="0.7153" name="CG" type="C235"/>
<Atom charge="-0.601" name="OD1" type="O236"/>
<Atom charge="-0.9084" name="ND2" type="N237"/>
<Atom charge="0.415" name="HD21" type="H240"/>
<Atom charge="0.415" name="HD22" type="H240"/>
<Atom charge="0.805" name="C" type="C271"/>
<Atom charge="-0.8147" name="O" type="O272"/>
<Atom charge="-0.8147" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="OD1"/>
<Bond atomName1="CG" atomName2="ND2"/>
<Bond atomName1="ND2" atomName2="HD21"/>
<Bond atomName1="ND2" atomName2="HD22"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CASP">
<Atom charge="-0.5192" name="N" type="N238"/>
<Atom charge="0.3055" name="H" type="H241"/>
<Atom charge="-0.1817" name="CA" type="C283"/>
<Atom charge="0.1046" name="HA" type="H140"/>
<Atom charge="-0.0677" name="CB" type="C274"/>
<Atom charge="-0.0212" name="HB2" type="H140"/>
<Atom charge="-0.0212" name="HB3" type="H140"/>
<Atom charge="0.8851" name="CG" type="C271"/>
<Atom charge="-0.8162" name="OD1" type="O272"/>
<Atom charge="-0.8162" name="OD2" type="O272"/>
<Atom charge="0.7256" name="C" type="C271"/>
<Atom charge="-0.7887" name="O" type="O272"/>
<Atom charge="-0.7887" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="OD1"/>
<Bond atomName1="CG" atomName2="OD2"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CCYS">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.1635" name="CA" type="C283"/>
<Atom charge="0.1396" name="HA" type="H140"/>
<Atom charge="-0.1996" name="CB" type="C206"/>
<Atom charge="0.1437" name="HB2" type="H140"/>
<Atom charge="0.1437" name="HB3" type="H140"/>
<Atom charge="-0.3102" name="SG" type="S200"/>
<Atom charge="0.2068" name="HG" type="H204"/>
<Atom charge="0.7497" name="C" type="C271"/>
<Atom charge="-0.7981" name="O" type="O272"/>
<Atom charge="-0.7981" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="SG"/>
<Bond atomName1="SG" atomName2="HG"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CCYX">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.1318" name="CA" type="C283"/>
<Atom charge="0.0938" name="HA" type="H140"/>
<Atom charge="-0.1943" name="CB" type="C214"/>
<Atom charge="0.1228" name="HB2" type="H140"/>
<Atom charge="0.1228" name="HB3" type="H140"/>
<Atom charge="-0.0529" name="SG" type="S203"/>
<Atom charge="0.7618" name="C" type="C271"/>
<Atom charge="-0.8041" name="O" type="O272"/>
<Atom charge="-0.8041" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="SG"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="SG"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CGLN">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.2248" name="CA" type="C283"/>
<Atom charge="0.1232" name="HA" type="H140"/>
<Atom charge="-0.0664" name="CB" type="C136"/>
<Atom charge="0.0452" name="HB2" type="H140"/>
<Atom charge="0.0452" name="HB3" type="H140"/>
<Atom charge="-0.021" name="CG" type="C136"/>
<Atom charge="0.0203" name="HG2" type="H140"/>
<Atom charge="0.0203" name="HG3" type="H140"/>
<Atom charge="0.7093" name="CD" type="C235"/>
<Atom charge="-0.6098" name="OE1" type="O236"/>
<Atom charge="-0.9574" name="NE2" type="N237"/>
<Atom charge="0.4304" name="HE21" type="H240"/>
<Atom charge="0.4304" name="HE22" type="H240"/>
<Atom charge="0.7775" name="C" type="C271"/>
<Atom charge="-0.8042" name="O" type="O272"/>
<Atom charge="-0.8042" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CD"/>
<Bond atomName1="CD" atomName2="OE1"/>
<Bond atomName1="CD" atomName2="NE2"/>
<Bond atomName1="NE2" atomName2="HE21"/>
<Bond atomName1="NE2" atomName2="HE22"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CGLU">
<Atom charge="-0.5192" name="N" type="N238"/>
<Atom charge="0.3055" name="H" type="H241"/>
<Atom charge="-0.2059" name="CA" type="C283"/>
<Atom charge="0.1399" name="HA" type="H140"/>
<Atom charge="0.0071" name="CB" type="C136"/>
<Atom charge="-0.0078" name="HB2" type="H140"/>
<Atom charge="-0.0078" name="HB3" type="H140"/>
<Atom charge="0.0675" name="CG" type="C274"/>
<Atom charge="-0.0548" name="HG2" type="H140"/>
<Atom charge="-0.0548" name="HG3" type="H140"/>
<Atom charge="0.8183" name="CD" type="C271"/>
<Atom charge="-0.822" name="OE1" type="O272"/>
<Atom charge="-0.822" name="OE2" type="O272"/>
<Atom charge="0.742" name="C" type="C271"/>
<Atom charge="-0.793" name="O" type="O272"/>
<Atom charge="-0.793" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CD"/>
<Bond atomName1="CD" atomName2="OE1"/>
<Bond atomName1="CD" atomName2="OE2"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CGLY">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.2493" name="CA" type="C284"/>
<Atom charge="0.1056" name="HA2" type="H140"/>
<Atom charge="0.1056" name="HA3" type="H140"/>
<Atom charge="0.7231" name="C" type="C271"/>
<Atom charge="-0.7855" name="O" type="O272"/>
<Atom charge="-0.7855" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA2"/>
<Bond atomName1="CA" atomName2="HA3"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CHID">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.1739" name="CA" type="C283"/>
<Atom charge="0.11" name="HA" type="H140"/>
<Atom charge="-0.1046" name="CB" type="C505"/>
<Atom charge="0.0565" name="HB2" type="H140"/>
<Atom charge="0.0565" name="HB3" type="H140"/>
<Atom charge="0.0293" name="CG" type="C508"/>
<Atom charge="-0.3892" name="ND1" type="N503"/>
<Atom charge="0.3755" name="HD1" type="H504"/>
<Atom charge="0.1925" name="CE1" type="C506"/>
<Atom charge="0.1418" name="HE1" type="H146"/>
<Atom charge="-0.5629" name="NE2" type="N511"/>
<Atom charge="0.1001" name="CD2" type="C507"/>
<Atom charge="0.1241" name="HD2" type="H146"/>
<Atom charge="0.7615" name="C" type="C271"/>
<Atom charge="-0.8016" name="O" type="O272"/>
<Atom charge="-0.8016" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="ND1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="ND1" atomName2="HD1"/>
<Bond atomName1="ND1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="NE2"/>
<Bond atomName1="NE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CHIE">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.2699" name="CA" type="C283"/>
<Atom charge="0.165" name="HA" type="H140"/>
<Atom charge="-0.1068" name="CB" type="C505"/>
<Atom charge="0.062" name="HB2" type="H140"/>
<Atom charge="0.062" name="HB3" type="H140"/>
<Atom charge="0.2724" name="CG" type="C507"/>
<Atom charge="-0.5517" name="ND1" type="N511"/>
<Atom charge="0.1558" name="CE1" type="C506"/>
<Atom charge="0.1448" name="HE1" type="H146"/>
<Atom charge="-0.267" name="NE2" type="N503"/>
<Atom charge="0.3319" name="HE2" type="H504"/>
<Atom charge="-0.2588" name="CD2" type="C508"/>
<Atom charge="0.1957" name="HD2" type="H146"/>
<Atom charge="0.7916" name="C" type="C271"/>
<Atom charge="-0.8065" name="O" type="O272"/>
<Atom charge="-0.8065" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="ND1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="ND1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="NE2"/>
<Bond atomName1="NE2" atomName2="HE2"/>
<Bond atomName1="NE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CHIP">
<Atom charge="-0.3481" name="N" type="N238"/>
<Atom charge="0.2764" name="H" type="H241"/>
<Atom charge="-0.1445" name="CA" type="C283"/>
<Atom charge="0.1115" name="HA" type="H140"/>
<Atom charge="-0.08" name="CB" type="C505"/>
<Atom charge="0.0868" name="HB2" type="H140"/>
<Atom charge="0.0868" name="HB3" type="H140"/>
<Atom charge="0.0298" name="CG" type="C510"/>
<Atom charge="-0.1501" name="ND1" type="N512"/>
<Atom charge="0.3883" name="HD1" type="H513"/>
<Atom charge="-0.0251" name="CE1" type="C509"/>
<Atom charge="0.2694" name="HE1" type="H146"/>
<Atom charge="-0.1683" name="NE2" type="N512"/>
<Atom charge="0.3913" name="HE2" type="H513"/>
<Atom charge="-0.1256" name="CD2" type="C510"/>
<Atom charge="0.2336" name="HD2" type="H146"/>
<Atom charge="0.8032" name="C" type="C271"/>
<Atom charge="-0.8177" name="O" type="O272"/>
<Atom charge="-0.8177" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="ND1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="ND1" atomName2="HD1"/>
<Bond atomName1="ND1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="NE2"/>
<Bond atomName1="NE2" atomName2="HE2"/>
<Bond atomName1="NE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CILE">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.31" name="CA" type="C283"/>
<Atom charge="0.1375" name="HA" type="H140"/>
<Atom charge="0.0363" name="CB" type="C137"/>
<Atom charge="0.0766" name="HB" type="H140"/>
<Atom charge="-0.3498" name="CG2" type="C135"/>
<Atom charge="0.1021" name="HG21" type="H140"/>
<Atom charge="0.1021" name="HG22" type="H140"/>
<Atom charge="0.1021" name="HG23" type="H140"/>
<Atom charge="-0.0323" name="CG1" type="C136"/>
<Atom charge="0.0321" name="HG12" type="H140"/>
<Atom charge="0.0321" name="HG13" type="H140"/>
<Atom charge="-0.0699" name="CD1" type="C135"/>
<Atom charge="0.0196" name="HD11" type="H140"/>
<Atom charge="0.0196" name="HD12" type="H140"/>
<Atom charge="0.0196" name="HD13" type="H140"/>
<Atom charge="0.8343" name="C" type="C271"/>
<Atom charge="-0.819" name="O" type="O272"/>
<Atom charge="-0.819" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB"/>
<Bond atomName1="CB" atomName2="CG2"/>
<Bond atomName1="CB" atomName2="CG1"/>
<Bond atomName1="CG2" atomName2="HG21"/>
<Bond atomName1="CG2" atomName2="HG22"/>
<Bond atomName1="CG2" atomName2="HG23"/>
<Bond atomName1="CG1" atomName2="HG12"/>
<Bond atomName1="CG1" atomName2="HG13"/>
<Bond atomName1="CG1" atomName2="CD1"/>
<Bond atomName1="CD1" atomName2="HD11"/>
<Bond atomName1="CD1" atomName2="HD12"/>
<Bond atomName1="CD1" atomName2="HD13"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CLEU">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.2847" name="CA" type="C283"/>
<Atom charge="0.1346" name="HA" type="H140"/>
<Atom charge="-0.2469" name="CB" type="C136"/>
<Atom charge="0.0974" name="HB2" type="H140"/>
<Atom charge="0.0974" name="HB3" type="H140"/>
<Atom charge="0.3706" name="CG" type="C137"/>
<Atom charge="-0.0374" name="HG" type="H140"/>
<Atom charge="-0.4163" name="CD1" type="C135"/>
<Atom charge="0.1038" name="HD11" type="H140"/>
<Atom charge="0.1038" name="HD12" type="H140"/>
<Atom charge="0.1038" name="HD13" type="H140"/>
<Atom charge="-0.4163" name="CD2" type="C135"/>
<Atom charge="0.1038" name="HD21" type="H140"/>
<Atom charge="0.1038" name="HD22" type="H140"/>
<Atom charge="0.1038" name="HD23" type="H140"/>
<Atom charge="0.8326" name="C" type="C271"/>
<Atom charge="-0.8199" name="O" type="O272"/>
<Atom charge="-0.8199" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG"/>
<Bond atomName1="CG" atomName2="CD1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="CD1" atomName2="HD11"/>
<Bond atomName1="CD1" atomName2="HD12"/>
<Bond atomName1="CD1" atomName2="HD13"/>
<Bond atomName1="CD2" atomName2="HD21"/>
<Bond atomName1="CD2" atomName2="HD22"/>
<Bond atomName1="CD2" atomName2="HD23"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CLYS">
<Atom charge="-0.3481" name="N" type="N238"/>
<Atom charge="0.2764" name="H" type="H241"/>
<Atom charge="-0.2903" name="CA" type="C283"/>
<Atom charge="0.1438" name="HA" type="H140"/>
<Atom charge="-0.0538" name="CB" type="C136"/>
<Atom charge="0.0482" name="HB2" type="H140"/>
<Atom charge="0.0482" name="HB3" type="H140"/>
<Atom charge="0.0227" name="CG" type="C136"/>
<Atom charge="0.0134" name="HG2" type="H140"/>
<Atom charge="0.0134" name="HG3" type="H140"/>
<Atom charge="-0.0392" name="CD" type="C136"/>
<Atom charge="0.0611" name="HD2" type="H140"/>
<Atom charge="0.0611" name="HD3" type="H140"/>
<Atom charge="-0.0176" name="CE" type="C292"/>
<Atom charge="0.1121" name="HE2" type="H140"/>
<Atom charge="0.1121" name="HE3" type="H140"/>
<Atom charge="-0.3741" name="NZ" type="N287"/>
<Atom charge="0.3374" name="HZ1" type="H290"/>
<Atom charge="0.3374" name="HZ2" type="H290"/>
<Atom charge="0.3374" name="HZ3" type="H290"/>
<Atom charge="0.8488" name="C" type="C271"/>
<Atom charge="-0.8252" name="O" type="O272"/>
<Atom charge="-0.8252" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CD"/>
<Bond atomName1="CD" atomName2="HD2"/>
<Bond atomName1="CD" atomName2="HD3"/>
<Bond atomName1="CD" atomName2="CE"/>
<Bond atomName1="CE" atomName2="HE2"/>
<Bond atomName1="CE" atomName2="HE3"/>
<Bond atomName1="CE" atomName2="NZ"/>
<Bond atomName1="NZ" atomName2="HZ1"/>
<Bond atomName1="NZ" atomName2="HZ2"/>
<Bond atomName1="NZ" atomName2="HZ3"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CMET">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.2597" name="CA" type="C283"/>
<Atom charge="0.1277" name="HA" type="H140"/>
<Atom charge="-0.0236" name="CB" type="C136"/>
<Atom charge="0.048" name="HB2" type="H140"/>
<Atom charge="0.048" name="HB3" type="H140"/>
<Atom charge="0.0492" name="CG" type="C210"/>
<Atom charge="0.0317" name="HG2" type="H140"/>
<Atom charge="0.0317" name="HG3" type="H140"/>
<Atom charge="-0.2692" name="SD" type="S202"/>
<Atom charge="-0.0376" name="CE" type="C209"/>
<Atom charge="0.0625" name="HE1" type="H140"/>
<Atom charge="0.0625" name="HE2" type="H140"/>
<Atom charge="0.0625" name="HE3" type="H140"/>
<Atom charge="0.8013" name="C" type="C271"/>
<Atom charge="-0.8105" name="O" type="O272"/>
<Atom charge="-0.8105" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="SD"/>
<Bond atomName1="SD" atomName2="CE"/>
<Bond atomName1="CE" atomName2="HE1"/>
<Bond atomName1="CE" atomName2="HE2"/>
<Bond atomName1="CE" atomName2="HE3"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CPHE">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.1825" name="CA" type="C283"/>
<Atom charge="0.1098" name="HA" type="H140"/>
<Atom charge="-0.0959" name="CB" type="C149"/>
<Atom charge="0.0443" name="HB2" type="H140"/>
<Atom charge="0.0443" name="HB3" type="H140"/>
<Atom charge="0.0552" name="CG" type="C145"/>
<Atom charge="-0.13" name="CD1" type="C145"/>
<Atom charge="0.1408" name="HD1" type="H146"/>
<Atom charge="-0.1847" name="CE1" type="C145"/>
<Atom charge="0.1461" name="HE1" type="H146"/>
<Atom charge="-0.0944" name="CZ" type="C145"/>
<Atom charge="0.128" name="HZ" type="H146"/>
<Atom charge="-0.1847" name="CE2" type="C145"/>
<Atom charge="0.1461" name="HE2" type="H146"/>
<Atom charge="-0.13" name="CD2" type="C145"/>
<Atom charge="0.1408" name="HD2" type="H146"/>
<Atom charge="0.766" name="C" type="C271"/>
<Atom charge="-0.8026" name="O" type="O272"/>
<Atom charge="-0.8026" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="CD1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="CD1" atomName2="HD1"/>
<Bond atomName1="CD1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="CZ"/>
<Bond atomName1="CZ" atomName2="HZ"/>
<Bond atomName1="CZ" atomName2="CE2"/>
<Bond atomName1="CE2" atomName2="HE2"/>
<Bond atomName1="CE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CPRO">
<Atom charge="-0.2802" name="N" type="N239"/>
<Atom charge="0.0434" name="CD" type="C245"/>
<Atom charge="0.0331" name="HD2" type="H140"/>
<Atom charge="0.0331" name="HD3" type="H140"/>
<Atom charge="0.0466" name="CG" type="C136"/>
<Atom charge="0.0172" name="HG2" type="H140"/>
<Atom charge="0.0172" name="HG3" type="H140"/>
<Atom charge="-0.0543" name="CB" type="C136"/>
<Atom charge="0.0381" name="HB2" type="H140"/>
<Atom charge="0.0381" name="HB3" type="H140"/>
<Atom charge="-0.1336" name="CA" type="C285"/>
<Atom charge="0.0776" name="HA" type="H140"/>
<Atom charge="0.6631" name="C" type="C271"/>
<Atom charge="-0.7697" name="O" type="O272"/>
<Atom charge="-0.7697" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="CD"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CD" atomName2="HD2"/>
<Bond atomName1="CD" atomName2="HD3"/>
<Bond atomName1="CD" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CB"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CSER">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.2722" name="CA" type="C283"/>
<Atom charge="0.1304" name="HA" type="H140"/>
<Atom charge="0.1123" name="CB" type="C157"/>
<Atom charge="0.0813" name="HB2" type="H140"/>
<Atom charge="0.0813" name="HB3" type="H140"/>
<Atom charge="-0.6514" name="OG" type="O154"/>
<Atom charge="0.4474" name="HG" type="H155"/>
<Atom charge="0.8113" name="C" type="C271"/>
<Atom charge="-0.8132" name="O" type="O272"/>
<Atom charge="-0.8132" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="OG"/>
<Bond atomName1="OG" atomName2="HG"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CTHR">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.242" name="CA" type="C283"/>
<Atom charge="0.1207" name="HA" type="H140"/>
<Atom charge="0.3025" name="CB" type="C158"/>
<Atom charge="0.0078" name="HB" type="H140"/>
<Atom charge="-0.1853" name="CG2" type="C135"/>
<Atom charge="0.0586" name="HG21" type="H140"/>
<Atom charge="0.0586" name="HG22" type="H140"/>
<Atom charge="0.0586" name="HG23" type="H140"/>
<Atom charge="-0.6496" name="OG1" type="O154"/>
<Atom charge="0.4119" name="HG1" type="H155"/>
<Atom charge="0.781" name="C" type="C271"/>
<Atom charge="-0.8044" name="O" type="O272"/>
<Atom charge="-0.8044" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB"/>
<Bond atomName1="CB" atomName2="CG2"/>
<Bond atomName1="CB" atomName2="OG1"/>
<Bond atomName1="CG2" atomName2="HG21"/>
<Bond atomName1="CG2" atomName2="HG22"/>
<Bond atomName1="CG2" atomName2="HG23"/>
<Bond atomName1="OG1" atomName2="HG1"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CTRP">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.2084" name="CA" type="C283"/>
<Atom charge="0.1272" name="HA" type="H140"/>
<Atom charge="-0.0742" name="CB" type="C136"/>
<Atom charge="0.0497" name="HB2" type="H140"/>
<Atom charge="0.0497" name="HB3" type="H140"/>
<Atom charge="-0.0796" name="CG" type="C500"/>
<Atom charge="-0.1808" name="CD1" type="C514"/>
<Atom charge="0.2043" name="HD1" type="H146"/>
<Atom charge="-0.3316" name="NE1" type="N503"/>
<Atom charge="0.3413" name="HE1" type="H504"/>
<Atom charge="0.1222" name="CE2" type="C502"/>
<Atom charge="-0.2594" name="CZ2" type="C145"/>
<Atom charge="0.1567" name="HZ2" type="H146"/>
<Atom charge="-0.102" name="CH2" type="C145"/>
<Atom charge="0.1401" name="HH2" type="H146"/>
<Atom charge="-0.2287" name="CZ3" type="C145"/>
<Atom charge="0.1507" name="HZ3" type="H146"/>
<Atom charge="-0.1837" name="CE3" type="C145"/>
<Atom charge="0.1491" name="HE3" type="H146"/>
<Atom charge="0.1078" name="CD2" type="C501"/>
<Atom charge="0.7658" name="C" type="C271"/>
<Atom charge="-0.8011" name="O" type="O272"/>
<Atom charge="-0.8011" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="CD1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="CD1" atomName2="HD1"/>
<Bond atomName1="CD1" atomName2="NE1"/>
<Bond atomName1="NE1" atomName2="HE1"/>
<Bond atomName1="NE1" atomName2="CE2"/>
<Bond atomName1="CE2" atomName2="CZ2"/>
<Bond atomName1="CE2" atomName2="CD2"/>
<Bond atomName1="CZ2" atomName2="HZ2"/>
<Bond atomName1="CZ2" atomName2="CH2"/>
<Bond atomName1="CH2" atomName2="HH2"/>
<Bond atomName1="CH2" atomName2="CZ3"/>
<Bond atomName1="CZ3" atomName2="HZ3"/>
<Bond atomName1="CZ3" atomName2="CE3"/>
<Bond atomName1="CE3" atomName2="HE3"/>
<Bond atomName1="CE3" atomName2="CD2"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CTYR">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.2015" name="CA" type="C283"/>
<Atom charge="0.1092" name="HA" type="H140"/>
<Atom charge="-0.0752" name="CB" type="C149"/>
<Atom charge="0.049" name="HB2" type="H140"/>
<Atom charge="0.049" name="HB3" type="H140"/>
<Atom charge="0.0243" name="CG" type="C145"/>
<Atom charge="-0.1922" name="CD1" type="C145"/>
<Atom charge="0.178" name="HD1" type="H146"/>
<Atom charge="-0.2458" name="CE1" type="C145"/>
<Atom charge="0.1673" name="HE1" type="H146"/>
<Atom charge="0.3395" name="CZ" type="C166"/>
<Atom charge="-0.5643" name="OH" type="O167"/>
<Atom charge="0.4017" name="HH" type="H168"/>
<Atom charge="-0.2458" name="CE2" type="C145"/>
<Atom charge="0.1673" name="HE2" type="H146"/>
<Atom charge="-0.1922" name="CD2" type="C145"/>
<Atom charge="0.178" name="HD2" type="H146"/>
<Atom charge="0.7817" name="C" type="C271"/>
<Atom charge="-0.807" name="O" type="O272"/>
<Atom charge="-0.807" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="CD1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="CD1" atomName2="HD1"/>
<Bond atomName1="CD1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="CZ"/>
<Bond atomName1="CZ" atomName2="OH"/>
<Bond atomName1="CZ" atomName2="CE2"/>
<Bond atomName1="OH" atomName2="HH"/>
<Bond atomName1="CE2" atomName2="HE2"/>
<Bond atomName1="CE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="CVAL">
<Atom charge="-0.3821" name="N" type="N238"/>
<Atom charge="0.2681" name="H" type="H241"/>
<Atom charge="-0.3438" name="CA" type="C283"/>
<Atom charge="0.1438" name="HA" type="H140"/>
<Atom charge="0.194" name="CB" type="C137"/>
<Atom charge="0.0308" name="HB" type="H140"/>
<Atom charge="-0.3064" name="CG1" type="C135"/>
<Atom charge="0.0836" name="HG11" type="H140"/>
<Atom charge="0.0836" name="HG12" type="H140"/>
<Atom charge="0.0836" name="HG13" type="H140"/>
<Atom charge="-0.3064" name="CG2" type="C135"/>
<Atom charge="0.0836" name="HG21" type="H140"/>
<Atom charge="0.0836" name="HG22" type="H140"/>
<Atom charge="0.0836" name="HG23" type="H140"/>
<Atom charge="0.835" name="C" type="C271"/>
<Atom charge="-0.8173" name="O" type="O272"/>
<Atom charge="-0.8173" name="OXT" type="O272"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB"/>
<Bond atomName1="CB" atomName2="CG1"/>
<Bond atomName1="CB" atomName2="CG2"/>
<Bond atomName1="CG1" atomName2="HG11"/>
<Bond atomName1="CG1" atomName2="HG12"/>
<Bond atomName1="CG1" atomName2="HG13"/>
<Bond atomName1="CG2" atomName2="HG21"/>
<Bond atomName1="CG2" atomName2="HG22"/>
<Bond atomName1="CG2" atomName2="HG23"/>
<Bond atomName1="C" atomName2="O"/>
<Bond atomName1="C" atomName2="OXT"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="NHE">
<Atom charge="-0.463" name="N" type="N237"/>
<Atom charge="0.2315" name="HN1" type="H240"/>
<Atom charge="0.2315" name="HN2" type="H240"/>
<Bond atomName1="N" atomName2="HN1"/>
<Bond atomName1="N" atomName2="HN2"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="NME">
<Atom charge="-0.4412" name="N" type="N238"/>
<Atom charge="0.3083" name="H" type="H241"/>
<Atom charge="-0.0041" name="CH3" type="C242"/>
<Atom charge="0.0613" name="HH31" type="H140"/>
<Atom charge="0.0613" name="HH32" type="H140"/>
<Atom charge="0.0613" name="HH33" type="H140"/>
<Bond atomName1="N" atomName2="H"/>
<Bond atomName1="N" atomName2="CH3"/>
<Bond atomName1="CH3" atomName2="HH31"/>
<Bond atomName1="CH3" atomName2="HH32"/>
<Bond atomName1="CH3" atomName2="HH33"/>
<ExternalBond atomName="N"/>
</Residue>
<Residue name="ACE">
<Atom charge="0.1504" name="H1" type="H140"/>
<Atom charge="-0.5264" name="CH3" type="C135"/>
<Atom charge="0.1504" name="H2" type="H140"/>
<Atom charge="0.1504" name="H3" type="H140"/>
<Atom charge="0.7857" name="C" type="C235"/>
<Atom charge="-0.6082" name="O" type="O236"/>
<Bond atomName1="H1" atomName2="CH3"/>
<Bond atomName1="CH3" atomName2="H2"/>
<Bond atomName1="CH3" atomName2="H3"/>
<Bond atomName1="CH3" atomName2="C"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NALA">
<Atom charge="0.1414" name="N" type="N287"/>
<Atom charge="0.1997" name="H1" type="H290"/>
<Atom charge="0.1997" name="H2" type="H290"/>
<Atom charge="0.1997" name="H3" type="H290"/>
<Atom charge="0.0962" name="CA" type="C293"/>
<Atom charge="0.0889" name="HA" type="H140"/>
<Atom charge="-0.0597" name="CB" type="C135"/>
<Atom charge="0.03" name="HB1" type="H140"/>
<Atom charge="0.03" name="HB2" type="H140"/>
<Atom charge="0.03" name="HB3" type="H140"/>
<Atom charge="0.6163" name="C" type="C235"/>
<Atom charge="-0.5722" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB1"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NARG">
<Atom charge="0.1305" name="N" type="N287"/>
<Atom charge="0.2083" name="H1" type="H290"/>
<Atom charge="0.2083" name="H2" type="H290"/>
<Atom charge="0.2083" name="H3" type="H290"/>
<Atom charge="-0.0223" name="CA" type="C293"/>
<Atom charge="0.1242" name="HA" type="H140"/>
<Atom charge="0.0118" name="CB" type="C136"/>
<Atom charge="0.0226" name="HB2" type="H140"/>
<Atom charge="0.0226" name="HB3" type="H140"/>
<Atom charge="0.0236" name="CG" type="C308"/>
<Atom charge="0.0309" name="HG2" type="H140"/>
<Atom charge="0.0309" name="HG3" type="H140"/>
<Atom charge="0.0935" name="CD" type="C307"/>
<Atom charge="0.0527" name="HD2" type="H140"/>
<Atom charge="0.0527" name="HD3" type="H140"/>
<Atom charge="-0.565" name="NE" type="N303"/>
<Atom charge="0.3592" name="HE" type="H304"/>
<Atom charge="0.8281" name="CZ" type="C302"/>
<Atom charge="-0.8693" name="NH1" type="N300"/>
<Atom charge="0.4494" name="HH11" type="H301"/>
<Atom charge="0.4494" name="HH12" type="H301"/>
<Atom charge="-0.8693" name="NH2" type="N300"/>
<Atom charge="0.4494" name="HH21" type="H301"/>
<Atom charge="0.4494" name="HH22" type="H301"/>
<Atom charge="0.7214" name="C" type="C235"/>
<Atom charge="-0.6013" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CD"/>
<Bond atomName1="CD" atomName2="HD2"/>
<Bond atomName1="CD" atomName2="HD3"/>
<Bond atomName1="CD" atomName2="NE"/>
<Bond atomName1="NE" atomName2="HE"/>
<Bond atomName1="NE" atomName2="CZ"/>
<Bond atomName1="CZ" atomName2="NH1"/>
<Bond atomName1="CZ" atomName2="NH2"/>
<Bond atomName1="NH1" atomName2="HH11"/>
<Bond atomName1="NH1" atomName2="HH12"/>
<Bond atomName1="NH2" atomName2="HH21"/>
<Bond atomName1="NH2" atomName2="HH22"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NASN">
<Atom charge="0.1801" name="N" type="N287"/>
<Atom charge="0.1921" name="H1" type="H290"/>
<Atom charge="0.1921" name="H2" type="H290"/>
<Atom charge="0.1921" name="H3" type="H290"/>
<Atom charge="0.0368" name="CA" type="C293"/>
<Atom charge="0.1231" name="HA" type="H140"/>
<Atom charge="-0.0283" name="CB" type="C136"/>
<Atom charge="0.0515" name="HB2" type="H140"/>
<Atom charge="0.0515" name="HB3" type="H140"/>
<Atom charge="0.5833" name="CG" type="C235"/>
<Atom charge="-0.5744" name="OD1" type="O236"/>
<Atom charge="-0.8634" name="ND2" type="N237"/>
<Atom charge="0.4097" name="HD21" type="H240"/>
<Atom charge="0.4097" name="HD22" type="H240"/>
<Atom charge="0.6163" name="C" type="C235"/>
<Atom charge="-0.5722" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="OD1"/>
<Bond atomName1="CG" atomName2="ND2"/>
<Bond atomName1="ND2" atomName2="HD21"/>
<Bond atomName1="ND2" atomName2="HD22"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NASP">
<Atom charge="0.0782" name="N" type="N287"/>
<Atom charge="0.22" name="H1" type="H290"/>
<Atom charge="0.22" name="H2" type="H290"/>
<Atom charge="0.22" name="H3" type="H290"/>
<Atom charge="0.0292" name="CA" type="C293"/>
<Atom charge="0.1141" name="HA" type="H140"/>
<Atom charge="-0.0235" name="CB" type="C274"/>
<Atom charge="-0.0169" name="HB2" type="H140"/>
<Atom charge="-0.0169" name="HB3" type="H140"/>
<Atom charge="0.8194" name="CG" type="C271"/>
<Atom charge="-0.8084" name="OD1" type="O272"/>
<Atom charge="-0.8084" name="OD2" type="O272"/>
<Atom charge="0.5621" name="C" type="C235"/>
<Atom charge="-0.5889" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="OD1"/>
<Bond atomName1="CG" atomName2="OD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NCYS">
<Atom charge="0.1325" name="N" type="N287"/>
<Atom charge="0.2023" name="H1" type="H290"/>
<Atom charge="0.2023" name="H2" type="H290"/>
<Atom charge="0.2023" name="H3" type="H290"/>
<Atom charge="0.0927" name="CA" type="C293"/>
<Atom charge="0.1411" name="HA" type="H140"/>
<Atom charge="-0.1195" name="CB" type="C206"/>
<Atom charge="0.1188" name="HB2" type="H140"/>
<Atom charge="0.1188" name="HB3" type="H140"/>
<Atom charge="-0.3298" name="SG" type="S200"/>
<Atom charge="0.1975" name="HG" type="H204"/>
<Atom charge="0.6123" name="C" type="C235"/>
<Atom charge="-0.5713" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="SG"/>
<Bond atomName1="SG" atomName2="HG"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NCYX">
<Atom charge="0.2069" name="N" type="N287"/>
<Atom charge="0.1815" name="H1" type="H290"/>
<Atom charge="0.1815" name="H2" type="H290"/>
<Atom charge="0.1815" name="H3" type="H290"/>
<Atom charge="0.1055" name="CA" type="C293"/>
<Atom charge="0.0922" name="HA" type="H140"/>
<Atom charge="-0.0277" name="CB" type="C214"/>
<Atom charge="0.068" name="HB2" type="H140"/>
<Atom charge="0.068" name="HB3" type="H140"/>
<Atom charge="-0.0984" name="SG" type="S203"/>
<Atom charge="0.6123" name="C" type="C235"/>
<Atom charge="-0.5713" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="SG"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="SG"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NGLN">
<Atom charge="0.1493" name="N" type="N287"/>
<Atom charge="0.1996" name="H1" type="H290"/>
<Atom charge="0.1996" name="H2" type="H290"/>
<Atom charge="0.1996" name="H3" type="H290"/>
<Atom charge="0.0536" name="CA" type="C293"/>
<Atom charge="0.1015" name="HA" type="H140"/>
<Atom charge="0.0651" name="CB" type="C136"/>
<Atom charge="0.005" name="HB2" type="H140"/>
<Atom charge="0.005" name="HB3" type="H140"/>
<Atom charge="-0.0903" name="CG" type="C136"/>
<Atom charge="0.0331" name="HG2" type="H140"/>
<Atom charge="0.0331" name="HG3" type="H140"/>
<Atom charge="0.7354" name="CD" type="C235"/>
<Atom charge="-0.6133" name="OE1" type="O236"/>
<Atom charge="-1.0031" name="NE2" type="N237"/>
<Atom charge="0.4429" name="HE21" type="H240"/>
<Atom charge="0.4429" name="HE22" type="H240"/>
<Atom charge="0.6123" name="C" type="C235"/>
<Atom charge="-0.5713" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CD"/>
<Bond atomName1="CD" atomName2="OE1"/>
<Bond atomName1="CD" atomName2="NE2"/>
<Bond atomName1="NE2" atomName2="HE21"/>
<Bond atomName1="NE2" atomName2="HE22"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NGLU">
<Atom charge="0.0017" name="N" type="N287"/>
<Atom charge="0.2391" name="H1" type="H290"/>
<Atom charge="0.2391" name="H2" type="H290"/>
<Atom charge="0.2391" name="H3" type="H290"/>
<Atom charge="0.0588" name="CA" type="C293"/>
<Atom charge="0.1202" name="HA" type="H140"/>
<Atom charge="0.0909" name="CB" type="C136"/>
<Atom charge="-0.0232" name="HB2" type="H140"/>
<Atom charge="-0.0232" name="HB3" type="H140"/>
<Atom charge="-0.0236" name="CG" type="C274"/>
<Atom charge="-0.0315" name="HG2" type="H140"/>
<Atom charge="-0.0315" name="HG3" type="H140"/>
<Atom charge="0.8087" name="CD" type="C271"/>
<Atom charge="-0.8189" name="OE1" type="O272"/>
<Atom charge="-0.8189" name="OE2" type="O272"/>
<Atom charge="0.5621" name="C" type="C235"/>
<Atom charge="-0.5889" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CD"/>
<Bond atomName1="CD" atomName2="OE1"/>
<Bond atomName1="CD" atomName2="OE2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NGLY">
<Atom charge="0.2943" name="N" type="N287"/>
<Atom charge="0.1642" name="H1" type="H290"/>
<Atom charge="0.1642" name="H2" type="H290"/>
<Atom charge="0.1642" name="H3" type="H290"/>
<Atom charge="-0.01" name="CA" type="C292"/>
<Atom charge="0.0895" name="HA2" type="H140"/>
<Atom charge="0.0895" name="HA3" type="H140"/>
<Atom charge="0.6163" name="C" type="C235"/>
<Atom charge="-0.5722" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA2"/>
<Bond atomName1="CA" atomName2="HA3"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NHID">
<Atom charge="0.1542" name="N" type="N287"/>
<Atom charge="0.1963" name="H1" type="H290"/>
<Atom charge="0.1963" name="H2" type="H290"/>
<Atom charge="0.1963" name="H3" type="H290"/>
<Atom charge="0.0964" name="CA" type="C293"/>
<Atom charge="0.0958" name="HA" type="H140"/>
<Atom charge="0.0259" name="CB" type="C505"/>
<Atom charge="0.0209" name="HB2" type="H140"/>
<Atom charge="0.0209" name="HB3" type="H140"/>
<Atom charge="-0.0399" name="CG" type="C508"/>
<Atom charge="-0.3819" name="ND1" type="N503"/>
<Atom charge="0.3632" name="HD1" type="H504"/>
<Atom charge="0.2127" name="CE1" type="C506"/>
<Atom charge="0.1385" name="HE1" type="H146"/>
<Atom charge="-0.5711" name="NE2" type="N511"/>
<Atom charge="0.1046" name="CD2" type="C507"/>
<Atom charge="0.1299" name="HD2" type="H146"/>
<Atom charge="0.6123" name="C" type="C235"/>
<Atom charge="-0.5713" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="ND1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="ND1" atomName2="HD1"/>
<Bond atomName1="ND1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="NE2"/>
<Bond atomName1="NE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NHIE">
<Atom charge="0.1472" name="N" type="N287"/>
<Atom charge="0.2016" name="H1" type="H290"/>
<Atom charge="0.2016" name="H2" type="H290"/>
<Atom charge="0.2016" name="H3" type="H290"/>
<Atom charge="0.0236" name="CA" type="C293"/>
<Atom charge="0.138" name="HA" type="H140"/>
<Atom charge="0.0489" name="CB" type="C505"/>
<Atom charge="0.0223" name="HB2" type="H140"/>
<Atom charge="0.0223" name="HB3" type="H140"/>
<Atom charge="0.174" name="CG" type="C507"/>
<Atom charge="-0.5579" name="ND1" type="N511"/>
<Atom charge="0.1804" name="CE1" type="C506"/>
<Atom charge="0.1397" name="HE1" type="H146"/>
<Atom charge="-0.2781" name="NE2" type="N503"/>
<Atom charge="0.3324" name="HE2" type="H504"/>
<Atom charge="-0.2349" name="CD2" type="C508"/>
<Atom charge="0.1963" name="HD2" type="H146"/>
<Atom charge="0.6123" name="C" type="C235"/>
<Atom charge="-0.5713" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="ND1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="ND1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="NE2"/>
<Bond atomName1="NE2" atomName2="HE2"/>
<Bond atomName1="NE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NHIP">
<Atom charge="0.256" name="N" type="N287"/>
<Atom charge="0.1704" name="H1" type="H290"/>
<Atom charge="0.1704" name="H2" type="H290"/>
<Atom charge="0.1704" name="H3" type="H290"/>
<Atom charge="0.0581" name="CA" type="C293"/>
<Atom charge="0.1047" name="HA" type="H140"/>
<Atom charge="0.0484" name="CB" type="C505"/>
<Atom charge="0.0531" name="HB2" type="H140"/>
<Atom charge="0.0531" name="HB3" type="H140"/>
<Atom charge="-0.0236" name="CG" type="C510"/>
<Atom charge="-0.151" name="ND1" type="N512"/>
<Atom charge="0.3821" name="HD1" type="H513"/>
<Atom charge="-0.0011" name="CE1" type="C509"/>
<Atom charge="0.2645" name="HE1" type="H146"/>
<Atom charge="-0.1739" name="NE2" type="N512"/>
<Atom charge="0.3921" name="HE2" type="H513"/>
<Atom charge="-0.1433" name="CD2" type="C510"/>
<Atom charge="0.2495" name="HD2" type="H146"/>
<Atom charge="0.7214" name="C" type="C235"/>
<Atom charge="-0.6013" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="ND1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="ND1" atomName2="HD1"/>
<Bond atomName1="ND1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="NE2"/>
<Bond atomName1="NE2" atomName2="HE2"/>
<Bond atomName1="NE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NILE">
<Atom charge="0.0311" name="N" type="N287"/>
<Atom charge="0.2329" name="H1" type="H290"/>
<Atom charge="0.2329" name="H2" type="H290"/>
<Atom charge="0.2329" name="H3" type="H290"/>
<Atom charge="0.0257" name="CA" type="C293"/>
<Atom charge="0.1031" name="HA" type="H140"/>
<Atom charge="0.1885" name="CB" type="C137"/>
<Atom charge="0.0213" name="HB" type="H140"/>
<Atom charge="-0.372" name="CG2" type="C135"/>
<Atom charge="0.0947" name="HG21" type="H140"/>
<Atom charge="0.0947" name="HG22" type="H140"/>
<Atom charge="0.0947" name="HG23" type="H140"/>
<Atom charge="-0.0387" name="CG1" type="C136"/>
<Atom charge="0.0201" name="HG12" type="H140"/>
<Atom charge="0.0201" name="HG13" type="H140"/>
<Atom charge="-0.0908" name="CD1" type="C135"/>
<Atom charge="0.0226" name="HD11" type="H140"/>
<Atom charge="0.0226" name="HD12" type="H140"/>
<Atom charge="0.0226" name="HD13" type="H140"/>
<Atom charge="0.6123" name="C" type="C235"/>
<Atom charge="-0.5713" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB"/>
<Bond atomName1="CB" atomName2="CG2"/>
<Bond atomName1="CB" atomName2="CG1"/>
<Bond atomName1="CG2" atomName2="HG21"/>
<Bond atomName1="CG2" atomName2="HG22"/>
<Bond atomName1="CG2" atomName2="HG23"/>
<Bond atomName1="CG1" atomName2="HG12"/>
<Bond atomName1="CG1" atomName2="HG13"/>
<Bond atomName1="CG1" atomName2="CD1"/>
<Bond atomName1="CD1" atomName2="HD11"/>
<Bond atomName1="CD1" atomName2="HD12"/>
<Bond atomName1="CD1" atomName2="HD13"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NLEU">
<Atom charge="0.101" name="N" type="N287"/>
<Atom charge="0.2148" name="H1" type="H290"/>
<Atom charge="0.2148" name="H2" type="H290"/>
<Atom charge="0.2148" name="H3" type="H290"/>
<Atom charge="0.0104" name="CA" type="C293"/>
<Atom charge="0.1053" name="HA" type="H140"/>
<Atom charge="-0.0244" name="CB" type="C136"/>
<Atom charge="0.0256" name="HB2" type="H140"/>
<Atom charge="0.0256" name="HB3" type="H140"/>
<Atom charge="0.3421" name="CG" type="C137"/>
<Atom charge="-0.038" name="HG" type="H140"/>
<Atom charge="-0.4106" name="CD1" type="C135"/>
<Atom charge="0.098" name="HD11" type="H140"/>
<Atom charge="0.098" name="HD12" type="H140"/>
<Atom charge="0.098" name="HD13" type="H140"/>
<Atom charge="-0.4104" name="CD2" type="C135"/>
<Atom charge="0.098" name="HD21" type="H140"/>
<Atom charge="0.098" name="HD22" type="H140"/>
<Atom charge="0.098" name="HD23" type="H140"/>
<Atom charge="0.6123" name="C" type="C235"/>
<Atom charge="-0.5713" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG"/>
<Bond atomName1="CG" atomName2="CD1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="CD1" atomName2="HD11"/>
<Bond atomName1="CD1" atomName2="HD12"/>
<Bond atomName1="CD1" atomName2="HD13"/>
<Bond atomName1="CD2" atomName2="HD21"/>
<Bond atomName1="CD2" atomName2="HD22"/>
<Bond atomName1="CD2" atomName2="HD23"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NLYS">
<Atom charge="0.0966" name="N" type="N287"/>
<Atom charge="0.2165" name="H1" type="H290"/>
<Atom charge="0.2165" name="H2" type="H290"/>
<Atom charge="0.2165" name="H3" type="H290"/>
<Atom charge="-0.0015" name="CA" type="C293"/>
<Atom charge="0.118" name="HA" type="H140"/>
<Atom charge="0.0212" name="CB" type="C136"/>
<Atom charge="0.0283" name="HB2" type="H140"/>
<Atom charge="0.0283" name="HB3" type="H140"/>
<Atom charge="-0.0048" name="CG" type="C136"/>
<Atom charge="0.0121" name="HG2" type="H140"/>
<Atom charge="0.0121" name="HG3" type="H140"/>
<Atom charge="-0.0608" name="CD" type="C136"/>
<Atom charge="0.0633" name="HD2" type="H140"/>
<Atom charge="0.0633" name="HD3" type="H140"/>
<Atom charge="-0.0181" name="CE" type="C296"/>
<Atom charge="0.1171" name="HE2" type="H140"/>
<Atom charge="0.1171" name="HE3" type="H140"/>
<Atom charge="-0.3764" name="NZ" type="N287"/>
<Atom charge="0.3382" name="HZ1" type="H290"/>
<Atom charge="0.3382" name="HZ2" type="H290"/>
<Atom charge="0.3382" name="HZ3" type="H290"/>
<Atom charge="0.7214" name="C" type="C235"/>
<Atom charge="-0.6013" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CD"/>
<Bond atomName1="CD" atomName2="HD2"/>
<Bond atomName1="CD" atomName2="HD3"/>
<Bond atomName1="CD" atomName2="CE"/>
<Bond atomName1="CE" atomName2="HE2"/>
<Bond atomName1="CE" atomName2="HE3"/>
<Bond atomName1="CE" atomName2="NZ"/>
<Bond atomName1="NZ" atomName2="HZ1"/>
<Bond atomName1="NZ" atomName2="HZ2"/>
<Bond atomName1="NZ" atomName2="HZ3"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NMET">
<Atom charge="0.1592" name="N" type="N287"/>
<Atom charge="0.1984" name="H1" type="H290"/>
<Atom charge="0.1984" name="H2" type="H290"/>
<Atom charge="0.1984" name="H3" type="H290"/>
<Atom charge="0.0221" name="CA" type="C293"/>
<Atom charge="0.1116" name="HA" type="H140"/>
<Atom charge="0.0865" name="CB" type="C136"/>
<Atom charge="0.0125" name="HB2" type="H140"/>
<Atom charge="0.0125" name="HB3" type="H140"/>
<Atom charge="0.0334" name="CG" type="C210"/>
<Atom charge="0.0292" name="HG2" type="H140"/>
<Atom charge="0.0292" name="HG3" type="H140"/>
<Atom charge="-0.2774" name="SD" type="S202"/>
<Atom charge="-0.0341" name="CE" type="C209"/>
<Atom charge="0.0597" name="HE1" type="H140"/>
<Atom charge="0.0597" name="HE2" type="H140"/>
<Atom charge="0.0597" name="HE3" type="H140"/>
<Atom charge="0.6123" name="C" type="C235"/>
<Atom charge="-0.5713" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="SD"/>
<Bond atomName1="SD" atomName2="CE"/>
<Bond atomName1="CE" atomName2="HE1"/>
<Bond atomName1="CE" atomName2="HE2"/>
<Bond atomName1="CE" atomName2="HE3"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NPHE">
<Atom charge="0.1737" name="N" type="N287"/>
<Atom charge="0.1921" name="H1" type="H290"/>
<Atom charge="0.1921" name="H2" type="H290"/>
<Atom charge="0.1921" name="H3" type="H290"/>
<Atom charge="0.0733" name="CA" type="C293"/>
<Atom charge="0.1041" name="HA" type="H140"/>
<Atom charge="0.033" name="CB" type="C149"/>
<Atom charge="0.0104" name="HB2" type="H140"/>
<Atom charge="0.0104" name="HB3" type="H140"/>
<Atom charge="0.0031" name="CG" type="C145"/>
<Atom charge="-0.1392" name="CD1" type="C145"/>
<Atom charge="0.1374" name="HD1" type="H146"/>
<Atom charge="-0.1602" name="CE1" type="C145"/>
<Atom charge="0.1433" name="HE1" type="H146"/>
<Atom charge="-0.1208" name="CZ" type="C145"/>
<Atom charge="0.1329" name="HZ" type="H146"/>
<Atom charge="-0.1603" name="CE2" type="C145"/>
<Atom charge="0.1433" name="HE2" type="H146"/>
<Atom charge="-0.1391" name="CD2" type="C145"/>
<Atom charge="0.1374" name="HD2" type="H146"/>
<Atom charge="0.6123" name="C" type="C235"/>
<Atom charge="-0.5713" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="CD1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="CD1" atomName2="HD1"/>
<Bond atomName1="CD1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="CZ"/>
<Bond atomName1="CZ" atomName2="HZ"/>
<Bond atomName1="CZ" atomName2="CE2"/>
<Bond atomName1="CE2" atomName2="HE2"/>
<Bond atomName1="CE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NPRO">
<Atom charge="-0.202" name="N" type="N309"/>
<Atom charge="0.312" name="H2" type="H310"/>
<Atom charge="0.312" name="H3" type="H310"/>
<Atom charge="-0.012" name="CD" type="C296"/>
<Atom charge="0.1" name="HD2" type="H140"/>
<Atom charge="0.1" name="HD3" type="H140"/>
<Atom charge="-0.121" name="CG" type="C136"/>
<Atom charge="0.1" name="HG2" type="H140"/>
<Atom charge="0.1" name="HG3" type="H140"/>
<Atom charge="-0.115" name="CB" type="C136"/>
<Atom charge="0.1" name="HB2" type="H140"/>
<Atom charge="0.1" name="HB3" type="H140"/>
<Atom charge="0.1" name="CA" type="C295"/>
<Atom charge="0.1" name="HA" type="H140"/>
<Atom charge="0.526" name="C" type="C235"/>
<Atom charge="-0.5" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CD"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CD" atomName2="HD2"/>
<Bond atomName1="CD" atomName2="HD3"/>
<Bond atomName1="CD" atomName2="CG"/>
<Bond atomName1="CG" atomName2="HG2"/>
<Bond atomName1="CG" atomName2="HG3"/>
<Bond atomName1="CG" atomName2="CB"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NSER">
<Atom charge="0.1849" name="N" type="N287"/>
<Atom charge="0.1898" name="H1" type="H290"/>
<Atom charge="0.1898" name="H2" type="H290"/>
<Atom charge="0.1898" name="H3" type="H290"/>
<Atom charge="0.0567" name="CA" type="C293"/>
<Atom charge="0.0782" name="HA" type="H140"/>
<Atom charge="0.2596" name="CB" type="C157"/>
<Atom charge="0.0273" name="HB2" type="H140"/>
<Atom charge="0.0273" name="HB3" type="H140"/>
<Atom charge="-0.6714" name="OG" type="O154"/>
<Atom charge="0.4239" name="HG" type="H155"/>
<Atom charge="0.6163" name="C" type="C235"/>
<Atom charge="-0.5722" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="OG"/>
<Bond atomName1="OG" atomName2="HG"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NTHR">
<Atom charge="0.1812" name="N" type="N287"/>
<Atom charge="0.1934" name="H1" type="H290"/>
<Atom charge="0.1934" name="H2" type="H290"/>
<Atom charge="0.1934" name="H3" type="H290"/>
<Atom charge="0.0034" name="CA" type="C293"/>
<Atom charge="0.1087" name="HA" type="H140"/>
<Atom charge="0.4514" name="CB" type="C158"/>
<Atom charge="-0.0323" name="HB" type="H140"/>
<Atom charge="-0.2554" name="CG2" type="C135"/>
<Atom charge="0.0627" name="HG21" type="H140"/>
<Atom charge="0.0627" name="HG22" type="H140"/>
<Atom charge="0.0627" name="HG23" type="H140"/>
<Atom charge="-0.6764" name="OG1" type="O154"/>
<Atom charge="0.407" name="HG1" type="H155"/>
<Atom charge="0.6163" name="C" type="C235"/>
<Atom charge="-0.5722" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB"/>
<Bond atomName1="CB" atomName2="CG2"/>
<Bond atomName1="CB" atomName2="OG1"/>
<Bond atomName1="CG2" atomName2="HG21"/>
<Bond atomName1="CG2" atomName2="HG22"/>
<Bond atomName1="CG2" atomName2="HG23"/>
<Bond atomName1="OG1" atomName2="HG1"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NTRP">
<Atom charge="0.1913" name="N" type="N287"/>
<Atom charge="0.1888" name="H1" type="H290"/>
<Atom charge="0.1888" name="H2" type="H290"/>
<Atom charge="0.1888" name="H3" type="H290"/>
<Atom charge="0.0421" name="CA" type="C293"/>
<Atom charge="0.1162" name="HA" type="H140"/>
<Atom charge="0.0543" name="CB" type="C136"/>
<Atom charge="0.0222" name="HB2" type="H140"/>
<Atom charge="0.0222" name="HB3" type="H140"/>
<Atom charge="-0.1654" name="CG" type="C500"/>
<Atom charge="-0.1788" name="CD1" type="C514"/>
<Atom charge="0.2195" name="HD1" type="H146"/>
<Atom charge="-0.3444" name="NE1" type="N503"/>
<Atom charge="0.3412" name="HE1" type="H504"/>
<Atom charge="0.1575" name="CE2" type="C502"/>
<Atom charge="-0.271" name="CZ2" type="C145"/>
<Atom charge="0.1589" name="HZ2" type="H146"/>
<Atom charge="-0.108" name="CH2" type="C145"/>
<Atom charge="0.1411" name="HH2" type="H146"/>
<Atom charge="-0.2034" name="CZ3" type="C145"/>
<Atom charge="0.1458" name="HZ3" type="H146"/>
<Atom charge="-0.2265" name="CE3" type="C145"/>
<Atom charge="0.1646" name="HE3" type="H146"/>
<Atom charge="0.1132" name="CD2" type="C501"/>
<Atom charge="0.6123" name="C" type="C235"/>
<Atom charge="-0.5713" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="CD1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="CD1" atomName2="HD1"/>
<Bond atomName1="CD1" atomName2="NE1"/>
<Bond atomName1="NE1" atomName2="HE1"/>
<Bond atomName1="NE1" atomName2="CE2"/>
<Bond atomName1="CE2" atomName2="CZ2"/>
<Bond atomName1="CE2" atomName2="CD2"/>
<Bond atomName1="CZ2" atomName2="HZ2"/>
<Bond atomName1="CZ2" atomName2="CH2"/>
<Bond atomName1="CH2" atomName2="HH2"/>
<Bond atomName1="CH2" atomName2="CZ3"/>
<Bond atomName1="CZ3" atomName2="HZ3"/>
<Bond atomName1="CZ3" atomName2="CE3"/>
<Bond atomName1="CE3" atomName2="HE3"/>
<Bond atomName1="CE3" atomName2="CD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NTYR">
<Atom charge="0.194" name="N" type="N287"/>
<Atom charge="0.1873" name="H1" type="H290"/>
<Atom charge="0.1873" name="H2" type="H290"/>
<Atom charge="0.1873" name="H3" type="H290"/>
<Atom charge="0.057" name="CA" type="C293"/>
<Atom charge="0.0983" name="HA" type="H140"/>
<Atom charge="0.0659" name="CB" type="C149"/>
<Atom charge="0.0102" name="HB2" type="H140"/>
<Atom charge="0.0102" name="HB3" type="H140"/>
<Atom charge="-0.0205" name="CG" type="C145"/>
<Atom charge="-0.2002" name="CD1" type="C145"/>
<Atom charge="0.172" name="HD1" type="H146"/>
<Atom charge="-0.2239" name="CE1" type="C145"/>
<Atom charge="0.165" name="HE1" type="H146"/>
<Atom charge="0.3139" name="CZ" type="C166"/>
<Atom charge="-0.5578" name="OH" type="O167"/>
<Atom charge="0.4001" name="HH" type="H168"/>
<Atom charge="-0.2239" name="CE2" type="C145"/>
<Atom charge="0.165" name="HE2" type="H146"/>
<Atom charge="-0.2002" name="CD2" type="C145"/>
<Atom charge="0.172" name="HD2" type="H146"/>
<Atom charge="0.6123" name="C" type="C235"/>
<Atom charge="-0.5713" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB2"/>
<Bond atomName1="CB" atomName2="HB3"/>
<Bond atomName1="CB" atomName2="CG"/>
<Bond atomName1="CG" atomName2="CD1"/>
<Bond atomName1="CG" atomName2="CD2"/>
<Bond atomName1="CD1" atomName2="HD1"/>
<Bond atomName1="CD1" atomName2="CE1"/>
<Bond atomName1="CE1" atomName2="HE1"/>
<Bond atomName1="CE1" atomName2="CZ"/>
<Bond atomName1="CZ" atomName2="OH"/>
<Bond atomName1="CZ" atomName2="CE2"/>
<Bond atomName1="OH" atomName2="HH"/>
<Bond atomName1="CE2" atomName2="HE2"/>
<Bond atomName1="CE2" atomName2="CD2"/>
<Bond atomName1="CD2" atomName2="HD2"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
<Residue name="NVAL">
<Atom charge="0.0577" name="N" type="N287"/>
<Atom charge="0.2272" name="H1" type="H290"/>
<Atom charge="0.2272" name="H2" type="H290"/>
<Atom charge="0.2272" name="H3" type="H290"/>
<Atom charge="-0.0054" name="CA" type="C293"/>
<Atom charge="0.1093" name="HA" type="H140"/>
<Atom charge="0.3196" name="CB" type="C137"/>
<Atom charge="-0.0221" name="HB" type="H140"/>
<Atom charge="-0.3129" name="CG1" type="C135"/>
<Atom charge="0.0735" name="HG11" type="H140"/>
<Atom charge="0.0735" name="HG12" type="H140"/>
<Atom charge="0.0735" name="HG13" type="H140"/>
<Atom charge="-0.3129" name="CG2" type="C135"/>
<Atom charge="0.0735" name="HG21" type="H140"/>
<Atom charge="0.0735" name="HG22" type="H140"/>
<Atom charge="0.0735" name="HG23" type="H140"/>
<Atom charge="0.6163" name="C" type="C235"/>
<Atom charge="-0.5722" name="O" type="O236"/>
<Bond atomName1="N" atomName2="H1"/>
<Bond atomName1="N" atomName2="H2"/>
<Bond atomName1="N" atomName2="H3"/>
<Bond atomName1="N" atomName2="CA"/>
<Bond atomName1="CA" atomName2="HA"/>
<Bond atomName1="CA" atomName2="CB"/>
<Bond atomName1="CA" atomName2="C"/>
<Bond atomName1="CB" atomName2="HB"/>
<Bond atomName1="CB" atomName2="CG1"/>
<Bond atomName1="CB" atomName2="CG2"/>
<Bond atomName1="CG1" atomName2="HG11"/>
<Bond atomName1="CG1" atomName2="HG12"/>
<Bond atomName1="CG1" atomName2="HG13"/>
<Bond atomName1="CG2" atomName2="HG21"/>
<Bond atomName1="CG2" atomName2="HG22"/>
<Bond atomName1="CG2" atomName2="HG23"/>
<Bond atomName1="C" atomName2="O"/>
<ExternalBond atomName="C"/>
</Residue>
</Residues>
<HarmonicBondForce>
<Bond class1="HC" class2="CT" length="0.1092" k="273432.768"/>
<Bond class1="CT" class2="C" length="0.1523" k="166657.088"/>
<Bond class1="C" class2="N" length="0.1353" k="312461.12"/>
<Bond class1="C" class2="O" length="0.122" k="581350.064"/>
<Bond class1="N" class2="CT" length="0.1449" k="211040.96"/>
<Bond class1="N" class2="H" length="0.1011" k="387907.008"/>
<Bond class1="CT" class2="CT" length="0.1537" k="159109.152"/>
<Bond class1="CT" class2="N2" length="0.1468" k="194689.888"/>
<Bond class1="N2" class2="CA" length="0.1332" k="365104.208"/>
<Bond class1="N2" class2="H3" length="0.1006" k="404802"/>
<Bond class1="C" class2="OH" length="0.1357" k="228329.248"/>
<Bond class1="OH" class2="HO" length="0.096" k="456943.008"/>
<Bond class1="CT" class2="SH" length="0.1826" k="117963.696"/>
<Bond class1="SH" class2="HS" length="0.1345" k="244010.88"/>
<Bond class1="C" class2="O2" length="0.1253" k="457654.288"/>
<Bond class1="CT" class2="CX" length="0.1492" k="204873.744"/>
<Bond class1="CX" class2="NA" length="0.1383" k="245224.24"/>
<Bond class1="CX" class2="CX" length="0.136" k="360024.832"/>
<Bond class1="NA" class2="CR" length="0.1341" k="331213.808"/>
<Bond class1="NA" class2="H" length="0.1006" k="405806.16"/>
<Bond class1="CR" class2="HA" length="0.1078" k="312661.952"/>
<Bond class1="CX" class2="HA" length="0.1083" k="308327.328"/>
<Bond class1="CT" class2="CV" length="0.1494" k="210028.432"/>
<Bond class1="CV" class2="NB" length="0.1379" k="233659.664"/>
<Bond class1="CV" class2="CW" length="0.1364" k="349665.248"/>
<Bond class1="NB" class2="CR" length="0.131" k="371087.328"/>
<Bond class1="NA" class2="CW" length="0.1375" k="273800.96"/>
<Bond class1="CW" class2="HA" length="0.1078" k="311189.184"/>
<Bond class1="CT" class2="N3" length="0.1517" k="134791.744"/>
<Bond class1="N3" class2="H3" length="0.1022" k="358259.184"/>
<Bond class1="CT" class2="S" length="0.1817" k="128122.448"/>
<Bond class1="CT" class2="CA" length="0.1505" k="189635.616"/>
<Bond class1="CA" class2="CA" length="0.1391" k="303256.32"/>
<Bond class1="CA" class2="HA" length="0.1085" k="291942.784"/>
<Bond class1="CT" class2="OH" length="0.1418" k="208572.4"/>
<Bond class1="CT" class2="CS" length="0.1495" k="204522.288"/>
<Bond class1="CS" class2="CW" length="0.1364" k="358133.664"/>
<Bond class1="CS" class2="CB" length="0.1439" k="223341.92"/>
<Bond class1="NA" class2="CN" length="0.1374" k="270855.424"/>
<Bond class1="CN" class2="CA" length="0.1396" k="292854.896"/>
<Bond class1="CN" class2="CB" length="0.141" k="254512.72"/>
<Bond class1="CA" class2="CB" length="0.1401" k="282947.184"/>
<Bond class1="CA" class2="OH" length="0.136" k="277432.672"/>
<Bond class1="S" class2="S" length="0.207" k="122415.472"/>
<Bond class1="OT" class2="HT" length="0.09572" k="376560"/>
<Bond class1="HT" class2="HT" length="0.15139" k="0"/>
<!-- STILL Cv-ha this one is qubemaker USES OPLS -->
<Bond class1="CV" class2="HA" length="0.108" k="307105.6"/>
<!-- CT-CW this is opls -->
<Bond class1="CT" class2="CW" length=".1504" k="265265.6"/>
</HarmonicBondForce>
<HarmonicAngleForce>
<Angle class1="HC" class2="CT" class3="C" angle="1.914434203220060" k="435.72176"/>
<Angle class1="HC" class2="CT" class3="HC" angle="1.894973782060323" k="266.85552"/>
<Angle class1="CT" class2="C" class3="N" angle="2.018316200298763" k="624.42016"/>
<Angle class1="CT" class2="C" class3="O" angle="2.122302917132584" k="486.85024"/>
<Angle class1="N" class2="C" class3="O" angle="2.143264321449037" k="506.43136"/>
<Angle class1="C" class2="N" class3="CT" angle="2.127381825255888" k="678.47744"/>
<Angle class1="C" class2="N" class3="H" angle="2.079891416309122" k="284.00992"/>
<Angle class1="CT" class2="N" class3="H" angle="2.057202136033196" k="262.67152"/>
<Angle class1="N" class2="CT" class3="C" angle="1.892006722331933" k="954.53776"/>
<Angle class1="N" class2="CT" class3="CT" angle="1.941992952109050" k="795.96416"/>
<Angle class1="N" class2="CT" class3="HC" angle="1.910891184838512" k="459.31952"/>
<Angle class1="C" class2="CT" class3="CT" angle="1.955065468206488" k="961.23216"/>
<Angle class1="CT" class2="CT" class3="HC" angle="1.902984843326977" k="378.98672"/>
<Angle class1="CT" class2="CT" class3="CT" angle="1.963530315078660" k="847.00896"/>
<Angle class1="CT" class2="CT" class3="N2" angle="1.911065717763711" k="1083.99072"/>
<Angle class1="N2" class2="CT" class3="HC" angle="1.902356524796259" k="477.8128"/>
<Angle class1="CT" class2="N2" class3="CA" angle="2.187473511402053" k="626.67952"/>
<Angle class1="CT" class2="N2" class3="H3" angle="2.033238765403314" k="267.69232"/>
<Angle class1="CA" class2="N2" class3="H3" angle="2.104273665959483" k="280.83008"/>
<Angle class1="N2" class2="CA" class3="N2" angle="2.094377649100676" k="629.2736"/>
<Angle class1="H3" class2="N2" class3="H3" angle="2.051460002794135" k="181.66928"/>
<Angle class1="H" class2="N" class3="H" angle="2.040499335091611" k="190.70672"/>
<Angle class1="CT" class2="C" class3="OH" angle="1.974630609121345" k="616.97264"/>
<Angle class1="OH" class2="C" class3="O" angle="2.123594460779060" k="556.30464"/>
<Angle class1="C" class2="OH" class3="HO" angle="1.863749841742145" k="553.37584"/>
<Angle class1="CT" class2="CT" class3="SH" angle="2.002468610690654" k="680.23472"/>
<Angle class1="SH" class2="CT" class3="HC" angle="1.869474521688686" k="383.2544"/>
<Angle class1="CT" class2="SH" class3="HS" angle="1.674311804730680" k="642.82976"/>
<Angle class1="CT" class2="C" class3="O2" angle="2.032872246260395" k="454.8008"/>
<Angle class1="O2" class2="C" class3="O2" angle="2.217440814658796" k="468.44064"/>
<Angle class1="CT" class2="CT" class3="CX" angle="1.991054157382611" k="820.39872"/>
<Angle class1="CX" class2="CT" class3="HC" angle="1.907749592184922" k="401.07824"/>
<Angle class1="CT" class2="CX" class3="NA" angle="2.126247361242092" k="603.83488"/>
<Angle class1="CT" class2="CX" class3="CX" angle="2.312613618770046" k="525.25936"/>
<Angle class1="NA" class2="CX" class3="CX" angle="1.854447236829015" k="542.49744"/>
<Angle class1="CX" class2="NA" class3="CR" angle="1.924469846419027" k="545.50992"/>
<Angle class1="CX" class2="NA" class3="H" angle="2.185571102517379" k="274.55408"/>
<Angle class1="CR" class2="NA" class3="H" angle="2.188066923347731" k="252.12784"/>
<Angle class1="NA" class2="CR" class3="NA" angle="1.866961247565814" k="467.60384"/>
<Angle class1="NA" class2="CR" class3="HA" angle="2.176477937114489" k="236.22864"/>
<Angle class1="CX" class2="CX" class3="HA" angle="2.261405658516532" k="282.58736"/>
<Angle class1="NA" class2="CX" class3="HA" angle="2.155499079505517" k="292.62896"/>
<Angle class1="CT" class2="CT" class3="CV" angle="1.976759910808778" k="807.42832"/>
<Angle class1="CV" class2="CT" class3="HC" angle="1.905375944402209" k="424.676"/>
<Angle class1="CT" class2="CV" class3="NB" angle="2.136248097856019" k="507.1008"/>
<Angle class1="CT" class2="CV" class3="CW" angle="2.234527588035820" k="469.69584"/>
<Angle class1="NB" class2="CV" class3="CW" angle="1.911624223124349" k="492.70784"/>
<Angle class1="CV" class2="NB" class3="CR" angle="1.853574572203018" k="1008.59504"/>
<Angle class1="NB" class2="CR" class3="NA" angle="1.939601851033818" k="467.10176"/>
<Angle class1="NB" class2="CR" class3="HA" angle="2.198765791662456" k="223.844"/>
<Angle class1="CR" class2="NA" class3="CW" angle="1.875722800410826" k="529.6944"/>
<Angle class1="CW" class2="NA" class3="H" angle="2.195257679865948" k="248.02752"/>
<Angle class1="CV" class2="CW" class3="NA" angle="1.844202154119808" k="505.34352"/>
<Angle class1="CV" class2="CW" class3="HA" angle="2.295107966372544" k="269.36592"/>
<Angle class1="NA" class2="CW" class3="HA" angle="2.123629367364100" k="265.76768"/>
<Angle class1="CT" class2="CT" class3="N3" angle="1.933842264502237" k="939.39168"/>
<Angle class1="N3" class2="CT" class3="HC" angle="1.856087846325890" k="613.62544"/>
<Angle class1="CT" class2="N3" class3="H3" angle="1.940491968952335" k="355.2216"/>
<Angle class1="H3" class2="N3" class3="H3" angle="1.879771964275453" k="307.35664"/>
<Angle class1="CT" class2="CT" class3="S" angle="2.048492943065745" k="672.53616"/>
<Angle class1="S" class2="CT" class3="HC" angle="1.888795316508263" k="306.18512"/>
<Angle class1="CT" class2="S" class3="CT" angle="1.758052702241368" k="1486.82624"/>
<Angle class1="CT" class2="CT" class3="CA" angle="1.971803175733114" k="809.85504"/>
<Angle class1="CA" class2="CT" class3="HC" angle="1.927995411508056" k="416.97744"/>
<Angle class1="CT" class2="CA" class3="CA" angle="2.108811522014669" k="614.2112"/>
<Angle class1="CA" class2="CA" class3="CA" angle="2.101289152938573" k="807.9304"/>
<Angle class1="CA" class2="CA" class3="HA" angle="2.091393136079765" k="258.06912"/>
<Angle class1="CT" class2="N" class3="CT" angle="1.956985330383682" k="557.47616"/>
<Angle class1="CT" class2="CT" class3="OH" angle="1.902461244551379" k="955.70928"/>
<Angle class1="OH" class2="CT" class3="HC" angle="1.927890691752936" k="409.11152"/>
<Angle class1="CT" class2="OH" class3="HO" angle="1.894223290481966" k="545.92832"/>
<Angle class1="CT" class2="CT" class3="CS" angle="1.972536214018951" k="701.82416"/>
<Angle class1="CS" class2="CT" class3="HC" angle="1.927332186392298" k="355.97472"/>
<Angle class1="CT" class2="CS" class3="CW" angle="2.225050450197491" k="489.44432"/>
<Angle class1="CT" class2="CS" class3="CB" angle="2.201505958588088" k="509.44384"/>
<Angle class1="CW" class2="CS" class3="CB" angle="1.854935929019573" k="545.34256"/>
<Angle class1="CS" class2="CW" class3="NA" angle="1.921014094500079" k="480.65792"/>
<Angle class1="CS" class2="CW" class3="HA" angle="2.258298972447983" k="265.76768"/>
<Angle class1="CW" class2="NA" class3="CN" angle="1.904503279776212" k="555.38416"/>
<Angle class1="CN" class2="NA" class3="H" angle="2.192465153062757" k="260.91424"/>
<Angle class1="NA" class2="CN" class3="CA" angle="2.278754231281356" k="657.80848"/>
<Angle class1="NA" class2="CN" class3="CB" angle="1.871656183253679" k="637.6416"/>
<Angle class1="CA" class2="CN" class3="CB" angle="2.132757439352031" k="806.50784"/>
<Angle class1="CN" class2="CA" class3="CA" angle="2.049470327446862" k="608.18624"/>
<Angle class1="CN" class2="CA" class3="HA" angle="2.119562750206954" k="245.85184"/>
<Angle class1="CA" class2="CA" class3="CB" angle="2.074009656729902" k="607.76784"/>
<Angle class1="CB" class2="CA" class3="HA" angle="2.102825042680328" k="245.34976"/>
<Angle class1="CS" class2="CB" class3="CN" angle="1.87263356763476" k="644.7544"/>
<Angle class1="CS" class2="CB" class3="CA" angle="2.330555603480548" k="661.74144"/>
<Angle class1="CN" class2="CB" class3="CA" angle="2.079961229479202" k="727.5976"/>
<Angle class1="CA" class2="CA" class3="OH" angle="2.096541857373149" k="730.44272"/>
<Angle class1="CA" class2="OH" class3="HO" angle="1.917593249166170" k="565.59312"/>
<Angle class1="S" class2="S" class3="CT" angle="1.781038688490134" k="832.616"/>
<Angle class1="HT" class2="OT" class3="HT" angle="1.824218134184473" k="460.24"/>
<!-- THIS IS OPLS PARAMETER -->
<Angle class1="CW" class2="CV" class3="HA" angle="2.23751210105673" k="292.88"/>
<Angle class1="NB" class2="CV" class3="HA" angle="2.0943951023932" k="292.88"/>
<Angle class1="CW" class2="CT" class3="CT" angle="1.9896753472735358" k="527.184"/>
<Angle class1="CT" class2="CW" class3="NA" angle="2.1223203704251046" k="585.76"/>
<Angle class1="CV" class2="CW" class3="CT" angle="2.2811453323565885" k="585.76"/>
<Angle class1="CW" class2="CT" class3="HC" angle="1.911135530933791" k="292.88"/>
</HarmonicAngleForce>
<PeriodicTorsionForce>
<Proper type1="C157" type2="C293" type3="C235" type4="N239" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C136" type3="C137" type4="C135" k1="0.2092" k2="-0.29288" k3="0.27196" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C136" type3="C137" type4="C224I" k1="0.2092" k2="-0.29288" k3="0.27196" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C136" type3="C137" type4="C283" k1="2.7196" k2="-0.4184" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C136" type3="C137" type4="C293" k1="2.7196" k2="-0.4184" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C136" type3="C137" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C135" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C136" type4="C224" k1="-2.28028" k2="1.48532" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C136" type4="C283" k1="2.7196" k2="-0.4184" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C136" type4="C293" k1="2.7196" k2="-0.4184" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C224I" type4="C235" k1="10.48092" k2="-0.39748" k3="2.07108" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C224" type4="C235" k1="-3.64008" k2="-0.23012" k3="0.06276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C224" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C224I" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C224" type4="N238" k1="7.97052" k2="-1.1506" k3="1.65268" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C224I" type4="N238" k1="15.71092" k2="-1.23428" k3="-0.43932" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C283" type4="C271" k1="-2.974824" k2="2.234256" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C283" type4="N238" k1="6.263448" k2="0.527184" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C293" type4="C235" k1="-2.974824" k2="2.234256" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C137" type3="C293" type4="N287" k1="6.263448" k2="0.527184" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C158" type3="C224S" type4="C235" k1="-8.09604" k2="6.52704" k3="-0.1046" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C158" type3="C224S" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C158" type3="C224S" type4="N238" k1="-6.98728" k2="2.46856" k3="-3.59824" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C158" type3="C283" type4="C271" k1="-2.974824" k2="2.234256" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C158" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C158" type3="C283" type4="N238" k1="6.263448" k2="0.527184" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C158" type3="C293" type4="C235" k1="-2.974824" k2="2.234256" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C158" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C158" type3="C293" type4="N287" k1="6.263448" k2="0.527184" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C158" type3="O154" type4="H155" k1="0.43932" k2="-2.53132" k3="0.85772" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C224A" type3="C235" type4="N238" k1="-0.58576" k2="-0.71128" k3="-0.54392" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C224A" type3="C235" type4="N239" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C224A" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C224A" type3="C267" type4="O268" k1="2.092" k2="1.142232" k3="0.9414" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C224A" type3="C267" type4="O269" k1="0" k2="1.142232" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C224A" type3="N238" type4="C235" k1="-0.79496" k2="-0.35564" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C224A" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C235" type3="N238" type4="C223" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C235" type3="N238" type4="C224" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C235" type3="N238" type4="C224A" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C235" type3="N238" type4="C224S" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C235" type3="N238" type4="C224K" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C235" type3="N238" type4="C224Y" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C235" type3="N238" type4="H241" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C235" type3="N239" type4="C245" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C235" type3="N239" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C283" type3="C271" type4="O272" k1="0" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C283" type3="N238" type4="C235" k1="-1.426744" k2="0.27196" k3="0.707096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C283" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C293" type3="C235" type4="N238" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C293" type3="C235" type4="N239" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C293" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C135" type2="C293" type3="N287" type4="H290" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C136" type4="C224K" k1="-5.23" k2="-1.00416" k3="0.79496" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C136" type3="C136" type4="C224" k1="2.7196" k2="-0.4184" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C136" type4="C283" k1="2.7196" k2="-0.4184" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C136" type4="C292" k1="-5.23" k2="-1.00416" k3="0.79496" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C136" type4="C293" k1="2.7196" k2="-0.4184" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C136" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C224" type4="C235" k1="-3.38904" k2="0.50208" k3="0.16736" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C224K" type4="C235" k1="-4.184" k2="-0.4184" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C224K" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C224" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C224" type4="N238" k1="4.45596" k2="-0.77404" k3="3.30536" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C224K" type4="N238" k1="0.1046" k2="-0.27196" k3="1.82004" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C235" type4="N237" k1="5.949648" k2="-0.755212" k3="-0.6799" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C235" type4="O236" k1="0.849352" k2="2.727968" k3="0.290788" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C245" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C245" type4="N239" k1="1.76774" k2="-2.012504" k3="1.491596" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C246" type4="C235" k1="1.10876" k2="0.71128" k3="0.25104" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C246" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C246" type4="N239" k1="-4.35136" k2="-1.3598" k3="1.21336" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C267" type4="O268" k1="2.092" k2="1.142232" k3="0.9414" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C267" type4="O269" k1="0" k2="1.142232" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C283" type4="C271" k1="-4.932936" k2="1.905812" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C283" type4="N238" k1="1.849328" k2="1.876524" k3="1.84096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C285" type4="C271" k1="-3.663092" k2="3.359752" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C285" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C285" type4="N239" k1="3.288624" k2="0.332628" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C292" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C292" type4="N287" k1="5.715344" k2="-0.479068" k3="1.01462" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C293" type4="C235" k1="-4.932936" k2="1.905812" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C293" type4="N287" k1="1.849328" k2="1.876524" k3="1.84096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C295" type4="C235" k1="-3.663092" k2="3.359752" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C295" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C295" type4="N309" k1="5.715344" k2="-0.479068" k3="1.01462" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C296" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C136" type3="C296" type4="N309" k1="5.715344" k2="-0.479068" k3="1.01462" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C137" type3="C135" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C137" type3="C224I" type4="C235" k1="10.48092" k2="-0.39748" k3="2.07108" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C137" type3="C224I" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C137" type3="C224I" type4="N238" k1="15.71092" k2="-1.23428" k3="-0.43932" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C137" type3="C283" type4="C271" k1="-2.974824" k2="2.234256" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C137" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C137" type3="C283" type4="N238" k1="6.263448" k2="0.527184" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C137" type3="C293" type4="C235" k1="-2.974824" k2="2.234256" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C137" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C137" type3="C293" type4="N287" k1="6.263448" k2="0.527184" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C210" type3="S202" type4="C209" k1="1.9351" k2="-1.204992" k3="1.416284" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C224" type3="C235" type4="N238" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C224K" type3="C235" type4="N238" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C224" type3="C235" type4="N239" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C224K" type3="C235" type4="N239" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C224" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C224K" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C224" type3="N238" type4="C235" k1="-0.77404" k2="-0.33472" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C224K" type3="N238" type4="C235" k1="-0.77404" k2="-0.33472" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C224" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C224K" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C235" type3="N237" type4="H240" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C245" type3="N239" type4="C235" k1="-0.77404" k2="0.33472" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C245" type3="N239" type4="C246" k1="5.981028" k2="4.305336" k3="-23.568472" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C245" type3="N239" type4="C285" k1="5.981028" k2="4.305336" k3="-23.568472" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C246" type3="C235" type4="N238" k1="3.28444" k2="-2.28028" k3="2.76144" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C246" type3="C235" type4="N239" k1="3.28444" k2="-2.28028" k3="2.76144" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C246" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C246" type3="N239" type4="C235" k1="-0.77404" k2="-0.33472" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C246" type3="N239" type4="C245" k1="9.943276" k2="-1.535528" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C267" type3="O268" type4="H270" k1="3.138" k2="11.506" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C274" type3="C271" type4="O272" k1="0" k2="1.142232" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C283" type3="C271" type4="O272" k1="0" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C283" type3="N238" type4="C235" k1="-1.426744" k2="0.27196" k3="0.707096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C283K" type3="N238" type4="C235" k1="-1.426744" k2="0.27196" k3="0.707096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C283" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C283K" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C285" type3="C271" type4="O272" k1="0" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C285" type3="N239" type4="C235" k1="-1.426744" k2="0.27196" k3="0.707096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C285" type3="N239" type4="C245" k1="9.943276" k2="-1.535528" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C292" type3="N287" type4="H290" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C293" type3="C235" type4="N238" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C293" type3="C235" type4="N239" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C293" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C293" type3="N287" type4="H290" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C295" type3="C235" type4="N238" k1="10.520668" k2="1.504148" k3="4.68608" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C295" type3="C235" type4="N239" k1="10.520668" k2="1.504148" k3="4.68608" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C295" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C295" type3="N309" type4="C296" k1="3.0080868" k2="-0.2589896" k3="0.5520788" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C295" type3="N309" type4="H310" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C296" type3="N309" type4="C295" k1="3.0080868" k2="-0.2589896" k3="0.5520788" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C296" type3="N309" type4="H310" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C308" type3="C307" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C136" type2="C308" type3="C307" type4="N303" k1="5.715344" k2="-0.479068" k3="1.01462" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C136" type3="C135" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C136" type3="C224" type4="C235" k1="1.10876" k2="0.71128" k3="0.25104" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C136" type3="C224" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C136" type3="C224" type4="N238" k1="-4.35136" k2="-1.3598" k3="1.21336" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C136" type3="C283" type4="C271" k1="-3.663092" k2="3.359752" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C136" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C136" type3="C283" type4="N238" k1="3.288624" k2="0.332628" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C136" type3="C293" type4="C235" k1="-3.663092" k2="3.359752" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C136" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C136" type3="C293" type4="N287" k1="3.288624" k2="0.332628" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C224" type3="C235" type4="N238" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C224I" type3="C235" type4="N238" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C224" type3="C235" type4="N239" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C224I" type3="C235" type4="N239" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C224" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C224I" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C224" type3="N238" type4="C235" k1="-0.77404" k2="-0.33472" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C224I" type3="N238" type4="C235" k1="-0.77404" k2="-0.33472" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C224" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C224I" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C283" type3="C271" type4="O272" k1="0" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C283" type3="N238" type4="C235" k1="-1.426744" k2="0.27196" k3="0.707096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C283" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C293" type3="C235" type4="N238" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C293" type3="C235" type4="N239" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C293" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C137" type2="C293" type3="N287" type4="H290" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C145" type3="C149" type4="C224" k1="-10.89932" k2="0.39748" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C145" type3="C149" type4="C224Y" k1="-9.2048" k2="0.39748" k3="1.23428" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C145" type3="C149" type4="C283" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C145" type3="C149" type4="C293" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C145" type3="C149" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C149" type3="C224" type4="C235" k1="0.96232" k2="1.21336" k3="0.66944" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C149" type3="C224Y" type4="C235" k1="-0.27196" k2="2.13384" k3="-0.02092" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C149" type3="C224" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C149" type3="C224Y" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C149" type3="C224" type4="N238" k1="-1.96648" k2="1.58992" k3="1.90372" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C149" type3="C224Y" type4="N238" k1="-0.25104" k2="1.4644" k3="2.23844" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C149" type3="C283" type4="C271" k1="-2.941352" k2="3.717484" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C149" type3="C283" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C149" type3="C283" type4="N238" k1="3.581504" k2="1.5167" k3="0.765672" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C149" type3="C293" type4="C235" k1="-2.941352" k2="3.717484" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C149" type3="C293" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C149" type3="C293" type4="N287" k1="3.581504" k2="1.5167" k3="0.765672" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C166" type3="C145" type4="H146" k1="0" k2="15.167" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C166" type3="O167" type4="H168" k1="0" k2="3.518744" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C501" type3="C500" type4="C514" k1="0" k2="7.0082" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C145" type2="C502" type3="C501" type4="C500" k1="0" k2="12.552" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C224" type3="C235" type4="N238" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C224Y" type3="C235" type4="N238" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C224" type3="C235" type4="N239" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C224Y" type3="C235" type4="N239" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C224" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C224Y" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C224" type3="N238" type4="C235" k1="-0.77404" k2="-0.33472" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C224Y" type3="N238" type4="C235" k1="-0.77404" k2="-0.33472" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C224" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C224Y" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C283" type3="C271" type4="O272" k1="0" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C283" type3="N238" type4="C235" k1="-1.426744" k2="0.27196" k3="0.707096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C283" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C293" type3="C235" type4="N238" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C293" type3="C235" type4="N239" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C293" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C149" type2="C293" type3="N287" type4="H290" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C157" type2="C224S" type3="C235" type4="N238" k1="0.35564" k2="0.25104" k3="0.25104" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C157" type2="C224S" type3="C235" type4="N239" k1="0.35564" k2="0.25104" k3="0.25104" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C157" type2="C224S" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C157" type2="C224S" type3="N238" type4="C235" k1="-0.04184" k2="0.39748" k3="-0.25104" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C157" type2="C224S" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C157" type2="C283" type3="C271" type4="O272" k1="0" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C157" type2="C283" type3="N238" type4="C235" k1="-1.426744" k2="0.27196" k3="0.707096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C157" type2="C283" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C157" type2="C293" type3="C235" type4="N238" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C157" type2="C293" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C157" type2="C293" type3="N287" type4="H290" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C158" type2="C224S" type3="C235" type4="N238" k1="0.35564" k2="0.25104" k3="0.25104" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C158" type2="C224S" type3="C235" type4="N239" k1="0.35564" k2="0.25104" k3="0.25104" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C158" type2="C224S" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C158" type2="C224S" type3="N238" type4="C235" k1="-0.04184" k2="0.39748" k3="-0.25104" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C158" type2="C224S" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C158" type2="C283" type3="C271" type4="O272" k1="0" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C158" type2="C283" type3="N238" type4="C235" k1="-1.426744" k2="0.27196" k3="0.707096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C158" type2="C283" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C158" type2="C293" type3="C235" type4="N238" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C158" type2="C293" type3="C235" type4="N239" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C158" type2="C293" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C158" type2="C293" type3="N287" type4="H290" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C206" type2="C224" type3="C235" type4="N238" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C206" type2="C224" type3="C235" type4="N239" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C206" type2="C224" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C206" type2="C224" type3="N238" type4="C235" k1="-0.77404" k2="-0.33472" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C206" type2="C224" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C206" type2="C283" type3="C271" type4="O272" k1="0" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C206" type2="C283" type3="N238" type4="C235" k1="-1.426744" k2="0.27196" k3="0.707096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C206" type2="C283" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C206" type2="C293" type3="C235" type4="N238" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C206" type2="C293" type3="C235" type4="N239" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C206" type2="C293" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C206" type2="C293" type3="N287" type4="H290" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C209" type2="S202" type3="C210" type4="H140" k1="0" k2="0" k3="1.353524" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C210" type2="C136" type3="C224" type4="C235" k1="1.69452" k2="0.06276" k3="3.40996" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C210" type2="C136" type3="C224" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C210" type2="C136" type3="C224" type4="N238" k1="0.39748" k2="-1.73636" k3="-1.54808" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C210" type2="C136" type3="C283" type4="C271" k1="-1.905812" k2="1.462308" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C210" type2="C136" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C210" type2="C136" type3="C283" type4="N238" k1="0.447688" k2="1.131772" k3="0.820064" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C210" type2="C136" type3="C293" type4="C235" k1="-1.905812" k2="1.462308" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C210" type2="C136" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C210" type2="C136" type3="C293" type4="N287" k1="0.447688" k2="1.131772" k3="0.820064" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C210" type2="S202" type3="C209" type4="H140" k1="0" k2="0" k3="1.353524" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C214" type2="C224" type3="C235" type4="N238" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C214" type2="C224" type3="C235" type4="N239" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C214" type2="C224" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C214" type2="C224" type3="N238" type4="C235" k1="-0.77404" k2="-0.33472" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C214" type2="C224" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C214" type2="C283" type3="C271" type4="O272" k1="0" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C214" type2="C283" type3="N238" type4="C235" k1="-1.426744" k2="0.27196" k3="0.707096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C214" type2="C283" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C214" type2="C293" type3="C235" type4="N238" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C214" type2="C293" type3="C235" type4="N239" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C214" type2="C293" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C214" type2="C293" type3="N287" type4="H290" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C214" type2="S203" type3="S203" type4="C214" k1="0" k2="-15.510088" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C235" type3="N238" type4="C223" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C235" type3="N238" type4="C224" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C235" type3="N238" type4="C224I" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C235" type3="N238" type4="C224A" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C235" type3="N238" type4="C224K" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C235" type3="N238" type4="C224S" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C235" type3="N238" type4="C224Y" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C235" type3="N238" type4="C242" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C235" type3="N238" type4="C283" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C295" type2="C235" type3="N238" type4="C283" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C235" type3="N238" type4="C284" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C235" type3="N238" type4="H241" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C235" type3="N239" type4="C245" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C235" type3="N239" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C235" type3="N239" type4="C285" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="N238" type3="C235" type4="C224" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="N238" type3="C235" type4="C224I" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="N238" type3="C235" type4="C224A" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="N238" type3="C235" type4="C224S" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="N238" type3="C235" type4="C224K" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="N238" type3="C235" type4="C224Y" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="N238" type3="C235" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="N238" type3="C235" type4="C292" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="N238" type3="C235" type4="C293" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="N238" type3="C235" type4="C295" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="N238" type3="C235" type4="O236" k1="0" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C136" type4="C235" k1="-2.42672" k2="2.11292" k3="-0.12552" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C136" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C137" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C210" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C210" type4="S202" k1="-2.4058" k2="-0.9414" k3="-0.48116" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C235" type4="N237" k1="1.69452" k2="1.06692" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C235" type4="O236" k1="3.32628" k2="-0.2092" k3="-0.2092" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C267" type4="O268" k1="2.092" k2="1.142232" k3="0.9414" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C267" type4="O269" k1="0" k2="1.142232" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C274" type4="C271" k1="-18.43052" k2="-0.23012" k3="-1.6736" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C274" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C308" type4="C307" k1="-2.1966" k2="-0.523" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C308" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C500" type4="C501" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C136" type3="C500" type4="C514" k1="1.00416" k2="-1.21336" k3="-0.39748" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C137" type3="C135" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C137" type3="C135" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C137" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C157" type3="O154" type4="H155" k1="0.43932" k2="-2.53132" k3="0.85772" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C158" type3="C135" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C158" type3="O154" type4="H155" k1="0.43932" k2="-2.53132" k3="0.85772" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C206" type3="S200" type4="H204" k1="1.63176" k2="2.17568" k3="4.37228" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C214" type3="S203" type4="S203" k1="4.060572" k2="-1.748912" k3="1.95602" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C235" type3="N238" type4="C224" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C235" type3="N238" type4="C224I" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C235" type3="N238" type4="C224A" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C235" type3="N238" type4="C224S" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C235" type3="N238" type4="C224K" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C235" type3="N238" type4="C224Y" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C235" type3="N238" type4="C224" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C235" type3="N238" type4="C224I" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C235" type3="N238" type4="C224A" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C235" type3="N238" type4="C224S" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C235" type3="N238" type4="C224K" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C235" type3="N238" type4="C224Y" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="C235" type3="N238" type4="C224" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="C235" type3="N238" type4="C224I" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="C235" type3="N238" type4="C224A" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="C235" type3="N238" type4="C224S" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="C235" type3="N238" type4="C224K" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="C235" type3="N238" type4="C224Y" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C235" type3="N238" type4="C224" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C235" type3="N238" type4="C224I" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C235" type3="N238" type4="C224A" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C235" type3="N238" type4="C224S" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C235" type3="N238" type4="C224K" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C235" type3="N238" type4="C224Y" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C235" type3="N238" type4="C224" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C235" type3="N238" type4="C224I" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C235" type3="N238" type4="C224A" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C235" type3="N238" type4="C224S" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C235" type3="N238" type4="C224K" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C235" type3="N238" type4="C224Y" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="C235" type3="N238" type4="C224" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="C235" type3="N238" type4="C224I" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="C235" type3="N238" type4="C224A" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="C235" type3="N238" type4="C224S" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="C235" type3="N238" type4="C224K" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="C235" type3="N238" type4="C224Y" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C235" type3="N238" type4="C242" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C235" type3="N238" type4="C242" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="C235" type3="N238" type4="C242" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C235" type3="N238" type4="C242" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C235" type3="N238" type4="C242" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="C235" type3="N238" type4="C242" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C235" type3="N238" type4="C283" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C235" type3="N238" type4="C283" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="C235" type3="N238" type4="C283" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C235" type3="N238" type4="C283" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C235" type3="N238" type4="C283" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="C235" type3="N238" type4="C283" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C235" type3="N238" type4="C284" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="C235" type3="N238" type4="C284" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C235" type3="N238" type4="C284" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C235" type3="N238" type4="C284" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="C235" type3="N238" type4="C284" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C235" type3="N238" type4="H241" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C235" type3="N238" type4="H241" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="C235" type3="N238" type4="H241" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C235" type3="N238" type4="H241" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C235" type3="N238" type4="H241" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="C235" type3="N238" type4="H241" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C235" type3="N239" type4="C245" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C235" type3="N239" type4="C245" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="C235" type3="N239" type4="C245" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C235" type3="N239" type4="C245" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C235" type3="N239" type4="C245" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="C235" type3="N239" type4="C245" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C235" type3="N239" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C235" type3="N239" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="C235" type3="N239" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C235" type3="N239" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C235" type3="N239" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="C235" type3="N239" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C235" type3="N239" type4="C285" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C235" type3="N239" type4="C285" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="C235" type3="N239" type4="C285" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C235" type3="N239" type4="C285" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C235" type3="N239" type4="C285" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="C235" type3="N239" type4="C285" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C223" type2="C267" type3="O268" type4="H270" k1="3.138" k2="11.506" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C267" type3="O268" type4="H270" k1="3.138" k2="11.506" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="C267" type3="O268" type4="H270" k1="3.138" k2="11.506" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C267" type3="O268" type4="H270" k1="3.138" k2="11.506" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="C267" type3="O268" type4="H270" k1="3.138" k2="11.506" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="C267" type3="O268" type4="H270" k1="3.138" k2="11.506" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="C267" type3="O268" type4="H270" k1="3.138" k2="11.506" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C274" type3="C271" type4="O272" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C505" type3="C507" type4="C508" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C505" type3="C507" type4="N511" k1="-2.48948" k2="-1.046" k3="0.06276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C505" type3="C508" type4="C507" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C505" type3="C508" type4="N503" k1="6.08772" k2="-3.36812" k3="0.8368" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C505" type3="C510" type4="C510" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="C505" type3="C510" type4="N512" k1="-0.79496" k2="1.046" k3="0.39748" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="N238" type3="C235" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="N238" type3="C235" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="N238" type3="C235" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="N238" type3="C235" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="N238" type3="C235" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="N238" type3="C235" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="N238" type3="C235" type4="C292" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="N238" type3="C235" type4="C292" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="N238" type3="C235" type4="C292" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="N238" type3="C235" type4="C292" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="N238" type3="C235" type4="C292" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="N238" type3="C235" type4="C292" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="N238" type3="C235" type4="C292" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="N238" type3="C235" type4="C293" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="N238" type3="C235" type4="C293" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="N238" type3="C235" type4="C293" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="N238" type3="C235" type4="C293" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="N238" type3="C235" type4="C293" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="N238" type3="C235" type4="C293" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="N238" type3="C235" type4="C295" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="N238" type3="C235" type4="C295" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="N238" type3="C235" type4="C295" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="N238" type3="C235" type4="C295" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="N238" type3="C235" type4="C295" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="N238" type3="C235" type4="C295" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224" type2="N238" type3="C235" type4="O236" k1="0" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224I" type2="N238" type3="C235" type4="O236" k1="0" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224A" type2="N238" type3="C235" type4="O236" k1="0" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224S" type2="N238" type3="C235" type4="O236" k1="0" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224K" type2="N238" type3="C235" type4="O236" k1="0" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C224Y" type2="N238" type3="C235" type4="O236" k1="0" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C136" type3="C136" type4="C283" k1="-2.650564" k2="1.002068" k3="-1.016712" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C136" type3="C136" type4="C293" k1="-2.650564" k2="1.002068" k3="-1.016712" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C136" type3="C136" type4="H140" k1="0" k2="0" k3="-0.2092" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C136" type3="C224" type4="C235" k1="10.02068" k2="1.2552" k3="0.43932" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C136" type3="C224" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C136" type3="C224" type4="N238" k1="-15.71092" k2="1.10876" k3="-1.17152" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C136" type3="C283" type4="C271" k1="1.251016" k2="3.259336" k3="0.53346" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C136" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C136" type3="C283" type4="N238" k1="-11.508092" k2="3.194484" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C136" type3="C293" type4="C235" k1="1.251016" k2="3.259336" k3="0.53346" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C136" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C136" type3="C293" type4="N287" k1="-11.508092" k2="3.194484" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C223" type3="N238" type4="C235" k1="0.14644" k2="0.87864" k3="-0.77404" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C223" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224A" type3="C135" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C136" type4="C267" k1="1.251016" k2="3.259336" k3="0.53346" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C136" type4="C274" k1="-4.72792" k2="-3.91204" k3="2.17568" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C136" type4="C308" k1="-1.1506" k2="-0.3661" k3="0.46024" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C136" type4="C500" k1="-0.8368" k2="1.8828" k3="0.25104" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C136" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224K" type3="C136" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C137" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224I" type3="C137" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C149" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224Y" type3="C149" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224S" type3="C157" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224S" type3="C157" type4="O154" k1="-14.49756" k2="1.9874" k3="2.44764" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224S" type3="C158" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224S" type3="C158" type4="O154" k1="-3.36812" k2="4.45596" k3="-1.86188" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C206" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C206" type4="S200" k1="-5.87852" k2="-0.06276" k3="-0.18828" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C214" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C214" type4="S203" k1="-6.951716" k2="1.106668" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C274" type4="C271" k1="7.48936" k2="1.52716" k3="-0.25104" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C274" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C505" type4="C507" k1="3.9748" k2="1.046" k3="0.2092" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C505" type4="C508" k1="0.4184" k2="1.2552" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C505" type4="C510" k1="-0.58576" k2="-1.90372" k3="0.02092" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="C505" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="N238" type4="C235" k1="0.04184" k2="0.85772" k3="-0.18828" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224I" type3="N238" type4="C235" k1="0.04184" k2="0.85772" k3="-0.18828" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224K" type3="N238" type4="C235" k1="0.04184" k2="0.85772" k3="-0.18828" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224Y" type3="N238" type4="C235" k1="0.04184" k2="0.85772" k3="-0.18828" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224A" type3="N238" type4="C235" k1="0.04184" k2="0.85772" k3="-0.14644" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224S" type3="N238" type4="C235" k1="0.16736" k2="-0.33472" k3="-0.27196" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224I" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224A" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224S" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224K" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C224Y" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C223" type4="C267" k1="-5.253012" k2="0.43932" k3="-0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C224" type4="C267" k1="-5.253012" k2="0.43932" k3="-0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C224I" type4="C267" k1="-5.253012" k2="0.43932" k3="-0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C224A" type4="C267" k1="-5.253012" k2="0.43932" k3="-0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C224S" type4="C267" k1="-5.253012" k2="0.43932" k3="-0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C224K" type4="C267" k1="-5.253012" k2="0.43932" k3="-0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C224Y" type4="C267" k1="-5.253012" k2="0.43932" k3="-0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C246" type3="C136" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C246" type3="N239" type4="C235" k1="0.04184" k2="0.85772" k3="-0.18828" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C246" type3="N239" type4="C245" k1="-3.633804" k2="2.617092" k3="-7.324092" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C292" type3="N287" type4="H290" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C135" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C136" type4="C274" k1="-3.690288" k2="1.4644" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C136" type4="C308" k1="-4.123332" k2="1.61084" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C136" type4="C500" k1="-1.058552" k2="2.0397" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C136" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C137" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C149" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C157" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C157" type4="O154" k1="-12.118956" k2="0.84726" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C158" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C158" type4="O154" k1="-12.118956" k2="0.84726" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C206" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C206" type4="S200" k1="-6.951716" k2="1.106668" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C214" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C214" type4="S203" k1="-6.951716" k2="1.106668" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C274" type4="C271" k1="3.227956" k2="1.456032" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C274" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C505" type4="C507" k1="-2.681944" k2="3.44134" k3="-0.035564" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C505" type4="C508" k1="-2.681944" k2="3.44134" k3="-0.035564" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C505" type4="C510" k1="-3.573136" k2="3.171472" k3="-1.050184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C505" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="N287" type4="H290" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C295" type3="C136" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C295" type3="N309" type4="C296" k1="3.0080868" k2="-0.2589896" k3="0.5520788" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C295" type3="N309" type4="H310" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C223" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C224" type4="C274" k1="-0.77404" k2="-0.33472" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C224" type4="C505" k1="-0.77404" k2="-0.33472" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C224" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C224I" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C224A" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C224S" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C224K" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C224Y" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C242" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C283" type4="C271" k1="-5.253012" k2="0.43932" k3="-0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C283" type4="C274" k1="-1.426744" k2="0.27196" k3="0.707096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C283" type4="C505" k1="-1.426744" k2="0.27196" k3="0.707096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C283" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C284" type4="C271" k1="-5.253012" k2="0.43932" k3="-0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N238" type3="C284" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N239" type3="C245" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N239" type3="C246" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N239" type3="C285" type4="C271" k1="-5.253012" k2="0.43932" k3="-0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="N239" type3="C285" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C242" type2="N238" type3="C235" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C242" type2="N238" type3="C235" type4="O236" k1="0" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C245" type2="C136" type3="C136" type4="C246" k1="2.7196" k2="-0.4184" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C245" type2="C136" type3="C136" type4="C285" k1="2.7196" k2="-0.4184" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C245" type2="C136" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C245" type2="N239" type3="C235" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C245" type2="N239" type3="C235" type4="C292" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C245" type2="N239" type3="C235" type4="C293" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C245" type2="N239" type3="C235" type4="C295" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C245" type2="N239" type3="C235" type4="O236" k1="0" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C245" type2="N239" type3="C246" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C245" type2="N239" type3="C285" type4="C271" k1="-3.633804" k2="2.617092" k3="-7.324092" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C245" type2="N239" type3="C285" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C246" type2="C136" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C246" type2="C235" type3="N238" type4="C283" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C246" type2="C235" type3="N238" type4="C284" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C246" type2="C235" type3="N238" type4="H241" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C246" type2="C235" type3="N239" type4="C246" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C246" type2="C235" type3="N239" type4="C285" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C246" type2="N239" type3="C235" type4="C292" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C246" type2="N239" type3="C235" type4="C293" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C246" type2="N239" type3="C235" type4="C295" k1="4.8116" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C246" type2="N239" type3="C235" type4="O236" k1="0" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C246" type2="N239" type3="C245" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C136" type3="C224" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C136" type3="C224" type4="N238" k1="-11.508092" k2="3.194484" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C224A" type3="C135" type4="H140" k1="0" k2="0" k3="0.154808" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C223" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C224" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C224I" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C224A" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C224S" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C224K" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C224Y" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C274" type3="C136" type4="C283" k1="-1.85142" k2="2.1443" k3="-2.704956" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C274" type3="C136" type4="C293" k1="-1.85142" k2="2.1443" k3="-2.704956" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C274" type3="C136" type4="H140" k1="0" k2="0" k3="-0.4707" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C274" type3="C224" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C274" type3="C224" type4="N238" k1="-16.81968" k2="-1.19244" k3="1.52716" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C274" type3="C283" type4="C271" k1="3.227956" k2="1.456032" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C274" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C274" type3="C283" type4="N238" k1="-16.50588" k2="1.384904" k3="2.085724" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C274" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C274" type3="C293" type4="N287" k1="-16.50588" k2="1.384904" k3="2.085724" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C135" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C136" type4="C274" k1="-3.690288" k2="1.4644" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C136" type4="C308" k1="-4.123332" k2="1.61084" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C136" type4="C500" k1="-1.058552" k2="2.0397" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C136" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C137" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C149" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C157" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C157" type4="O154" k1="-12.118956" k2="0.84726" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C158" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C158" type4="O154" k1="-12.118956" k2="0.84726" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C206" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C206" type4="S200" k1="-6.951716" k2="1.106668" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C214" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C214" type4="S203" k1="-6.951716" k2="1.106668" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C274" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C505" type4="C507" k1="-2.681944" k2="3.44134" k3="-0.035564" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C505" type4="C508" k1="-2.681944" k2="3.44134" k3="-0.035564" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C505" type4="C510" k1="-3.573136" k2="3.171472" k3="-1.050184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="C505" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C283" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C284" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C271" type2="C285" type3="C136" type4="H140" k1="0" k2="0" k3="-0.158992" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C136" type3="C224" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C136" type3="C224" type4="N238" k1="-1.19244" k2="-3.0334" k3="2.78236" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C136" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C136" type3="C283" type4="N238" k1="4.156804" k2="0.956044" k3="1.71544" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C136" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C136" type3="C293" type4="N287" k1="4.156804" k2="0.956044" k3="1.71544" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C224" type3="C235" type4="N238" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C224" type3="C235" type4="N239" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C224" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C224" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C283" type3="C271" type4="O272" k1="0" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C283" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C293" type3="C235" type4="N238" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C293" type3="C235" type4="N239" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C293" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C274" type2="C293" type3="N287" type4="H290" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C136" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C136" type3="C137" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C136" type3="C210" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C136" type3="C210" type4="S202" k1="-3.27398" k2="-0.018828" k3="-0.9414" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C136" type3="C235" type4="N237" k1="3.125448" k2="-1.069012" k3="0.2615" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C136" type3="C235" type4="O236" k1="3.464352" k2="2.727968" k3="0.918388" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C136" type3="C267" type4="O268" k1="2.092" k2="1.142232" k3="0.9414" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C136" type3="C267" type4="O269" k1="0" k2="1.142232" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C136" type3="C274" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C136" type3="C308" type4="C307" k1="2.7196" k2="-0.4184" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C136" type3="C308" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C136" type3="C500" type4="C501" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C136" type3="C500" type4="C514" k1="-1.493688" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C137" type3="C135" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C137" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C157" type3="O154" type4="H155" k1="-0.744752" k2="-0.364008" k3="1.029264" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C158" type3="C135" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C158" type3="O154" type4="H155" k1="-0.744752" k2="-0.364008" k3="1.029264" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C206" type3="S200" type4="H204" k1="-1.587828" k2="-0.589944" k3="1.42256" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C214" type3="S203" type4="S203" k1="4.060572" k2="-1.748912" k3="1.95602" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C274" type3="C271" type4="O272" k1="5.23" k2="2.092" k3="2.8242" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C505" type3="C507" type4="C508" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C505" type3="C507" type4="N511" k1="-1.17152" k2="-1.54808" k3="0.730108" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C505" type3="C508" type4="C507" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C505" type3="C508" type4="N503" k1="-1.17152" k2="-1.54808" k3="0.730108" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C505" type3="C510" type4="C510" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="C505" type3="C510" type4="N512" k1="-8.34708" k2="3.51456" k3="0.60668" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C283" type2="N238" type3="C235" type4="O236" k1="0" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C284" type2="N238" type3="C235" type4="O236" k1="0" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C285" type2="C136" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C285" type2="N239" type3="C235" type4="O236" k1="0" k2="12.738188" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C285" type2="N239" type3="C245" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C292" type2="C136" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C292" type2="C235" type3="N238" type4="H241" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C136" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C136" type3="C137" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C136" type3="C210" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C136" type3="C210" type4="S202" k1="-3.27398" k2="-0.018828" k3="-0.9414" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C136" type3="C235" type4="N237" k1="3.125448" k2="-1.069012" k3="0.2615" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C136" type3="C235" type4="O236" k1="3.464352" k2="2.727968" k3="0.918388" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C136" type3="C267" type4="O268" k1="2.092" k2="1.142232" k3="0.9414" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C136" type3="C267" type4="O269" k1="0" k2="1.142232" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C136" type3="C274" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C136" type3="C308" type4="C307" k1="2.7196" k2="-0.4184" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C136" type3="C308" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C136" type3="C500" type4="C501" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C136" type3="C500" type4="C514" k1="-1.493688" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C137" type3="C135" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C137" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C157" type3="O154" type4="H155" k1="-0.744752" k2="-0.364008" k3="1.029264" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C158" type3="C135" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C158" type3="O154" type4="H155" k1="-0.744752" k2="-0.364008" k3="1.029264" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C206" type3="S200" type4="H204" k1="-1.587828" k2="-0.589944" k3="1.42256" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C214" type3="S203" type4="S203" k1="4.060572" k2="-1.748912" k3="1.95602" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C235" type3="N238" type4="H241" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C274" type3="C271" type4="O272" k1="5.23" k2="2.092" k3="2.8242" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C505" type3="C507" type4="C508" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C505" type3="C507" type4="N511" k1="-1.17152" k2="-1.54808" k3="0.730108" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C505" type3="C508" type4="C507" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C505" type3="C508" type4="N503" k1="-1.17152" k2="-1.54808" k3="0.730108" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C505" type3="C510" type4="C510" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C293" type2="C505" type3="C510" type4="N512" k1="-8.34708" k2="3.51456" k3="0.60668" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C295" type2="C136" type3="C136" type4="C296" k1="2.7196" k2="-0.4184" k3="0.4184" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C295" type2="C136" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C295" type2="C235" type3="N238" type4="H241" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C295" type2="N309" type3="C296" type4="H140" k1="0" k2="0" k3="0.6311564" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C296" type2="C136" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C296" type2="N309" type3="C295" type4="H140" k1="0" k2="0" k3="0.6311564" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C302" type2="N303" type3="C307" type4="C308" k1="3.826268" k2="0.508356" k3="-1.041816" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C302" type2="N303" type3="C307" type4="H140" k1="0" k2="0" k3="0.370284" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C307" type2="C308" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C307" type2="N303" type3="C302" type4="N300" k1="0" k2="16.602112" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C308" type2="C136" type3="C224" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C308" type2="C136" type3="C224" type4="N238" k1="1.99786" k2="-0.30334" k3="0.58576" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C308" type2="C136" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C308" type2="C136" type3="C283" type4="N238" k1="0.215476" k2="1.366076" k3="1.177796" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C308" type2="C136" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C308" type2="C136" type3="C293" type4="N287" k1="0.215476" k2="1.366076" k3="1.177796" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C308" type2="C307" type3="N303" type4="H304" k1="-0.39748" k2="-0.872364" k3="0.874456" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C500" type2="C136" type3="C224" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C500" type2="C136" type3="C224" type4="N238" k1="2.28028" k2="1.23428" k3="1.84096" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C500" type2="C136" type3="C283" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C500" type2="C136" type3="C283" type4="N238" k1="-1.230096" k2="2.13384" k3="1.39118" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C500" type2="C136" type3="C293" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C500" type2="C136" type3="C293" type4="N287" k1="-1.230096" k2="2.13384" k3="1.39118" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C500" type2="C501" type3="C145" type4="H146" k1="0" k2="14.644" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C501" type2="C500" type3="C136" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C501" type2="C502" type3="C145" type4="H146" k1="0" k2="15.167" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C502" type2="C501" type3="C145" type4="H146" k1="0" k2="14.644" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C502" type2="C501" type3="C500" type4="C514" k1="0" k2="7.0082" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C502" type2="N503" type3="C514" type4="H146" k1="0" k2="6.276" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C224" type3="C235" type4="N238" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C224" type3="C235" type4="N239" k1="-0.54392" k2="-0.66944" k3="-0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C224" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C224" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C283" type3="C271" type4="O272" k1="0" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C283" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C293" type3="C235" type4="N238" k1="3.721668" k2="0.876548" k3="-0.23012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C293" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C293" type3="N287" type4="H290" k1="0" k2="0" k3="0.725924" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C508" type3="C507" type4="H146" k1="0" k2="22.489" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C508" type3="C507" type4="N511" k1="0" k2="22.489" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C508" type3="N503" type4="C506" k1="0" k2="5.8576" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C508" type3="N503" type4="H504" k1="0" k2="5.8576" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C510" type3="N512" type4="C509" k1="0" k2="5.8576" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C505" type2="C510" type3="N512" type4="H513" k1="0" k2="5.8576" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C506" type2="N503" type3="C508" type4="C507" k1="0" k2="5.8576" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C506" type2="N503" type3="C508" type4="H146" k1="0" k2="10.46" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C506" type2="N511" type3="C507" type4="C508" k1="0" k2="10.0416" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C506" type2="N511" type3="C507" type4="H146" k1="0" k2="10.0416" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C507" type2="C505" type3="C224" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C507" type2="C505" type3="C224" type4="N238" k1="-6.52704" k2="0.81588" k3="1.92464" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C507" type2="C505" type3="C283" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C507" type2="C505" type3="C283" type4="N238" k1="-1.133864" k2="0.91002" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C507" type2="C505" type3="C293" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C507" type2="C505" type3="C293" type4="N287" k1="-1.133864" k2="0.91002" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C507" type2="C508" type3="C505" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C507" type2="C508" type3="N503" type4="H504" k1="0" k2="5.8576" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C507" type2="N511" type3="C506" type4="H146" k1="0" k2="20.92" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C507" type2="N511" type3="C506" type4="N503" k1="0" k2="20.92" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C508" type2="C505" type3="C224" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C508" type2="C505" type3="C224" type4="N238" k1="-1.4644" k2="0.39748" k3="1.046" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C508" type2="C505" type3="C283" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C508" type2="C505" type3="C283" type4="N238" k1="-1.133864" k2="0.91002" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C508" type2="C505" type3="C293" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C508" type2="C505" type3="C293" type4="N287" k1="-1.133864" k2="0.91002" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C508" type2="C507" type3="C505" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C508" type2="N503" type3="C506" type4="H146" k1="0" k2="9.7278" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C508" type2="N503" type3="C506" type4="N511" k1="0" k2="9.7278" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C509" type2="N512" type3="C510" type4="C510" k1="0" k2="5.8576" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C509" type2="N512" type3="C510" type4="H146" k1="0" k2="10.46" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C510" type2="C505" type3="C224" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C510" type2="C505" type3="C224" type4="N238" k1="-2.74052" k2="-0.77404" k3="2.05016" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C510" type2="C505" type3="C283" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C510" type2="C505" type3="C283" type4="N238" k1="-6.355496" k2="0.876548" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C510" type2="C505" type3="C293" type4="H140" k1="0" k2="0" k3="0.966504" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C510" type2="C505" type3="C293" type4="N287" k1="-6.355496" k2="0.876548" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C510" type2="C510" type3="C505" type4="H140" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C510" type2="C510" type3="N512" type4="H513" k1="0" k2="5.8576" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C510" type2="N512" type3="C509" type4="H146" k1="0" k2="9.7278" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C510" type2="N512" type3="C509" type4="N512" k1="0" k2="9.7278" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C514" type2="C500" type3="C136" type4="H140" k1="0" k2="0" k3="-1.00416" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C135" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C135" type3="C137" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C135" type3="C158" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C135" type3="C158" type4="O154" k1="0" k2="0" k3="0.979056" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C135" type3="C224A" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C135" type3="C224A" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C135" type3="C235" type4="N238" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C135" type3="C235" type4="N239" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C135" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C135" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C135" type3="C283" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C135" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C135" type3="C293" type4="N287" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C136" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C137" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C210" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C210" type4="S202" k1="0" k2="0" k3="0.945584" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C224" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C224K" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C224" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C224K" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C235" type4="N237" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C245" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C245" type4="N239" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C246" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C246" type4="N239" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C267" type4="O268" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C274" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C283" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C285" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C285" type4="N239" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C292" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C292" type4="N287" k1="0" k2="0" k3="0.803328" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C293" type4="N287" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C295" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C295" type4="N309" k1="0" k2="0" k3="0.803328" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C296" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C296" type4="N309" k1="0" k2="0" k3="0.803328" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C136" type3="C308" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C137" type3="C224" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C137" type3="C224I" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C137" type3="C224" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C137" type3="C224I" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C137" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C137" type3="C283" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C137" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C137" type3="C293" type4="N287" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C149" type3="C224" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C149" type3="C224Y" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C149" type3="C224" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C149" type3="C224Y" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C149" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C149" type3="C283" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C149" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C149" type3="C293" type4="N287" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C157" type3="C224S" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C157" type3="C224S" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C157" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C157" type3="C283" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C157" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C157" type3="C293" type4="N287" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C157" type3="O154" type4="H155" k1="0" k2="0" k3="0.7372208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C158" type3="C224S" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C158" type3="C224S" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C158" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C158" type3="C283" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C158" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C158" type3="C293" type4="N287" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C158" type3="O154" type4="H155" k1="0" k2="0" k3="0.7372208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C206" type3="C224" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C206" type3="C224" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C206" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C206" type3="C283" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C206" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C206" type3="C293" type4="N287" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C206" type3="S200" type4="H204" k1="1.94556" k2="6.0668" k3="-0.66944" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C214" type3="C224" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C214" type3="C224" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C214" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C214" type3="C283" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C214" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C214" type3="C293" type4="N287" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C214" type3="S203" type4="S203" k1="0" k2="0" k3="1.167336" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C223" type3="C235" type4="N238" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C223" type3="C235" type4="N239" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C223" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C223" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224S" type3="C157" type4="O154" k1="0" k2="0" k3="0.979056" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224S" type3="C158" type4="O154" k1="0" k2="0" k3="0.979056" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224" type3="C206" type4="S200" k1="0" k2="0" k3="0.945584" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224" type3="C214" type4="S203" k1="0" k2="0" k3="0.945584" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224" type3="C235" type4="N238" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224I" type3="C235" type4="N238" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224A" type3="C235" type4="N238" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224S" type3="C235" type4="N238" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224K" type3="C235" type4="N238" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224Y" type3="C235" type4="N238" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224" type3="C235" type4="N239" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224I" type3="C235" type4="N239" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224A" type3="C235" type4="N239" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224S" type3="C235" type4="N239" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224K" type3="C235" type4="N239" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224Y" type3="C235" type4="N239" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224I" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224A" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224S" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224K" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224Y" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C223" type3="C267" type4="O268" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C223" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224" type3="C267" type4="O268" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224I" type3="C267" type4="O268" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224A" type3="C267" type4="O268" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224S" type3="C267" type4="O268" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224K" type3="C267" type4="O268" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224Y" type3="C267" type4="O268" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224I" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224A" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224S" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224K" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224Y" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224" type3="C274" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224" type3="C505" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224I" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224A" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224S" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224K" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C224Y" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C242" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C246" type3="C235" type4="N238" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C246" type3="C235" type4="N239" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C246" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C274" type3="C224" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C274" type3="C271" type4="O272" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C274" type3="C283" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C274" type3="C283" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C274" type3="C293" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C274" type3="C293" type4="N287" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C283" type3="C157" type4="O154" k1="0" k2="0" k3="0.979056" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C283" type3="C158" type4="O154" k1="0" k2="0" k3="0.979056" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C283" type3="C206" type4="S200" k1="0" k2="0" k3="0.945584" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C283" type3="C214" type4="S203" k1="0" k2="0" k3="0.945584" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C283" type3="C271" type4="O272" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C283" type3="C505" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C283" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C284" type3="C271" type4="O272" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C284" type3="N238" type4="H241" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C285" type3="C271" type4="O272" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C292" type3="C235" type4="N238" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C292" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C292" type3="N287" type4="H290" k1="0" k2="0" k3="0.546012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C293" type3="C157" type4="O154" k1="0" k2="0" k3="0.979056" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C293" type3="C158" type4="O154" k1="0" k2="0" k3="0.979056" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C293" type3="C206" type4="S200" k1="0" k2="0" k3="0.945584" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C293" type3="C214" type4="S203" k1="0" k2="0" k3="0.945584" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C293" type3="C235" type4="N238" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C293" type3="C235" type4="N239" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C293" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C293" type3="C505" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C293" type3="N287" type4="H290" k1="0" k2="0" k3="0.546012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C295" type3="C235" type4="N238" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C295" type3="C235" type4="N239" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C295" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C295" type3="N309" type4="H310" k1="0" k2="0" k3="0.546012" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C296" type3="N309" type4="H310" k1="0" k2="0" k3="0.803328" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C307" type3="C308" type4="H140" k1="0" k2="0" k3="0.6276" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C307" type3="N303" type4="H304" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C308" type3="C307" type4="N303" k1="0" k2="0" k3="-1.217544" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C505" type3="C224" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C505" type3="C283" type4="N238" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C505" type3="C293" type4="N287" k1="0" k2="0" k3="0.970688" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C505" type3="C507" type4="N511" k1="0" k2="0" k3="0.876548" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C505" type3="C508" type4="N503" k1="0" k2="0" k3="0.876548" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H140" type2="C505" type3="C510" type4="N512" k1="0" k2="0" k3="0.876548" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H146" type2="C508" type3="C507" type4="N511" k1="0" k2="22.489" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H146" type2="C508" type3="N503" type4="H504" k1="0" k2="10.46" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H146" type2="C510" type3="N512" type4="H513" k1="0" k2="10.46" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H240" type2="N237" type3="C235" type4="O236" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H241" type2="N238" type3="C235" type4="O236" k1="0" k2="10.2508" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H270" type2="O268" type3="C267" type4="O269" k1="0" k2="11.506" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H301" type2="N300" type3="C302" type4="N300" k1="0" k2="8.1588" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H301" type2="N300" type3="C302" type4="N303" k1="0" k2="8.1588" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H304" type2="N303" type3="C302" type4="N300" k1="0" k2="8.1588" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H504" type2="N503" type3="C506" type4="N511" k1="0" k2="9.7278" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="H513" type2="N512" type3="C509" type4="N512" k1="0" k2="9.7278" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C223" type3="C235" type4="N238" k1="0.29288" k2="1.08784" k3="-0.69036" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C223" type3="C235" type4="N239" k1="0.29288" k2="1.08784" k3="-0.69036" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C223" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224S" type3="C157" type4="O154" k1="11.12944" k2="1.569" k3="0.48116" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224S" type3="C158" type4="O154" k1="7.61488" k2="5.94128" k3="8.17972" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224" type3="C206" type4="S200" k1="6.92452" k2="0.60668" k3="3.59824" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224" type3="C214" type4="S203" k1="4.29906" k2="1.106668" k3="1.138048" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224" type3="C235" type4="N238" k1="0.18828" k2="0.89956" k3="-0.60668" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224I" type3="C235" type4="N238" k1="0.18828" k2="0.89956" k3="-0.60668" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224K" type3="C235" type4="N238" k1="0.18828" k2="0.89956" k3="-0.60668" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224S" type3="C235" type4="N238" k1="-0.06276" k2="0" k3="0.25104" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224Y" type3="C235" type4="N238" k1="0.18828" k2="0.89956" k3="-0.60668" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224A" type3="C235" type4="N238" k1="0.18828" k2="0.87864" k3="-0.60668" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224A" type3="C235" type4="N239" k1="0.37656" k2="1.75728" k3="-1.21336" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224S" type3="C235" type4="N239" k1="-0.12552" k2="0" k3="0.50208" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224K" type3="C235" type4="N239" k1="0.37656" k2="1.79912" k3="-1.21336" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224Y" type3="C235" type4="N239" k1="0.37656" k2="1.79912" k3="-1.21336" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224I" type3="C235" type4="N239" k1="0.18828" k2="0.89956" k3="-0.60668" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224" type3="C235" type4="N239" k1="0.18828" k2="0.89956" k3="-0.60668" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224I" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224A" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224S" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224K" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224Y" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C223" type3="C267" type4="O268" k1="11.00392" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224" type3="C267" type4="O268" k1="11.00392" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224I" type3="C267" type4="O268" k1="11.00392" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224A" type3="C267" type4="O268" k1="11.00392" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224S" type3="C267" type4="O268" k1="11.00392" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224K" type3="C267" type4="O268" k1="11.00392" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224Y" type3="C267" type4="O268" k1="11.00392" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C223" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224I" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224A" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224S" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224K" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C224Y" type3="C267" type4="O269" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C235" type3="C246" type4="N239" k1="4.41412" k2="1.9874" k3="-4.93712" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C235" type3="C292" type4="N287" k1="3.78652" k2="4.50826" k3="-0.98324" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C235" type3="C293" type4="N287" k1="3.78652" k2="4.50826" k3="-0.98324" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C235" type3="C295" type4="N309" k1="-1.96648" k2="5.76346" k3="-5.58564" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C283" type3="C157" type4="O154" k1="13.091736" k2="-2.169404" k3="2.859764" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C283" type3="C158" type4="O154" k1="13.091736" k2="-2.169404" k3="2.859764" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C283" type3="C206" type4="S200" k1="4.29906" k2="1.106668" k3="1.138048" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C283" type3="C214" type4="S203" k1="4.29906" k2="1.106668" k3="1.138048" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C283" type3="C271" type4="O272" k1="0" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N238" type2="C284" type3="C271" type4="O272" k1="0" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N239" type2="C235" type3="C246" type4="N239" k1="4.41412" k2="1.9874" k3="-4.93712" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N239" type2="C235" type3="C293" type4="N287" k1="3.78652" k2="4.50826" k3="-0.98324" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N239" type2="C235" type3="C295" type4="N309" k1="-1.96648" k2="5.76346" k3="-5.58564" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N239" type2="C246" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N239" type2="C285" type3="C271" type4="O272" k1="0" k2="1.71544" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N287" type2="C292" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N287" type2="C293" type3="C157" type4="O154" k1="13.091736" k2="-2.169404" k3="2.859764" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N287" type2="C293" type3="C158" type4="O154" k1="13.091736" k2="-2.169404" k3="2.859764" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N287" type2="C293" type3="C206" type4="S200" k1="4.29906" k2="1.106668" k3="1.138048" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N287" type2="C293" type3="C214" type4="S203" k1="4.29906" k2="1.106668" k3="1.138048" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N287" type2="C293" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N309" type2="C295" type3="C235" type4="O236" k1="0" k2="0" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="N503" type2="C508" type3="C507" type4="N511" k1="0" k2="22.489" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C136" type3="C293" type4="N287" k1="-11.508092" k2="3.194484" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C235" type2="C293" type3="C136" type4="C267" k1="1.251016" k2="3.259336" k3="0.53346" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C136" type3="C283" type4="N238" k1="-11.508092" k2="3.194484" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="C267" type2="C136" type3="C283" type4="C271" k1="1.251016" k2="3.259336" k3="0.53346" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C145" type3="C145" type4="" k1="0" k2="15.167" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C145" type3="C166" type4="" k1="0" k2="15.167" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C166" type3="C145" type4="" k1="0" k2="15.167" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C145" type3="C501" type4="" k1="0" k2="14.644" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C501" type3="C145" type4="" k1="0" k2="14.644" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C145" type3="C502" type4="" k1="0" k2="15.167" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C502" type3="C145" type4="" k1="0" k2="15.167" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="N300" type3="C302" type4="" k1="0" k2="8.1588" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C302" type3="N300" type4="" k1="0" k2="8.1588" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C500" type3="C501" type4="" k1="0" k2="7.0082" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C501" type3="C500" type4="" k1="0" k2="7.0082" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C500" type3="C514" type4="" k1="0" k2="27.3006" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C514" type3="C500" type4="" k1="0" k2="27.3006" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C501" type3="C502" type4="" k1="0" k2="12.552" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C502" type3="C501" type4="" k1="0" k2="12.552" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="N503" type3="C502" type4="" k1="0" k2="6.3806" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C502" type3="N503" type4="" k1="0" k2="6.3806" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C506" type3="N503" type4="" k1="0" k2="9.7278" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="N503" type3="C506" type4="" k1="0" k2="9.7278" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="N511" type3="C506" type4="" k1="0" k2="20.92" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C506" type3="N511" type4="" k1="0" k2="20.92" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C507" type3="C508" type4="" k1="0" k2="22.489" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C508" type3="C507" type4="" k1="0" k2="22.489" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="N511" type3="C507" type4="" k1="0" k2="10.0416" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C507" type3="N511" type4="" k1="0" k2="10.0416" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="N512" type3="C509" type4="" k1="0" k2="9.7278" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C509" type3="N512" type4="" k1="0" k2="9.7278" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C510" type3="C510" type4="" k1="0" k2="22.489" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="N503" type3="C514" type4="" k1="0" k2="6.276" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Proper type1="" type2="C514" type3="N503" type4="" k1="0" k2="6.276" k3="0" k4="0.0" periodicity1="1" periodicity2="2" periodicity3="3" periodicity4="4" phase1="0.00" phase2="3.141592653589793" phase3="0.00" phase4="3.141592653589793"/>
<Improper type1="C500" type2="C136" type3="C501" type4="C514" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C500" type2="C136" type3="C514" type4="C501" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C502" type2="C145" type3="C501" type4="N503" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C502" type2="C145" type3="N503" type4="C501" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C145" type2="C149" type3="C145" type4="C145" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="C245" type3="C235" type4="C285" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="C245" type3="C285" type4="C235" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N239" type2="C245" type3="C235" type4="C246" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N239" type2="C245" type3="C235" type4="C285" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N239" type2="C245" type3="C246" type4="C235" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N239" type2="C245" type3="C285" type4="C235" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C501" type2="C502" type3="C145" type4="C500" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C501" type2="C502" type3="C500" type4="C145" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C507" type2="C505" type3="C508" type4="N511" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C507" type2="C505" type3="N511" type4="C508" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C508" type2="C505" type3="C507" type4="N503" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C508" type2="C505" type3="N503" type4="C507" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C510" type2="C505" type3="C510" type4="N512" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C510" type2="C505" type3="N512" type4="C510" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C145" type2="H146" type3="C145" type4="C145" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C145" type2="H146" type3="C166" type4="C145" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C145" type2="H146" type3="C145" type4="C166" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C145" type2="H146" type3="C145" type4="C501" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C145" type2="H146" type3="C501" type4="C145" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C145" type2="H146" type3="C145" type4="C502" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C145" type2="H146" type3="C502" type4="C145" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C506" type2="H146" type3="N503" type4="N511" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C506" type2="H146" type3="N511" type4="N503" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C507" type2="H146" type3="C508" type4="N511" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C507" type2="H146" type3="N511" type4="C508" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C508" type2="H146" type3="C507" type4="N503" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C508" type2="H146" type3="N503" type4="C507" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C509" type2="H146" type3="N512" type4="N512" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C510" type2="H146" type3="C510" type4="N512" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C510" type2="H146" type3="N512" type4="C510" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C514" type2="H146" type3="C500" type4="N503" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C514" type2="H146" type3="N503" type4="C500" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N237" type2="H240" type3="C235" type4="H240" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N237" type2="H240" type3="H240" type4="C235" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C223" type4="C235" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C224" type4="C235" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C224I" type4="C235" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C224A" type4="C235" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C224S" type4="C235" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C224K" type4="C235" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C224Y" type4="C235" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C235" type4="C223" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C235" type4="C224" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C235" type4="C224I" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C235" type4="C224A" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C235" type4="C224S" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C235" type4="C224K" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C235" type4="C224Y" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C235" type4="C242" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C235" type4="C283" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C235" type4="C284" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C242" type4="C235" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C283" type4="C235" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N238" type2="H241" type3="C284" type4="C235" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N300" type2="H301" type3="C302" type4="H301" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N300" type2="H301" type3="H301" type4="C302" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N303" type2="H304" type3="C302" type4="C307" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N303" type2="H304" type3="C307" type4="C302" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N503" type2="H504" type3="C502" type4="C514" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N503" type2="H504" type3="C506" type4="C508" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N503" type2="H504" type3="C508" type4="C506" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N503" type2="H504" type3="C514" type4="C502" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N512" type2="H513" type3="C509" type4="C510" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="N512" type2="H513" type3="C510" type4="C509" k1="10.46" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C302" type2="N300" type3="N300" type4="N303" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C302" type2="N300" type3="N303" type4="N300" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C166" type2="O167" type3="C145" type4="C145" k1="4.6024" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C135" type4="N239" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C135" type4="N238" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C136" type4="N237" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C223" type4="N238" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C223" type4="N239" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C224" type4="N238" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C224I" type4="N238" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C224A" type4="N238" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C224S" type4="N238" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C224K" type4="N238" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C224Y" type4="N238" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C224" type4="N239" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C224I" type4="N239" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C224A" type4="N239" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C224S" type4="N239" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C224K" type4="N239" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C224Y" type4="N239" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C246" type4="N238" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C246" type4="N239" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C292" type4="N238" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C293" type4="N238" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C293" type4="N239" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C295" type4="N238" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="C295" type4="N239" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N237" type4="C136" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N238" type4="C135" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N238" type4="C223" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N238" type4="C224" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N238" type4="C224I" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N238" type4="C224A" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N238" type4="C224S" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N238" type4="C224K" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N238" type4="C224Y" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N238" type4="C246" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N238" type4="C292" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N238" type4="C293" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N238" type4="C295" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N239" type4="C135" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N239" type4="C223" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N239" type4="C224" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N239" type4="C224A" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N239" type4="C224S" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N239" type4="C224K" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N239" type4="C224Y" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N239" type4="C246" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N239" type4="C293" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C235" type2="O236" type3="N239" type4="C295" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O269" type3="C136" type4="O268" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O269" type3="O268" type4="C136" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O269" type3="C224" type4="O268" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O269" type3="C224I" type4="O268" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O269" type3="C224A" type4="O268" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O269" type3="C224S" type4="O268" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O269" type3="C224K" type4="O268" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O269" type3="C224Y" type4="O268" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O269" type3="O268" type4="C224" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O269" type3="O268" type4="C224I" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O269" type3="O268" type4="C224A" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O269" type3="O268" type4="C224S" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O269" type3="O268" type4="C224K" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O269" type3="O268" type4="C224Y" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C271" type2="O272" type3="C274" type4="O272" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C271" type2="O272" type3="C283" type4="O272" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C271" type2="O272" type3="C284" type4="O272" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C271" type2="O272" type3="C285" type4="O272" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C271" type2="O272" type3="O272" type4="C274" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C271" type2="O272" type3="O272" type4="C283" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C271" type2="O272" type3="O272" type4="C284" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C271" type2="O272" type3="O272" type4="C285" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O268" type3="C136" type4="O269" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O268" type3="C223" type4="O269" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O268" type3="C224" type4="O269" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O268" type3="C224I" type4="O269" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O268" type3="C224A" type4="O269" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O268" type3="C224S" type4="O269" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O268" type3="C224K" type4="O269" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
<Improper type1="C267" type2="O268" type3="C224Y" type4="O269" k1="43.932" periodicity1="2" phase1="3.141592653589793" />
</PeriodicTorsionForce>
<NonbondedForce coulomb14scale="0.5" lj14scale="0.5">
<UseAttributeFromResidue name="charge"/>
<Atom epsilon="1" sigma="1" type="C235"/>
<Atom epsilon="1" sigma="1" type="C267"/>
<Atom epsilon="1" sigma="1" type="C271"/>
<Atom epsilon="1" sigma="1" type="C145"/>
<Atom epsilon="1" sigma="1" type="C166"/>
<Atom epsilon="1" sigma="1" type="C302"/>
<Atom epsilon="1" sigma="1" type="C501"/>
<Atom epsilon="1" sigma="1" type="C502"/>
<Atom epsilon="1" sigma="1" type="C506"/>
<Atom epsilon="1" sigma="1" type="C509"/>
<Atom epsilon="1" sigma="1" type="C500"/>
<Atom epsilon="1" sigma="1" type="C135"/>
<Atom epsilon="1" sigma="1" type="C136"/>
<Atom epsilon="1" sigma="1" type="C137"/>
<Atom epsilon="1" sigma="1" type="C149"/>
<Atom epsilon="1" sigma="1" type="C157"/>
<Atom epsilon="1" sigma="1" type="C158"/>
<Atom epsilon="1" sigma="1" type="C206"/>
<Atom epsilon="1" sigma="1" type="C209"/>
<Atom epsilon="1" sigma="1" type="C210"/>
<Atom epsilon="1" sigma="1" type="C214"/>
<Atom epsilon="1" sigma="1" type="C223"/>
<Atom epsilon="1" sigma="1" type="C224"/>
<Atom epsilon="1" sigma="1" type="C224A"/>
<Atom epsilon="1" sigma="1" type="C224I"/>
<Atom epsilon="1" sigma="1" type="C224S"/>
<Atom epsilon="1" sigma="1" type="C224Y"/>
<Atom epsilon="1" sigma="1" type="C224K"/>
<Atom epsilon="1" sigma="1" type="C242"/>
<Atom epsilon="1" sigma="1" type="C245"/>
<Atom epsilon="1" sigma="1" type="C246"/>
<Atom epsilon="1" sigma="1" type="C274"/>
<Atom epsilon="1" sigma="1" type="C283"/>
<Atom epsilon="1" sigma="1" type="C284"/>
<Atom epsilon="1" sigma="1" type="C285"/>
<Atom epsilon="1" sigma="1" type="C292"/>
<Atom epsilon="1" sigma="1" type="C293"/>
<Atom epsilon="1" sigma="1" type="C295"/>
<Atom epsilon="1" sigma="1" type="C296"/>
<Atom epsilon="1" sigma="1" type="C307"/>
<Atom epsilon="1" sigma="1" type="C308"/>
<Atom epsilon="1" sigma="1" type="C505"/>
<Atom epsilon="1" sigma="1" type="C507"/>
<Atom epsilon="1" sigma="1" type="C508"/>
<Atom epsilon="1" sigma="1" type="C514"/>
<Atom epsilon="1" sigma="1" type="C510"/>
<Atom epsilon="1" sigma="1" type="H240"/>
<Atom epsilon="1" sigma="1" type="H241"/>
<Atom epsilon="1" sigma="1" type="H504"/>
<Atom epsilon="1" sigma="1" type="H513"/>
<Atom epsilon="1" sigma="1" type="H290"/>
<Atom epsilon="1" sigma="1" type="H301"/>
<Atom epsilon="1" sigma="1" type="H304"/>
<Atom epsilon="1" sigma="1" type="H310"/>
<Atom epsilon="1" sigma="1" type="H146"/>
<Atom epsilon="1" sigma="1" type="H140"/>
<Atom epsilon="1" sigma="1" type="H155"/>
<Atom epsilon="1" sigma="1" type="H168"/>
<Atom epsilon="1" sigma="1" type="H270"/>
<Atom epsilon="1" sigma="1" type="H204"/>
<Atom epsilon="1" sigma="1" type="N237"/>
<Atom epsilon="1" sigma="1" type="N238"/>
<Atom epsilon="1" sigma="1" type="N239"/>
<Atom epsilon="1" sigma="1" type="N300"/>
<Atom epsilon="1" sigma="1" type="N303"/>
<Atom epsilon="1" sigma="1" type="N287"/>
<Atom epsilon="1" sigma="1" type="N309"/>
<Atom epsilon="1" sigma="1" type="N503"/>
<Atom epsilon="1" sigma="1" type="N512"/>
<Atom epsilon="1" sigma="1" type="N511"/>
<Atom epsilon="1" sigma="1" type="O236"/>
<Atom epsilon="1" sigma="1" type="O269"/>
<Atom epsilon="1" sigma="1" type="O272"/>
<Atom epsilon="1" sigma="1" type="O154"/>
<Atom epsilon="1" sigma="1" type="O167"/>
<Atom epsilon="1" sigma="1" type="O268"/>
<Atom epsilon="1" sigma="1" type="S202"/>
<Atom epsilon="1" sigma="1" type="S203"/>
<Atom epsilon="1" sigma="1" type="S200"/>
<!--WATER -->
<Atom epsilon="0.635968" sigma="0.31507524065751241" type="tip3p-O"/>
<Atom epsilon="0" sigma="1" type="tip3p-H"/>
<!--DATA FOR IONS -->
<Atom epsilon="0" sigma="1" type="SOD"/>
<Atom epsilon="0" sigma="1" type="CLA"/>
</NonbondedForce>
</ForceField>''')
| 98.197131
| 270
| 0.653924
| 66,328
| 451,805
| 4.453474
| 0.031163
| 0.123335
| 0.046027
| 0.057632
| 0.950658
| 0.941342
| 0.922123
| 0.840069
| 0.83859
| 0.830228
| 0
| 0.2864
| 0.120266
| 451,805
| 4,600
| 271
| 98.218478
| 0.456779
| 0.001826
| 0
| 0.389072
| 0
| 0.312925
| 0.993376
| 0.145265
| 0
| 0
| 0
| 0
| 0
| 1
| 0.000878
| false
| 0
| 0.000658
| 0
| 0.001756
| 0.000439
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
ea530c5d9061ed01a139d105ec8130026637d236
| 1,135
|
py
|
Python
|
staffjoy/exceptions.py
|
itworxs/suite
|
36a6f354a826862c50d5e5f218eafb6c14152295
|
[
"MIT"
] | 890
|
2017-02-25T07:11:09.000Z
|
2022-03-08T05:49:20.000Z
|
staffjoy/exceptions.py
|
itworxs/suite
|
36a6f354a826862c50d5e5f218eafb6c14152295
|
[
"MIT"
] | 12
|
2016-02-21T21:23:44.000Z
|
2017-04-03T22:44:03.000Z
|
staffjoy/exceptions.py
|
nfriedly/suite
|
c58c772d98d1476cad0531b8a296f27ad2ab945c
|
[
"MIT"
] | 276
|
2017-02-25T09:01:23.000Z
|
2022-03-19T02:24:02.000Z
|
class UnauthorizedException(Exception):
def __init__(self, code=401, response={}):
self.code = code
# We envelope error messages like this
self.message = response.get("message", "Unknown Error")
super(UnauthorizedException, self).__init__()
def __str__(self):
return "\n Code: {} \n Message: {} \n".format(self.code, self.message)
class NotFoundException(Exception):
def __init__(self, code=404, response={}):
self.code = code
# We envelope error messages like this
self.message = response.get("message", "Unknown Error")
super(NotFoundException, self).__init__()
def __str__(self):
return "\n Code: {} \n Message: {} \n".format(self.code, self.message)
class BadRequestException(Exception):
def __init__(self, code=400, response={}):
self.code = code
# We envelope error messages like this
self.message = response.get("message", "Unknown Error")
super(BadRequestException, self).__init__()
def __str__(self):
return "\n Code: {} \n Message: {} \n".format(self.code, self.message)
| 32.428571
| 78
| 0.639648
| 129
| 1,135
| 5.348837
| 0.209302
| 0.104348
| 0.069565
| 0.086957
| 0.814493
| 0.710145
| 0.710145
| 0.710145
| 0.710145
| 0.710145
| 0
| 0.010239
| 0.225551
| 1,135
| 34
| 79
| 33.382353
| 0.774744
| 0.096916
| 0
| 0.571429
| 0
| 0
| 0.143976
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0
| 0.142857
| 0.571429
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 0
|
0
| 8
|
57925bd5b8c964b3cb7f7f4d1875d03c12ec8cda
| 2,765
|
py
|
Python
|
tests/test_udb_index_when_get_cover_key.py
|
akaterra/udb.py
|
3c04fa788e4b2fc8356c1210b9d81004aa932c0b
|
[
"MIT"
] | 2
|
2020-01-04T12:04:58.000Z
|
2020-02-15T16:32:12.000Z
|
tests/test_udb_index_when_get_cover_key.py
|
akaterra/udb.py
|
3c04fa788e4b2fc8356c1210b9d81004aa932c0b
|
[
"MIT"
] | null | null | null |
tests/test_udb_index_when_get_cover_key.py
|
akaterra/udb.py
|
3c04fa788e4b2fc8356c1210b9d81004aa932c0b
|
[
"MIT"
] | null | null | null |
import pytest
from udb_py.common import FieldRequiredError, required, type_formatter_iter
from udb_py.udb_index import UdbIndex
def test_should_get_cover_key_on_full_covered_data():
i = UdbIndex(['a', 'b', 'c'])
d = {'a': 1, 'b': 2, 'c': 3}
assert i.get_cover_key(d) == ''.join(type_formatter_iter([1, 2, 3]))
def test_should_not_get_cover_key_on_not_covered_data():
i = UdbIndex(['a', 'b', 'c'])
d = {'a': 1, 'c': 3}
assert i.get_cover_key(d) is None
def test_should_get_cover_key_on_not_covered_data_with_default_value():
i = UdbIndex((('a', required), ('b', 2), ('c', required)))
d = {'a': 1, 'c': 3}
assert i.get_cover_key(d) == ''.join(type_formatter_iter([1, 2, 3]))
def test_should_get_cover_key_on_not_covered_data_with_default_value_as_callable():
i = UdbIndex((('a', required), ('b', lambda key, values: 2), ('c', required)))
d = {'a': 1, 'c': 3}
assert i.get_cover_key(d) == ''.join(type_formatter_iter([1, 2, 3]))
def test_should_get_cover_key_on_not_covered_data_as_sparsed():
i = UdbIndex(['a', 'b', 'c'], sparsed=True)
d = {'a': 1, 'c': 3}
assert i.get_cover_key(d) == ''.join(type_formatter_iter([1, None, 3]))
def test_should_not_get_cover_key_on_fully_uncovered_data_as_sparsed():
i = UdbIndex(['a', 'b', 'c'], sparsed=True)
d = {}
assert i.get_cover_key(d) is None
def test_should_get_cover_key_or_raise_on_full_covered_data():
i = UdbIndex(['a', 'b', 'c'])
d = {'a': 1, 'b': 2, 'c': 3}
assert i.get_cover_key_or_raise(d) == ''.join(type_formatter_iter([1, 2, 3]))
def test_should_raise_exception_on_required_field_in_get_cover_key_or_raise():
i = UdbIndex(['a', 'b', 'c'])
with pytest.raises(FieldRequiredError):
i.get_cover_key_or_raise({'a': 1, 'c': 3})
def test_should_get_cover_key_or_raise_on_not_covered_data_with_default_value():
i = UdbIndex((('a', required), ('b', 2), ('c', required)))
d = {'a': 1, 'c': 3}
assert i.get_cover_key_or_raise(d) == ''.join(type_formatter_iter([1, 2, 3]))
def test_should_get_cover_key_or_raise_on_not_covered_data_with_default_value_as_callable():
i = UdbIndex((('a', required), ('b', lambda key, values: 2), ('c', required)))
d = {'a': 1, 'c': 3}
assert i.get_cover_key_or_raise(d) == ''.join(type_formatter_iter([1, 2, 3]))
def test_should_get_cover_key_or_raise_on_not_covered_data_as_sparsed():
i = UdbIndex(['a', 'b', 'c'], sparsed=True)
d = {'a': 1, 'c': 3}
assert i.get_cover_key_or_raise(d) == ''.join(type_formatter_iter([1, None, 3]))
def test_should_not_get_cover_or_raise_key_on_fully_uncovered_data_as_sparsed():
i = UdbIndex(['a', 'b', 'c'], sparsed=True)
d = {}
assert i.get_cover_key_or_raise(d) is None
| 31.067416
| 92
| 0.662206
| 469
| 2,765
| 3.490405
| 0.113006
| 0.117288
| 0.154551
| 0.087966
| 0.885156
| 0.86683
| 0.855223
| 0.838729
| 0.833842
| 0.819792
| 0
| 0.020583
| 0.1566
| 2,765
| 88
| 93
| 31.420455
| 0.681389
| 0
| 0
| 0.607843
| 0
| 0
| 0.020976
| 0
| 0
| 0
| 0
| 0
| 0.215686
| 1
| 0.235294
| false
| 0
| 0.058824
| 0
| 0.294118
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
17efbc0cad83d6a2e2238aa2e3384ff67fbb9841
| 3,497
|
py
|
Python
|
pyfcopy_test/functional/test_merge.py
|
arnegroskurth/pyfcopy
|
4249497a614e9a2c287969f0070072eb4e16fd86
|
[
"MIT"
] | null | null | null |
pyfcopy_test/functional/test_merge.py
|
arnegroskurth/pyfcopy
|
4249497a614e9a2c287969f0070072eb4e16fd86
|
[
"MIT"
] | 3
|
2020-05-27T21:19:17.000Z
|
2020-05-27T21:20:01.000Z
|
pyfcopy_test/functional/test_merge.py
|
arnegroskurth/pyfcopy
|
4249497a614e9a2c287969f0070072eb4e16fd86
|
[
"MIT"
] | null | null | null |
from pathlib import Path
import pytest
from pyfcopy import index, merge
from pyfcopy_test.index_assertions import assert_same_index
def test_empty(tmp_path: Path):
(tmp_path / "source").mkdir()
(tmp_path / "target").mkdir()
merge(tmp_path / "source", tmp_path / "target")
assert_same_index(index(tmp_path / "target"), {"."})
@pytest.mark.parametrize("relative_path", ["file", "symlink", "non-existent", "target"])
def test_invalid_source(relative_path: str, tmp_path: Path):
(tmp_path / "target").mkdir()
(tmp_path / "file").touch()
(tmp_path / "symlink").symlink_to(tmp_path / "file")
with pytest.raises(ValueError):
merge(tmp_path / relative_path, tmp_path / "target")
@pytest.mark.parametrize("relative_path", ["file", "symlink", "non-existent", "source"])
def test_invalid_target(relative_path: str, tmp_path: Path):
(tmp_path / "source").mkdir()
(tmp_path / "file").touch()
(tmp_path / "symlink").symlink_to(tmp_path / "file")
with pytest.raises(ValueError):
merge(tmp_path / "source", tmp_path / relative_path)
def test_collision_detection_file(tmp_path: Path):
(tmp_path / "source").mkdir()
(tmp_path / "source/file").touch()
(tmp_path / "target").mkdir()
(tmp_path / "target/file").touch()
with pytest.raises(ValueError):
merge(tmp_path / "source", tmp_path / "target")
def test_collision_detection_file_and_dir(tmp_path: Path):
(tmp_path / "source").mkdir()
(tmp_path / "source/foo").touch()
(tmp_path / "target").mkdir()
(tmp_path / "target/foo").mkdir()
with pytest.raises(ValueError):
merge(tmp_path / "source", tmp_path / "target")
def test_collision_detection_dir_and_file(tmp_path: Path):
(tmp_path / "source").mkdir()
(tmp_path / "source/foo").mkdir()
(tmp_path / "target").mkdir()
(tmp_path / "target/foo").touch()
with pytest.raises(ValueError):
merge(tmp_path / "source", tmp_path / "target")
def test_dir_replaced_by_file(tmp_path: Path):
(tmp_path / "source").mkdir()
(tmp_path / "source/foo").touch()
(tmp_path / "target").mkdir()
(tmp_path / "target/foo").mkdir()
merge(tmp_path / "source", tmp_path / "target", overwrite=True)
assert (tmp_path / "target/foo").is_file()
def test_file_replaced_by_dir(tmp_path: Path):
(tmp_path / "source").mkdir()
(tmp_path / "source/foo").mkdir()
(tmp_path / "target").mkdir()
(tmp_path / "target/foo").touch()
merge(tmp_path / "source", tmp_path / "target", overwrite=True)
assert (tmp_path / "target/foo").is_dir()
def test_file_replaced_by_file(tmp_path: Path):
(tmp_path / "source").mkdir()
(tmp_path / "source/foo").write_text("foo")
(tmp_path / "target").mkdir()
(tmp_path / "target/foo").write_text("bar")
merge(tmp_path / "source", tmp_path / "target", overwrite=True)
assert (tmp_path / "target/foo").read_text() == "foo"
def test_no_collisions(tmp_path: Path):
(tmp_path / "source").mkdir()
(tmp_path / "source/file1").touch()
(tmp_path / "source/dir1").mkdir()
(tmp_path / "source/dir1/file2").touch()
(tmp_path / "target").mkdir()
(tmp_path / "target/file3").touch()
(tmp_path / "target/dir1").mkdir()
(tmp_path / "target/dir1/file4").touch()
merge(tmp_path / "source", tmp_path / "target")
assert_same_index(index(tmp_path / "target"), {
".", "file1", "file3", "dir1", "dir1/file2", "dir1/file4",
})
| 26.293233
| 88
| 0.645982
| 461
| 3,497
| 4.618221
| 0.114967
| 0.253171
| 0.195397
| 0.093001
| 0.802724
| 0.771254
| 0.768436
| 0.768436
| 0.691404
| 0.663222
| 0
| 0.005198
| 0.174721
| 3,497
| 132
| 89
| 26.492424
| 0.732502
| 0
| 0
| 0.551282
| 0
| 0
| 0.17706
| 0
| 0
| 0
| 0
| 0
| 0.076923
| 1
| 0.128205
| false
| 0
| 0.051282
| 0
| 0.179487
| 0
| 0
| 0
| 0
| null | 1
| 1
| 0
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a4c1e38a138be3378b40a9f8544efacc4a03ecc3
| 18,931
|
py
|
Python
|
avionix/kube/admissionregistration.py
|
Maxiimeeb/avionix
|
c149e4319c8c8c00d50450ec1644545340ff7322
|
[
"BSD-3-Clause"
] | 51
|
2020-07-17T11:42:44.000Z
|
2022-03-17T23:51:28.000Z
|
avionix/kube/admissionregistration.py
|
Maxiimeeb/avionix
|
c149e4319c8c8c00d50450ec1644545340ff7322
|
[
"BSD-3-Clause"
] | 55
|
2020-07-14T21:21:14.000Z
|
2022-03-04T22:43:10.000Z
|
avionix/kube/admissionregistration.py
|
Maxiimeeb/avionix
|
c149e4319c8c8c00d50450ec1644545340ff7322
|
[
"BSD-3-Clause"
] | 9
|
2021-01-05T01:52:14.000Z
|
2022-02-16T12:42:18.000Z
|
"""
Various webhook configurations
"""
from typing import List, Optional
from avionix.kube.apiextensions import WebhookClientConfig
from avionix.kube.base_objects import AdmissionRegistration
from avionix.kube.meta import LabelSelector, ObjectMeta
from avionix.yaml.yaml_handling import HelmYaml
class RuleWithOperations(HelmYaml):
"""
:param api_groups: APIGroups is the API groups the resources belong to. '\\*' is \
all groups. If '\\*' is present, the length of the slice must be one. \
Required.
:param api_versions: APIVersions is the API versions the resources belong to. '\\*' \
is all versions. If '\\*' is present, the length of the slice must be one. \
Required.
:param operations: Operations is the operations the admission hook cares about - \
CREATE, UPDATE, or * for all operations. If '\\*' is present, the length of \
the slice must be one. Required.
:param resources: Resources is a list of resources this rule applies to. For \
example: 'pods' means pods. 'pods/log' means the log subresource of pods. \
'\\*' means all resources, but not subresources. 'pods/\\*' means all \
subresources of pods. '\\*/scale' means all scale subresources. '\\*/\\*' \
means all resources and their subresources. If wildcard is present, the \
validation rule will ensure resources do not overlap with each other. \
Depending on the enclosing object, subresources might not be allowed. \
Required.
:param scope: scope specifies the scope of this rule. Valid values are "Cluster", \
"Namespaced", and "*" "Cluster" means that only cluster-scoped resources will \
match this rule. Namespace API objects are cluster-scoped. "Namespaced" means \
that only namespaced resources will match this rule. "*" means that there are \
no scope restrictions. Subresources match the scope of their parent resource. \
Default is "*".
"""
def __init__(
self,
api_groups: List[str],
api_versions: List[str],
operations: List[str],
resources: List[str],
scope: Optional[str] = None,
):
self.apiGroups = api_groups
self.apiVersions = api_versions
self.operations = operations
self.resources = resources
self.scope = scope
class ValidatingWebhook(HelmYaml):
"""
:param name: The name of the admission webhook. Name should be fully qualified, \
e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the \
webhook, and kubernetes.io is the name of the organization. Required.
:param admission_review_versions: AdmissionReviewVersions is an ordered list of \
preferred `AdmissionReview` versions the Webhook expects. API server will try \
to use first version in the list which it supports. If none of the versions \
specified in this list supported by API server, validation will fail for this \
object. If a persisted webhook configuration specifies allowed versions and \
does not include any versions known to the API Server, calls to the webhook \
will fail and be subject to the failure policy.
:param client_config: ClientConfig defines how to communicate with the hook. \
Required
:param side_effects: SideEffects states whether this webhook has side effects. \
Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may \
also specify Some or Unknown). Webhooks with side effects MUST implement a \
reconciliation system, since a request may be rejected by a future step in the \
admission change and the side effects therefore need to be undone. Requests \
with the dryRun attribute will be auto-rejected if they match a webhook with \
sideEffects == Unknown or Some.
:param failure_policy: FailurePolicy defines how unrecognized errors from the \
admission endpoint are handled - allowed values are Ignore or Fail. Defaults \
to Fail.
:param match_policy: matchPolicy defines how the "rules" list is used to match \
incoming requests. Allowed values are "Exact" or "Equivalent". - Exact: match \
a request only if it exactly matches a specified rule. For example, if \
deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, \
but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: \
["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be \
sent to the webhook. - Equivalent: match a request if modifies a resource \
listed in rules, even via another API group or version. For example, if \
deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, \
and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: \
["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be \
converted to apps/v1 and sent to the webhook. Defaults to "Equivalent"
:param namespace_selector: NamespaceSelector decides whether to run the webhook on \
an object based on whether the namespace for that object matches the selector. \
If the object itself is a namespace, the matching is performed on \
object.metadata.labels. If the object is another cluster scoped resource, it \
never skips the webhook. For example, to run the webhook on any objects whose \
namespace is not associated with "runlevel" of "0" or "1"; you will set the \
selector as follows: "namespaceSelector": { "matchExpressions": [ { \
"key": "runlevel", "operator": "NotIn", "values": [ "0", \
"1" ] } ] } If instead you want to only run the webhook on \
any objects whose namespace is associated with the "environment" of "prod" or \
"staging"; you will set the selector as follows: "namespaceSelector": { \
"matchExpressions": [ { "key": "environment", "operator": \
"In", "values": [ "prod", "staging" ] } ] } \
See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels \
for more examples of label selectors. Default to the empty LabelSelector, \
which matches everything.
:param object_selector: ObjectSelector decides whether to run the webhook based on \
if the object has matching labels. objectSelector is evaluated against both \
the oldObject and newObject that would be sent to the webhook, and is \
considered to match if either object matches the selector. A null object \
(oldObject in the case of create, or newObject in the case of delete) or an \
object that cannot have labels (like a DeploymentRollback or a PodProxyOptions \
object) is not considered to match. Use the object selector only if the \
webhook is opt-in, because end users may skip the admission webhook by setting \
the labels. Default to the empty LabelSelector, which matches everything.
:param rules: Rules describes what operations on what resources/subresources the \
webhook cares about. The webhook cares about an operation if it matches _any_ \
Rule. However, in order to prevent ValidatingAdmissionWebhooks and \
MutatingAdmissionWebhooks from putting the cluster in a state which cannot be \
recovered from without completely disabling the plugin, \
ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on \
admission requests for ValidatingWebhookConfiguration and \
MutatingWebhookConfiguration objects.
:param timeout_seconds: TimeoutSeconds specifies the timeout for this webhook. \
After the timeout passes, the webhook call will be ignored or the API call \
will fail based on the failure policy. The timeout value must be between 1 and \
30 seconds. Default to 10 seconds.
"""
def __init__(
self,
name: str,
admission_review_versions: List[str],
client_config: WebhookClientConfig,
side_effects: str,
failure_policy: Optional[str] = None,
match_policy: Optional[str] = None,
namespace_selector: Optional[LabelSelector] = None,
object_selector: Optional[LabelSelector] = None,
rules: Optional[List[RuleWithOperations]] = None,
timeout_seconds: Optional[int] = None,
):
self.name = name
self.admissionReviewVersions = admission_review_versions
self.clientConfig = client_config
self.sideEffects = side_effects
self.failurePolicy = failure_policy
self.matchPolicy = match_policy
self.namespaceSelector = namespace_selector
self.objectSelector = object_selector
self.rules = rules
self.timeoutSeconds = timeout_seconds
class ValidatingWebhookConfiguration(AdmissionRegistration):
"""
:param metadata: Standard object metadata; More info: \
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. # noqa
:param webhooks: Webhooks is a list of webhooks and the affected resources and \
operations.
:param api_version: APIVersion defines the versioned schema of this representation \
of an object. Servers should convert recognized schemas to the latest internal \
value, and may reject unrecognized values. More info: \
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa
"""
def __init__(
self,
metadata: ObjectMeta,
webhooks: List[ValidatingWebhook],
api_version: Optional[str] = None,
):
super().__init__(api_version)
self.metadata = metadata
self.webhooks = webhooks
class MutatingWebhook(HelmYaml):
"""
:param name: The name of the admission webhook. Name should be fully qualified, \
e.g., imagepolicy.kubernetes.io, where "imagepolicy" is the name of the \
webhook, and kubernetes.io is the name of the organization. Required.
:param admission_review_versions: AdmissionReviewVersions is an ordered list of \
preferred `AdmissionReview` versions the Webhook expects. API server will try \
to use first version in the list which it supports. If none of the versions \
specified in this list supported by API server, validation will fail for this \
object. If a persisted webhook configuration specifies allowed versions and \
does not include any versions known to the API Server, calls to the webhook \
will fail and be subject to the failure policy.
:param client_config: ClientConfig defines how to communicate with the hook. \
Required
:param side_effects: SideEffects states whether this webhook has side effects. \
Acceptable values are: None, NoneOnDryRun (webhooks created via v1beta1 may \
also specify Some or Unknown). Webhooks with side effects MUST implement a \
reconciliation system, since a request may be rejected by a future step in the \
admission change and the side effects therefore need to be undone. Requests \
with the dryRun attribute will be auto-rejected if they match a webhook with \
sideEffects == Unknown or Some.
:param failure_policy: FailurePolicy defines how unrecognized errors from the \
admission endpoint are handled - allowed values are Ignore or Fail. Defaults \
to Fail.
:param match_policy: matchPolicy defines how the "rules" list is used to match \
incoming requests. Allowed values are "Exact" or "Equivalent". - Exact: match \
a request only if it exactly matches a specified rule. For example, if \
deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, \
but "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: \
["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would not be \
sent to the webhook. - Equivalent: match a request if modifies a resource \
listed in rules, even via another API group or version. For example, if \
deployments can be modified via apps/v1, apps/v1beta1, and extensions/v1beta1, \
and "rules" only included `apiGroups:["apps"], apiVersions:["v1"], resources: \
["deployments"]`, a request to apps/v1beta1 or extensions/v1beta1 would be \
converted to apps/v1 and sent to the webhook. Defaults to "Equivalent"
:param namespace_selector: NamespaceSelector decides whether to run the webhook on \
an object based on whether the namespace for that object matches the selector. \
If the object itself is a namespace, the matching is performed on \
object.metadata.labels. If the object is another cluster scoped resource, it \
never skips the webhook. For example, to run the webhook on any objects whose \
namespace is not associated with "runlevel" of "0" or "1"; you will set the \
selector as follows: "namespaceSelector": { "matchExpressions": [ { \
"key": "runlevel", "operator": "NotIn", "values": [ "0", \
"1" ] } ] } If instead you want to only run the webhook on \
any objects whose namespace is associated with the "environment" of "prod" or \
"staging"; you will set the selector as follows: "namespaceSelector": { \
"matchExpressions": [ { "key": "environment", "operator": \
"In", "values": [ "prod", "staging" ] } ] } \
See https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/ \
for more examples of label selectors. Default to the empty LabelSelector, \
which matches everything.
:param object_selector: ObjectSelector decides whether to run the webhook based on \
if the object has matching labels. objectSelector is evaluated against both \
the oldObject and newObject that would be sent to the webhook, and is \
considered to match if either object matches the selector. A null object \
(oldObject in the case of create, or newObject in the case of delete) or an \
object that cannot have labels (like a DeploymentRollback or a PodProxyOptions \
object) is not considered to match. Use the object selector only if the \
webhook is opt-in, because end users may skip the admission webhook by setting \
the labels. Default to the empty LabelSelector, which matches everything.
:param reinvocation_policy: reinvocationPolicy indicates whether this webhook \
should be called multiple times as part of a single admission evaluation. \
Allowed values are "Never" and "IfNeeded". Never: the webhook will not be \
called more than once in a single admission evaluation. IfNeeded: the webhook \
will be called at least one additional time as part of the admission \
evaluation if the object being admitted is modified by other admission plugins \
after the initial webhook call. Webhooks that specify this option *must* be \
idempotent, able to process objects they previously admitted. Note: * the \
number of additional invocations is not guaranteed to be exactly one. * if \
additional invocations result in further modifications to the object, webhooks \
are not guaranteed to be invoked again. * webhooks that use this option may be \
reordered to minimize the number of additional invocations. * to validate an \
object after all mutations are guaranteed complete, use a validating admission \
webhook instead. Defaults to "Never".
:param rules: Rules describes what operations on what resources/subresources the \
webhook cares about. The webhook cares about an operation if it matches _any_ \
Rule. However, in order to prevent ValidatingAdmissionWebhooks and \
MutatingAdmissionWebhooks from putting the cluster in a state which cannot be \
recovered from without completely disabling the plugin, \
ValidatingAdmissionWebhooks and MutatingAdmissionWebhooks are never called on \
admission requests for ValidatingWebhookConfiguration and \
MutatingWebhookConfiguration objects.
:param timeout_seconds: TimeoutSeconds specifies the timeout for this webhook. \
After the timeout passes, the webhook call will be ignored or the API call \
will fail based on the failure policy. The timeout value must be between 1 and \
30 seconds. Default to 10 seconds.
"""
def __init__(
self,
name: str,
admission_review_versions: List[str],
client_config: WebhookClientConfig,
side_effects: str,
failure_policy: Optional[str] = None,
match_policy: Optional[str] = None,
namespace_selector: Optional[LabelSelector] = None,
object_selector: Optional[LabelSelector] = None,
reinvocation_policy: Optional[str] = None,
rules: Optional[List[RuleWithOperations]] = None,
timeout_seconds: Optional[int] = None,
):
self.name = name
self.admissionReviewVersions = admission_review_versions
self.clientConfig = client_config
self.sideEffects = side_effects
self.failurePolicy = failure_policy
self.matchPolicy = match_policy
self.namespaceSelector = namespace_selector
self.objectSelector = object_selector
self.reinvocationPolicy = reinvocation_policy
self.rules = rules
self.timeoutSeconds = timeout_seconds
class MutatingWebhookConfiguration(AdmissionRegistration):
"""
:param metadata: Standard object metadata; More info: \
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata. # noqa
:param webhooks: Webhooks is a list of webhooks and the affected resources and \
operations.
:param api_version: APIVersion defines the versioned schema of this representation \
of an object. Servers should convert recognized schemas to the latest internal \
value, and may reject unrecognized values. More info: \
https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa
"""
def __init__(
self,
metadata: ObjectMeta,
webhooks: List[MutatingWebhook],
api_version: Optional[str] = None,
):
super().__init__(api_version)
self.metadata = metadata
self.webhooks = webhooks
| 60.098413
| 109
| 0.688606
| 2,322
| 18,931
| 5.569767
| 0.16236
| 0.024743
| 0.009279
| 0.005567
| 0.822624
| 0.813655
| 0.809789
| 0.809789
| 0.802211
| 0.802211
| 0
| 0.004766
| 0.246263
| 18,931
| 314
| 110
| 60.289809
| 0.901605
| 0.795256
| 0
| 0.730337
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.05618
| false
| 0
| 0.05618
| 0
| 0.168539
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a4ca41b68bc96a37909d805f38f7c8fe9c586f8d
| 1,211
|
py
|
Python
|
tests/iterators/drop_right_while_test.py
|
SSouik/pyutil
|
d2250fb585679e49eb9056a3051bf239a58c2e8b
|
[
"MIT"
] | null | null | null |
tests/iterators/drop_right_while_test.py
|
SSouik/pyutil
|
d2250fb585679e49eb9056a3051bf239a58c2e8b
|
[
"MIT"
] | 21
|
2022-01-05T04:51:33.000Z
|
2022-01-28T05:45:57.000Z
|
tests/iterators/drop_right_while_test.py
|
SSouik/pyutil
|
d2250fb585679e49eb9056a3051bf239a58c2e8b
|
[
"MIT"
] | null | null | null |
import pytest
from pyutil import drop_right_while
def test_drop_right_while_when_list_is_empty():
lst = []
drop_right_while(lst, lambda x: x)
assert lst == []
def test_drop_right_while_when_func_should_remove_one_value():
lst = [1, 2, 3, 4, 5]
func = lambda x: x % 2 == 1
drop_right_while(lst, func)
assert lst == [1, 2, 3, 4]
def test_drop_right_while_when_func_should_remove_four_values():
lst = [1, 2, 3, 4, 5]
func = lambda x: x > 1
drop_right_while(lst, func)
assert lst == [1]
def test_drop_right_while_when_func_should_remove_zero_values():
lst = [1, 2, 3, 4, 5]
func = lambda x: x > 100
drop_right_while(lst, func)
assert lst == [1, 2, 3, 4, 5]
def test_drop_right_while_when_func_is_not_callable():
with pytest.raises(TypeError):
drop_right_while([], "foo")
def test_drop_right_while_with_set():
with pytest.raises(TypeError):
drop_right_while(set([]), lambda x: x)
def test_drop_right_while_with_tuple():
with pytest.raises(TypeError):
drop_right_while((), lambda x: x)
def test_drop_right_while_with_dict():
with pytest.raises(TypeError):
drop_right_while({}, lambda x: x)
| 22.849057
| 64
| 0.678778
| 195
| 1,211
| 3.830769
| 0.205128
| 0.204819
| 0.318608
| 0.171352
| 0.811245
| 0.811245
| 0.742972
| 0.599732
| 0.599732
| 0.313253
| 0
| 0.032292
| 0.207267
| 1,211
| 52
| 65
| 23.288462
| 0.745833
| 0
| 0
| 0.30303
| 0
| 0
| 0.002477
| 0
| 0
| 0
| 0
| 0
| 0.121212
| 1
| 0.242424
| false
| 0
| 0.060606
| 0
| 0.30303
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
a4d13a105094bdea943b544b506fe5ef9180dbe1
| 186
|
py
|
Python
|
src/masoniteorm/commands/Command.py
|
alfonsocv12/orm
|
87b2532c7673a28c143600329df68e0343607f55
|
[
"MIT"
] | 94
|
2020-02-08T21:08:56.000Z
|
2022-03-28T15:24:52.000Z
|
src/masoniteorm/commands/Command.py
|
alfonsocv12/orm
|
87b2532c7673a28c143600329df68e0343607f55
|
[
"MIT"
] | 441
|
2020-02-09T06:17:44.000Z
|
2022-03-30T07:27:39.000Z
|
src/masoniteorm/commands/Command.py
|
alfonsocv12/orm
|
87b2532c7673a28c143600329df68e0343607f55
|
[
"MIT"
] | 28
|
2020-02-26T10:29:05.000Z
|
2022-03-30T19:08:28.000Z
|
from .CanOverrideConfig import CanOverrideConfig
from .CanOverrideOptionsDefault import CanOverrideOptionsDefault
class Command(CanOverrideOptionsDefault, CanOverrideConfig):
pass
| 26.571429
| 64
| 0.870968
| 13
| 186
| 12.461538
| 0.538462
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.096774
| 186
| 6
| 65
| 31
| 0.964286
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0.25
| 0.5
| 0
| 0.75
| 0
| 1
| 0
| 1
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
|
0
| 7
|
a4f255040909a41b1697ab9800681ed58f20edb6
| 195
|
py
|
Python
|
hTools2.roboFontExt/lib/Scripts/current font/glyphs/batch rename.py
|
frankrolf/hTools2_extension
|
9d73b8640c85209853a72f8d4b167768de5e0d60
|
[
"BSD-3-Clause"
] | 2
|
2019-12-18T16:12:07.000Z
|
2019-12-21T01:19:23.000Z
|
hTools2.roboFontExt/lib/Scripts/current font/glyphs/batch rename.py
|
frankrolf/hTools2_extension
|
9d73b8640c85209853a72f8d4b167768de5e0d60
|
[
"BSD-3-Clause"
] | null | null | null |
hTools2.roboFontExt/lib/Scripts/current font/glyphs/batch rename.py
|
frankrolf/hTools2_extension
|
9d73b8640c85209853a72f8d4b167768de5e0d60
|
[
"BSD-3-Clause"
] | null | null | null |
# [h] batch rename glyphs
import hTools2.dialogs.font.glyphs_rename
import importlib
importlib.reload(hTools2.dialogs.font.glyphs_rename)
hTools2.dialogs.font.glyphs_rename.batchRenameGlyphs()
| 24.375
| 54
| 0.841026
| 25
| 195
| 6.44
| 0.44
| 0.26087
| 0.335404
| 0.447205
| 0.559006
| 0
| 0
| 0
| 0
| 0
| 0
| 0.016484
| 0.066667
| 195
| 7
| 55
| 27.857143
| 0.868132
| 0.117949
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.75
| 0
| 0.75
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
3514627e75dfba3cc070d2ad384dead138e34df0
| 148
|
py
|
Python
|
variations/processors/__init__.py
|
dldevinc/variations
|
2614f27bddf0f16fcfca418aa45974dda2ef5658
|
[
"BSD-3-Clause"
] | 1
|
2019-12-27T07:08:56.000Z
|
2019-12-27T07:08:56.000Z
|
variations/processors/__init__.py
|
dldevinc/variations
|
2614f27bddf0f16fcfca418aa45974dda2ef5658
|
[
"BSD-3-Clause"
] | null | null | null |
variations/processors/__init__.py
|
dldevinc/variations
|
2614f27bddf0f16fcfca418aa45974dda2ef5658
|
[
"BSD-3-Clause"
] | null | null | null |
from .base import * # noqa
from .crop import * # noqa
from .filters import * # noqa
from .overlay import * # noqa
from .resize import * # noqa
| 24.666667
| 30
| 0.662162
| 20
| 148
| 4.9
| 0.4
| 0.510204
| 0.571429
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.236486
| 148
| 5
| 31
| 29.6
| 0.867257
| 0.162162
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
35216ddedfc0c0dbd5019568592cb6cc7554ba3f
| 61,856
|
py
|
Python
|
multiple-languages/python/ros-cdk-kms-1.0.4/src/ros_cdk_kms/__init__.py
|
piotr-kalanski/Resource-Orchestration-Service-Cloud-Development-Kit
|
2a12deea757ac69e69708dd9fd159fba12cfba0e
|
[
"Apache-2.0"
] | null | null | null |
multiple-languages/python/ros-cdk-kms-1.0.4/src/ros_cdk_kms/__init__.py
|
piotr-kalanski/Resource-Orchestration-Service-Cloud-Development-Kit
|
2a12deea757ac69e69708dd9fd159fba12cfba0e
|
[
"Apache-2.0"
] | null | null | null |
multiple-languages/python/ros-cdk-kms-1.0.4/src/ros_cdk_kms/__init__.py
|
piotr-kalanski/Resource-Orchestration-Service-Cloud-Development-Kit
|
2a12deea757ac69e69708dd9fd159fba12cfba0e
|
[
"Apache-2.0"
] | null | null | null |
'''
## Aliyun ROS KMS Construct Library
This module is part of the AliCloud ROS Cloud Development Kit (ROS CDK) project.
```python
import * as KMS from '@alicloud/ros-cdk-kms';
```
'''
import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from ._jsii import *
import ros_cdk_core
class Alias(
ros_cdk_core.Resource,
metaclass=jsii.JSIIMeta,
jsii_type="@alicloud/ros-cdk-kms.Alias",
):
'''A ROS resource type: ``ALIYUN::KMS::Alias``.'''
def __init__(
self,
scope: ros_cdk_core.Construct,
id: builtins.str,
props: "AliasProps",
enable_resource_property_constraint: typing.Optional[builtins.bool] = None,
) -> None:
'''Create a new ``ALIYUN::KMS::Alias``.
Param scope - scope in which this resource is defined
Param id - scoped id of the resource
Param props - resource properties
:param scope: -
:param id: -
:param props: -
:param enable_resource_property_constraint: -
'''
jsii.create(self.__class__, self, [scope, id, props, enable_resource_property_constraint])
@jsii.data_type(
jsii_type="@alicloud/ros-cdk-kms.AliasProps",
jsii_struct_bases=[],
name_mapping={"alias_name": "aliasName", "key_id": "keyId"},
)
class AliasProps:
def __init__(
self,
*,
alias_name: typing.Union[builtins.str, ros_cdk_core.IResolvable],
key_id: typing.Union[builtins.str, ros_cdk_core.IResolvable],
) -> None:
'''Properties for defining a ``ALIYUN::KMS::Alias``.
:param alias_name: Property aliasName: - The display name of the key. You can use the alias to call APIs such as Encrypt, GenerateDataKey, and DescribeKey. - Not including the prefix, the minimum length of an alias is 1 and the maximum length is 255. - The prefix alias/ must be included.
:param key_id: Property keyId: Globally unique identifier of the CMK.
'''
self._values: typing.Dict[str, typing.Any] = {
"alias_name": alias_name,
"key_id": key_id,
}
@builtins.property
def alias_name(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''Property aliasName: - The display name of the key.
You can use the alias to call APIs such as Encrypt, GenerateDataKey, and DescribeKey. - Not including the prefix, the minimum length of an alias is 1 and the maximum length is 255. - The prefix alias/ must be included.
'''
result = self._values.get("alias_name")
assert result is not None, "Required property 'alias_name' is missing"
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], result)
@builtins.property
def key_id(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''Property keyId: Globally unique identifier of the CMK.'''
result = self._values.get("key_id")
assert result is not None, "Required property 'key_id' is missing"
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], result)
def __eq__(self, rhs: typing.Any) -> builtins.bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs: typing.Any) -> builtins.bool:
return not (rhs == self)
def __repr__(self) -> str:
return "AliasProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
class Key(
ros_cdk_core.Resource,
metaclass=jsii.JSIIMeta,
jsii_type="@alicloud/ros-cdk-kms.Key",
):
'''A ROS resource type: ``ALIYUN::KMS::Key``.'''
def __init__(
self,
scope: ros_cdk_core.Construct,
id: builtins.str,
props: typing.Optional["KeyProps"] = None,
enable_resource_property_constraint: typing.Optional[builtins.bool] = None,
) -> None:
'''Create a new ``ALIYUN::KMS::Key``.
Param scope - scope in which this resource is defined
Param id - scoped id of the resource
Param props - resource properties
:param scope: -
:param id: -
:param props: -
:param enable_resource_property_constraint: -
'''
jsii.create(self.__class__, self, [scope, id, props, enable_resource_property_constraint])
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="attrKeyId")
def attr_key_id(self) -> ros_cdk_core.IResolvable:
'''Attribute KeyId: The globally unique identifier for the CMK.'''
return typing.cast(ros_cdk_core.IResolvable, jsii.get(self, "attrKeyId"))
@jsii.data_type(
jsii_type="@alicloud/ros-cdk-kms.KeyProps",
jsii_struct_bases=[],
name_mapping={
"description": "description",
"enable": "enable",
"enable_automatic_rotation": "enableAutomaticRotation",
"key_spec": "keySpec",
"key_usage": "keyUsage",
"pending_window_in_days": "pendingWindowInDays",
"protection_level": "protectionLevel",
"rotation_interval": "rotationInterval",
},
)
class KeyProps:
def __init__(
self,
*,
description: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
enable: typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]] = None,
enable_automatic_rotation: typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]] = None,
key_spec: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
key_usage: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
pending_window_in_days: typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]] = None,
protection_level: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
rotation_interval: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
) -> None:
'''Properties for defining a ``ALIYUN::KMS::Key``.
:param description: Property description: The description of the CMK. Length constraints: Minimum length of 0 characters. Maximum length of 8192 characters.
:param enable: Property enable: Specifies whether the key is enabled. Defaults to true.
:param enable_automatic_rotation: Property enableAutomaticRotation: Whether to enable automatic key rotation. Valid value: true/false (default)
:param key_spec: Property keySpec: Key type. Valid value: Aliyun_AES_256/Aliyun_SM4/RSA_2048/EC_P256/EC_P256K/EC_SM2
:param key_usage: Property keyUsage: The intended use of the CMK. Default value: ENCRYPT/DECRYPT.
:param pending_window_in_days: Property pendingWindowInDays: The waiting period, specified in number of days. During this period, you can cancel the CMK in PendingDeletion status. After the waiting period expires, you cannot cancel the deletion. The value must be between 7 and 30. Default value is 30.
:param protection_level: Property protectionLevel: The protection level of the CMK to create. Valid value: SOFTWARE and HSM. When this parameter is set to HSM: If the Origin parameter is set to Aliyun_KMS, the CMK is created in Managed HSM. If the Origin parameter is set to EXTERNAL, you can import external keys to Managed HSM.
:param rotation_interval: Property rotationInterval: The time period for automatic rotation. The format is integer[unit], where integer represents the length of time and unit represents the time unit. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both represent a 7-day cycle. Value: 7~730 days.
'''
self._values: typing.Dict[str, typing.Any] = {}
if description is not None:
self._values["description"] = description
if enable is not None:
self._values["enable"] = enable
if enable_automatic_rotation is not None:
self._values["enable_automatic_rotation"] = enable_automatic_rotation
if key_spec is not None:
self._values["key_spec"] = key_spec
if key_usage is not None:
self._values["key_usage"] = key_usage
if pending_window_in_days is not None:
self._values["pending_window_in_days"] = pending_window_in_days
if protection_level is not None:
self._values["protection_level"] = protection_level
if rotation_interval is not None:
self._values["rotation_interval"] = rotation_interval
@builtins.property
def description(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''Property description: The description of the CMK.
Length constraints: Minimum length of 0 characters. Maximum length of 8192 characters.
'''
result = self._values.get("description")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
@builtins.property
def enable(
self,
) -> typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]]:
'''Property enable: Specifies whether the key is enabled.
Defaults to true.
'''
result = self._values.get("enable")
return typing.cast(typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]], result)
@builtins.property
def enable_automatic_rotation(
self,
) -> typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]]:
'''Property enableAutomaticRotation: Whether to enable automatic key rotation.
Valid value: true/false (default)
'''
result = self._values.get("enable_automatic_rotation")
return typing.cast(typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]], result)
@builtins.property
def key_spec(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''Property keySpec: Key type.
Valid value: Aliyun_AES_256/Aliyun_SM4/RSA_2048/EC_P256/EC_P256K/EC_SM2
'''
result = self._values.get("key_spec")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
@builtins.property
def key_usage(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''Property keyUsage: The intended use of the CMK.
Default value: ENCRYPT/DECRYPT.
'''
result = self._values.get("key_usage")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
@builtins.property
def pending_window_in_days(
self,
) -> typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]]:
'''Property pendingWindowInDays: The waiting period, specified in number of days.
During this period, you can cancel the CMK in PendingDeletion status. After the waiting period expires, you cannot cancel the deletion. The value must be between 7 and 30. Default value is 30.
'''
result = self._values.get("pending_window_in_days")
return typing.cast(typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]], result)
@builtins.property
def protection_level(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''Property protectionLevel: The protection level of the CMK to create.
Valid value: SOFTWARE and HSM. When this parameter is set to HSM:
If the Origin parameter is set to Aliyun_KMS, the CMK is created in Managed HSM.
If the Origin parameter is set to EXTERNAL, you can import external keys to Managed HSM.
'''
result = self._values.get("protection_level")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
@builtins.property
def rotation_interval(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''Property rotationInterval: The time period for automatic rotation.
The format is integer[unit], where integer represents the length of time and unit represents the time unit. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both represent a 7-day cycle. Value: 7~730 days.
'''
result = self._values.get("rotation_interval")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
def __eq__(self, rhs: typing.Any) -> builtins.bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs: typing.Any) -> builtins.bool:
return not (rhs == self)
def __repr__(self) -> str:
return "KeyProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
class RosAlias(
ros_cdk_core.RosResource,
metaclass=jsii.JSIIMeta,
jsii_type="@alicloud/ros-cdk-kms.RosAlias",
):
'''A ROS template type: ``ALIYUN::KMS::Alias``.'''
def __init__(
self,
scope: ros_cdk_core.Construct,
id: builtins.str,
props: "RosAliasProps",
enable_resource_property_constraint: builtins.bool,
) -> None:
'''Create a new ``ALIYUN::KMS::Alias``.
:param scope: - scope in which this resource is defined.
:param id: - scoped id of the resource.
:param props: - resource properties.
:param enable_resource_property_constraint: -
'''
jsii.create(self.__class__, self, [scope, id, props, enable_resource_property_constraint])
@jsii.member(jsii_name="renderProperties")
def _render_properties(
self,
props: typing.Mapping[builtins.str, typing.Any],
) -> typing.Mapping[builtins.str, typing.Any]:
'''
:param props: -
'''
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
@jsii.python.classproperty # type: ignore[misc]
@jsii.member(jsii_name="ROS_RESOURCE_TYPE_NAME")
def ROS_RESOURCE_TYPE_NAME(cls) -> builtins.str:
'''The resource type name for this resource class.'''
return typing.cast(builtins.str, jsii.sget(cls, "ROS_RESOURCE_TYPE_NAME"))
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="rosProperties")
def _ros_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "rosProperties"))
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="aliasName")
def alias_name(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''
:Property: aliasName: - The display name of the key. You can use the alias to call APIs such as Encrypt, GenerateDataKey, and DescribeKey. - Not including the prefix, the minimum length of an alias is 1 and the maximum length is 255. - The prefix alias/ must be included.
'''
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], jsii.get(self, "aliasName"))
@alias_name.setter
def alias_name(
self,
value: typing.Union[builtins.str, ros_cdk_core.IResolvable],
) -> None:
jsii.set(self, "aliasName", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="enableResourcePropertyConstraint")
def enable_resource_property_constraint(self) -> builtins.bool:
'''A factory method that creates a new instance of this class from an object containing the properties of this ROS resource.'''
return typing.cast(builtins.bool, jsii.get(self, "enableResourcePropertyConstraint"))
@enable_resource_property_constraint.setter
def enable_resource_property_constraint(self, value: builtins.bool) -> None:
jsii.set(self, "enableResourcePropertyConstraint", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="keyId")
def key_id(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''
:Property: keyId: Globally unique identifier of the CMK.
'''
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], jsii.get(self, "keyId"))
@key_id.setter
def key_id(
self,
value: typing.Union[builtins.str, ros_cdk_core.IResolvable],
) -> None:
jsii.set(self, "keyId", value)
@jsii.data_type(
jsii_type="@alicloud/ros-cdk-kms.RosAliasProps",
jsii_struct_bases=[],
name_mapping={"alias_name": "aliasName", "key_id": "keyId"},
)
class RosAliasProps:
def __init__(
self,
*,
alias_name: typing.Union[builtins.str, ros_cdk_core.IResolvable],
key_id: typing.Union[builtins.str, ros_cdk_core.IResolvable],
) -> None:
'''Properties for defining a ``ALIYUN::KMS::Alias``.
:param alias_name:
:param key_id:
'''
self._values: typing.Dict[str, typing.Any] = {
"alias_name": alias_name,
"key_id": key_id,
}
@builtins.property
def alias_name(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''
:Property: aliasName: - The display name of the key. You can use the alias to call APIs such as Encrypt, GenerateDataKey, and DescribeKey. - Not including the prefix, the minimum length of an alias is 1 and the maximum length is 255. - The prefix alias/ must be included.
'''
result = self._values.get("alias_name")
assert result is not None, "Required property 'alias_name' is missing"
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], result)
@builtins.property
def key_id(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''
:Property: keyId: Globally unique identifier of the CMK.
'''
result = self._values.get("key_id")
assert result is not None, "Required property 'key_id' is missing"
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], result)
def __eq__(self, rhs: typing.Any) -> builtins.bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs: typing.Any) -> builtins.bool:
return not (rhs == self)
def __repr__(self) -> str:
return "RosAliasProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
class RosKey(
ros_cdk_core.RosResource,
metaclass=jsii.JSIIMeta,
jsii_type="@alicloud/ros-cdk-kms.RosKey",
):
'''A ROS template type: ``ALIYUN::KMS::Key``.'''
def __init__(
self,
scope: ros_cdk_core.Construct,
id: builtins.str,
props: "RosKeyProps",
enable_resource_property_constraint: builtins.bool,
) -> None:
'''Create a new ``ALIYUN::KMS::Key``.
:param scope: - scope in which this resource is defined.
:param id: - scoped id of the resource.
:param props: - resource properties.
:param enable_resource_property_constraint: -
'''
jsii.create(self.__class__, self, [scope, id, props, enable_resource_property_constraint])
@jsii.member(jsii_name="renderProperties")
def _render_properties(
self,
props: typing.Mapping[builtins.str, typing.Any],
) -> typing.Mapping[builtins.str, typing.Any]:
'''
:param props: -
'''
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
@jsii.python.classproperty # type: ignore[misc]
@jsii.member(jsii_name="ROS_RESOURCE_TYPE_NAME")
def ROS_RESOURCE_TYPE_NAME(cls) -> builtins.str:
'''The resource type name for this resource class.'''
return typing.cast(builtins.str, jsii.sget(cls, "ROS_RESOURCE_TYPE_NAME"))
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="attrKeyId")
def attr_key_id(self) -> ros_cdk_core.IResolvable:
'''
:Attribute: KeyId: The globally unique identifier for the CMK.
'''
return typing.cast(ros_cdk_core.IResolvable, jsii.get(self, "attrKeyId"))
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="rosProperties")
def _ros_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "rosProperties"))
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="enableResourcePropertyConstraint")
def enable_resource_property_constraint(self) -> builtins.bool:
return typing.cast(builtins.bool, jsii.get(self, "enableResourcePropertyConstraint"))
@enable_resource_property_constraint.setter
def enable_resource_property_constraint(self, value: builtins.bool) -> None:
jsii.set(self, "enableResourcePropertyConstraint", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="description")
def description(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property: description: The description of the CMK. Length constraints: Minimum length of 0 characters. Maximum length of 8192 characters.
'''
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], jsii.get(self, "description"))
@description.setter
def description(
self,
value: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]],
) -> None:
jsii.set(self, "description", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="enable")
def enable(
self,
) -> typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]]:
'''
:Property: enable: Specifies whether the key is enabled. Defaults to true.
'''
return typing.cast(typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]], jsii.get(self, "enable"))
@enable.setter
def enable(
self,
value: typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]],
) -> None:
jsii.set(self, "enable", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="enableAutomaticRotation")
def enable_automatic_rotation(
self,
) -> typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]]:
'''
:Property: enableAutomaticRotation: Whether to enable automatic key rotation. Valid value: true/false (default)
'''
return typing.cast(typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]], jsii.get(self, "enableAutomaticRotation"))
@enable_automatic_rotation.setter
def enable_automatic_rotation(
self,
value: typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]],
) -> None:
jsii.set(self, "enableAutomaticRotation", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="keySpec")
def key_spec(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property: keySpec: Key type. Valid value: Aliyun_AES_256/Aliyun_SM4/RSA_2048/EC_P256/EC_P256K/EC_SM2
'''
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], jsii.get(self, "keySpec"))
@key_spec.setter
def key_spec(
self,
value: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]],
) -> None:
jsii.set(self, "keySpec", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="keyUsage")
def key_usage(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property: keyUsage: The intended use of the CMK. Default value: ENCRYPT/DECRYPT.
'''
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], jsii.get(self, "keyUsage"))
@key_usage.setter
def key_usage(
self,
value: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]],
) -> None:
jsii.set(self, "keyUsage", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="pendingWindowInDays")
def pending_window_in_days(
self,
) -> typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]]:
'''
:Property: pendingWindowInDays: The waiting period, specified in number of days. During this period, you can cancel the CMK in PendingDeletion status. After the waiting period expires, you cannot cancel the deletion. The value must be between 7 and 30. Default value is 30.
'''
return typing.cast(typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]], jsii.get(self, "pendingWindowInDays"))
@pending_window_in_days.setter
def pending_window_in_days(
self,
value: typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]],
) -> None:
jsii.set(self, "pendingWindowInDays", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="protectionLevel")
def protection_level(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property:
protectionLevel: The protection level of the CMK to create. Valid value: SOFTWARE and HSM. When this parameter is set to HSM:
If the Origin parameter is set to Aliyun_KMS, the CMK is created in Managed HSM.
If the Origin parameter is set to EXTERNAL, you can import external keys to Managed HSM.
'''
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], jsii.get(self, "protectionLevel"))
@protection_level.setter
def protection_level(
self,
value: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]],
) -> None:
jsii.set(self, "protectionLevel", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="rotationInterval")
def rotation_interval(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property: rotationInterval: The time period for automatic rotation. The format is integer[unit], where integer represents the length of time and unit represents the time unit. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both represent a 7-day cycle. Value: 7~730 days.
'''
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], jsii.get(self, "rotationInterval"))
@rotation_interval.setter
def rotation_interval(
self,
value: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]],
) -> None:
jsii.set(self, "rotationInterval", value)
@jsii.data_type(
jsii_type="@alicloud/ros-cdk-kms.RosKeyProps",
jsii_struct_bases=[],
name_mapping={
"description": "description",
"enable": "enable",
"enable_automatic_rotation": "enableAutomaticRotation",
"key_spec": "keySpec",
"key_usage": "keyUsage",
"pending_window_in_days": "pendingWindowInDays",
"protection_level": "protectionLevel",
"rotation_interval": "rotationInterval",
},
)
class RosKeyProps:
def __init__(
self,
*,
description: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
enable: typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]] = None,
enable_automatic_rotation: typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]] = None,
key_spec: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
key_usage: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
pending_window_in_days: typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]] = None,
protection_level: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
rotation_interval: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
) -> None:
'''Properties for defining a ``ALIYUN::KMS::Key``.
:param description:
:param enable:
:param enable_automatic_rotation:
:param key_spec:
:param key_usage:
:param pending_window_in_days:
:param protection_level:
:param rotation_interval:
'''
self._values: typing.Dict[str, typing.Any] = {}
if description is not None:
self._values["description"] = description
if enable is not None:
self._values["enable"] = enable
if enable_automatic_rotation is not None:
self._values["enable_automatic_rotation"] = enable_automatic_rotation
if key_spec is not None:
self._values["key_spec"] = key_spec
if key_usage is not None:
self._values["key_usage"] = key_usage
if pending_window_in_days is not None:
self._values["pending_window_in_days"] = pending_window_in_days
if protection_level is not None:
self._values["protection_level"] = protection_level
if rotation_interval is not None:
self._values["rotation_interval"] = rotation_interval
@builtins.property
def description(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property: description: The description of the CMK. Length constraints: Minimum length of 0 characters. Maximum length of 8192 characters.
'''
result = self._values.get("description")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
@builtins.property
def enable(
self,
) -> typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]]:
'''
:Property: enable: Specifies whether the key is enabled. Defaults to true.
'''
result = self._values.get("enable")
return typing.cast(typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]], result)
@builtins.property
def enable_automatic_rotation(
self,
) -> typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]]:
'''
:Property: enableAutomaticRotation: Whether to enable automatic key rotation. Valid value: true/false (default)
'''
result = self._values.get("enable_automatic_rotation")
return typing.cast(typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]], result)
@builtins.property
def key_spec(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property: keySpec: Key type. Valid value: Aliyun_AES_256/Aliyun_SM4/RSA_2048/EC_P256/EC_P256K/EC_SM2
'''
result = self._values.get("key_spec")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
@builtins.property
def key_usage(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property: keyUsage: The intended use of the CMK. Default value: ENCRYPT/DECRYPT.
'''
result = self._values.get("key_usage")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
@builtins.property
def pending_window_in_days(
self,
) -> typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]]:
'''
:Property: pendingWindowInDays: The waiting period, specified in number of days. During this period, you can cancel the CMK in PendingDeletion status. After the waiting period expires, you cannot cancel the deletion. The value must be between 7 and 30. Default value is 30.
'''
result = self._values.get("pending_window_in_days")
return typing.cast(typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]], result)
@builtins.property
def protection_level(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property:
protectionLevel: The protection level of the CMK to create. Valid value: SOFTWARE and HSM. When this parameter is set to HSM:
If the Origin parameter is set to Aliyun_KMS, the CMK is created in Managed HSM.
If the Origin parameter is set to EXTERNAL, you can import external keys to Managed HSM.
'''
result = self._values.get("protection_level")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
@builtins.property
def rotation_interval(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property: rotationInterval: The time period for automatic rotation. The format is integer[unit], where integer represents the length of time and unit represents the time unit. The legal unit units are: d (day), h (hour), m (minute), s (second). 7d or 604800s both represent a 7-day cycle. Value: 7~730 days.
'''
result = self._values.get("rotation_interval")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
def __eq__(self, rhs: typing.Any) -> builtins.bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs: typing.Any) -> builtins.bool:
return not (rhs == self)
def __repr__(self) -> str:
return "RosKeyProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
class RosSecret(
ros_cdk_core.RosResource,
metaclass=jsii.JSIIMeta,
jsii_type="@alicloud/ros-cdk-kms.RosSecret",
):
'''A ROS template type: ``ALIYUN::KMS::Secret``.'''
def __init__(
self,
scope: ros_cdk_core.Construct,
id: builtins.str,
props: "RosSecretProps",
enable_resource_property_constraint: builtins.bool,
) -> None:
'''Create a new ``ALIYUN::KMS::Secret``.
:param scope: - scope in which this resource is defined.
:param id: - scoped id of the resource.
:param props: - resource properties.
:param enable_resource_property_constraint: -
'''
jsii.create(self.__class__, self, [scope, id, props, enable_resource_property_constraint])
@jsii.member(jsii_name="renderProperties")
def _render_properties(
self,
props: typing.Mapping[builtins.str, typing.Any],
) -> typing.Mapping[builtins.str, typing.Any]:
'''
:param props: -
'''
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.invoke(self, "renderProperties", [props]))
@jsii.python.classproperty # type: ignore[misc]
@jsii.member(jsii_name="ROS_RESOURCE_TYPE_NAME")
def ROS_RESOURCE_TYPE_NAME(cls) -> builtins.str:
'''The resource type name for this resource class.'''
return typing.cast(builtins.str, jsii.sget(cls, "ROS_RESOURCE_TYPE_NAME"))
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="attrArn")
def attr_arn(self) -> ros_cdk_core.IResolvable:
'''
:Attribute: Arn: The Alibaba Cloud Resource Name (ARN).
'''
return typing.cast(ros_cdk_core.IResolvable, jsii.get(self, "attrArn"))
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="attrSecretName")
def attr_secret_name(self) -> ros_cdk_core.IResolvable:
'''
:Attribute: SecretName: The name of the secret.
'''
return typing.cast(ros_cdk_core.IResolvable, jsii.get(self, "attrSecretName"))
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="rosProperties")
def _ros_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
return typing.cast(typing.Mapping[builtins.str, typing.Any], jsii.get(self, "rosProperties"))
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="enableResourcePropertyConstraint")
def enable_resource_property_constraint(self) -> builtins.bool:
return typing.cast(builtins.bool, jsii.get(self, "enableResourcePropertyConstraint"))
@enable_resource_property_constraint.setter
def enable_resource_property_constraint(self, value: builtins.bool) -> None:
jsii.set(self, "enableResourcePropertyConstraint", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="secretData")
def secret_data(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''
:Property:
secretData: The value of the secret that you want to create. Secrets Manager encrypts the secret
value and stores it in the initial version.
'''
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], jsii.get(self, "secretData"))
@secret_data.setter
def secret_data(
self,
value: typing.Union[builtins.str, ros_cdk_core.IResolvable],
) -> None:
jsii.set(self, "secretData", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="secretName")
def secret_name(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''
:Property: secretName: The name of the secret.
'''
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], jsii.get(self, "secretName"))
@secret_name.setter
def secret_name(
self,
value: typing.Union[builtins.str, ros_cdk_core.IResolvable],
) -> None:
jsii.set(self, "secretName", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="versionId")
def version_id(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''
:Property:
versionId: The version number of the initial version. Version numbers are unique in each secret
object.
'''
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], jsii.get(self, "versionId"))
@version_id.setter
def version_id(
self,
value: typing.Union[builtins.str, ros_cdk_core.IResolvable],
) -> None:
jsii.set(self, "versionId", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="description")
def description(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property: description: The description of the secret.
'''
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], jsii.get(self, "description"))
@description.setter
def description(
self,
value: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]],
) -> None:
jsii.set(self, "description", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="encryptionKeyId")
def encryption_key_id(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property:
encryptionKeyId: The ID of the KMS CMK that is used to encrypt the secret value.
If you do not specify this parameter, Secrets Manager automatically creates an encryption
key to encrypt the secret.
Note The KMS CMK must be a symmetric key.
'''
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], jsii.get(self, "encryptionKeyId"))
@encryption_key_id.setter
def encryption_key_id(
self,
value: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]],
) -> None:
jsii.set(self, "encryptionKeyId", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="forceDeleteWithoutRecovery")
def force_delete_without_recovery(
self,
) -> typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]]:
'''
:Property:
forceDeleteWithoutRecovery: Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values:
true
false (default value)
'''
return typing.cast(typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]], jsii.get(self, "forceDeleteWithoutRecovery"))
@force_delete_without_recovery.setter
def force_delete_without_recovery(
self,
value: typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]],
) -> None:
jsii.set(self, "forceDeleteWithoutRecovery", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="recoveryWindowInDays")
def recovery_window_in_days(
self,
) -> typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]]:
'''
:Property: recoveryWindowInDays: Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30
'''
return typing.cast(typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]], jsii.get(self, "recoveryWindowInDays"))
@recovery_window_in_days.setter
def recovery_window_in_days(
self,
value: typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]],
) -> None:
jsii.set(self, "recoveryWindowInDays", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="secretDataType")
def secret_data_type(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property:
secretDataType: The type of the secret value. Valid values:
text (default value)
binary
'''
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], jsii.get(self, "secretDataType"))
@secret_data_type.setter
def secret_data_type(
self,
value: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]],
) -> None:
jsii.set(self, "secretDataType", value)
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="versionStages")
def version_stages(
self,
) -> typing.Optional[typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[builtins.str, ros_cdk_core.IResolvable]]]]:
'''
:Property: versionStages: The stage labels that mark the secret version. ACSCurrent will be marked as DefaultIf you do not specify it, Secrets Manager marks it with "ACSCurrent".
'''
return typing.cast(typing.Optional[typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[builtins.str, ros_cdk_core.IResolvable]]]], jsii.get(self, "versionStages"))
@version_stages.setter
def version_stages(
self,
value: typing.Optional[typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[builtins.str, ros_cdk_core.IResolvable]]]],
) -> None:
jsii.set(self, "versionStages", value)
@jsii.data_type(
jsii_type="@alicloud/ros-cdk-kms.RosSecretProps",
jsii_struct_bases=[],
name_mapping={
"secret_data": "secretData",
"secret_name": "secretName",
"version_id": "versionId",
"description": "description",
"encryption_key_id": "encryptionKeyId",
"force_delete_without_recovery": "forceDeleteWithoutRecovery",
"recovery_window_in_days": "recoveryWindowInDays",
"secret_data_type": "secretDataType",
"version_stages": "versionStages",
},
)
class RosSecretProps:
def __init__(
self,
*,
secret_data: typing.Union[builtins.str, ros_cdk_core.IResolvable],
secret_name: typing.Union[builtins.str, ros_cdk_core.IResolvable],
version_id: typing.Union[builtins.str, ros_cdk_core.IResolvable],
description: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
encryption_key_id: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
force_delete_without_recovery: typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]] = None,
recovery_window_in_days: typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]] = None,
secret_data_type: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
version_stages: typing.Optional[typing.Union[ros_cdk_core.IResolvable, typing.Sequence[typing.Union[builtins.str, ros_cdk_core.IResolvable]]]] = None,
) -> None:
'''Properties for defining a ``ALIYUN::KMS::Secret``.
:param secret_data:
:param secret_name:
:param version_id:
:param description:
:param encryption_key_id:
:param force_delete_without_recovery:
:param recovery_window_in_days:
:param secret_data_type:
:param version_stages:
'''
self._values: typing.Dict[str, typing.Any] = {
"secret_data": secret_data,
"secret_name": secret_name,
"version_id": version_id,
}
if description is not None:
self._values["description"] = description
if encryption_key_id is not None:
self._values["encryption_key_id"] = encryption_key_id
if force_delete_without_recovery is not None:
self._values["force_delete_without_recovery"] = force_delete_without_recovery
if recovery_window_in_days is not None:
self._values["recovery_window_in_days"] = recovery_window_in_days
if secret_data_type is not None:
self._values["secret_data_type"] = secret_data_type
if version_stages is not None:
self._values["version_stages"] = version_stages
@builtins.property
def secret_data(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''
:Property:
secretData: The value of the secret that you want to create. Secrets Manager encrypts the secret
value and stores it in the initial version.
'''
result = self._values.get("secret_data")
assert result is not None, "Required property 'secret_data' is missing"
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], result)
@builtins.property
def secret_name(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''
:Property: secretName: The name of the secret.
'''
result = self._values.get("secret_name")
assert result is not None, "Required property 'secret_name' is missing"
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], result)
@builtins.property
def version_id(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''
:Property:
versionId: The version number of the initial version. Version numbers are unique in each secret
object.
'''
result = self._values.get("version_id")
assert result is not None, "Required property 'version_id' is missing"
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], result)
@builtins.property
def description(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property: description: The description of the secret.
'''
result = self._values.get("description")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
@builtins.property
def encryption_key_id(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property:
encryptionKeyId: The ID of the KMS CMK that is used to encrypt the secret value.
If you do not specify this parameter, Secrets Manager automatically creates an encryption
key to encrypt the secret.
Note The KMS CMK must be a symmetric key.
'''
result = self._values.get("encryption_key_id")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
@builtins.property
def force_delete_without_recovery(
self,
) -> typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]]:
'''
:Property:
forceDeleteWithoutRecovery: Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values:
true
false (default value)
'''
result = self._values.get("force_delete_without_recovery")
return typing.cast(typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]], result)
@builtins.property
def recovery_window_in_days(
self,
) -> typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]]:
'''
:Property: recoveryWindowInDays: Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30
'''
result = self._values.get("recovery_window_in_days")
return typing.cast(typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]], result)
@builtins.property
def secret_data_type(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''
:Property:
secretDataType: The type of the secret value. Valid values:
text (default value)
binary
'''
result = self._values.get("secret_data_type")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
@builtins.property
def version_stages(
self,
) -> typing.Optional[typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[builtins.str, ros_cdk_core.IResolvable]]]]:
'''
:Property: versionStages: The stage labels that mark the secret version. ACSCurrent will be marked as DefaultIf you do not specify it, Secrets Manager marks it with "ACSCurrent".
'''
result = self._values.get("version_stages")
return typing.cast(typing.Optional[typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[builtins.str, ros_cdk_core.IResolvable]]]], result)
def __eq__(self, rhs: typing.Any) -> builtins.bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs: typing.Any) -> builtins.bool:
return not (rhs == self)
def __repr__(self) -> str:
return "RosSecretProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
class Secret(
ros_cdk_core.Resource,
metaclass=jsii.JSIIMeta,
jsii_type="@alicloud/ros-cdk-kms.Secret",
):
'''A ROS resource type: ``ALIYUN::KMS::Secret``.'''
def __init__(
self,
scope: ros_cdk_core.Construct,
id: builtins.str,
props: "SecretProps",
enable_resource_property_constraint: typing.Optional[builtins.bool] = None,
) -> None:
'''Create a new ``ALIYUN::KMS::Secret``.
Param scope - scope in which this resource is defined
Param id - scoped id of the resource
Param props - resource properties
:param scope: -
:param id: -
:param props: -
:param enable_resource_property_constraint: -
'''
jsii.create(self.__class__, self, [scope, id, props, enable_resource_property_constraint])
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="attrArn")
def attr_arn(self) -> ros_cdk_core.IResolvable:
'''Attribute Arn: The Alibaba Cloud Resource Name (ARN).'''
return typing.cast(ros_cdk_core.IResolvable, jsii.get(self, "attrArn"))
@builtins.property # type: ignore[misc]
@jsii.member(jsii_name="attrSecretName")
def attr_secret_name(self) -> ros_cdk_core.IResolvable:
'''Attribute SecretName: The name of the secret.'''
return typing.cast(ros_cdk_core.IResolvable, jsii.get(self, "attrSecretName"))
@jsii.data_type(
jsii_type="@alicloud/ros-cdk-kms.SecretProps",
jsii_struct_bases=[],
name_mapping={
"secret_data": "secretData",
"secret_name": "secretName",
"version_id": "versionId",
"description": "description",
"encryption_key_id": "encryptionKeyId",
"force_delete_without_recovery": "forceDeleteWithoutRecovery",
"recovery_window_in_days": "recoveryWindowInDays",
"secret_data_type": "secretDataType",
"version_stages": "versionStages",
},
)
class SecretProps:
def __init__(
self,
*,
secret_data: typing.Union[builtins.str, ros_cdk_core.IResolvable],
secret_name: typing.Union[builtins.str, ros_cdk_core.IResolvable],
version_id: typing.Union[builtins.str, ros_cdk_core.IResolvable],
description: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
encryption_key_id: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
force_delete_without_recovery: typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]] = None,
recovery_window_in_days: typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]] = None,
secret_data_type: typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]] = None,
version_stages: typing.Optional[typing.Union[ros_cdk_core.IResolvable, typing.Sequence[typing.Union[builtins.str, ros_cdk_core.IResolvable]]]] = None,
) -> None:
'''Properties for defining a ``ALIYUN::KMS::Secret``.
:param secret_data: Property secretData: The value of the secret that you want to create. Secrets Manager encrypts the secret value and stores it in the initial version.
:param secret_name: Property secretName: The name of the secret.
:param version_id: Property versionId: The version number of the initial version. Version numbers are unique in each secret object.
:param description: Property description: The description of the secret.
:param encryption_key_id: Property encryptionKeyId: The ID of the KMS CMK that is used to encrypt the secret value. If you do not specify this parameter, Secrets Manager automatically creates an encryption key to encrypt the secret. Note The KMS CMK must be a symmetric key.
:param force_delete_without_recovery: Property forceDeleteWithoutRecovery: Specifies whether to forcibly delete the secret. If this parameter is set to true, the secret cannot be recovered. Valid values: true false (default value)
:param recovery_window_in_days: Property recoveryWindowInDays: Specifies the recovery period of the secret if you do not forcibly delete it. Default value: 30
:param secret_data_type: Property secretDataType: The type of the secret value. Valid values: text (default value) binary
:param version_stages: Property versionStages: The stage labels that mark the secret version. ACSCurrent will be marked as DefaultIf you do not specify it, Secrets Manager marks it with "ACSCurrent".
'''
self._values: typing.Dict[str, typing.Any] = {
"secret_data": secret_data,
"secret_name": secret_name,
"version_id": version_id,
}
if description is not None:
self._values["description"] = description
if encryption_key_id is not None:
self._values["encryption_key_id"] = encryption_key_id
if force_delete_without_recovery is not None:
self._values["force_delete_without_recovery"] = force_delete_without_recovery
if recovery_window_in_days is not None:
self._values["recovery_window_in_days"] = recovery_window_in_days
if secret_data_type is not None:
self._values["secret_data_type"] = secret_data_type
if version_stages is not None:
self._values["version_stages"] = version_stages
@builtins.property
def secret_data(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''Property secretData: The value of the secret that you want to create.
Secrets Manager encrypts the secret
value and stores it in the initial version.
'''
result = self._values.get("secret_data")
assert result is not None, "Required property 'secret_data' is missing"
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], result)
@builtins.property
def secret_name(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''Property secretName: The name of the secret.'''
result = self._values.get("secret_name")
assert result is not None, "Required property 'secret_name' is missing"
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], result)
@builtins.property
def version_id(self) -> typing.Union[builtins.str, ros_cdk_core.IResolvable]:
'''Property versionId: The version number of the initial version.
Version numbers are unique in each secret
object.
'''
result = self._values.get("version_id")
assert result is not None, "Required property 'version_id' is missing"
return typing.cast(typing.Union[builtins.str, ros_cdk_core.IResolvable], result)
@builtins.property
def description(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''Property description: The description of the secret.'''
result = self._values.get("description")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
@builtins.property
def encryption_key_id(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''Property encryptionKeyId: The ID of the KMS CMK that is used to encrypt the secret value.
If you do not specify this parameter, Secrets Manager automatically creates an encryption
key to encrypt the secret.
Note The KMS CMK must be a symmetric key.
'''
result = self._values.get("encryption_key_id")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
@builtins.property
def force_delete_without_recovery(
self,
) -> typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]]:
'''Property forceDeleteWithoutRecovery: Specifies whether to forcibly delete the secret.
If this parameter is set to true, the secret cannot be recovered. Valid values:
true
false (default value)
'''
result = self._values.get("force_delete_without_recovery")
return typing.cast(typing.Optional[typing.Union[builtins.bool, ros_cdk_core.IResolvable]], result)
@builtins.property
def recovery_window_in_days(
self,
) -> typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]]:
'''Property recoveryWindowInDays: Specifies the recovery period of the secret if you do not forcibly delete it.
Default value: 30
'''
result = self._values.get("recovery_window_in_days")
return typing.cast(typing.Optional[typing.Union[jsii.Number, ros_cdk_core.IResolvable]], result)
@builtins.property
def secret_data_type(
self,
) -> typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]]:
'''Property secretDataType: The type of the secret value.
Valid values:
text (default value)
binary
'''
result = self._values.get("secret_data_type")
return typing.cast(typing.Optional[typing.Union[builtins.str, ros_cdk_core.IResolvable]], result)
@builtins.property
def version_stages(
self,
) -> typing.Optional[typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[builtins.str, ros_cdk_core.IResolvable]]]]:
'''Property versionStages: The stage labels that mark the secret version.
ACSCurrent will be marked as DefaultIf you do not specify it, Secrets Manager marks it with "ACSCurrent".
'''
result = self._values.get("version_stages")
return typing.cast(typing.Optional[typing.Union[ros_cdk_core.IResolvable, typing.List[typing.Union[builtins.str, ros_cdk_core.IResolvable]]]], result)
def __eq__(self, rhs: typing.Any) -> builtins.bool:
return isinstance(rhs, self.__class__) and rhs._values == self._values
def __ne__(self, rhs: typing.Any) -> builtins.bool:
return not (rhs == self)
def __repr__(self) -> str:
return "SecretProps(%s)" % ", ".join(
k + "=" + repr(v) for k, v in self._values.items()
)
__all__ = [
"Alias",
"AliasProps",
"Key",
"KeyProps",
"RosAlias",
"RosAliasProps",
"RosKey",
"RosKeyProps",
"RosSecret",
"RosSecretProps",
"Secret",
"SecretProps",
]
publication.publish()
| 43.407719
| 340
| 0.677024
| 7,587
| 61,856
| 5.337287
| 0.038619
| 0.032449
| 0.050625
| 0.09957
| 0.941522
| 0.935102
| 0.931866
| 0.930829
| 0.928384
| 0.925742
| 0
| 0.003537
| 0.213771
| 61,856
| 1,424
| 341
| 43.438202
| 0.829108
| 0.260799
| 0
| 0.825056
| 0
| 0
| 0.107414
| 0.037705
| 0
| 0
| 0
| 0
| 0.011287
| 1
| 0.143341
| false
| 0
| 0.011287
| 0.025959
| 0.273138
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
353a6738ef31ba24f0a13840599fd2f53b951625
| 31,821
|
py
|
Python
|
benchmark/packagejson/protobuf/schema_pb2.py
|
jviotti/binary-json-size-benchmark
|
a515dfd05736204fb36d3571a6a6b17e5f6e4916
|
[
"Apache-2.0"
] | 2
|
2022-01-14T06:09:26.000Z
|
2022-02-04T02:13:03.000Z
|
benchmark/packagejson/protobuf/schema_pb2.py
|
jviotti/binary-json-size-benchmark
|
a515dfd05736204fb36d3571a6a6b17e5f6e4916
|
[
"Apache-2.0"
] | null | null | null |
benchmark/packagejson/protobuf/schema_pb2.py
|
jviotti/binary-json-size-benchmark
|
a515dfd05736204fb36d3571a6a6b17e5f6e4916
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: schema.proto
"""Generated protocol buffer code."""
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descriptor.FileDescriptor(
name='schema.proto',
package='',
syntax='proto3',
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x0cschema.proto\"#\n\x06\x41uthor\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"\'\n\nRepository\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"\x13\n\x04\x42ugs\x12\x0b\n\x03url\x18\x01 \x01(\t\"$\n\x07License\x12\x0c\n\x04type\x18\x01 \x01(\t\x12\x0b\n\x03url\x18\x02 \x01(\t\"\x17\n\x07Scripts\x12\x0c\n\x04test\x18\x01 \x01(\t\"\x17\n\x07\x45ngines\x12\x0c\n\x04node\x18\x01 \x01(\t\"\x80\x03\n\x0c\x44\x65pendencies\x12\x0e\n\x06\x61sync1\x18\x01 \x01(\t\x12\x14\n\x0c\x63offeeScript\x18\x02 \x01(\t\x12\x0e\n\x06\x63olors\x18\x03 \x01(\t\x12\x12\n\ndateformat\x18\x04 \x01(\t\x12\x15\n\reventemitter2\x18\x05 \x01(\t\x12\x12\n\nfindupSync\x18\x06 \x01(\t\x12\x0c\n\x04glob\x18\x07 \x01(\t\x12\x0e\n\x06hooker\x18\x08 \x01(\t\x12\x11\n\ticonvLite\x18\t \x01(\t\x12\x11\n\tminimatch\x18\n \x01(\t\x12\x0c\n\x04nopt\x18\x0b \x01(\t\x12\x0e\n\x06rimraf\x18\x0c \x01(\t\x12\x0e\n\x06lodash\x18\r \x01(\t\x12\x18\n\x10underscoreString\x18\x0e \x01(\t\x12\r\n\x05which\x18\x0f \x01(\t\x12\x0e\n\x06jsYaml\x18\x10 \x01(\t\x12\x0c\n\x04\x65xit\x18\x11 \x01(\t\x12\x11\n\tgetobject\x18\x12 \x01(\t\x12\x17\n\x0fgruntLegacyUtil\x18\x13 \x01(\t\x12\x16\n\x0egruntLegacyLog\x18\x14 \x01(\t\"\xab\x01\n\x0f\x44\x65vDependencies\x12\x11\n\ttemporary\x18\x01 \x01(\t\x12\x1a\n\x12gruntContribJshint\x18\x02 \x01(\t\x12\x1c\n\x14gruntContribNodeunit\x18\x03 \x01(\t\x12\x19\n\x11gruntContribWatch\x18\x04 \x01(\t\x12\x0f\n\x07\x64ifflet\x18\x05 \x01(\t\x12\x0e\n\x06semver\x18\x06 \x01(\t\x12\x0f\n\x07shelljs\x18\x07 \x01(\t\"\x89\x03\n\x04Main\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\x12\x17\n\x06\x61uthor\x18\x04 \x01(\x0b\x32\x07.Author\x12\x10\n\x08homepage\x18\x05 \x01(\t\x12\x1f\n\nrepository\x18\x06 \x01(\x0b\x32\x0b.Repository\x12\x13\n\x04\x62ugs\x18\x07 \x01(\x0b\x32\x05.Bugs\x12\x1a\n\x08licenses\x18\x08 \x03(\x0b\x32\x08.License\x12\x0c\n\x04main\x18\t \x01(\t\x12\x19\n\x07scripts\x18\n \x01(\x0b\x32\x08.Scripts\x12\x19\n\x07\x65ngines\x18\x0b \x01(\x0b\x32\x08.Engines\x12\x10\n\x08keywords\x18\x0c \x03(\t\x12#\n\x0c\x64\x65pendencies\x18\r \x01(\x0b\x32\r.Dependencies\x12)\n\x0f\x64\x65vDependencies\x18\x0e \x01(\x0b\x32\x10.DevDependencies\x12\x0e\n\x06readme\x18\x0f \x01(\t\x12\x0b\n\x03_id\x18\x10 \x01(\t\x12\r\n\x05_from\x18\x11 \x01(\tb\x06proto3'
)
_AUTHOR = _descriptor.Descriptor(
name='Author',
full_name='Author',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='Author.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='url', full_name='Author.url', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=16,
serialized_end=51,
)
_REPOSITORY = _descriptor.Descriptor(
name='Repository',
full_name='Repository',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='type', full_name='Repository.type', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='url', full_name='Repository.url', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=53,
serialized_end=92,
)
_BUGS = _descriptor.Descriptor(
name='Bugs',
full_name='Bugs',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='url', full_name='Bugs.url', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=94,
serialized_end=113,
)
_LICENSE = _descriptor.Descriptor(
name='License',
full_name='License',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='type', full_name='License.type', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='url', full_name='License.url', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=115,
serialized_end=151,
)
_SCRIPTS = _descriptor.Descriptor(
name='Scripts',
full_name='Scripts',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='test', full_name='Scripts.test', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=153,
serialized_end=176,
)
_ENGINES = _descriptor.Descriptor(
name='Engines',
full_name='Engines',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='node', full_name='Engines.node', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=178,
serialized_end=201,
)
_DEPENDENCIES = _descriptor.Descriptor(
name='Dependencies',
full_name='Dependencies',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='async1', full_name='Dependencies.async1', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='coffeeScript', full_name='Dependencies.coffeeScript', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='colors', full_name='Dependencies.colors', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='dateformat', full_name='Dependencies.dateformat', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='eventemitter2', full_name='Dependencies.eventemitter2', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='findupSync', full_name='Dependencies.findupSync', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='glob', full_name='Dependencies.glob', index=6,
number=7, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='hooker', full_name='Dependencies.hooker', index=7,
number=8, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='iconvLite', full_name='Dependencies.iconvLite', index=8,
number=9, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='minimatch', full_name='Dependencies.minimatch', index=9,
number=10, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='nopt', full_name='Dependencies.nopt', index=10,
number=11, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='rimraf', full_name='Dependencies.rimraf', index=11,
number=12, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='lodash', full_name='Dependencies.lodash', index=12,
number=13, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='underscoreString', full_name='Dependencies.underscoreString', index=13,
number=14, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='which', full_name='Dependencies.which', index=14,
number=15, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='jsYaml', full_name='Dependencies.jsYaml', index=15,
number=16, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='exit', full_name='Dependencies.exit', index=16,
number=17, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='getobject', full_name='Dependencies.getobject', index=17,
number=18, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='gruntLegacyUtil', full_name='Dependencies.gruntLegacyUtil', index=18,
number=19, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='gruntLegacyLog', full_name='Dependencies.gruntLegacyLog', index=19,
number=20, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=204,
serialized_end=588,
)
_DEVDEPENDENCIES = _descriptor.Descriptor(
name='DevDependencies',
full_name='DevDependencies',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='temporary', full_name='DevDependencies.temporary', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='gruntContribJshint', full_name='DevDependencies.gruntContribJshint', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='gruntContribNodeunit', full_name='DevDependencies.gruntContribNodeunit', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='gruntContribWatch', full_name='DevDependencies.gruntContribWatch', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='difflet', full_name='DevDependencies.difflet', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='semver', full_name='DevDependencies.semver', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='shelljs', full_name='DevDependencies.shelljs', index=6,
number=7, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=591,
serialized_end=762,
)
_MAIN = _descriptor.Descriptor(
name='Main',
full_name='Main',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='Main.name', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='description', full_name='Main.description', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='version', full_name='Main.version', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='author', full_name='Main.author', index=3,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='homepage', full_name='Main.homepage', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='repository', full_name='Main.repository', index=5,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='bugs', full_name='Main.bugs', index=6,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='licenses', full_name='Main.licenses', index=7,
number=8, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='main', full_name='Main.main', index=8,
number=9, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='scripts', full_name='Main.scripts', index=9,
number=10, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='engines', full_name='Main.engines', index=10,
number=11, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keywords', full_name='Main.keywords', index=11,
number=12, type=9, cpp_type=9, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='dependencies', full_name='Main.dependencies', index=12,
number=13, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='devDependencies', full_name='Main.devDependencies', index=13,
number=14, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='readme', full_name='Main.readme', index=14,
number=15, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='_id', full_name='Main._id', index=15,
number=16, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='_from', full_name='Main._from', index=16,
number=17, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=765,
serialized_end=1158,
)
_MAIN.fields_by_name['author'].message_type = _AUTHOR
_MAIN.fields_by_name['repository'].message_type = _REPOSITORY
_MAIN.fields_by_name['bugs'].message_type = _BUGS
_MAIN.fields_by_name['licenses'].message_type = _LICENSE
_MAIN.fields_by_name['scripts'].message_type = _SCRIPTS
_MAIN.fields_by_name['engines'].message_type = _ENGINES
_MAIN.fields_by_name['dependencies'].message_type = _DEPENDENCIES
_MAIN.fields_by_name['devDependencies'].message_type = _DEVDEPENDENCIES
DESCRIPTOR.message_types_by_name['Author'] = _AUTHOR
DESCRIPTOR.message_types_by_name['Repository'] = _REPOSITORY
DESCRIPTOR.message_types_by_name['Bugs'] = _BUGS
DESCRIPTOR.message_types_by_name['License'] = _LICENSE
DESCRIPTOR.message_types_by_name['Scripts'] = _SCRIPTS
DESCRIPTOR.message_types_by_name['Engines'] = _ENGINES
DESCRIPTOR.message_types_by_name['Dependencies'] = _DEPENDENCIES
DESCRIPTOR.message_types_by_name['DevDependencies'] = _DEVDEPENDENCIES
DESCRIPTOR.message_types_by_name['Main'] = _MAIN
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
Author = _reflection.GeneratedProtocolMessageType('Author', (_message.Message,), {
'DESCRIPTOR' : _AUTHOR,
'__module__' : 'schema_pb2'
# @@protoc_insertion_point(class_scope:Author)
})
_sym_db.RegisterMessage(Author)
Repository = _reflection.GeneratedProtocolMessageType('Repository', (_message.Message,), {
'DESCRIPTOR' : _REPOSITORY,
'__module__' : 'schema_pb2'
# @@protoc_insertion_point(class_scope:Repository)
})
_sym_db.RegisterMessage(Repository)
Bugs = _reflection.GeneratedProtocolMessageType('Bugs', (_message.Message,), {
'DESCRIPTOR' : _BUGS,
'__module__' : 'schema_pb2'
# @@protoc_insertion_point(class_scope:Bugs)
})
_sym_db.RegisterMessage(Bugs)
License = _reflection.GeneratedProtocolMessageType('License', (_message.Message,), {
'DESCRIPTOR' : _LICENSE,
'__module__' : 'schema_pb2'
# @@protoc_insertion_point(class_scope:License)
})
_sym_db.RegisterMessage(License)
Scripts = _reflection.GeneratedProtocolMessageType('Scripts', (_message.Message,), {
'DESCRIPTOR' : _SCRIPTS,
'__module__' : 'schema_pb2'
# @@protoc_insertion_point(class_scope:Scripts)
})
_sym_db.RegisterMessage(Scripts)
Engines = _reflection.GeneratedProtocolMessageType('Engines', (_message.Message,), {
'DESCRIPTOR' : _ENGINES,
'__module__' : 'schema_pb2'
# @@protoc_insertion_point(class_scope:Engines)
})
_sym_db.RegisterMessage(Engines)
Dependencies = _reflection.GeneratedProtocolMessageType('Dependencies', (_message.Message,), {
'DESCRIPTOR' : _DEPENDENCIES,
'__module__' : 'schema_pb2'
# @@protoc_insertion_point(class_scope:Dependencies)
})
_sym_db.RegisterMessage(Dependencies)
DevDependencies = _reflection.GeneratedProtocolMessageType('DevDependencies', (_message.Message,), {
'DESCRIPTOR' : _DEVDEPENDENCIES,
'__module__' : 'schema_pb2'
# @@protoc_insertion_point(class_scope:DevDependencies)
})
_sym_db.RegisterMessage(DevDependencies)
Main = _reflection.GeneratedProtocolMessageType('Main', (_message.Message,), {
'DESCRIPTOR' : _MAIN,
'__module__' : 'schema_pb2'
# @@protoc_insertion_point(class_scope:Main)
})
_sym_db.RegisterMessage(Main)
# @@protoc_insertion_point(module_scope)
| 45.008487
| 2,410
| 0.737783
| 4,186
| 31,821
| 5.305303
| 0.059484
| 0.060519
| 0.091544
| 0.076594
| 0.751846
| 0.713662
| 0.708619
| 0.706817
| 0.688581
| 0.686735
| 0
| 0.039977
| 0.130574
| 31,821
| 706
| 2,411
| 45.072238
| 0.762741
| 0.019735
| 0
| 0.724771
| 1
| 0.007645
| 0.105055
| 0.044556
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.006116
| 0
| 0.006116
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1071492b8d949984373ca494468fcd09e76ab98a
| 7,030
|
py
|
Python
|
karabo/test/test_source_detection.py
|
i4Ds/Karabo-Pipeline
|
c9a7f120b08b56af93bb953e284b33c107fd865c
|
[
"MIT"
] | null | null | null |
karabo/test/test_source_detection.py
|
i4Ds/Karabo-Pipeline
|
c9a7f120b08b56af93bb953e284b33c107fd865c
|
[
"MIT"
] | 42
|
2022-01-27T14:12:46.000Z
|
2022-03-31T14:21:26.000Z
|
karabo/test/test_source_detection.py
|
i4Ds/Karabo-Pipeline
|
c9a7f120b08b56af93bb953e284b33c107fd865c
|
[
"MIT"
] | null | null | null |
import unittest
from karabo.Imaging import source_detection
from karabo.Imaging.source_detection import read_detection_from_sources_file_csv
from karabo.simulation.sky_model import read_sky_model_from_csv
from karabo.test import data_path
class TestSourceDetection(unittest.TestCase):
# TODO: move these on to CSCS Test Infrastructure once we have it.
# def test_detection(self):
# image = open_fits_image("./data/restored.fits")
# detection = source_detection.detect_sources_in_image(image)
# pixels = detection.get_pixel_position_of_sources()
# print(pixels)
# def test_save_detection(self):
# image = open_fits_image("./data/restored.fits")
# detection = source_detection.detect_sources_in_image(image)
# detection.save_sources_file_as_csv("./result/detection.csv")
def test_read_detection(self):
detection = source_detection.SourceDetectionResult(file_path_csv=f"{data_path}/detection.csv")
assert len(detection.detected_sources) == 8
# def test_source_detection_plot(self):
# sky = read_sky_model_from_csv(f"{data_path}/filtered_sky.csv")
# sky.setup_default_wcs([250, -80])
# detection = read_detection_from_sources_file_csv(f"{data_path}/detection.csv",
# source_image_path="./data/restored.fits")
# detection.save_sources_file_as_csv("./detection.csv")
# mapping = source_detection.map_sky_to_detection(sky, 3.878509448876288e-05, 2048, detection, 10)
# mapping.plot()
def test_source_detection_plot_no_image(self):
sky = read_sky_model_from_csv(f"{data_path}/filtered_sky.csv")
sky.setup_default_wcs([250, -80])
detection = read_detection_from_sources_file_csv(f"{data_path}/detection.csv")
mapping = source_detection.map_sky_to_detection(sky, 3.878509448876288e-05, 2048, detection, 10)
mapping.plot()
#
# def test_full_workflow(self):
# sky_data = np.array([
# [20.0, -30.0, 1, 0, 0, 0, 100.0e6, -0.7, 0.0, 0, 0, 0],
# [20.0, -30.5, 3, 2, 2, 0, 100.0e6, -0.7, 0.0, 600, 50, 45],
# [20.5, -30.5, 3, 0, 0, 2, 100.0e6, -0.7, 0.0, 700, 10, -10]])
# sky = sky_model.SkyModel(sky_data)
# askap_tel = telescope.get_ASKAP_Telescope()
# observation_settings = observation.Observation(100e6,
# phase_centre_ra_deg=20,
# phase_centre_dec_deg=-30,
# number_of_channels=64,
# number_of_time_steps=24)
#
# interferometer_sim = interferometer.InterferometerSimulation(channel_bandwidth_hz=1e6)
# visibility_askap = interferometer_sim.run_simulation(askap_tel, sky, observation_settings)
# imager_askap = imager.Imager(visibility_askap, imaging_npixel=2048,
# imaging_cellsize=3.878509448876288e-05)
# imager_askap.ingest_chan_per_blockvis = 1
# imager_askap.ingest_vis_nchan = 16
# deconvolved, restored, residual = imager_askap.imaging_rascil(
# clean_nmajor=0,
# clean_algorithm='mmclean',
# clean_scales=[0, 6, 10, 30, 60],
# clean_fractional_threshold=.3,
# clean_threshold=.12e-3,
# clean_nmoment=5,
# clean_psf_support=640,
# clean_restored_output='integrated')
# # detection_result = source_detection.detect_sources_in_image(restored)
# # restored.save_as_fits("./restored_corrupt.fits")
# # deconvolved.save_as_fits("./deconv_corrupt.fits")
# # residual.save_as_fits("./redisual_corrupt.fits")
# restored.plot()
# restored.plot()
# # deconvolved.plot()
# # residual.plot()
# # sky.setup_default_wcs()
# # detection_evaluation = source_detection.map_sky_to_detection(sky,
# # 3.878509448876288e-05,
# # 2048,
# # detection_result,
# # 10)
# # detection_evaluation.plot()
#
#
# def test_full_workflo2w(self):
# sky_data = np.array([
# [20.0, -30.0, 1, 0, 0, 0, 100.0e6, -0.7, 0.0, 0, 0, 0],
# [20.0, -30.5, 3, 2, 2, 0, 100.0e6, -0.7, 0.0, 600, 50, 45],
# [20.5, -30.5, 3, 0, 0, 2, 100.0e6, -0.7, 0.0, 700, 10, -10]])
# sky = sky_model.SkyModel(sky_data)
# askap_tel = telescope.get_ASKAP_Telescope()
# observation_settings = observation.Observation(100e6,
# phase_centre_ra_deg=20,
# phase_centre_dec_deg=-30,
# number_of_channels=64,
# number_of_time_steps=24)
#
# interferometer_sim = interferometer.InterferometerSimulation(channel_bandwidth_hz=1e6)
# visibility_askap = interferometer_sim.run_simulation(askap_tel, sky, observation_settings)
# imager_askap = imager.Imager(visibility_askap, imaging_npixel=2048,
# imaging_cellsize=3.878509448876288e-05)
# imager_askap.ingest_chan_per_blockvis = 1
# imager_askap.ingest_vis_nchan = 16
# deconvolved, restored, residual = imager_askap.imaging_rascil(
# clean_nmajor=0,
# clean_algorithm='mmclean',
# clean_scales=[0, 6, 10, 30, 60],
# clean_fractional_threshold=.3,
# clean_threshold=.12e-3,
# clean_nmoment=5,
# clean_psf_support=640,
# clean_restored_output='integrated')
# restored.save_as_fits("./restored_before.fits")
# detection_result = source_detection.detect_sources_in_image(restored)
# restored.save_as_fits("./restored_after.fits")
# # deconvolved.save_as_fits("./deconv_corrupt.fits")
# # residual.save_as_fits("./redisual_corrupt.fits")
# # restored.plot()
# # restored.plot()
# # deconvolved.plot()
# # residual.plot()
# sky.setup_default_wcs()
# detection_evaluation = source_detection.map_sky_to_detection(sky,
# 3.878509448876288e-05,
# 2048,
# detection_result,
# 10)
# detection_evaluation.plot()
#
| 52.857143
| 106
| 0.554765
| 744
| 7,030
| 4.91129
| 0.200269
| 0.009852
| 0.006568
| 0.013136
| 0.854132
| 0.829502
| 0.798577
| 0.798577
| 0.798577
| 0.798577
| 0
| 0.079516
| 0.341679
| 7,030
| 132
| 107
| 53.257576
| 0.710026
| 0.781508
| 0
| 0
| 0
| 0
| 0.055437
| 0.055437
| 0
| 0
| 0
| 0.007576
| 0.066667
| 1
| 0.133333
| false
| 0
| 0.333333
| 0
| 0.533333
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
52a59934ab9e51e71eecb3a7669ddc51bb376146
| 313
|
py
|
Python
|
temboo/core/Library/Salesforce/Searching/__init__.py
|
jordanemedlock/psychtruths
|
52e09033ade9608bd5143129f8a1bfac22d634dd
|
[
"Apache-2.0"
] | 7
|
2016-03-07T02:07:21.000Z
|
2022-01-21T02:22:41.000Z
|
temboo/core/Library/Salesforce/Searching/__init__.py
|
jordanemedlock/psychtruths
|
52e09033ade9608bd5143129f8a1bfac22d634dd
|
[
"Apache-2.0"
] | null | null | null |
temboo/core/Library/Salesforce/Searching/__init__.py
|
jordanemedlock/psychtruths
|
52e09033ade9608bd5143129f8a1bfac22d634dd
|
[
"Apache-2.0"
] | 8
|
2016-06-14T06:01:11.000Z
|
2020-04-22T09:21:44.000Z
|
from temboo.Library.Salesforce.Searching.Search import Search, SearchInputSet, SearchResultSet, SearchChoreographyExecution
from temboo.Library.Salesforce.Searching.SearchScopeAndOrder import SearchScopeAndOrder, SearchScopeAndOrderInputSet, SearchScopeAndOrderResultSet, SearchScopeAndOrderChoreographyExecution
| 104.333333
| 188
| 0.910543
| 22
| 313
| 12.954545
| 0.636364
| 0.070175
| 0.119298
| 0.189474
| 0.252632
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.044728
| 313
| 2
| 189
| 156.5
| 0.953177
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 1
| null | 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 8
|
52d7470e92ba1d1eb3d44e6895c1aa22968960b9
| 8,232
|
py
|
Python
|
1.Behavior-FitModels/Functions/fitModels.py
|
const7/MoralStrategiesFMRI
|
520541fd5fb4ff707d8b5da96cbc8a987282abc7
|
[
"MIT"
] | 17
|
2019-04-03T10:22:42.000Z
|
2022-01-31T10:07:27.000Z
|
1.Behavior-FitModels/Functions/fitModels.py
|
const7/MoralStrategiesFMRI
|
520541fd5fb4ff707d8b5da96cbc8a987282abc7
|
[
"MIT"
] | null | null | null |
1.Behavior-FitModels/Functions/fitModels.py
|
const7/MoralStrategiesFMRI
|
520541fd5fb4ff707d8b5da96cbc8a987282abc7
|
[
"MIT"
] | 7
|
2019-04-03T23:16:00.000Z
|
2022-01-18T07:39:23.000Z
|
import sys, glob, os, scipy
import numpy as np
import pandas as pd
from scipy.optimize import least_squares
from scipy.io import loadmat
import costFunctions
import choiceModels
import penalizedModelFit
base_dir = 'yourprojectfolderhere'
# Arguments
sub = int(sys.argv[1]) # This takes the subject number
niter = int(sys.argv[2]) # This takes the number of iterations for the fitting algorithm
jobs_iteration = int(sys.argv[3]) # This takes the number of job iterations / output folder index
# Load data
dat = pd.read_csv(os.path.join(base_dir,'Data/1.TaskBehavior/allDataLong.csv'),header=None,index_col=None)
dat.columns=['sub','inv','mult','ret','exp','fair','soc1','soc2']
dat = dat.loc[dat['inv']>0,:] #Only trials with non-zero investment are of interest
subDat = dat.loc[dat['sub']==sub,:].reset_index(drop=True)
# Fit
import time
residShareChoice=False
results = pd.DataFrame(columns=['sub','model','theta','phi','SSE','AIC','BIC'])
# GREED MODEL
model = 'GR'
theta = np.nan
phi = np.nan
SSE = np.sum(np.square(subDat['ret']))
AIC = penalizedModelFit.compute_AIC(subDat.shape[0],SSE,0)
BIC = penalizedModelFit.compute_BIC(subDat.shape[0],SSE,0)
results = results.append(pd.DataFrame([[sub,model,theta,phi,SSE,AIC,BIC]],columns=results.columns))
print results
# GA MODEL
model = 'GA'
phi = np.nan
start = time.time()
print 'subject %s model %s' %(sub,model),
fitIters = np.zeros([niter,3])
for i in range(niter):
theta0 = scipy.random.uniform()*10000
fitIters[i,0] = theta0
res_lsq = least_squares(costFunctions.GA_costfun, theta0, args=(subDat,),
kwargs={'printStep':False,'resid_share':residShareChoice},
diff_step=.1,bounds=([0],[10000]),)
theta = res_lsq.x
cost = res_lsq.cost
fitIters[i,1:3] = [theta,cost]
cost_selected = np.min(fitIters[:,2]) #Minimal cost
theta = fitIters[fitIters[:,2]==cost_selected,1][0] # First theta with minimal cost
SSE = cost_selected*2
AIC = penalizedModelFit.compute_AIC(subDat.shape[0],SSE,1)
BIC = penalizedModelFit.compute_BIC(subDat.shape[0],SSE,1)
results = results.append(pd.DataFrame([[sub,model,theta,phi,SSE,AIC,BIC]],columns=results.columns))
print 'took %.2f seconds to converge on theta = %.3f with SSE = %.3f'%(time.time() - start,theta,SSE)
# GA MODEL (pre-programmed second-order expectations)
model = 'GA_ppSOE'
phi = np.nan
start = time.time()
print 'subject %s model %s' %(sub,model),
fitIters = np.zeros([niter,3])
for i in range(niter):
theta0 = scipy.random.uniform()*10000
fitIters[i,0] = theta0
res_lsq = least_squares(costFunctions.GA_ppSOE_costfun, theta0, args=(subDat,),
kwargs={'printStep':False,'resid_share':residShareChoice},
diff_step=.1,bounds=([0],[10000]),)
theta = res_lsq.x
cost = res_lsq.cost
fitIters[i,1:3] = [theta,cost]
cost_selected = np.min(fitIters[:,2]) #Minimal cost
theta = fitIters[fitIters[:,2]==cost_selected,1][0] # First theta with minimal cost
SSE = cost_selected*2
AIC = penalizedModelFit.compute_AIC(subDat.shape[0],SSE,1)
BIC = penalizedModelFit.compute_BIC(subDat.shape[0],SSE,1)
results = results.append(pd.DataFrame([[sub,model,theta,phi,SSE,AIC,BIC]],columns=results.columns))
print 'took %.2f seconds to converge on theta = %.3f with SSE = %.3f'%(time.time() - start,theta,SSE)
# IA MODEL
model = 'IA'
phi = np.nan
start = time.time()
print 'subject %s model %s' %(sub,model),
fitIters = np.zeros([niter,3])
for i in range(niter):
theta0 = scipy.random.uniform()*10000
fitIters[i,0] = theta0
res_lsq = least_squares(costFunctions.IA_costfun, theta0, args=(subDat,),
kwargs={'printStep':False,'resid_share':residShareChoice},
diff_step=.1,bounds=([0],[10000]),)
theta = res_lsq.x
cost = res_lsq.cost
fitIters[i,1:3] = [theta,cost]
cost_selected = np.min(fitIters[:,2]) #Minimal cost
theta = fitIters[fitIters[:,2]==cost_selected,1][0] # First theta with minimal cost
SSE = cost_selected*2
AIC = penalizedModelFit.compute_AIC(subDat.shape[0],SSE,1)
BIC = penalizedModelFit.compute_BIC(subDat.shape[0],SSE,1)
results = results.append(pd.DataFrame([[sub,model,theta,phi,SSE,AIC,BIC]],columns=results.columns))
print 'took %.2f seconds to converge on theta = %.3f with SSE = %.3f'%(time.time() - start,theta,SSE)
# MP MODEL
model = 'MP'
start = time.time()
print 'subject %s model %s' %(sub,model),
fitIters = np.zeros([niter,5])
for i in range(niter):
param0 = [scipy.random.uniform()/2,scipy.random.uniform()/5-0.1]
fitIters[i,0:2] = param0[:]
res_lsq = least_squares(costFunctions.MP_costfun, param0, args=(subDat,),
kwargs={'printStep':False,'resid_share':residShareChoice},
diff_step=.05,bounds=([0,-.1],[.5,.1]),)
theta,phi = res_lsq.x
cost = res_lsq.cost
fitIters[i,2:5] = [theta,phi,cost]
cost_selected = np.min(fitIters[:,4]) #Minimal cost
theta = fitIters[fitIters[:,4]==cost_selected,2][0] # First theta with minimal cost
phi = fitIters[fitIters[:,4]==cost_selected,3][0] # First theta with minimal cost
SSE = cost_selected*2
AIC = penalizedModelFit.compute_AIC(subDat.shape[0],SSE,2)
BIC = penalizedModelFit.compute_BIC(subDat.shape[0],SSE,2)
results = results.append(pd.DataFrame([[sub,model,theta,phi,SSE,AIC,BIC]],columns=results.columns))
print 'took %.2f seconds to converge on theta = %.3f and phi = %.3f with SSE = %.2f'%(
time.time() - start,theta,phi,SSE)
# MP MODEL (pre-programmed second-order expectations)
model = 'MP_ppSOE'
start = time.time()
print 'subject %s model %s' %(sub,model),
fitIters = np.zeros([niter,5])
for i in range(niter):
param0 = [scipy.random.uniform()/2,scipy.random.uniform()/5-0.1]
fitIters[i,0:2] = param0[:]
res_lsq = least_squares(costFunctions.MP_ppSOE_costfun, param0, args=(subDat,),
kwargs={'printStep':False,'resid_share':residShareChoice},
diff_step=.05,bounds=([0,-.1],[.5,.1]),)
theta,phi = res_lsq.x
cost = res_lsq.cost
fitIters[i,2:5] = [theta,phi,cost]
cost_selected = np.min(fitIters[:,4]) #Minimal cost
theta = fitIters[fitIters[:,4]==cost_selected,2][0] # First theta with minimal cost
phi = fitIters[fitIters[:,4]==cost_selected,3][0] # First theta with minimal cost
SSE = cost_selected*2
AIC = penalizedModelFit.compute_AIC(subDat.shape[0],SSE,2)
BIC = penalizedModelFit.compute_BIC(subDat.shape[0],SSE,2)
results = results.append(pd.DataFrame([[sub,model,theta,phi,SSE,AIC,BIC]],columns=results.columns))
print 'took %.2f seconds to converge on theta = %.3f and phi = %.3f with SSE = %.2f'%(
time.time() - start,theta,phi,SSE)
# MP MODEL (pre-programmed second-order expectations)
model = 'MP_ppSOE_noDiffStep'
start = time.time()
print 'subject %s model %s' %(sub,model),
fitIters = np.zeros([niter,5])
for i in range(niter):
param0 = [scipy.random.uniform()/2,scipy.random.uniform()/5-0.1]
fitIters[i,0:2] = param0[:]
res_lsq = least_squares(costFunctions.MP_ppSOE_costfun, param0, args=(subDat,),
kwargs={'printStep':False,'resid_share':residShareChoice},
# diff_step=.05,
bounds=([0,-.1],[.5,.1]),)
theta,phi = res_lsq.x
cost = res_lsq.cost
fitIters[i,2:5] = [theta,phi,cost]
cost_selected = np.min(fitIters[:,4]) #Minimal cost
theta = fitIters[fitIters[:,4]==cost_selected,2][0] # First theta with minimal cost
phi = fitIters[fitIters[:,4]==cost_selected,3][0] # First theta with minimal cost
SSE = cost_selected*2
AIC = penalizedModelFit.compute_AIC(subDat.shape[0],SSE,2)
BIC = penalizedModelFit.compute_BIC(subDat.shape[0],SSE,2)
results = results.append(pd.DataFrame([[sub,model,theta,phi,SSE,AIC,BIC]],columns=results.columns))
print 'took %.2f seconds to converge on theta = %.3f and phi = %.3f with SSE = %.2f'%(
time.time() - start,theta,phi,SSE)
# STORE RESULTS
results = results.reset_index(drop=True)
folder = os.path.join(base_dir,'Results/1.Behavior-FitModels/Iteration_%i'%jobs_iteration)
if not os.path.exists(folder):
os.makedirs(folder)
results.to_csv('%s/Results_sub-%03d.csv'%(folder,sub))
| 41.16
| 106
| 0.681487
| 1,219
| 8,232
| 4.522559
| 0.130435
| 0.04571
| 0.030473
| 0.038092
| 0.831852
| 0.818066
| 0.818066
| 0.805188
| 0.788863
| 0.788863
| 0
| 0.030007
| 0.153912
| 8,232
| 199
| 107
| 41.366834
| 0.761522
| 0.099976
| 0
| 0.745342
| 0
| 0.018634
| 0.117934
| 0.016267
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.055901
| null | null | 0.118012
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
eac29e98e017851043115f4239563840768db3ff
| 9,175
|
py
|
Python
|
test/inheritance_query/test.py
|
katonori/cxxtags
|
2730adb040d1334caa1a9ae7e468f498e094d254
|
[
"BSD-3-Clause"
] | null | null | null |
test/inheritance_query/test.py
|
katonori/cxxtags
|
2730adb040d1334caa1a9ae7e468f498e094d254
|
[
"BSD-3-Clause"
] | null | null | null |
test/inheritance_query/test.py
|
katonori/cxxtags
|
2730adb040d1334caa1a9ae7e468f498e094d254
|
[
"BSD-3-Clause"
] | null | null | null |
#!/usr/bin/python
import sys
import os
import sqlite3
import commands
sys.path.append("../../src/")
import cxxtags_util as cxxtags
sys.path.append("../util/")
import clang.cindex # for kind types
import common as test_util
err = 0
#test_util.DebugOn()
if len(sys.argv) != 2:
print "usage: cmd db_file"
exit(1)
db_dir = sys.argv[1]
cur_dir = os.getcwd()
cur_dir = os.path.abspath(cur_dir + "/../inheritance")
test_data_list_ref = [
('c:@C@CParent0','CParent0',cur_dir+'/inhe.cpp',11,6,cur_dir+'/inhe.cpp',3,7),
('c:@C@CParent1','CParent1',cur_dir+'/inhe.cpp',23,6,cur_dir+'/inhe.cpp',15,7),
('c:@C@CParent0','CParent0',cur_dir+'/inhe.cpp',28,10,cur_dir+'/inhe.cpp',3,7),
('c:@C@CChild','CChild',cur_dir+'/inhe.cpp',36,6,cur_dir+'/inhe.cpp',27,7),
('c:@C@CChild','CChild',cur_dir+'/inhe.cpp',41,10,cur_dir+'/inhe.cpp',27,7),
('c:@C@CGChild','CGChild',cur_dir+'/inhe.cpp',49,6,cur_dir+'/inhe.cpp',40,7),
('c:@C@CParent0','CParent0',cur_dir+'/inhe.cpp',54,10,cur_dir+'/inhe.cpp',3,7),
('c:@C@CParent1','CParent1',cur_dir+'/inhe.cpp',54,27,cur_dir+'/inhe.cpp',15,7),
('c:@C@COther','COther',cur_dir+'/inhe.cpp',62,6,cur_dir+'/inhe.cpp',53,7),
('c:@C@CParent0','CParent0',cur_dir+'/inhe.cpp',66,24,cur_dir+'/inhe.cpp',3,7),
('c:inhe.cpp@886@F@test#*$@C@CParent0#@a','a',cur_dir+'/inhe.cpp',68,5,cur_dir+'/inhe.cpp',66,34),
('c:@C@CParent0@F@response#','response',cur_dir+'/inhe.cpp',68,8,cur_dir+'/inhe.cpp',11,16),
('c:@C@CParent0','CParent0',cur_dir+'/inhe.cpp',73,5,cur_dir+'/inhe.cpp',3,7),
('c:@C@CChild','CChild',cur_dir+'/inhe.cpp',74,5,cur_dir+'/inhe.cpp',27,7),
('c:@C@CGChild','CGChild',cur_dir+'/inhe.cpp',75,5,cur_dir+'/inhe.cpp',40,7),
('c:@C@COther','COther',cur_dir+'/inhe.cpp',76,5,cur_dir+'/inhe.cpp',53,7),
('c:inhe.cpp@946@F@main@parent','parent',cur_dir+'/inhe.cpp',77,5,cur_dir+'/inhe.cpp',73,14),
('c:@C@CParent0@F@response#','response',cur_dir+'/inhe.cpp',77,12,cur_dir+'/inhe.cpp',11,16),
('c:inhe.cpp@967@F@main@child','child',cur_dir+'/inhe.cpp',78,5,cur_dir+'/inhe.cpp',74,12),
('c:@C@CChild@F@response#','response',cur_dir+'/inhe.cpp',78,11,cur_dir+'/inhe.cpp',36,14),
('c:inhe.cpp@985@F@main@gchild','gchild',cur_dir+'/inhe.cpp',79,5,cur_dir+'/inhe.cpp',75,13),
('c:@C@CGChild@F@response#','response',cur_dir+'/inhe.cpp',79,12,cur_dir+'/inhe.cpp',49,15),
('c:inhe.cpp@1005@F@main@other','other',cur_dir+'/inhe.cpp',80,5,cur_dir+'/inhe.cpp',76,12),
('c:@C@COther@F@response#','response',cur_dir+'/inhe.cpp',80,11,cur_dir+'/inhe.cpp',62,14),
('c:inhe.cpp@869@F@test#*$@C@CParent0#','test',cur_dir+'/inhe.cpp',81,5,cur_dir+'/inhe.cpp',66,13),
('c:inhe.cpp@946@F@main@parent','parent',cur_dir+'/inhe.cpp',81,11,cur_dir+'/inhe.cpp',73,14),
('c:inhe.cpp@869@F@test#*$@C@CParent0#','test',cur_dir+'/inhe.cpp',82,5,cur_dir+'/inhe.cpp',66,13),
('c:inhe.cpp@967@F@main@child','child',cur_dir+'/inhe.cpp',82,11,cur_dir+'/inhe.cpp',74,12),
('c:inhe.cpp@869@F@test#*$@C@CParent0#','test',cur_dir+'/inhe.cpp',83,5,cur_dir+'/inhe.cpp',66,13),
('c:inhe.cpp@985@F@main@gchild','gchild',cur_dir+'/inhe.cpp',83,11,cur_dir+'/inhe.cpp',75,13),
('c:inhe.cpp@869@F@test#*$@C@CParent0#','test',cur_dir+'/inhe.cpp',84,5,cur_dir+'/inhe.cpp',66,13),
('c:inhe.cpp@1005@F@main@other','other',cur_dir+'/inhe.cpp',84,11,cur_dir+'/inhe.cpp',76,12),
]
test_data_list_decl = [
('c:@C@CParent0','CParent0',cur_dir+'/inhe.cpp',3,7,0,0,1),
('c:@C@CParent0@F@CParent0#','CParent0',cur_dir+'/inhe.cpp',6,5,0,0,1),
('c:@C@CParent0@F@~CParent0#','~CParent0',cur_dir+'/inhe.cpp',7,5,0,0,1),
('c:@C@CParent0@F@response#','response',cur_dir+'/inhe.cpp',8,18,0,1,0),
('c:@C@CParent0@F@response#','response',cur_dir+'/inhe.cpp',11,16,0,1,1),
('c:@C@CParent1','CParent1',cur_dir+'/inhe.cpp',15,7,0,0,1),
('c:@C@CParent1@F@CParent1#','CParent1',cur_dir+'/inhe.cpp',18,5,0,0,1),
('c:@C@CParent1@F@~CParent1#','~CParent1',cur_dir+'/inhe.cpp',19,5,0,0,1),
('c:@C@CParent1@F@response#','response',cur_dir+'/inhe.cpp',20,18,0,1,0),
('c:@C@CParent1@F@response#','response',cur_dir+'/inhe.cpp',23,16,0,1,1),
('c:@C@CChild','CChild',cur_dir+'/inhe.cpp',27,7,0,0,1),
('c:@C@CChild@F@CChild#','CChild',cur_dir+'/inhe.cpp',31,5,0,0,1),
('c:@C@CChild@F@~CChild#','~CChild',cur_dir+'/inhe.cpp',32,5,0,0,1),
('c:@C@CChild@F@response#','response',cur_dir+'/inhe.cpp',33,18,0,1,0),
('c:@C@CChild@F@response#','response',cur_dir+'/inhe.cpp',36,14,0,1,1),
('c:@C@CGChild','CGChild',cur_dir+'/inhe.cpp',40,7,0,0,1),
('c:@C@CGChild@F@CGChild#','CGChild',cur_dir+'/inhe.cpp',44,5,0,0,1),
('c:@C@CGChild@F@~CGChild#','~CGChild',cur_dir+'/inhe.cpp',45,5,0,0,1),
('c:@C@CGChild@F@response#','response',cur_dir+'/inhe.cpp',46,18,0,1,0),
('c:@C@CGChild@F@response#','response',cur_dir+'/inhe.cpp',49,15,0,1,1),
('c:@C@COther','COther',cur_dir+'/inhe.cpp',53,7,0,0,1),
('c:@C@COther@F@COther#','COther',cur_dir+'/inhe.cpp',57,5,0,0,1),
('c:@C@COther@F@~COther#','~COther',cur_dir+'/inhe.cpp',58,5,0,0,1),
('c:@C@COther@F@response#','response',cur_dir+'/inhe.cpp',59,18,0,1,0),
('c:@C@COther@F@response#','response',cur_dir+'/inhe.cpp',62,14,0,1,1),
('c:inhe.cpp@869@F@test#*$@C@CParent0#','test',cur_dir+'/inhe.cpp',66,13,0,0,1),
('c:inhe.cpp@886@F@test#*$@C@CParent0#@a','a',cur_dir+'/inhe.cpp',66,34,0,0,1),
('c:@F@main','main',cur_dir+'/inhe.cpp',71,5,0,0,1),
('c:inhe.cpp@946@F@main@parent','parent',cur_dir+'/inhe.cpp',73,14,0,0,1),
('c:inhe.cpp@967@F@main@child','child',cur_dir+'/inhe.cpp',74,12,0,0,1),
('c:inhe.cpp@985@F@main@gchild','gchild',cur_dir+'/inhe.cpp',75,13,0,0,1),
('c:inhe.cpp@1005@F@main@other','other',cur_dir+'/inhe.cpp',76,12,0,0,1),
]
test_data_list_overriden = [
# overriden
('c:@C@CParent0@F@response#','response',cur_dir+'/inhe.cpp',33,18,'c:@C@CChild@F@response#',0),
('c:@C@CParent0@F@response#','response',cur_dir+'/inhe.cpp',36,14,'c:@C@CChild@F@response#',1),
('c:@C@CChild@F@response#','response',cur_dir+'/inhe.cpp',46,18,'c:@C@CGChild@F@response#',0),
('c:@C@CChild@F@response#','response',cur_dir+'/inhe.cpp',49,15,'c:@C@CGChild@F@response#',1),
('c:@C@CParent0@F@response#','response',cur_dir+'/inhe.cpp',59,18,'c:@C@COther@F@response#',0),
('c:@C@CParent1@F@response#','response',cur_dir+'/inhe.cpp',59,18,'c:@C@COther@F@response#',0),
('c:@C@CParent0@F@response#','response',cur_dir+'/inhe.cpp',62,14,'c:@C@COther@F@response#',1),
('c:@C@CParent1@F@response#','response',cur_dir+'/inhe.cpp',62,14,'c:@C@COther@F@response#',1),
]
err += test_util.DoDeclTest(test_data_list_decl, test_data_list_ref)
err += test_util.DoRefTest(test_data_list_ref, test_data_list_decl)
# build test list
usr_list = []
for test in test_data_list_overriden:
usr_list.append(test[6])
usr_list = set(usr_list)
test_list = []
for usr in usr_list:
for test in test_data_list_decl:
if usr == test[0]:
test_list.append(test)
for test in test_list:
resultList = []
test_util.DbgPrint("override test")
#print test
usr, dummy, fileName, line, col, dummy, dummy, dummy, is_def = test
# search overrider
for i in test_data_list_overriden:
i_usr, dummy, i_fileName, i_line, i_col, i_usr_overrider, i_isDef = i
if usr == i_usr_overrider:
for declRow in test_data_list_decl:
declUsr, declName, declFileName, declLine, declCol, dummy, dummy, dummy, declIsDef = declRow
if i_usr == declUsr and i_isDef == declIsDef:
resultList.append((declLine, declCol, declFileName ))
if len(resultList) == 0:
continue
# exec command
cmdResult = test_util.QueryTestExecCommand("override", fileName, line, col)
test_util.DbgPrint(cmdResult)
test_util.DbgPrint(resultList)
cmdResult = sorted(cmdResult)
resultList = sorted(resultList)
# check result
i = 0
for row in cmdResult:
if row != resultList[i]:
print "DIFFER: "
print row
print resultList[i]
err += 1
i+=1
# build test list
usr_list = []
for test in test_data_list_overriden:
usr_list.append(test[0])
usr_list = set(usr_list)
test_list = []
for usr in usr_list:
for test in test_data_list_decl:
if usr == test[0]:
test_list.append(test)
for test in test_list:
resultList = []
test_util.DbgPrint("overriden test")
#print test
usr, name, fileName, line, col, dummy, dummy, is_def = test
# get decl location
for i in test_data_list_overriden:
i_usr, i_name, i_fileName, i_line, i_col, i_usr_overrider, i_isDef = i
i_lineStr = cxxtags.get_line_from_file(i_fileName, i_line)
if i_usr == usr:
resultList.append((i_name, i_line, i_col, i_fileName, i_lineStr))
if len(resultList) == 0:
continue
# exec command
cmdResult = test_util.QueryTestExecCommand("overriden", fileName, line, col)
test_util.DbgPrint(cmdResult)
test_util.DbgPrint(resultList)
cmdResult = sorted(cmdResult)
resultList = sorted(resultList)
# check result
i = 0
for row in cmdResult:
if row != resultList[i]:
print "DIFFER: "
print row
print resultList[i]
err += 1
i+=1
if err == 0:
print "OK"
else:
print "ERR: %d"%(err)
sys.exit(err)
| 44.97549
| 108
| 0.644796
| 1,677
| 9,175
| 3.400716
| 0.096601
| 0.150973
| 0.18236
| 0.237068
| 0.836753
| 0.790637
| 0.769069
| 0.72681
| 0.673505
| 0.623356
| 0
| 0.071308
| 0.099728
| 9,175
| 203
| 109
| 45.197044
| 0.619128
| 0.021689
| 0
| 0.295858
| 0
| 0
| 0.373466
| 0.174738
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.04142
| null | null | 0.053254
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
dc5c23e7d7e4255c10c8015b183a8a2f302b3b7b
| 10,572
|
py
|
Python
|
dashboard/migrations/0016_utf8_conversion.py
|
lsloan/myla
|
f288ad3c77c3911f1831bf484a2ff275194e768b
|
[
"Apache-2.0"
] | 31
|
2018-11-28T16:45:01.000Z
|
2022-01-21T15:28:07.000Z
|
dashboard/migrations/0016_utf8_conversion.py
|
lsloan/myla
|
f288ad3c77c3911f1831bf484a2ff275194e768b
|
[
"Apache-2.0"
] | 901
|
2018-11-01T21:11:37.000Z
|
2022-03-30T18:58:20.000Z
|
dashboard/migrations/0016_utf8_conversion.py
|
lsloan/myla
|
f288ad3c77c3911f1831bf484a2ff275194e768b
|
[
"Apache-2.0"
] | 37
|
2018-11-02T16:53:20.000Z
|
2022-03-18T16:45:55.000Z
|
# Migration to convert all tables and text columns as of 2020-07-22 to utf8mb4
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
# Go after this converstion in MyLA
('dashboard', '0015_auto_20200116_1408'),
# Django dependencies
('sites', '0001_initial'),
('sessions', '0001_initial'),
# Contrib dependencies
('django_cron', '0001_initial'),
('flatpages', '0001_initial'),
('eventlog', '0001_initial'),
]
operations = [
# Disable Foreign Key Checks
migrations.RunSQL("""
SET FOREIGN_KEY_CHECKS=0;
"""),
# Alter database
migrations.RunSQL("""
ALTER DATABASE CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci;
"""),
# Alter tables
migrations.RunSQL("""
ALTER TABLE `academic_terms` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `assignment` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `assignment_groups` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `assignment_weight_consideration` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `auth_group` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `auth_group_permissions` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `auth_permission` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `auth_user` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `auth_user_groups` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `auth_user_user_permissions` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `course` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `course_view_option` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_admin_log` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_content_type` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_cron_cronjoblog` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_flatpage` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_flatpage_sites` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_migrations` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_session` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_site` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `eventlog_log` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `resource` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `resource_access` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `submission` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `unizin_metadata` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `user` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `user_default_selection` ROW_FORMAT = DYNAMIC, CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
"""),
# Alter columns
migrations.RunSQL("""
ALTER TABLE `academic_terms` CHANGE `name` `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `assignment` CHANGE `name` `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `assignment_groups` CHANGE `name` `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `auth_group` CHANGE `name` `name` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `auth_permission` CHANGE `name` `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `auth_permission` CHANGE `codename` `codename` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `auth_user` CHANGE `password` `password` varchar(128) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `auth_user` CHANGE `username` `username` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `auth_user` CHANGE `first_name` `first_name` varchar(30) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `auth_user` CHANGE `last_name` `last_name` varchar(150) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `auth_user` CHANGE `email` `email` varchar(254) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `course` CHANGE `name` `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `course` CHANGE `show_grade_type` `show_grade_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_admin_log` CHANGE `object_repr` `object_repr` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_content_type` CHANGE `app_label` `app_label` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_content_type` CHANGE `model` `model` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_cron_cronjoblog` CHANGE `code` `code` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_flatpage` CHANGE `url` `url` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_flatpage` CHANGE `title` `title` varchar(200) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_flatpage` CHANGE `template_name` `template_name` varchar(70) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_migrations` CHANGE `app` `app` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_migrations` CHANGE `name` `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_session` CHANGE `session_key` `session_key` varchar(40) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_site` CHANGE `domain` `domain` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_site` CHANGE `name` `name` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `eventlog_log` CHANGE `action` `action` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `resource` CHANGE `resource_id` `resource_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `resource` CHANGE `resource_type` `resource_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `resource_access` CHANGE `resource_id` `resource_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `submission` CHANGE `grade_posted_local_date` `grade_posted_local_date` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `unizin_metadata` CHANGE `pkey` `pkey` varchar(20) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `unizin_metadata` CHANGE `pvalue` `pvalue` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `user` CHANGE `name` `name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `user` CHANGE `sis_id` `sis_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `user` CHANGE `sis_name` `sis_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `user` CHANGE `enrollment_type` `enrollment_type` varchar(50) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `user_default_selection` CHANGE `user_sis_name` `user_sis_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `user_default_selection` CHANGE `default_view_type` `default_view_type` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_admin_log` CHANGE `object_id` `object_id` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_admin_log` CHANGE `change_message` `change_message` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_cron_cronjoblog` CHANGE `message` `message` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_flatpage` CHANGE `content` `content` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `django_session` CHANGE `session_data` `session_data` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `eventlog_log` CHANGE `extra` `extra` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `resource` CHANGE `name` `name` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
ALTER TABLE `user_default_selection` CHANGE `default_view_value` `default_view_value` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
"""),
# Enable Foreign Key checks
migrations.RunSQL("""
SET FOREIGN_KEY_CHECKS=1;
"""),
]
| 93.557522
| 158
| 0.731082
| 1,317
| 10,572
| 5.627183
| 0.103265
| 0.119822
| 0.189718
| 0.259614
| 0.863041
| 0.863041
| 0.852517
| 0.852517
| 0.839428
| 0.825665
| 0
| 0.053642
| 0.206489
| 10,572
| 112
| 159
| 94.392857
| 0.829777
| 0.023269
| 0
| 0.102041
| 0
| 0.387755
| 0.949108
| 0.044009
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.010204
| 0.010204
| 0
| 0.040816
| 0
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 10
|
dc7e163204d88441573ba582fd0028caa49265c5
| 110
|
py
|
Python
|
src/mylib/__init__.py
|
takedarts/swgridnet
|
e2fede53a60047b40abeaf016a1c52d51a3e3e48
|
[
"MIT"
] | 8
|
2017-09-25T08:54:18.000Z
|
2018-10-18T11:47:43.000Z
|
src/mylib/__init__.py
|
takedarts/swgridnet
|
e2fede53a60047b40abeaf016a1c52d51a3e3e48
|
[
"MIT"
] | null | null | null |
src/mylib/__init__.py
|
takedarts/swgridnet
|
e2fede53a60047b40abeaf016a1c52d51a3e3e48
|
[
"MIT"
] | null | null | null |
from mylib import datasets
from mylib import functions
from mylib import links
from mylib import training
| 22
| 28
| 0.818182
| 16
| 110
| 5.625
| 0.4375
| 0.4
| 0.666667
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.181818
| 110
| 4
| 29
| 27.5
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
f49fa251264869e3dcf3b41419502885e858fb2e
| 27,529
|
py
|
Python
|
losantrest/flow.py
|
Losant/losant-rest-python
|
50a6ce13dfef7acefb930fe45893c7bae862f784
|
[
"MIT"
] | 5
|
2016-06-16T20:18:11.000Z
|
2022-03-09T11:41:59.000Z
|
losantrest/flow.py
|
Losant/losant-rest-python
|
50a6ce13dfef7acefb930fe45893c7bae862f784
|
[
"MIT"
] | 4
|
2021-07-13T06:09:16.000Z
|
2022-03-07T14:24:49.000Z
|
losantrest/flow.py
|
Losant/losant-rest-python
|
50a6ce13dfef7acefb930fe45893c7bae862f784
|
[
"MIT"
] | 6
|
2016-11-18T03:19:17.000Z
|
2022-03-09T11:41:47.000Z
|
"""
The MIT License (MIT)
Copyright (c) 2021 Losant IoT, 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.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""
import json
""" Module for Losant API Flow wrapper class """
# pylint: disable=C0301
class Flow(object):
""" Class containing all the actions for the Flow Resource """
def __init__(self, client):
self.client = client
def clear_storage_entries(self, **kwargs):
"""
Clear all storage entries
Authentication:
The client must be configured with a valid api
access token to call this action. The token
must include at least one of the following scopes:
all.Application, all.Organization, all.User, flow.*, or flow.clearStorageEntries.
Parameters:
* {string} applicationId - ID associated with the application
* {string} flowId - ID associated with the flow
* {string} losantdomain - Domain scope of request (rarely needed)
* {boolean} _actions - Return resource actions in response
* {boolean} _links - Return resource link in response
* {boolean} _embedded - Return embedded resources in response
Responses:
* 200 - The current storage entries (https://api.losant.com/#/definitions/flowStorageEntries)
Errors:
* 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
* 404 - Error if flow was not found (https://api.losant.com/#/definitions/error)
"""
query_params = {"_actions": "false", "_links": "true", "_embedded": "true"}
path_params = {}
headers = {}
body = None
if "applicationId" in kwargs:
path_params["applicationId"] = kwargs["applicationId"]
if "flowId" in kwargs:
path_params["flowId"] = kwargs["flowId"]
if "losantdomain" in kwargs:
headers["losantdomain"] = kwargs["losantdomain"]
if "_actions" in kwargs:
query_params["_actions"] = kwargs["_actions"]
if "_links" in kwargs:
query_params["_links"] = kwargs["_links"]
if "_embedded" in kwargs:
query_params["_embedded"] = kwargs["_embedded"]
path = "/applications/{applicationId}/flows/{flowId}/storage".format(**path_params)
return self.client.request("DELETE", path, params=query_params, headers=headers, body=body)
def delete(self, **kwargs):
"""
Deletes a flow
Authentication:
The client must be configured with a valid api
access token to call this action. The token
must include at least one of the following scopes:
all.Application, all.Organization, all.User, flow.*, or flow.delete.
Parameters:
* {string} applicationId - ID associated with the application
* {string} flowId - ID associated with the flow
* {string} losantdomain - Domain scope of request (rarely needed)
* {boolean} _actions - Return resource actions in response
* {boolean} _links - Return resource link in response
* {boolean} _embedded - Return embedded resources in response
Responses:
* 200 - If flow was successfully deleted (https://api.losant.com/#/definitions/success)
Errors:
* 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
* 404 - Error if flow was not found (https://api.losant.com/#/definitions/error)
"""
query_params = {"_actions": "false", "_links": "true", "_embedded": "true"}
path_params = {}
headers = {}
body = None
if "applicationId" in kwargs:
path_params["applicationId"] = kwargs["applicationId"]
if "flowId" in kwargs:
path_params["flowId"] = kwargs["flowId"]
if "losantdomain" in kwargs:
headers["losantdomain"] = kwargs["losantdomain"]
if "_actions" in kwargs:
query_params["_actions"] = kwargs["_actions"]
if "_links" in kwargs:
query_params["_links"] = kwargs["_links"]
if "_embedded" in kwargs:
query_params["_embedded"] = kwargs["_embedded"]
path = "/applications/{applicationId}/flows/{flowId}".format(**path_params)
return self.client.request("DELETE", path, params=query_params, headers=headers, body=body)
def errors(self, **kwargs):
"""
Get information about errors that occurred during runs of this workflow
Authentication:
The client must be configured with a valid api
access token to call this action. The token
must include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flow.*, or flow.errors.
Parameters:
* {string} applicationId - ID associated with the application
* {string} flowId - ID associated with the flow
* {string} duration - Duration of time range in milliseconds
* {string} end - End of time range in milliseconds since epoch
* {string} limit - Maximum number of errors to return
* {string} sortDirection - Direction to sort the results by. Accepted values are: asc, desc
* {string} flowVersion - Flow version name or ID. When not included, will be errors for all versions. Pass develop for just the develop version.
* {string} deviceId - For edge or embedded workflows, the Device ID to return workflow errors for. When not included, will be errors for all device IDs.
* {string} losantdomain - Domain scope of request (rarely needed)
* {boolean} _actions - Return resource actions in response
* {boolean} _links - Return resource link in response
* {boolean} _embedded - Return embedded resources in response
Responses:
* 200 - Workflow error information (https://api.losant.com/#/definitions/flowErrors)
Errors:
* 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
* 404 - Error if flow was not found (https://api.losant.com/#/definitions/error)
"""
query_params = {"_actions": "false", "_links": "true", "_embedded": "true"}
path_params = {}
headers = {}
body = None
if "applicationId" in kwargs:
path_params["applicationId"] = kwargs["applicationId"]
if "flowId" in kwargs:
path_params["flowId"] = kwargs["flowId"]
if "duration" in kwargs:
query_params["duration"] = kwargs["duration"]
if "end" in kwargs:
query_params["end"] = kwargs["end"]
if "limit" in kwargs:
query_params["limit"] = kwargs["limit"]
if "sortDirection" in kwargs:
query_params["sortDirection"] = kwargs["sortDirection"]
if "flowVersion" in kwargs:
query_params["flowVersion"] = kwargs["flowVersion"]
if "deviceId" in kwargs:
query_params["deviceId"] = kwargs["deviceId"]
if "losantdomain" in kwargs:
headers["losantdomain"] = kwargs["losantdomain"]
if "_actions" in kwargs:
query_params["_actions"] = kwargs["_actions"]
if "_links" in kwargs:
query_params["_links"] = kwargs["_links"]
if "_embedded" in kwargs:
query_params["_embedded"] = kwargs["_embedded"]
path = "/applications/{applicationId}/flows/{flowId}/errors".format(**path_params)
return self.client.request("GET", path, params=query_params, headers=headers, body=body)
def get(self, **kwargs):
"""
Retrieves information on a flow
Authentication:
The client must be configured with a valid api
access token to call this action. The token
must include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flow.*, or flow.get.
Parameters:
* {string} applicationId - ID associated with the application
* {string} flowId - ID associated with the flow
* {string} includeCustomNodes - If the result of the request should also include the details of any custom nodes referenced by the returned workflows
* {string} losantdomain - Domain scope of request (rarely needed)
* {boolean} _actions - Return resource actions in response
* {boolean} _links - Return resource link in response
* {boolean} _embedded - Return embedded resources in response
Responses:
* 200 - Flow information (https://api.losant.com/#/definitions/flow)
Errors:
* 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
* 404 - Error if flow was not found (https://api.losant.com/#/definitions/error)
"""
query_params = {"_actions": "false", "_links": "true", "_embedded": "true"}
path_params = {}
headers = {}
body = None
if "applicationId" in kwargs:
path_params["applicationId"] = kwargs["applicationId"]
if "flowId" in kwargs:
path_params["flowId"] = kwargs["flowId"]
if "includeCustomNodes" in kwargs:
query_params["includeCustomNodes"] = kwargs["includeCustomNodes"]
if "losantdomain" in kwargs:
headers["losantdomain"] = kwargs["losantdomain"]
if "_actions" in kwargs:
query_params["_actions"] = kwargs["_actions"]
if "_links" in kwargs:
query_params["_links"] = kwargs["_links"]
if "_embedded" in kwargs:
query_params["_embedded"] = kwargs["_embedded"]
path = "/applications/{applicationId}/flows/{flowId}".format(**path_params)
return self.client.request("GET", path, params=query_params, headers=headers, body=body)
def get_log_entries(self, **kwargs):
"""
Retrieve the recent log entries about runs of this workflow
Authentication:
The client must be configured with a valid api
access token to call this action. The token
must include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flow.*, or flow.log.
Parameters:
* {string} applicationId - ID associated with the application
* {string} flowId - ID associated with the flow
* {string} limit - Max log entries to return (ordered by time descending)
* {string} since - Look for log entries since this time (ms since epoch)
* {string} losantdomain - Domain scope of request (rarely needed)
* {boolean} _actions - Return resource actions in response
* {boolean} _links - Return resource link in response
* {boolean} _embedded - Return embedded resources in response
Responses:
* 200 - Recent log entries (https://api.losant.com/#/definitions/flowLog)
Errors:
* 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
* 404 - Error if flow was not found (https://api.losant.com/#/definitions/error)
"""
query_params = {"_actions": "false", "_links": "true", "_embedded": "true"}
path_params = {}
headers = {}
body = None
if "applicationId" in kwargs:
path_params["applicationId"] = kwargs["applicationId"]
if "flowId" in kwargs:
path_params["flowId"] = kwargs["flowId"]
if "limit" in kwargs:
query_params["limit"] = kwargs["limit"]
if "since" in kwargs:
query_params["since"] = kwargs["since"]
if "losantdomain" in kwargs:
headers["losantdomain"] = kwargs["losantdomain"]
if "_actions" in kwargs:
query_params["_actions"] = kwargs["_actions"]
if "_links" in kwargs:
query_params["_links"] = kwargs["_links"]
if "_embedded" in kwargs:
query_params["_embedded"] = kwargs["_embedded"]
path = "/applications/{applicationId}/flows/{flowId}/logs".format(**path_params)
return self.client.request("GET", path, params=query_params, headers=headers, body=body)
def get_storage_entries(self, **kwargs):
"""
Gets the current values in persistent storage
Authentication:
The client must be configured with a valid api
access token to call this action. The token
must include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flow.*, or flow.getStorageEntries.
Parameters:
* {string} applicationId - ID associated with the application
* {string} flowId - ID associated with the flow
* {string} losantdomain - Domain scope of request (rarely needed)
* {boolean} _actions - Return resource actions in response
* {boolean} _links - Return resource link in response
* {boolean} _embedded - Return embedded resources in response
Responses:
* 200 - The current storage entries (https://api.losant.com/#/definitions/flowStorageEntries)
Errors:
* 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
* 404 - Error if flow was not found (https://api.losant.com/#/definitions/error)
"""
query_params = {"_actions": "false", "_links": "true", "_embedded": "true"}
path_params = {}
headers = {}
body = None
if "applicationId" in kwargs:
path_params["applicationId"] = kwargs["applicationId"]
if "flowId" in kwargs:
path_params["flowId"] = kwargs["flowId"]
if "losantdomain" in kwargs:
headers["losantdomain"] = kwargs["losantdomain"]
if "_actions" in kwargs:
query_params["_actions"] = kwargs["_actions"]
if "_links" in kwargs:
query_params["_links"] = kwargs["_links"]
if "_embedded" in kwargs:
query_params["_embedded"] = kwargs["_embedded"]
path = "/applications/{applicationId}/flows/{flowId}/storage".format(**path_params)
return self.client.request("GET", path, params=query_params, headers=headers, body=body)
def get_storage_entries_metadata(self, **kwargs):
"""
Gets metadata about storage for this flow
Authentication:
The client must be configured with a valid api
access token to call this action. The token
must include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flow.*, or flow.getStorageEntriesMetadata.
Parameters:
* {string} applicationId - ID associated with the application
* {string} flowId - ID associated with the flow
* {string} losantdomain - Domain scope of request (rarely needed)
* {boolean} _actions - Return resource actions in response
* {boolean} _links - Return resource link in response
* {boolean} _embedded - Return embedded resources in response
Responses:
* 200 - The meta data for the current storage entries (https://api.losant.com/#/definitions/flowStorageMetadata)
Errors:
* 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
* 404 - Error if flow was not found (https://api.losant.com/#/definitions/error)
"""
query_params = {"_actions": "false", "_links": "true", "_embedded": "true"}
path_params = {}
headers = {}
body = None
if "applicationId" in kwargs:
path_params["applicationId"] = kwargs["applicationId"]
if "flowId" in kwargs:
path_params["flowId"] = kwargs["flowId"]
if "losantdomain" in kwargs:
headers["losantdomain"] = kwargs["losantdomain"]
if "_actions" in kwargs:
query_params["_actions"] = kwargs["_actions"]
if "_links" in kwargs:
query_params["_links"] = kwargs["_links"]
if "_embedded" in kwargs:
query_params["_embedded"] = kwargs["_embedded"]
path = "/applications/{applicationId}/flows/{flowId}/storage-metadata".format(**path_params)
return self.client.request("GET", path, params=query_params, headers=headers, body=body)
def patch(self, **kwargs):
"""
Updates information about a flow
Authentication:
The client must be configured with a valid api
access token to call this action. The token
must include at least one of the following scopes:
all.Application, all.Organization, all.User, flow.*, or flow.patch.
Parameters:
* {string} applicationId - ID associated with the application
* {string} flowId - ID associated with the flow
* {string} includeCustomNodes - If the result of the request should also include the details of any custom nodes referenced by the returned workflows
* {hash} flow - Object containing new properties of the flow (https://api.losant.com/#/definitions/flowPatch)
* {string} losantdomain - Domain scope of request (rarely needed)
* {boolean} _actions - Return resource actions in response
* {boolean} _links - Return resource link in response
* {boolean} _embedded - Return embedded resources in response
Responses:
* 200 - Updated flow information (https://api.losant.com/#/definitions/flow)
Errors:
* 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
* 404 - Error if flow is not found (https://api.losant.com/#/definitions/error)
"""
query_params = {"_actions": "false", "_links": "true", "_embedded": "true"}
path_params = {}
headers = {}
body = None
if "applicationId" in kwargs:
path_params["applicationId"] = kwargs["applicationId"]
if "flowId" in kwargs:
path_params["flowId"] = kwargs["flowId"]
if "includeCustomNodes" in kwargs:
query_params["includeCustomNodes"] = kwargs["includeCustomNodes"]
if "flow" in kwargs:
body = kwargs["flow"]
if "losantdomain" in kwargs:
headers["losantdomain"] = kwargs["losantdomain"]
if "_actions" in kwargs:
query_params["_actions"] = kwargs["_actions"]
if "_links" in kwargs:
query_params["_links"] = kwargs["_links"]
if "_embedded" in kwargs:
query_params["_embedded"] = kwargs["_embedded"]
path = "/applications/{applicationId}/flows/{flowId}".format(**path_params)
return self.client.request("PATCH", path, params=query_params, headers=headers, body=body)
def press_virtual_button(self, **kwargs):
"""
Presses the specified virtual button on the flow
Authentication:
The client must be configured with a valid api
access token to call this action. The token
must include at least one of the following scopes:
all.Application, all.Organization, all.User, flow.*, or flow.pressVirtualButton.
Parameters:
* {string} applicationId - ID associated with the application
* {string} flowId - ID associated with the flow
* {hash} button - Object containing button key and payload (https://api.losant.com/#/definitions/virtualButtonPress)
* {string} losantdomain - Domain scope of request (rarely needed)
* {boolean} _actions - Return resource actions in response
* {boolean} _links - Return resource link in response
* {boolean} _embedded - Return embedded resources in response
Responses:
* 200 - Virtual button was pressed (https://api.losant.com/#/definitions/success)
Errors:
* 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
* 404 - Error if flow was not found (https://api.losant.com/#/definitions/error)
"""
query_params = {"_actions": "false", "_links": "true", "_embedded": "true"}
path_params = {}
headers = {}
body = None
if "applicationId" in kwargs:
path_params["applicationId"] = kwargs["applicationId"]
if "flowId" in kwargs:
path_params["flowId"] = kwargs["flowId"]
if "button" in kwargs:
body = kwargs["button"]
if "losantdomain" in kwargs:
headers["losantdomain"] = kwargs["losantdomain"]
if "_actions" in kwargs:
query_params["_actions"] = kwargs["_actions"]
if "_links" in kwargs:
query_params["_links"] = kwargs["_links"]
if "_embedded" in kwargs:
query_params["_embedded"] = kwargs["_embedded"]
path = "/applications/{applicationId}/flows/{flowId}/virtualButton".format(**path_params)
return self.client.request("POST", path, params=query_params, headers=headers, body=body)
def set_storage_entry(self, **kwargs):
"""
Sets a storage value
Authentication:
The client must be configured with a valid api
access token to call this action. The token
must include at least one of the following scopes:
all.Application, all.Organization, all.User, flow.*, or flow.setStorageEntry.
Parameters:
* {string} applicationId - ID associated with the application
* {string} flowId - ID associated with the flow
* {hash} entry - Object containing storage entry (https://api.losant.com/#/definitions/flowStorageEntry)
* {string} losantdomain - Domain scope of request (rarely needed)
* {boolean} _actions - Return resource actions in response
* {boolean} _links - Return resource link in response
* {boolean} _embedded - Return embedded resources in response
Responses:
* 200 - Value was successfully stored (https://api.losant.com/#/definitions/success)
Errors:
* 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
* 404 - Error if flow was not found (https://api.losant.com/#/definitions/error)
"""
query_params = {"_actions": "false", "_links": "true", "_embedded": "true"}
path_params = {}
headers = {}
body = None
if "applicationId" in kwargs:
path_params["applicationId"] = kwargs["applicationId"]
if "flowId" in kwargs:
path_params["flowId"] = kwargs["flowId"]
if "entry" in kwargs:
body = kwargs["entry"]
if "losantdomain" in kwargs:
headers["losantdomain"] = kwargs["losantdomain"]
if "_actions" in kwargs:
query_params["_actions"] = kwargs["_actions"]
if "_links" in kwargs:
query_params["_links"] = kwargs["_links"]
if "_embedded" in kwargs:
query_params["_embedded"] = kwargs["_embedded"]
path = "/applications/{applicationId}/flows/{flowId}/storage".format(**path_params)
return self.client.request("PATCH", path, params=query_params, headers=headers, body=body)
def stats(self, **kwargs):
"""
Get statistics about workflow runs for this workflow
Authentication:
The client must be configured with a valid api
access token to call this action. The token
must include at least one of the following scopes:
all.Application, all.Application.read, all.Organization, all.Organization.read, all.User, all.User.read, flow.*, or flow.stats.
Parameters:
* {string} applicationId - ID associated with the application
* {string} flowId - ID associated with the flow
* {string} duration - Duration of time range in milliseconds
* {string} end - End of time range in milliseconds since epoch
* {string} resolution - Resolution in milliseconds
* {string} flowVersion - Flow version name or ID. When not included, will be aggregate for all versions. Pass develop for just the develop version.
* {string} deviceId - For edge or embedded workflows, the device ID to return workflow stats for. When not included, will be aggregate for all device IDs.
* {string} losantdomain - Domain scope of request (rarely needed)
* {boolean} _actions - Return resource actions in response
* {boolean} _links - Return resource link in response
* {boolean} _embedded - Return embedded resources in response
Responses:
* 200 - Statistics for workflow runs (https://api.losant.com/#/definitions/flowStats)
Errors:
* 400 - Error if malformed request (https://api.losant.com/#/definitions/error)
* 404 - Error if flow was not found (https://api.losant.com/#/definitions/error)
"""
query_params = {"_actions": "false", "_links": "true", "_embedded": "true"}
path_params = {}
headers = {}
body = None
if "applicationId" in kwargs:
path_params["applicationId"] = kwargs["applicationId"]
if "flowId" in kwargs:
path_params["flowId"] = kwargs["flowId"]
if "duration" in kwargs:
query_params["duration"] = kwargs["duration"]
if "end" in kwargs:
query_params["end"] = kwargs["end"]
if "resolution" in kwargs:
query_params["resolution"] = kwargs["resolution"]
if "flowVersion" in kwargs:
query_params["flowVersion"] = kwargs["flowVersion"]
if "deviceId" in kwargs:
query_params["deviceId"] = kwargs["deviceId"]
if "losantdomain" in kwargs:
headers["losantdomain"] = kwargs["losantdomain"]
if "_actions" in kwargs:
query_params["_actions"] = kwargs["_actions"]
if "_links" in kwargs:
query_params["_links"] = kwargs["_links"]
if "_embedded" in kwargs:
query_params["_embedded"] = kwargs["_embedded"]
path = "/applications/{applicationId}/flows/{flowId}/stats".format(**path_params)
return self.client.request("GET", path, params=query_params, headers=headers, body=body)
| 44.473344
| 163
| 0.632969
| 3,073
| 27,529
| 5.574032
| 0.094045
| 0.039232
| 0.036429
| 0.053243
| 0.851538
| 0.845
| 0.840329
| 0.838052
| 0.833849
| 0.828128
| 0
| 0.005263
| 0.26147
| 27,529
| 618
| 164
| 44.545307
| 0.837244
| 0.487777
| 0
| 0.86747
| 0
| 0
| 0.264389
| 0.045862
| 0
| 0
| 0
| 0
| 0
| 1
| 0.048193
| false
| 0
| 0.004016
| 0
| 0.100402
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7627772179f0b8fe45b55349b8a7192eb4964985
| 978
|
py
|
Python
|
utils/string_utils.py
|
greglan/python_scripts
|
f2e98ed3fd975d79b0a6b569b65c850a7f4f3ab3
|
[
"MIT"
] | null | null | null |
utils/string_utils.py
|
greglan/python_scripts
|
f2e98ed3fd975d79b0a6b569b65c850a7f4f3ab3
|
[
"MIT"
] | null | null | null |
utils/string_utils.py
|
greglan/python_scripts
|
f2e98ed3fd975d79b0a6b569b65c850a7f4f3ab3
|
[
"MIT"
] | null | null | null |
def compress(s):
"""
Compress a string by replacing n contiguous characters c by cn
:param s: string to compress
:type s: str
:return: str
"""
n = len(s)
i = 0
j = 1
compressed_str = ""
while j < len(s):
if s[j] == s[i]:
j += 1
else:
compressed_str += s[i] + str(j-i)
i = j
j += 1
compressed_str += s[i] + str(j - i)
return compressed_str
def compress_inplace(s):
"""
Compress a string by replacing n contiguous characters c by cn.
This does not use an auxiliary string
:param s: string to compress
:type s: str
:return: str
"""
n = len(s)
k = 0
i = 0
j = 1
compressed_str = ""
while j < len(s):
if s[j] == s[i]:
j += 1
else:
compressed_str += s[i] + str(j-i)
i = j
j += 1
compressed_str += s[i] + str(j - i)
return compressed_str
| 19.56
| 67
| 0.47955
| 142
| 978
| 3.239437
| 0.239437
| 0.226087
| 0.104348
| 0.130435
| 0.865217
| 0.865217
| 0.865217
| 0.865217
| 0.865217
| 0.865217
| 0
| 0.015437
| 0.403885
| 978
| 50
| 68
| 19.56
| 0.773585
| 0.280164
| 0
| 0.896552
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.068966
| false
| 0
| 0
| 0
| 0.137931
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
5280d921c9b55a209c4f82806ca89cdd8ba58519
| 4,454
|
py
|
Python
|
tests/test_dict.py
|
koodaa-team/redis-natives-py
|
dbe3ee65527a7a1b0b1dc35ae968588635732718
|
[
"MIT"
] | 1
|
2022-02-17T20:02:51.000Z
|
2022-02-17T20:02:51.000Z
|
tests/test_dict.py
|
koodaa-team/redis-natives-py
|
dbe3ee65527a7a1b0b1dc35ae968588635732718
|
[
"MIT"
] | null | null | null |
tests/test_dict.py
|
koodaa-team/redis-natives-py
|
dbe3ee65527a7a1b0b1dc35ae968588635732718
|
[
"MIT"
] | null | null | null |
from redis import Redis
from redis_natives import Dict
from tests import RedisWrapper
class TestDict(object):
def setup_method(self, method):
self.redis = RedisWrapper(Redis())
self.redis.flushdb()
self.test_key = 'test_key'
self.dict = Dict(self.redis, self.test_key)
def test_length_initially_zero(self):
assert len(self.dict) == 0
def test_add_value_increases_length(self):
self.dict['a'] = 'b'
assert len(self.dict) == 1
def test_add_saves_values_in_redis(self):
self.dict['a'] = 'b'
assert self.redis.hkeys('test_key') == ['a']
def test_remove(self):
self.dict['a'] = 'b'
del self.dict['a']
assert len(self.dict) == 0
def test_contains(self):
self.dict['a'] = 'b'
assert 'a' in self.dict
assert 'b' not in self.dict
def test_iterator(self):
self.dict['a'] = 'b'
self.dict['b'] = 'c'
assert [key for key in self.dict] == ['a', 'b']
def test_items(self):
self.dict['a'] = 'b'
self.dict['b'] = 'c'
assert self.dict.items() == [('a', 'b'), ('b', 'c')]
def test_values(self):
self.dict['a'] = 'b'
self.dict['b'] = 'c'
assert self.dict.values() == ['b', 'c']
def test_keys(self):
self.dict['a'] = 'b'
self.dict['b'] = 'c'
assert self.dict.keys() == ['a', 'b']
def test_redis_type(self):
self.dict['a'] = 'b'
assert self.dict.redis_type == 'hash'
class TestIntegerDict(object):
def setup_method(self, method):
self.redis = RedisWrapper(Redis())
self.redis.flushdb()
self.test_key = 'test_key'
self.dict = Dict(self.redis, self.test_key, type=int)
def test_length_initially_zero(self):
assert len(self.dict) == 0
def test_add_value_increases_length(self):
self.dict['a'] = 1
assert len(self.dict) == 1
def test_set_saves_values_in_redis(self):
self.dict['a'] = 1
assert self.redis.hkeys('test_key') == ['a']
def test_remove(self):
self.dict['a'] = 1
del self.dict['a']
assert len(self.dict) == 0
def test_contains(self):
self.dict['a'] = 1
assert 'a' in self.dict
assert 'b' not in self.dict
def test_iterator(self):
self.dict['a'] = 1
self.dict['b'] = 2
assert [key for key in self.dict] == ['a', 'b']
def test_items(self):
self.dict['a'] = 1
self.dict['b'] = 2
assert self.dict.items() == [('a', 1), ('b', 2)]
def test_values(self):
self.dict['a'] = 1
self.dict['b'] = 2
assert self.dict.values() == [1, 2]
def test_keys(self):
self.dict['a'] = 1
self.dict['b'] = 2
assert self.dict.keys() == ['a', 'b']
def test_redis_type(self):
self.dict['a'] = 1
assert self.dict.redis_type == 'hash'
class TestBooleanDict(object):
def setup_method(self, method):
self.redis = RedisWrapper(Redis())
self.redis.flushdb()
self.test_key = 'test_key'
self.dict = Dict(self.redis, self.test_key, type=bool)
def test_length_initially_zero(self):
assert len(self.dict) == 0
def test_add_value_increases_length(self):
self.dict['a'] = True
assert len(self.dict) == 1
def test_set_saves_values_in_redis(self):
self.dict['a'] = True
assert self.redis.hkeys('test_key') == ['a']
def test_remove(self):
self.dict['a'] = True
del self.dict['a']
assert len(self.dict) == 0
def test_contains(self):
self.dict['a'] = True
assert 'a' in self.dict
assert 'b' not in self.dict
def test_iterator(self):
self.dict['a'] = True
self.dict['b'] = False
assert [key for key in self.dict] == ['a', 'b']
def test_items(self):
self.dict['a'] = True
self.dict['b'] = False
assert self.dict.items() == [('a', True), ('b', False)]
def test_values(self):
self.dict['a'] = True
self.dict['b'] = False
assert self.dict.values() == [True, False]
def test_keys(self):
self.dict['a'] = True
self.dict['b'] = False
assert self.dict.keys() == ['a', 'b']
def test_redis_type(self):
self.dict['a'] = True
assert self.dict.redis_type == 'hash'
| 26.831325
| 63
| 0.547822
| 623
| 4,454
| 3.789727
| 0.083467
| 0.25413
| 0.125794
| 0.148666
| 0.926726
| 0.916561
| 0.904278
| 0.826768
| 0.813638
| 0.813638
| 0
| 0.008184
| 0.286709
| 4,454
| 165
| 64
| 26.993939
| 0.73497
| 0
| 0
| 0.873016
| 0
| 0
| 0.03278
| 0
| 0
| 0
| 0
| 0
| 0.261905
| 1
| 0.261905
| false
| 0
| 0.02381
| 0
| 0.309524
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
871383a5b7ca6a4d3c600deface09e3240109fe8
| 228
|
py
|
Python
|
evaluation_framework/DocumentSimilarity/__init__.py
|
janothan/Evaluation-Framework
|
e53847bc352f657953933e1d7c97b68ac890c852
|
[
"Apache-2.0"
] | 5
|
2020-02-12T13:11:14.000Z
|
2021-01-28T12:45:22.000Z
|
evaluation_framework/DocumentSimilarity/__init__.py
|
charyeezy/Evaluation-Framework
|
ddfd4ea654a3d7d2abd58f062ec98a8a736f8f51
|
[
"Apache-2.0"
] | 9
|
2019-07-29T17:45:30.000Z
|
2022-03-17T12:24:47.000Z
|
evaluation_framework/DocumentSimilarity/__init__.py
|
charyeezy/Evaluation-Framework
|
ddfd4ea654a3d7d2abd58f062ec98a8a736f8f51
|
[
"Apache-2.0"
] | 7
|
2020-02-12T13:22:49.000Z
|
2021-11-29T01:08:50.000Z
|
from evaluation_framework.DocumentSimilarity.documentSimilarity_model import (
DocumentSimilarityModel,
)
from evaluation_framework.DocumentSimilarity.documentSimilarity_taskManager import (
DocumentSimilarityManager,
)
| 32.571429
| 84
| 0.868421
| 16
| 228
| 12.125
| 0.5625
| 0.14433
| 0.237113
| 0.42268
| 0.608247
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.087719
| 228
| 6
| 85
| 38
| 0.932692
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 0.333333
| 0
| 0.333333
| 0
| 1
| 0
| 1
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
875a0a16179324cc82e78ef539254663941e1147
| 28,824
|
py
|
Python
|
test/integration/test_context.py
|
buddly27/nomenclator-nuke
|
783a9ff9bba0a974cf4532ca5c14bb3fc0312af9
|
[
"MIT"
] | 11
|
2021-09-06T15:41:28.000Z
|
2022-03-21T23:52:59.000Z
|
test/integration/test_context.py
|
buddly27/nomenclator-nuke
|
783a9ff9bba0a974cf4532ca5c14bb3fc0312af9
|
[
"MIT"
] | 2
|
2021-09-14T02:56:55.000Z
|
2021-09-14T03:00:03.000Z
|
test/integration/test_context.py
|
buddly27/nomenclator-nuke
|
783a9ff9bba0a974cf4532ca5c14bb3fc0312af9
|
[
"MIT"
] | 2
|
2021-09-07T06:53:06.000Z
|
2021-09-13T19:20:22.000Z
|
# -*- coding: utf-8 -*-
import os
import pytest
@pytest.fixture(autouse=True)
def mock_fetch_next_version(mocker):
"""Mock 'nomenclator.utilities.fetch_next_version' function."""
import nomenclator.utilities
return mocker.patch.object(
nomenclator.utilities, "fetch_next_version", return_value=2
)
def test_update_comp_scenario1():
"""Return updated context object.
Incoming context does not have any template configs.
"""
import nomenclator.context
context = nomenclator.context.Context(
location_path="/path/my_project/ep002/sh004/scripts",
recent_locations=tuple(),
path="",
suffix="nk",
version=None,
description="comp",
descriptions=("comp", "precomp", "roto"),
append_username_to_name=False,
padding="#",
paddings=("#", "##", "###"),
create_subfolders=False,
tokens=tuple(),
username="steve",
template_configs=tuple(),
error=None,
outputs=(
nomenclator.context.OutputContext(
name="Write1",
new_name="Write1",
blacklisted_names=tuple(),
path="/path/to/test.dpx",
old_path="/path/to/test.dpx",
passname="beauty",
enabled=True,
destination="comps",
destinations=("comps", "precomps", "roto"),
file_type="dpx",
file_types=("exr", "dpx", "mov"),
multi_views=False,
colorspace="rec709",
append_username_to_name=False,
append_colorspace_to_name=False,
append_passname_to_name=False,
append_passname_to_subfolder=False,
error=None,
),
)
)
_context = nomenclator.context.update(context)
assert _context.path == ""
assert _context.version is None
assert _context.error["message"] == "No template configurations found."
assert _context.outputs[0].path == ""
assert _context.outputs[0].destination == ""
assert _context.outputs[0].destinations == tuple()
assert _context.outputs[0].error is None
def test_update_comp_scenario2():
"""Return updated context object.
Incoming context has one template config which requires the "shot"
token to match the expression "sh\\d+". However, location path has
a shot folder named "sh004_SPECIAL" which does not match with that
expression.
"""
import nomenclator.context
from nomenclator.config import TemplateConfig
context = nomenclator.context.Context(
location_path="/path/my_project/ep002/sh004_SPECIAL/scripts",
recent_locations=tuple(),
path="",
suffix="nk",
version=None,
description="comp",
descriptions=("comp", "precomp", "roto"),
append_username_to_name=False,
padding="#",
paddings=("#", "##", "###"),
create_subfolders=False,
tokens=tuple(),
username="steve",
template_configs=(
TemplateConfig(
id="Config",
pattern_path=r"/path/{project}/{episode:ep\d+}/{shot:sh\d+}/scripts",
pattern_base=r"{project}_{episode}_{shot}_v{version}",
default_expression=r"[\w_.-]+",
match_start=True,
match_end=True,
append_username_to_name=True,
outputs=None,
),
),
error=None,
outputs=(
nomenclator.context.OutputContext(
name="Write1",
new_name="Write1",
blacklisted_names=tuple(),
path="/path/to/test.dpx",
old_path="/path/to/test.dpx",
passname="beauty",
enabled=True,
destination="comps",
destinations=("comps", "precomps", "roto"),
file_type="dpx",
file_types=("exr", "dpx", "mov"),
multi_views=False,
colorspace="rec709",
append_username_to_name=False,
append_colorspace_to_name=False,
append_passname_to_name=False,
append_passname_to_subfolder=False,
error=None,
),
)
)
_context = nomenclator.context.update(context)
assert _context.path == ""
assert _context.version is None
assert _context.error["message"] == "No matching template configuration found."
assert _context.outputs[0].path == ""
assert _context.outputs[0].destination == ""
assert _context.outputs[0].destinations == tuple()
assert _context.outputs[0].error is None
def test_update_comp_scenario3():
"""Return updated context object.
Incoming context has one template config which match with the
location path. However, this config does not define any output
template configs.
"""
import nomenclator.context
from nomenclator.config import TemplateConfig
context = nomenclator.context.Context(
location_path="/path/my_project/ep002/sh004/scripts",
recent_locations=tuple(),
path="",
suffix="nk",
version=None,
description="comp",
descriptions=("comp", "precomp", "roto"),
append_username_to_name=False,
padding="#",
paddings=("#", "##", "###"),
create_subfolders=False,
tokens=tuple(),
username="steve",
template_configs=(
TemplateConfig(
id="Config",
pattern_path=r"/path/{project}/{episode:ep\d+}/{shot:sh\d+}/scripts",
pattern_base=r"{project}_{episode}_{shot}_v{version}",
default_expression=r"[\w_.-]+",
match_start=True,
match_end=True,
append_username_to_name=True,
outputs=tuple(),
),
),
error=None,
outputs=(
nomenclator.context.OutputContext(
name="Write1",
new_name="Write1",
blacklisted_names=tuple(),
path="/path/to/test.dpx",
old_path="/path/to/test.dpx",
passname="beauty",
enabled=True,
destination="comps",
destinations=("comps", "precomps", "roto"),
file_type="dpx",
file_types=("exr", "dpx", "mov"),
multi_views=False,
colorspace="rec709",
append_username_to_name=False,
append_colorspace_to_name=False,
append_passname_to_name=False,
append_passname_to_subfolder=False,
error=None,
),
)
)
_context = nomenclator.context.update(context)
assert _context.path == os.path.join(
"/path/my_project/ep002/sh004/scripts",
"my_project_ep002_sh004_v002.nk"
)
assert _context.version == 2
assert _context.error is None
assert _context.outputs[0].path == ""
assert _context.outputs[0].destination == ""
assert _context.outputs[0].destinations == tuple()
assert _context.outputs[0].error["message"] == "No output template configurations found."
def test_update_comp_scenario4():
"""Return updated context object.
Incoming context has one template config which match with the
location path. This config contains an output template config with
an ID corresponding to the destination required.
"""
import nomenclator.context
from nomenclator.config import TemplateConfig, OutputTemplateConfig
context = nomenclator.context.Context(
location_path="/path/my_project/ep002/sh004/scripts",
recent_locations=tuple(),
path="",
suffix="nk",
version=None,
description="comp",
descriptions=("comp", "precomp", "roto"),
append_username_to_name=False,
padding="#",
paddings=("#", "##", "###"),
create_subfolders=False,
tokens=tuple(),
username="steve",
template_configs=(
TemplateConfig(
id="Config",
pattern_path=r"/path/{project}/{episode:ep\d+}/{shot:sh\d+}/scripts",
pattern_base=r"{project}_{episode}_{shot}_v{version}",
default_expression=r"[\w_.-]+",
match_start=True,
match_end=True,
append_username_to_name=True,
outputs=(
OutputTemplateConfig(
id="comps",
pattern_path=r"/path/{project}/{episode:ep\d+}/{shot:sh\d+}/comps",
pattern_base=r"{project}_{episode}_{shot}_v{version}",
append_username_to_name=False,
append_colorspace_to_name=False,
append_passname_to_name=False,
append_passname_to_subfolder=False,
),
),
),
),
error=None,
outputs=(
nomenclator.context.OutputContext(
name="Write1",
new_name="Write1",
blacklisted_names=tuple(),
path="/path/to/test.dpx",
old_path="/path/to/test.dpx",
passname="beauty",
enabled=True,
destination="comps",
destinations=("comps", "precomps", "roto"),
file_type="dpx",
file_types=("exr", "dpx", "mov"),
multi_views=False,
colorspace="rec709",
append_username_to_name=False,
append_colorspace_to_name=False,
append_passname_to_name=False,
append_passname_to_subfolder=False,
error=None,
),
)
)
_context = nomenclator.context.update(context)
assert _context.path == os.path.join(
"/path/my_project/ep002/sh004/scripts",
"my_project_ep002_sh004_v002.nk"
)
assert _context.version == 2
assert _context.error is None
assert _context.outputs[0].path == os.path.join(
"/path/my_project/ep002/sh004/comps",
"my_project_ep002_sh004_v002.#.dpx"
)
assert _context.outputs[0].destination == "comps"
assert _context.outputs[0].destinations == ("comps",)
assert _context.outputs[0].error is None
def test_update_comp_scenario5():
"""Return updated context object.
Like the scenario 4, incoming context has one template config
which match with the location path.
The paths will be generated with the following options:
* scene: append_username_to_name
* output append_username_to_name
* output: append_colorspace_to_name
* output: append_passname_to_name
* output: append_passname_to_subfolder
The output pattern path does not define any subfolders, so the last
option will be ignored.
"""
import nomenclator.context
from nomenclator.config import TemplateConfig, OutputTemplateConfig
context = nomenclator.context.Context(
location_path="/path/my_project/ep002/sh004/scripts",
recent_locations=tuple(),
path="",
suffix="nk",
version=None,
description="comp",
descriptions=("comp", "precomp", "roto"),
append_username_to_name=True,
padding="#",
paddings=("#", "##", "###"),
create_subfolders=False,
tokens=tuple(),
username="steve",
template_configs=(
TemplateConfig(
id="Config",
pattern_path=r"/path/{project}/{episode:ep\d+}/{shot:sh\d+}/scripts",
pattern_base=r"{project}_{episode}_{shot}_v{version}",
default_expression=r"[\w_.-]+",
match_start=True,
match_end=True,
append_username_to_name=True,
outputs=(
OutputTemplateConfig(
id="comps",
pattern_path=r"/path/{project}/{episode:ep\d+}/{shot:sh\d+}/comps",
pattern_base=r"{project}_{episode}_{shot}_v{version}",
append_username_to_name=False,
append_colorspace_to_name=False,
append_passname_to_name=False,
append_passname_to_subfolder=False,
),
),
),
),
error=None,
outputs=(
nomenclator.context.OutputContext(
name="Write1",
new_name="Write1",
blacklisted_names=tuple(),
path="/path/to/test.dpx",
old_path="/path/to/test.dpx",
passname="beauty",
enabled=True,
destination="comps",
destinations=("comps", "precomps", "roto"),
file_type="dpx",
file_types=("exr", "dpx", "mov"),
multi_views=True,
colorspace="rec709",
append_username_to_name=True,
append_colorspace_to_name=True,
append_passname_to_name=True,
append_passname_to_subfolder=True,
error=None,
),
)
)
_context = nomenclator.context.update(context)
assert _context.path == os.path.join(
"/path/my_project/ep002/sh004/scripts",
"my_project_ep002_sh004_v002_steve.nk"
)
assert _context.version == 2
assert _context.error is None
assert _context.outputs[0].path == os.path.join(
"/path/my_project/ep002/sh004/comps",
"my_project_ep002_sh004_v002_rec709_steve_beauty_%V.#.dpx"
)
assert _context.outputs[0].destination == "comps"
assert _context.outputs[0].destinations == ("comps",)
assert _context.outputs[0].error is None
def test_update_comp_scenario6():
"""Return updated context object.
Like the scenario 5, incoming context has one template config
which match with the location path. Several options must be
appended to generated paths.
This time, the output pattern path define a subfolder.
"""
import nomenclator.context
from nomenclator.config import TemplateConfig, OutputTemplateConfig
context = nomenclator.context.Context(
location_path="/path/my_project/ep002/sh004/scripts",
recent_locations=tuple(),
path="",
suffix="nk",
version=None,
description="comp",
descriptions=("comp", "precomp", "roto"),
append_username_to_name=True,
padding="#",
paddings=("#", "##", "###"),
create_subfolders=False,
tokens=tuple(),
username="steve",
template_configs=(
TemplateConfig(
id="Config",
pattern_path=r"/path/{project}/{episode:ep\d+}/{shot:sh\d+}/scripts",
pattern_base=r"{project}_{episode}_{shot}_v{version}",
default_expression=r"[\w_.-]+",
match_start=True,
match_end=True,
append_username_to_name=True,
outputs=(
OutputTemplateConfig(
id="comps",
pattern_path=r"/path/{project}/{episode:ep\d+}/{shot:sh\d+}/comps",
pattern_base=os.path.join(
r"{project}_{episode}",
r"{project}_{episode}_{shot}_v{version}"
),
append_username_to_name=False,
append_colorspace_to_name=False,
append_passname_to_name=False,
append_passname_to_subfolder=False,
),
),
),
),
error=None,
outputs=(
nomenclator.context.OutputContext(
name="Write1",
new_name="Write1",
blacklisted_names=tuple(),
path="/path/to/test.dpx",
old_path="/path/to/test.dpx",
passname="beauty",
enabled=True,
destination="comps",
destinations=("comps", "precomps", "roto"),
file_type="dpx",
file_types=("exr", "dpx", "mov"),
multi_views=True,
colorspace="rec709",
append_username_to_name=True,
append_colorspace_to_name=True,
append_passname_to_name=True,
append_passname_to_subfolder=True,
error=None,
),
)
)
_context = nomenclator.context.update(context)
assert _context.path == os.path.join(
"/path/my_project/ep002/sh004/scripts",
"my_project_ep002_sh004_v002_steve.nk"
)
assert _context.version == 2
assert _context.error is None
assert _context.outputs[0].path == os.path.join(
"/path/my_project/ep002/sh004/comps",
"my_project_ep002_beauty",
"my_project_ep002_sh004_v002_rec709_steve_beauty_%V.#.dpx"
)
assert _context.outputs[0].destination == "comps"
assert _context.outputs[0].destinations == ("comps",)
assert _context.outputs[0].error is None
def test_update_comp_scenario7():
"""Return updated context object.
Same as the scenario 3, but a token value is missing in
scene pattern base name.
"""
import nomenclator.context
from nomenclator.config import TemplateConfig
context = nomenclator.context.Context(
location_path="/path/my_project/ep002/sh004/scripts",
recent_locations=tuple(),
path="",
suffix="nk",
version=None,
description="comp",
descriptions=("comp", "precomp", "roto"),
append_username_to_name=False,
padding="#",
paddings=("#", "##", "###"),
create_subfolders=False,
tokens=tuple(),
username="steve",
template_configs=(
TemplateConfig(
id="Config",
pattern_path=r"/path/{project}/{episode:ep\d+}/{shot:sh\d+}/scripts",
pattern_base=r"{project}_{episode}_{shot}_{foo}_v{version}",
default_expression=r"[\w_.-]+",
match_start=True,
match_end=True,
append_username_to_name=True,
outputs=tuple(),
),
),
error=None,
outputs=(
nomenclator.context.OutputContext(
name="Write1",
new_name="Write1",
blacklisted_names=tuple(),
path="/path/to/test.dpx",
old_path="/path/to/test.dpx",
passname="beauty",
enabled=True,
destination="comps",
destinations=("comps", "precomps", "roto"),
file_type="dpx",
file_types=("exr", "dpx", "mov"),
multi_views=False,
colorspace="rec709",
append_username_to_name=False,
append_colorspace_to_name=False,
append_passname_to_name=False,
append_passname_to_subfolder=False,
error=None,
),
)
)
_context = nomenclator.context.update(context)
assert _context.path == ""
assert _context.version is None
assert _context.error["message"] == "Template configuration contains an error [Config]"
assert _context.outputs[0].path == ""
assert _context.outputs[0].destination == ""
assert _context.outputs[0].destinations == tuple()
assert _context.outputs[0].error["message"] == "No output template configurations found."
def test_update_comp_scenario8():
"""Return updated context object.
Same as the scenario 7, but the missing token value is provided
via the config
"""
import nomenclator.context
from nomenclator.config import TemplateConfig
context = nomenclator.context.Context(
location_path="/path/my_project/ep002/sh004/scripts",
recent_locations=tuple(),
path="",
suffix="nk",
version=None,
description="comp",
descriptions=("comp", "precomp", "roto"),
append_username_to_name=False,
padding="#",
paddings=("#", "##", "###"),
create_subfolders=False,
tokens=(("foo", "bar"),),
username="steve",
template_configs=(
TemplateConfig(
id="Config",
pattern_path=r"/path/{project}/{episode:ep\d+}/{shot:sh\d+}/scripts",
pattern_base=r"{project}_{episode}_{shot}_{foo}_v{version}",
default_expression=r"[\w_.-]+",
match_start=True,
match_end=True,
append_username_to_name=True,
outputs=tuple(),
),
),
error=None,
outputs=(
nomenclator.context.OutputContext(
name="Write1",
new_name="Write1",
blacklisted_names=tuple(),
path="/path/to/test.dpx",
old_path="/path/to/test.dpx",
passname="beauty",
enabled=True,
destination="comps",
destinations=("comps", "precomps", "roto"),
file_type="dpx",
file_types=("exr", "dpx", "mov"),
multi_views=False,
colorspace="rec709",
append_username_to_name=False,
append_colorspace_to_name=False,
append_passname_to_name=False,
append_passname_to_subfolder=False,
error=None,
),
)
)
_context = nomenclator.context.update(context)
assert _context.path == os.path.join(
"/path/my_project/ep002/sh004/scripts",
"my_project_ep002_sh004_bar_v002.nk"
)
assert _context.version == 2
assert _context.error is None
assert _context.outputs[0].path == ""
assert _context.outputs[0].destination == ""
assert _context.outputs[0].destinations == tuple()
assert _context.outputs[0].error["message"] == "No output template configurations found."
def test_update_comp_scenario9():
"""Return updated context object.
Same as the scenario 4, but a token value is missing in
output pattern base name.
"""
import nomenclator.context
from nomenclator.config import TemplateConfig, OutputTemplateConfig
context = nomenclator.context.Context(
location_path="/path/my_project/ep002/sh004/scripts",
recent_locations=tuple(),
path="",
suffix="nk",
version=None,
description="comp",
descriptions=("comp", "precomp", "roto"),
append_username_to_name=False,
padding="#",
paddings=("#", "##", "###"),
create_subfolders=False,
tokens=tuple(),
username="steve",
template_configs=(
TemplateConfig(
id="Config",
pattern_path=r"/path/{project}/{episode:ep\d+}/{shot:sh\d+}/scripts",
pattern_base=r"{project}_{episode}_{shot}_v{version}",
default_expression=r"[\w_.-]+",
match_start=True,
match_end=True,
append_username_to_name=True,
outputs=(
OutputTemplateConfig(
id="comps",
pattern_path=r"/path/{project}/{episode:ep\d+}/{shot:sh\d+}/comps",
pattern_base=r"{project}_{episode}_{shot}_{foo}_v{version}",
append_username_to_name=False,
append_colorspace_to_name=False,
append_passname_to_name=False,
append_passname_to_subfolder=False,
),
),
),
),
error=None,
outputs=(
nomenclator.context.OutputContext(
name="Write1",
new_name="Write1",
blacklisted_names=tuple(),
path="/path/to/test.dpx",
old_path="/path/to/test.dpx",
passname="beauty",
enabled=True,
destination="comps",
destinations=("comps", "precomps", "roto"),
file_type="dpx",
file_types=("exr", "dpx", "mov"),
multi_views=False,
colorspace="rec709",
append_username_to_name=False,
append_colorspace_to_name=False,
append_passname_to_name=False,
append_passname_to_subfolder=False,
error=None,
),
)
)
_context = nomenclator.context.update(context)
assert _context.path == os.path.join(
"/path/my_project/ep002/sh004/scripts",
"my_project_ep002_sh004_v002.nk"
)
assert _context.version == 2
assert _context.error is None
assert _context.outputs[0].path == ""
assert _context.outputs[0].destination == "comps"
assert _context.outputs[0].destinations == ("comps",)
assert _context.outputs[0].error["message"] == (
"Output Template configuration contains an error [comps]"
)
def test_update_comp_scenario10():
"""Return updated context object.
Same as the scenario 9, but a token value is missing in
output pattern base name.
"""
import nomenclator.context
from nomenclator.config import TemplateConfig, OutputTemplateConfig
context = nomenclator.context.Context(
location_path="/path/my_project/ep002/sh004/scripts",
recent_locations=tuple(),
path="",
suffix="nk",
version=None,
description="comp",
descriptions=("comp", "precomp", "roto"),
append_username_to_name=False,
padding="#",
paddings=("#", "##", "###"),
create_subfolders=False,
tokens=(("foo", "bar"),),
username="steve",
template_configs=(
TemplateConfig(
id="Config",
pattern_path=r"/path/{project}/{episode:ep\d+}/{shot:sh\d+}/scripts",
pattern_base=r"{project}_{episode}_{shot}_v{version}",
default_expression=r"[\w_.-]+",
match_start=True,
match_end=True,
append_username_to_name=True,
outputs=(
OutputTemplateConfig(
id="comps",
pattern_path=r"/path/{project}/{episode:ep\d+}/{shot:sh\d+}/comps",
pattern_base=r"{project}_{episode}_{shot}_{foo}_v{version}",
append_username_to_name=False,
append_colorspace_to_name=False,
append_passname_to_name=False,
append_passname_to_subfolder=False,
),
),
),
),
error=None,
outputs=(
nomenclator.context.OutputContext(
name="Write1",
new_name="Write1",
blacklisted_names=tuple(),
path="/path/to/test.dpx",
old_path="/path/to/test.dpx",
passname="beauty",
enabled=True,
destination="comps",
destinations=("comps", "precomps", "roto"),
file_type="dpx",
file_types=("exr", "dpx", "mov"),
multi_views=False,
colorspace="rec709",
append_username_to_name=False,
append_colorspace_to_name=False,
append_passname_to_name=False,
append_passname_to_subfolder=False,
error=None,
),
)
)
_context = nomenclator.context.update(context)
assert _context.path == os.path.join(
"/path/my_project/ep002/sh004/scripts",
"my_project_ep002_sh004_v002.nk"
)
assert _context.version == 2
assert _context.error is None
assert _context.outputs[0].path == os.path.join(
"/path/my_project/ep002/sh004/comps",
"my_project_ep002_sh004_bar_v002.#.dpx"
)
assert _context.outputs[0].destination == "comps"
assert _context.outputs[0].destinations == ("comps",)
assert _context.outputs[0].error is None
| 34.769602
| 93
| 0.549438
| 2,785
| 28,824
| 5.448474
| 0.064991
| 0.059971
| 0.034071
| 0.055358
| 0.937722
| 0.924674
| 0.913734
| 0.906682
| 0.895347
| 0.895347
| 0
| 0.018329
| 0.331842
| 28,824
| 828
| 94
| 34.811594
| 0.769562
| 0.06734
| 0
| 0.906475
| 0
| 0
| 0.161223
| 0.091875
| 0
| 0
| 0
| 0
| 0.100719
| 1
| 0.015827
| false
| 0.057554
| 0.031655
| 0
| 0.048921
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 8
|
5e547d1e53380362ef3913a99e44e8f9d9a51953
| 4,295
|
py
|
Python
|
location_register/models/ratu_models.py
|
OlexandrTopuzov/Data_converter
|
0ac2319ccaae790af35ab2202724c65d83d32ecc
|
[
"MIT"
] | null | null | null |
location_register/models/ratu_models.py
|
OlexandrTopuzov/Data_converter
|
0ac2319ccaae790af35ab2202724c65d83d32ecc
|
[
"MIT"
] | null | null | null |
location_register/models/ratu_models.py
|
OlexandrTopuzov/Data_converter
|
0ac2319ccaae790af35ab2202724c65d83d32ecc
|
[
"MIT"
] | null | null | null |
from django.db import models
from django.utils.translation import ugettext_lazy as _
from data_ocean.models import DataOceanModel
from location_register.models.koatuu_models import KoatuuCategory
class RatuRegion(DataOceanModel):
name = models.CharField(_('name'), max_length=30, unique=True, help_text='Name of the region')
koatuu = models.CharField('code KOATUU', max_length=10, unique=True, null=True, help_text='Code of the region, according to the state'
' Classifier of objects of administrative-territorial'
' organization of Ukraine')
class Meta:
verbose_name = _('region')
class RatuDistrict(DataOceanModel):
region = models.ForeignKey(RatuRegion, on_delete=models.CASCADE, verbose_name='region')
name = models.CharField(_('name'), max_length=100, help_text='Name of the district')
koatuu = models.CharField('code KOATUU', max_length=10, unique=True, null=True, help_text='Code of the district, according to the state'
' Classifier of objects of administrative-territorial'
' organization of Ukraine')
code = models.CharField('code', max_length=200)
class Meta:
verbose_name = _('district')
class RatuCity(DataOceanModel):
region = models.ForeignKey(RatuRegion, on_delete=models.CASCADE, verbose_name='region')
district = models.ForeignKey(RatuDistrict, on_delete=models.CASCADE, verbose_name='district',
null=True)
category = models.ForeignKey(KoatuuCategory, on_delete=models.CASCADE, null=True,
verbose_name='category')
name = models.CharField(_('name'), max_length=100, help_text='City name')
koatuu = models.CharField('code KOATUU', max_length=10, unique=True, null=True, help_text='Code of the city, according to the state'
' Classifier of objects of administrative-territorial'
' organization of Ukraine')
code = models.CharField('code', max_length=200)
class Meta:
verbose_name = _('city')
class RatuCityDistrict(DataOceanModel):
region = models.ForeignKey(RatuRegion, on_delete=models.CASCADE, verbose_name='region')
district = models.ForeignKey(RatuDistrict, on_delete=models.CASCADE, verbose_name='district',
null=True)
city = models.ForeignKey(RatuCity, on_delete=models.CASCADE,
verbose_name='city')
category = models.ForeignKey(KoatuuCategory, on_delete=models.CASCADE, null=True,
verbose_name='category')
name = models.CharField(_('name'), max_length=100, help_text='Name of the city district')
koatuu = models.CharField('code KOATUU', max_length=10, unique=True, null=True, help_text='Code of the city district, according to the state'
' Classifier of objects of administrative-territorial'
' organization of Ukraine')
code = models.CharField('code', max_length=200)
class Meta:
verbose_name = _('district of the city')
class RatuStreet(DataOceanModel):
region = models.ForeignKey(RatuRegion, on_delete=models.CASCADE, verbose_name=_('region'))
district = models.ForeignKey(RatuDistrict, on_delete=models.CASCADE, verbose_name=_('district'),
null=True)
city = models.ForeignKey(RatuCity, on_delete=models.CASCADE,
verbose_name=_('city'))
citydistrict = models.ForeignKey(RatuCityDistrict, on_delete=models.CASCADE, null=True,
verbose_name=_('district of the city'))
name = models.CharField(_('name'), max_length=100, help_text='Street name')
code = models.CharField(_('code'), max_length=200)
class Meta:
verbose_name = _('street')
verbose_name_plural = _('streets')
| 55.779221
| 145
| 0.606985
| 438
| 4,295
| 5.783105
| 0.141553
| 0.078168
| 0.066325
| 0.099487
| 0.837347
| 0.830636
| 0.807738
| 0.807738
| 0.791946
| 0.77497
| 0
| 0.011299
| 0.299418
| 4,295
| 76
| 146
| 56.513158
| 0.830508
| 0
| 0
| 0.491803
| 0
| 0
| 0.182771
| 0.024214
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.065574
| 0
| 0.639344
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
|
0
| 7
|
5e5dd83fe571090a018d343c8b991cd1cf2ea8dd
| 9,178
|
py
|
Python
|
ASCIIkull.py
|
Tom-Li1/Others
|
0aab564e1ad6df21f3132f6872521565a769a7ba
|
[
"MIT"
] | null | null | null |
ASCIIkull.py
|
Tom-Li1/Others
|
0aab564e1ad6df21f3132f6872521565a769a7ba
|
[
"MIT"
] | null | null | null |
ASCIIkull.py
|
Tom-Li1/Others
|
0aab564e1ad6df21f3132f6872521565a769a7ba
|
[
"MIT"
] | null | null | null |
import os
import time
from winsound import Beep
r"""
string = r'''
_,.-------.,_
,;~' '~;,
,; ;,
; ;
,' ',
,; ;,
; ; . . ; ;
| ; ______ ______ ; |!
| `/~" ~" . "~ "~\' |
======================================= | ~ ,-~~~^~, | ,~^~~~-, ~ |
___ ___ _ | | }:{ | |
| . . | __ _| |_ ____ _ _ __ ___ | l / | \ ! |
| |\/| |/ _` | \ \ /\ / / _` | '__/ _ \ .~ (__,.--" .^. "--.,__) ~.
| | | | (_| | |\ V V / (_| | | | __/ | ---;' / | \ `;--- |
\_| |_/\__,_|_| \_/\_/ \__,_|_| \___| \__. \/^\/ .__/
V| \ / |V
======================================= | |T~\___!___!___/~T| |
| |`IIII_I_I_I_IIII'| |
| \,III I I I III,/ |
\ `~~~~~~~~~~' / !
\ . . /
\. ^ ./
^~~~^~~~^ -dcau and Mark'''
print(string)
input()
logo = r'''
=================================================================== | ; ______ ______ ; |
_ _ _ _ _ ____ _ _ | `/~" ~" . "~ "~\' |
| | | | __ _(_) | ___ _ _| |__ _ _ _ __ _ _ / ___| | | | | ~ ,-~~~^~, | ,~^~~~-, ~ |
| |_| |/ _` | | |/ _ \ | | | '_ \| | | | '__| | | || | | |_| | | | }:{ | |
| _ | (_| | | | __/ |_| | |_) | |_| | | | |_| || |___| _ | | l / | \ ! |
|_| |_|\__,_|_|_|\___|\__, |_.__/ \__,_|_| \__, (_)____|_| |_| .~ (__,.--" .^. "--.,__) ~.
____ |___/_ _ |___/ _ | ---;' / | \ `;--- |
/ ___|___ _ __ ___ / ___|___ _ __ | |_ _ __ ___ | | ___ _ __ \__. \/^\/ .__/
| | / _ \| '__/ _ \ | | / _ \| '_ \| __| '__/ _ \| |/ _ \ '__| V| \ / |V
| |__| (_) | | | __/ | |__| (_) | | | | |_| | | (_) | | __/ | | |T~\___!___!___/~T| |
\____\___/|_| \___| \____\___/|_| |_|\__|_| \___/|_|\___|_| | |`IIII_I_I_I_IIII'| |
| \,III I I I III,/ |
=================================================================== \ `~~~~~~~~~~' /'''
print(logo)
input()
stri = '''
´´´´´´´´´´´´´´´´´´´ ¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´´`
´´´´´´´´´´´´´´´´´¶¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´
´´´´´´´´´´´´´´¶¶¶¶´´´´´´´´´´´´´´´´´´´´´´´¶¶¶¶´´´´´´´´´´´´´´
´´´´´´´´´´´´´¶¶¶´´´´´´´´´´´´´´´´´´´´´´´´´´´´´¶¶´´´´´´´´´´´´
´´´´´´´´´´´´¶¶´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´¶¶´´´´´´´´´´´
´´´´´´´´´´´¶¶´´´´´´´´´´´´´´´´´´´´´`´´´´´´´´´´´¶¶´´´´´´´´´´`
´´´´´´´´´´¶¶´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´¶¶´´´´´´´´´´
´´´´´´´´´´¶¶´¶¶´´´´´´´´´´´´´´´´´´´´´´´´´´´´´¶¶´¶¶´´´´´´´´´´
´´´´´´´´´´¶¶´¶¶´´´´´´´´´´´´´´´´´´´´´´´´´´´´´¶¶´´¶´´´´´´´´´´
´´´´´´´´´´¶¶´¶¶´´´´´´´´´´´´´´´´´´´´´´´´´´´´´¶¶´´¶´´´´´´´´´´
´´´´´´´´´´¶¶´´¶¶´´´´´´´´´´´´´´´´´´´´´´´´´´´´¶¶´¶¶´´´´´´´´´´
´´´´´´´´´´¶¶´´¶¶´´´´´´´´´´´´´´´´´´´´´´´´´´´¶¶´´¶¶´´´´´´´´´´
´´´´´´´´´´´¶¶´¶¶´´´¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶´´´¶¶´¶¶´´´´´´´´´´´
´´´´´´´´´´´´¶¶¶¶´¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶´¶¶¶¶¶´´´´´´´´´´´
´´´´´´´´´´´´´¶¶¶´¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶´¶¶¶´´´´´´´´´´´´´
´´´´¶¶¶´´´´´´´¶¶´´¶¶¶¶¶¶¶¶´´´´´´´¶¶¶¶¶¶¶¶¶´´¶¶´´´´´´¶¶¶¶´´´
´´´¶¶¶¶¶´´´´´¶¶´´´¶¶¶¶¶¶¶´´´¶¶¶´´´¶¶¶¶¶¶¶´´´¶¶´´´´´¶¶¶¶¶¶´´
´´¶¶´´´¶¶´´´´¶¶´´´´´¶¶¶´´´´¶¶¶¶¶´´´´¶¶¶´´´´´¶¶´´´´¶¶´´´¶¶´´
´¶¶¶´´´´¶¶¶¶´´¶¶´´´´´´´´´´¶¶¶¶¶¶¶´´´´´´´´´´¶¶´´¶¶¶¶´´´´¶¶¶´
¶¶´´´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´¶¶¶¶¶¶¶´´´´´´´¶¶¶¶¶¶¶¶¶´´´´´´´´¶¶
¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶´´´´¶¶¶¶¶¶¶´´´´¶¶¶¶¶¶¶¶´´´´´´¶¶¶¶¶¶¶¶
´´¶¶¶¶´¶¶¶¶¶´´´´´´¶¶¶¶¶´´´´´´´´´´´´´´¶¶¶´¶¶´´´´´¶¶¶¶¶¶´¶¶¶´
´´´´´´´´´´¶¶¶¶¶¶´´¶¶¶´´¶¶´´´´´´´´´´´¶¶´´¶¶¶´´¶¶¶¶¶¶´´´´´´´´
´´´´´´´´´´´´´´¶¶¶¶¶¶´¶¶´¶¶¶¶¶¶¶¶¶¶¶´¶¶´¶¶¶¶¶¶´´´´´´´´´´´´´´
´´´´´´´´´´´´´´´´´´¶¶´¶¶´¶´¶´¶´¶´¶´¶´¶´¶´¶¶´´´´´´´´´´´´´´´´´
´´´´´´´´´´´´´´´´¶¶¶¶´´¶´¶´¶´¶´¶´¶´¶´¶´´´¶¶¶¶¶´´´´´´´´´´´´´´
´´´´´´´´´´´´¶¶¶¶¶´¶¶´´´¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶´¶¶¶¶¶´´´´´´´´´´´´
´´´´¶¶¶¶¶¶¶¶¶¶´´´´´¶¶´´´´´´´´´´´´´´´´´¶¶´´´´´´¶¶¶¶¶¶¶¶¶´´´´
´´´¶¶´´´´´´´´´´´¶¶¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´´´´¶¶´´´
´´´´¶¶¶´´´´´¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶´´´´´¶¶¶´´´´
´´´´´´¶¶´´´¶¶¶´´´´´´´´´´´¶¶¶¶¶¶¶¶¶´´´´´´´´´´´¶¶¶´´´¶¶´´´´´´
´´´´´´¶¶´´¶¶´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´¶¶´´¶¶´´´´´´
´´´´´´´¶¶¶¶´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´´¶¶¶¶´´´´´´´
'''
stri = stri.replace('¶', 'X').replace('´', ' ')
print(stri)
Beep(2000,5)
input()
"""
logo = r'''
,.-----.,_
,-~ ~-.
,^___ ___^.
/~" ~" . "~ "~\
Y ,--._ I _.--. Y
| Y ~-. | ,-~ Y |
| | }:{ | |
j l / | \ ! l
.-~ (__,.--" .^. "--.,__) ~-.
( / / | \ \ )
\.____, ~ \/"\/ ~ .____,/
^.____ ____.^
| |T ~\ ! ! /~ T| |
| |l _ _ _ _ _ !| |
| l \/V V V V V V\/ j |
! \ \|_|_|_|_|_|/ / !
\ \[T T T T T TI/ /
\ `^-^-^-^-^-^' /
\ /
\. ,/
"^-.___,-^"
'''
logo_3 = r'''
,.-----.,_
,-~ ~-.
,^___ ___^.
/~" ~" . "~ "~\
Y ,--._ I _.--. Y
| Y ~-. | ,-~ Y |
| | }:{ | |
j l / | \ ! l
.-~ (__,.--" .^. "--.,__) ~-.
( / / | \ \ )
\.____, ~ \/"\/ ~ .____,/
^.____ ____.^
| |T ~\ ! ! /~ T| |
| |l _ _ _ _ _ !| |
| l \/V V V V V V\/ j |
! \ \|_|_|_|_|_|/ / !
! !
\ /
\ \[T T T T T TI/ /
\ `^-^-^-^-^-^'/
\ /
""^-.___,-^""'''
os.system('cls')
while True:
print(logo)
time.sleep(0.5)
os.system('cls')
print(logo_3)
time.sleep(0.5)
os.system('cls')
logo_1 = r'''
.ed"""" """$$$$be.
-" ^""**$$$e.
." '$$$c
/ "4$$b
d 3 $$$$
$ * .$$$$$$
.$ ^c $$$$$e$$$$$$$$.
d$L 4. 4$$$$$$$$$$$$$$b
$$$$b ^ceeeee. 4$$ECL.F*$$$$$$$
$$$$P d$$$$F $ $$$$$$$$$- $$$$$$
3$$$F "$$$$b $"$$$$$$$ $$$$*"
$$P" "$$b .$ $$$$$...e$$
*c .. $$ 3$$$$$$$$$$eF
%ce"" $$$ $$$$$$$$$$*
*$e. *** d$$$$$"L$$
$$$ 4J$$$$$% $$$
$"'$=e....$*$$**$cz$$"
$ *=%4.$ L L$ P3$$$F
$ "%*ebJLzb$e$$$$$b
%.. 4$$$$$$$$$$
$$$e z$$$$$$$$$$
"*$c "$$$$$$$P"
"""*$$$$$$$"
'''
logo_2 = r'''
.ed"""" """$$$$be.
-" ^""**$$$e.
." '$$$c
/ "4$$b
d 3 $$$$
$ * .$$$$$$
.$ ^c $$$$$e$$$$$$$$.
d$L 4. 4$$$$$$$$$$$$$$b
$$$$b ^ceeeee. 4$$ECL.F*$$$$$$$
e$""=. $$$$P d$$$$F $ $$$$$$$$$- $$$$$$
z$$b. ^c 3$$$F "$$$$b $"$$$$$$$ $$$$*" .=""$c
4$$$$L $$P" "$$b .$ $$$$$...e$$ .= e$$$.
^*$$$$$c %.. *c .. $$ 3$$$$$$$$$$eF zP d$$$$$
"**$$$ec " %ce"" $$$ $$$$$$$$$$* .r" =$$$$P""
"*$b. "c *$e. *** d$$$$$"L$$ .d" e$$***"
^*$$c ^$c $$$ 4J$$$$$% $$$ .e*".eeP"
"$$$$$$"'$=e....$*$$**$cz$$" "..d$*"
"*$$$ *=%4.$ L L$ P3$$$F $$$P"
"$ "%*ebJLzb$e$$$$$b $P"
%.. 4$$$$$$$$$$ "
$$$e z$$$$$$$$$$%
"*$c "$$$$$$$P"
."""*$$$$$$$$bc
.-" .$***$$$"""*e.
.-" .e$" "*$c ^*b.
.=*"""" .e$*" "*bc "*$e..
.$" .z*" ^*$e. "*****e.
$$ee$c .d" "*$. 3.
^*$E")$..$" * .ee==d%
$.d$$$* * J$$$e*
""""" "$$$"'''
print(logo)
print(logo_1)
print(logo_2)
input()
| 44.338164
| 104
| 0.105796
| 1,665
| 9,178
| 1.518919
| 0.046847
| 0.855674
| 1.166074
| 1.420324
| 0.819692
| 0.788849
| 0.758007
| 0.71728
| 0.673784
| 0.641756
| 0
| 0.007783
| 0.45402
| 9,178
| 207
| 105
| 44.338164
| 0.108761
| 0
| 0
| 0.571429
| 0
| 0
| 0.923077
| 0.013448
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.02521
| 0
| 0.02521
| 0.042017
| 0
| 0
| 1
| null | 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 11
|
5ec5e51de1caabf24e1ac5fd5fb9e8661dce9f2e
| 20,378
|
py
|
Python
|
openmixup/models/backbones/resnext.py
|
Westlake-AI/openmixup
|
ea81250819e740dd823e30cb7ce382d14a3c1b91
|
[
"Apache-2.0"
] | 10
|
2021-12-30T10:22:27.000Z
|
2022-03-30T02:31:38.000Z
|
openmixup/models/backbones/resnext.py
|
Westlake-AI/openmixup
|
ea81250819e740dd823e30cb7ce382d14a3c1b91
|
[
"Apache-2.0"
] | 3
|
2022-01-20T21:02:48.000Z
|
2022-03-19T13:49:45.000Z
|
openmixup/models/backbones/resnext.py
|
Westlake-AI/openmixup
|
ea81250819e740dd823e30cb7ce382d14a3c1b91
|
[
"Apache-2.0"
] | null | null | null |
# reference: https://github.com/open-mmlab/mmclassification/tree/master/mmcls/models/backbones
# modified from mmclassification resnext.py
import random
import torch.nn as nn
from mmcv.cnn import build_conv_layer, build_norm_layer
from ..registry import BACKBONES
from .resnet_mmcls import Bottleneck as _Bottleneck
from .resnet_mmcls import ResLayer, ResNet
from ..utils import grad_batch_shuffle_ddp, grad_batch_unshuffle_ddp
class Bottleneck(_Bottleneck):
"""Bottleneck block for ResNeXt.
Args:
in_channels (int): Input channels of this block.
out_channels (int): Output channels of this block.
groups (int): Groups of conv2.
width_per_group (int): Width per group of conv2. 64x4d indicates
``groups=64, width_per_group=4`` and 32x8d indicates
``groups=32, width_per_group=8``.
stride (int): stride of the block. Default: 1
dilation (int): dilation of convolution. Default: 1
downsample (nn.Module): downsample operation on identity branch.
Default: None
style (str): `pytorch` or `caffe`. If set to "pytorch", the stride-two
layer is the 3x3 conv layer, otherwise the stride-two layer is
the first 1x1 conv layer.
conv_cfg (dict): dictionary to construct and config conv layer.
Default: None
norm_cfg (dict): dictionary to construct and config norm layer.
Default: dict(type='BN')
with_cp (bool): Use checkpoint or not. Using checkpoint will save some
memory while slowing down the training speed.
"""
def __init__(self,
in_channels,
out_channels,
base_channels=64,
groups=32,
width_per_group=4,
**kwargs):
super(Bottleneck, self).__init__(in_channels, out_channels, **kwargs)
self.groups = groups
self.width_per_group = width_per_group
# For ResNet bottleneck, middle channels are determined by expansion
# and out_channels, but for ResNeXt bottleneck, it is determined by
# groups and width_per_group and the stage it is located in.
if groups != 1:
assert self.mid_channels % base_channels == 0
self.mid_channels = (
groups * width_per_group * self.mid_channels // base_channels)
self.norm1_name, norm1 = build_norm_layer(
self.norm_cfg, self.mid_channels, postfix=1)
self.norm2_name, norm2 = build_norm_layer(
self.norm_cfg, self.mid_channels, postfix=2)
self.norm3_name, norm3 = build_norm_layer(
self.norm_cfg, self.out_channels, postfix=3)
self.conv1 = build_conv_layer(
self.conv_cfg,
self.in_channels,
self.mid_channels,
kernel_size=1,
stride=self.conv1_stride,
bias=False)
self.add_module(self.norm1_name, norm1)
self.conv2 = build_conv_layer(
self.conv_cfg,
self.mid_channels,
self.mid_channels,
kernel_size=3,
stride=self.conv2_stride,
padding=self.dilation,
dilation=self.dilation,
groups=groups,
bias=False)
self.add_module(self.norm2_name, norm2)
self.conv3 = build_conv_layer(
self.conv_cfg,
self.mid_channels,
self.out_channels,
kernel_size=1,
bias=False)
self.add_module(self.norm3_name, norm3)
@BACKBONES.register_module()
class ResNeXt(ResNet):
"""ResNeXt backbone.
Pytorch implementation of `Aggregated Residual Transformations for Deep
Neural Networks <https://arxiv.org/abs/1611.05431>`_
Args:
depth (int): Network depth, from {50, 101, 152}.
groups (int): Groups of conv2 in Bottleneck. Default: 32.
width_per_group (int): Width per group of conv2 in Bottleneck.
Default: 4.
in_channels (int): Number of input image channels. Default: 3.
stem_channels (int): Output channels of the stem layer. Default: 64.
num_stages (int): Stages of the network. Default: 4.
strides (Sequence[int]): Strides of the first block of each stage.
Default: ``(1, 2, 2, 2)``.
dilations (Sequence[int]): Dilation of each stage.
Default: ``(1, 1, 1, 1)``.
out_indices (Sequence[int]): Output from which stages. If only one
stage is specified, a single tensor (feature map) is returned,
otherwise multiple stages are specified, a tuple of tensors will
be returned. Default: ``(3, )``.
style (str): `pytorch` or `caffe`. If set to "pytorch", the stride-two
layer is the 3x3 conv layer, otherwise the stride-two layer is
the first 1x1 conv layer.
deep_stem (bool): Replace 7x7 conv in input stem with 3 3x3 conv.
Default: False.
avg_down (bool): Use AvgPool instead of stride conv when
downsampling in the bottleneck. Default: False.
frozen_stages (int): Stages to be frozen (stop grad and set eval mode).
-1 means not freezing any parameters. Default: -1.
conv_cfg (dict | None): The config dict for conv layers. Default: None.
norm_cfg (dict): The config dict for norm layers.
norm_eval (bool): Whether to set norm layers to eval mode, namely,
freeze running stats (mean and var). Note: Effect on Batch Norm
and its variants only. Default: False.
with_cp (bool): Use checkpoint or not. Using checkpoint will save some
memory while slowing down the training speed. Default: False.
zero_init_residual (bool): Whether to use zero init for last norm layer
in resblocks to let them behave as identity. Default: True.
"""
arch_settings = {
50: (Bottleneck, (3, 4, 6, 3)),
101: (Bottleneck, (3, 4, 23, 3)),
152: (Bottleneck, (3, 8, 36, 3))
}
def __init__(self, depth, groups=32, width_per_group=4, **kwargs):
self.groups = groups
self.width_per_group = width_per_group
super(ResNeXt, self).__init__(depth, **kwargs)
def make_res_layer(self, **kwargs):
return ResLayer(
groups=self.groups,
width_per_group=self.width_per_group,
base_channels=self.base_channels,
**kwargs)
@BACKBONES.register_module()
class ResNeXt_CIFAR(ResNeXt):
"""ResNeXt backbone for CIFAR.
Compared to standard ResNeXt, it uses `kernel_size=3` and `stride=1` in
conv1, and does not apply MaxPoolinng after stem. It has been proven to
be more efficient than standard ResNet in other public codebase, e.g.,
`https://github.com/kuangliu/pytorch-cifar/blob/master/models/resnet.py`.
"""
def __init__(self, depth, deep_stem=False, **kwargs):
super(ResNeXt_CIFAR, self).__init__(
depth, deep_stem=deep_stem, **kwargs)
assert not self.deep_stem, 'ResNeXt_CIFAR do not support deep_stem'
def _make_stem_layer(self, in_channels, base_channels):
self.conv1 = build_conv_layer(
self.conv_cfg,
in_channels,
base_channels,
kernel_size=3,
stride=1,
padding=1,
bias=False)
self.norm1_name, norm1 = build_norm_layer(
self.norm_cfg, base_channels, postfix=1)
self.add_module(self.norm1_name, norm1)
self.relu = nn.ReLU(inplace=True)
def forward(self, x):
x = self.relu(self.norm1(self.conv1(x)))
outs = []
for i, layer_name in enumerate(self.res_layers):
res_layer = getattr(self, layer_name)
x = res_layer(x)
if i in self.out_indices:
outs.append(x)
if len(self.out_indices) == 1:
return outs
return outs
@BACKBONES.register_module()
class ResNeXt_Mix(ResNet):
"""ResNeXt backbone, Supporting ManifoldMix and its variants.
mmclassification version
v09.13
*** Provide a port to mixup the latent space ***
Please refer to the `paper <https://arxiv.org/abs/1611.05431>`_ for
details.
Args:
depth (int): Network depth, from {50, 101, 152}.
groups (int): Groups of conv2 in Bottleneck. Default: 32.
width_per_group (int): Width per group of conv2 in Bottleneck.
Default: 4.
in_channels (int): Number of input image channels. Default: 3.
stem_channels (int): Output channels of the stem layer. Default: 64.
num_stages (int): Stages of the network. Default: 4.
strides (Sequence[int]): Strides of the first block of each stage.
Default: ``(1, 2, 2, 2)``.
dilations (Sequence[int]): Dilation of each stage.
Default: ``(1, 1, 1, 1)``.
out_indices (Sequence[int]): Output from which stages. If only one
stage is specified, a single tensor (feature map) is returned,
otherwise multiple stages are specified, a tuple of tensors will
be returned. Default: ``(3, )``.
style (str): `pytorch` or `caffe`. If set to "pytorch", the stride-two
layer is the 3x3 conv layer, otherwise the stride-two layer is
the first 1x1 conv layer.
deep_stem (bool): Replace 7x7 conv in input stem with 3 3x3 conv.
Default: False.
avg_down (bool): Use AvgPool instead of stride conv when
downsampling in the bottleneck. Default: False.
frozen_stages (int): Stages to be frozen (stop grad and set eval mode).
-1 means not freezing any parameters. Default: -1.
conv_cfg (dict | None): The config dict for conv layers. Default: None.
norm_cfg (dict): The config dict for norm layers.
norm_eval (bool): Whether to set norm layers to eval mode, namely,
freeze running stats (mean and var). Note: Effect on Batch Norm
and its variants only. Default: False.
with_cp (bool): Use checkpoint or not. Using checkpoint will save some
memory while slowing down the training speed. Default: False.
zero_init_residual (bool): Whether to use zero init for last norm layer
in resblocks to let them behave as identity. Default: True.
"""
arch_settings = {
50: (Bottleneck, (3, 4, 6, 3)),
101: (Bottleneck, (3, 4, 23, 3)),
152: (Bottleneck, (3, 8, 36, 3))
}
def __init__(self, depth, groups=32, width_per_group=4, **kwargs):
""" ResNeXt init """
self.groups = groups
self.width_per_group = width_per_group
super(ResNeXt_Mix, self).__init__(depth, **kwargs)
def make_res_layer(self, **kwargs):
""" ResNeXt res_layer """
return ResLayer(
groups=self.groups,
width_per_group=self.width_per_group,
base_channels=self.base_channels,
**kwargs)
def _feature_mixup(self, x, mask, dist_shuffle=False, idx_shuffle_mix=None, cross_view=False,
BN_shuffle=False, idx_shuffle_BN=None, idx_unshuffle_BN=None, **kwargs):
""" mixup two feature maps with the pixel-wise mask
Args:
x, mask (tensor): Input x [N,C,H,W] and mixup mask [N, \*, H, W].
dist_shuffle (bool): Whether to shuffle cross gpus.
idx_shuffle_mix (tensor): Shuffle indice of [N,1] to generate x_.
cross_view (bool): Whether to view the input x as two views [2N, C, H, W],
which is usually adopted in self-supervised and semi-supervised settings.
BN_shuffle (bool): Whether to do shuffle cross gpus for shuffle_BN.
idx_shuffle_BN (tensor): Shuffle indice to utilize shuffle_BN cross gpus.
idx_unshuffle_BN (tensor): Unshuffle indice for the shuffle_BN (in pair).
"""
# adjust mixup mask
assert mask.dim() == 4 and mask.size(1) <= 2
if mask.size(1) == 1:
mask = [mask, 1 - mask]
else:
mask = [
mask[:, 0, :, :].unsqueeze(1), mask[:, 1, :, :].unsqueeze(1)]
# undo shuffle_BN for ssl mixup
if BN_shuffle:
assert idx_unshuffle_BN is not None and idx_shuffle_BN is not None
x = grad_batch_unshuffle_ddp(x, idx_unshuffle_BN) # 2N index if cross_view
# shuffle input
if dist_shuffle==True: # cross gpus shuffle
assert idx_shuffle_mix is not None
if cross_view:
N = x.size(0) // 2
detach_p = random.random()
x_ = x[N:, ...].clone().detach() if detach_p < 0.5 else x[N:, ...]
x = x[:N, ...] if detach_p < 0.5 else x[:N, ...].detach()
x_, _, _ = grad_batch_shuffle_ddp(x_, idx_shuffle_mix)
else:
x_, _, _ = grad_batch_shuffle_ddp(x, idx_shuffle_mix)
else: # within each gpu
if cross_view:
# default: the input image is shuffled
N = x.size(0) // 2
detach_p = random.random()
x_ = x[N:, ...].clone().detach() if detach_p < 0.5 else x[N:, ...]
x = x[:N, ...] if detach_p < 0.5 else x[:N, ...].detach()
else:
x_ = x[idx_shuffle_mix, :]
assert x.size(3) == mask[0].size(3), \
"mismatching mask x={}, mask={}.".format(x.size(), mask[0].size())
mix = x * mask[0] + x_ * mask[1]
# redo shuffle_BN for ssl mixup
if BN_shuffle:
mix, _, _ = grad_batch_shuffle_ddp(mix, idx_shuffle_BN) # N index
return mix
def forward(self, x, mix_args=None):
""" only support mask-based mixup policy """
# latent space mixup
if mix_args is not None:
assert isinstance(mix_args, dict)
mix_layer = mix_args["layer"] # {0, 1, 2, 3}
if mix_args["BN_shuffle"]:
x, _, idx_unshuffle = grad_batch_shuffle_ddp(x) # 2N index if cross_view
else:
idx_unshuffle = None
else:
mix_layer = -1
# input mixup
if mix_layer == 0:
x = self._feature_mixup(x, idx_unshuffle_BN=idx_unshuffle, **mix_args)
# normal resnet stem
if self.deep_stem:
x = self.stem(x)
else:
x = self.relu(self.norm1(self.conv1(x)))
x = self.maxpool(x)
outs = []
# stage 1 to 4
for i, layer_name in enumerate(self.res_layers):
# res block
res_layer = getattr(self, layer_name)
x = res_layer(x)
if i in self.out_indices:
outs.append(x)
if len(self.out_indices) == 1:
return outs
if i+1 == mix_layer:
x = self._feature_mixup(x, idx_unshuffle_BN=idx_unshuffle, **mix_args)
return outs
@BACKBONES.register_module()
class ResNeXt_CIFAR_Mix(ResNet):
"""ResNeXt backbone for CIFAR, support ManifoldMix and its variants
v09.13
Provide a port to mixup the latent space.
"""
arch_settings = {
50: (Bottleneck, (3, 4, 6, 3)),
101: (Bottleneck, (3, 4, 23, 3)),
152: (Bottleneck, (3, 8, 36, 3))
}
def __init__(self, depth, groups=32, width_per_group=4, deep_stem=False, **kwargs):
self.groups = groups
self.width_per_group = width_per_group
super(ResNeXt_CIFAR_Mix, self).__init__(
depth, deep_stem=deep_stem, **kwargs)
assert not self.deep_stem, 'ResNet_CIFAR do not support deep_stem'
def _make_stem_layer(self, in_channels, base_channels):
self.conv1 = build_conv_layer(
self.conv_cfg,
in_channels,
base_channels,
kernel_size=3,
stride=1,
padding=1,
bias=False)
self.norm1_name, norm1 = build_norm_layer(
self.norm_cfg, base_channels, postfix=1)
self.add_module(self.norm1_name, norm1)
self.relu = nn.ReLU(inplace=True)
def make_res_layer(self, **kwargs):
return ResLayer(
groups=self.groups,
width_per_group=self.width_per_group,
base_channels=self.base_channels,
**kwargs)
def _feature_mixup(self, x, mask, dist_shuffle=False, idx_shuffle_mix=None, cross_view=False,
BN_shuffle=False, idx_shuffle_BN=None, idx_unshuffle_BN=None, **kwargs):
""" mixup two feature maps with the pixel-wise mask
Args:
x, mask (tensor): Input x [N,C,H,W] and mixup mask [N, \*, H, W].
dist_shuffle (bool): Whether to shuffle cross gpus.
idx_shuffle_mix (tensor): Shuffle indice of [N,1] to generate x_.
cross_view (bool): Whether to view the input x as two views [2N, C, H, W],
which is usually adopted in self-supervised and semi-supervised settings.
BN_shuffle (bool): Whether to do shuffle cross gpus for shuffle_BN.
idx_shuffle_BN (tensor): Shuffle indice to utilize shuffle_BN cross gpus.
idx_unshuffle_BN (tensor): Unshuffle indice for the shuffle_BN (in pair).
"""
# adjust mixup mask
assert mask.dim() == 4 and mask.size(1) <= 2
if mask.size(1) == 1:
mask = [mask, 1 - mask]
else:
mask = [
mask[:, 0, :, :].unsqueeze(1), mask[:, 1, :, :].unsqueeze(1)]
# undo shuffle_BN for ssl mixup
if BN_shuffle:
assert idx_unshuffle_BN is not None and idx_shuffle_BN is not None
x = grad_batch_unshuffle_ddp(x, idx_unshuffle_BN) # 2N index if cross_view
# shuffle input
if dist_shuffle==True: # cross gpus shuffle
assert idx_shuffle_mix is not None
if cross_view:
N = x.size(0) // 2
detach_p = random.random()
x_ = x[N:, ...].clone().detach() if detach_p < 0.5 else x[N:, ...]
x = x[:N, ...] if detach_p < 0.5 else x[:N, ...].detach()
x_, _, _ = grad_batch_shuffle_ddp(x_, idx_shuffle_mix)
else:
x_, _, _ = grad_batch_shuffle_ddp(x, idx_shuffle_mix)
else: # within each gpu
if cross_view:
# default: the input image is shuffled
N = x.size(0) // 2
detach_p = random.random()
x_ = x[N:, ...].clone().detach() if detach_p < 0.5 else x[N:, ...]
x = x[:N, ...] if detach_p < 0.5 else x[:N, ...].detach()
else:
x_ = x[idx_shuffle_mix, :]
assert x.size(3) == mask[0].size(3), \
"mismatching mask x={}, mask={}.".format(x.size(), mask[0].size())
mix = x * mask[0] + x_ * mask[1]
# redo shuffle_BN for ssl mixup
if BN_shuffle:
mix, _, _ = grad_batch_shuffle_ddp(mix, idx_shuffle_BN) # N index
return mix
def forward(self, x, mix_args=None):
""" only support mask-based mixup policy """
# latent space mixup
if mix_args is not None:
assert isinstance(mix_args, dict)
mix_layer = mix_args["layer"] # {0, 1, 2, 3}
if mix_args["BN_shuffle"]:
x, _, idx_unshuffle = grad_batch_shuffle_ddp(x) # 2N index if cross_view
else:
idx_unshuffle = None
else:
mix_layer = -1
# input mixup
if mix_layer == 0:
x = self._feature_mixup(x, idx_unshuffle_BN=idx_unshuffle, **mix_args)
# CIFAR stem
x = self.relu(self.norm1(self.conv1(x)))
outs = []
# stage 1 to 4
for i, layer_name in enumerate(self.res_layers):
# res block
res_layer = getattr(self, layer_name)
x = res_layer(x)
if i in self.out_indices:
outs.append(x)
if len(self.out_indices) == 1:
return outs
if i+1 == mix_layer:
x = self._feature_mixup(x, idx_unshuffle_BN=idx_unshuffle, **mix_args)
return outs
| 41.758197
| 97
| 0.587644
| 2,699
| 20,378
| 4.250093
| 0.119674
| 0.019528
| 0.031732
| 0.014907
| 0.835062
| 0.817627
| 0.79932
| 0.780577
| 0.772121
| 0.763839
| 0
| 0.024125
| 0.314506
| 20,378
| 487
| 98
| 41.843943
| 0.797051
| 0.400334
| 0
| 0.801471
| 0
| 0
| 0.014484
| 0
| 0
| 0
| 0
| 0
| 0.047794
| 1
| 0.055147
| false
| 0
| 0.025735
| 0.007353
| 0.150735
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0d5856d272a973791b102401657f1a1822f8c781
| 145,280
|
py
|
Python
|
sdk/python/pulumi_opsgenie/outputs.py
|
pulumi/pulumi-opsgenie
|
4bc7d0cbb5b0437c59422a5977a61468baa2c4a7
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2021-12-01T20:57:42.000Z
|
2021-12-01T20:57:42.000Z
|
sdk/python/pulumi_opsgenie/outputs.py
|
pulumi/pulumi-opsgenie
|
4bc7d0cbb5b0437c59422a5977a61468baa2c4a7
|
[
"ECL-2.0",
"Apache-2.0"
] | 34
|
2021-02-03T20:15:32.000Z
|
2022-03-25T19:57:20.000Z
|
sdk/python/pulumi_opsgenie/outputs.py
|
pulumi/pulumi-opsgenie
|
4bc7d0cbb5b0437c59422a5977a61468baa2c4a7
|
[
"ECL-2.0",
"Apache-2.0"
] | 2
|
2021-07-08T15:16:09.000Z
|
2021-07-20T11:12:44.000Z
|
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
from . import outputs
__all__ = [
'AlertPolicyFilter',
'AlertPolicyFilterCondition',
'AlertPolicyResponder',
'AlertPolicyTimeRestriction',
'AlertPolicyTimeRestrictionRestriction',
'ApiIntegrationResponder',
'EmailIntegrationResponder',
'EscalationRepeat',
'EscalationRule',
'EscalationRuleRecipient',
'IncidentTemplateStakeholderProperty',
'IntegrationActionAcknowledge',
'IntegrationActionAcknowledgeFilter',
'IntegrationActionAcknowledgeFilterCondition',
'IntegrationActionAddNote',
'IntegrationActionAddNoteFilter',
'IntegrationActionAddNoteFilterCondition',
'IntegrationActionClose',
'IntegrationActionCloseFilter',
'IntegrationActionCloseFilterCondition',
'IntegrationActionCreate',
'IntegrationActionCreateFilter',
'IntegrationActionCreateFilterCondition',
'IntegrationActionCreateResponder',
'IntegrationActionIgnore',
'IntegrationActionIgnoreFilter',
'IntegrationActionIgnoreFilterCondition',
'MaintenanceRule',
'MaintenanceRuleEntity',
'MaintenanceTime',
'NotificationPolicyAutoCloseAction',
'NotificationPolicyAutoCloseActionDuration',
'NotificationPolicyAutoRestartAction',
'NotificationPolicyAutoRestartActionDuration',
'NotificationPolicyDeDuplicationAction',
'NotificationPolicyDeDuplicationActionDuration',
'NotificationPolicyDelayAction',
'NotificationPolicyDelayActionDuration',
'NotificationPolicyFilter',
'NotificationPolicyFilterCondition',
'NotificationPolicyTimeRestriction',
'NotificationPolicyTimeRestrictionRestriction',
'NotificationRuleCriteria',
'NotificationRuleCriteriaCondition',
'NotificationRuleRepeat',
'NotificationRuleSchedule',
'NotificationRuleStep',
'NotificationRuleStepContact',
'NotificationRuleTimeRestriction',
'NotificationRuleTimeRestrictionRestriction',
'ScheduleRotationParticipant',
'ScheduleRotationTimeRestriction',
'ScheduleRotationTimeRestrictionRestriction',
'ServiceIncidentRuleIncidentRule',
'ServiceIncidentRuleIncidentRuleCondition',
'ServiceIncidentRuleIncidentRuleIncidentProperty',
'ServiceIncidentRuleIncidentRuleIncidentPropertyStakeholderProperty',
'TeamMember',
'TeamRoutingRuleCriteria',
'TeamRoutingRuleCriteriaCondition',
'TeamRoutingRuleNotify',
'TeamRoutingRuleTimeRestriction',
'TeamRoutingRuleTimeRestrictionRestriction',
'UserUserAddress',
'GetEscalationRepeatResult',
'GetEscalationRuleResult',
'GetEscalationRuleRecipientResult',
'GetTeamMemberResult',
]
@pulumi.output_type
class AlertPolicyFilter(dict):
def __init__(__self__, *,
conditions: Optional[Sequence['outputs.AlertPolicyFilterCondition']] = None,
type: Optional[str] = None):
"""
:param Sequence['AlertPolicyFilterConditionArgs'] conditions: Conditions applied to filter. This is a block, structure is documented below.
:param str type: Type of responder. Acceptable values are: `user` or `team`
"""
if conditions is not None:
pulumi.set(__self__, "conditions", conditions)
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def conditions(self) -> Optional[Sequence['outputs.AlertPolicyFilterCondition']]:
"""
Conditions applied to filter. This is a block, structure is documented below.
"""
return pulumi.get(self, "conditions")
@property
@pulumi.getter
def type(self) -> Optional[str]:
"""
Type of responder. Acceptable values are: `user` or `team`
"""
return pulumi.get(self, "type")
@pulumi.output_type
class AlertPolicyFilterCondition(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "expectedValue":
suggest = "expected_value"
elif key == "not":
suggest = "not_"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in AlertPolicyFilterCondition. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
AlertPolicyFilterCondition.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
AlertPolicyFilterCondition.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
field: str,
operation: str,
expected_value: Optional[str] = None,
key: Optional[str] = None,
not_: Optional[bool] = None,
order: Optional[int] = None):
"""
:param str field: Specifies which alert field will be used in condition. Possible values are `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`
:param str operation: It is the operation that will be executed for the given field and key. Possible operations are `matches`, `contains`, `starts-with`, `ends-with`, `equals`, `contains-key`, `contains-value`, `greater-than`, `less-than`, `is-empty`, `equals-ignore-whitespace`.
:param str expected_value: User defined value that will be compared with alert field according to the operation. Default: empty string
:param str key: If `field` is set as extra-properties, key could be used for key-value pair
:param bool not_: Indicates behaviour of the given operation. Default: `false`
:param int order: Order of the condition in conditions list
"""
pulumi.set(__self__, "field", field)
pulumi.set(__self__, "operation", operation)
if expected_value is not None:
pulumi.set(__self__, "expected_value", expected_value)
if key is not None:
pulumi.set(__self__, "key", key)
if not_ is not None:
pulumi.set(__self__, "not_", not_)
if order is not None:
pulumi.set(__self__, "order", order)
@property
@pulumi.getter
def field(self) -> str:
"""
Specifies which alert field will be used in condition. Possible values are `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`
"""
return pulumi.get(self, "field")
@property
@pulumi.getter
def operation(self) -> str:
"""
It is the operation that will be executed for the given field and key. Possible operations are `matches`, `contains`, `starts-with`, `ends-with`, `equals`, `contains-key`, `contains-value`, `greater-than`, `less-than`, `is-empty`, `equals-ignore-whitespace`.
"""
return pulumi.get(self, "operation")
@property
@pulumi.getter(name="expectedValue")
def expected_value(self) -> Optional[str]:
"""
User defined value that will be compared with alert field according to the operation. Default: empty string
"""
return pulumi.get(self, "expected_value")
@property
@pulumi.getter
def key(self) -> Optional[str]:
"""
If `field` is set as extra-properties, key could be used for key-value pair
"""
return pulumi.get(self, "key")
@property
@pulumi.getter(name="not")
def not_(self) -> Optional[bool]:
"""
Indicates behaviour of the given operation. Default: `false`
"""
return pulumi.get(self, "not_")
@property
@pulumi.getter
def order(self) -> Optional[int]:
"""
Order of the condition in conditions list
"""
return pulumi.get(self, "order")
@pulumi.output_type
class AlertPolicyResponder(dict):
def __init__(__self__, *,
id: str,
type: str,
name: Optional[str] = None,
username: Optional[str] = None):
"""
:param str id: ID of the responder
:param str type: Type of responder. Acceptable values are: `user` or `team`
:param str name: Name of the responder
:param str username: Username of the responder
"""
pulumi.set(__self__, "id", id)
pulumi.set(__self__, "type", type)
if name is not None:
pulumi.set(__self__, "name", name)
if username is not None:
pulumi.set(__self__, "username", username)
@property
@pulumi.getter
def id(self) -> str:
"""
ID of the responder
"""
return pulumi.get(self, "id")
@property
@pulumi.getter
def type(self) -> str:
"""
Type of responder. Acceptable values are: `user` or `team`
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def name(self) -> Optional[str]:
"""
Name of the responder
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def username(self) -> Optional[str]:
"""
Username of the responder
"""
return pulumi.get(self, "username")
@pulumi.output_type
class AlertPolicyTimeRestriction(dict):
def __init__(__self__, *,
type: str,
restrictions: Optional[Sequence['outputs.AlertPolicyTimeRestrictionRestriction']] = None):
"""
:param str type: Type of responder. Acceptable values are: `user` or `team`
:param Sequence['AlertPolicyTimeRestrictionRestrictionArgs'] restrictions: List of days and hours definitions for field type = `weekday-and-time-of-day`. This is a block, structure is documented below.
"""
pulumi.set(__self__, "type", type)
if restrictions is not None:
pulumi.set(__self__, "restrictions", restrictions)
@property
@pulumi.getter
def type(self) -> str:
"""
Type of responder. Acceptable values are: `user` or `team`
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def restrictions(self) -> Optional[Sequence['outputs.AlertPolicyTimeRestrictionRestriction']]:
"""
List of days and hours definitions for field type = `weekday-and-time-of-day`. This is a block, structure is documented below.
"""
return pulumi.get(self, "restrictions")
@pulumi.output_type
class AlertPolicyTimeRestrictionRestriction(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "endDay":
suggest = "end_day"
elif key == "endHour":
suggest = "end_hour"
elif key == "endMin":
suggest = "end_min"
elif key == "startDay":
suggest = "start_day"
elif key == "startHour":
suggest = "start_hour"
elif key == "startMin":
suggest = "start_min"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in AlertPolicyTimeRestrictionRestriction. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
AlertPolicyTimeRestrictionRestriction.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
AlertPolicyTimeRestrictionRestriction.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
end_day: str,
end_hour: int,
end_min: int,
start_day: str,
start_hour: int,
start_min: int):
"""
:param str end_day: Ending day of restriction (eg. `wednesday`)
:param int end_hour: Ending hour of restriction.
:param int end_min: Ending minute of restriction on defined `end_hour`
:param str start_day: Starting day of restriction (eg. `monday`)
:param int start_hour: Starting hour of restriction.
:param int start_min: Staring minute of restriction on defined `start_hour`
"""
pulumi.set(__self__, "end_day", end_day)
pulumi.set(__self__, "end_hour", end_hour)
pulumi.set(__self__, "end_min", end_min)
pulumi.set(__self__, "start_day", start_day)
pulumi.set(__self__, "start_hour", start_hour)
pulumi.set(__self__, "start_min", start_min)
@property
@pulumi.getter(name="endDay")
def end_day(self) -> str:
"""
Ending day of restriction (eg. `wednesday`)
"""
return pulumi.get(self, "end_day")
@property
@pulumi.getter(name="endHour")
def end_hour(self) -> int:
"""
Ending hour of restriction.
"""
return pulumi.get(self, "end_hour")
@property
@pulumi.getter(name="endMin")
def end_min(self) -> int:
"""
Ending minute of restriction on defined `end_hour`
"""
return pulumi.get(self, "end_min")
@property
@pulumi.getter(name="startDay")
def start_day(self) -> str:
"""
Starting day of restriction (eg. `monday`)
"""
return pulumi.get(self, "start_day")
@property
@pulumi.getter(name="startHour")
def start_hour(self) -> int:
"""
Starting hour of restriction.
"""
return pulumi.get(self, "start_hour")
@property
@pulumi.getter(name="startMin")
def start_min(self) -> int:
"""
Staring minute of restriction on defined `start_hour`
"""
return pulumi.get(self, "start_min")
@pulumi.output_type
class ApiIntegrationResponder(dict):
def __init__(__self__, *,
id: Optional[str] = None,
type: Optional[str] = None):
"""
:param str id: The id of the responder.
:param str type: The responder type.
"""
if id is not None:
pulumi.set(__self__, "id", id)
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def id(self) -> Optional[str]:
"""
The id of the responder.
"""
return pulumi.get(self, "id")
@property
@pulumi.getter
def type(self) -> Optional[str]:
"""
The responder type.
"""
return pulumi.get(self, "type")
@pulumi.output_type
class EmailIntegrationResponder(dict):
def __init__(__self__, *,
id: Optional[str] = None,
type: Optional[str] = None):
"""
:param str id: The id of the responder.
:param str type: The responder type.
"""
if id is not None:
pulumi.set(__self__, "id", id)
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def id(self) -> Optional[str]:
"""
The id of the responder.
"""
return pulumi.get(self, "id")
@property
@pulumi.getter
def type(self) -> Optional[str]:
"""
The responder type.
"""
return pulumi.get(self, "type")
@pulumi.output_type
class EscalationRepeat(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "closeAlertAfterAll":
suggest = "close_alert_after_all"
elif key == "resetRecipientStates":
suggest = "reset_recipient_states"
elif key == "waitInterval":
suggest = "wait_interval"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in EscalationRepeat. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
EscalationRepeat.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
EscalationRepeat.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
close_alert_after_all: Optional[bool] = None,
count: Optional[int] = None,
reset_recipient_states: Optional[bool] = None,
wait_interval: Optional[int] = None):
if close_alert_after_all is not None:
pulumi.set(__self__, "close_alert_after_all", close_alert_after_all)
if count is not None:
pulumi.set(__self__, "count", count)
if reset_recipient_states is not None:
pulumi.set(__self__, "reset_recipient_states", reset_recipient_states)
if wait_interval is not None:
pulumi.set(__self__, "wait_interval", wait_interval)
@property
@pulumi.getter(name="closeAlertAfterAll")
def close_alert_after_all(self) -> Optional[bool]:
return pulumi.get(self, "close_alert_after_all")
@property
@pulumi.getter
def count(self) -> Optional[int]:
return pulumi.get(self, "count")
@property
@pulumi.getter(name="resetRecipientStates")
def reset_recipient_states(self) -> Optional[bool]:
return pulumi.get(self, "reset_recipient_states")
@property
@pulumi.getter(name="waitInterval")
def wait_interval(self) -> Optional[int]:
return pulumi.get(self, "wait_interval")
@pulumi.output_type
class EscalationRule(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "notifyType":
suggest = "notify_type"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in EscalationRule. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
EscalationRule.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
EscalationRule.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
condition: str,
delay: int,
notify_type: str,
recipients: Sequence['outputs.EscalationRuleRecipient']):
"""
:param str condition: The condition for notifying the recipient of escalation rule that is based on the alert state. Possible values are: `if-not-acked` and `if-not-closed`. Default: `if-not-acked`
:param int delay: Time delay of the escalation rule, in minutes.
:param str notify_type: Recipient calculation logic for schedules. Possible values are:
:param Sequence['EscalationRuleRecipientArgs'] recipients: Object of schedule, team, or users which will be notified in escalation. The possible values for participants are: `user`, `schedule`, `team`.
"""
pulumi.set(__self__, "condition", condition)
pulumi.set(__self__, "delay", delay)
pulumi.set(__self__, "notify_type", notify_type)
pulumi.set(__self__, "recipients", recipients)
@property
@pulumi.getter
def condition(self) -> str:
"""
The condition for notifying the recipient of escalation rule that is based on the alert state. Possible values are: `if-not-acked` and `if-not-closed`. Default: `if-not-acked`
"""
return pulumi.get(self, "condition")
@property
@pulumi.getter
def delay(self) -> int:
"""
Time delay of the escalation rule, in minutes.
"""
return pulumi.get(self, "delay")
@property
@pulumi.getter(name="notifyType")
def notify_type(self) -> str:
"""
Recipient calculation logic for schedules. Possible values are:
"""
return pulumi.get(self, "notify_type")
@property
@pulumi.getter
def recipients(self) -> Sequence['outputs.EscalationRuleRecipient']:
"""
Object of schedule, team, or users which will be notified in escalation. The possible values for participants are: `user`, `schedule`, `team`.
"""
return pulumi.get(self, "recipients")
@pulumi.output_type
class EscalationRuleRecipient(dict):
def __init__(__self__, *,
id: Optional[str] = None,
type: Optional[str] = None):
"""
:param str id: The ID of the Opsgenie Escalation.
"""
if id is not None:
pulumi.set(__self__, "id", id)
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def id(self) -> Optional[str]:
"""
The ID of the Opsgenie Escalation.
"""
return pulumi.get(self, "id")
@property
@pulumi.getter
def type(self) -> Optional[str]:
return pulumi.get(self, "type")
@pulumi.output_type
class IncidentTemplateStakeholderProperty(dict):
def __init__(__self__, *,
message: str,
description: Optional[str] = None,
enable: Optional[bool] = None):
"""
:param str message: Message that is to be passed to audience that is generally used to provide a content information about the alert.
:param str description: Description that is generally used to provide a detailed information about the alert. This field must not be longer than 15000 characters.
:param bool enable: Option to enable stakeholder notifications.Default value is true.
"""
pulumi.set(__self__, "message", message)
if description is not None:
pulumi.set(__self__, "description", description)
if enable is not None:
pulumi.set(__self__, "enable", enable)
@property
@pulumi.getter
def message(self) -> str:
"""
Message that is to be passed to audience that is generally used to provide a content information about the alert.
"""
return pulumi.get(self, "message")
@property
@pulumi.getter
def description(self) -> Optional[str]:
"""
Description that is generally used to provide a detailed information about the alert. This field must not be longer than 15000 characters.
"""
return pulumi.get(self, "description")
@property
@pulumi.getter
def enable(self) -> Optional[bool]:
"""
Option to enable stakeholder notifications.Default value is true.
"""
return pulumi.get(self, "enable")
@pulumi.output_type
class IntegrationActionAcknowledge(dict):
def __init__(__self__, *,
name: str,
alias: Optional[str] = None,
filters: Optional[Sequence['outputs.IntegrationActionAcknowledgeFilter']] = None,
note: Optional[str] = None,
order: Optional[int] = None,
type: Optional[str] = None,
user: Optional[str] = None):
"""
:param str name: Name of the integration action.
:param str alias: An identifier that is used for alert deduplication. Default: `{{alias}}`.
:param Sequence['IntegrationActionAcknowledgeFilterArgs'] filters: Used to specify rules for matching alerts and the filter type. Please note that depending on the integration type the field names in the filter conditions are:
* For SNS integration: `actions`, `alias`, `entity`, `Message`, `recipients`, `responders`, `Subject`, `tags`, `teams`, `eventType`, `Timestamp`, `TopicArn`.
* For API integration: `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`, `eventType`.
* For Email integration: `from_address`, `from_name`, `conversationSubject`, `subject`
:param str note: Additional alert action note.
:param int order: Integer value that defines in which order the action will be performed. Default: `1`.
:param str type: The responder type - can be `escalation`, `team` or `user`.
:param str user: Owner of the execution for integration action.
"""
pulumi.set(__self__, "name", name)
if alias is not None:
pulumi.set(__self__, "alias", alias)
if filters is not None:
pulumi.set(__self__, "filters", filters)
if note is not None:
pulumi.set(__self__, "note", note)
if order is not None:
pulumi.set(__self__, "order", order)
if type is not None:
pulumi.set(__self__, "type", type)
if user is not None:
pulumi.set(__self__, "user", user)
@property
@pulumi.getter
def name(self) -> str:
"""
Name of the integration action.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def alias(self) -> Optional[str]:
"""
An identifier that is used for alert deduplication. Default: `{{alias}}`.
"""
return pulumi.get(self, "alias")
@property
@pulumi.getter
def filters(self) -> Optional[Sequence['outputs.IntegrationActionAcknowledgeFilter']]:
"""
Used to specify rules for matching alerts and the filter type. Please note that depending on the integration type the field names in the filter conditions are:
* For SNS integration: `actions`, `alias`, `entity`, `Message`, `recipients`, `responders`, `Subject`, `tags`, `teams`, `eventType`, `Timestamp`, `TopicArn`.
* For API integration: `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`, `eventType`.
* For Email integration: `from_address`, `from_name`, `conversationSubject`, `subject`
"""
return pulumi.get(self, "filters")
@property
@pulumi.getter
def note(self) -> Optional[str]:
"""
Additional alert action note.
"""
return pulumi.get(self, "note")
@property
@pulumi.getter
def order(self) -> Optional[int]:
"""
Integer value that defines in which order the action will be performed. Default: `1`.
"""
return pulumi.get(self, "order")
@property
@pulumi.getter
def type(self) -> Optional[str]:
"""
The responder type - can be `escalation`, `team` or `user`.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def user(self) -> Optional[str]:
"""
Owner of the execution for integration action.
"""
return pulumi.get(self, "user")
@pulumi.output_type
class IntegrationActionAcknowledgeFilter(dict):
def __init__(__self__, *,
type: str,
conditions: Optional[Sequence['outputs.IntegrationActionAcknowledgeFilterCondition']] = None):
"""
:param str type: The responder type - can be `escalation`, `team` or `user`.
"""
pulumi.set(__self__, "type", type)
if conditions is not None:
pulumi.set(__self__, "conditions", conditions)
@property
@pulumi.getter
def type(self) -> str:
"""
The responder type - can be `escalation`, `team` or `user`.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def conditions(self) -> Optional[Sequence['outputs.IntegrationActionAcknowledgeFilterCondition']]:
return pulumi.get(self, "conditions")
@pulumi.output_type
class IntegrationActionAcknowledgeFilterCondition(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "expectedValue":
suggest = "expected_value"
elif key == "not":
suggest = "not_"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in IntegrationActionAcknowledgeFilterCondition. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
IntegrationActionAcknowledgeFilterCondition.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
IntegrationActionAcknowledgeFilterCondition.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
field: str,
operation: str,
expected_value: Optional[str] = None,
key: Optional[str] = None,
not_: Optional[bool] = None,
order: Optional[int] = None):
"""
:param int order: Integer value that defines in which order the action will be performed. Default: `1`.
"""
pulumi.set(__self__, "field", field)
pulumi.set(__self__, "operation", operation)
if expected_value is not None:
pulumi.set(__self__, "expected_value", expected_value)
if key is not None:
pulumi.set(__self__, "key", key)
if not_ is not None:
pulumi.set(__self__, "not_", not_)
if order is not None:
pulumi.set(__self__, "order", order)
@property
@pulumi.getter
def field(self) -> str:
return pulumi.get(self, "field")
@property
@pulumi.getter
def operation(self) -> str:
return pulumi.get(self, "operation")
@property
@pulumi.getter(name="expectedValue")
def expected_value(self) -> Optional[str]:
return pulumi.get(self, "expected_value")
@property
@pulumi.getter
def key(self) -> Optional[str]:
return pulumi.get(self, "key")
@property
@pulumi.getter(name="not")
def not_(self) -> Optional[bool]:
return pulumi.get(self, "not_")
@property
@pulumi.getter
def order(self) -> Optional[int]:
"""
Integer value that defines in which order the action will be performed. Default: `1`.
"""
return pulumi.get(self, "order")
@pulumi.output_type
class IntegrationActionAddNote(dict):
def __init__(__self__, *,
name: str,
alias: Optional[str] = None,
filters: Optional[Sequence['outputs.IntegrationActionAddNoteFilter']] = None,
note: Optional[str] = None,
order: Optional[int] = None,
type: Optional[str] = None,
user: Optional[str] = None):
"""
:param str name: Name of the integration action.
:param str alias: An identifier that is used for alert deduplication. Default: `{{alias}}`.
:param Sequence['IntegrationActionAddNoteFilterArgs'] filters: Used to specify rules for matching alerts and the filter type. Please note that depending on the integration type the field names in the filter conditions are:
* For SNS integration: `actions`, `alias`, `entity`, `Message`, `recipients`, `responders`, `Subject`, `tags`, `teams`, `eventType`, `Timestamp`, `TopicArn`.
* For API integration: `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`, `eventType`.
* For Email integration: `from_address`, `from_name`, `conversationSubject`, `subject`
:param str note: Additional alert action note.
:param int order: Integer value that defines in which order the action will be performed. Default: `1`.
:param str type: The responder type - can be `escalation`, `team` or `user`.
:param str user: Owner of the execution for integration action.
"""
pulumi.set(__self__, "name", name)
if alias is not None:
pulumi.set(__self__, "alias", alias)
if filters is not None:
pulumi.set(__self__, "filters", filters)
if note is not None:
pulumi.set(__self__, "note", note)
if order is not None:
pulumi.set(__self__, "order", order)
if type is not None:
pulumi.set(__self__, "type", type)
if user is not None:
pulumi.set(__self__, "user", user)
@property
@pulumi.getter
def name(self) -> str:
"""
Name of the integration action.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def alias(self) -> Optional[str]:
"""
An identifier that is used for alert deduplication. Default: `{{alias}}`.
"""
return pulumi.get(self, "alias")
@property
@pulumi.getter
def filters(self) -> Optional[Sequence['outputs.IntegrationActionAddNoteFilter']]:
"""
Used to specify rules for matching alerts and the filter type. Please note that depending on the integration type the field names in the filter conditions are:
* For SNS integration: `actions`, `alias`, `entity`, `Message`, `recipients`, `responders`, `Subject`, `tags`, `teams`, `eventType`, `Timestamp`, `TopicArn`.
* For API integration: `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`, `eventType`.
* For Email integration: `from_address`, `from_name`, `conversationSubject`, `subject`
"""
return pulumi.get(self, "filters")
@property
@pulumi.getter
def note(self) -> Optional[str]:
"""
Additional alert action note.
"""
return pulumi.get(self, "note")
@property
@pulumi.getter
def order(self) -> Optional[int]:
"""
Integer value that defines in which order the action will be performed. Default: `1`.
"""
return pulumi.get(self, "order")
@property
@pulumi.getter
def type(self) -> Optional[str]:
"""
The responder type - can be `escalation`, `team` or `user`.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def user(self) -> Optional[str]:
"""
Owner of the execution for integration action.
"""
return pulumi.get(self, "user")
@pulumi.output_type
class IntegrationActionAddNoteFilter(dict):
def __init__(__self__, *,
type: str,
conditions: Optional[Sequence['outputs.IntegrationActionAddNoteFilterCondition']] = None):
"""
:param str type: The responder type - can be `escalation`, `team` or `user`.
"""
pulumi.set(__self__, "type", type)
if conditions is not None:
pulumi.set(__self__, "conditions", conditions)
@property
@pulumi.getter
def type(self) -> str:
"""
The responder type - can be `escalation`, `team` or `user`.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def conditions(self) -> Optional[Sequence['outputs.IntegrationActionAddNoteFilterCondition']]:
return pulumi.get(self, "conditions")
@pulumi.output_type
class IntegrationActionAddNoteFilterCondition(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "expectedValue":
suggest = "expected_value"
elif key == "not":
suggest = "not_"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in IntegrationActionAddNoteFilterCondition. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
IntegrationActionAddNoteFilterCondition.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
IntegrationActionAddNoteFilterCondition.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
field: str,
operation: str,
expected_value: Optional[str] = None,
key: Optional[str] = None,
not_: Optional[bool] = None,
order: Optional[int] = None):
"""
:param int order: Integer value that defines in which order the action will be performed. Default: `1`.
"""
pulumi.set(__self__, "field", field)
pulumi.set(__self__, "operation", operation)
if expected_value is not None:
pulumi.set(__self__, "expected_value", expected_value)
if key is not None:
pulumi.set(__self__, "key", key)
if not_ is not None:
pulumi.set(__self__, "not_", not_)
if order is not None:
pulumi.set(__self__, "order", order)
@property
@pulumi.getter
def field(self) -> str:
return pulumi.get(self, "field")
@property
@pulumi.getter
def operation(self) -> str:
return pulumi.get(self, "operation")
@property
@pulumi.getter(name="expectedValue")
def expected_value(self) -> Optional[str]:
return pulumi.get(self, "expected_value")
@property
@pulumi.getter
def key(self) -> Optional[str]:
return pulumi.get(self, "key")
@property
@pulumi.getter(name="not")
def not_(self) -> Optional[bool]:
return pulumi.get(self, "not_")
@property
@pulumi.getter
def order(self) -> Optional[int]:
"""
Integer value that defines in which order the action will be performed. Default: `1`.
"""
return pulumi.get(self, "order")
@pulumi.output_type
class IntegrationActionClose(dict):
def __init__(__self__, *,
name: str,
alias: Optional[str] = None,
filters: Optional[Sequence['outputs.IntegrationActionCloseFilter']] = None,
note: Optional[str] = None,
order: Optional[int] = None,
type: Optional[str] = None,
user: Optional[str] = None):
"""
:param str name: Name of the integration action.
:param str alias: An identifier that is used for alert deduplication. Default: `{{alias}}`.
:param Sequence['IntegrationActionCloseFilterArgs'] filters: Used to specify rules for matching alerts and the filter type. Please note that depending on the integration type the field names in the filter conditions are:
* For SNS integration: `actions`, `alias`, `entity`, `Message`, `recipients`, `responders`, `Subject`, `tags`, `teams`, `eventType`, `Timestamp`, `TopicArn`.
* For API integration: `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`, `eventType`.
* For Email integration: `from_address`, `from_name`, `conversationSubject`, `subject`
:param str note: Additional alert action note.
:param int order: Integer value that defines in which order the action will be performed. Default: `1`.
:param str type: The responder type - can be `escalation`, `team` or `user`.
:param str user: Owner of the execution for integration action.
"""
pulumi.set(__self__, "name", name)
if alias is not None:
pulumi.set(__self__, "alias", alias)
if filters is not None:
pulumi.set(__self__, "filters", filters)
if note is not None:
pulumi.set(__self__, "note", note)
if order is not None:
pulumi.set(__self__, "order", order)
if type is not None:
pulumi.set(__self__, "type", type)
if user is not None:
pulumi.set(__self__, "user", user)
@property
@pulumi.getter
def name(self) -> str:
"""
Name of the integration action.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def alias(self) -> Optional[str]:
"""
An identifier that is used for alert deduplication. Default: `{{alias}}`.
"""
return pulumi.get(self, "alias")
@property
@pulumi.getter
def filters(self) -> Optional[Sequence['outputs.IntegrationActionCloseFilter']]:
"""
Used to specify rules for matching alerts and the filter type. Please note that depending on the integration type the field names in the filter conditions are:
* For SNS integration: `actions`, `alias`, `entity`, `Message`, `recipients`, `responders`, `Subject`, `tags`, `teams`, `eventType`, `Timestamp`, `TopicArn`.
* For API integration: `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`, `eventType`.
* For Email integration: `from_address`, `from_name`, `conversationSubject`, `subject`
"""
return pulumi.get(self, "filters")
@property
@pulumi.getter
def note(self) -> Optional[str]:
"""
Additional alert action note.
"""
return pulumi.get(self, "note")
@property
@pulumi.getter
def order(self) -> Optional[int]:
"""
Integer value that defines in which order the action will be performed. Default: `1`.
"""
return pulumi.get(self, "order")
@property
@pulumi.getter
def type(self) -> Optional[str]:
"""
The responder type - can be `escalation`, `team` or `user`.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def user(self) -> Optional[str]:
"""
Owner of the execution for integration action.
"""
return pulumi.get(self, "user")
@pulumi.output_type
class IntegrationActionCloseFilter(dict):
def __init__(__self__, *,
type: str,
conditions: Optional[Sequence['outputs.IntegrationActionCloseFilterCondition']] = None):
"""
:param str type: The responder type - can be `escalation`, `team` or `user`.
"""
pulumi.set(__self__, "type", type)
if conditions is not None:
pulumi.set(__self__, "conditions", conditions)
@property
@pulumi.getter
def type(self) -> str:
"""
The responder type - can be `escalation`, `team` or `user`.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def conditions(self) -> Optional[Sequence['outputs.IntegrationActionCloseFilterCondition']]:
return pulumi.get(self, "conditions")
@pulumi.output_type
class IntegrationActionCloseFilterCondition(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "expectedValue":
suggest = "expected_value"
elif key == "not":
suggest = "not_"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in IntegrationActionCloseFilterCondition. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
IntegrationActionCloseFilterCondition.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
IntegrationActionCloseFilterCondition.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
field: str,
operation: str,
expected_value: Optional[str] = None,
key: Optional[str] = None,
not_: Optional[bool] = None,
order: Optional[int] = None):
"""
:param int order: Integer value that defines in which order the action will be performed. Default: `1`.
"""
pulumi.set(__self__, "field", field)
pulumi.set(__self__, "operation", operation)
if expected_value is not None:
pulumi.set(__self__, "expected_value", expected_value)
if key is not None:
pulumi.set(__self__, "key", key)
if not_ is not None:
pulumi.set(__self__, "not_", not_)
if order is not None:
pulumi.set(__self__, "order", order)
@property
@pulumi.getter
def field(self) -> str:
return pulumi.get(self, "field")
@property
@pulumi.getter
def operation(self) -> str:
return pulumi.get(self, "operation")
@property
@pulumi.getter(name="expectedValue")
def expected_value(self) -> Optional[str]:
return pulumi.get(self, "expected_value")
@property
@pulumi.getter
def key(self) -> Optional[str]:
return pulumi.get(self, "key")
@property
@pulumi.getter(name="not")
def not_(self) -> Optional[bool]:
return pulumi.get(self, "not_")
@property
@pulumi.getter
def order(self) -> Optional[int]:
"""
Integer value that defines in which order the action will be performed. Default: `1`.
"""
return pulumi.get(self, "order")
@pulumi.output_type
class IntegrationActionCreate(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "alertActions":
suggest = "alert_actions"
elif key == "appendAttachments":
suggest = "append_attachments"
elif key == "customPriority":
suggest = "custom_priority"
elif key == "extraProperties":
suggest = "extra_properties"
elif key == "ignoreAlertActionsFromPayload":
suggest = "ignore_alert_actions_from_payload"
elif key == "ignoreExtraPropertiesFromPayload":
suggest = "ignore_extra_properties_from_payload"
elif key == "ignoreRespondersFromPayload":
suggest = "ignore_responders_from_payload"
elif key == "ignoreTagsFromPayload":
suggest = "ignore_tags_from_payload"
elif key == "ignoreTeamsFromPayload":
suggest = "ignore_teams_from_payload"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in IntegrationActionCreate. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
IntegrationActionCreate.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
IntegrationActionCreate.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
name: str,
alert_actions: Optional[Sequence[str]] = None,
alias: Optional[str] = None,
append_attachments: Optional[bool] = None,
custom_priority: Optional[str] = None,
description: Optional[str] = None,
entity: Optional[str] = None,
extra_properties: Optional[Mapping[str, str]] = None,
filters: Optional[Sequence['outputs.IntegrationActionCreateFilter']] = None,
ignore_alert_actions_from_payload: Optional[bool] = None,
ignore_extra_properties_from_payload: Optional[bool] = None,
ignore_responders_from_payload: Optional[bool] = None,
ignore_tags_from_payload: Optional[bool] = None,
ignore_teams_from_payload: Optional[bool] = None,
message: Optional[str] = None,
note: Optional[str] = None,
order: Optional[int] = None,
priority: Optional[str] = None,
responders: Optional[Sequence['outputs.IntegrationActionCreateResponder']] = None,
source: Optional[str] = None,
tags: Optional[Sequence[str]] = None,
type: Optional[str] = None,
user: Optional[str] = None):
"""
:param str name: Name of the integration action.
:param str alias: An identifier that is used for alert deduplication. Default: `{{alias}}`.
:param str custom_priority: Custom alert priority. e.g. ``{{message.substring(0,2)}}``
:param str description: Detailed description of the alert, anything that may not have fit in the `message` field.
:param str entity: The entity the alert is related to.
:param Mapping[str, str] extra_properties: Set of user defined properties specified as a map.
:param Sequence['IntegrationActionCreateFilterArgs'] filters: Used to specify rules for matching alerts and the filter type. Please note that depending on the integration type the field names in the filter conditions are:
* For SNS integration: `actions`, `alias`, `entity`, `Message`, `recipients`, `responders`, `Subject`, `tags`, `teams`, `eventType`, `Timestamp`, `TopicArn`.
* For API integration: `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`, `eventType`.
* For Email integration: `from_address`, `from_name`, `conversationSubject`, `subject`
:param bool ignore_responders_from_payload: If enabled, the integration will ignore responders sent in request payloads.
:param bool ignore_teams_from_payload: If enabled, the integration will ignore teams sent in request payloads.
:param str message: Alert text limited to 130 characters.
:param str note: Additional alert action note.
:param int order: Integer value that defines in which order the action will be performed. Default: `1`.
:param str priority: Alert priority.
:param Sequence['IntegrationActionCreateResponderArgs'] responders: User, schedule, teams or escalation names to calculate which users will receive notifications of the alert.
:param str source: User defined field to specify source of action.
:param Sequence[str] tags: Comma separated list of labels to be attached to the alert.
:param str type: The responder type - can be `escalation`, `team` or `user`.
:param str user: Owner of the execution for integration action.
"""
pulumi.set(__self__, "name", name)
if alert_actions is not None:
pulumi.set(__self__, "alert_actions", alert_actions)
if alias is not None:
pulumi.set(__self__, "alias", alias)
if append_attachments is not None:
pulumi.set(__self__, "append_attachments", append_attachments)
if custom_priority is not None:
pulumi.set(__self__, "custom_priority", custom_priority)
if description is not None:
pulumi.set(__self__, "description", description)
if entity is not None:
pulumi.set(__self__, "entity", entity)
if extra_properties is not None:
pulumi.set(__self__, "extra_properties", extra_properties)
if filters is not None:
pulumi.set(__self__, "filters", filters)
if ignore_alert_actions_from_payload is not None:
pulumi.set(__self__, "ignore_alert_actions_from_payload", ignore_alert_actions_from_payload)
if ignore_extra_properties_from_payload is not None:
pulumi.set(__self__, "ignore_extra_properties_from_payload", ignore_extra_properties_from_payload)
if ignore_responders_from_payload is not None:
pulumi.set(__self__, "ignore_responders_from_payload", ignore_responders_from_payload)
if ignore_tags_from_payload is not None:
pulumi.set(__self__, "ignore_tags_from_payload", ignore_tags_from_payload)
if ignore_teams_from_payload is not None:
pulumi.set(__self__, "ignore_teams_from_payload", ignore_teams_from_payload)
if message is not None:
pulumi.set(__self__, "message", message)
if note is not None:
pulumi.set(__self__, "note", note)
if order is not None:
pulumi.set(__self__, "order", order)
if priority is not None:
pulumi.set(__self__, "priority", priority)
if responders is not None:
pulumi.set(__self__, "responders", responders)
if source is not None:
pulumi.set(__self__, "source", source)
if tags is not None:
pulumi.set(__self__, "tags", tags)
if type is not None:
pulumi.set(__self__, "type", type)
if user is not None:
pulumi.set(__self__, "user", user)
@property
@pulumi.getter
def name(self) -> str:
"""
Name of the integration action.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter(name="alertActions")
def alert_actions(self) -> Optional[Sequence[str]]:
return pulumi.get(self, "alert_actions")
@property
@pulumi.getter
def alias(self) -> Optional[str]:
"""
An identifier that is used for alert deduplication. Default: `{{alias}}`.
"""
return pulumi.get(self, "alias")
@property
@pulumi.getter(name="appendAttachments")
def append_attachments(self) -> Optional[bool]:
return pulumi.get(self, "append_attachments")
@property
@pulumi.getter(name="customPriority")
def custom_priority(self) -> Optional[str]:
"""
Custom alert priority. e.g. ``{{message.substring(0,2)}}``
"""
return pulumi.get(self, "custom_priority")
@property
@pulumi.getter
def description(self) -> Optional[str]:
"""
Detailed description of the alert, anything that may not have fit in the `message` field.
"""
return pulumi.get(self, "description")
@property
@pulumi.getter
def entity(self) -> Optional[str]:
"""
The entity the alert is related to.
"""
return pulumi.get(self, "entity")
@property
@pulumi.getter(name="extraProperties")
def extra_properties(self) -> Optional[Mapping[str, str]]:
"""
Set of user defined properties specified as a map.
"""
return pulumi.get(self, "extra_properties")
@property
@pulumi.getter
def filters(self) -> Optional[Sequence['outputs.IntegrationActionCreateFilter']]:
"""
Used to specify rules for matching alerts and the filter type. Please note that depending on the integration type the field names in the filter conditions are:
* For SNS integration: `actions`, `alias`, `entity`, `Message`, `recipients`, `responders`, `Subject`, `tags`, `teams`, `eventType`, `Timestamp`, `TopicArn`.
* For API integration: `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`, `eventType`.
* For Email integration: `from_address`, `from_name`, `conversationSubject`, `subject`
"""
return pulumi.get(self, "filters")
@property
@pulumi.getter(name="ignoreAlertActionsFromPayload")
def ignore_alert_actions_from_payload(self) -> Optional[bool]:
return pulumi.get(self, "ignore_alert_actions_from_payload")
@property
@pulumi.getter(name="ignoreExtraPropertiesFromPayload")
def ignore_extra_properties_from_payload(self) -> Optional[bool]:
return pulumi.get(self, "ignore_extra_properties_from_payload")
@property
@pulumi.getter(name="ignoreRespondersFromPayload")
def ignore_responders_from_payload(self) -> Optional[bool]:
"""
If enabled, the integration will ignore responders sent in request payloads.
"""
return pulumi.get(self, "ignore_responders_from_payload")
@property
@pulumi.getter(name="ignoreTagsFromPayload")
def ignore_tags_from_payload(self) -> Optional[bool]:
return pulumi.get(self, "ignore_tags_from_payload")
@property
@pulumi.getter(name="ignoreTeamsFromPayload")
def ignore_teams_from_payload(self) -> Optional[bool]:
"""
If enabled, the integration will ignore teams sent in request payloads.
"""
return pulumi.get(self, "ignore_teams_from_payload")
@property
@pulumi.getter
def message(self) -> Optional[str]:
"""
Alert text limited to 130 characters.
"""
return pulumi.get(self, "message")
@property
@pulumi.getter
def note(self) -> Optional[str]:
"""
Additional alert action note.
"""
return pulumi.get(self, "note")
@property
@pulumi.getter
def order(self) -> Optional[int]:
"""
Integer value that defines in which order the action will be performed. Default: `1`.
"""
return pulumi.get(self, "order")
@property
@pulumi.getter
def priority(self) -> Optional[str]:
"""
Alert priority.
"""
return pulumi.get(self, "priority")
@property
@pulumi.getter
def responders(self) -> Optional[Sequence['outputs.IntegrationActionCreateResponder']]:
"""
User, schedule, teams or escalation names to calculate which users will receive notifications of the alert.
"""
return pulumi.get(self, "responders")
@property
@pulumi.getter
def source(self) -> Optional[str]:
"""
User defined field to specify source of action.
"""
return pulumi.get(self, "source")
@property
@pulumi.getter
def tags(self) -> Optional[Sequence[str]]:
"""
Comma separated list of labels to be attached to the alert.
"""
return pulumi.get(self, "tags")
@property
@pulumi.getter
def type(self) -> Optional[str]:
"""
The responder type - can be `escalation`, `team` or `user`.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def user(self) -> Optional[str]:
"""
Owner of the execution for integration action.
"""
return pulumi.get(self, "user")
@pulumi.output_type
class IntegrationActionCreateFilter(dict):
def __init__(__self__, *,
type: str,
conditions: Optional[Sequence['outputs.IntegrationActionCreateFilterCondition']] = None):
"""
:param str type: The responder type - can be `escalation`, `team` or `user`.
"""
pulumi.set(__self__, "type", type)
if conditions is not None:
pulumi.set(__self__, "conditions", conditions)
@property
@pulumi.getter
def type(self) -> str:
"""
The responder type - can be `escalation`, `team` or `user`.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def conditions(self) -> Optional[Sequence['outputs.IntegrationActionCreateFilterCondition']]:
return pulumi.get(self, "conditions")
@pulumi.output_type
class IntegrationActionCreateFilterCondition(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "expectedValue":
suggest = "expected_value"
elif key == "not":
suggest = "not_"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in IntegrationActionCreateFilterCondition. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
IntegrationActionCreateFilterCondition.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
IntegrationActionCreateFilterCondition.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
field: str,
operation: str,
expected_value: Optional[str] = None,
key: Optional[str] = None,
not_: Optional[bool] = None,
order: Optional[int] = None):
"""
:param int order: Integer value that defines in which order the action will be performed. Default: `1`.
"""
pulumi.set(__self__, "field", field)
pulumi.set(__self__, "operation", operation)
if expected_value is not None:
pulumi.set(__self__, "expected_value", expected_value)
if key is not None:
pulumi.set(__self__, "key", key)
if not_ is not None:
pulumi.set(__self__, "not_", not_)
if order is not None:
pulumi.set(__self__, "order", order)
@property
@pulumi.getter
def field(self) -> str:
return pulumi.get(self, "field")
@property
@pulumi.getter
def operation(self) -> str:
return pulumi.get(self, "operation")
@property
@pulumi.getter(name="expectedValue")
def expected_value(self) -> Optional[str]:
return pulumi.get(self, "expected_value")
@property
@pulumi.getter
def key(self) -> Optional[str]:
return pulumi.get(self, "key")
@property
@pulumi.getter(name="not")
def not_(self) -> Optional[bool]:
return pulumi.get(self, "not_")
@property
@pulumi.getter
def order(self) -> Optional[int]:
"""
Integer value that defines in which order the action will be performed. Default: `1`.
"""
return pulumi.get(self, "order")
@pulumi.output_type
class IntegrationActionCreateResponder(dict):
def __init__(__self__, *,
id: str,
type: str):
"""
:param str id: The id of the responder.
:param str type: The responder type - can be `escalation`, `team` or `user`.
"""
pulumi.set(__self__, "id", id)
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def id(self) -> str:
"""
The id of the responder.
"""
return pulumi.get(self, "id")
@property
@pulumi.getter
def type(self) -> str:
"""
The responder type - can be `escalation`, `team` or `user`.
"""
return pulumi.get(self, "type")
@pulumi.output_type
class IntegrationActionIgnore(dict):
def __init__(__self__, *,
name: str,
filters: Optional[Sequence['outputs.IntegrationActionIgnoreFilter']] = None,
order: Optional[int] = None,
type: Optional[str] = None):
"""
:param str name: Name of the integration action.
:param Sequence['IntegrationActionIgnoreFilterArgs'] filters: Used to specify rules for matching alerts and the filter type. Please note that depending on the integration type the field names in the filter conditions are:
* For SNS integration: `actions`, `alias`, `entity`, `Message`, `recipients`, `responders`, `Subject`, `tags`, `teams`, `eventType`, `Timestamp`, `TopicArn`.
* For API integration: `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`, `eventType`.
* For Email integration: `from_address`, `from_name`, `conversationSubject`, `subject`
:param int order: Integer value that defines in which order the action will be performed. Default: `1`.
:param str type: The responder type - can be `escalation`, `team` or `user`.
"""
pulumi.set(__self__, "name", name)
if filters is not None:
pulumi.set(__self__, "filters", filters)
if order is not None:
pulumi.set(__self__, "order", order)
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def name(self) -> str:
"""
Name of the integration action.
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def filters(self) -> Optional[Sequence['outputs.IntegrationActionIgnoreFilter']]:
"""
Used to specify rules for matching alerts and the filter type. Please note that depending on the integration type the field names in the filter conditions are:
* For SNS integration: `actions`, `alias`, `entity`, `Message`, `recipients`, `responders`, `Subject`, `tags`, `teams`, `eventType`, `Timestamp`, `TopicArn`.
* For API integration: `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`, `eventType`.
* For Email integration: `from_address`, `from_name`, `conversationSubject`, `subject`
"""
return pulumi.get(self, "filters")
@property
@pulumi.getter
def order(self) -> Optional[int]:
"""
Integer value that defines in which order the action will be performed. Default: `1`.
"""
return pulumi.get(self, "order")
@property
@pulumi.getter
def type(self) -> Optional[str]:
"""
The responder type - can be `escalation`, `team` or `user`.
"""
return pulumi.get(self, "type")
@pulumi.output_type
class IntegrationActionIgnoreFilter(dict):
def __init__(__self__, *,
type: str,
conditions: Optional[Sequence['outputs.IntegrationActionIgnoreFilterCondition']] = None):
"""
:param str type: The responder type - can be `escalation`, `team` or `user`.
"""
pulumi.set(__self__, "type", type)
if conditions is not None:
pulumi.set(__self__, "conditions", conditions)
@property
@pulumi.getter
def type(self) -> str:
"""
The responder type - can be `escalation`, `team` or `user`.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def conditions(self) -> Optional[Sequence['outputs.IntegrationActionIgnoreFilterCondition']]:
return pulumi.get(self, "conditions")
@pulumi.output_type
class IntegrationActionIgnoreFilterCondition(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "expectedValue":
suggest = "expected_value"
elif key == "not":
suggest = "not_"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in IntegrationActionIgnoreFilterCondition. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
IntegrationActionIgnoreFilterCondition.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
IntegrationActionIgnoreFilterCondition.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
field: str,
operation: str,
expected_value: Optional[str] = None,
key: Optional[str] = None,
not_: Optional[bool] = None,
order: Optional[int] = None):
"""
:param int order: Integer value that defines in which order the action will be performed. Default: `1`.
"""
pulumi.set(__self__, "field", field)
pulumi.set(__self__, "operation", operation)
if expected_value is not None:
pulumi.set(__self__, "expected_value", expected_value)
if key is not None:
pulumi.set(__self__, "key", key)
if not_ is not None:
pulumi.set(__self__, "not_", not_)
if order is not None:
pulumi.set(__self__, "order", order)
@property
@pulumi.getter
def field(self) -> str:
return pulumi.get(self, "field")
@property
@pulumi.getter
def operation(self) -> str:
return pulumi.get(self, "operation")
@property
@pulumi.getter(name="expectedValue")
def expected_value(self) -> Optional[str]:
return pulumi.get(self, "expected_value")
@property
@pulumi.getter
def key(self) -> Optional[str]:
return pulumi.get(self, "key")
@property
@pulumi.getter(name="not")
def not_(self) -> Optional[bool]:
return pulumi.get(self, "not_")
@property
@pulumi.getter
def order(self) -> Optional[int]:
"""
Integer value that defines in which order the action will be performed. Default: `1`.
"""
return pulumi.get(self, "order")
@pulumi.output_type
class MaintenanceRule(dict):
def __init__(__self__, *,
entities: Sequence['outputs.MaintenanceRuleEntity'],
state: Optional[str] = None):
"""
:param Sequence['MaintenanceRuleEntityArgs'] entities: This field represents the entity that maintenance will be applied. Entity field takes two mandatory fields as id and type.
:param str state: State of rule that will be defined in maintenance and can take either enabled or disabled for policy type rules. This field has to be disabled for integration type entity rules.
"""
pulumi.set(__self__, "entities", entities)
if state is not None:
pulumi.set(__self__, "state", state)
@property
@pulumi.getter
def entities(self) -> Sequence['outputs.MaintenanceRuleEntity']:
"""
This field represents the entity that maintenance will be applied. Entity field takes two mandatory fields as id and type.
"""
return pulumi.get(self, "entities")
@property
@pulumi.getter
def state(self) -> Optional[str]:
"""
State of rule that will be defined in maintenance and can take either enabled or disabled for policy type rules. This field has to be disabled for integration type entity rules.
"""
return pulumi.get(self, "state")
@pulumi.output_type
class MaintenanceRuleEntity(dict):
def __init__(__self__, *,
id: Optional[str] = None,
type: Optional[str] = None):
"""
:param str id: The id of the entity that maintenance will be applied.
:param str type: This parameter defines when the maintenance will be active. It can take one of for-5-minutes, for-30-minutes, for-1-hour, indefinitely or schedule.
"""
if id is not None:
pulumi.set(__self__, "id", id)
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def id(self) -> Optional[str]:
"""
The id of the entity that maintenance will be applied.
"""
return pulumi.get(self, "id")
@property
@pulumi.getter
def type(self) -> Optional[str]:
"""
This parameter defines when the maintenance will be active. It can take one of for-5-minutes, for-30-minutes, for-1-hour, indefinitely or schedule.
"""
return pulumi.get(self, "type")
@pulumi.output_type
class MaintenanceTime(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "endDate":
suggest = "end_date"
elif key == "startDate":
suggest = "start_date"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in MaintenanceTime. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
MaintenanceTime.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
MaintenanceTime.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
type: str,
end_date: Optional[str] = None,
start_date: Optional[str] = None):
"""
:param str type: This parameter defines when the maintenance will be active. It can take one of for-5-minutes, for-30-minutes, for-1-hour, indefinitely or schedule.
:param str end_date: This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00).
:param str start_date: This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00).
"""
pulumi.set(__self__, "type", type)
if end_date is not None:
pulumi.set(__self__, "end_date", end_date)
if start_date is not None:
pulumi.set(__self__, "start_date", start_date)
@property
@pulumi.getter
def type(self) -> str:
"""
This parameter defines when the maintenance will be active. It can take one of for-5-minutes, for-30-minutes, for-1-hour, indefinitely or schedule.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter(name="endDate")
def end_date(self) -> Optional[str]:
"""
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00).
"""
return pulumi.get(self, "end_date")
@property
@pulumi.getter(name="startDate")
def start_date(self) -> Optional[str]:
"""
This parameter takes a date format as (yyyy-MM-dd'T'HH:mm:ssZ) (e.g. 2019-06-11T08:00:00+02:00).
"""
return pulumi.get(self, "start_date")
@pulumi.output_type
class NotificationPolicyAutoCloseAction(dict):
def __init__(__self__, *,
durations: Sequence['outputs.NotificationPolicyAutoCloseActionDuration']):
"""
:param Sequence['NotificationPolicyAutoCloseActionDurationArgs'] durations: Duration of this action. If `delay_option` = `for-duration` this has to be set. This is a block, structure is documented below.
"""
pulumi.set(__self__, "durations", durations)
@property
@pulumi.getter
def durations(self) -> Sequence['outputs.NotificationPolicyAutoCloseActionDuration']:
"""
Duration of this action. If `delay_option` = `for-duration` this has to be set. This is a block, structure is documented below.
"""
return pulumi.get(self, "durations")
@pulumi.output_type
class NotificationPolicyAutoCloseActionDuration(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "timeAmount":
suggest = "time_amount"
elif key == "timeUnit":
suggest = "time_unit"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in NotificationPolicyAutoCloseActionDuration. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
NotificationPolicyAutoCloseActionDuration.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
NotificationPolicyAutoCloseActionDuration.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
time_amount: int,
time_unit: Optional[str] = None):
"""
:param int time_amount: A amount of time in `time_units`. This is a integer attribute.
:param str time_unit: Valid time units are: `minutes`, `hours`, `days`. Default: `minutes`
"""
pulumi.set(__self__, "time_amount", time_amount)
if time_unit is not None:
pulumi.set(__self__, "time_unit", time_unit)
@property
@pulumi.getter(name="timeAmount")
def time_amount(self) -> int:
"""
A amount of time in `time_units`. This is a integer attribute.
"""
return pulumi.get(self, "time_amount")
@property
@pulumi.getter(name="timeUnit")
def time_unit(self) -> Optional[str]:
"""
Valid time units are: `minutes`, `hours`, `days`. Default: `minutes`
"""
return pulumi.get(self, "time_unit")
@pulumi.output_type
class NotificationPolicyAutoRestartAction(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "maxRepeatCount":
suggest = "max_repeat_count"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in NotificationPolicyAutoRestartAction. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
NotificationPolicyAutoRestartAction.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
NotificationPolicyAutoRestartAction.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
durations: Sequence['outputs.NotificationPolicyAutoRestartActionDuration'],
max_repeat_count: int):
"""
:param Sequence['NotificationPolicyAutoRestartActionDurationArgs'] durations: Duration of this action. If `delay_option` = `for-duration` this has to be set. This is a block, structure is documented below.
:param int max_repeat_count: How many times to repeat. This is a integer attribute.
"""
pulumi.set(__self__, "durations", durations)
pulumi.set(__self__, "max_repeat_count", max_repeat_count)
@property
@pulumi.getter
def durations(self) -> Sequence['outputs.NotificationPolicyAutoRestartActionDuration']:
"""
Duration of this action. If `delay_option` = `for-duration` this has to be set. This is a block, structure is documented below.
"""
return pulumi.get(self, "durations")
@property
@pulumi.getter(name="maxRepeatCount")
def max_repeat_count(self) -> int:
"""
How many times to repeat. This is a integer attribute.
"""
return pulumi.get(self, "max_repeat_count")
@pulumi.output_type
class NotificationPolicyAutoRestartActionDuration(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "timeAmount":
suggest = "time_amount"
elif key == "timeUnit":
suggest = "time_unit"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in NotificationPolicyAutoRestartActionDuration. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
NotificationPolicyAutoRestartActionDuration.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
NotificationPolicyAutoRestartActionDuration.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
time_amount: int,
time_unit: Optional[str] = None):
"""
:param int time_amount: A amount of time in `time_units`. This is a integer attribute.
:param str time_unit: Valid time units are: `minutes`, `hours`, `days`. Default: `minutes`
"""
pulumi.set(__self__, "time_amount", time_amount)
if time_unit is not None:
pulumi.set(__self__, "time_unit", time_unit)
@property
@pulumi.getter(name="timeAmount")
def time_amount(self) -> int:
"""
A amount of time in `time_units`. This is a integer attribute.
"""
return pulumi.get(self, "time_amount")
@property
@pulumi.getter(name="timeUnit")
def time_unit(self) -> Optional[str]:
"""
Valid time units are: `minutes`, `hours`, `days`. Default: `minutes`
"""
return pulumi.get(self, "time_unit")
@pulumi.output_type
class NotificationPolicyDeDuplicationAction(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "deDuplicationActionType":
suggest = "de_duplication_action_type"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in NotificationPolicyDeDuplicationAction. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
NotificationPolicyDeDuplicationAction.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
NotificationPolicyDeDuplicationAction.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
count: int,
de_duplication_action_type: str,
durations: Optional[Sequence['outputs.NotificationPolicyDeDuplicationActionDuration']] = None):
"""
:param int count: - Count
:param str de_duplication_action_type: Deduplication type. Possible values are: "value-based", "frequency-based"
:param Sequence['NotificationPolicyDeDuplicationActionDurationArgs'] durations: Duration of this action. If `delay_option` = `for-duration` this has to be set. This is a block, structure is documented below.
"""
pulumi.set(__self__, "count", count)
pulumi.set(__self__, "de_duplication_action_type", de_duplication_action_type)
if durations is not None:
pulumi.set(__self__, "durations", durations)
@property
@pulumi.getter
def count(self) -> int:
"""
- Count
"""
return pulumi.get(self, "count")
@property
@pulumi.getter(name="deDuplicationActionType")
def de_duplication_action_type(self) -> str:
"""
Deduplication type. Possible values are: "value-based", "frequency-based"
"""
return pulumi.get(self, "de_duplication_action_type")
@property
@pulumi.getter
def durations(self) -> Optional[Sequence['outputs.NotificationPolicyDeDuplicationActionDuration']]:
"""
Duration of this action. If `delay_option` = `for-duration` this has to be set. This is a block, structure is documented below.
"""
return pulumi.get(self, "durations")
@pulumi.output_type
class NotificationPolicyDeDuplicationActionDuration(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "timeAmount":
suggest = "time_amount"
elif key == "timeUnit":
suggest = "time_unit"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in NotificationPolicyDeDuplicationActionDuration. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
NotificationPolicyDeDuplicationActionDuration.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
NotificationPolicyDeDuplicationActionDuration.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
time_amount: int,
time_unit: Optional[str] = None):
"""
:param int time_amount: A amount of time in `time_units`. This is a integer attribute.
:param str time_unit: Valid time units are: `minutes`, `hours`, `days`. Default: `minutes`
"""
pulumi.set(__self__, "time_amount", time_amount)
if time_unit is not None:
pulumi.set(__self__, "time_unit", time_unit)
@property
@pulumi.getter(name="timeAmount")
def time_amount(self) -> int:
"""
A amount of time in `time_units`. This is a integer attribute.
"""
return pulumi.get(self, "time_amount")
@property
@pulumi.getter(name="timeUnit")
def time_unit(self) -> Optional[str]:
"""
Valid time units are: `minutes`, `hours`, `days`. Default: `minutes`
"""
return pulumi.get(self, "time_unit")
@pulumi.output_type
class NotificationPolicyDelayAction(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "delayOption":
suggest = "delay_option"
elif key == "untilHour":
suggest = "until_hour"
elif key == "untilMinute":
suggest = "until_minute"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in NotificationPolicyDelayAction. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
NotificationPolicyDelayAction.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
NotificationPolicyDelayAction.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
delay_option: str,
durations: Optional[Sequence['outputs.NotificationPolicyDelayActionDuration']] = None,
until_hour: Optional[int] = None,
until_minute: Optional[int] = None):
"""
:param str delay_option: Defines until what day to delay or for what duration. Possible values are: `for-duration`, `next-time`, `next-weekday`, `next-monday`, `next-tuesday`, `next-wednesday`, `next-thursday`, `next-friday`, `next-saturday`, `next-sunday`
:param Sequence['NotificationPolicyDelayActionDurationArgs'] durations: Duration of this action. If `delay_option` = `for-duration` this has to be set. This is a block, structure is documented below.
:param int until_hour: Until what hour notifications will be delayed. If `delay_option` is set to antyhing else then `for-duration` this has to be set.
:param int until_minute: Until what minute on `until_hour` notifications will be delayed. If `delay_option` is set to antyhing else then `for-duration` this has to be set.
"""
pulumi.set(__self__, "delay_option", delay_option)
if durations is not None:
pulumi.set(__self__, "durations", durations)
if until_hour is not None:
pulumi.set(__self__, "until_hour", until_hour)
if until_minute is not None:
pulumi.set(__self__, "until_minute", until_minute)
@property
@pulumi.getter(name="delayOption")
def delay_option(self) -> str:
"""
Defines until what day to delay or for what duration. Possible values are: `for-duration`, `next-time`, `next-weekday`, `next-monday`, `next-tuesday`, `next-wednesday`, `next-thursday`, `next-friday`, `next-saturday`, `next-sunday`
"""
return pulumi.get(self, "delay_option")
@property
@pulumi.getter
def durations(self) -> Optional[Sequence['outputs.NotificationPolicyDelayActionDuration']]:
"""
Duration of this action. If `delay_option` = `for-duration` this has to be set. This is a block, structure is documented below.
"""
return pulumi.get(self, "durations")
@property
@pulumi.getter(name="untilHour")
def until_hour(self) -> Optional[int]:
"""
Until what hour notifications will be delayed. If `delay_option` is set to antyhing else then `for-duration` this has to be set.
"""
return pulumi.get(self, "until_hour")
@property
@pulumi.getter(name="untilMinute")
def until_minute(self) -> Optional[int]:
"""
Until what minute on `until_hour` notifications will be delayed. If `delay_option` is set to antyhing else then `for-duration` this has to be set.
"""
return pulumi.get(self, "until_minute")
@pulumi.output_type
class NotificationPolicyDelayActionDuration(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "timeAmount":
suggest = "time_amount"
elif key == "timeUnit":
suggest = "time_unit"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in NotificationPolicyDelayActionDuration. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
NotificationPolicyDelayActionDuration.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
NotificationPolicyDelayActionDuration.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
time_amount: int,
time_unit: Optional[str] = None):
"""
:param int time_amount: A amount of time in `time_units`. This is a integer attribute.
:param str time_unit: Valid time units are: `minutes`, `hours`, `days`. Default: `minutes`
"""
pulumi.set(__self__, "time_amount", time_amount)
if time_unit is not None:
pulumi.set(__self__, "time_unit", time_unit)
@property
@pulumi.getter(name="timeAmount")
def time_amount(self) -> int:
"""
A amount of time in `time_units`. This is a integer attribute.
"""
return pulumi.get(self, "time_amount")
@property
@pulumi.getter(name="timeUnit")
def time_unit(self) -> Optional[str]:
"""
Valid time units are: `minutes`, `hours`, `days`. Default: `minutes`
"""
return pulumi.get(self, "time_unit")
@pulumi.output_type
class NotificationPolicyFilter(dict):
def __init__(__self__, *,
conditions: Optional[Sequence['outputs.NotificationPolicyFilterCondition']] = None,
type: Optional[str] = None):
"""
:param Sequence['NotificationPolicyFilterConditionArgs'] conditions: Conditions applied to filter. This is a block, structure is documented below.
:param str type: Defines if restriction should apply daily on given hours or on certain days and hours. Possible values are: `time-of-day`, `weekday-and-time-of-day`
"""
if conditions is not None:
pulumi.set(__self__, "conditions", conditions)
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def conditions(self) -> Optional[Sequence['outputs.NotificationPolicyFilterCondition']]:
"""
Conditions applied to filter. This is a block, structure is documented below.
"""
return pulumi.get(self, "conditions")
@property
@pulumi.getter
def type(self) -> Optional[str]:
"""
Defines if restriction should apply daily on given hours or on certain days and hours. Possible values are: `time-of-day`, `weekday-and-time-of-day`
"""
return pulumi.get(self, "type")
@pulumi.output_type
class NotificationPolicyFilterCondition(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "expectedValue":
suggest = "expected_value"
elif key == "not":
suggest = "not_"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in NotificationPolicyFilterCondition. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
NotificationPolicyFilterCondition.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
NotificationPolicyFilterCondition.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
field: str,
operation: str,
expected_value: Optional[str] = None,
key: Optional[str] = None,
not_: Optional[bool] = None,
order: Optional[int] = None):
"""
:param str field: Specifies which alert field will be used in condition. Possible values are `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`
:param str operation: It is the operation that will be executed for the given field and key. Possible operations are `matches`, `contains`, `starts-with`, `ends-with`, `equals`, `contains-key`, `contains-value`, `greater-than`, `less-than`, `is-empty`, `equals-ignore-whitespace`.
:param str expected_value: User defined value that will be compared with alert field according to the operation. Default: empty string
:param str key: If `field` is set as extra-properties, key could be used for key-value pair
:param bool not_: Indicates behaviour of the given operation. Default: `false`
:param int order: Order of the condition in conditions list
"""
pulumi.set(__self__, "field", field)
pulumi.set(__self__, "operation", operation)
if expected_value is not None:
pulumi.set(__self__, "expected_value", expected_value)
if key is not None:
pulumi.set(__self__, "key", key)
if not_ is not None:
pulumi.set(__self__, "not_", not_)
if order is not None:
pulumi.set(__self__, "order", order)
@property
@pulumi.getter
def field(self) -> str:
"""
Specifies which alert field will be used in condition. Possible values are `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`
"""
return pulumi.get(self, "field")
@property
@pulumi.getter
def operation(self) -> str:
"""
It is the operation that will be executed for the given field and key. Possible operations are `matches`, `contains`, `starts-with`, `ends-with`, `equals`, `contains-key`, `contains-value`, `greater-than`, `less-than`, `is-empty`, `equals-ignore-whitespace`.
"""
return pulumi.get(self, "operation")
@property
@pulumi.getter(name="expectedValue")
def expected_value(self) -> Optional[str]:
"""
User defined value that will be compared with alert field according to the operation. Default: empty string
"""
return pulumi.get(self, "expected_value")
@property
@pulumi.getter
def key(self) -> Optional[str]:
"""
If `field` is set as extra-properties, key could be used for key-value pair
"""
return pulumi.get(self, "key")
@property
@pulumi.getter(name="not")
def not_(self) -> Optional[bool]:
"""
Indicates behaviour of the given operation. Default: `false`
"""
return pulumi.get(self, "not_")
@property
@pulumi.getter
def order(self) -> Optional[int]:
"""
Order of the condition in conditions list
"""
return pulumi.get(self, "order")
@pulumi.output_type
class NotificationPolicyTimeRestriction(dict):
def __init__(__self__, *,
type: str,
restrictions: Optional[Sequence['outputs.NotificationPolicyTimeRestrictionRestriction']] = None):
"""
:param str type: Defines if restriction should apply daily on given hours or on certain days and hours. Possible values are: `time-of-day`, `weekday-and-time-of-day`
:param Sequence['NotificationPolicyTimeRestrictionRestrictionArgs'] restrictions: List of days and hours definitions for field type = `weekday-and-time-of-day`. This is a block, structure is documented below.
"""
pulumi.set(__self__, "type", type)
if restrictions is not None:
pulumi.set(__self__, "restrictions", restrictions)
@property
@pulumi.getter
def type(self) -> str:
"""
Defines if restriction should apply daily on given hours or on certain days and hours. Possible values are: `time-of-day`, `weekday-and-time-of-day`
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def restrictions(self) -> Optional[Sequence['outputs.NotificationPolicyTimeRestrictionRestriction']]:
"""
List of days and hours definitions for field type = `weekday-and-time-of-day`. This is a block, structure is documented below.
"""
return pulumi.get(self, "restrictions")
@pulumi.output_type
class NotificationPolicyTimeRestrictionRestriction(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "endDay":
suggest = "end_day"
elif key == "endHour":
suggest = "end_hour"
elif key == "endMin":
suggest = "end_min"
elif key == "startDay":
suggest = "start_day"
elif key == "startHour":
suggest = "start_hour"
elif key == "startMin":
suggest = "start_min"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in NotificationPolicyTimeRestrictionRestriction. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
NotificationPolicyTimeRestrictionRestriction.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
NotificationPolicyTimeRestrictionRestriction.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
end_day: str,
end_hour: int,
end_min: int,
start_day: str,
start_hour: int,
start_min: int):
"""
:param str end_day: Ending day of restriction (eg. `wednesday`)
:param int end_hour: Ending hour of restriction.
:param int end_min: Ending minute of restriction on defined `end_hour`
:param str start_day: Starting day of restriction (eg. `monday`)
:param int start_hour: Starting hour of restriction.
:param int start_min: Staring minute of restriction on defined `start_hour`
"""
pulumi.set(__self__, "end_day", end_day)
pulumi.set(__self__, "end_hour", end_hour)
pulumi.set(__self__, "end_min", end_min)
pulumi.set(__self__, "start_day", start_day)
pulumi.set(__self__, "start_hour", start_hour)
pulumi.set(__self__, "start_min", start_min)
@property
@pulumi.getter(name="endDay")
def end_day(self) -> str:
"""
Ending day of restriction (eg. `wednesday`)
"""
return pulumi.get(self, "end_day")
@property
@pulumi.getter(name="endHour")
def end_hour(self) -> int:
"""
Ending hour of restriction.
"""
return pulumi.get(self, "end_hour")
@property
@pulumi.getter(name="endMin")
def end_min(self) -> int:
"""
Ending minute of restriction on defined `end_hour`
"""
return pulumi.get(self, "end_min")
@property
@pulumi.getter(name="startDay")
def start_day(self) -> str:
"""
Starting day of restriction (eg. `monday`)
"""
return pulumi.get(self, "start_day")
@property
@pulumi.getter(name="startHour")
def start_hour(self) -> int:
"""
Starting hour of restriction.
"""
return pulumi.get(self, "start_hour")
@property
@pulumi.getter(name="startMin")
def start_min(self) -> int:
"""
Staring minute of restriction on defined `start_hour`
"""
return pulumi.get(self, "start_min")
@pulumi.output_type
class NotificationRuleCriteria(dict):
def __init__(__self__, *,
type: str,
conditions: Optional[Sequence['outputs.NotificationRuleCriteriaCondition']] = None):
"""
:param str type: Kind of matching filter. Possible values: `match-all`, `match-any-condition`, `match-all-conditions`
:param Sequence['NotificationRuleCriteriaConditionArgs'] conditions: Defines the fields and values when the condition applies
"""
pulumi.set(__self__, "type", type)
if conditions is not None:
pulumi.set(__self__, "conditions", conditions)
@property
@pulumi.getter
def type(self) -> str:
"""
Kind of matching filter. Possible values: `match-all`, `match-any-condition`, `match-all-conditions`
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def conditions(self) -> Optional[Sequence['outputs.NotificationRuleCriteriaCondition']]:
"""
Defines the fields and values when the condition applies
"""
return pulumi.get(self, "conditions")
@pulumi.output_type
class NotificationRuleCriteriaCondition(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "expectedValue":
suggest = "expected_value"
elif key == "not":
suggest = "not_"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in NotificationRuleCriteriaCondition. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
NotificationRuleCriteriaCondition.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
NotificationRuleCriteriaCondition.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
field: str,
operation: str,
expected_value: Optional[str] = None,
key: Optional[str] = None,
not_: Optional[bool] = None,
order: Optional[int] = None):
"""
:param str field: Possible values: `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`
:param str operation: Possible values: `matches`, `contains`, `starts-with`, `ends-with`, `equals`, `contains-key`, `contains-value`, `greater-than`, `less-than`, `is-empty`, `equals-ignore-whitespace`
:param str expected_value: User defined value that will be compared with alert field according to the operation. Default: empty string
:param str key: If 'field' is set as 'extra-properties', key could be used for key-value pair
:param bool not_: Indicates behaviour of the given operation. Default: `false`
:param int order: Order of the condition in conditions list
"""
pulumi.set(__self__, "field", field)
pulumi.set(__self__, "operation", operation)
if expected_value is not None:
pulumi.set(__self__, "expected_value", expected_value)
if key is not None:
pulumi.set(__self__, "key", key)
if not_ is not None:
pulumi.set(__self__, "not_", not_)
if order is not None:
pulumi.set(__self__, "order", order)
@property
@pulumi.getter
def field(self) -> str:
"""
Possible values: `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`
"""
return pulumi.get(self, "field")
@property
@pulumi.getter
def operation(self) -> str:
"""
Possible values: `matches`, `contains`, `starts-with`, `ends-with`, `equals`, `contains-key`, `contains-value`, `greater-than`, `less-than`, `is-empty`, `equals-ignore-whitespace`
"""
return pulumi.get(self, "operation")
@property
@pulumi.getter(name="expectedValue")
def expected_value(self) -> Optional[str]:
"""
User defined value that will be compared with alert field according to the operation. Default: empty string
"""
return pulumi.get(self, "expected_value")
@property
@pulumi.getter
def key(self) -> Optional[str]:
"""
If 'field' is set as 'extra-properties', key could be used for key-value pair
"""
return pulumi.get(self, "key")
@property
@pulumi.getter(name="not")
def not_(self) -> Optional[bool]:
"""
Indicates behaviour of the given operation. Default: `false`
"""
return pulumi.get(self, "not_")
@property
@pulumi.getter
def order(self) -> Optional[int]:
"""
Order of the condition in conditions list
"""
return pulumi.get(self, "order")
@pulumi.output_type
class NotificationRuleRepeat(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "loopAfter":
suggest = "loop_after"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in NotificationRuleRepeat. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
NotificationRuleRepeat.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
NotificationRuleRepeat.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
loop_after: int,
enabled: Optional[bool] = None):
"""
:param bool enabled: Defined if this step is enabled. Default: `true`
"""
pulumi.set(__self__, "loop_after", loop_after)
if enabled is not None:
pulumi.set(__self__, "enabled", enabled)
@property
@pulumi.getter(name="loopAfter")
def loop_after(self) -> int:
return pulumi.get(self, "loop_after")
@property
@pulumi.getter
def enabled(self) -> Optional[bool]:
"""
Defined if this step is enabled. Default: `true`
"""
return pulumi.get(self, "enabled")
@pulumi.output_type
class NotificationRuleSchedule(dict):
def __init__(__self__, *,
name: str,
type: str):
"""
:param str name: Name of the notification policy
:param str type: Kind of matching filter. Possible values: `match-all`, `match-any-condition`, `match-all-conditions`
"""
pulumi.set(__self__, "name", name)
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def name(self) -> str:
"""
Name of the notification policy
"""
return pulumi.get(self, "name")
@property
@pulumi.getter
def type(self) -> str:
"""
Kind of matching filter. Possible values: `match-all`, `match-any-condition`, `match-all-conditions`
"""
return pulumi.get(self, "type")
@pulumi.output_type
class NotificationRuleStep(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "sendAfter":
suggest = "send_after"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in NotificationRuleStep. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
NotificationRuleStep.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
NotificationRuleStep.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
contacts: Sequence['outputs.NotificationRuleStepContact'],
enabled: Optional[bool] = None,
send_after: Optional[int] = None):
"""
:param Sequence['NotificationRuleStepContactArgs'] contacts: Defines the contact that notification will be sent to. This is a block, structure is documented below.
:param bool enabled: Defined if this step is enabled. Default: `true`
:param int send_after: Time period, in minutes, notification will be sent after.
"""
pulumi.set(__self__, "contacts", contacts)
if enabled is not None:
pulumi.set(__self__, "enabled", enabled)
if send_after is not None:
pulumi.set(__self__, "send_after", send_after)
@property
@pulumi.getter
def contacts(self) -> Sequence['outputs.NotificationRuleStepContact']:
"""
Defines the contact that notification will be sent to. This is a block, structure is documented below.
"""
return pulumi.get(self, "contacts")
@property
@pulumi.getter
def enabled(self) -> Optional[bool]:
"""
Defined if this step is enabled. Default: `true`
"""
return pulumi.get(self, "enabled")
@property
@pulumi.getter(name="sendAfter")
def send_after(self) -> Optional[int]:
"""
Time period, in minutes, notification will be sent after.
"""
return pulumi.get(self, "send_after")
@pulumi.output_type
class NotificationRuleStepContact(dict):
def __init__(__self__, *,
method: str,
to: str):
"""
:param str method: Contact method. Possible values: `email`, `sms`, `voice`, `mobile`
:param str to: Address of a given method (eg. email address for `email`, phone number for `sms`/`voice` or mobile application name for `mobile`)
"""
pulumi.set(__self__, "method", method)
pulumi.set(__self__, "to", to)
@property
@pulumi.getter
def method(self) -> str:
"""
Contact method. Possible values: `email`, `sms`, `voice`, `mobile`
"""
return pulumi.get(self, "method")
@property
@pulumi.getter
def to(self) -> str:
"""
Address of a given method (eg. email address for `email`, phone number for `sms`/`voice` or mobile application name for `mobile`)
"""
return pulumi.get(self, "to")
@pulumi.output_type
class NotificationRuleTimeRestriction(dict):
def __init__(__self__, *,
type: str,
restrictions: Optional[Sequence['outputs.NotificationRuleTimeRestrictionRestriction']] = None):
"""
:param str type: Kind of matching filter. Possible values: `match-all`, `match-any-condition`, `match-all-conditions`
"""
pulumi.set(__self__, "type", type)
if restrictions is not None:
pulumi.set(__self__, "restrictions", restrictions)
@property
@pulumi.getter
def type(self) -> str:
"""
Kind of matching filter. Possible values: `match-all`, `match-any-condition`, `match-all-conditions`
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def restrictions(self) -> Optional[Sequence['outputs.NotificationRuleTimeRestrictionRestriction']]:
return pulumi.get(self, "restrictions")
@pulumi.output_type
class NotificationRuleTimeRestrictionRestriction(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "endDay":
suggest = "end_day"
elif key == "endHour":
suggest = "end_hour"
elif key == "endMin":
suggest = "end_min"
elif key == "startDay":
suggest = "start_day"
elif key == "startHour":
suggest = "start_hour"
elif key == "startMin":
suggest = "start_min"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in NotificationRuleTimeRestrictionRestriction. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
NotificationRuleTimeRestrictionRestriction.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
NotificationRuleTimeRestrictionRestriction.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
end_day: str,
end_hour: int,
end_min: int,
start_day: str,
start_hour: int,
start_min: int):
pulumi.set(__self__, "end_day", end_day)
pulumi.set(__self__, "end_hour", end_hour)
pulumi.set(__self__, "end_min", end_min)
pulumi.set(__self__, "start_day", start_day)
pulumi.set(__self__, "start_hour", start_hour)
pulumi.set(__self__, "start_min", start_min)
@property
@pulumi.getter(name="endDay")
def end_day(self) -> str:
return pulumi.get(self, "end_day")
@property
@pulumi.getter(name="endHour")
def end_hour(self) -> int:
return pulumi.get(self, "end_hour")
@property
@pulumi.getter(name="endMin")
def end_min(self) -> int:
return pulumi.get(self, "end_min")
@property
@pulumi.getter(name="startDay")
def start_day(self) -> str:
return pulumi.get(self, "start_day")
@property
@pulumi.getter(name="startHour")
def start_hour(self) -> int:
return pulumi.get(self, "start_hour")
@property
@pulumi.getter(name="startMin")
def start_min(self) -> int:
return pulumi.get(self, "start_min")
@pulumi.output_type
class ScheduleRotationParticipant(dict):
def __init__(__self__, *,
type: str,
id: Optional[str] = None):
"""
:param str type: The responder type.
:param str id: The id of the responder.
"""
pulumi.set(__self__, "type", type)
if id is not None:
pulumi.set(__self__, "id", id)
@property
@pulumi.getter
def type(self) -> str:
"""
The responder type.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def id(self) -> Optional[str]:
"""
The id of the responder.
"""
return pulumi.get(self, "id")
@pulumi.output_type
class ScheduleRotationTimeRestriction(dict):
def __init__(__self__, *,
type: str,
restriction: Optional[Sequence['outputs.ScheduleRotationTimeRestrictionRestriction']] = None,
restrictions: Optional[Sequence['outputs.ScheduleRotationTimeRestrictionRestriction']] = None):
"""
:param str type: This parameter should be set to `time-of-day` or `weekday-and-time-of-day`.
:param Sequence['ScheduleRotationTimeRestrictionRestrictionArgs'] restriction: It is a restriction object which is described below. In this case startDay/endDay fields are not supported. This can be used only if time restriction type is `time-of-day`.
:param Sequence['ScheduleRotationTimeRestrictionRestrictionArgs'] restrictions: It is a restriction object which is described below. This can be used only if time restriction type is `weekday-and-time-of-day`.
"""
pulumi.set(__self__, "type", type)
if restriction is not None:
pulumi.set(__self__, "restriction", restriction)
if restrictions is not None:
pulumi.set(__self__, "restrictions", restrictions)
@property
@pulumi.getter
def type(self) -> str:
"""
This parameter should be set to `time-of-day` or `weekday-and-time-of-day`.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def restriction(self) -> Optional[Sequence['outputs.ScheduleRotationTimeRestrictionRestriction']]:
"""
It is a restriction object which is described below. In this case startDay/endDay fields are not supported. This can be used only if time restriction type is `time-of-day`.
"""
return pulumi.get(self, "restriction")
@property
@pulumi.getter
def restrictions(self) -> Optional[Sequence['outputs.ScheduleRotationTimeRestrictionRestriction']]:
"""
It is a restriction object which is described below. This can be used only if time restriction type is `weekday-and-time-of-day`.
"""
return pulumi.get(self, "restrictions")
@pulumi.output_type
class ScheduleRotationTimeRestrictionRestriction(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "endDay":
suggest = "end_day"
elif key == "endHour":
suggest = "end_hour"
elif key == "endMin":
suggest = "end_min"
elif key == "startDay":
suggest = "start_day"
elif key == "startHour":
suggest = "start_hour"
elif key == "startMin":
suggest = "start_min"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ScheduleRotationTimeRestrictionRestriction. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ScheduleRotationTimeRestrictionRestriction.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ScheduleRotationTimeRestrictionRestriction.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
end_day: str,
end_hour: int,
end_min: int,
start_day: str,
start_hour: int,
start_min: int):
"""
:param str end_day: Value of the day that frame will end.
:param int end_hour: Value of the hour that frame will end.
:param int end_min: Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
:param str start_day: Value of the day that frame will start.
:param int start_hour: Value of the hour that frame will start
:param int start_min: Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
"""
pulumi.set(__self__, "end_day", end_day)
pulumi.set(__self__, "end_hour", end_hour)
pulumi.set(__self__, "end_min", end_min)
pulumi.set(__self__, "start_day", start_day)
pulumi.set(__self__, "start_hour", start_hour)
pulumi.set(__self__, "start_min", start_min)
@property
@pulumi.getter(name="endDay")
def end_day(self) -> str:
"""
Value of the day that frame will end.
"""
return pulumi.get(self, "end_day")
@property
@pulumi.getter(name="endHour")
def end_hour(self) -> int:
"""
Value of the hour that frame will end.
"""
return pulumi.get(self, "end_hour")
@property
@pulumi.getter(name="endMin")
def end_min(self) -> int:
"""
Value of the minute that frame will end. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
"""
return pulumi.get(self, "end_min")
@property
@pulumi.getter(name="startDay")
def start_day(self) -> str:
"""
Value of the day that frame will start.
"""
return pulumi.get(self, "start_day")
@property
@pulumi.getter(name="startHour")
def start_hour(self) -> int:
"""
Value of the hour that frame will start
"""
return pulumi.get(self, "start_hour")
@property
@pulumi.getter(name="startMin")
def start_min(self) -> int:
"""
Value of the minute that frame will start. Minutes may take 0 or 30 as value. Otherwise they will be converted to nearest 0 or 30 automatically.
"""
return pulumi.get(self, "start_min")
@pulumi.output_type
class ServiceIncidentRuleIncidentRule(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "incidentProperties":
suggest = "incident_properties"
elif key == "conditionMatchType":
suggest = "condition_match_type"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ServiceIncidentRuleIncidentRule. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ServiceIncidentRuleIncidentRule.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ServiceIncidentRuleIncidentRule.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
incident_properties: Sequence['outputs.ServiceIncidentRuleIncidentRuleIncidentProperty'],
condition_match_type: Optional[str] = None,
conditions: Optional[Sequence['outputs.ServiceIncidentRuleIncidentRuleCondition']] = None):
"""
:param Sequence['ServiceIncidentRuleIncidentRuleIncidentPropertyArgs'] incident_properties: Properties for incident rule. This is a block, structure is documented below.
:param str condition_match_type: A Condition type, supported types are: `match-all`, `match-any-condition`, `match-all-conditions`. Default: `match-all`
:param Sequence['ServiceIncidentRuleIncidentRuleConditionArgs'] conditions: Conditions applied to incident. This is a block, structure is documented below.
"""
pulumi.set(__self__, "incident_properties", incident_properties)
if condition_match_type is not None:
pulumi.set(__self__, "condition_match_type", condition_match_type)
if conditions is not None:
pulumi.set(__self__, "conditions", conditions)
@property
@pulumi.getter(name="incidentProperties")
def incident_properties(self) -> Sequence['outputs.ServiceIncidentRuleIncidentRuleIncidentProperty']:
"""
Properties for incident rule. This is a block, structure is documented below.
"""
return pulumi.get(self, "incident_properties")
@property
@pulumi.getter(name="conditionMatchType")
def condition_match_type(self) -> Optional[str]:
"""
A Condition type, supported types are: `match-all`, `match-any-condition`, `match-all-conditions`. Default: `match-all`
"""
return pulumi.get(self, "condition_match_type")
@property
@pulumi.getter
def conditions(self) -> Optional[Sequence['outputs.ServiceIncidentRuleIncidentRuleCondition']]:
"""
Conditions applied to incident. This is a block, structure is documented below.
"""
return pulumi.get(self, "conditions")
@pulumi.output_type
class ServiceIncidentRuleIncidentRuleCondition(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "expectedValue":
suggest = "expected_value"
elif key == "not":
suggest = "not_"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ServiceIncidentRuleIncidentRuleCondition. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ServiceIncidentRuleIncidentRuleCondition.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ServiceIncidentRuleIncidentRuleCondition.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
field: str,
operation: str,
expected_value: Optional[str] = None,
key: Optional[str] = None,
not_: Optional[bool] = None):
"""
:param str field: Specifies which alert field will be used in condition. Possible values are `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`
:param str operation: It is the operation that will be executed for the given field and key. Possible operations are `matches`, `contains`, `starts-with`, `ends-with`, `equals`, `contains-key`, `contains-value`, `greater-than`, `less-than`, `is-empty`, `equals-ignore-whitespace`.
:param str expected_value: User defined value that will be compared with alert field according to the operation. Default: empty string
:param bool not_: Indicates behaviour of the given operation. Default: false
"""
pulumi.set(__self__, "field", field)
pulumi.set(__self__, "operation", operation)
if expected_value is not None:
pulumi.set(__self__, "expected_value", expected_value)
if key is not None:
pulumi.set(__self__, "key", key)
if not_ is not None:
pulumi.set(__self__, "not_", not_)
@property
@pulumi.getter
def field(self) -> str:
"""
Specifies which alert field will be used in condition. Possible values are `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `details`, `extra-properties`, `recipients`, `teams`, `priority`
"""
return pulumi.get(self, "field")
@property
@pulumi.getter
def operation(self) -> str:
"""
It is the operation that will be executed for the given field and key. Possible operations are `matches`, `contains`, `starts-with`, `ends-with`, `equals`, `contains-key`, `contains-value`, `greater-than`, `less-than`, `is-empty`, `equals-ignore-whitespace`.
"""
return pulumi.get(self, "operation")
@property
@pulumi.getter(name="expectedValue")
def expected_value(self) -> Optional[str]:
"""
User defined value that will be compared with alert field according to the operation. Default: empty string
"""
return pulumi.get(self, "expected_value")
@property
@pulumi.getter
def key(self) -> Optional[str]:
return pulumi.get(self, "key")
@property
@pulumi.getter(name="not")
def not_(self) -> Optional[bool]:
"""
Indicates behaviour of the given operation. Default: false
"""
return pulumi.get(self, "not_")
@pulumi.output_type
class ServiceIncidentRuleIncidentRuleIncidentProperty(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "stakeholderProperties":
suggest = "stakeholder_properties"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in ServiceIncidentRuleIncidentRuleIncidentProperty. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
ServiceIncidentRuleIncidentRuleIncidentProperty.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
ServiceIncidentRuleIncidentRuleIncidentProperty.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
message: str,
priority: str,
stakeholder_properties: Sequence['outputs.ServiceIncidentRuleIncidentRuleIncidentPropertyStakeholderProperty'],
description: Optional[str] = None,
details: Optional[Mapping[str, str]] = None,
tags: Optional[Sequence[str]] = None):
"""
:param str message: Message that is to be passed to audience that is generally used to provide a content information about the alert.
:param str priority: Priority level of the alert. Possible values are `P1`, `P2`, `P3`, `P4` and `P5`
:param Sequence['ServiceIncidentRuleIncidentRuleIncidentPropertyStakeholderPropertyArgs'] stakeholder_properties: DEtails about stakeholders for this rule. This is a block, structure is documented below.
:param str description: Description that is generally used to provide a detailed information about the alert.
:param Mapping[str, str] details: Map of key-value pairs to use as custom properties of the alert.
:param Sequence[str] tags: Tags of the alert.
"""
pulumi.set(__self__, "message", message)
pulumi.set(__self__, "priority", priority)
pulumi.set(__self__, "stakeholder_properties", stakeholder_properties)
if description is not None:
pulumi.set(__self__, "description", description)
if details is not None:
pulumi.set(__self__, "details", details)
if tags is not None:
pulumi.set(__self__, "tags", tags)
@property
@pulumi.getter
def message(self) -> str:
"""
Message that is to be passed to audience that is generally used to provide a content information about the alert.
"""
return pulumi.get(self, "message")
@property
@pulumi.getter
def priority(self) -> str:
"""
Priority level of the alert. Possible values are `P1`, `P2`, `P3`, `P4` and `P5`
"""
return pulumi.get(self, "priority")
@property
@pulumi.getter(name="stakeholderProperties")
def stakeholder_properties(self) -> Sequence['outputs.ServiceIncidentRuleIncidentRuleIncidentPropertyStakeholderProperty']:
"""
DEtails about stakeholders for this rule. This is a block, structure is documented below.
"""
return pulumi.get(self, "stakeholder_properties")
@property
@pulumi.getter
def description(self) -> Optional[str]:
"""
Description that is generally used to provide a detailed information about the alert.
"""
return pulumi.get(self, "description")
@property
@pulumi.getter
def details(self) -> Optional[Mapping[str, str]]:
"""
Map of key-value pairs to use as custom properties of the alert.
"""
return pulumi.get(self, "details")
@property
@pulumi.getter
def tags(self) -> Optional[Sequence[str]]:
"""
Tags of the alert.
"""
return pulumi.get(self, "tags")
@pulumi.output_type
class ServiceIncidentRuleIncidentRuleIncidentPropertyStakeholderProperty(dict):
def __init__(__self__, *,
message: str,
description: Optional[str] = None,
enable: Optional[bool] = None):
"""
:param str message: Message that is to be passed to audience that is generally used to provide a content information about the alert.
:param str description: Description that is generally used to provide a detailed information about the alert.
:param bool enable: Option to enable stakeholder notifications.Default value is true.
"""
pulumi.set(__self__, "message", message)
if description is not None:
pulumi.set(__self__, "description", description)
if enable is not None:
pulumi.set(__self__, "enable", enable)
@property
@pulumi.getter
def message(self) -> str:
"""
Message that is to be passed to audience that is generally used to provide a content information about the alert.
"""
return pulumi.get(self, "message")
@property
@pulumi.getter
def description(self) -> Optional[str]:
"""
Description that is generally used to provide a detailed information about the alert.
"""
return pulumi.get(self, "description")
@property
@pulumi.getter
def enable(self) -> Optional[bool]:
"""
Option to enable stakeholder notifications.Default value is true.
"""
return pulumi.get(self, "enable")
@pulumi.output_type
class TeamMember(dict):
def __init__(__self__, *,
id: str,
role: Optional[str] = None):
"""
:param str id: The UUID for the member to add to this Team.
:param str role: The role for the user within the Team - can be either `admin` or `user`. Default: `user`.
"""
pulumi.set(__self__, "id", id)
if role is not None:
pulumi.set(__self__, "role", role)
@property
@pulumi.getter
def id(self) -> str:
"""
The UUID for the member to add to this Team.
"""
return pulumi.get(self, "id")
@property
@pulumi.getter
def role(self) -> Optional[str]:
"""
The role for the user within the Team - can be either `admin` or `user`. Default: `user`.
"""
return pulumi.get(self, "role")
@pulumi.output_type
class TeamRoutingRuleCriteria(dict):
def __init__(__self__, *,
type: str,
conditions: Optional[Sequence['outputs.TeamRoutingRuleCriteriaCondition']] = None):
"""
:param str type: Type of the operation will be applied on conditions. Should be one of `match-all`, `match-any-condition` or `match-all-conditions`.
:param Sequence['TeamRoutingRuleCriteriaConditionArgs'] conditions: List of conditions will be checked before applying team routing rule. This field declaration should be omitted if the criteria type is set to match-all.
"""
pulumi.set(__self__, "type", type)
if conditions is not None:
pulumi.set(__self__, "conditions", conditions)
@property
@pulumi.getter
def type(self) -> str:
"""
Type of the operation will be applied on conditions. Should be one of `match-all`, `match-any-condition` or `match-all-conditions`.
"""
return pulumi.get(self, "type")
@property
@pulumi.getter
def conditions(self) -> Optional[Sequence['outputs.TeamRoutingRuleCriteriaCondition']]:
"""
List of conditions will be checked before applying team routing rule. This field declaration should be omitted if the criteria type is set to match-all.
"""
return pulumi.get(self, "conditions")
@pulumi.output_type
class TeamRoutingRuleCriteriaCondition(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "expectedValue":
suggest = "expected_value"
elif key == "not":
suggest = "not_"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in TeamRoutingRuleCriteriaCondition. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
TeamRoutingRuleCriteriaCondition.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
TeamRoutingRuleCriteriaCondition.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
field: str,
operation: str,
expected_value: Optional[str] = None,
key: Optional[str] = None,
not_: Optional[bool] = None,
order: Optional[int] = None):
"""
:param str field: Specifies which alert field will be used in condition. Possible values are `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `extra-properties`, `recipients`, `teams` or `priority`.
:param str operation: It is the operation that will be executed for the given field and key. Possible operations are `matches`, `contains`, `starts-with`, `ends-with`, `equals`, `contains-key`, `contains-value`, `greater-than`, `less-than`, `is-empty` and `equals-ignore-whitespace`.
:param str key: If field is set as extra-properties, key could be used for key-value pair.
:param bool not_: Indicates behaviour of the given operation. Default value is false.
:param int order: Order of the condition in conditions list.
"""
pulumi.set(__self__, "field", field)
pulumi.set(__self__, "operation", operation)
if expected_value is not None:
pulumi.set(__self__, "expected_value", expected_value)
if key is not None:
pulumi.set(__self__, "key", key)
if not_ is not None:
pulumi.set(__self__, "not_", not_)
if order is not None:
pulumi.set(__self__, "order", order)
@property
@pulumi.getter
def field(self) -> str:
"""
Specifies which alert field will be used in condition. Possible values are `message`, `alias`, `description`, `source`, `entity`, `tags`, `actions`, `extra-properties`, `recipients`, `teams` or `priority`.
"""
return pulumi.get(self, "field")
@property
@pulumi.getter
def operation(self) -> str:
"""
It is the operation that will be executed for the given field and key. Possible operations are `matches`, `contains`, `starts-with`, `ends-with`, `equals`, `contains-key`, `contains-value`, `greater-than`, `less-than`, `is-empty` and `equals-ignore-whitespace`.
"""
return pulumi.get(self, "operation")
@property
@pulumi.getter(name="expectedValue")
def expected_value(self) -> Optional[str]:
return pulumi.get(self, "expected_value")
@property
@pulumi.getter
def key(self) -> Optional[str]:
"""
If field is set as extra-properties, key could be used for key-value pair.
"""
return pulumi.get(self, "key")
@property
@pulumi.getter(name="not")
def not_(self) -> Optional[bool]:
"""
Indicates behaviour of the given operation. Default value is false.
"""
return pulumi.get(self, "not_")
@property
@pulumi.getter
def order(self) -> Optional[int]:
"""
Order of the condition in conditions list.
"""
return pulumi.get(self, "order")
@pulumi.output_type
class TeamRoutingRuleNotify(dict):
def __init__(__self__, *,
type: str,
id: Optional[str] = None,
name: Optional[str] = None):
"""
:param str id: The ID of the Opsgenie Team Routing Rule.
:param str name: Name of the team routing rule
"""
pulumi.set(__self__, "type", type)
if id is not None:
pulumi.set(__self__, "id", id)
if name is not None:
pulumi.set(__self__, "name", name)
@property
@pulumi.getter
def type(self) -> str:
return pulumi.get(self, "type")
@property
@pulumi.getter
def id(self) -> Optional[str]:
"""
The ID of the Opsgenie Team Routing Rule.
"""
return pulumi.get(self, "id")
@property
@pulumi.getter
def name(self) -> Optional[str]:
"""
Name of the team routing rule
"""
return pulumi.get(self, "name")
@pulumi.output_type
class TeamRoutingRuleTimeRestriction(dict):
def __init__(__self__, *,
type: str,
restrictions: Optional[Sequence['outputs.TeamRoutingRuleTimeRestrictionRestriction']] = None):
pulumi.set(__self__, "type", type)
if restrictions is not None:
pulumi.set(__self__, "restrictions", restrictions)
@property
@pulumi.getter
def type(self) -> str:
return pulumi.get(self, "type")
@property
@pulumi.getter
def restrictions(self) -> Optional[Sequence['outputs.TeamRoutingRuleTimeRestrictionRestriction']]:
return pulumi.get(self, "restrictions")
@pulumi.output_type
class TeamRoutingRuleTimeRestrictionRestriction(dict):
@staticmethod
def __key_warning(key: str):
suggest = None
if key == "endDay":
suggest = "end_day"
elif key == "endHour":
suggest = "end_hour"
elif key == "endMin":
suggest = "end_min"
elif key == "startDay":
suggest = "start_day"
elif key == "startHour":
suggest = "start_hour"
elif key == "startMin":
suggest = "start_min"
if suggest:
pulumi.log.warn(f"Key '{key}' not found in TeamRoutingRuleTimeRestrictionRestriction. Access the value via the '{suggest}' property getter instead.")
def __getitem__(self, key: str) -> Any:
TeamRoutingRuleTimeRestrictionRestriction.__key_warning(key)
return super().__getitem__(key)
def get(self, key: str, default = None) -> Any:
TeamRoutingRuleTimeRestrictionRestriction.__key_warning(key)
return super().get(key, default)
def __init__(__self__, *,
end_day: str,
end_hour: int,
end_min: int,
start_day: str,
start_hour: int,
start_min: int):
pulumi.set(__self__, "end_day", end_day)
pulumi.set(__self__, "end_hour", end_hour)
pulumi.set(__self__, "end_min", end_min)
pulumi.set(__self__, "start_day", start_day)
pulumi.set(__self__, "start_hour", start_hour)
pulumi.set(__self__, "start_min", start_min)
@property
@pulumi.getter(name="endDay")
def end_day(self) -> str:
return pulumi.get(self, "end_day")
@property
@pulumi.getter(name="endHour")
def end_hour(self) -> int:
return pulumi.get(self, "end_hour")
@property
@pulumi.getter(name="endMin")
def end_min(self) -> int:
return pulumi.get(self, "end_min")
@property
@pulumi.getter(name="startDay")
def start_day(self) -> str:
return pulumi.get(self, "start_day")
@property
@pulumi.getter(name="startHour")
def start_hour(self) -> int:
return pulumi.get(self, "start_hour")
@property
@pulumi.getter(name="startMin")
def start_min(self) -> int:
return pulumi.get(self, "start_min")
@pulumi.output_type
class UserUserAddress(dict):
def __init__(__self__, *,
city: str,
country: str,
line: str,
state: str,
zipcode: str):
pulumi.set(__self__, "city", city)
pulumi.set(__self__, "country", country)
pulumi.set(__self__, "line", line)
pulumi.set(__self__, "state", state)
pulumi.set(__self__, "zipcode", zipcode)
@property
@pulumi.getter
def city(self) -> str:
return pulumi.get(self, "city")
@property
@pulumi.getter
def country(self) -> str:
return pulumi.get(self, "country")
@property
@pulumi.getter
def line(self) -> str:
return pulumi.get(self, "line")
@property
@pulumi.getter
def state(self) -> str:
return pulumi.get(self, "state")
@property
@pulumi.getter
def zipcode(self) -> str:
return pulumi.get(self, "zipcode")
@pulumi.output_type
class GetEscalationRepeatResult(dict):
def __init__(__self__, *,
close_alert_after_all: Optional[bool] = None,
count: Optional[int] = None,
reset_recipient_states: Optional[bool] = None,
wait_interval: Optional[int] = None):
if close_alert_after_all is not None:
pulumi.set(__self__, "close_alert_after_all", close_alert_after_all)
if count is not None:
pulumi.set(__self__, "count", count)
if reset_recipient_states is not None:
pulumi.set(__self__, "reset_recipient_states", reset_recipient_states)
if wait_interval is not None:
pulumi.set(__self__, "wait_interval", wait_interval)
@property
@pulumi.getter(name="closeAlertAfterAll")
def close_alert_after_all(self) -> Optional[bool]:
return pulumi.get(self, "close_alert_after_all")
@property
@pulumi.getter
def count(self) -> Optional[int]:
return pulumi.get(self, "count")
@property
@pulumi.getter(name="resetRecipientStates")
def reset_recipient_states(self) -> Optional[bool]:
return pulumi.get(self, "reset_recipient_states")
@property
@pulumi.getter(name="waitInterval")
def wait_interval(self) -> Optional[int]:
return pulumi.get(self, "wait_interval")
@pulumi.output_type
class GetEscalationRuleResult(dict):
def __init__(__self__, *,
condition: str,
delay: int,
notify_type: str,
recipients: Sequence['outputs.GetEscalationRuleRecipientResult']):
pulumi.set(__self__, "condition", condition)
pulumi.set(__self__, "delay", delay)
pulumi.set(__self__, "notify_type", notify_type)
pulumi.set(__self__, "recipients", recipients)
@property
@pulumi.getter
def condition(self) -> str:
return pulumi.get(self, "condition")
@property
@pulumi.getter
def delay(self) -> int:
return pulumi.get(self, "delay")
@property
@pulumi.getter(name="notifyType")
def notify_type(self) -> str:
return pulumi.get(self, "notify_type")
@property
@pulumi.getter
def recipients(self) -> Sequence['outputs.GetEscalationRuleRecipientResult']:
return pulumi.get(self, "recipients")
@pulumi.output_type
class GetEscalationRuleRecipientResult(dict):
def __init__(__self__, *,
id: Optional[str] = None,
type: Optional[str] = None):
"""
:param str id: The ID of the Opsgenie Escalation.
"""
if id is not None:
pulumi.set(__self__, "id", id)
if type is not None:
pulumi.set(__self__, "type", type)
@property
@pulumi.getter
def id(self) -> Optional[str]:
"""
The ID of the Opsgenie Escalation.
"""
return pulumi.get(self, "id")
@property
@pulumi.getter
def type(self) -> Optional[str]:
return pulumi.get(self, "type")
@pulumi.output_type
class GetTeamMemberResult(dict):
def __init__(__self__, *,
id: Optional[str] = None,
role: Optional[str] = None):
"""
:param str id: The ID of the Opsgenie Team.
"""
if id is not None:
pulumi.set(__self__, "id", id)
if role is not None:
pulumi.set(__self__, "role", role)
@property
@pulumi.getter
def id(self) -> Optional[str]:
"""
The ID of the Opsgenie Team.
"""
return pulumi.get(self, "id")
@property
@pulumi.getter
def role(self) -> Optional[str]:
return pulumi.get(self, "role")
| 37.327852
| 291
| 0.620643
| 15,925
| 145,280
| 5.474662
| 0.032402
| 0.023204
| 0.038619
| 0.056444
| 0.839592
| 0.82132
| 0.804161
| 0.77185
| 0.760105
| 0.735078
| 0
| 0.001531
| 0.267036
| 145,280
| 3,891
| 292
| 37.337445
| 0.817214
| 0.276122
| 0
| 0.805892
| 1
| 0.012107
| 0.155938
| 0.069909
| 0
| 0
| 0
| 0
| 0
| 1
| 0.168281
| false
| 0
| 0.002421
| 0.029863
| 0.326877
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
0d686dc9ef7836d9dcd1a98c972cedbc4f4e6b66
| 161
|
py
|
Python
|
command_handler/stats.py
|
felippemr/simple_kv
|
3be53ce328d5749ffa0a3c2ccb2f2be60201e6cf
|
[
"BSD-3-Clause"
] | 16
|
2015-12-04T18:36:16.000Z
|
2022-03-29T21:52:31.000Z
|
command_handler/stats.py
|
felippemr/simple_kv
|
3be53ce328d5749ffa0a3c2ccb2f2be60201e6cf
|
[
"BSD-3-Clause"
] | null | null | null |
command_handler/stats.py
|
felippemr/simple_kv
|
3be53ce328d5749ffa0a3c2ccb2f2be60201e6cf
|
[
"BSD-3-Clause"
] | null | null | null |
from settings import STATS_DICT
def handle_stats():
"""Return a tuple containing True and the contents of the STATS dict."""
return (True, STATS_DICT)
| 23
| 76
| 0.726708
| 24
| 161
| 4.75
| 0.666667
| 0.236842
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.192547
| 161
| 6
| 77
| 26.833333
| 0.876923
| 0.409938
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
0d82b90cc315f19b41cd80b23354708ab0229874
| 6,240
|
py
|
Python
|
perms.py
|
dudkin-2005/PilotTelegramBot
|
3f92599de011aa63dc739712972637b781b5c4ae
|
[
"Apache-2.0"
] | null | null | null |
perms.py
|
dudkin-2005/PilotTelegramBot
|
3f92599de011aa63dc739712972637b781b5c4ae
|
[
"Apache-2.0"
] | null | null | null |
perms.py
|
dudkin-2005/PilotTelegramBot
|
3f92599de011aa63dc739712972637b781b5c4ae
|
[
"Apache-2.0"
] | null | null | null |
import telebot
bot = telebot.TeleBot('1073948237:AAGKs3HzRBZwBZGkoQ5moJIakWQn39nQtX4')
def restrict(message):
try:
member = bot.get_chat_member(chat_id=message.chat.id,
user_id=message.from_user.id)
if member.status == 'creator' or member.status == 'administrator':
bot.restrict_chat_member(chat_id=message.chat.id,
user_id=message.reply_to_message.from_user.id,
until_date=0)
bot.send_message(chat_id=message.chat.id,
text='Пользователь @' + str(message.reply_to_message.from_user.username) +
' был лишен прав')
else:
bot.reply_to(message, 'Для этого нужны админские права')
except Exception:
bot.reply_to(message, 'Упс... Что-то пошло не так')
def permit(message):
try:
member = bot.get_chat_member(chat_id=message.chat.id,
user_id=message.from_user.id)
if member.status == 'creator' or member.status == 'administrator':
bot.restrict_chat_member(chat_id=message.chat.id,
user_id=message.reply_to_message.from_user.id,
can_send_messages=True,
can_send_media_messages=True,
can_send_polls=True,
can_send_other_messages=True,
can_add_web_page_previews=True,
can_change_info=True,
can_invite_users=True,
can_pin_messages=True,
until_date=0)
bot.send_message(chat_id=message.chat.id,
text='Пользователю @' + str(message.reply_to_message.from_user.username) +
' были выданы полные пользовательские права (не путать с админкой)')
else:
bot.reply_to(message, 'Для этого нужны админские права')
except Exception:
bot.reply_to(message, 'Упс... Что-то пошло не так')
def permit_default(message):
try:
member = bot.get_chat_member(chat_id=message.chat.id,
user_id=message.from_user.id)
if member.status == 'creator' or member.status == 'administrator':
chat = bot.get_chat(chat_id=message.chat.id)
perms = chat.permissions
bot.restrict_chat_member(chat_id=message.chat.id,
user_id=message.reply_to_message.from_user.id,
can_send_messages=perms.can_send_messages,
can_send_media_messages=perms.can_send_media_messages,
can_send_polls=perms.can_send_polls,
can_send_other_messages=perms.can_send_other_messages,
can_add_web_page_previews=perms.can_add_web_page_previews,
can_change_info=perms.can_change_info,
can_invite_users=perms.can_invite_users,
can_pin_messages=perms.can_pin_messages,
until_date=0)
bot.send_message(chat_id=message.chat.id,
text='Пользователю @' + str(message.reply_to_message.from_user.username) +
' были выданы дефолтные права')
else:
bot.reply_to(message, 'Для этого нужны админские права')
except Exception:
bot.reply_to(message, 'Упс... Что-то пошло не так')
# Убрать все права
def demote(message):
try:
member = bot.get_chat_member(chat_id=message.chat.id,
user_id=message.from_user.id)
if member.status == 'creator' or member.status == 'administrator':
bot.promote_chat_member(chat_id=message.chat.id,
user_id=message.reply_to_message.from_user.id,
can_pin_messages=True,
can_change_info=True,
can_invite_users=True,
can_delete_messages=True,
can_promote_members=True,
can_restrict_members=True
)
bot.send_message(chat_id=message.chat.id,
text='Пользователь @' + str(message.reply_to_message.from_user.username) +
' был лишен всех админских прав')
else:
bot.reply_to(message, 'Для этого нужны админские права')
except Exception:
bot.reply_to(message, 'Упс... Что-то пошло не так')
# Дать все права
def promote(message):
try:
member = bot.get_chat_member(chat_id=message.chat.id,
user_id=message.from_user.id)
if member.status == 'creator' or member.status == 'administrator':
bot.promote_chat_member(chat_id=message.chat.id,
user_id=message.reply_to_message.from_user.id,
can_pin_messages=True,
can_change_info=True,
can_invite_users=True,
can_delete_messages=True,
can_promote_members=True,
can_restrict_members=True
)
bot.send_message(chat_id=message.chat.id,
text='Пользователю @' + str(message.reply_to_message.from_user.username) +
' были выданы полные админские права')
else:
bot.reply_to(message, 'Для этого нужны админские права')
except Exception:
bot.reply_to(message, 'Упс... Что-то пошло не так')
| 48.75
| 103
| 0.511218
| 639
| 6,240
| 4.70266
| 0.131455
| 0.063894
| 0.090849
| 0.090516
| 0.81198
| 0.784692
| 0.784692
| 0.784692
| 0.784692
| 0.784692
| 0
| 0.004925
| 0.414263
| 6,240
| 127
| 104
| 49.133858
| 0.817237
| 0.004968
| 0
| 0.728972
| 0
| 0
| 0.108605
| 0.007412
| 0
| 0
| 0
| 0
| 0
| 1
| 0.046729
| false
| 0
| 0.009346
| 0
| 0.056075
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0d883a2bfdddbed4a07d5a8b567441b596d8ba08
| 3,658
|
py
|
Python
|
DQM/TrackingMonitorSource/python/pset4GenericTriggerEventFlag_cfi.py
|
PKUfudawei/cmssw
|
8fbb5ce74398269c8a32956d7c7943766770c093
|
[
"Apache-2.0"
] | 1
|
2021-11-30T16:24:46.000Z
|
2021-11-30T16:24:46.000Z
|
DQM/TrackingMonitorSource/python/pset4GenericTriggerEventFlag_cfi.py
|
PKUfudawei/cmssw
|
8fbb5ce74398269c8a32956d7c7943766770c093
|
[
"Apache-2.0"
] | 4
|
2021-11-29T13:57:56.000Z
|
2022-03-29T06:28:36.000Z
|
DQM/TrackingMonitorSource/python/pset4GenericTriggerEventFlag_cfi.py
|
PKUfudawei/cmssw
|
8fbb5ce74398269c8a32956d7c7943766770c093
|
[
"Apache-2.0"
] | 1
|
2021-11-23T09:25:45.000Z
|
2021-11-23T09:25:45.000Z
|
import FWCore.ParameterSet.Config as cms
genericTriggerEventFlag4fullTracker = cms.PSet(
andOr = cms.bool( False ),
dcsInputTag = cms.InputTag( "scalersRawToDigi" ),
dcsRecordInputTag = cms.InputTag("onlineMetaDataDigis"),
dcsPartitions = cms.vint32 ( 24, 25, 26, 27, 28, 29 ),
andOrDcs = cms.bool( False ),
errorReplyDcs = cms.bool( True ),
)
genericTriggerEventFlag4onlyStrip = cms.PSet(
andOr = cms.bool( False ),
dcsInputTag = cms.InputTag( "scalersRawToDigi" ),
dcsRecordInputTag = cms.InputTag("onlineMetaDataDigis"),
dcsPartitions = cms.vint32 ( 24, 25, 26, 27 ),
andOrDcs = cms.bool( False ),
errorReplyDcs = cms.bool( True ),
)
genericTriggerEventFlag4fullTrackerAndHLTdb = cms.PSet(
andOr = cms.bool( False ),
dcsInputTag = cms.InputTag( "scalersRawToDigi" ),
dcsRecordInputTag = cms.InputTag("onlineMetaDataDigis"),
dcsPartitions = cms.vint32 ( 24, 25, 26, 27, 28, 29 ),
andOrDcs = cms.bool( False ),
errorReplyDcs = cms.bool( True ),
dbLabel = cms.string("SiStripDQMTrigger"), #("TrackerDQMTrigger"),
andOrHlt = cms.bool(True),# True:=OR; False:=AND
hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
hltPaths = cms.vstring(""), # HLT_ZeroBias_v*
hltDBKey = cms.string("Tracking_HLT"),
errorReplyHlt = cms.bool( False ),
verbosityLevel = cms.uint32(1)
)
genericTriggerEventFlag4fullTrackerAndHLTnoHIPnoOOTdb = cms.PSet(
andOr = cms.bool( False ),
dcsInputTag = cms.InputTag( "scalersRawToDigi" ),
dcsRecordInputTag = cms.InputTag("onlineMetaDataDigis"),
dcsPartitions = cms.vint32 ( 24, 25, 26, 27, 28, 29 ),
andOrDcs = cms.bool( False ),
errorReplyDcs = cms.bool( True ),
dbLabel = cms.string("SiStripDQMTrigger"), #("TrackerDQMTrigger"),
andOrHlt = cms.bool(True),# True:=OR; False:=AND
hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
hltPaths = cms.vstring(""), # HLT_ZeroBias_FirstCollisionAfterAbortGap_*
hltDBKey = cms.string("Tracking_HLT_noHIP_noOOT"),
errorReplyHlt = cms.bool( False ),
verbosityLevel = cms.uint32(1)
)
genericTriggerEventFlag4fullTrackerAndHLTHIPnoOOTdb = cms.PSet(
andOr = cms.bool( False ),
dcsInputTag = cms.InputTag( "scalersRawToDigi" ),
dcsRecordInputTag = cms.InputTag("onlineMetaDataDigis"),
dcsPartitions = cms.vint32 ( 24, 25, 26, 27, 28, 29 ),
andOrDcs = cms.bool( False ),
errorReplyDcs = cms.bool( True ),
dbLabel = cms.string("SiStripDQMTrigger"), #("TrackerDQMTrigger"),
andOrHlt = cms.bool(True),# True:=OR; False:=AND
hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
hltPaths = cms.vstring(""), # HLT_ZeroBias_FirstCollisionInTrain_*
hltDBKey = cms.string("Tracking_HLT_HIP_noOOT"),
errorReplyHlt = cms.bool( False ),
verbosityLevel = cms.uint32(1)
)
genericTriggerEventFlag4fullTrackerAndHLTHIPOOTdb = cms.PSet(
andOr = cms.bool( False ),
dcsInputTag = cms.InputTag( "scalersRawToDigi" ),
dcsRecordInputTag = cms.InputTag("onlineMetaDataDigis"),
dcsPartitions = cms.vint32 ( 24, 25, 26, 27, 28, 29 ),
andOrDcs = cms.bool( False ),
errorReplyDcs = cms.bool( True ),
dbLabel = cms.string("SiStripDQMTrigger"), #("TrackerDQMTrigger"),
andOrHlt = cms.bool(True),# True:=OR; False:=AND
hltInputTag = cms.InputTag( "TriggerResults::HLT" ),
hltPaths = cms.vstring(""), # HLT_ZeroBias_FirstBXAfterTrain_*
hltDBKey = cms.string("Tracking_HLT_HIP_OOT"),
errorReplyHlt = cms.bool( False ),
verbosityLevel = cms.uint32(1)
)
| 44.609756
| 80
| 0.667031
| 350
| 3,658
| 6.911429
| 0.168571
| 0.075238
| 0.079372
| 0.037205
| 0.845804
| 0.822654
| 0.797024
| 0.797024
| 0.738322
| 0.693675
| 0
| 0.033447
| 0.199016
| 3,658
| 81
| 81
| 45.160494
| 0.79215
| 0.082285
| 0
| 0.766234
| 0
| 0
| 0.129148
| 0.013752
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.012987
| 0
| 0.012987
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0dab71e44d19e1a5e77798e515a3353c6d5c4b65
| 25,479
|
py
|
Python
|
sdk/python/pulumi_sumologic/scheduled_view.py
|
pulumi/pulumi-sumologic
|
962fa056ee4b96e61a200e7bf2308bfad723c3af
|
[
"ECL-2.0",
"Apache-2.0"
] | 1
|
2021-10-13T03:50:41.000Z
|
2021-10-13T03:50:41.000Z
|
sdk/python/pulumi_sumologic/scheduled_view.py
|
pulumi/pulumi-sumologic
|
962fa056ee4b96e61a200e7bf2308bfad723c3af
|
[
"ECL-2.0",
"Apache-2.0"
] | 28
|
2021-05-21T11:00:45.000Z
|
2022-03-31T15:47:13.000Z
|
sdk/python/pulumi_sumologic/scheduled_view.py
|
pulumi/pulumi-sumologic
|
962fa056ee4b96e61a200e7bf2308bfad723c3af
|
[
"ECL-2.0",
"Apache-2.0"
] | null | null | null |
# coding=utf-8
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
# *** Do not edit by hand unless you're certain you know what you are doing! ***
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
__all__ = ['ScheduledViewArgs', 'ScheduledView']
@pulumi.input_type
class ScheduledViewArgs:
def __init__(__self__, *,
index_name: pulumi.Input[str],
query: pulumi.Input[str],
start_time: pulumi.Input[str],
data_forwarding_id: Optional[pulumi.Input[str]] = None,
parsing_mode: Optional[pulumi.Input[str]] = None,
reduce_retention_period_immediately: Optional[pulumi.Input[bool]] = None,
retention_period: Optional[pulumi.Input[int]] = None):
"""
The set of arguments for constructing a ScheduledView resource.
:param pulumi.Input[str] index_name: Name of the index (scheduled view).
:param pulumi.Input[str] query: Log query defining the scheduled view.
:param pulumi.Input[str] start_time: Start timestamp in UTC in RFC3339 format.
:param pulumi.Input[str] data_forwarding_id: An optional ID of a data forwarding configuration to be used by the scheduled view.
:param pulumi.Input[str] parsing_mode: Default to `Manual`. Define the parsing mode to scan the JSON format log messages. Possible values are: `AutoParse` - In AutoParse mode, the system automatically figures out fields to parse based on the search query. `Manual` - While in the Manual mode, no fields are parsed out automatically. For more information see Dynamic Parsing.
:param pulumi.Input[bool] reduce_retention_period_immediately: This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
:param pulumi.Input[int] retention_period: The number of days to retain data in the scheduled view, or -1 to use the default value for your account. Only relevant if your account has multi-retention. enabled.
"""
pulumi.set(__self__, "index_name", index_name)
pulumi.set(__self__, "query", query)
pulumi.set(__self__, "start_time", start_time)
if data_forwarding_id is not None:
pulumi.set(__self__, "data_forwarding_id", data_forwarding_id)
if parsing_mode is not None:
pulumi.set(__self__, "parsing_mode", parsing_mode)
if reduce_retention_period_immediately is not None:
pulumi.set(__self__, "reduce_retention_period_immediately", reduce_retention_period_immediately)
if retention_period is not None:
pulumi.set(__self__, "retention_period", retention_period)
@property
@pulumi.getter(name="indexName")
def index_name(self) -> pulumi.Input[str]:
"""
Name of the index (scheduled view).
"""
return pulumi.get(self, "index_name")
@index_name.setter
def index_name(self, value: pulumi.Input[str]):
pulumi.set(self, "index_name", value)
@property
@pulumi.getter
def query(self) -> pulumi.Input[str]:
"""
Log query defining the scheduled view.
"""
return pulumi.get(self, "query")
@query.setter
def query(self, value: pulumi.Input[str]):
pulumi.set(self, "query", value)
@property
@pulumi.getter(name="startTime")
def start_time(self) -> pulumi.Input[str]:
"""
Start timestamp in UTC in RFC3339 format.
"""
return pulumi.get(self, "start_time")
@start_time.setter
def start_time(self, value: pulumi.Input[str]):
pulumi.set(self, "start_time", value)
@property
@pulumi.getter(name="dataForwardingId")
def data_forwarding_id(self) -> Optional[pulumi.Input[str]]:
"""
An optional ID of a data forwarding configuration to be used by the scheduled view.
"""
return pulumi.get(self, "data_forwarding_id")
@data_forwarding_id.setter
def data_forwarding_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "data_forwarding_id", value)
@property
@pulumi.getter(name="parsingMode")
def parsing_mode(self) -> Optional[pulumi.Input[str]]:
"""
Default to `Manual`. Define the parsing mode to scan the JSON format log messages. Possible values are: `AutoParse` - In AutoParse mode, the system automatically figures out fields to parse based on the search query. `Manual` - While in the Manual mode, no fields are parsed out automatically. For more information see Dynamic Parsing.
"""
return pulumi.get(self, "parsing_mode")
@parsing_mode.setter
def parsing_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "parsing_mode", value)
@property
@pulumi.getter(name="reduceRetentionPeriodImmediately")
def reduce_retention_period_immediately(self) -> Optional[pulumi.Input[bool]]:
"""
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
"""
return pulumi.get(self, "reduce_retention_period_immediately")
@reduce_retention_period_immediately.setter
def reduce_retention_period_immediately(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "reduce_retention_period_immediately", value)
@property
@pulumi.getter(name="retentionPeriod")
def retention_period(self) -> Optional[pulumi.Input[int]]:
"""
The number of days to retain data in the scheduled view, or -1 to use the default value for your account. Only relevant if your account has multi-retention. enabled.
"""
return pulumi.get(self, "retention_period")
@retention_period.setter
def retention_period(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "retention_period", value)
@pulumi.input_type
class _ScheduledViewState:
def __init__(__self__, *,
data_forwarding_id: Optional[pulumi.Input[str]] = None,
index_name: Optional[pulumi.Input[str]] = None,
parsing_mode: Optional[pulumi.Input[str]] = None,
query: Optional[pulumi.Input[str]] = None,
reduce_retention_period_immediately: Optional[pulumi.Input[bool]] = None,
retention_period: Optional[pulumi.Input[int]] = None,
start_time: Optional[pulumi.Input[str]] = None):
"""
Input properties used for looking up and filtering ScheduledView resources.
:param pulumi.Input[str] data_forwarding_id: An optional ID of a data forwarding configuration to be used by the scheduled view.
:param pulumi.Input[str] index_name: Name of the index (scheduled view).
:param pulumi.Input[str] parsing_mode: Default to `Manual`. Define the parsing mode to scan the JSON format log messages. Possible values are: `AutoParse` - In AutoParse mode, the system automatically figures out fields to parse based on the search query. `Manual` - While in the Manual mode, no fields are parsed out automatically. For more information see Dynamic Parsing.
:param pulumi.Input[str] query: Log query defining the scheduled view.
:param pulumi.Input[bool] reduce_retention_period_immediately: This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
:param pulumi.Input[int] retention_period: The number of days to retain data in the scheduled view, or -1 to use the default value for your account. Only relevant if your account has multi-retention. enabled.
:param pulumi.Input[str] start_time: Start timestamp in UTC in RFC3339 format.
"""
if data_forwarding_id is not None:
pulumi.set(__self__, "data_forwarding_id", data_forwarding_id)
if index_name is not None:
pulumi.set(__self__, "index_name", index_name)
if parsing_mode is not None:
pulumi.set(__self__, "parsing_mode", parsing_mode)
if query is not None:
pulumi.set(__self__, "query", query)
if reduce_retention_period_immediately is not None:
pulumi.set(__self__, "reduce_retention_period_immediately", reduce_retention_period_immediately)
if retention_period is not None:
pulumi.set(__self__, "retention_period", retention_period)
if start_time is not None:
pulumi.set(__self__, "start_time", start_time)
@property
@pulumi.getter(name="dataForwardingId")
def data_forwarding_id(self) -> Optional[pulumi.Input[str]]:
"""
An optional ID of a data forwarding configuration to be used by the scheduled view.
"""
return pulumi.get(self, "data_forwarding_id")
@data_forwarding_id.setter
def data_forwarding_id(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "data_forwarding_id", value)
@property
@pulumi.getter(name="indexName")
def index_name(self) -> Optional[pulumi.Input[str]]:
"""
Name of the index (scheduled view).
"""
return pulumi.get(self, "index_name")
@index_name.setter
def index_name(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "index_name", value)
@property
@pulumi.getter(name="parsingMode")
def parsing_mode(self) -> Optional[pulumi.Input[str]]:
"""
Default to `Manual`. Define the parsing mode to scan the JSON format log messages. Possible values are: `AutoParse` - In AutoParse mode, the system automatically figures out fields to parse based on the search query. `Manual` - While in the Manual mode, no fields are parsed out automatically. For more information see Dynamic Parsing.
"""
return pulumi.get(self, "parsing_mode")
@parsing_mode.setter
def parsing_mode(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "parsing_mode", value)
@property
@pulumi.getter
def query(self) -> Optional[pulumi.Input[str]]:
"""
Log query defining the scheduled view.
"""
return pulumi.get(self, "query")
@query.setter
def query(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "query", value)
@property
@pulumi.getter(name="reduceRetentionPeriodImmediately")
def reduce_retention_period_immediately(self) -> Optional[pulumi.Input[bool]]:
"""
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
"""
return pulumi.get(self, "reduce_retention_period_immediately")
@reduce_retention_period_immediately.setter
def reduce_retention_period_immediately(self, value: Optional[pulumi.Input[bool]]):
pulumi.set(self, "reduce_retention_period_immediately", value)
@property
@pulumi.getter(name="retentionPeriod")
def retention_period(self) -> Optional[pulumi.Input[int]]:
"""
The number of days to retain data in the scheduled view, or -1 to use the default value for your account. Only relevant if your account has multi-retention. enabled.
"""
return pulumi.get(self, "retention_period")
@retention_period.setter
def retention_period(self, value: Optional[pulumi.Input[int]]):
pulumi.set(self, "retention_period", value)
@property
@pulumi.getter(name="startTime")
def start_time(self) -> Optional[pulumi.Input[str]]:
"""
Start timestamp in UTC in RFC3339 format.
"""
return pulumi.get(self, "start_time")
@start_time.setter
def start_time(self, value: Optional[pulumi.Input[str]]):
pulumi.set(self, "start_time", value)
class ScheduledView(pulumi.CustomResource):
@overload
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
data_forwarding_id: Optional[pulumi.Input[str]] = None,
index_name: Optional[pulumi.Input[str]] = None,
parsing_mode: Optional[pulumi.Input[str]] = None,
query: Optional[pulumi.Input[str]] = None,
reduce_retention_period_immediately: Optional[pulumi.Input[bool]] = None,
retention_period: Optional[pulumi.Input[int]] = None,
start_time: Optional[pulumi.Input[str]] = None,
__props__=None):
"""
Provides a [Sumologic Scheduled View](https://help.sumologic.com/Manage/Scheduled-Views).
## Import
Scheduled Views can can be imported using the id. The list of scheduled views and their ids can be obtained using the Sumologic [scheduled views api][2]. hcl
```sh
$ pulumi import sumologic:index/scheduledView:ScheduledView failed_connections 1234567890
```
[1]https://help.sumologic.com/Manage/Scheduled-Views [2]https://api.sumologic.com/docs/#operation/listScheduledViews
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] data_forwarding_id: An optional ID of a data forwarding configuration to be used by the scheduled view.
:param pulumi.Input[str] index_name: Name of the index (scheduled view).
:param pulumi.Input[str] parsing_mode: Default to `Manual`. Define the parsing mode to scan the JSON format log messages. Possible values are: `AutoParse` - In AutoParse mode, the system automatically figures out fields to parse based on the search query. `Manual` - While in the Manual mode, no fields are parsed out automatically. For more information see Dynamic Parsing.
:param pulumi.Input[str] query: Log query defining the scheduled view.
:param pulumi.Input[bool] reduce_retention_period_immediately: This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
:param pulumi.Input[int] retention_period: The number of days to retain data in the scheduled view, or -1 to use the default value for your account. Only relevant if your account has multi-retention. enabled.
:param pulumi.Input[str] start_time: Start timestamp in UTC in RFC3339 format.
"""
...
@overload
def __init__(__self__,
resource_name: str,
args: ScheduledViewArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Provides a [Sumologic Scheduled View](https://help.sumologic.com/Manage/Scheduled-Views).
## Import
Scheduled Views can can be imported using the id. The list of scheduled views and their ids can be obtained using the Sumologic [scheduled views api][2]. hcl
```sh
$ pulumi import sumologic:index/scheduledView:ScheduledView failed_connections 1234567890
```
[1]https://help.sumologic.com/Manage/Scheduled-Views [2]https://api.sumologic.com/docs/#operation/listScheduledViews
:param str resource_name: The name of the resource.
:param ScheduledViewArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
"""
...
def __init__(__self__, resource_name: str, *args, **kwargs):
resource_args, opts = _utilities.get_resource_args_opts(ScheduledViewArgs, pulumi.ResourceOptions, *args, **kwargs)
if resource_args is not None:
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
else:
__self__._internal_init(resource_name, *args, **kwargs)
def _internal_init(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOptions] = None,
data_forwarding_id: Optional[pulumi.Input[str]] = None,
index_name: Optional[pulumi.Input[str]] = None,
parsing_mode: Optional[pulumi.Input[str]] = None,
query: Optional[pulumi.Input[str]] = None,
reduce_retention_period_immediately: Optional[pulumi.Input[bool]] = None,
retention_period: Optional[pulumi.Input[int]] = None,
start_time: Optional[pulumi.Input[str]] = None,
__props__=None):
if opts is None:
opts = pulumi.ResourceOptions()
if not isinstance(opts, pulumi.ResourceOptions):
raise TypeError('Expected resource options to be a ResourceOptions instance')
if opts.version is None:
opts.version = _utilities.get_version()
if opts.id is None:
if __props__ is not None:
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
__props__ = ScheduledViewArgs.__new__(ScheduledViewArgs)
__props__.__dict__["data_forwarding_id"] = data_forwarding_id
if index_name is None and not opts.urn:
raise TypeError("Missing required property 'index_name'")
__props__.__dict__["index_name"] = index_name
__props__.__dict__["parsing_mode"] = parsing_mode
if query is None and not opts.urn:
raise TypeError("Missing required property 'query'")
__props__.__dict__["query"] = query
__props__.__dict__["reduce_retention_period_immediately"] = reduce_retention_period_immediately
__props__.__dict__["retention_period"] = retention_period
if start_time is None and not opts.urn:
raise TypeError("Missing required property 'start_time'")
__props__.__dict__["start_time"] = start_time
super(ScheduledView, __self__).__init__(
'sumologic:index/scheduledView:ScheduledView',
resource_name,
__props__,
opts)
@staticmethod
def get(resource_name: str,
id: pulumi.Input[str],
opts: Optional[pulumi.ResourceOptions] = None,
data_forwarding_id: Optional[pulumi.Input[str]] = None,
index_name: Optional[pulumi.Input[str]] = None,
parsing_mode: Optional[pulumi.Input[str]] = None,
query: Optional[pulumi.Input[str]] = None,
reduce_retention_period_immediately: Optional[pulumi.Input[bool]] = None,
retention_period: Optional[pulumi.Input[int]] = None,
start_time: Optional[pulumi.Input[str]] = None) -> 'ScheduledView':
"""
Get an existing ScheduledView resource's state with the given name, id, and optional extra
properties used to qualify the lookup.
:param str resource_name: The unique name of the resulting resource.
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] data_forwarding_id: An optional ID of a data forwarding configuration to be used by the scheduled view.
:param pulumi.Input[str] index_name: Name of the index (scheduled view).
:param pulumi.Input[str] parsing_mode: Default to `Manual`. Define the parsing mode to scan the JSON format log messages. Possible values are: `AutoParse` - In AutoParse mode, the system automatically figures out fields to parse based on the search query. `Manual` - While in the Manual mode, no fields are parsed out automatically. For more information see Dynamic Parsing.
:param pulumi.Input[str] query: Log query defining the scheduled view.
:param pulumi.Input[bool] reduce_retention_period_immediately: This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
:param pulumi.Input[int] retention_period: The number of days to retain data in the scheduled view, or -1 to use the default value for your account. Only relevant if your account has multi-retention. enabled.
:param pulumi.Input[str] start_time: Start timestamp in UTC in RFC3339 format.
"""
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
__props__ = _ScheduledViewState.__new__(_ScheduledViewState)
__props__.__dict__["data_forwarding_id"] = data_forwarding_id
__props__.__dict__["index_name"] = index_name
__props__.__dict__["parsing_mode"] = parsing_mode
__props__.__dict__["query"] = query
__props__.__dict__["reduce_retention_period_immediately"] = reduce_retention_period_immediately
__props__.__dict__["retention_period"] = retention_period
__props__.__dict__["start_time"] = start_time
return ScheduledView(resource_name, opts=opts, __props__=__props__)
@property
@pulumi.getter(name="dataForwardingId")
def data_forwarding_id(self) -> pulumi.Output[Optional[str]]:
"""
An optional ID of a data forwarding configuration to be used by the scheduled view.
"""
return pulumi.get(self, "data_forwarding_id")
@property
@pulumi.getter(name="indexName")
def index_name(self) -> pulumi.Output[str]:
"""
Name of the index (scheduled view).
"""
return pulumi.get(self, "index_name")
@property
@pulumi.getter(name="parsingMode")
def parsing_mode(self) -> pulumi.Output[Optional[str]]:
"""
Default to `Manual`. Define the parsing mode to scan the JSON format log messages. Possible values are: `AutoParse` - In AutoParse mode, the system automatically figures out fields to parse based on the search query. `Manual` - While in the Manual mode, no fields are parsed out automatically. For more information see Dynamic Parsing.
"""
return pulumi.get(self, "parsing_mode")
@property
@pulumi.getter
def query(self) -> pulumi.Output[str]:
"""
Log query defining the scheduled view.
"""
return pulumi.get(self, "query")
@property
@pulumi.getter(name="reduceRetentionPeriodImmediately")
def reduce_retention_period_immediately(self) -> pulumi.Output[Optional[bool]]:
"""
This is required on update if the newly specified retention period is less than the existing retention period. In such a situation, a value of true says that data between the existing retention period and the new retention period should be deleted immediately; if false, such data will be deleted after seven days. This property is optional and ignored if the specified retentionPeriod is greater than or equal to the current retention period.
"""
return pulumi.get(self, "reduce_retention_period_immediately")
@property
@pulumi.getter(name="retentionPeriod")
def retention_period(self) -> pulumi.Output[Optional[int]]:
"""
The number of days to retain data in the scheduled view, or -1 to use the default value for your account. Only relevant if your account has multi-retention. enabled.
"""
return pulumi.get(self, "retention_period")
@property
@pulumi.getter(name="startTime")
def start_time(self) -> pulumi.Output[str]:
"""
Start timestamp in UTC in RFC3339 format.
"""
return pulumi.get(self, "start_time")
| 56.245033
| 514
| 0.692296
| 3,251
| 25,479
| 5.242387
| 0.071363
| 0.085372
| 0.055037
| 0.046471
| 0.89949
| 0.883823
| 0.877838
| 0.861468
| 0.853195
| 0.838819
| 0
| 0.003136
| 0.224028
| 25,479
| 452
| 515
| 56.369469
| 0.858884
| 0.437851
| 0
| 0.722433
| 1
| 0
| 0.118689
| 0.034061
| 0
| 0
| 0
| 0
| 0
| 1
| 0.159696
| false
| 0.003802
| 0.019011
| 0
| 0.273764
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
0de1f940fc4bc7f5faadcf0b88c3569a16720129
| 44,776
|
py
|
Python
|
rlkit/launchers/rl_exp_launcher_util_old.py
|
Asap7772/railrl_evalsawyer
|
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
|
[
"MIT"
] | 1
|
2020-10-23T14:40:09.000Z
|
2020-10-23T14:40:09.000Z
|
rlkit/launchers/rl_exp_launcher_util_old.py
|
Asap7772/railrl_evalsawyer
|
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
|
[
"MIT"
] | null | null | null |
rlkit/launchers/rl_exp_launcher_util_old.py
|
Asap7772/railrl_evalsawyer
|
baba8ce634d32a48c7dfe4dc03b123e18e96e0a3
|
[
"MIT"
] | 1
|
2021-05-27T20:38:45.000Z
|
2021-05-27T20:38:45.000Z
|
from rlkit.samplers.data_collector import VAEWrappedEnvPathCollector
from rlkit.visualization.video import VideoSaveFunction
from rlkit.torch.her.her import HERTrainer
from rlkit.torch.sac.policies import MakeDeterministic
from rlkit.torch.sac.sac import SACTrainer
from rlkit.torch.vae.online_vae_algorithm import OnlineVaeAlgorithm
from rlkit.launchers.rl_exp_launcher_util import (
preprocess_rl_variant,
get_envs,
get_exploration_strategy,
get_presampled_goals_path,
get_video_save_func,
)
def td3_experiment_online_vae(variant):
import rlkit.torch.pytorch_util as ptu
from rlkit.data_management.online_vae_replay_buffer import \
OnlineVaeRelabelingBuffer
from rlkit.torch.networks import ConcatMlp, TanhMlpPolicy
from rlkit.torch.vae.vae_trainer import ConvVAETrainer
from rlkit.torch.td3.td3 import TD3
from rlkit.exploration_strategies.base import (
PolicyWrappedWithExplorationStrategy
)
from rlkit.exploration_strategies.gaussian_and_epislon import \
GaussianAndEpislonStrategy
preprocess_rl_variant(variant)
env = get_envs(variant)
uniform_dataset_fn = variant.get('generate_uniform_dataset_fn', None)
if uniform_dataset_fn:
uniform_dataset=uniform_dataset_fn(
**variant['generate_uniform_dataset_kwargs']
)
else:
uniform_dataset=None
observation_key = variant.get('observation_key', 'latent_observation')
desired_goal_key = variant.get('desired_goal_key', 'latent_desired_goal')
achieved_goal_key = desired_goal_key.replace("desired", "achieved")
obs_dim = (
env.observation_space.spaces[observation_key].low.size
+ env.observation_space.spaces[desired_goal_key].low.size
)
action_dim = env.action_space.low.size
hidden_sizes = variant.get('hidden_sizes', [400, 300])
qf1 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
qf2 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
target_qf1 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
target_qf2 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
policy = TanhMlpPolicy(
input_size=obs_dim,
output_size=action_dim,
hidden_sizes=hidden_sizes,
# **variant['policy_kwargs']
)
target_policy = TanhMlpPolicy(
input_size=obs_dim,
output_size=action_dim,
hidden_sizes=hidden_sizes,
# **variant['policy_kwargs']
)
es = GaussianAndEpislonStrategy(
action_space=env.action_space,
max_sigma=.2,
min_sigma=.2, # constant sigma
epsilon=.3,
)
expl_policy = PolicyWrappedWithExplorationStrategy(
exploration_strategy=es,
policy=policy,
)
vae = env.vae
replay_buffer_class = variant.get("replay_buffer_class", OnlineVaeRelabelingBuffer)
replay_buffer = replay_buffer_class(
vae=env.vae,
env=env,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
achieved_goal_key=achieved_goal_key,
**variant['replay_buffer_kwargs']
)
vae_trainer_class = variant.get("vae_trainer_class", ConvVAETrainer)
vae_trainer = vae_trainer_class(
env.vae,
**variant['online_vae_trainer_kwargs']
)
assert 'vae_training_schedule' not in variant, "Just put it in algo_kwargs"
max_path_length = variant['max_path_length']
trainer = TD3(
policy=policy,
qf1=qf1,
qf2=qf2,
target_qf1=target_qf1,
target_qf2=target_qf2,
target_policy=target_policy,
**variant['td3_trainer_kwargs']
)
trainer = HERTrainer(trainer)
eval_path_collector = VAEWrappedEnvPathCollector(
variant['evaluation_goal_sampling_mode'],
env,
policy,
max_path_length,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
)
expl_path_collector = VAEWrappedEnvPathCollector(
variant['exploration_goal_sampling_mode'],
env,
expl_policy,
max_path_length,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
)
algorithm = OnlineVaeAlgorithm(
trainer=trainer,
exploration_env=env,
evaluation_env=env,
exploration_data_collector=expl_path_collector,
evaluation_data_collector=eval_path_collector,
replay_buffer=replay_buffer,
vae=vae,
vae_trainer=vae_trainer,
uniform_dataset=uniform_dataset,
max_path_length=max_path_length,
**variant['algo_kwargs']
)
if variant.get("save_video", True):
video_func = VideoSaveFunction(
env,
variant,
)
algorithm.post_train_funcs.append(video_func)
if variant['custom_goal_sampler'] == 'replay_buffer':
env.custom_goal_sampler = replay_buffer.sample_buffer_goals
algorithm.to(ptu.device)
vae.to(ptu.device)
algorithm.train()
def twin_sac_experiment_online_vae(variant):
import rlkit.torch.pytorch_util as ptu
from rlkit.data_management.online_vae_replay_buffer import \
OnlineVaeRelabelingBuffer
from rlkit.torch.networks import ConcatMlp
from rlkit.torch.sac.policies import TanhGaussianPolicy
from rlkit.torch.vae.vae_trainer import ConvVAETrainer
preprocess_rl_variant(variant)
env = get_envs(variant)
uniform_dataset_fn = variant.get('generate_uniform_dataset_fn', None)
if uniform_dataset_fn:
uniform_dataset=uniform_dataset_fn(
**variant['generate_uniform_dataset_kwargs']
)
else:
uniform_dataset=None
observation_key = variant.get('observation_key', 'latent_observation')
desired_goal_key = variant.get('desired_goal_key', 'latent_desired_goal')
achieved_goal_key = desired_goal_key.replace("desired", "achieved")
obs_dim = (
env.observation_space.spaces[observation_key].low.size
+ env.observation_space.spaces[desired_goal_key].low.size
)
action_dim = env.action_space.low.size
hidden_sizes = variant.get('hidden_sizes', [400, 300])
qf1 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
qf2 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
target_qf1 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
target_qf2 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
policy = TanhGaussianPolicy(
obs_dim=obs_dim,
action_dim=action_dim,
hidden_sizes=hidden_sizes,
)
vae = env.vae
replay_buffer_class = variant.get("replay_buffer_class", OnlineVaeRelabelingBuffer)
replay_buffer = replay_buffer_class(
vae=env.vae,
env=env,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
achieved_goal_key=achieved_goal_key,
**variant['replay_buffer_kwargs']
)
vae_trainer_class = variant.get("vae_trainer_class", ConvVAETrainer)
vae_trainer = vae_trainer_class(
env.vae,
**variant['online_vae_trainer_kwargs']
)
assert 'vae_training_schedule' not in variant, "Just put it in algo_kwargs"
max_path_length = variant['max_path_length']
trainer = SACTrainer(
env=env,
policy=policy,
qf1=qf1,
qf2=qf2,
target_qf1=target_qf1,
target_qf2=target_qf2,
**variant['twin_sac_trainer_kwargs']
)
trainer = HERTrainer(trainer)
eval_path_collector = VAEWrappedEnvPathCollector(
variant['evaluation_goal_sampling_mode'],
env,
MakeDeterministic(policy),
max_path_length,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
)
expl_path_collector = VAEWrappedEnvPathCollector(
variant['exploration_goal_sampling_mode'],
env,
policy,
max_path_length,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
)
algorithm = OnlineVaeAlgorithm(
trainer=trainer,
exploration_env=env,
evaluation_env=env,
exploration_data_collector=expl_path_collector,
evaluation_data_collector=eval_path_collector,
replay_buffer=replay_buffer,
vae=vae,
vae_trainer=vae_trainer,
uniform_dataset=uniform_dataset,
max_path_length=max_path_length,
**variant['algo_kwargs']
)
if variant.get("save_video", True):
video_func = VideoSaveFunction(
env,
variant,
)
algorithm.post_train_funcs.append(video_func)
if variant['custom_goal_sampler'] == 'replay_buffer':
env.custom_goal_sampler = replay_buffer.sample_buffer_goals
algorithm.to(ptu.device)
vae.to(ptu.device)
algorithm.train()
def td3_experiment_online_vae_exploring(variant):
import rlkit.samplers.rollout_functions as rf
import rlkit.torch.pytorch_util as ptu
from rlkit.data_management.online_vae_replay_buffer import \
OnlineVaeRelabelingBuffer
from rlkit.exploration_strategies.base import (
PolicyWrappedWithExplorationStrategy
)
from rlkit.torch.her.online_vae_joint_algo import OnlineVaeHerJointAlgo
from rlkit.torch.networks import ConcatMlp, TanhMlpPolicy
from rlkit.torch.td3.td3 import TD3
from rlkit.torch.vae.vae_trainer import ConvVAETrainer
preprocess_rl_variant(variant)
env = get_envs(variant)
es = get_exploration_strategy(variant, env)
observation_key = variant.get('observation_key', 'latent_observation')
desired_goal_key = variant.get('desired_goal_key', 'latent_desired_goal')
achieved_goal_key = desired_goal_key.replace("desired", "achieved")
obs_dim = (
env.observation_space.spaces[observation_key].low.size
+ env.observation_space.spaces[desired_goal_key].low.size
)
action_dim = env.action_space.low.size
qf1 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
**variant['qf_kwargs'],
)
qf2 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
**variant['qf_kwargs'],
)
policy = TanhMlpPolicy(
input_size=obs_dim,
output_size=action_dim,
**variant['policy_kwargs'],
)
exploration_policy = PolicyWrappedWithExplorationStrategy(
exploration_strategy=es,
policy=policy,
)
exploring_qf1 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
**variant['qf_kwargs'],
)
exploring_qf2 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
**variant['qf_kwargs'],
)
exploring_policy = TanhMlpPolicy(
input_size=obs_dim,
output_size=action_dim,
**variant['policy_kwargs'],
)
exploring_exploration_policy = PolicyWrappedWithExplorationStrategy(
exploration_strategy=es,
policy=exploring_policy,
)
vae = env.vae
replay_buffer = OnlineVaeRelabelingBuffer(
vae=vae,
env=env,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
achieved_goal_key=achieved_goal_key,
**variant['replay_buffer_kwargs']
)
variant["algo_kwargs"]["replay_buffer"] = replay_buffer
if variant.get('use_replay_buffer_goals', False):
env.replay_buffer = replay_buffer
env.use_replay_buffer_goals = True
vae_trainer_kwargs = variant.get('vae_trainer_kwargs')
t = ConvVAETrainer(variant['vae_train_data'],
variant['vae_test_data'],
vae,
beta=variant['online_vae_beta'],
**vae_trainer_kwargs)
control_algorithm = TD3(
env=env,
training_env=env,
qf1=qf1,
qf2=qf2,
policy=policy,
exploration_policy=exploration_policy,
**variant['algo_kwargs']
)
exploring_algorithm = TD3(
env=env,
training_env=env,
qf1=exploring_qf1,
qf2=exploring_qf2,
policy=exploring_policy,
exploration_policy=exploring_exploration_policy,
**variant['algo_kwargs']
)
assert 'vae_training_schedule' not in variant,\
"Just put it in joint_algo_kwargs"
algorithm = OnlineVaeHerJointAlgo(
vae=vae,
vae_trainer=t,
env=env,
training_env=env,
policy=policy,
exploration_policy=exploration_policy,
replay_buffer=replay_buffer,
algo1=control_algorithm,
algo2=exploring_algorithm,
algo1_prefix="Control_",
algo2_prefix="VAE_Exploration_",
observation_key=observation_key,
desired_goal_key=desired_goal_key,
**variant['joint_algo_kwargs']
)
algorithm.to(ptu.device)
vae.to(ptu.device)
if variant.get("save_video", True):
policy.train(False)
rollout_function = rf.create_rollout_function(
rf.multitask_rollout,
max_path_length=algorithm.max_path_length,
observation_key=algorithm.observation_key,
desired_goal_key=algorithm.desired_goal_key,
)
video_func = get_video_save_func(
rollout_function,
env,
algorithm.eval_policy,
variant,
)
algorithm.post_train_funcs.append(video_func)
algorithm.train()
def td3_experiment_offpolicy_online_vae(variant):
import rlkit.torch.pytorch_util as ptu
from rlkit.data_management.online_vae_replay_buffer import \
OnlineVaeRelabelingBuffer
from rlkit.torch.networks import ConcatMlp, TanhMlpPolicy
from rlkit.torch.vae.vae_trainer import ConvVAETrainer
from rlkit.torch.td3.td3 import TD3
from rlkit.exploration_strategies.base import (
PolicyWrappedWithExplorationStrategy
)
from rlkit.exploration_strategies.gaussian_and_epislon import \
GaussianAndEpislonStrategy
from rlkit.torch.vae.online_vae_offpolicy_algorithm import OnlineVaeOffpolicyAlgorithm
preprocess_rl_variant(variant)
env = get_envs(variant)
uniform_dataset_fn = variant.get('generate_uniform_dataset_fn', None)
if uniform_dataset_fn:
uniform_dataset=uniform_dataset_fn(
**variant['generate_uniform_dataset_kwargs']
)
else:
uniform_dataset=None
observation_key = variant.get('observation_key', 'latent_observation')
desired_goal_key = variant.get('desired_goal_key', 'latent_desired_goal')
achieved_goal_key = desired_goal_key.replace("desired", "achieved")
obs_dim = (
env.observation_space.spaces[observation_key].low.size
+ env.observation_space.spaces[desired_goal_key].low.size
)
action_dim = env.action_space.low.size
hidden_sizes = variant.get('hidden_sizes', [400, 300])
qf1 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
qf2 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
target_qf1 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
target_qf2 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
policy = TanhMlpPolicy(
input_size=obs_dim,
output_size=action_dim,
hidden_sizes=hidden_sizes,
# **variant['policy_kwargs']
)
target_policy = TanhMlpPolicy(
input_size=obs_dim,
output_size=action_dim,
hidden_sizes=hidden_sizes,
# **variant['policy_kwargs']
)
es = GaussianAndEpislonStrategy(
action_space=env.action_space,
max_sigma=.2,
min_sigma=.2, # constant sigma
epsilon=.3,
)
expl_policy = PolicyWrappedWithExplorationStrategy(
exploration_strategy=es,
policy=policy,
)
vae = env.vae
replay_buffer_class = variant.get("replay_buffer_class", OnlineVaeRelabelingBuffer)
replay_buffer = replay_buffer_class(
vae=env.vae,
env=env,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
achieved_goal_key=achieved_goal_key,
**variant['replay_buffer_kwargs']
)
replay_buffer.representation_size = vae.representation_size
vae_trainer_class = variant.get("vae_trainer_class", ConvVAETrainer)
vae_trainer = vae_trainer_class(
env.vae,
**variant['online_vae_trainer_kwargs']
)
assert 'vae_training_schedule' not in variant, "Just put it in algo_kwargs"
max_path_length = variant['max_path_length']
trainer = TD3(
policy=policy,
qf1=qf1,
qf2=qf2,
target_qf1=target_qf1,
target_qf2=target_qf2,
target_policy=target_policy,
**variant['td3_trainer_kwargs']
)
trainer = HERTrainer(trainer)
eval_path_collector = VAEWrappedEnvPathCollector(
variant['evaluation_goal_sampling_mode'],
env,
policy,
max_path_length,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
)
expl_path_collector = VAEWrappedEnvPathCollector(
variant['exploration_goal_sampling_mode'],
env,
expl_policy,
max_path_length,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
)
algorithm = OnlineVaeOffpolicyAlgorithm(
trainer=trainer,
exploration_env=env,
evaluation_env=env,
exploration_data_collector=expl_path_collector,
evaluation_data_collector=eval_path_collector,
replay_buffer=replay_buffer,
vae=vae,
vae_trainer=vae_trainer,
uniform_dataset=uniform_dataset,
max_path_length=max_path_length,
**variant['algo_kwargs']
)
if variant.get("save_video", True):
video_func = VideoSaveFunction(
env,
variant,
)
algorithm.post_train_funcs.append(video_func)
if variant['custom_goal_sampler'] == 'replay_buffer':
env.custom_goal_sampler = replay_buffer.sample_buffer_goals
algorithm.to(ptu.device)
vae.to(ptu.device)
algorithm.pretrain()
algorithm.train()
def tdm_td3_experiment(variant):
import rlkit.samplers.rollout_functions as rf
import rlkit.torch.pytorch_util as ptu
from rlkit.core import logger
from rlkit.data_management.obs_dict_replay_buffer import \
ObsDictRelabelingBuffer
from rlkit.exploration_strategies.base import (
PolicyWrappedWithExplorationStrategy
)
from rlkit.state_distance.tdm_networks import TdmQf, TdmPolicy
from rlkit.state_distance.tdm_td3 import TdmTd3
preprocess_rl_variant(variant)
env = get_envs(variant)
es = get_exploration_strategy(variant, env)
observation_key = variant.get('observation_key', 'latent_observation')
desired_goal_key = variant.get('desired_goal_key', 'latent_desired_goal')
achieved_goal_key = desired_goal_key.replace("desired", "achieved")
obs_dim = (
env.observation_space.spaces[observation_key].low.size
)
goal_dim = (
env.observation_space.spaces[desired_goal_key].low.size
)
action_dim = env.action_space.low.size
vectorized = 'vectorized' in env.reward_type
norm_order = env.norm_order
variant['algo_kwargs']['tdm_kwargs']['vectorized'] = vectorized
variant['qf_kwargs']['vectorized'] = vectorized
variant['qf_kwargs']['norm_order'] = norm_order
qf1 = TdmQf(
env=env,
observation_dim=obs_dim,
goal_dim=goal_dim,
action_dim=action_dim,
**variant['qf_kwargs']
)
qf2 = TdmQf(
env=env,
observation_dim=obs_dim,
goal_dim=goal_dim,
action_dim=action_dim,
**variant['qf_kwargs']
)
policy = TdmPolicy(
env=env,
observation_dim=obs_dim,
goal_dim=goal_dim,
action_dim=action_dim,
**variant['policy_kwargs']
)
exploration_policy = PolicyWrappedWithExplorationStrategy(
exploration_strategy=es,
policy=policy,
)
variant['replay_buffer_kwargs']['vectorized'] = vectorized
replay_buffer = ObsDictRelabelingBuffer(
env=env,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
achieved_goal_key=achieved_goal_key,
**variant['replay_buffer_kwargs']
)
algo_kwargs = variant['algo_kwargs']
algo_kwargs['replay_buffer'] = replay_buffer
base_kwargs = algo_kwargs['base_kwargs']
base_kwargs['training_env'] = env
base_kwargs['render'] = variant["render"]
base_kwargs['render_during_eval'] = variant["render"]
tdm_kwargs = algo_kwargs['tdm_kwargs']
tdm_kwargs['observation_key'] = observation_key
tdm_kwargs['desired_goal_key'] = desired_goal_key
algorithm = TdmTd3(
env,
qf1=qf1,
qf2=qf2,
policy=policy,
exploration_policy=exploration_policy,
**variant['algo_kwargs']
)
algorithm.to(ptu.device)
if not variant.get("do_state_exp", False):
env.vae.to(ptu.device)
if variant.get("save_video", True):
logdir = logger.get_snapshot_dir()
policy.train(False)
rollout_function = rf.create_rollout_function(
rf.tdm_rollout,
init_tau=algorithm.max_tau,
max_path_length=algorithm.max_path_length,
observation_key=algorithm.observation_key,
desired_goal_key=algorithm.desired_goal_key,
)
video_func = get_video_save_func(
rollout_function,
env,
policy,
variant,
)
algorithm.post_train_funcs.append(video_func)
algorithm.train()
def tdm_td3_experiment_online_vae(variant):
import rlkit.samplers.rollout_functions as rf
import rlkit.torch.pytorch_util as ptu
from rlkit.data_management.online_vae_replay_buffer import \
OnlineVaeRelabelingBuffer
from rlkit.exploration_strategies.base import (
PolicyWrappedWithExplorationStrategy
)
from rlkit.state_distance.tdm_networks import TdmQf, TdmPolicy
from rlkit.torch.vae.vae_trainer import ConvVAETrainer
from rlkit.torch.online_vae.online_vae_tdm_td3 import OnlineVaeTdmTd3
preprocess_rl_variant(variant)
env = get_envs(variant)
es = get_exploration_strategy(variant, env)
vae_trainer_kwargs = variant.get('vae_trainer_kwargs')
observation_key = variant.get('observation_key', 'latent_observation')
desired_goal_key = variant.get('desired_goal_key', 'latent_desired_goal')
achieved_goal_key = desired_goal_key.replace("desired", "achieved")
obs_dim = (
env.observation_space.spaces[observation_key].low.size
)
goal_dim = (
env.observation_space.spaces[desired_goal_key].low.size
)
action_dim = env.action_space.low.size
vectorized = 'vectorized' in env.reward_type
variant['algo_kwargs']['tdm_td3_kwargs']['tdm_kwargs'][
'vectorized'] = vectorized
norm_order = env.norm_order
# variant['algo_kwargs']['tdm_td3_kwargs']['tdm_kwargs'][
# 'norm_order'] = norm_order
qf1 = TdmQf(
env=env,
vectorized=vectorized,
norm_order=norm_order,
observation_dim=obs_dim,
goal_dim=goal_dim,
action_dim=action_dim,
**variant['qf_kwargs']
)
qf2 = TdmQf(
env=env,
vectorized=vectorized,
norm_order=norm_order,
observation_dim=obs_dim,
goal_dim=goal_dim,
action_dim=action_dim,
**variant['qf_kwargs']
)
policy = TdmPolicy(
env=env,
observation_dim=obs_dim,
goal_dim=goal_dim,
action_dim=action_dim,
**variant['policy_kwargs']
)
exploration_policy = PolicyWrappedWithExplorationStrategy(
exploration_strategy=es,
policy=policy,
)
vae = env.vae
replay_buffer = OnlineVaeRelabelingBuffer(
vae=vae,
env=env,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
achieved_goal_key=achieved_goal_key,
**variant['replay_buffer_kwargs']
)
algo_kwargs = variant['algo_kwargs']['tdm_td3_kwargs']
td3_kwargs = algo_kwargs['td3_kwargs']
td3_kwargs['training_env'] = env
tdm_kwargs = algo_kwargs['tdm_kwargs']
tdm_kwargs['observation_key'] = observation_key
tdm_kwargs['desired_goal_key'] = desired_goal_key
algo_kwargs["replay_buffer"] = replay_buffer
t = ConvVAETrainer(variant['vae_train_data'],
variant['vae_test_data'],
vae,
beta=variant['online_vae_beta'],
**vae_trainer_kwargs)
render = variant["render"]
assert 'vae_training_schedule' not in variant, "Just put it in algo_kwargs"
algorithm = OnlineVaeTdmTd3(
online_vae_kwargs=dict(
vae=vae,
vae_trainer=t,
**variant['algo_kwargs']['online_vae_kwargs']
),
tdm_td3_kwargs=dict(
env=env,
qf1=qf1,
qf2=qf2,
policy=policy,
exploration_policy=exploration_policy,
**variant['algo_kwargs']['tdm_td3_kwargs']
),
)
algorithm.to(ptu.device)
vae.to(ptu.device)
if variant.get("save_video", True):
policy.train(False)
rollout_function = rf.create_rollout_function(
rf.tdm_rollout,
init_tau=algorithm._sample_max_tau_for_rollout(),
decrement_tau=algorithm.cycle_taus_for_rollout,
cycle_tau=algorithm.cycle_taus_for_rollout,
max_path_length=algorithm.max_path_length,
observation_key=algorithm.observation_key,
desired_goal_key=algorithm.desired_goal_key,
)
video_func = get_video_save_func(
rollout_function,
env,
algorithm.eval_policy,
variant,
)
algorithm.post_train_funcs.append(video_func)
algorithm.to(ptu.device)
if not variant.get("do_state_exp", False):
env.vae.to(ptu.device)
algorithm.train()
def tdm_twin_sac_experiment(variant):
import rlkit.samplers.rollout_functions as rf
import rlkit.torch.pytorch_util as ptu
from rlkit.data_management.obs_dict_replay_buffer import \
ObsDictRelabelingBuffer
from rlkit.state_distance.tdm_networks import (
TdmQf, TdmVf,
StochasticTdmPolicy,
)
from rlkit.state_distance.tdm_twin_sac import TdmTwinSAC
preprocess_rl_variant(variant)
env = get_envs(variant)
observation_key = variant.get('observation_key', 'latent_observation')
desired_goal_key = variant.get('desired_goal_key', 'latent_desired_goal')
achieved_goal_key = desired_goal_key.replace("desired", "achieved")
obs_dim = (
env.observation_space.spaces[observation_key].low.size
)
goal_dim = (
env.observation_space.spaces[desired_goal_key].low.size
)
action_dim = env.action_space.low.size
vectorized = 'vectorized' in env.reward_type
norm_order = env.norm_order
variant['algo_kwargs']['tdm_kwargs']['vectorized'] = vectorized
variant['qf_kwargs']['vectorized'] = vectorized
variant['vf_kwargs']['vectorized'] = vectorized
variant['qf_kwargs']['norm_order'] = norm_order
variant['vf_kwargs']['norm_order'] = norm_order
qf1 = TdmQf(
env=env,
observation_dim=obs_dim,
goal_dim=goal_dim,
action_dim=action_dim,
**variant['qf_kwargs']
)
qf2 = TdmQf(
env=env,
observation_dim=obs_dim,
goal_dim=goal_dim,
action_dim=action_dim,
**variant['qf_kwargs']
)
vf = TdmVf(
env=env,
observation_dim=obs_dim,
goal_dim=goal_dim,
**variant['vf_kwargs']
)
policy = StochasticTdmPolicy(
env=env,
observation_dim=obs_dim,
goal_dim=goal_dim,
action_dim=action_dim,
**variant['policy_kwargs']
)
variant['replay_buffer_kwargs']['vectorized'] = vectorized
replay_buffer = ObsDictRelabelingBuffer(
env=env,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
achieved_goal_key=achieved_goal_key,
**variant['replay_buffer_kwargs']
)
algo_kwargs = variant['algo_kwargs']
algo_kwargs['replay_buffer'] = replay_buffer
base_kwargs = algo_kwargs['base_kwargs']
base_kwargs['training_env'] = env
base_kwargs['render'] = variant["render"]
base_kwargs['render_during_eval'] = variant["render"]
tdm_kwargs = algo_kwargs['tdm_kwargs']
tdm_kwargs['observation_key'] = observation_key
tdm_kwargs['desired_goal_key'] = desired_goal_key
algorithm = TdmTwinSAC(
env,
qf1=qf1,
qf2=qf2,
vf=vf,
policy=policy,
**variant['algo_kwargs']
)
if variant.get("save_video", True):
rollout_function = rf.create_rollout_function(
rf.tdm_rollout,
init_tau=algorithm._sample_max_tau_for_rollout(),
decrement_tau=algorithm.cycle_taus_for_rollout,
cycle_tau=algorithm.cycle_taus_for_rollout,
max_path_length=algorithm.max_path_length,
observation_key=algorithm.observation_key,
desired_goal_key=algorithm.desired_goal_key,
)
video_func = get_video_save_func(
rollout_function,
env,
algorithm.eval_policy,
variant,
)
algorithm.post_train_funcs.append(video_func)
algorithm.to(ptu.device)
if not variant.get("do_state_exp", False):
env.vae.to(ptu.device)
algorithm.train()
def active_representation_learning_experiment(variant):
import rlkit.torch.pytorch_util as ptu
from rlkit.data_management.obs_dict_replay_buffer import ObsDictReplayBuffer
from rlkit.torch.networks import ConcatMlp
from rlkit.torch.sac.policies import TanhGaussianPolicy
from rlkit.torch.arl.active_representation_learning_algorithm import \
ActiveRepresentationLearningAlgorithm
from rlkit.torch.arl.representation_wrappers import RepresentationWrappedEnv
from multiworld.core.image_env import ImageEnv
from rlkit.samplers.data_collector import MdpPathCollector
preprocess_rl_variant(variant)
model_class = variant.get('model_class')
model_kwargs = variant.get('model_kwargs')
model = model_class(**model_kwargs)
model.representation_size = 4
model.imsize = 48
variant["vae_path"] = model
reward_params = variant.get("reward_params", dict())
init_camera = variant.get("init_camera", None)
env = variant["env_class"](**variant['env_kwargs'])
image_env = ImageEnv(
env,
variant.get('imsize'),
init_camera=init_camera,
transpose=True,
normalize=True,
)
env = RepresentationWrappedEnv(
image_env,
model,
)
uniform_dataset_fn = variant.get('generate_uniform_dataset_fn', None)
if uniform_dataset_fn:
uniform_dataset=uniform_dataset_fn(
**variant['generate_uniform_dataset_kwargs']
)
else:
uniform_dataset=None
observation_key = variant.get('observation_key', 'latent_observation')
desired_goal_key = variant.get('desired_goal_key', 'latent_desired_goal')
achieved_goal_key = desired_goal_key.replace("desired", "achieved")
obs_dim = env.observation_space.spaces[observation_key].low.size
action_dim = env.action_space.low.size
hidden_sizes = variant.get('hidden_sizes', [400, 300])
qf1 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
qf2 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
target_qf1 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
target_qf2 = ConcatMlp(
input_size=obs_dim + action_dim,
output_size=1,
hidden_sizes=hidden_sizes,
)
policy = TanhGaussianPolicy(
obs_dim=obs_dim,
action_dim=action_dim,
hidden_sizes=hidden_sizes,
)
vae = env.vae
replay_buffer = ObsDictReplayBuffer(
env=env,
**variant['replay_buffer_kwargs']
)
model_trainer_class = variant.get('model_trainer_class')
model_trainer_kwargs = variant.get('model_trainer_kwargs')
model_trainer = model_trainer_class(
model,
**model_trainer_kwargs,
)
# vae_trainer = ConvVAETrainer(
# env.vae,
# **variant['online_vae_trainer_kwargs']
# )
assert 'vae_training_schedule' not in variant, "Just put it in algo_kwargs"
max_path_length = variant['max_path_length']
trainer = SACTrainer(
env=env,
policy=policy,
qf1=qf1,
qf2=qf2,
target_qf1=target_qf1,
target_qf2=target_qf2,
**variant['twin_sac_trainer_kwargs']
)
# trainer = HERTrainer(trainer)
eval_path_collector = MdpPathCollector(
env,
MakeDeterministic(policy),
# max_path_length,
# observation_key=observation_key,
# desired_goal_key=desired_goal_key,
)
expl_path_collector = MdpPathCollector(
env,
policy,
# max_path_length,
# observation_key=observation_key,
# desired_goal_key=desired_goal_key,
)
algorithm = ActiveRepresentationLearningAlgorithm(
trainer=trainer,
exploration_env=env,
evaluation_env=env,
exploration_data_collector=expl_path_collector,
evaluation_data_collector=eval_path_collector,
replay_buffer=replay_buffer,
model=model,
model_trainer=model_trainer,
uniform_dataset=uniform_dataset,
max_path_length=max_path_length,
**variant['algo_kwargs']
)
algorithm.to(ptu.device)
vae.to(ptu.device)
algorithm.train()
def HER_baseline_td3_experiment(variant):
import rlkit.torch.pytorch_util as ptu
from rlkit.data_management.obs_dict_replay_buffer import \
ObsDictRelabelingBuffer
from rlkit.exploration_strategies.base import (
PolicyWrappedWithExplorationStrategy
)
from rlkit.torch.her.her_td3 import HerTd3
from rlkit.torch.networks import MergedCNN, CNNPolicy
import torch
from multiworld.core.image_env import ImageEnv
from rlkit.misc.asset_loader import load_local_or_remote_file
init_camera = variant.get("init_camera", None)
presample_goals = variant.get('presample_goals', False)
presampled_goals_path = get_presampled_goals_path(
variant.get('presampled_goals_path', None))
if 'env_id' in variant:
import gym
import multiworld
multiworld.register_all_envs()
env = gym.make(variant['env_id'])
else:
env = variant["env_class"](**variant['env_kwargs'])
image_env = ImageEnv(
env,
variant.get('imsize'),
reward_type='image_sparse',
init_camera=init_camera,
transpose=True,
normalize=True,
)
if presample_goals:
if presampled_goals_path is None:
image_env.non_presampled_goal_img_is_garbage = True
presampled_goals = variant['generate_goal_dataset_fctn'](
env=image_env,
**variant['goal_generation_kwargs']
)
else:
presampled_goals = load_local_or_remote_file(
presampled_goals_path
).item()
del image_env
env = ImageEnv(
env,
variant.get('imsize'),
reward_type='image_distance',
init_camera=init_camera,
transpose=True,
normalize=True,
presampled_goals=presampled_goals,
)
else:
env = image_env
es = get_exploration_strategy(variant, env)
observation_key = variant.get('observation_key', 'image_observation')
desired_goal_key = variant.get('desired_goal_key', 'image_desired_goal')
achieved_goal_key = desired_goal_key.replace("desired", "achieved")
imsize=variant['imsize']
action_dim = env.action_space.low.size
qf1 = MergedCNN(input_width=imsize,
input_height=imsize,
output_size=1,
input_channels=3 * 2,
added_fc_input_size=action_dim,
**variant['cnn_params']
)
qf2 = MergedCNN(input_width=imsize,
input_height=imsize,
output_size=1,
input_channels=3 * 2,
added_fc_input_size=action_dim,
**variant['cnn_params']
)
policy = CNNPolicy(input_width=imsize,
input_height=imsize,
added_fc_input_size=0,
output_size=action_dim,
input_channels=3 * 2,
output_activation=torch.tanh,
**variant['cnn_params'],
)
target_qf1 = MergedCNN(input_width=imsize,
input_height=imsize,
output_size=1,
input_channels=3 * 2,
added_fc_input_size=action_dim,
**variant['cnn_params']
)
target_qf2 = MergedCNN(input_width=imsize,
input_height=imsize,
output_size=1,
input_channels=3 * 2,
added_fc_input_size=action_dim,
**variant['cnn_params']
)
target_policy = CNNPolicy(input_width=imsize,
input_height=imsize,
added_fc_input_size=0,
output_size=action_dim,
input_channels=3 * 2,
output_activation=torch.tanh,
**variant['cnn_params'],
)
exploration_policy = PolicyWrappedWithExplorationStrategy(
exploration_strategy=es,
policy=policy,
)
replay_buffer = ObsDictRelabelingBuffer(
env=env,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
achieved_goal_key=achieved_goal_key,
**variant['replay_buffer_kwargs']
)
algo_kwargs = variant['algo_kwargs']
algo_kwargs['replay_buffer'] = replay_buffer
base_kwargs = algo_kwargs['base_kwargs']
base_kwargs['training_env'] = env
base_kwargs['render'] = variant["render"]
base_kwargs['render_during_eval'] = variant["render"]
her_kwargs = algo_kwargs['her_kwargs']
her_kwargs['observation_key'] = observation_key
her_kwargs['desired_goal_key'] = desired_goal_key
algorithm = HerTd3(
env,
qf1=qf1,
qf2=qf2,
policy=policy,
target_qf1=target_qf1,
target_qf2=target_qf2,
target_policy=target_policy,
exploration_policy=exploration_policy,
**variant['algo_kwargs']
)
algorithm.to(ptu.device)
algorithm.train()
def HER_baseline_twin_sac_experiment(variant):
import rlkit.torch.pytorch_util as ptu
from rlkit.data_management.obs_dict_replay_buffer import \
ObsDictRelabelingBuffer
from rlkit.exploration_strategies.base import (
PolicyWrappedWithExplorationStrategy
)
from rlkit.torch.her.her_twin_sac import HerTwinSAC
from rlkit.torch.sac.policies import TanhCNNGaussianPolicy
from rlkit.torch.networks import MergedCNN, CNN
import torch
from multiworld.core.image_env import ImageEnv
from rlkit.misc.asset_loader import load_local_or_remote_file
init_camera = variant.get("init_camera", None)
presample_goals = variant.get('presample_goals', False)
presampled_goals_path = get_presampled_goals_path(
variant.get('presampled_goals_path', None))
if 'env_id' in variant:
import gym
import multiworld
multiworld.register_all_envs()
env = gym.make(variant['env_id'])
else:
env = variant["env_class"](**variant['env_kwargs'])
image_env = ImageEnv(
env,
variant.get('imsize'),
reward_type='image_sparse',
init_camera=init_camera,
transpose=True,
normalize=True,
)
if presample_goals:
if presampled_goals_path is None:
image_env.non_presampled_goal_img_is_garbage = True
presampled_goals = variant['generate_goal_dataset_fctn'](
env=image_env,
**variant['goal_generation_kwargs']
)
else:
presampled_goals = load_local_or_remote_file(
presampled_goals_path
).item()
del image_env
env = ImageEnv(
env,
variant.get('imsize'),
reward_type='image_distance',
init_camera=init_camera,
transpose=True,
normalize=True,
presampled_goals=presampled_goals,
)
else:
env = image_env
es = get_exploration_strategy(variant, env)
observation_key = variant.get('observation_key', 'image_observation')
desired_goal_key = variant.get('desired_goal_key', 'image_desired_goal')
achieved_goal_key = desired_goal_key.replace("desired", "achieved")
imsize=variant['imsize']
action_dim = env.action_space.low.size
qf1 = MergedCNN(input_width=imsize,
input_height=imsize,
output_size=1,
input_channels=3 * 2,
added_fc_input_size=action_dim,
**variant['cnn_params']
)
qf2 = MergedCNN(input_width=imsize,
input_height=imsize,
output_size=1,
input_channels=3 * 2,
added_fc_input_size=action_dim,
**variant['cnn_params']
)
policy = TanhCNNGaussianPolicy(input_width=imsize,
input_height=imsize,
added_fc_input_size=0,
output_size=action_dim,
input_channels=3 * 2,
output_activation=torch.tanh,
**variant['cnn_params'],
)
vf = CNN(input_width=imsize,
input_height=imsize,
output_size=1,
input_channels=3 * 2,
**variant['cnn_params']
)
target_vf = CNN(input_width=imsize,
input_height=imsize,
output_size=1,
input_channels=3 * 2,
**variant['cnn_params']
)
replay_buffer = ObsDictRelabelingBuffer(
env=env,
observation_key=observation_key,
desired_goal_key=desired_goal_key,
achieved_goal_key=achieved_goal_key,
**variant['replay_buffer_kwargs']
)
exploration_policy = PolicyWrappedWithExplorationStrategy(
exploration_strategy=es,
policy=policy,
)
algo_kwargs = variant['algo_kwargs']
algo_kwargs['replay_buffer'] = replay_buffer
base_kwargs = algo_kwargs['base_kwargs']
base_kwargs['training_env'] = env
base_kwargs['render'] = variant["render"]
base_kwargs['render_during_eval'] = variant["render"]
her_kwargs = algo_kwargs['her_kwargs']
her_kwargs['observation_key'] = observation_key
her_kwargs['desired_goal_key'] = desired_goal_key
algorithm = HerTwinSAC(
env,
qf1=qf1,
qf2=qf2,
vf=vf,
target_vf=target_vf,
policy=policy,
exploration_policy=exploration_policy,
**variant['algo_kwargs']
)
algorithm.to(ptu.device)
algorithm.train()
| 32.778917
| 90
| 0.655664
| 4,957
| 44,776
| 5.553157
| 0.048618
| 0.030261
| 0.046282
| 0.033967
| 0.919352
| 0.911941
| 0.896574
| 0.889163
| 0.873542
| 0.864097
| 0
| 0.00676
| 0.259938
| 44,776
| 1,365
| 91
| 32.80293
| 0.823943
| 0.011435
| 0
| 0.793881
| 0
| 0
| 0.09755
| 0.018466
| 0
| 0
| 0
| 0
| 0.004831
| 1
| 0.008052
| false
| 0
| 0.066828
| 0
| 0.074879
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
0df977d7b93c280609b83f8c7407e780209f5280
| 3,501
|
py
|
Python
|
backend/ibutsu_server/test/test_importers.py
|
RonnyPfannschmidt/ibutsu-server
|
eb4a6dfcbdd33ccc6dbf10f35978e092376679d1
|
[
"MIT"
] | null | null | null |
backend/ibutsu_server/test/test_importers.py
|
RonnyPfannschmidt/ibutsu-server
|
eb4a6dfcbdd33ccc6dbf10f35978e092376679d1
|
[
"MIT"
] | null | null | null |
backend/ibutsu_server/test/test_importers.py
|
RonnyPfannschmidt/ibutsu-server
|
eb4a6dfcbdd33ccc6dbf10f35978e092376679d1
|
[
"MIT"
] | null | null | null |
from pathlib import Path
from unittest.mock import call
from unittest.mock import MagicMock
from unittest.mock import patch
from ibutsu_server.test import BaseTestCase
XML_FILE = Path(__file__).parent / "res" / "empty-testsuite.xml"
XML_FILE_COMBINED = Path(__file__).parent / "res" / "combined.xml"
class TestImporterTasks(BaseTestCase):
@patch("ibutsu_server.tasks.importers.session")
def test_update_import_status(self, mocked_session):
"""Test that the _update_import_status() method works correctly"""
from ibutsu_server.tasks.importers import _update_import_status
# GIVEN: A mocked out session and a mocked import
mocked_import = MagicMock()
_update_import_status(mocked_import, "running")
mocked_session.add.assert_called_once_with(mocked_import)
mocked_session.commit.assert_called_once()
assert mocked_import.status == "running"
@patch("ibutsu_server.tasks.importers.ImportFile")
@patch("ibutsu_server.tasks.importers.Import")
@patch("ibutsu_server.tasks.importers._update_import_status")
@patch("ibutsu_server.tasks.importers.session")
def test_junit_import(self, mocked_session, mocked_update, MockImport, MockImportFile):
"""Test the junit importer"""
mocked_import = {"id": "12345"}
mocked_record = MagicMock(data={})
MockImport.query.get.return_value = mocked_record
mocked_file = MagicMock(content=XML_FILE.open().read().encode("utf8"))
MockImportFile.query.filter.return_value.first.return_value = mocked_file
from ibutsu_server.tasks.importers import run_junit_import
# We mocked out the @task decorator, use the _orig_func attr to get the original function
run_junit_import = run_junit_import._orig_func
run_junit_import(mocked_import)
MockImport.query.get.assert_called_once_with("12345")
assert mocked_update.call_args_list == [
call(mocked_record, "running"),
call(mocked_record, "done"),
]
MockImportFile.query.filter.assert_called_once()
MockImportFile.query.filter.return_value.first.assert_called_once()
@patch("ibutsu_server.tasks.importers.ImportFile")
@patch("ibutsu_server.tasks.importers.Import")
@patch("ibutsu_server.tasks.importers._update_import_status")
@patch("ibutsu_server.tasks.importers.session")
def test_junit_import_non_empty(
self, mocked_session, mocked_update, MockImport, MockImportFile
):
"""Test the junit importer"""
mocked_import = {"id": "12345"}
mocked_record = MagicMock(data={"metadata": {"job_name": "foo"}})
MockImport.query.get.return_value = mocked_record
mocked_file = MagicMock(content=XML_FILE_COMBINED.open().read().encode("utf8"))
MockImportFile.query.filter.return_value.first.return_value = mocked_file
from ibutsu_server.tasks.importers import run_junit_import
# We mocked out the @task decorator, use the _orig_func attr to get the original function
run_junit_import = run_junit_import._orig_func
run_junit_import(mocked_import)
MockImport.query.get.assert_called_once_with("12345")
assert mocked_update.call_args_list == [
call(mocked_record, "running"),
call(mocked_record, "done"),
]
MockImportFile.query.filter.assert_called_once()
MockImportFile.query.filter.return_value.first.assert_called_once()
| 43.222222
| 97
| 0.720366
| 425
| 3,501
| 5.614118
| 0.2
| 0.065381
| 0.085499
| 0.130763
| 0.745599
| 0.745599
| 0.730511
| 0.730511
| 0.711651
| 0.711651
| 0
| 0.007679
| 0.181662
| 3,501
| 80
| 98
| 43.7625
| 0.825131
| 0.095116
| 0
| 0.568966
| 0
| 0
| 0.155238
| 0.115873
| 0
| 0
| 0
| 0
| 0.189655
| 1
| 0.051724
| false
| 0
| 0.724138
| 0
| 0.793103
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
21e471824751e8af9bd25739b53726fcca933cea
| 13,846
|
py
|
Python
|
src/genie/libs/parser/sros/tests/test_show_isis.py
|
svautour/genieparser
|
7416c9a4b44582be835a0646fb7fad92a5181c7d
|
[
"Apache-2.0"
] | null | null | null |
src/genie/libs/parser/sros/tests/test_show_isis.py
|
svautour/genieparser
|
7416c9a4b44582be835a0646fb7fad92a5181c7d
|
[
"Apache-2.0"
] | null | null | null |
src/genie/libs/parser/sros/tests/test_show_isis.py
|
svautour/genieparser
|
7416c9a4b44582be835a0646fb7fad92a5181c7d
|
[
"Apache-2.0"
] | null | null | null |
import unittest
import time
from unittest.mock import Mock
from pyats.topology import Device
from genie.metaparser.util.exceptions import SchemaEmptyParserError,\
SchemaMissingKeyError
from genie.libs.parser.sros.show_isis import ShowRouterIsisAdjacency,\
ShowRouterIsisAdjacencyDetail
class TestShowRouterIsisAdjacency(unittest.TestCase):
dev = Device(name='device')
empty_output = {'execute.return_value': ''}
sample_output = {'execute.return_value': '''
A:admin@COTKON04XR2# show router isis adjacency
===============================================================================
Rtr Base ISIS Instance 0 Adjacency
===============================================================================
System ID Usage State Hold Interface MT-ID
-------------------------------------------------------------------------------
GENIE01R07 L2 Up 24 To-GENIE01R07-LAG-7 0
GENIE04XR1 L2 Up 24 To-GENIE04XR1-LAG-4 0
GENIE03R07 L2 Up 24 To-GENIE03R07-LAG-9 0
-------------------------------------------------------------------------------
Adjacencies : 3
===============================================================================
[]
'''}
sample_parsed_output = {
'instance': {
'0': {
'level': {
'L2': {
'interfaces': {
'To-GENIE01R07-LAG-7': {
'system_id': {
'GENIE01R07': {
'hold_time': 24,
'mt_id': 0,
'state': 'Up',
},
},
},
'To-GENIE04XR1-LAG-4': {
'system_id': {
'GENIE04XR1': {
'hold_time': 24,
'mt_id': 0,
'state': 'Up',
},
},
},
'To-GENIE03R07-LAG-9': {
'system_id': {
'GENIE03R07': {
'hold_time': 24,
'mt_id': 0,
'state': 'Up',
},
},
},
},
'total_adjacency_count': 3,
},
},
},
},
}
def test_empty(self):
self.dev = Mock(**self.empty_output)
obj = ShowRouterIsisAdjacency(device=self.dev)
with self.assertRaises(SchemaEmptyParserError):
parsed_output = obj.parse()
def test_golden(self):
self.maxDiff = None
self.dev = Mock(**self.sample_output)
obj = ShowRouterIsisAdjacency(device=self.dev)
parsed_output = obj.parse()
self.assertEqual(parsed_output,self.sample_parsed_output)
class TestShowRouterIsisAdjacencyDetail(unittest.TestCase):
dev = Device(name='device')
empty_output = {'execute.return_value': ''}
sample_output = {'execute.return_value': '''
A:admin@COTKON04XR2# show router isis adjacency detail
===============================================================================
Rtr Base ISIS Instance 0 Adjacency (detail)
===============================================================================
Hostname : GENIE01R07
SystemID : 0691.5819.6089 SNPA : 00:23:3e:8f:17:97
Interface : To-GENIE01R07-LAG-7 Up Time : 58d 03:24:48
State : Up Priority : 0
Nbr Sys Typ : L2 L. Circ Typ : L2
Hold Time : 22 Max Hold : 30
Adj Level : L2 MT Enabled : No
Topology : Unicast
IPv6 Neighbor : ::
IPv4 Neighbor : 10.11.97.22
IPv4 Adj SID : Label 524213
Restart Support : Disabled
Restart Status : Not currently being helped
Restart Supressed : Disabled
Number of Restarts: 0
Last Restart at : Never
Hostname : GENIE04XR1
SystemID : 0670.7021.9137 SNPA : 84:26:2b:bc:2d:e1
Interface : To-GENIE04XR1-LAG-4 Up Time : 36d 23:21:57
State : Up Priority : 0
Nbr Sys Typ : L2 L. Circ Typ : L2
Hold Time : 23 Max Hold : 30
Adj Level : L2 MT Enabled : No
Topology : Unicast
IPv6 Neighbor : ::
IPv4 Neighbor : 10.11.79.245
IPv4 Adj SID : Label 524127
Restart Support : Disabled
Restart Status : Not currently being helped
Restart Supressed : Disabled
Number of Restarts: 0
Last Restart at : Never
Hostname : GENIE03R07
SystemID : 0691.5819.6091 SNPA : 00:23:3e:8d:2f:99
Interface : To-GENIE03R07-LAG-9 Up Time : 58d 03:24:48
State : Up Priority : 0
Nbr Sys Typ : L2 L. Circ Typ : L2
Hold Time : 22 Max Hold : 30
Adj Level : L2 MT Enabled : No
Topology : Unicast
IPv6 Neighbor : ::
IPv4 Neighbor : 10.11.79.242
IPv4 Adj SID : Label 524214
Restart Support : Disabled
Restart Status : Not currently being helped
Restart Supressed : Disabled
Number of Restarts: 0
Last Restart at : Never
===============================================================================
Rtr Base ISIS Instance 1 Adjacency (detail)
===============================================================================
Hostname : GENIE01R07
SystemID : 0691.5819.6089 SNPA : 00:23:3e:8f:17:97
Interface : To-GENIE01R07-LAG-7 Up Time : 58d 03:24:48
State : Up Priority : 0
Nbr Sys Typ : L2 L. Circ Typ : L2
Hold Time : 22 Max Hold : 30
Adj Level : L2 MT Enabled : No
Topology : Unicast
IPv6 Neighbor : ::
IPv4 Neighbor : 10.11.97.22
IPv4 Adj SID : Label 524213
Restart Support : Disabled
Restart Status : Not currently being helped
Restart Supressed : Disabled
Number of Restarts: 0
Last Restart at : Never
[]
'''}
sample_parsed_output = {
'instance': {
'0': {
'level': {
'L2': {
'interfaces': {
'To-GENIE01R07-LAG-7': {
'system_id': {
'0691.5819.6089': {
'hold_time': 22,
'hostname': 'GENIE01R07',
'ipv4_adj_sid': 'Label 524213',
'ipv4_neighbor': '10.11.97.22',
'ipv6_neighbor': '::',
'l_circ_typ': 'L2',
'last_restart_at': 'Never',
'max_hold': 30,
'mt_enabled': 'No',
'nbr_sys_typ': 'L2',
'number_of_restarts': 0,
'priority': 0,
'restart_support': 'Disabled',
'restart_supressed': 'Disabled',
'restart_status': 'Not currently being helped',
'snpa': '00:23:3e:8f:17:97',
'state': 'Up',
'topology': 'Unicast',
'up_time': '58d 03:24:48',
},
},
},
'To-GENIE04XR1-LAG-4': {
'system_id': {
'0670.7021.9137': {
'hold_time': 23,
'hostname': 'GENIE04XR1',
'ipv4_adj_sid': 'Label 524127',
'ipv4_neighbor': '10.11.79.245',
'ipv6_neighbor': '::',
'l_circ_typ': 'L2',
'last_restart_at': 'Never',
'max_hold': 30,
'mt_enabled': 'No',
'nbr_sys_typ': 'L2',
'number_of_restarts': 0,
'priority': 0,
'restart_support': 'Disabled',
'restart_supressed': 'Disabled',
'restart_status': 'Not currently being helped',
'snpa': '84:26:2b:bc:2d:e1',
'state': 'Up',
'topology': 'Unicast',
'up_time': '36d 23:21:57',
},
},
},
'To-GENIE03R07-LAG-9': {
'system_id': {
'0691.5819.6091': {
'hold_time': 22,
'hostname': 'GENIE03R07',
'ipv4_adj_sid': 'Label 524214',
'ipv4_neighbor': '10.11.79.242',
'ipv6_neighbor': '::',
'l_circ_typ': 'L2',
'last_restart_at': 'Never',
'max_hold': 30,
'mt_enabled': 'No',
'nbr_sys_typ': 'L2',
'number_of_restarts': 0,
'priority': 0,
'restart_support': 'Disabled',
'restart_supressed': 'Disabled',
'restart_status': 'Not currently being helped',
'snpa': '00:23:3e:8d:2f:99',
'state': 'Up',
'topology': 'Unicast',
'up_time': '58d 03:24:48',
},
},
},
},
},
},
},
'1': {
'level': {
'L2': {
'interfaces': {
'To-GENIE01R07-LAG-7': {
'system_id': {
'0691.5819.6089': {
'hold_time': 22,
'hostname': 'GENIE01R07',
'ipv4_adj_sid': 'Label 524213',
'ipv4_neighbor': '10.11.97.22',
'ipv6_neighbor': '::',
'l_circ_typ': 'L2',
'last_restart_at': 'Never',
'max_hold': 30,
'mt_enabled': 'No',
'nbr_sys_typ': 'L2',
'number_of_restarts': 0,
'priority': 0,
'restart_support': 'Disabled',
'restart_supressed': 'Disabled',
'restart_status': 'Not currently being helped',
'snpa': '00:23:3e:8f:17:97',
'state': 'Up',
'topology': 'Unicast',
'up_time': '58d 03:24:48',
},
},
},
},
},
},
},
},
}
def test_empty(self):
self.dev = Mock(**self.empty_output)
obj = ShowRouterIsisAdjacencyDetail(device=self.dev)
with self.assertRaises(SchemaEmptyParserError):
parsed_output = obj.parse()
def test_golden(self):
self.maxDiff = None
self.dev = Mock(**self.sample_output)
obj = ShowRouterIsisAdjacencyDetail(device=self.dev)
parsed_output = obj.parse()
self.assertEqual(parsed_output,self.sample_parsed_output)
| 46.619529
| 84
| 0.336776
| 967
| 13,846
| 4.695967
| 0.157187
| 0.017617
| 0.015856
| 0.019379
| 0.838141
| 0.819643
| 0.743669
| 0.732658
| 0.727813
| 0.717243
| 0
| 0.091735
| 0.530767
| 13,846
| 297
| 85
| 46.619529
| 0.607203
| 0
| 0
| 0.701754
| 0
| 0
| 0.461442
| 0.054018
| 0
| 0
| 0
| 0
| 0.014035
| 1
| 0.014035
| false
| 0
| 0.021053
| 0
| 0.070175
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
df4af87ae35f03a39ee054e5b6298723ceaa70df
| 15,866
|
py
|
Python
|
MasterServer/MasterServer_pb2_grpc.py
|
wangtl175/Distributed-Key-Value-Store-System
|
c6661686474ef2660a6c4e62c2db6d1f924ebf29
|
[
"MIT"
] | 1
|
2021-03-13T12:43:12.000Z
|
2021-03-13T12:43:12.000Z
|
MasterServer/MasterServer_pb2_grpc.py
|
wangtl175/Distributed-Key-Value-Store-System
|
c6661686474ef2660a6c4e62c2db6d1f924ebf29
|
[
"MIT"
] | null | null | null |
MasterServer/MasterServer_pb2_grpc.py
|
wangtl175/Distributed-Key-Value-Store-System
|
c6661686474ef2660a6c4e62c2db6d1f924ebf29
|
[
"MIT"
] | null | null | null |
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
"""Client and server classes corresponding to protobuf-defined services."""
import grpc
import MasterServer_pb2 as MasterServer__pb2
class MasterServerStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.heart = channel.unary_unary(
'/MasterServer.MasterServer/heart',
request_serializer=MasterServer__pb2.Empty.SerializeToString,
response_deserializer=MasterServer__pb2.Reply.FromString,
)
self.add_chunk = channel.unary_unary(
'/MasterServer.MasterServer/add_chunk',
request_serializer=MasterServer__pb2.Chunk.SerializeToString,
response_deserializer=MasterServer__pb2.Reply.FromString,
)
self.get_chunk = channel.unary_unary(
'/MasterServer.MasterServer/get_chunk',
request_serializer=MasterServer__pb2.Key.SerializeToString,
response_deserializer=MasterServer__pb2.Chunk.FromString,
)
self.insert_key = channel.unary_unary(
'/MasterServer.MasterServer/insert_key',
request_serializer=MasterServer__pb2.Key.SerializeToString,
response_deserializer=MasterServer__pb2.Chunk.FromString,
)
self.delete_key = channel.unary_unary(
'/MasterServer.MasterServer/delete_key',
request_serializer=MasterServer__pb2.Key.SerializeToString,
response_deserializer=MasterServer__pb2.Chunk.FromString,
)
self.replace_chunk = channel.unary_unary(
'/MasterServer.MasterServer/replace_chunk',
request_serializer=MasterServer__pb2.Replace.SerializeToString,
response_deserializer=MasterServer__pb2.Reply.FromString,
)
self.add_secondary = channel.unary_unary(
'/MasterServer.MasterServer/add_secondary',
request_serializer=MasterServer__pb2.Secondary.SerializeToString,
response_deserializer=MasterServer__pb2.Reply.FromString,
)
self.sync_directory = channel.unary_stream(
'/MasterServer.MasterServer/sync_directory',
request_serializer=MasterServer__pb2.Empty.SerializeToString,
response_deserializer=MasterServer__pb2.Directory.FromString,
)
self.sync_chunks = channel.unary_stream(
'/MasterServer.MasterServer/sync_chunks',
request_serializer=MasterServer__pb2.Empty.SerializeToString,
response_deserializer=MasterServer__pb2.Chunk.FromString,
)
self.get_primary = channel.unary_unary(
'/MasterServer.MasterServer/get_primary',
request_serializer=MasterServer__pb2.Empty.SerializeToString,
response_deserializer=MasterServer__pb2.Primary.FromString,
)
class MasterServerServicer(object):
"""Missing associated documentation comment in .proto file."""
def heart(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_chunk(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def get_chunk(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def insert_key(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def delete_key(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def replace_chunk(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_secondary(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def sync_directory(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def sync_chunks(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def get_primary(self, request, context):
"""Missing associated documentation comment in .proto file."""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')
def add_MasterServerServicer_to_server(servicer, server):
rpc_method_handlers = {
'heart': grpc.unary_unary_rpc_method_handler(
servicer.heart,
request_deserializer=MasterServer__pb2.Empty.FromString,
response_serializer=MasterServer__pb2.Reply.SerializeToString,
),
'add_chunk': grpc.unary_unary_rpc_method_handler(
servicer.add_chunk,
request_deserializer=MasterServer__pb2.Chunk.FromString,
response_serializer=MasterServer__pb2.Reply.SerializeToString,
),
'get_chunk': grpc.unary_unary_rpc_method_handler(
servicer.get_chunk,
request_deserializer=MasterServer__pb2.Key.FromString,
response_serializer=MasterServer__pb2.Chunk.SerializeToString,
),
'insert_key': grpc.unary_unary_rpc_method_handler(
servicer.insert_key,
request_deserializer=MasterServer__pb2.Key.FromString,
response_serializer=MasterServer__pb2.Chunk.SerializeToString,
),
'delete_key': grpc.unary_unary_rpc_method_handler(
servicer.delete_key,
request_deserializer=MasterServer__pb2.Key.FromString,
response_serializer=MasterServer__pb2.Chunk.SerializeToString,
),
'replace_chunk': grpc.unary_unary_rpc_method_handler(
servicer.replace_chunk,
request_deserializer=MasterServer__pb2.Replace.FromString,
response_serializer=MasterServer__pb2.Reply.SerializeToString,
),
'add_secondary': grpc.unary_unary_rpc_method_handler(
servicer.add_secondary,
request_deserializer=MasterServer__pb2.Secondary.FromString,
response_serializer=MasterServer__pb2.Reply.SerializeToString,
),
'sync_directory': grpc.unary_stream_rpc_method_handler(
servicer.sync_directory,
request_deserializer=MasterServer__pb2.Empty.FromString,
response_serializer=MasterServer__pb2.Directory.SerializeToString,
),
'sync_chunks': grpc.unary_stream_rpc_method_handler(
servicer.sync_chunks,
request_deserializer=MasterServer__pb2.Empty.FromString,
response_serializer=MasterServer__pb2.Chunk.SerializeToString,
),
'get_primary': grpc.unary_unary_rpc_method_handler(
servicer.get_primary,
request_deserializer=MasterServer__pb2.Empty.FromString,
response_serializer=MasterServer__pb2.Primary.SerializeToString,
),
}
generic_handler = grpc.method_handlers_generic_handler(
'MasterServer.MasterServer', rpc_method_handlers)
server.add_generic_rpc_handlers((generic_handler,))
# This class is part of an EXPERIMENTAL API.
class MasterServer(object):
"""Missing associated documentation comment in .proto file."""
@staticmethod
def heart(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/MasterServer.MasterServer/heart',
MasterServer__pb2.Empty.SerializeToString,
MasterServer__pb2.Reply.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def add_chunk(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/MasterServer.MasterServer/add_chunk',
MasterServer__pb2.Chunk.SerializeToString,
MasterServer__pb2.Reply.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def get_chunk(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/MasterServer.MasterServer/get_chunk',
MasterServer__pb2.Key.SerializeToString,
MasterServer__pb2.Chunk.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def insert_key(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/MasterServer.MasterServer/insert_key',
MasterServer__pb2.Key.SerializeToString,
MasterServer__pb2.Chunk.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def delete_key(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/MasterServer.MasterServer/delete_key',
MasterServer__pb2.Key.SerializeToString,
MasterServer__pb2.Chunk.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def replace_chunk(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/MasterServer.MasterServer/replace_chunk',
MasterServer__pb2.Replace.SerializeToString,
MasterServer__pb2.Reply.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def add_secondary(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/MasterServer.MasterServer/add_secondary',
MasterServer__pb2.Secondary.SerializeToString,
MasterServer__pb2.Reply.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def sync_directory(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_stream(request, target, '/MasterServer.MasterServer/sync_directory',
MasterServer__pb2.Empty.SerializeToString,
MasterServer__pb2.Directory.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def sync_chunks(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_stream(request, target, '/MasterServer.MasterServer/sync_chunks',
MasterServer__pb2.Empty.SerializeToString,
MasterServer__pb2.Chunk.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@staticmethod
def get_primary(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/MasterServer.MasterServer/get_primary',
MasterServer__pb2.Empty.SerializeToString,
MasterServer__pb2.Primary.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
| 43.587912
| 107
| 0.645279
| 1,408
| 15,866
| 6.983665
| 0.072443
| 0.094579
| 0.050849
| 0.048917
| 0.87664
| 0.854978
| 0.798434
| 0.779111
| 0.708634
| 0.687278
| 0
| 0.005415
| 0.278331
| 15,866
| 363
| 108
| 43.707989
| 0.853362
| 0.0612
| 0
| 0.657051
| 1
| 0
| 0.090583
| 0.05239
| 0
| 0
| 0
| 0
| 0
| 1
| 0.070513
| false
| 0
| 0.00641
| 0.032051
| 0.11859
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
df810f766ac032bd1a8acd76c0bfff2a5f05effa
| 397
|
py
|
Python
|
303.range-sum-query-immutable.py
|
tsonglew/leetcode-solution
|
abce0c36def55a8d3bf86fca531246a29920e771
|
[
"Unlicense"
] | null | null | null |
303.range-sum-query-immutable.py
|
tsonglew/leetcode-solution
|
abce0c36def55a8d3bf86fca531246a29920e771
|
[
"Unlicense"
] | null | null | null |
303.range-sum-query-immutable.py
|
tsonglew/leetcode-solution
|
abce0c36def55a8d3bf86fca531246a29920e771
|
[
"Unlicense"
] | null | null | null |
class NumArray:
def __init__(self, nums: List[int]):
self.nums_sum = [0]*len(nums)
for i, _ in enumerate(nums):
self.nums_sum[i] = self.nums_sum[i-1] + (nums[i] if i > 0 else nums[i])
def sumRange(self, left: int, right: int) -> int:
return self.nums_sum[right] - self.nums_sum[left] + self.nums_sum[left] - (self.nums_sum[left-1] if left > 0 else 0)
| 39.7
| 124
| 0.607053
| 67
| 397
| 3.41791
| 0.328358
| 0.279476
| 0.336245
| 0.196507
| 0.196507
| 0.196507
| 0.196507
| 0.196507
| 0
| 0
| 0
| 0.019737
| 0.234257
| 397
| 9
| 125
| 44.111111
| 0.733553
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.285714
| false
| 0
| 0
| 0.142857
| 0.571429
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
10c78dc6410c3747583e9c4164a76821855cd1e1
| 116
|
py
|
Python
|
Web/utils/functions.py
|
CabbSir/CAU_Graduate_Course_Schedule
|
63765875a413c2fc9a13eaeda26271325ceea2d0
|
[
"MIT"
] | null | null | null |
Web/utils/functions.py
|
CabbSir/CAU_Graduate_Course_Schedule
|
63765875a413c2fc9a13eaeda26271325ceea2d0
|
[
"MIT"
] | null | null | null |
Web/utils/functions.py
|
CabbSir/CAU_Graduate_Course_Schedule
|
63765875a413c2fc9a13eaeda26271325ceea2d0
|
[
"MIT"
] | null | null | null |
from flask import request
def get_real_ip():
return request.environ.get('HTTP_X_REAL_IP', request.remote_addr)
| 23.2
| 69
| 0.784483
| 19
| 116
| 4.473684
| 0.736842
| 0.141176
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.12069
| 116
| 5
| 69
| 23.2
| 0.833333
| 0
| 0
| 0
| 0
| 0
| 0.119658
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.333333
| true
| 0
| 0.333333
| 0.333333
| 1
| 0
| 1
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 1
| 0
| 1
| 1
| 1
| 0
|
0
| 7
|
802b48e84d76a8785f59939db8669bb4e6dff6ad
| 86,974
|
py
|
Python
|
vendor/github.com/avinetworks/sdk/python/avi/migrationtools/f5_converter/profile_converter.py
|
avinetworks/servicemesh
|
4b4864e1327f09fa0bc047770af7e477a32f9d94
|
[
"Apache-2.0"
] | 4
|
2017-06-16T18:51:52.000Z
|
2020-02-11T15:22:42.000Z
|
vendor/github.com/avinetworks/sdk/python/avi/migrationtools/f5_converter/profile_converter.py
|
sudswasavi/servicemesh
|
4f07c228e9b62c9b621cb0bfc464c75e85351f7f
|
[
"Apache-2.0"
] | 17
|
2019-01-11T05:57:35.000Z
|
2019-08-29T05:33:38.000Z
|
vendor/github.com/avinetworks/sdk/python/avi/migrationtools/f5_converter/profile_converter.py
|
sudswasavi/servicemesh
|
4f07c228e9b62c9b621cb0bfc464c75e85351f7f
|
[
"Apache-2.0"
] | 8
|
2017-06-26T18:15:58.000Z
|
2021-04-12T08:09:03.000Z
|
import copy
import logging
import os
import yaml
import avi.migrationtools.f5_converter.converter_constants as final
from avi.migrationtools.f5_converter.conversion_util import F5Util
from avi.migrationtools.avi_migration_utils import update_count
LOG = logging.getLogger(__name__)
ssl_count = {'count': 0}
# Creating f5 object for util library.
conv_utils = F5Util()
class ProfileConfigConv(object):
@classmethod
def get_instance(cls, version, f5_profile_attributes,
object_merge_check, prefix, keypassphrase):
"""
:param version: version of f5 instance
:param f5_profile_attributes: yaml attribute file for object
:param object_merge_check: Flag for object merge
:param prefix: prefix for objects
:param keypassphrase: path of keypassphrase
:return: object of respective f5 version object.
"""
f5_profile_attributes = f5_profile_attributes
if version == '10':
return ProfileConfigConvV10(
f5_profile_attributes, object_merge_check, prefix,
keypassphrase)
if version in ['11', '12']:
return ProfileConfigConvV11(
f5_profile_attributes, object_merge_check, prefix,
keypassphrase)
default_key = None
ciphers = 'ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-SHA:ECDHE-' \
'ECDSA-AES256-SHA:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-ECDSA-' \
'AES128-SHA256:ECDHE-ECDSA-AES256-SHA384:AES128-GCM-SHA256:' \
'AES256-GCM-SHA384:AES128-SHA256:AES256-SHA256:AES128-SHA:' \
'AES256-SHA:DES-CBC3-SHA'
def convert_profile(self, profile, key, f5_config, profile_config,
avi_config, input_dir, user_ignore, tenant_ref,
key_and_cert_mapping_list, merge_object_mapping,
sys_dict):
pass
def convert(self, f5_config, avi_config, input_dir, user_ignore,
tenant_ref, cloud_ref, merge_object_mapping, sys_dict):
"""
:param f5_config: parsed f5 config dict.
:param avi_config: avi config dict for converted avi conversion.
:param input_dir: Location of cert and external monitor script files
:param user_ignore: Ignore config defined by user
:param tenant_ref: tenant ref for avi objects
:param cloud_ref: cloud ref for avi objects
:param merge_object_mapping: merged object dict for merging objects
:param sys_dict: baseline objects
:return:
"""
profile_config = f5_config.get("profile", {})
avi_config["StringGroup"] = []
avi_config['HTTPPolicySet'] = []
avi_config['OneConnect'] = []
key_and_cert_mapping_list = []
persistence = f5_config.get("persistence", None)
if not persistence:
f5_config['persistence'] = {}
avi_config['UnsupportedProfiles'] = []
print "\nConverting Profiles ..."
# Added variable to get total object count.
progressbar_count = 0
total_size = len(profile_config.keys())
for key in profile_config.keys():
progressbar_count += 1
profile_type = None
name = None
try:
profile_type, name = key.split(" ")
tenant, name = conv_utils.get_tenant_ref(name)
if not tenant_ref == 'admin':
tenant = tenant_ref
if profile_type not in self.supported_types:
msg = ("Skipped not supported profile: %s of type: %s"
% (name, profile_type))
LOG.warning(msg)
conv_utils.add_status_row('profile', profile_type, name,
final.STATUS_SKIPPED, msg)
avi_config['UnsupportedProfiles'].append(name)
continue
# Added prefix for objects
if self.prefix:
name = self.prefix + '-' + name
LOG.debug("Converting profile: %s" % name)
profile = profile_config[key]
if not profile:
LOG.warn('Empty config for profile %s Skipping the config'
% name)
conv_utils.add_status_row(
'profile', profile_type, name,
final.STATUS_NOT_APPLICABLE, 'Empty config')
continue
# print key, profile
profile = self.update_with_default_profile(
profile_type, profile, profile_config, name)
u_ignore = user_ignore.get('profile', {})
self.convert_profile(
profile, key, f5_config, profile_config, avi_config,
input_dir, u_ignore, tenant, key_and_cert_mapping_list,
merge_object_mapping, sys_dict)
LOG.debug("Conversion successful for profile: %s" % name)
except:
update_count('error')
LOG.error("Failed to convert profile: %s" % key, exc_info=True)
if name:
conv_utils.add_status_row('profile', profile_type, name,
final.STATUS_ERROR)
else:
conv_utils.add_status_row('profile', key, key,
final.STATUS_ERROR)
# Added call to check progress.
msg = "Profile conversion started..."
conv_utils.print_progress_bar(progressbar_count, total_size, msg,
prefix='Progress', suffix='')
count = len(avi_config["SSLProfile"])
count += len(avi_config["PKIProfile"])
count += len(avi_config["ApplicationProfile"])
count += len(avi_config["NetworkProfile"])
LOG.debug("Converted %s profiles" % count)
f5_config.pop("profile")
del key_and_cert_mapping_list
def update_with_default_profile(self, profile_type, profile,
profile_config, profile_name):
"""
Profiles can have inheritance used by attribute defaults-from in F5
configuration this method recursively gets all the attributes from the
default objects and forms complete object
:param profile_type: type of profile
:param profile: currant profile object
:param profile_config: F5 profile config dict
:param profile_name: Name of profile
:return: Complete profile with updated attributes from defaults
"""
parent_name = profile.get(self.default_key, None)
if parent_name and '/' in parent_name:
parent_name = parent_name.split('/')[-1]
if parent_name and profile_name != parent_name:
parent_profile = profile_config.get(profile_type + " " +
parent_name, None)
if parent_profile:
parent_profile = self.update_with_default_profile(
profile_type, parent_profile, profile_config, parent_name)
parent_profile = copy.deepcopy(parent_profile)
parent_profile.update(profile)
profile = parent_profile
return profile
def update_key_cert_obj(self, name, key_file_name, cert_file_name,
input_dir, tenant, avi_config, converted_objs,
default_profile_name, key_and_cert_mapping_list,
merge_object_mapping, sys_dict):
"""
This method create the certs if certificate not present at location
it create dummy certificate.
:param name: name of certificate.
:param key_file_name: name of keyfile of cert
:param cert_file_name: name of cert file
:param input_dir: location of cert and key
:param tenant: tenant name
:param avi_config: converted avi config dict
:param converted_objs: list of converted object profile
:param default_profile_name: name of default profile name.
:param key_and_cert_mapping_list: list of key and cert
:param merge_object_mapping: merged object dict for merging objects
:param sys_dict: baseline objects
:return:
"""
cert_name = [cert['name'] for cert in key_and_cert_mapping_list if
cert['key_file_name'] == key_file_name and
cert['cert_file_name'] == cert_file_name]
if cert_name:
LOG.warning(
'SSL key and Certificate is already exist for %s and %s is %s' %
(key_file_name, cert_file_name, cert_name[0]))
return
folder_path = input_dir + os.path.sep
key = None
cert = None
if key_file_name and cert_file_name:
# Removed / from key_file_name to get name of file.
if '/' in key_file_name:
key_file_name = key_file_name.split('/')[-1]
# Removed / from cert_file_name to get name of file.
if '/' in cert_file_name:
cert_file_name = cert_file_name.split('/')[-1]
key = conv_utils.upload_file(folder_path + key_file_name)
cert = conv_utils.upload_file(folder_path + cert_file_name)
is_key_protected = False
if key:
# Check kay is passphrase protected or not
is_key_protected = conv_utils.is_certificate_key_protected(
input_dir + os.path.sep + key_file_name)
if cert and key:
# Flag to check expiry date of certificate. if expired then
# create dummy certificate.
if not conv_utils.check_certificate_expiry(input_dir,
cert_file_name):
cert, key = None, None
key_passphrase = None
# Get the key passphrase for key_file
if is_key_protected and self.f5_passphrase_keys:
key_passphrase = self.f5_passphrase_keys.get(key_file_name, None)
if is_key_protected and not key_passphrase:
key = None
if not key or not cert:
key, cert = conv_utils.create_self_signed_cert()
name += '-dummy'
LOG.warning('Create self cerificate and key for : %s' % name)
ssl_kc_obj = None
if key and cert:
cert = {"certificate": cert}
ssl_kc_obj = {
'name': name,
'tenant_ref': conv_utils.get_object_ref(tenant, 'tenant'),
'key': key,
'certificate': cert,
'type': 'SSL_CERTIFICATE_TYPE_VIRTUALSERVICE'
}
if key_passphrase:
ssl_kc_obj['key_passphrase'] = key_passphrase
if ssl_kc_obj:
cert_obj = {'key_file_name': key_file_name,
'cert_file_name': cert_file_name,
'name': name
}
key_and_cert_mapping_list.append(cert_obj)
LOG.info('Added new SSL key and certificate for %s' % name)
if ssl_kc_obj:
if self.object_merge_check:
if 'dummy' not in ssl_kc_obj['name']:
conv_utils.update_skip_duplicates(ssl_kc_obj,
avi_config['SSLKeyAndCertificate'],'ssl_cert_key',
converted_objs, name, default_profile_name,
merge_object_mapping, None, self.prefix, sys_dict[
'SSLKeyAndCertificate'])
else:
converted_objs.append({'ssl_cert_key': ssl_kc_obj})
avi_config['SSLKeyAndCertificate'].append(ssl_kc_obj)
self.certkey_count += 1
else:
converted_objs.append({'ssl_cert_key': ssl_kc_obj})
avi_config['SSLKeyAndCertificate'].append(ssl_kc_obj)
def update_ca_cert_obj(self, name, ca_cert_file_name, input_dir, tenant,
avi_config, converted_objs, merge_object_mapping,
sys_dict):
"""
This method create the certs if certificate not present at location
it create dummy certificate.
:param name: name of certificate.
:param key_file_name: name of keyfile of cert
:param cert_file_name: name of cert file
:param input_dir: location of cert and key
:param tenant: tenant name
:param avi_config: converted avi config dict
:param converted_objs: list of converted object profile
:param default_profile_name: name of default profile name.
:param key_and_cert_mapping_list: list of key and cert
:param merge_object_mapping: merged object dict for merging objects
:param sys_dict: baseline objects
:return:
"""
cert_name = [cert['name'] for cert in avi_config['SSLKeyAndCertificate']
if cert['name'] == name and
cert['type'] == 'SSL_CERTIFICATE_TYPE_CA']
if cert_name:
LOG.warning(
'SSL ca cert is already exist for %s is %s' % (
ca_cert_file_name, cert_name[0]))
return
folder_path = input_dir + os.path.sep
ca_cert = None
# Removed / from cert_file_name to get name of file.
if ca_cert_file_name:
if '/' in ca_cert_file_name:
ca_cert_file_name = ca_cert_file_name.split('/')[-1]
if ':' in ca_cert_file_name:
ca_cert_file_name = ca_cert_file_name.split(':')[-1]
ca_cert = conv_utils.upload_file(folder_path + ca_cert_file_name)
if ca_cert:
if not conv_utils.check_certificate_expiry(
input_dir, ca_cert_file_name):
ca_cert = None
if not ca_cert:
key, ca_cert = conv_utils.create_self_signed_cert()
name += '-dummy'
LOG.warning('Create self cerificate and key for : %s' % name)
ca_cert_obj = None
cert_name = name
if ca_cert_file_name and '.crt' in ca_cert_file_name:
if ':' in ca_cert_file_name:
ca_cert_file_name = ca_cert_file_name.split(':')[-1]
ca_cert_file_name = '%s.crt' % ca_cert_file_name.split('.crt')[0]
if not ca_cert_file_name:
ca_cert_file_name = name
if ca_cert:
cert = {"certificate": ca_cert}
ca_cert_obj = {
'name': ca_cert_file_name,
'tenant_ref': conv_utils.get_object_ref(tenant, 'tenant'),
'certificate': cert,
'type': 'SSL_CERTIFICATE_TYPE_CA'
}
LOG.info('Added new ca certificate for %s' % name)
if ca_cert_obj and self.object_merge_check:
if 'dummy' not in ca_cert_obj['name']:
conv_utils.update_skip_duplicates(
ca_cert_obj, avi_config['SSLKeyAndCertificate'],
'ssl_cert_key', converted_objs, name, None,
merge_object_mapping, None, self.prefix,
sys_dict['SSLKeyAndCertificate'])
else:
converted_objs.append({'ssl_cert_key': ca_cert_obj})
avi_config['SSLKeyAndCertificate'].append(ca_cert_obj)
self.certkey_count += 1
else:
converted_objs.append({'ssl_cert_key': ca_cert_obj})
avi_config['SSLKeyAndCertificate'].append(ca_cert_obj)
class ProfileConfigConvV11(ProfileConfigConv):
def __init__(self, f5_profile_attributes, object_merge_check, prefix,
keypassphrase):
"""
:param f5_profile_attributes: f5 profile attributes from yaml file.
:param object_merge_check: flag for merging objects
:param prefix: prefix for objects
:param keypassphrase: keypassphrase yaml file location
"""
self.supported_types = \
f5_profile_attributes['Profile_supported_types']
self.ignore_for_defaults = \
f5_profile_attributes['Profile_ignore_for_defaults']
self.default_key = "defaults-from"
self.na_ssl = f5_profile_attributes['Profile_na_ssl']
self.indirect_ssl = f5_profile_attributes['Profile_indirect_ssl']
self.supported_ssl = f5_profile_attributes['Profile_supported_ssl']
self.na_http = f5_profile_attributes['Profile_na_http']
self.supported_http = f5_profile_attributes['Profile_supported_http']
self.indirect_http = f5_profile_attributes['Profile_indirect_http']
self.na_dns = f5_profile_attributes['Profile_na_dns']
self.supported_dns = f5_profile_attributes['Profile_supported_dns']
self.indirect_dns = f5_profile_attributes['Profile_indirect_dns']
self.supported_hc = f5_profile_attributes['Profile_supported_hc']
self.na_hc = f5_profile_attributes['Profile_na_hc']
self.indirect_hc = f5_profile_attributes['Profile_indirect_hc']
self.supported_wa = f5_profile_attributes['Profile_supported_wa']
self.indirect_wa = f5_profile_attributes['Profile_indirect_wa']
self.supported_l4 = f5_profile_attributes['Profile_supported_l4']
self.na_l4 = f5_profile_attributes['profile_na_l4']
self.indirect_l4 = f5_profile_attributes['Profile_indirect_l4']
self.supported_fh = f5_profile_attributes['Profile_supported_fh']
self.indirect_fh = f5_profile_attributes['Profile_indirect_fh']
self.na_fh = f5_profile_attributes['Profile_na_fh']
self.supported_tcp = f5_profile_attributes['Profile_supported_tcp']
self.indirect_tcp = f5_profile_attributes['Profile_indirect_tcp']
self.na_tcp = f5_profile_attributes['Profile_na_tcp']
self.supported_udp = f5_profile_attributes['Profile_supported_udp']
self.indirect_udp = f5_profile_attributes['Profile_indirect_udp']
self.supported_oc = f5_profile_attributes['Profile_supported_oc']
if keypassphrase:
self.f5_passphrase_keys = yaml.safe_load(open(keypassphrase))
else:
self.f5_passphrase_keys = None
self.object_merge_check = object_merge_check
# added code to handel count of sslmerge, applicationmerge,
# networkmerge count, certkey_count
self.app_count = 0
self.net_count = 0
self.pki_count = 0
self.certkey_count = 0
# Added prefix for objects
self.prefix = prefix
def convert_profile(self, profile, key, f5_config, profile_config,
avi_config, input_dir, user_ignore, tenant_ref,
key_and_cert_mapping_list, merge_object_mapping,
sys_dict):
"""
:param profile: parsed dict of profile
:param key: key which contain combination of profile type and name
:param f5_config: parsed f5 config dict
:param profile_config:
:param avi_config: dict for avi config conversion.
:param input_dir: Location of input key and cert
:param user_ignore: Ignore config defined by user
:param tenant_ref: Tenant for which config need to be converted
:param key_and_cert_mapping_list: list of key and cert mapping list
:param merge_object_mapping: flag to merge the objects
:param sys_dict: baseline objects
:return:
"""
skipped = profile.keys()
indirect = []
converted_objs = []
na_list = []
u_ignore = []
parent_cls = super(ProfileConfigConvV11, self)
profile_type, name = key.split(' ')
tenant, name = conv_utils.get_tenant_ref(name)
if not tenant_ref == 'admin':
tenant = tenant_ref
default_profile_name = '%s %s' % (profile_type,
profile_type.replace('-', ''))
default_ignore = f5_config['profile'].get(default_profile_name, {})
default_ignore.update(self.ignore_for_defaults)
default_profile_name = profile_type.replace('-', '')
# Added prefix for objects
if self.prefix:
name = '%s-%s' % (self.prefix, name)
default_profile_name = '%s-%s' % (self.prefix, default_profile_name)
if profile_type in ('client-ssl', 'server-ssl'):
supported_attr = self.supported_ssl
na_list = self.na_ssl
indirect = self.indirect_ssl
u_ignore = user_ignore.get('client-ssl', [])
u_ignore += user_ignore.get('server-ssl', [])
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
original_prof = profile_config.get(key, None)
inherit_key = original_prof.get('inherit-certkeychain', 'true')
if inherit_key == 'false':
profile['cert-key-chain'] = original_prof.get(
"cert-key-chain", None)
profile['key'] = original_prof.get("key", None)
profile['cert'] = original_prof.get("cert", None)
cert_obj = profile.get("cert-key-chain", None)
if cert_obj and cert_obj.keys():
cert_obj_key = cert_obj.keys()[0]
key_file = cert_obj.get(cert_obj_key, {}).get("key", None)
cert_file = cert_obj.get(cert_obj_key, {}).get("cert", None)
else:
cert_file = profile.get("cert", None)
key_file = profile.get("key", None)
cert_file = None if cert_file == 'none' else cert_file
key_file = None if key_file == 'none' else key_file
cert_name = cert_file
if cert_name:
cert_name = cert_name.split('/')[-1]
else:
cert_name = name
# Added for getting correct file names from cache path in sys file
sys_file = f5_config.get('file', {})
for file_key in sys_file:
file_type, file_name = file_key.split(' ')
if file_type in ('ssl-key', 'ssl-cert'):
if file_type == 'ssl-key' and file_name == key_file and \
sys_file[file_key].get('cache-path'):
key_file = sys_file[file_key]['cache-path'].rsplit(
'/', 1)[-1]
elif file_type == 'ssl-cert' and file_name == cert_file \
and sys_file[file_key].get('cache-path'):
cert_file = sys_file[file_key]['cache-path'].rsplit(
'/', 1)[-1]
parent_cls.update_key_cert_obj(
cert_name, key_file, cert_file, input_dir, tenant_ref,
avi_config, converted_objs, default_profile_name,
key_and_cert_mapping_list, merge_object_mapping, sys_dict)
if profile.get('chain', 'none') != 'none':
LOG.debug("Migrating root/intermediate cert for %s" % name)
ca_cert_file = None
for file_key in sys_file:
file_type, file_name = file_key.split(' ')
if (file_type == 'ssl-cert' and
file_name == profile['chain'] and
sys_file[file_key].get('cache-path')):
ca_cert_file = sys_file[file_key][
'cache-path'].rsplit('/', 1)[-1]
break
self.update_ca_cert_obj(
name, ca_cert_file, input_dir, tenant, avi_config,
converted_objs, merge_object_mapping,
sys_dict)
# ciphers = profile.get('ciphers', 'DEFAULT')
# ciphers = 'AES:3DES:RC4' if ciphers == 'DEFAULT' else ciphers
# ciphers = ciphers.replace(":@SPEED", "")
ssl_profile = dict()
ssl_profile['name'] = name
ssl_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
if cert_name:
ssl_profile['cert_name'] = cert_name
ssl_profile['accepted_ciphers'] = self.ciphers
close_notify = profile.get('unclean-shutdown', None)
if close_notify and close_notify == 'enabled':
ssl_profile['send_close_notify'] = True
else:
ssl_profile['send_close_notify'] = False
options = profile.get("options", {})
options = {} if options == 'none' else options
options = options.keys()+options.values()
if None in options:
options.remove(None)
accepted_versions = []
if "no-tlsv1" not in options:
accepted_versions.append({"type": "SSL_VERSION_TLS1"})
if "no-tlsv1.1" not in options:
accepted_versions.append({"type": "SSL_VERSION_TLS1_1"})
if "no-tlsv1.2" not in options:
accepted_versions.append({"type": "SSL_VERSION_TLS1_2"})
if accepted_versions:
ssl_profile["accepted_versions"] = accepted_versions
if self.object_merge_check:
conv_utils.update_skip_duplicates(
ssl_profile, avi_config['SSLProfile'], 'ssl_profile',
converted_objs, name, default_profile_name,
merge_object_mapping, profile_type, self.prefix,
sys_dict['SSLProfile'])
ssl_count['count'] += 1
else:
converted_objs.append({'ssl_profile': ssl_profile})
avi_config['SSLProfile'].append(ssl_profile)
crl_file_name = profile.get('crl-file', None)
ca_file_name = profile.get('ca-file', None)
if crl_file_name and crl_file_name != 'none':
crl_file_name = crl_file_name.replace('\"', '').strip()
else:
crl_file_name = None
if ca_file_name and ca_file_name != 'none':
ca_file_name = ca_file_name.replace('\"', '').strip()
else:
ca_file_name = None
if ca_file_name:
pki_profile = dict()
file_path = input_dir+os.path.sep+ca_file_name
pki_profile["name"] = name
pki_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
pc_mode = profile.get('peer-cert-mode', 'ignore')
if pc_mode == 'ignore':
pc_mode = 'SSL_CLIENT_CERTIFICATE_NONE'
elif pc_mode == 'request':
pc_mode = 'SSL_CLIENT_CERTIFICATE_REQUEST'
elif pc_mode == 'require':
pc_mode = 'SSL_CLIENT_CERTIFICATE_REQUIRE'
pki_profile['mode'] = pc_mode
error = False
ca = conv_utils.upload_file(file_path)
if ca:
pki_profile["ca_certs"] = [{'certificate': ca}]
else:
error = True
if crl_file_name:
file_path = input_dir+os.path.sep+crl_file_name
crl = conv_utils.upload_file(file_path)
if crl:
pki_profile["crls"] = [{'body': crl}]
else:
error = True
else:
pki_profile['crl_check'] = False
if not error:
if self.object_merge_check:
conv_utils.update_skip_duplicates(pki_profile,
avi_config['PKIProfile'], 'pki_profile',
converted_objs, name, default_profile_name,
merge_object_mapping, None, self.prefix,
sys_dict['PKIProfile'])
self.pki_count += 1
else:
converted_objs.append({'pki_profile': pki_profile})
avi_config['PKIProfile'].append(pki_profile)
elif profile_type == 'http':
supported_attr = self.supported_http
na_list = self.na_http
u_ignore = user_ignore.get('http', [])
indirect = self.indirect_http
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
app_profile = dict()
app_profile['name'] = name
app_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
app_profile['type'] = 'APPLICATION_PROFILE_TYPE_HTTP'
app_profile['description'] = profile.get('description', None)
encpt_cookie = profile.get('encrypt-cookies', 'none')
encpt_cookie = False if encpt_cookie == 'none' else True
# xff_enabled = profile.get('accept-xff', 'disabled')
# xff_enabled = False if xff_enabled == 'disabled' else True
con_mltplxng = profile.get('oneconnect-transformations',
'disabled')
con_mltplxng = False if con_mltplxng == 'disabled' else True
http_profile = dict()
insert_xff = profile.get('insert-xforwarded-for', 'disabled')
insert_xff = True if insert_xff == 'enabled' else False
http_profile['x_forwarded_proto_enabled'] = insert_xff
xff_alt_names = profile.get('xff-alternative-names', None)
xff_alt_names = None if xff_alt_names == 'none' else xff_alt_names
http_profile['xff_alternate_name'] = xff_alt_names
http_profile['secure_cookie_enabled'] = encpt_cookie
http_profile['xff_enabled'] = insert_xff
http_profile['connection_multiplexing_enabled'] = con_mltplxng
enforcement = profile.get('enforcement', None)
if enforcement:
header_size = enforcement.get('max-header-size',
final.DEFAULT_MAX_HEADER)
http_profile['client_max_header_size'] = \
int(header_size)/final.BYTES_IN_KB
enf_skipped = [enf for enf in enforcement.keys()
if enf not in ["max-header-size"]]
skipped.append({"enforcement": enf_skipped})
app_profile["http_profile"] = http_profile
header_erase = profile.get('header-erase', None)
header_erase = None if header_erase == 'none' else header_erase
if header_erase:
header_erase = header_erase.replace('\"', '').strip()
header_insert = profile.get('header-insert', None)
header_insert = None if header_insert == 'none' else header_insert
if header_insert:
header_insert = header_insert.replace('\"', '').strip()
if header_erase or header_insert:
rules = []
rule_index = 1
# Added condition of header insert and header erase present then
# create common rule with more action.
if header_erase and header_insert:
header_erase = header_erase.split(':')[0]
header, val = header_insert.split(':')
header_erase_rule = conv_utils.create_hdr_erase_rule(
'rule-header-erase', header_erase, rule_index)
header_insert_rule = conv_utils.create_hdr_insert_rule(
'rule-header-insert', header, val, rule_index)
header_erase_rule['hdr_action'].append(header_insert_rule[
'hdr_action'][0])
rules.append(header_erase_rule)
elif header_erase:
if ':' in header_erase:
header_erase = header_erase.split(':', 1)[0]
rules.append(conv_utils.create_hdr_erase_rule(
'rule-header-erase', header_erase, rule_index))
elif header_insert:
header, val = header_insert.split(':', 1)
rules.append(conv_utils.create_hdr_insert_rule(
'rule-header-insert', header, val, rule_index))
rule_index += 1
policy_name = name + '-HTTP-Policy-Set'
policy = {
"name": policy_name,
"http_request_policy": {
"rules": rules
},
"is_internal_policy": False
}
policy['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
avi_config['HTTPPolicySet'].append(policy)
app_profile["HTTPPolicySet"] = policy_name
converted_objs.append({'policy_set': policy})
realm = profile.get("basic-auth-realm", 'none')
realm = None if realm == 'none' else realm
if realm:
app_profile['realm'] = realm
host = profile.get("fallback-host", 'none')
host = None if host == 'none' else host
if host:
app_profile['fallback_host'] = host
# code to merge application profile count.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
app_profile, avi_config['ApplicationProfile'],
'app_profile', converted_objs, name, default_profile_name,
merge_object_mapping, profile_type, self.prefix,
sys_dict['ApplicationProfile'])
self.app_count += 1
else:
converted_objs.append({'app_profile': app_profile})
avi_config['ApplicationProfile'].append(app_profile)
elif profile_type == 'dns':
supported_attr = self.supported_dns
na_list = self.na_dns
u_ignore = user_ignore.get('dns', [])
indirect = self.indirect_dns
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
app_profile = dict()
app_profile['name'] = name
app_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
app_profile['type'] = 'APPLICATION_PROFILE_TYPE_DNS'
app_profile['description'] = profile.get('description', None)
# code to merge application profile count.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
app_profile, avi_config['ApplicationProfile'],
'app_profile', converted_objs, name, default_profile_name,
merge_object_mapping, profile_type, self.prefix,
sys_dict['ApplicationProfile'])
self.app_count += 1
else:
converted_objs.append({'app_profile': app_profile})
avi_config['ApplicationProfile'].append(app_profile)
elif profile_type == 'web-acceleration':
supported_attr = self.supported_wa
indirect = self.indirect_wa
u_ignore = user_ignore.get('web-acceleration', [])
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
app_profile = dict()
app_profile['name'] = name
app_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
app_profile['type'] = 'APPLICATION_PROFILE_TYPE_HTTP'
app_profile['description'] = profile.get('description', None)
cache_config = dict()
cache_config['min_object_size'] = profile.get(
'cache-object-min-size', final.MIN_CACHE_OBJ_SIZE)
cache_config['query_cacheable'] = True
cache_config['max_object_size'] = profile.get(
'cache-object-max-size', final.MAX_CACHE_OBJ_SIZE)
age_header = profile.get('cache-insert-age-header', 'disabled')
if age_header == 'enabled':
cache_config['age_header'] = True
else:
cache_config['age_header'] = False
cache_config['enabled'] = True
cache_config['default_expire'] = \
profile.get('cache-max-age', final.DEFAULT_CACHE_MAX_AGE)
max_entities = profile.get('cache-max-entries', 0)
cache_config['max_cache_size'] = \
(int(max_entities) * int(cache_config['max_object_size']))
exclude_uri = profile.get("cache-uri-exclude", None)
include_uri = profile.get("cache-uri-include", None)
if exclude_uri and isinstance(exclude_uri, dict):
exclude_uri = exclude_uri.keys() + exclude_uri.values()
if None in exclude_uri:
exclude_uri.remove(None)
cache_config['mime_types_black_list'] = exclude_uri
if include_uri and isinstance(include_uri, dict):
include_uri = include_uri.keys() + include_uri.values()
if None in include_uri:
include_uri.remove(None)
cache_config['mime_types_list'] = include_uri
http_profile = dict()
http_profile["cache_config"] = cache_config
app_profile["http_profile"] = http_profile
# code to merge application profile count.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
app_profile, avi_config['ApplicationProfile'],
'app_profile', converted_objs, name, default_profile_name,
merge_object_mapping, profile_type, self.prefix,
sys_dict['ApplicationProfile'])
self.app_count += 1
else:
converted_objs.append({'app_profile': app_profile})
avi_config['ApplicationProfile'].append(app_profile)
elif profile_type == 'http-compression':
supported_attr = self.supported_hc
u_ignore = user_ignore.get('http-compression', [])
na_list = self.na_hc
indirect = self.indirect_hc
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
app_profile = dict()
app_profile['name'] = name
app_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
app_profile['type'] = 'APPLICATION_PROFILE_TYPE_HTTP'
app_profile['description'] = profile.get('description', None)
compression_profile = dict()
compression_profile["type"] = "AUTO_COMPRESSION"
compression_profile["compression"] = True
encoding = profile.get("keep-accept-encoding", "disable")
if encoding == "disable":
encoding = True
else:
encoding = False
compression_profile["remove_accept_encoding_header"] = encoding
content_type = profile.get("content-type-include", "")
ct_exclude = profile.get("content-type-exclude", "")
ct_exclude = None if ct_exclude == 'none' else ct_exclude
http_profile = dict()
if content_type:
content_type = content_type.keys()+content_type.values()
elif ct_exclude:
content_type = final.DEFAULT_CONTENT_TYPE
if ct_exclude:
ct_exclude = ct_exclude.keys() + ct_exclude.values()
content_type = [ct for ct in content_type
if ct not in ct_exclude]
if content_type:
sg_obj = conv_utils.get_content_string_group(
name, content_type, tenant_ref)
avi_config['StringGroup'].append(sg_obj)
converted_objs.append({'string_group': sg_obj})
cc_ref = name + "-content_type"
cc_ref = conv_utils.get_object_ref(
cc_ref, 'stringgroup', tenant=tenant)
compression_profile["compressible_content_ref"] = cc_ref
http_profile["compression_profile"] = compression_profile
app_profile["http_profile"] = http_profile
# code to merge application profile count.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
app_profile, avi_config['ApplicationProfile'],
'app_profile', converted_objs, name, default_profile_name,
merge_object_mapping, profile_type, self.prefix,
sys_dict['ApplicationProfile'])
self.app_count +=1
else:
converted_objs.append({'app_profile': app_profile})
avi_config['ApplicationProfile'].append(app_profile)
elif profile_type == 'fastl4':
supported_attr = self.supported_l4
indirect = self.indirect_l4
na_list = self.na_l4
u_ignore = user_ignore.get('fastl4', [])
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
hw_syn_protection = (profile.get("hardware-syn-cookie",
None) == 'enabled')
sw_syn_protection = (profile.get("software-syn-cookie",
None) == 'enabled')
syn_protection = (hw_syn_protection or sw_syn_protection)
timeout = profile.get("idle-timeout", final.MIN_SESSION_TIMEOUT)
if timeout < 60:
timeout = final.MIN_SESSION_TIMEOUT
LOG.warn("idle-timeout for profile: %s is less" % name +
" than minimum, changed to Avis minimum value")
elif timeout > final.MAX_SESSION_TIMEOUT:
timeout = final.MAX_SESSION_TIMEOUT
LOG.warn("idle-timeout for profile: %s is grater" % name +
" than maximum, changed to Avis maximum value")
description = profile.get('description', None)
ntwk_profile = {
"profile": {
"tcp_fast_path_profile": {
"session_idle_timeout": timeout,
"enable_syn_protection": syn_protection
},
"type": "PROTOCOL_TYPE_TCP_FAST_PATH"
},
"name": name,
'tenant_ref': conv_utils.get_object_ref(tenant, 'tenant'),
"description": description
}
app_profile = dict()
app_profile['name'] = name
app_profile['type'] = 'APPLICATION_PROFILE_TYPE_L4'
app_profile['description'] = description
app_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
explicit_tracking = profile.get("explicit-flow-migration", None)
l4_profile = {"rl_profile": {
"client_ip_connections_rate_limit": {
"explicit_tracking": (explicit_tracking == 'enabled'),
"action": {
"type": "RL_ACTION_NONE"
}
}}
}
app_profile['dos_rl_profile'] = l4_profile
# code to merge application profile count.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
app_profile, avi_config['ApplicationProfile'],
'app_profile', converted_objs, name, default_profile_name,
merge_object_mapping, profile_type, self.prefix,
sys_dict['ApplicationProfile'])
self.app_count +=1
else:
converted_objs.append({'app_profile': app_profile})
avi_config['ApplicationProfile'].append(app_profile)
# code to get merge count of network profile.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
ntwk_profile, avi_config['NetworkProfile'],
'network_profile', converted_objs, name,
default_profile_name, merge_object_mapping, profile_type,
self.prefix, sys_dict['NetworkProfile'])
self.net_count +=1
else:
converted_objs.append({'network_profile': ntwk_profile})
avi_config['NetworkProfile'].append(ntwk_profile)
elif profile_type == 'fasthttp':
supported_attr = self.supported_fh
indirect = self.indirect_fh
na_list = self.na_fh
u_ignore = user_ignore.get('fasthttp', [])
skipped = [attr for attr in f5_config['profile'][key].keys()
if attr not in supported_attr]
app_profile = dict()
app_profile['name'] = name
app_profile['type'] = 'APPLICATION_PROFILE_TYPE_HTTP'
app_profile['description'] = profile.get('description', None)
http_profile = dict()
insert_xff = profile.get('insert-xforwarded-for', 'disabled')
insert_xff = True if insert_xff == 'enabled' else False
http_profile['x_forwarded_proto_enabled'] = insert_xff
http_profile['xff_enabled'] = insert_xff
header_size = profile.get('max-header-size',
final.DEFAULT_MAX_HEADER)
http_profile['client_max_header_size'] = \
int(header_size)/final.BYTES_IN_KB
app_profile["http_profile"] = http_profile
# code to merge application profile count.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
app_profile, avi_config['ApplicationProfile'],
'app_profile', converted_objs, name, default_profile_name,
merge_object_mapping, profile_type, self.prefix,
sys_dict['ApplicationProfile'])
self.app_count +=1
else:
converted_objs.append({'app_profile': app_profile})
avi_config['ApplicationProfile'].append(app_profile)
receive_window = profile.get("receive-window-size",
final.DEFAULT_RECV_WIN)
if not (final.MIN_RECV_WIN <= int(receive_window) <=
final.MAX_RECV_WIN):
receive_window = final.DEFAULT_RECV_WIN
timeout = profile.get("idle-timeout", 0)
ntwk_profile = {
"profile": {
"tcp_proxy_profile": {
"receive_window": receive_window,
"idle_connection_timeout": timeout,
'automatic': False
},
"type": "PROTOCOL_TYPE_TCP_PROXY"
},
"name": name
}
app_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
ntwk_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
# code to get merge count of network profile.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
ntwk_profile, avi_config['NetworkProfile'],
'network_profile', converted_objs, name,
default_profile_name, merge_object_mapping, profile_type,
self.prefix, sys_dict['NetworkProfile'])
self.net_count +=1
else:
converted_objs.append({'network_profile': ntwk_profile})
avi_config['NetworkProfile'].append(ntwk_profile)
elif profile_type == 'one-connect':
supported_attr = self.supported_oc
indirect = []
u_ignore = user_ignore.get('one-connect', [])
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
mask = profile.get('source-mask', 'any')
if not mask == 'any':
skipped.append('source-mask')
converted_objs = \
'Maps Indirectly to : HTTP Profile -> Connection Multiplex'
LOG.warn('one-connect profile %s will be mapped indirectly to HTTP '
'Profile -> Connection Multiplex of the same VS if '
'oneconnect-transformations is enabled' % name)
avi_config['OneConnect'].append(name)
elif profile_type == 'tcp':
supported_attr = self.supported_tcp
indirect = self.indirect_tcp
na_list = self.na_tcp
u_ignore = user_ignore.get('tcp', [])
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
timeout = profile.get("idle-timeout", 0)
nagle = profile.get("nagle", 'disabled')
nagle = False if nagle == 'disabled' else True
retrans = profile.get("max-retrans", final.MIN_SYN_RETRANS)
retrans = final.MIN_SYN_RETRANS if \
int(retrans) < final.MIN_SYN_RETRANS else retrans
retrans = final.MAX_SYN_RETRANS if \
int(retrans) > final.MAX_SYN_RETRANS else retrans
syn_retrans = profile.get("syn-max-retrans",
final.MIN_SYN_RETRANS)
syn_retrans = final.MIN_SYN_RETRANS if \
int(syn_retrans) < final.MIN_SYN_RETRANS else syn_retrans
syn_retrans = final.MAX_SYN_RETRANS if \
int(syn_retrans) > final.MAX_SYN_RETRANS else syn_retrans
conn_type = profile.get("time-wait-recycle", "disabled")
conn_type = "CLOSE_IDLE" if \
conn_type == "disabled" else "KEEP_ALIVE"
delay = profile.get("time-wait-timeout", 0)
window = profile.get("receive-window-size",
(final.MIN_RECV_WIN * final.BYTES_IN_KB))
window = int(int(window)/final.BYTES_IN_KB)
cc_algo = profile.get("congestion-control", "")
cc_algo = conv_utils.get_cc_algo_val(cc_algo)
ip_dscp = profile.get("ip-tos-to-client", None)
ntwk_profile = {
"profile": {
"tcp_proxy_profile": {
"idle_connection_timeout": timeout,
"nagles_algorithm": nagle,
"max_syn_retransmissions": syn_retrans,
"max_retransmissions": retrans,
"idle_connection_type": conn_type,
"time_wait_delay": delay,
"receive_window": window,
"cc_algo": cc_algo,
'automatic': False
},
"type": "PROTOCOL_TYPE_TCP_PROXY"
},
"name": name
}
if ip_dscp:
is_ip_dscp = True
if ip_dscp == 'pass-through':
ip_dscp = 2147483647
elif ip_dscp == 'mimic':
is_ip_dscp = False
skipped.append('ip-tos-to-client')
if is_ip_dscp:
ntwk_profile["profile"]["tcp_proxy_profile"]["ip_dscp"] = \
ip_dscp
ntwk_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
# code to get merge count of network profile.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
ntwk_profile, avi_config['NetworkProfile'],
'network_profile', converted_objs, name,
default_profile_name, merge_object_mapping, profile_type,
self.prefix, sys_dict['NetworkProfile'])
self.net_count +=1
else:
converted_objs.append({'network_profile': ntwk_profile})
avi_config['NetworkProfile'].append(ntwk_profile)
elif profile_type == 'udp':
supported_attr = self.supported_udp
indirect = self.indirect_udp
u_ignore = user_ignore.get('udp', [])
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
per_pkt = profile.get("datagram-load-balancing", 'disabled')
timeout = str(profile.get("idle-timeout", 0))
if not timeout.isdigit():
timeout = 0
ntwk_profile = {
"profile": {
"type": "PROTOCOL_TYPE_UDP_FAST_PATH",
"udp_fast_path_profile": {
"per_pkt_loadbalance": (per_pkt == 'enabled'),
"session_idle_timeout": timeout
}
},
"name": name
}
ntwk_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
# code to get merge count of network profile.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
ntwk_profile, avi_config['NetworkProfile'],
'network_profile', converted_objs, name,
default_profile_name, merge_object_mapping, profile_type,
self.prefix, sys_dict['NetworkProfile'])
self.net_count +=1
else:
converted_objs.append({'network_profile': ntwk_profile})
avi_config['NetworkProfile'].append(ntwk_profile)
conv_status = conv_utils.get_conv_status(
skipped, indirect, default_ignore, profile, u_ignore, na_list)
conv_utils.add_conv_status('profile', profile_type, name, conv_status,
converted_objs)
class ProfileConfigConvV10(ProfileConfigConv):
def __init__(self, f5_profile_attributes, object_merge_check, prefix,
keypassphrase):
"""
:param f5_profile_attributes: f5 profile attributes from yaml file.
:param object_merge_check: flag for merging objects
:param prefix: prefix for objects
:param keypassphrase: keypassphrase yaml file location
"""
self.supported_types = f5_profile_attributes['Profile_supported_types']
self.default_key = "defaults from"
self.supported_ssl = f5_profile_attributes['Profile_supported_ssl']
self.na_ssl = f5_profile_attributes['Profile_na_ssl']
self.indirect_ssl = f5_profile_attributes['Profile_indirect_ssl']
self.ignore_for_defaults = \
f5_profile_attributes['Profile_ignore_for_defaults']
self.na_http = f5_profile_attributes['Profile_na_http']
self.supported_http = f5_profile_attributes['Profile_supported_http']
self.indirect_http = f5_profile_attributes['Profile_indirect_http']
self.na_dns = []
self.supported_dns = f5_profile_attributes['Profile_supported_dns']
self.indirect_dns = []
self.supported_l4 = f5_profile_attributes['Profile_supported_l4']
self.indirect_l4 = f5_profile_attributes['Profile_indirect_l4']
self.supported_fh = f5_profile_attributes['Profile_supported_fh']
self.indirect_fh = f5_profile_attributes['Profile_indirect_fh']
self.supported_tcp = f5_profile_attributes['Profile_supported_tcp']
self.indirect_tcp = f5_profile_attributes['Profile_indirect_tcp']
self.supported_udp = f5_profile_attributes['Profile_supported_udp']
self.indirect_udp = []
self.supported_oc = f5_profile_attributes['Profile_supported_oc']
if keypassphrase:
self.f5_passphrase_keys = yaml.safe_load(open(keypassphrase))
else:
self.f5_passphrase_keys = None
self.object_merge_check = object_merge_check
# code to get count to merge objects
self.app_count = 0
self.net_count = 0
self.pki_count = 0
self.certkey_count = 0
# Added prefix for objects
self.prefix = prefix
def convert_profile(self, profile, key, f5_config, profile_config,
avi_config, input_dir, user_ignore, tenant_ref,
key_and_cert_mapping_list, merge_object_mapping,
sys_dict):
"""
:param profile: parsed dict of profile
:param key: key which contain combination of profile type and name
:param f5_config: parsed f5 config dict
:param profile_config: dict of profile config
:param avi_config: dict for avi config conversion.
:param input_dir: Location of input key and cert
:param user_ignore: Ignore config defined by user
:param tenant_ref: Tenant for which config need to be converted
:param key_and_cert_mapping_list: list of key and cert mapping list
:param merge_object_mapping: flag to merge the objects
:param sys_dict: baseline objects
:return:
"""
skipped = profile.keys()
indirect = []
converted_objs = []
u_ignore = []
na_list = []
parent_cls = super(ProfileConfigConvV10, self)
profile_type, name = key.split(" ")
default_profile_name = '%s %s' % (profile_type, profile_type)
default_ignore = f5_config['profile'].get(default_profile_name, {})
default_ignore.update(self.ignore_for_defaults)
tenant, name = conv_utils.get_tenant_ref(name)
if not tenant_ref == 'admin':
tenant = tenant_ref
old_name = name
default_profile_name = profile_type
# Added prefix for objects
if self.prefix:
name = '%s-%s' % (self.prefix, name)
default_profile_name = '%s-%s' % (self.prefix, default_profile_name)
if profile_type in ("clientssl", "serverssl"):
supported_attr = self.supported_ssl
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
u_ignore = user_ignore.get('clientssl', [])
u_ignore += user_ignore.get('serverssl', [])
na_list = self.na_ssl
indirect = self.indirect_ssl
original_prof = profile_config.get('%s %s' % (profile_type,
old_name), None)
inherit_key = original_prof.get('inherit-certkeychain', 'true')
if inherit_key == 'false':
profile['key'] = original_prof.get("key", None)
profile['cert'] = original_prof.get("cert", None)
cert_file = profile.get("cert", None)
key_file = profile.get("key", None)
key_file = None if key_file == 'none' else key_file
cert_file = None if cert_file == 'none' else cert_file
if key_file and cert_file:
key_file = key_file.replace('\"', '')
cert_file = cert_file.replace('\"', '')
parent_cls.update_key_cert_obj(
name, key_file, cert_file, input_dir, tenant_ref, avi_config,
converted_objs, default_profile_name, key_and_cert_mapping_list,
merge_object_mapping, sys_dict)
ssl_profile = dict()
ssl_profile['name'] = name
ssl_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
ssl_profile['accepted_ciphers'] = self.ciphers
close_notify = profile.get('unclean shutdown', None)
if close_notify and close_notify == 'enabled':
ssl_profile['send_close_notify'] = True
else:
ssl_profile['send_close_notify'] = False
options = profile.get("options", "")
if isinstance(options, dict):
opt = []
for opt_key in options.keys():
opt.append(opt_key+' '+options[opt_key])
options = opt
accepted_versions = []
if "no tlsv1" not in options:
accepted_versions.append({"type": "SSL_VERSION_TLS1"})
if "no tlsv1.1" not in options:
accepted_versions.append({"type": "SSL_VERSION_TLS1_1"})
if "no tlsv1.2" not in options:
accepted_versions.append({"type": "SSL_VERSION_TLS1_2"})
if accepted_versions:
ssl_profile["accepted_versions"] = accepted_versions
if self.object_merge_check:
conv_utils.update_skip_duplicates(
ssl_profile, avi_config['SSLProfile'], 'ssl_profile',
converted_objs, name, default_profile_name,
merge_object_mapping, profile_type, self.prefix,
sys_dict['SSLProfile'])
ssl_count['count'] += 1
else:
converted_objs.append({'ssl_profile': ssl_profile})
avi_config['SSLProfile'].append(ssl_profile)
crl_file_name = profile.get('crl file', None)
ca_file_name = profile.get('ca file', None)
if crl_file_name and crl_file_name != 'none':
crl_file_name = crl_file_name.replace('\"', '').strip()
else:
crl_file_name = None
if ca_file_name and ca_file_name != 'none':
ca_file_name = ca_file_name.replace('\"', '').strip()
else:
ca_file_name = None
if ca_file_name:
pki_profile = dict()
file_path = input_dir+os.path.sep+ca_file_name
pki_profile["name"] = name
pc_mode = profile.get('peer-cert-mode', 'ignore')
if pc_mode == 'ignore':
pc_mode = 'SSL_CLIENT_CERTIFICATE_NONE'
elif pc_mode == 'request':
pc_mode = 'SSL_CLIENT_CERTIFICATE_REQUEST'
else:
pc_mode = 'SSL_CLIENT_CERTIFICATE_REQUIRE'
pki_profile['mode'] = pc_mode
pki_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
error = False
ca = conv_utils.upload_file(file_path)
if ca:
pki_profile["ca_certs"] = [{'certificate': ca}]
else:
error = True
if crl_file_name:
file_path = input_dir+os.path.sep+crl_file_name
crl = conv_utils.upload_file(file_path)
if crl:
pki_profile["crls"] = [{'body': crl}]
else:
error = True
else:
pki_profile['crl_check'] = False
if not error:
if self.object_merge_check:
conv_utils.update_skip_duplicates(pki_profile,
avi_config['PKIProfile'], 'pki_profile',
converted_objs, name, default_profile_name,
merge_object_mapping, None, self.prefix,
sys_dict['PKIProfile'])
self.pki_count += 1
else:
converted_objs.append({'pki_profile': pki_profile})
avi_config['PKIProfile'].append(pki_profile)
elif profile_type == 'http':
app_profile, skipped = self.convert_http_profile(
profile, name, avi_config, converted_objs, tenant)
u_ignore = user_ignore.get('http', [])
na_list = self.na_http
indirect = self.indirect_http
# code to merge application profile count.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
app_profile, avi_config['ApplicationProfile'],
'app_profile', converted_objs, name, default_profile_name,
merge_object_mapping, profile_type, self.prefix,
sys_dict['ApplicationProfile'])
self.app_count += 1
else:
converted_objs.append({'app_profile': app_profile})
avi_config['ApplicationProfile'].append(app_profile)
elif profile_type == 'dns':
supported_attr = self.supported_dns
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
u_ignore = user_ignore.get('dns', [])
app_profile = dict()
app_profile['name'] = name
app_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
app_profile['type'] = 'APPLICATION_PROFILE_TYPE_DNS'
# code to merge application profile count.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
app_profile, avi_config['ApplicationProfile'],
'app_profile', converted_objs, name, default_profile_name,
merge_object_mapping, profile_type, self.prefix,
sys_dict['ApplicationProfile'])
self.app_count += 1
else:
converted_objs.append({'app_profile': app_profile})
avi_config['ApplicationProfile'].append(app_profile)
elif profile_type == 'fastL4':
supported_attr = self.supported_l4
indirect = self.indirect_l4
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
u_ignore = user_ignore.get('fastL4', [])
hw_syn_protection = (profile.get("hardware syncookie",
None) == 'enabled')
sw_syn_protection = (profile.get("software syncookie",
None) == 'enabled')
syn_protection = (hw_syn_protection or sw_syn_protection)
description = profile.get('description', None)
timeout = profile.get("idle timeout", final.MIN_SESSION_TIMEOUT)
if timeout < 60:
timeout = final.MIN_SESSION_TIMEOUT
LOG.warn("idle-timeout for profile: %s is less" % name +
" than minimum, changed to Avis minimum value")
elif timeout > final.MAX_SESSION_TIMEOUT:
timeout = final.MAX_SESSION_TIMEOUT
LOG.warn("idle-timeout for profile: %s is grater" % name +
" than maximum, changed to Avis maximum value")
ntwk_profile = {
"profile": {
"tcp_fast_path_profile": {
"session_idle_timeout": timeout,
"enable_syn_protection": syn_protection
},
"type": "PROTOCOL_TYPE_TCP_FAST_PATH"
},
"name": name,
"description": description
}
app_profile = {
"type": "APPLICATION_PROFILE_TYPE_L4",
"name": name,
"description": description
}
ntwk_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
app_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
# code to get merge count of network profile.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
ntwk_profile, avi_config['NetworkProfile'],
'network_profile',converted_objs, name,
default_profile_name, merge_object_mapping, profile_type,
self.prefix, sys_dict['NetworkProfile'])
self.net_count +=1
else:
converted_objs.append({'network_profile': ntwk_profile})
avi_config['NetworkProfile'].append(ntwk_profile)
# code to merge application profile count.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
app_profile, avi_config['ApplicationProfile'],
'app_profile', converted_objs, name, default_profile_name,
merge_object_mapping, profile_type, self.prefix,
sys_dict['ApplicationProfile'])
self.app_count +=1
else:
converted_objs.append({'app_profile': app_profile})
avi_config['ApplicationProfile'].append(app_profile)
elif profile_type == 'fasthttp':
supported_attr = self.supported_fh
u_ignore = user_ignore.get('fasthttp', [])
indirect = self.indirect_fh
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
app_profile = dict()
app_profile['name'] = name
app_profile['type'] = 'APPLICATION_PROFILE_TYPE_HTTP'
app_profile['description'] = profile.get('description', None)
http_profile = dict()
insert_xff = profile.get('insert xforwarded for', 'disabled')
insert_xff = True if insert_xff == 'enabled' else False
http_profile['x_forwarded_proto_enabled'] = insert_xff
http_profile['xff_enabled'] = insert_xff
header_size = profile.get('max header size',
final.DEFAULT_MAX_HEADER)
http_profile['client_max_header_size'] = \
int(header_size)/final.BYTES_IN_KB
app_profile["http_profile"] = http_profile
# code to merge application profile count.
if self.object_merge_check:
conv_utils.update_skip_duplicates\
(app_profile, avi_config['ApplicationProfile'],
'app_profile',converted_objs, name, default_profile_name,
merge_object_mapping, profile_type, self.prefix,
sys_dict['ApplicationProfile'])
self.app_count +=1
else:
converted_objs.append({'app_profile': app_profile})
avi_config['ApplicationProfile'].append(app_profile)
timeout = profile.get("idle-timeout", 0)
ntwk_profile = {
"profile": {
"tcp_proxy_profile": {
"idle_connection_timeout": timeout,
'automatic': False
},
"type": "PROTOCOL_TYPE_TCP_PROXY"
},
"name": name
}
ntwk_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
app_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
# code to get merge count of network profile.
if self.object_merge_check:
conv_utils.update_skip_duplicates\
(ntwk_profile, avi_config['NetworkProfile'],
'network_profile',converted_objs, name,
default_profile_name, merge_object_mapping,
profile_type, self.prefix, sys_dict['NetworkProfile'])
self.net_count += 1
else:
converted_objs.append({'network_profile': ntwk_profile})
avi_config['NetworkProfile'].append(ntwk_profile)
elif profile_type == 'oneconnect':
supported_attr = self.supported_oc
indirect = []
u_ignore = user_ignore.get('oneconnect', [])
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
mask = profile.get('source mask', '0.0.0.0')
if not mask == '0.0.0.0':
skipped.append('source-mask')
converted_objs = \
'Maps Indirectly to : HTTP Profile -> Connection Multiplex'
LOG.warn('oneconnect profile %s will be mapped indirectly to HTTP '
'Profile -> Connection Multiplex of the same VS if '
'oneconnect-transformations is enabled' % name)
avi_config['OneConnect'].append(name)
elif profile_type == 'tcp':
u_ignore = user_ignore.get('tcp', [])
supported_attr = self.supported_tcp
indirect = self.indirect_tcp
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
timeout = profile.get("idle timeout", 0)
nagle = profile.get("nagle", 'disabled')
nagle = False if nagle == 'disabled' else True
retrans = profile.get("max retrans", final.MIN_SYN_RETRANS)
retrans = final.MIN_SYN_RETRANS if \
int(retrans) < final.MIN_SYN_RETRANS else retrans
retrans = final.MAX_SYN_RETRANS if \
int(retrans) > final.MAX_SYN_RETRANS else retrans
syn_retrans = profile.get("max retrans syn",
final.MIN_SYN_RETRANS)
syn_retrans = final.MIN_SYN_RETRANS \
if int(syn_retrans) < final.MIN_SYN_RETRANS else syn_retrans
syn_retrans = final.MAX_SYN_RETRANS \
if int(syn_retrans) > final.MAX_SYN_RETRANS else syn_retrans
conn_type = profile.get("time wait recycle", "disabled")
conn_type = "CLOSE_IDLE" if \
conn_type == "disabled" else "KEEP_ALIVE"
delay = profile.get("time wait", 0)
window = profile.get("recv window",
(final.MIN_RECV_WIN * final.BYTES_IN_KB))
window = int(int(window)/final.BYTES_IN_KB)
cc_algo = profile.get("congestion-control", "")
cc_algo = conv_utils.get_cc_algo_val(cc_algo)
ip_dscp = profile.get("ip tos", None)
ntwk_profile = {
"profile": {
"tcp_proxy_profile": {
"idle_connection_timeout": timeout,
"nagles_algorithm": nagle,
"max_syn_retransmissions": syn_retrans,
"max_retransmissions": retrans,
"idle_connection_type": conn_type,
"time_wait_delay": delay,
"receive_window": window,
"cc_algo": cc_algo,
'automatic': False
},
"type": "PROTOCOL_TYPE_TCP_PROXY"
},
"name": name
}
if ip_dscp:
is_ip_dscp = True
if ip_dscp == 'pass':
ip_dscp = 2147483647
elif ip_dscp == 'mimic':
is_ip_dscp = False
skipped.append('ip tos')
if is_ip_dscp:
ntwk_profile["profile"]["tcp_proxy_profile"]["ip_dscp"] = \
ip_dscp
ntwk_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
# code to get merge count of network profile.
if self.object_merge_check:
conv_utils.update_skip_duplicates\
(ntwk_profile, avi_config['NetworkProfile'],
'network_profile',converted_objs, name,
default_profile_name, merge_object_mapping,
profile_type, self.prefix, sys_dict['NetworkProfile'])
self.net_count += 1
else:
converted_objs.append({'network_profile': ntwk_profile})
avi_config['NetworkProfile'].append(ntwk_profile)
elif profile_type == 'udp':
u_ignore = user_ignore.get('udp', [])
supported_attr = self.supported_udp
skipped = [attr for attr in profile.keys()
if attr not in supported_attr]
per_pkt = profile.get("datagram lb", 'disable')
timeout = profile.get("idle timeout", 0)
if not timeout.isdigit():
timeout = 0
ntwk_profile = {
"profile": {
"type": "PROTOCOL_TYPE_UDP_FAST_PATH",
"udp_fast_path_profile": {
"per_pkt_loadbalance": (per_pkt == 'enable'),
"session_idle_timeout": timeout
}
},
"name": name
}
ntwk_profile['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
# code to get merge count of network profile.
if self.object_merge_check:
conv_utils.update_skip_duplicates(
ntwk_profile, avi_config['NetworkProfile'],
'network_profile', converted_objs, name,
default_profile_name, merge_object_mapping, profile_type,
self.prefix, sys_dict['NetworkProfile'])
self.net_count += 1
else:
converted_objs.append({'network_profile': ntwk_profile})
avi_config['NetworkProfile'].append(ntwk_profile)
elif profile_type == 'persist':
mode = profile.get("mode").replace(' ', '-')
f5_config["persistence"]['%s %s' % (mode, name)] = profile
return
conv_status = conv_utils.get_conv_status(
skipped, indirect, default_ignore, profile, u_ignore, na_list)
conv_utils.add_conv_status('profile', profile_type, name, conv_status,
converted_objs)
def convert_http_profile(self, profile, name, avi_config, converted_objs,
tenant):
"""
:param profile: parsed profile config dict.
:param name: name of http profile.
:param avi_config: dict to store converted avi config
:param converted_objs: list of converted object
:param tenant: Tenant for which config need to be converted
:return: app_profile, skipped
"""
supported_attr = self.supported_http
skipped = [key for key in profile.keys() if key not in supported_attr]
app_profile = dict()
app_profile['name'] = name
app_profile['tenant_ref'] = conv_utils.get_object_ref(tenant, 'tenant')
app_profile['type'] = 'APPLICATION_PROFILE_TYPE_HTTP'
http_profile = dict()
encpt_cookie = profile.get('encrypt cookies', 'none')
encpt_cookie = False if encpt_cookie == 'none' else True
con_mltplxng = profile.get('oneconnect transformations', 'disabled')
con_mltplxng = False if con_mltplxng == 'disabled' else True
insert_xff = profile.get('insert xforwarded for', 'disabled')
insert_xff = True if insert_xff == 'enabled' else False
http_profile['x_forwarded_proto_enabled'] = insert_xff
xff_alt_names = profile.get('xff alternative names', None)
xff_alt_names = None if xff_alt_names == 'none' else xff_alt_names
http_profile['xff_alternate_name'] = xff_alt_names
header_size = profile.get('max header size', final.DEFAULT_MAX_HEADER)
http_profile['client_max_header_size'] = int(
header_size)/final.BYTES_IN_KB
http_profile['connection_multiplexing_enabled'] = con_mltplxng
http_profile['secure_cookie_enabled'] = encpt_cookie
app_profile["http_profile"] = http_profile
fallback_host = profile.get("fallback", 'none')
fallback_host = None if fallback_host == 'none' else fallback_host
if fallback_host:
app_profile['fallback_host'] = fallback_host
cache = profile.get('ramcache', 'disable')
if not cache == 'disable':
cache_config = dict()
cache_config['min_object_size'] = profile.get(
'ramcache min object size', final.MIN_CACHE_OBJ_SIZE)
cache_config['query_cacheable'] = True
cache_config['max_object_size'] = profile.get(
'ramcache max object size', final.MAX_CACHE_OBJ_SIZE)
age_header = profile.get('ramcache insert age header', 'disable')
if age_header == 'enable':
cache_config['age_header'] = True
else:
cache_config['age_header'] = False
cache_config['enabled'] = True
cache_config['default_expire'] = profile.get(
'ramcache max age', final.DEFAULT_CACHE_MAX_AGE)
exclude_uri = profile.get("ramcache uri exclude", None)
include_uri = profile.get("ramcache uri include", None)
if exclude_uri and isinstance(exclude_uri, dict):
exclude_uri = exclude_uri.keys() + exclude_uri.values()
if None in exclude_uri:
exclude_uri.remove(None)
cache_config['mime_types_black_list'] = exclude_uri
if include_uri and isinstance(include_uri, dict):
include_uri = include_uri.keys() + include_uri.values()
if None in include_uri:
include_uri.remove(None)
cache_config['mime_types_list'] = include_uri
http_profile["cache_config"] = cache_config
compression = profile.get('compress', 'disable')
if not compression == 'disable':
compression_profile = dict()
compression_profile["type"] = "AUTO_COMPRESSION"
compression_profile["compression"] = True
encoding = profile.get("compress keep accept encoding", "disable")
if encoding == "disable":
encoding = True
else:
encoding = False
compression_profile["remove_accept_encoding_header"] = encoding
content_type = profile.get("compress content type include", "")
content_type = None if content_type == 'none' else content_type
ct_exclude = profile.get("compress content type exclude", "")
content_type_exclude = None if ct_exclude == 'none' else ct_exclude
if content_type and isinstance(content_type, str):
content_type = content_type.split(" ")
elif content_type and isinstance(content_type, dict):
content_type = content_type.keys()+content_type.values()
content_type = list(set(content_type))
content_type.remove(None)
elif content_type_exclude:
content_type = final.DEFAULT_CONTENT_TYPE
if content_type_exclude:
content_type_exclude = content_type_exclude.keys() + \
content_type_exclude.values()
content_type = [ct for ct in content_type
if ct not in content_type_exclude]
if content_type:
sg_obj = conv_utils.get_content_string_group(
name, content_type, tenant)
avi_config['StringGroup'].append(sg_obj)
converted_objs.append({'string_group': sg_obj})
cc_ref = name + "-content_type"
cc_ref = conv_utils.get_object_ref(
cc_ref, 'stringgroup', tenant=tenant)
compression_profile["compressible_content_ref"] = cc_ref
http_profile["compression_profile"] = compression_profile
app_profile["http_profile"] = http_profile
header_erase = profile.get('header-erase', None)
header_erase = None if header_erase == 'none' else header_erase
if header_erase:
header_erase = header_erase.replace('\"', '').strip()
header_insert = profile.get('header-insert', None)
header_insert = None if header_insert == 'none' else header_insert
if header_insert:
header_insert = header_insert.replace('\"', '').strip()
if header_erase or header_insert:
rules = []
rule_index = 1
# Added condition of header insert and header erase present then
# create common rule with more action.
if header_erase and header_insert:
header_erase = header_erase.split(':')[0]
header, val = header_insert.split(':')
header_erase_rule = conv_utils.create_hdr_erase_rule(
'rule-header-erase', header_erase, rule_index)
header_insert_rule = conv_utils.create_hdr_insert_rule(
'rule-header-insert', header, val, rule_index)
header_erase_rule['hdr_action'].append(header_insert_rule[
'hdr_action'][0])
rules.append(header_erase_rule)
elif header_erase:
if ':' in header_erase:
header_erase = header_erase.split(':')[0]
rules.append(conv_utils.create_hdr_erase_rule(
'rule-header-erase', header_erase, rule_index))
elif header_insert:
header, val = header_insert.split(':')
rules.append(conv_utils.create_hdr_insert_rule(
'rule-header-insert', header, val, rule_index))
rule_index += 1
policy_name = name + '-HTTP-Policy-Set'
policy = {
"name": policy_name,
"http_request_policy": {
"rules": rules
},
"is_internal_policy": False
}
policy['tenant_ref'] = conv_utils.get_object_ref(
tenant, 'tenant')
avi_config['HTTPPolicySet'].append(policy)
app_profile["HTTPPolicySet"] = policy_name
converted_objs.append({'policy_set': policy})
return app_profile, skipped
| 49.699429
| 80
| 0.563042
| 9,267
| 86,974
| 4.962447
| 0.049315
| 0.024137
| 0.02355
| 0.025442
| 0.839172
| 0.807467
| 0.780481
| 0.757323
| 0.739731
| 0.72838
| 0
| 0.005711
| 0.349748
| 86,974
| 1,750
| 81
| 49.699429
| 0.807426
| 0.022731
| 0
| 0.681907
| 0
| 0
| 0.146045
| 0.029237
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0.013063
| 0.004572
| null | null | 0.001306
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
1d71d0d9ea9a6a26f4c379575e424de0468d5cd5
| 70
|
py
|
Python
|
core/outfits/__init__.py
|
ChrisLR/BasicDungeonRL
|
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
|
[
"MIT"
] | 3
|
2017-10-28T11:28:38.000Z
|
2018-09-12T09:47:00.000Z
|
core/outfits/__init__.py
|
ChrisLR/BasicDungeonRL
|
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
|
[
"MIT"
] | null | null | null |
core/outfits/__init__.py
|
ChrisLR/BasicDungeonRL
|
b293d40bd9a0d3b7aec41b5e1d58441165997ff1
|
[
"MIT"
] | null | null | null |
from core.outfits import listing
from core.outfits.base import Outfit
| 23.333333
| 36
| 0.842857
| 11
| 70
| 5.363636
| 0.636364
| 0.271186
| 0.508475
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.114286
| 70
| 2
| 37
| 35
| 0.951613
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
d53073e705435fd593bab86acb36702d868262ae
| 157
|
py
|
Python
|
expenseReimbursementProject1/exceptions/value_type_error.py
|
Basdanso/reimbursementApi
|
e0e1ef9b1198421884d21ac014fa85767b4f62e2
|
[
"MIT"
] | null | null | null |
expenseReimbursementProject1/exceptions/value_type_error.py
|
Basdanso/reimbursementApi
|
e0e1ef9b1198421884d21ac014fa85767b4f62e2
|
[
"MIT"
] | null | null | null |
expenseReimbursementProject1/exceptions/value_type_error.py
|
Basdanso/reimbursementApi
|
e0e1ef9b1198421884d21ac014fa85767b4f62e2
|
[
"MIT"
] | null | null | null |
class ValueTypeError(Exception):
description: str = 'Occurs when type does not match'
def __str__(self):
return "Value type does not match"
| 26.166667
| 56
| 0.694268
| 20
| 157
| 5.25
| 0.75
| 0.152381
| 0.209524
| 0.304762
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.229299
| 157
| 5
| 57
| 31.4
| 0.867769
| 0
| 0
| 0
| 0
| 0
| 0.356688
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0
| 0.25
| 1
| 0
| 1
| 0
| 0
| null | 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
d581c7865172c3d3afbc5893affb2782540a00a3
| 5,177
|
py
|
Python
|
pymapadmin/grpc/admin_grpc.py
|
icgood/pymap-admin
|
6cde908af84f52d4cd591a80503a19f784e47a35
|
[
"MIT"
] | 2
|
2021-11-17T22:28:46.000Z
|
2021-11-18T14:47:07.000Z
|
pymapadmin/grpc/admin_grpc.py
|
icgood/pymap-admin
|
6cde908af84f52d4cd591a80503a19f784e47a35
|
[
"MIT"
] | null | null | null |
pymapadmin/grpc/admin_grpc.py
|
icgood/pymap-admin
|
6cde908af84f52d4cd591a80503a19f784e47a35
|
[
"MIT"
] | null | null | null |
# Generated by the Protocol Buffers compiler. DO NOT EDIT!
# source: pymapadmin/grpc/admin.proto
# plugin: grpclib.plugin.main
import abc
import typing
import grpclib.const
import grpclib.client
if typing.TYPE_CHECKING:
import grpclib.server
import pymapadmin.grpc.admin_pb2
class SystemBase(abc.ABC):
@abc.abstractmethod
async def Ping(self, stream: 'grpclib.server.Stream[pymapadmin.grpc.admin_pb2.PingRequest, pymapadmin.grpc.admin_pb2.PingResponse]') -> None:
pass
@abc.abstractmethod
async def Login(self, stream: 'grpclib.server.Stream[pymapadmin.grpc.admin_pb2.LoginRequest, pymapadmin.grpc.admin_pb2.LoginResponse]') -> None:
pass
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
return {
'/pymapadmin.grpc.System/Ping': grpclib.const.Handler(
self.Ping,
grpclib.const.Cardinality.UNARY_UNARY,
pymapadmin.grpc.admin_pb2.PingRequest,
pymapadmin.grpc.admin_pb2.PingResponse,
),
'/pymapadmin.grpc.System/Login': grpclib.const.Handler(
self.Login,
grpclib.const.Cardinality.UNARY_UNARY,
pymapadmin.grpc.admin_pb2.LoginRequest,
pymapadmin.grpc.admin_pb2.LoginResponse,
),
}
class SystemStub:
def __init__(self, channel: grpclib.client.Channel) -> None:
self.Ping = grpclib.client.UnaryUnaryMethod(
channel,
'/pymapadmin.grpc.System/Ping',
pymapadmin.grpc.admin_pb2.PingRequest,
pymapadmin.grpc.admin_pb2.PingResponse,
)
self.Login = grpclib.client.UnaryUnaryMethod(
channel,
'/pymapadmin.grpc.System/Login',
pymapadmin.grpc.admin_pb2.LoginRequest,
pymapadmin.grpc.admin_pb2.LoginResponse,
)
class MailboxBase(abc.ABC):
@abc.abstractmethod
async def Append(self, stream: 'grpclib.server.Stream[pymapadmin.grpc.admin_pb2.AppendRequest, pymapadmin.grpc.admin_pb2.AppendResponse]') -> None:
pass
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
return {
'/pymapadmin.grpc.Mailbox/Append': grpclib.const.Handler(
self.Append,
grpclib.const.Cardinality.UNARY_UNARY,
pymapadmin.grpc.admin_pb2.AppendRequest,
pymapadmin.grpc.admin_pb2.AppendResponse,
),
}
class MailboxStub:
def __init__(self, channel: grpclib.client.Channel) -> None:
self.Append = grpclib.client.UnaryUnaryMethod(
channel,
'/pymapadmin.grpc.Mailbox/Append',
pymapadmin.grpc.admin_pb2.AppendRequest,
pymapadmin.grpc.admin_pb2.AppendResponse,
)
class UserBase(abc.ABC):
@abc.abstractmethod
async def GetUser(self, stream: 'grpclib.server.Stream[pymapadmin.grpc.admin_pb2.GetUserRequest, pymapadmin.grpc.admin_pb2.UserResponse]') -> None:
pass
@abc.abstractmethod
async def SetUser(self, stream: 'grpclib.server.Stream[pymapadmin.grpc.admin_pb2.SetUserRequest, pymapadmin.grpc.admin_pb2.UserResponse]') -> None:
pass
@abc.abstractmethod
async def DeleteUser(self, stream: 'grpclib.server.Stream[pymapadmin.grpc.admin_pb2.DeleteUserRequest, pymapadmin.grpc.admin_pb2.UserResponse]') -> None:
pass
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
return {
'/pymapadmin.grpc.User/GetUser': grpclib.const.Handler(
self.GetUser,
grpclib.const.Cardinality.UNARY_UNARY,
pymapadmin.grpc.admin_pb2.GetUserRequest,
pymapadmin.grpc.admin_pb2.UserResponse,
),
'/pymapadmin.grpc.User/SetUser': grpclib.const.Handler(
self.SetUser,
grpclib.const.Cardinality.UNARY_UNARY,
pymapadmin.grpc.admin_pb2.SetUserRequest,
pymapadmin.grpc.admin_pb2.UserResponse,
),
'/pymapadmin.grpc.User/DeleteUser': grpclib.const.Handler(
self.DeleteUser,
grpclib.const.Cardinality.UNARY_UNARY,
pymapadmin.grpc.admin_pb2.DeleteUserRequest,
pymapadmin.grpc.admin_pb2.UserResponse,
),
}
class UserStub:
def __init__(self, channel: grpclib.client.Channel) -> None:
self.GetUser = grpclib.client.UnaryUnaryMethod(
channel,
'/pymapadmin.grpc.User/GetUser',
pymapadmin.grpc.admin_pb2.GetUserRequest,
pymapadmin.grpc.admin_pb2.UserResponse,
)
self.SetUser = grpclib.client.UnaryUnaryMethod(
channel,
'/pymapadmin.grpc.User/SetUser',
pymapadmin.grpc.admin_pb2.SetUserRequest,
pymapadmin.grpc.admin_pb2.UserResponse,
)
self.DeleteUser = grpclib.client.UnaryUnaryMethod(
channel,
'/pymapadmin.grpc.User/DeleteUser',
pymapadmin.grpc.admin_pb2.DeleteUserRequest,
pymapadmin.grpc.admin_pb2.UserResponse,
)
| 35.703448
| 157
| 0.639946
| 508
| 5,177
| 6.387795
| 0.137795
| 0.215716
| 0.222496
| 0.250847
| 0.792604
| 0.792604
| 0.735901
| 0.651464
| 0.64037
| 0.483205
| 0
| 0.009653
| 0.25961
| 5,177
| 144
| 158
| 35.951389
| 0.836942
| 0.023179
| 0
| 0.547826
| 1
| 0.052174
| 0.192757
| 0.191569
| 0
| 0
| 0
| 0
| 0
| 1
| 0.052174
| false
| 0.052174
| 0.052174
| 0.026087
| 0.182609
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 7
|
63439e6172bf80edaf0341030b779950b0eec1a7
| 165
|
py
|
Python
|
python_runtime/exonum_runtime/merkledb/indices/__init__.py
|
alekseysidorov/exonum-python-backend
|
fae38042acba4c7fd9ca05f6afa1e9bec54dd86d
|
[
"Apache-2.0"
] | 2
|
2019-10-06T17:23:08.000Z
|
2019-10-07T09:35:59.000Z
|
python_runtime/exonum_runtime/merkledb/indices/__init__.py
|
alekseysidorov/exonum-python-backend
|
fae38042acba4c7fd9ca05f6afa1e9bec54dd86d
|
[
"Apache-2.0"
] | null | null | null |
python_runtime/exonum_runtime/merkledb/indices/__init__.py
|
alekseysidorov/exonum-python-backend
|
fae38042acba4c7fd9ca05f6afa1e9bec54dd86d
|
[
"Apache-2.0"
] | 1
|
2020-01-18T09:29:30.000Z
|
2020-01-18T09:29:30.000Z
|
"""TODO"""
from .list_index import ListIndex
from .map_index import MapIndex
from .proof_list_index import ProofListIndex
from .proof_map_index import ProofMapIndex
| 27.5
| 44
| 0.836364
| 23
| 165
| 5.73913
| 0.478261
| 0.333333
| 0.227273
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.10303
| 165
| 5
| 45
| 33
| 0.891892
| 0.024242
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.2
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
6358b66597519efb625eaca18ac93b55e3628738
| 9,050
|
py
|
Python
|
parser/fase2/team07/Tytus_SQLPARSER_G8/Instrucciones/plpgsql/condicional_case.py
|
Josue-Zea/tytus
|
f9e4be9a8c03eb698fade7a748972e4f52d46685
|
[
"MIT"
] | 35
|
2020-12-07T03:11:43.000Z
|
2021-04-15T17:38:16.000Z
|
parser/fase2/team07/Tytus_SQLPARSER_G8/Instrucciones/plpgsql/condicional_case.py
|
Josue-Zea/tytus
|
f9e4be9a8c03eb698fade7a748972e4f52d46685
|
[
"MIT"
] | 47
|
2020-12-09T01:29:09.000Z
|
2021-01-13T05:37:50.000Z
|
parser/fase2/team07/Tytus_SQLPARSER_G8/Instrucciones/plpgsql/condicional_case.py
|
Josue-Zea/tytus
|
f9e4be9a8c03eb698fade7a748972e4f52d46685
|
[
"MIT"
] | 556
|
2020-12-07T03:13:31.000Z
|
2021-06-17T17:41:10.000Z
|
from Instrucciones.TablaSimbolos.Instruccion import Instruccion
from Instrucciones.TablaSimbolos.Tipo import Tipo_Dato
from Instrucciones.Excepcion import Excepcion
from Instrucciones.Expresiones import Relacional
class Case(Instruccion):
'''
La clase Case, recibe una lista de condiciones y cada una de ellas tiene una lista de instrucciones
'''
def __init__(self,l_condiciones,strGram, linea, columna, strSent):
Instruccion.__init__(self,None,linea,columna,strGram,strSent)
self.l_condiciones = l_condiciones
#desde aqui voy a mandar la etiqueta de escape
def ejecutar(self, tabla, arbol):
pass
def traducir(self, tabla, arbol,cadenaTraducida):
codigo = ""
etiquetaSalida = arbol.generaEtiqueta()
#Si existe algun error en la condicion se devuelve el error
for condicion in self.l_condiciones:
condicion_case = condicion.traducir(tabla, arbol,etiquetaSalida)
if isinstance(condicion_case, Excepcion):
return condicion_case
codigo += condicion_case
codigo += "\tlabel ." + etiquetaSalida + "\n"
return codigo
class condicion_case(Instruccion):
'''
La clase recibe una expresion logica y una lista de instrucciones
'''
def __init__(self, expLogica,instrucciones,strGram, linea, columna, strSent):
Instruccion.__init__(self,None,linea,columna,strGram,strSent)
self.expLogica = expLogica
self.instrucciones = instrucciones
def ejecutar(self, tabla, arbol):
pass
def traducir(self, tabla, arbol,cadenaTraducida):
#Si existe algun error en la expresion logica se devuelve el error
expresion_logica = self.expLogica.traducir(tabla, arbol,cadenaTraducida)
if isinstance(expresion_logica, Excepcion):
return expresion_logica
if expresion_logica.tipo.tipo == Tipo_Dato.BOOLEAN or expresion_logica.tipo.tipo == Tipo_Dato.ID:
#Inicia traduccion
codigo = expresion_logica.codigo
etiquetaSalida = cadenaTraducida
codigo += "\tlabel " + expresion_logica.etiquetaV.replace(":","") + "\n"
for i in self.instrucciones:
instruccion_if = i.traducir(tabla, arbol,cadenaTraducida)
if isinstance(instruccion_if, Excepcion):
return instruccion_if
codigo += instruccion_if
codigo += "\tgoto ." + etiquetaSalida + "\n"
codigo += "\tlabel " + expresion_logica.etiquetaF.replace(":","") + "\n"
return codigo
# ...
# if temporal_logico:
# goto L1
# goto L2
# label L1
# instrucciones_if
# goto Lsalida
# label L2
# ...
else:
error = Excepcion('42804',"Semántico","La expresion logica debe ser de tipo boolean",self.linea,self.columna)
arbol.excepciones.append(error)
arbol.consola.append(error.toString())
return error
class CaseElse(Instruccion):
'''
La clase CaseElse, recibe una lista de condiciones y cada una de ellas tiene una lista de instrucciones
ademas de las instrucciones si todas son falsas
'''
def __init__(self,l_condiciones,instrCaseFalso,strGram, linea, columna, strSent):
Instruccion.__init__(self,None,linea,columna,strGram,strSent)
self.l_condiciones = l_condiciones
self.instrCaseFalso = instrCaseFalso
#desde aqui voy a mandar la etiqueta de escape
def ejecutar(self, tabla, arbol):
pass
def traducir(self, tabla, arbol,cadenaTraducida):
codigo = ""
etiquetaSalida = arbol.generaEtiqueta()
#Si existe algun error en la condicion se devuelve el error
for condicion in self.l_condiciones:
condicion_case = condicion.traducir(tabla, arbol,etiquetaSalida)
if isinstance(condicion_case, Excepcion):
return condicion_case
codigo += condicion_case
for i in self.instrCaseFalso:
instruccion_if = i.traducir(tabla, arbol,cadenaTraducida)
if isinstance(instruccion_if, Excepcion):
return instruccion_if
codigo += instruccion_if
codigo += "\tlabel " + etiquetaSalida + "\n"
return codigo
class CaseID(Instruccion):
'''
La clase CaseID, recibe una variable a evaluar, una lista de condiciones
y cada una de ellas tiene una lista de instrucciones
'''
def __init__(self,identificador,l_condiciones,strGram, linea, columna, strSent):
Instruccion.__init__(self,None,linea,columna,strGram,strSent)
self.identificador = identificador
self.l_condiciones = l_condiciones
#desde aqui voy a mandar la etiqueta de escape
def ejecutar(self, tabla, arbol):
pass
def traducir(self, tabla, arbol,cadenaTraducida):
temporal = arbol.generaTemporal()
codigo = "\t" + temporal + " = " + self.identificador + "\n"
etiquetaSalida = arbol.generaEtiqueta()
#Si existe algun error en la condicion se devuelve el error
for condicion in self.l_condiciones:
condicion_case = condicion.traducir(tabla, arbol,etiquetaSalida,temporal)
if isinstance(condicion_case, Excepcion):
return condicion_case
codigo += condicion_case
codigo += "\tlabel ." + etiquetaSalida + "\n"
return codigo
class condicion_caseID(Instruccion):
'''
La clase recibe una lista de expresiones y una lista de instrucciones
'''
def __init__(self, expLogica,instrucciones,strGram, linea, columna, strSent):
Instruccion.__init__(self,None,linea,columna,strGram,strSent)
self.expLogica = expLogica
self.instrucciones = instrucciones
def ejecutar(self, tabla, arbol):
pass
def traducir(self, tabla, arbol,cadenaTraducida,temporal):
#Si existe algun error en la expresion logica se devuelve el error
temporal = temporal
codigo = ""
for expre in self.expLogica:
expresion_logica = expre.traducir(tabla, arbol,cadenaTraducida)
if isinstance(expresion_logica, Excepcion):
return expresion_logica
#expresion logica contiene un simbolo3D codigo = temporal = valor
codigo += expresion_logica.codigo
#Inicia traduccion
etiquetaV = arbol.generaEtiqueta()
etiquetaF = arbol.generaEtiqueta()
etiquetaSalida = cadenaTraducida
codigo += "\tif (" + temporal + "==" + expresion_logica.temporal + "):\n"
codigo += "\t\tgoto ." + etiquetaV + "\n"
codigo += "\tgoto ." + etiquetaF + "\n"
codigo += "\tlabel ." + etiquetaV + "\n"
for i in self.instrucciones:
instruccion_if = i.traducir(tabla, arbol,cadenaTraducida)
if isinstance(instruccion_if, Excepcion):
return instruccion_if
codigo += instruccion_if
codigo += "\tgoto ." + etiquetaSalida + "\n"
codigo += "\tlabel ." + etiquetaF + "\n"
return codigo
# ...
# if temporal_logico:
# goto L1
# goto L2
# label L1
# instrucciones_if
# goto Lsalida
# label L2
# ...
class CaseIDElse(Instruccion):
'''
La clase CaseIDElse, recibe una variablea evaluar, una lista de condiciones y cada una de ellas
tiene una lista de instrucciones, ademas de las instrucciones si todas son falsas
'''
def __init__(self,identificador,l_condiciones,instrCaseFalso,strGram, linea, columna, strSent):
Instruccion.__init__(self,None,linea,columna,strGram,strSent)
self.identificador = identificador
self.l_condiciones = l_condiciones
self.instrCaseFalso = instrCaseFalso
#desde aqui voy a mandar la etiqueta de escape
def ejecutar(self, tabla, arbol):
pass
def traducir(self, tabla, arbol,cadenaTraducida):
temporal = arbol.generaTemporal()
codigo = "\t" + temporal + " = " + self.identificador + "\n"
etiquetaSalida = arbol.generaEtiqueta()
#Si existe algun error en la condicion se devuelve el error
for condicion in self.l_condiciones:
condicion_case = condicion.traducir(tabla, arbol,etiquetaSalida,temporal)
if isinstance(condicion_case, Excepcion):
return condicion_case
codigo += condicion_case
for i in self.instrCaseFalso:
instruccion_if = i.traducir(tabla, arbol,cadenaTraducida)
if isinstance(instruccion_if, Excepcion):
return instruccion_if
codigo += instruccion_if
codigo += "\tlabel ." + etiquetaSalida + "\n"
return codigo
| 40.765766
| 121
| 0.631713
| 927
| 9,050
| 6.039914
| 0.122977
| 0.039293
| 0.030005
| 0.024647
| 0.800321
| 0.790677
| 0.77496
| 0.774067
| 0.774067
| 0.774067
| 0
| 0.002171
| 0.287514
| 9,050
| 222
| 122
| 40.765766
| 0.86616
| 0.173481
| 0
| 0.739437
| 0
| 0
| 0.028987
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.126761
| false
| 0.042254
| 0.028169
| 0
| 0.316901
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
89423055c6b1874719a9ee46af208da9b3e24736
| 16,641
|
py
|
Python
|
report.py
|
reniericorreia/MTVCodeSmellCheck
|
4f1deb7f117effcdffbf7cff49047d153319769d
|
[
"MIT"
] | null | null | null |
report.py
|
reniericorreia/MTVCodeSmellCheck
|
4f1deb7f117effcdffbf7cff49047d153319769d
|
[
"MIT"
] | null | null | null |
report.py
|
reniericorreia/MTVCodeSmellCheck
|
4f1deb7f117effcdffbf7cff49047d153319769d
|
[
"MIT"
] | 3
|
2018-05-14T20:25:31.000Z
|
2020-07-23T01:27:36.000Z
|
# -*- coding: utf-8 -*-
from __future__ import unicode_literals
import csv
import pandas as pd
def export_csv(head=[], datalist=[], filename='export_csv.csv', delimitator=';'):
c = csv.writer(open(filename, "wb"))
c.writerow(head)
for data in datalist:
c.writerow(data.__str__().split(delimitator))
print(' - {}'.format(filename))
def exportar_csv(methods, functions):
c = csv.writer(open("metrics_report.csv", "wb"))
c.writerow(["app", "modulo", "classe", "metodo", "mccabe", "sql"])
for key in methods.keys():
keys = key.split('.')
values = methods[key].split(';')
c.writerow([keys[0], keys[1], keys[-2], keys[-1], values[0], values[1]])
for key in functions.keys():
keys = key.split('.')
values = functions[key].split(';')
c.writerow([keys[0], keys[1], '-', keys[-1], values[0], values[1]])
def print_metrics(methods, functions):
methods.update(functions)
list_complexidade_ciclomatica = []
list_complexidade_sql = []
list_complexidade_ciclomatica_models = []
list_complexidade_sql_models = []
list_complexidade_ciclomatica_views = []
list_complexidade_sql_views = []
list_complexidade_ciclomatica_admin = []
list_complexidade_sql_admin = []
list_complexidade_ciclomatica_forms = []
list_complexidade_sql_forms = []
list_complexidade_ciclomatica_outros = []
list_complexidade_sql_outros = []
for key in methods.keys():
values = methods[key].split(';')
contains_sql = values[1] != '-1'
list_complexidade_ciclomatica.append(int(values[0]))
if contains_sql:
list_complexidade_sql.append(round(float(values[1]),2))
if 'models' in key:
list_complexidade_ciclomatica_models.append(int(values[0]))
if contains_sql:
list_complexidade_sql_models.append(round(float(values[1]),2))
elif 'views' in key:
list_complexidade_ciclomatica_views.append(int(values[0]))
if contains_sql:
list_complexidade_sql_views.append(round(float(values[1]),2))
elif 'admin' in key:
list_complexidade_ciclomatica_admin.append(int(values[0]))
if contains_sql:
list_complexidade_sql_admin.append(round(float(values[1]),2))
elif 'forms' in key:
list_complexidade_ciclomatica_forms.append(int(values[0]))
if contains_sql:
list_complexidade_sql_forms.append(round(float(values[1]),2))
else:
list_complexidade_ciclomatica_outros.append(int(values[0]))
if contains_sql:
list_complexidade_sql_outros.append(float(values[1]))
series_complexidade_ciclomatica = pd.Series(list_complexidade_ciclomatica)
print '[todos] Total de métodos: ', len(list_complexidade_ciclomatica)
print 'Complexidade Ciclomática Média: ', series_complexidade_ciclomatica.mean()
print 'Complexidade Ciclomática Mediana: ', series_complexidade_ciclomatica.median()
print 'Complexidade Ciclomática Quantil (LOW): ', series_complexidade_ciclomatica.quantile(q=0.25)
print 'Complexidade Ciclomática Quantil (MEDIUM): ', series_complexidade_ciclomatica.quantile(q=0.5)
print 'Complexidade Ciclomática Quantil (HIGH): ', series_complexidade_ciclomatica.quantile(q=0.75)
print 'Complexidade Ciclomática Moda: ', series_complexidade_ciclomatica.mode()
print 'Complexidade Ciclomática Mínima: ', series_complexidade_ciclomatica.min()
print 'Complexidade Ciclomática Máxima: ', series_complexidade_ciclomatica.max()
print 'Complexidade Ciclomática Variância: ', series_complexidade_ciclomatica.var()
print 'Complexidade Ciclomática Desvio Padrão: ', series_complexidade_ciclomatica.std()
print 'Complexidade Ciclomática Desvio Absoluto: ', series_complexidade_ciclomatica.mad()
print '--------------------------------------------\n'
series_complexidade_sql = pd.Series(list_complexidade_sql)
print '[todos] Total de métodos com SQL: ', len(list_complexidade_sql)
print 'Complexidade do SQL Média: ', series_complexidade_sql.mean()
print 'Complexidade do SQL Mediana: ', series_complexidade_sql.median()
print 'Complexidade do SQL Quantil (LOW): ', series_complexidade_sql.quantile(q=0.25)
print 'Complexidade do SQL Quantil (MEDIUM): ', series_complexidade_sql.quantile(q=0.5)
print 'Complexidade do SQL Quantil (HIGH): ', series_complexidade_sql.quantile(q=0.75)
print 'Complexidade do SQL Moda: ', series_complexidade_sql.mode()
print 'Complexidade do SQL Mínima: ', series_complexidade_sql.min()
print 'Complexidade do SQL Máxima: ', series_complexidade_sql.max()
print 'Complexidade do SQL Variância: ', series_complexidade_sql.var()
print 'Complexidade do SQL Desvio Padrão: ', series_complexidade_sql.std()
print 'Complexidade do SQL Desvio Absoluto: ', series_complexidade_sql.mad()
print '############################################\n'
series_complexidade_ciclomatica = pd.Series(list_complexidade_ciclomatica_models)
print '[models] Total de métodos: ', len(list_complexidade_ciclomatica_models)
print 'Complexidade Ciclomática Média: ', series_complexidade_ciclomatica.mean()
print 'Complexidade Ciclomática Mediana: ', series_complexidade_ciclomatica.median()
print 'Complexidade Ciclomática Quantil (LOW): ', series_complexidade_ciclomatica.quantile(q=0.25)
print 'Complexidade Ciclomática Quantil (MEDIUM): ', series_complexidade_ciclomatica.quantile(q=0.5)
print 'Complexidade Ciclomática Quantil (HIGH): ', series_complexidade_ciclomatica.quantile(q=0.75)
print 'Complexidade Ciclomática Moda: ', series_complexidade_ciclomatica.mode()
print 'Complexidade Ciclomática Mínima: ', series_complexidade_ciclomatica.min()
print 'Complexidade Ciclomática Máxima: ', series_complexidade_ciclomatica.max()
print 'Complexidade Ciclomática Variância: ', series_complexidade_ciclomatica.var()
print 'Complexidade Ciclomática Desvio Padrão: ', series_complexidade_ciclomatica.std()
print 'Complexidade Ciclomática Desvio Absoluto: ', series_complexidade_ciclomatica.mad()
print '--------------------------------------------\n'
series_complexidade_sql = pd.Series(list_complexidade_sql_models)
print '[models] Total de métodos com SQL: ', len(list_complexidade_sql_models)
print 'Complexidade do SQL Média: ', series_complexidade_sql.mean()
print 'Complexidade do SQL Mediana: ', series_complexidade_sql.median()
print 'Complexidade do SQL Quantil (LOW): ', series_complexidade_sql.quantile(q=0.25)
print 'Complexidade do SQL Quantil (MEDIUM): ', series_complexidade_sql.quantile(q=0.5)
print 'Complexidade do SQL Quantil (HIGH): ', series_complexidade_sql.quantile(q=0.75)
print 'Complexidade do SQL Moda: ', series_complexidade_sql.mode()
print 'Complexidade do SQL Mínima: ', series_complexidade_sql.min()
print 'Complexidade do SQL Máxima: ', series_complexidade_sql.max()
print 'Complexidade do SQL Variância: ', series_complexidade_sql.var()
print 'Complexidade do SQL Desvio Padrão: ', series_complexidade_sql.std()
print 'Complexidade do SQL Desvio Absoluto: ', series_complexidade_sql.mad()
print '############################################\n'
series_complexidade_ciclomatica = pd.Series(list_complexidade_ciclomatica_views)
print '[views] Total de métodos: ', len(list_complexidade_ciclomatica_views)
print 'Complexidade Ciclomática Média: ', series_complexidade_ciclomatica.mean()
print 'Complexidade Ciclomática Mediana: ', series_complexidade_ciclomatica.median()
print 'Complexidade Ciclomática Quantil (LOW): ', series_complexidade_ciclomatica.quantile(q=0.25)
print 'Complexidade Ciclomática Quantil (MEDIUM): ', series_complexidade_ciclomatica.quantile(q=0.5)
print 'Complexidade Ciclomática Quantil (HIGH): ', series_complexidade_ciclomatica.quantile(q=0.75)
print 'Complexidade Ciclomática Moda: ', series_complexidade_ciclomatica.mode()
print 'Complexidade Ciclomática Mínima: ', series_complexidade_ciclomatica.min()
print 'Complexidade Ciclomática Máxima: ', series_complexidade_ciclomatica.max()
print 'Complexidade Ciclomática Variância: ', series_complexidade_ciclomatica.var()
print 'Complexidade Ciclomática Desvio Padrão: ', series_complexidade_ciclomatica.std()
print 'Complexidade Ciclomática Desvio Absoluto: ', series_complexidade_ciclomatica.mad()
print '--------------------------------------------\n'
series_complexidade_sql = pd.Series(list_complexidade_sql_views)
print '[views] Total de métodos com SQL: ', len(list_complexidade_sql_views)
print 'Complexidade do SQL Média: ', series_complexidade_sql.mean()
print 'Complexidade do SQL Mediana: ', series_complexidade_sql.median()
print 'Complexidade do SQL Quantil (LOW): ', series_complexidade_sql.quantile(q=0.25)
print 'Complexidade do SQL Quantil (MEDIUM): ', series_complexidade_sql.quantile(q=0.5)
print 'Complexidade do SQL Quantil (HIGH): ', series_complexidade_sql.quantile(q=0.75)
print 'Complexidade do SQL Moda: ', series_complexidade_sql.mode()
print 'Complexidade do SQL Mínima: ', series_complexidade_sql.min()
print 'Complexidade do SQL Máxima: ', series_complexidade_sql.max()
print 'Complexidade do SQL Variância: ', series_complexidade_sql.var()
print 'Complexidade do SQL Desvio Padrão: ', series_complexidade_sql.std()
print 'Complexidade do SQL Desvio Absoluto: ', series_complexidade_sql.mad()
print '############################################\n'
series_complexidade_ciclomatica = pd.Series(list_complexidade_ciclomatica_admin)
print '[admin] Total de métodos: ', len(list_complexidade_ciclomatica_admin)
print 'Complexidade Ciclomática Média: ', series_complexidade_ciclomatica.mean()
print 'Complexidade Ciclomática Mediana: ', series_complexidade_ciclomatica.median()
print 'Complexidade Ciclomática Quantil (LOW): ', series_complexidade_ciclomatica.quantile(q=0.25)
print 'Complexidade Ciclomática Quantil (MEDIUM): ', series_complexidade_ciclomatica.quantile(q=0.5)
print 'Complexidade Ciclomática Quantil (HIGH): ', series_complexidade_ciclomatica.quantile(q=0.75)
print 'Complexidade Ciclomática Moda: ', series_complexidade_ciclomatica.mode()
print 'Complexidade Ciclomática Mínima: ', series_complexidade_ciclomatica.min()
print 'Complexidade Ciclomática Máxima: ', series_complexidade_ciclomatica.max()
print 'Complexidade Ciclomática Variância: ', series_complexidade_ciclomatica.var()
print 'Complexidade Ciclomática Desvio Padrão: ', series_complexidade_ciclomatica.std()
print 'Complexidade Ciclomática Desvio Absoluto: ', series_complexidade_ciclomatica.mad()
print '--------------------------------------------\n'
series_complexidade_sql = pd.Series(list_complexidade_sql_admin)
print '[admin] Total de métodos com SQL: ', len(list_complexidade_sql_admin)
print 'Complexidade do SQL Média: ', series_complexidade_sql.mean()
print 'Complexidade do SQL Mediana: ', series_complexidade_sql.median()
print 'Complexidade do SQL Quantil (LOW): ', series_complexidade_sql.quantile(q=0.25)
print 'Complexidade do SQL Quantil (MEDIUM): ', series_complexidade_sql.quantile(q=0.5)
print 'Complexidade do SQL Quantil (HIGH): ', series_complexidade_sql.quantile(q=0.75)
print 'Complexidade do SQL Moda: ', series_complexidade_sql.mode()
print 'Complexidade do SQL Mínima: ', series_complexidade_sql.min()
print 'Complexidade do SQL Máxima: ', series_complexidade_sql.max()
print 'Complexidade do SQL Variância: ', series_complexidade_sql.var()
print 'Complexidade do SQL Desvio Padrão: ', series_complexidade_sql.std()
print 'Complexidade do SQL Desvio Absoluto: ', series_complexidade_sql.mad()
print '############################################\n'
series_complexidade_ciclomatica = pd.Series(list_complexidade_ciclomatica_forms)
print '[forms] Total de métodos: ', len(list_complexidade_ciclomatica_forms)
print 'Complexidade Ciclomática Média: ', series_complexidade_ciclomatica.mean()
print 'Complexidade Ciclomática Mediana: ', series_complexidade_ciclomatica.median()
print 'Complexidade Ciclomática Quantil (LOW): ', series_complexidade_ciclomatica.quantile(q=0.25)
print 'Complexidade Ciclomática Quantil (MEDIUM): ', series_complexidade_ciclomatica.quantile(q=0.5)
print 'Complexidade Ciclomática Quantil (HIGH): ', series_complexidade_ciclomatica.quantile(q=0.75)
print 'Complexidade Ciclomática Moda: ', series_complexidade_ciclomatica.mode()
print 'Complexidade Ciclomática Mínima: ', series_complexidade_ciclomatica.min()
print 'Complexidade Ciclomática Máxima: ', series_complexidade_ciclomatica.max()
print 'Complexidade Ciclomática Variância: ', series_complexidade_ciclomatica.var()
print 'Complexidade Ciclomática Desvio Padrão: ', series_complexidade_ciclomatica.std()
print 'Complexidade Ciclomática Desvio Absoluto: ', series_complexidade_ciclomatica.mad()
print '--------------------------------------------\n'
series_complexidade_sql = pd.Series(list_complexidade_sql_forms)
print '[forms] Total de métodos com SQL: ', len(list_complexidade_sql_forms)
print 'Complexidade do SQL Média: ', series_complexidade_sql.mean()
print 'Complexidade do SQL Mediana: ', series_complexidade_sql.median()
print 'Complexidade do SQL Quantil (LOW): ', series_complexidade_sql.quantile(q=0.25)
print 'Complexidade do SQL Quantil (MEDIUM): ', series_complexidade_sql.quantile(q=0.5)
print 'Complexidade do SQL Quantil (HIGH): ', series_complexidade_sql.quantile(q=0.75)
print 'Complexidade do SQL Moda: ', series_complexidade_sql.mode()
print 'Complexidade do SQL Mínima: ', series_complexidade_sql.min()
print 'Complexidade do SQL Máxima: ', series_complexidade_sql.max()
print 'Complexidade do SQL Variância: ', series_complexidade_sql.var()
print 'Complexidade do SQL Desvio Padrão: ', series_complexidade_sql.std()
print 'Complexidade do SQL Desvio Absoluto: ', series_complexidade_sql.mad()
print '############################################\n'
series_complexidade_ciclomatica = pd.Series(list_complexidade_ciclomatica_outros)
print '[outros] Total de métodos: ', len(list_complexidade_ciclomatica_outros)
print 'Complexidade Ciclomática Média: ', series_complexidade_ciclomatica.mean()
print 'Complexidade Ciclomática Mediana: ', series_complexidade_ciclomatica.median()
print 'Complexidade Ciclomática Quantil (LOW): ', series_complexidade_ciclomatica.quantile(q=0.25)
print 'Complexidade Ciclomática Quantil (MEDIUM): ', series_complexidade_ciclomatica.quantile(q=0.5)
print 'Complexidade Ciclomática Quantil (HIGH): ', series_complexidade_ciclomatica.quantile(q=0.75)
print 'Complexidade Ciclomática Moda: ', series_complexidade_ciclomatica.mode()
print 'Complexidade Ciclomática Mínima: ', series_complexidade_ciclomatica.min()
print 'Complexidade Ciclomática Máxima: ', series_complexidade_ciclomatica.max()
print 'Complexidade Ciclomática Variância: ', series_complexidade_ciclomatica.var()
print 'Complexidade Ciclomática Desvio Padrão: ', series_complexidade_ciclomatica.std()
print 'Complexidade Ciclomática Desvio Absoluto: ', series_complexidade_ciclomatica.mad()
print '--------------------------------------------\n'
series_complexidade_sql = pd.Series(list_complexidade_sql_outros)
print '[outros] Total de métodos com SQL: ', len(list_complexidade_sql_outros)
print 'Complexidade do SQL Média: ', series_complexidade_sql.mean()
print 'Complexidade do SQL Mediana: ', series_complexidade_sql.median()
print 'Complexidade do SQL Quantil (LOW): ', series_complexidade_sql.quantile(q=0.25)
print 'Complexidade do SQL Quantil (MEDIUM): ', series_complexidade_sql.quantile(q=0.5)
print 'Complexidade do SQL Quantil (HIGH): ', series_complexidade_sql.quantile(q=0.75)
print 'Complexidade do SQL Moda: ', series_complexidade_sql.mode()
print 'Complexidade do SQL Mínima: ', series_complexidade_sql.min()
print 'Complexidade do SQL Máxima: ', series_complexidade_sql.max()
print 'Complexidade do SQL Variância: ', series_complexidade_sql.var()
print 'Complexidade do SQL Desvio Padrão: ', series_complexidade_sql.std()
print 'Complexidade do SQL Desvio Absoluto: ', series_complexidade_sql.mad()
print '############################################\n'
| 69.627615
| 104
| 0.728802
| 1,874
| 16,641
| 6.234258
| 0.053362
| 0.221861
| 0.178721
| 0.124283
| 0.919798
| 0.895832
| 0.875289
| 0.845502
| 0.840024
| 0.813147
| 0
| 0.008898
| 0.142299
| 16,641
| 238
| 105
| 69.920168
| 0.809641
| 0.001262
| 0
| 0.684211
| 0
| 0
| 0.333935
| 0.033219
| 0
| 0
| 0
| 0
| 0
| 0
| null | null | 0
| 0.013158
| null | null | 0.692982
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
|
0
| 9
|
894a5779f5981fbc1930b87d14c0f1e033ccc8d3
| 35,418
|
py
|
Python
|
tests/test_interface_ats.py
|
alliedtelesis/py-networking
|
6c5d4bdafabfb4feef235a02344432e1f0336e48
|
[
"Apache-2.0"
] | 4
|
2015-04-24T20:36:56.000Z
|
2021-05-03T20:21:54.000Z
|
tests/test_interface_ats.py
|
alliedtelesis/py-networking
|
6c5d4bdafabfb4feef235a02344432e1f0336e48
|
[
"Apache-2.0"
] | 1
|
2019-07-14T07:07:21.000Z
|
2019-07-14T07:07:21.000Z
|
tests/test_interface_ats.py
|
alliedtelesis/py-networking
|
6c5d4bdafabfb4feef235a02344432e1f0336e48
|
[
"Apache-2.0"
] | 3
|
2015-04-24T20:37:04.000Z
|
2017-03-02T15:14:46.000Z
|
# -*- coding: utf-8 -*-
import pytest
from pynetworking.Device import Device
ats_supported_sw_version = '3.0.0.44'
ats_supported_boot_version = '1.0.1.07'
ats_basic_supported_model = 'AT-8000S'
ats_supported_model = [ats_basic_supported_model + '/' + '24', ats_basic_supported_model + '/' + '48']
ats_model_port_number = 0
ats_total_port_number = 0
show_interface_header = """
Flow Admin Back Mdix
Port Type Duplex Speed Neg control State Pressure Mode
-------- ------------ ------ ----- -------- ------- ----- -------- ----
"""
def setup_dut(dut):
dut.reset()
dut.prompt = '#'
dut.add_cmd({'cmd': 'show version', 'state': -1, 'action': 'PRINT', 'args': ["""
Unit SW version Boot version HW version
------------------- ------------------- ------------------- -------------------
1 3.0.0.44 1.0.1.07 00.01.00
"""]})
dut.add_cmd({'cmd': 'show system', 'state': -1, 'action': 'PRINT', 'args': ["""
Unit Type
---- -------------------
1 AT-8000S/24
Unit Up time
---- ---------------
1 00,00:14:51
Unit Number: 1
Serial number:
"""]})
def test_show_system(dut, log_level, use_mock):
if dut.mode != 'emulated':
pytest.skip("only on emulated")
setup_dut(dut)
d = Device(host=dut.host, port=dut.port, protocol=dut.protocol, log_level=log_level, mock=use_mock)
d.open()
assert (d.facts['model'] in ats_supported_model)
global ats_model_port_number
ats_model_port_number = d.facts['model'][len(ats_basic_supported_model) + 1:]
d.close()
def test_show_version(dut, log_level, use_mock):
if dut.mode != 'emulated':
pytest.skip("only on emulated")
setup_dut(dut)
d = Device(host=dut.host, port=dut.port, protocol=dut.protocol, log_level=log_level, mock=use_mock)
d.open()
assert (d.facts['version'] == ats_supported_sw_version)
d.close()
def test_ping1(dut, log_level, use_mock):
setup_dut(dut)
d = Device(host=dut.host, port=dut.port, protocol=dut.protocol, log_level=log_level, mock=use_mock)
d.open()
assert d.ping()
d.close()
def test_get_interface(dut, log_level, use_mock):
if dut.mode != 'emulated':
pytest.skip("only on emulated")
setup_dut(dut)
dut.add_cmd({'cmd': 'show interfaces status', 'state': 0, 'action': 'PRINT', 'args': ["""
Flow Link Back Mdix
Port Type Duplex Speed Neg ctrl State Pressure Mode
-------- ------------ ------ ----- -------- ---- ----------- -------- -------
1/e1 100M-Copper Full 100 Enabled Off Up Disabled On
1/e2 100M-Copper -- -- -- -- Down -- --
1/e3 100M-Copper -- -- -- -- Down -- --
1/e4 100M-Copper -- -- -- -- Down -- --
1/e5 100M-Copper -- -- -- -- Down -- --
1/e6 100M-Copper -- -- -- -- Down -- --
1/e7 100M-Copper -- -- -- -- Down -- --
1/e8 100M-Copper -- -- -- -- Down -- --
1/e9 100M-Copper -- -- -- -- Down -- --
1/e10 100M-Copper -- -- -- -- Down -- --
1/e11 100M-Copper -- -- -- -- Down -- --
1/e12 100M-Copper -- -- -- -- Down -- --
1/e13 100M-Copper -- -- -- -- Down -- --
1/e14 100M-Copper -- -- -- -- Down -- --
1/e15 100M-Copper -- -- -- -- Down -- --
1/e16 100M-Copper -- -- -- -- Down -- --
1/e17 100M-Copper -- -- -- -- Down -- --
1/e18 100M-Copper -- -- -- -- Down -- --
1/e19 100M-Copper -- -- -- -- Down -- --
1/e20 100M-Copper -- -- -- -- Down -- --
1/e21 100M-Copper -- -- -- -- Down -- --
1/e22 100M-Copper -- -- -- -- Down -- --
1/e23 100M-Copper -- -- -- -- Down -- --
1/e24 100M-Copper -- -- -- -- Down -- --
1/e25 -- -- -- -- -- Not Present -- --
1/e26 -- -- -- -- -- Not Present -- --
1/e27 -- -- -- -- -- Not Present -- --
1/e28 -- -- -- -- -- Not Present -- --
1/e29 -- -- -- -- -- Not Present -- --
1/e30 -- -- -- -- -- Not Present -- --
1/e31 -- -- -- -- -- Not Present -- --
1/e32 -- -- -- -- -- Not Present -- --
1/e33 -- -- -- -- -- Not Present -- --
1/g1 1G-Combo-C -- -- -- -- Down -- --
1/g2 1G-Combo-C -- -- -- -- Down -- --
1/g3 -- -- -- -- -- Not Present -- --
1/g4 -- -- -- -- -- Not Present -- --
2/e1 -- -- -- -- -- Not Present -- --
2/e2 -- -- -- -- -- Not Present -- --
2/e3 -- -- -- -- -- Not Present -- --
"""]})
dut.add_cmd({'cmd': 'show interfaces configuration', 'state': 0, 'action': 'PRINT', 'args': ["""
Flow Admin Back Mdix
Port Type Duplex Speed Neg control State Pressure Mode
-------- ------------ ------ ----- -------- ------- ----- -------- ----
1/e1 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e2 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e3 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e4 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e5 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e6 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e7 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e8 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e9 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e10 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e11 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e12 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e13 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e14 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e15 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e16 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e17 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e18 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e19 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e20 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e21 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e22 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e23 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e24 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e25 -- Full -- Enabled Off Up Disabled Auto
1/e26 -- Full -- Enabled Off Up Disabled Auto
1/e27 -- Full -- Enabled Off Up Disabled Auto
1/e28 -- Full -- Enabled Off Up Disabled Auto
1/e29 -- Full -- Enabled Off Up Disabled Auto
1/e30 -- Full -- Enabled Off Up Disabled Auto
1/e31 -- Full -- Enabled Off Up Disabled Auto
1/e32 -- Full -- Enabled Off Up Disabled Auto
1/e33 -- Full -- Enabled Off Up Disabled Auto
1/e34 -- Full -- Enabled Off Up Disabled Auto
1/e35 -- Full -- Enabled Off Up Disabled Auto
1/e36 -- Full -- Enabled Off Up Disabled Auto
1/e37 -- Full -- Enabled Off Up Disabled Auto
1/e38 -- Full -- Enabled Off Up Disabled Auto
1/e39 -- Full -- Enabled Off Up Disabled Auto
1/e40 -- Full -- Enabled Off Up Disabled Auto
1/e41 -- Full -- Enabled Off Up Disabled Auto
1/e42 -- Full -- Enabled Off Up Disabled Auto
1/e43 -- Full -- Enabled Off Up Disabled Auto
1/e44 -- Full -- Enabled Off Up Disabled Auto
1/e45 -- Full -- Enabled Off Up Disabled Auto
1/e46 -- Full -- Enabled Off Up Disabled Auto
1/e47 -- Full -- Enabled Off Up Disabled Auto
1/e48 -- Full -- Enabled Off Up Disabled Auto
1/g1 1G-Combo-C Full 1000 Enabled Off Up Disabled Auto
1/g2 1G-Combo-C Full 1000 Enabled Off Up Disabled Auto
1/g3 -- Full -- Enabled Off Up Disabled Auto
1/g4 -- Full -- Enabled Off Up Disabled Auto
2/e1 -- Full -- Enabled Off Up Disabled Auto
2/e2 -- Full -- Enabled Off Up Disabled Auto
2/e3 -- Full -- Enabled Off Up Disabled Auto
2/e4 -- Full -- Enabled Off Up Disabled Auto
2/e5 -- Full -- Enabled Off Up Disabled Auto
2/e6 -- Full -- Enabled Off Up Disabled Auto
2/e7 -- Full -- Enabled Off Up Disabled Auto
"""]})
dut.add_cmd({'cmd': 'show interfaces description', 'state': 0, 'action': 'PRINT', 'args': ["""
Port Description
------- -----------
1/e1
1/e2
1/e3
1/e4 singleworddescription
1/e5
1/e6
1/e7
1/e8
1/e9
1/e10
1/e11
1/e12 some_description
1/e13
1/e14
1/e15
1/e16
1/e17
1/e18
1/e19
1/e20 some description
1/e21
1/e22
1/e23
1/e24
1/e25
1/e26
1/e27
1/e28
1/e29
1/e30
1/e31
1/e32
1/e33
1/e34
1/e35
1/e36
1/e37
1/e38
1/e39
1/e40
1/e41
1/e42
1/e43
1/e44
1/e45
1/e46
1/e47
1/e48
1/g1
1/g2
1/g3
1/g4
2/e1
2/e2
2/e3
"""]})
d = Device(host=dut.host, port=dut.port, protocol=dut.protocol, log_level=log_level, mock=use_mock)
d.open()
assert d.facts['os'] == 'ats'
assert d.interface['1.0.4']['link'] is False
assert d.interface['1.0.4']['description'] == 'singleworddescription'
assert d.interface['1.0.12']['description'] == 'some_description'
assert d.interface['1.0.20']['description'] == 'some description'
ats_total_port_number = len(d.interface.keys())
index_list = [1, 8, 24, 25, 26]
for index in index_list:
ref = '1.0.{0}'.format(index)
assert d.interface[ref]['configured_duplex'] == 'full'
assert d.interface[ref]['configured_polarity'] == 'auto'
assert d.interface[ref]['enable'] is True
assert d.interface[ref]['link'] is False
for index in range(1, 2):
ref = '1.0.{0}'.format(index)
assert d.interface[ref]['configured_speed'] == '100'
for index in range(25, ats_total_port_number + 1):
ref = '1.0.{0}'.format(index)
assert d.interface[ref]['configured_speed'] == '1000'
assert ("1.0.1", {"configured_polarity": "auto", "enable": True, "configured_duplex": "full", "configured_speed": "100",
"current_polarity": "mdix", "current_speed": "100", "current_duplex": "full", "link": False}) in d.interface.items()
with pytest.raises(KeyError) as excinfo:
d.interface['1.0.{0}'.format(10 * ats_total_port_number)]['link'] is False
assert 'interface 1.0.{0} does not exist'.format(10 * ats_total_port_number) in excinfo.value
with pytest.raises(TypeError) as excinfo:
d.interface[False]['link'] is False
assert 'invalid argument type' in excinfo.value
assert (d.interface.__str__() != '')
d.close()
def test_update_description(dut, log_level, use_mock):
setup_dut(dut)
dut.add_cmd({'cmd': 'show interfaces status', 'state': -1, 'action': 'PRINT', 'args': ["""
Flow Link Back Mdix
Port Type Duplex Speed Neg ctrl State Pressure Mode
-------- ------------ ------ ----- -------- ---- ----------- -------- -------
1/e1 100M-Copper Full 100 Enabled Off Up Disabled On
1/e2 100M-Copper -- -- -- -- Down -- --
1/e3 100M-Copper -- -- -- -- Down -- --
1/e4 100M-Copper -- -- -- -- Down -- --
1/e5 100M-Copper -- -- -- -- Down -- --
1/e6 100M-Copper -- -- -- -- Down -- --
1/e7 100M-Copper -- -- -- -- Down -- --
1/e8 100M-Copper -- -- -- -- Down -- --
1/e9 100M-Copper -- -- -- -- Down -- --
1/e10 100M-Copper -- -- -- -- Down -- --
1/e11 100M-Copper -- -- -- -- Down -- --
1/e12 100M-Copper -- -- -- -- Down -- --
1/e13 100M-Copper -- -- -- -- Down -- --
1/e14 100M-Copper -- -- -- -- Down -- --
1/e15 100M-Copper -- -- -- -- Down -- --
1/e16 100M-Copper -- -- -- -- Down -- --
1/e17 100M-Copper -- -- -- -- Down -- --
1/e18 100M-Copper -- -- -- -- Down -- --
1/e19 100M-Copper -- -- -- -- Down -- --
1/e20 100M-Copper -- -- -- -- Down -- --
1/e21 100M-Copper -- -- -- -- Down -- --
1/e22 100M-Copper -- -- -- -- Down -- --
1/e23 100M-Copper -- -- -- -- Down -- --
1/e24 100M-Copper -- -- -- -- Down -- --
1/e25 -- -- -- -- -- Not Present -- --
1/e26 -- -- -- -- -- Not Present -- --
1/e27 -- -- -- -- -- Not Present -- --
1/e28 -- -- -- -- -- Not Present -- --
1/e29 -- -- -- -- -- Not Present -- --
1/e30 -- -- -- -- -- Not Present -- --
1/e31 -- -- -- -- -- Not Present -- --
1/e32 -- -- -- -- -- Not Present -- --
1/e33 -- -- -- -- -- Not Present -- --
1/g1 1G-Combo-C -- -- -- -- Down -- --
1/g2 1G-Combo-C -- -- -- -- Down -- --
1/g3 -- -- -- -- -- Not Present -- --
1/g4 -- -- -- -- -- Not Present -- --
2/e1 -- -- -- -- -- Not Present -- --
2/e2 -- -- -- -- -- Not Present -- --
2/e3 -- -- -- -- -- Not Present -- --
"""]})
dut.add_cmd({'cmd': 'show interfaces configuration', 'state': -1, 'action': 'PRINT', 'args': ["""
Flow Admin Back Mdix
Port Type Duplex Speed Neg control State Pressure Mode
-------- ------------ ------ ----- -------- ------- ----- -------- ----
1/e1 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e2 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e3 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e4 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e5 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e6 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e7 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e8 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e9 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e10 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e11 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e12 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e13 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e14 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e15 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e16 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e17 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e18 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e19 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e20 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e21 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e22 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e23 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e24 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e25 -- Full -- Enabled Off Up Disabled Auto
1/e26 -- Full -- Enabled Off Up Disabled Auto
1/e27 -- Full -- Enabled Off Up Disabled Auto
1/e28 -- Full -- Enabled Off Up Disabled Auto
1/e29 -- Full -- Enabled Off Up Disabled Auto
1/e30 -- Full -- Enabled Off Up Disabled Auto
1/e31 -- Full -- Enabled Off Up Disabled Auto
1/e32 -- Full -- Enabled Off Up Disabled Auto
1/e33 -- Full -- Enabled Off Up Disabled Auto
1/e34 -- Full -- Enabled Off Up Disabled Auto
1/e35 -- Full -- Enabled Off Up Disabled Auto
1/e36 -- Full -- Enabled Off Up Disabled Auto
1/e37 -- Full -- Enabled Off Up Disabled Auto
1/e38 -- Full -- Enabled Off Up Disabled Auto
1/e39 -- Full -- Enabled Off Up Disabled Auto
1/e40 -- Full -- Enabled Off Up Disabled Auto
1/e41 -- Full -- Enabled Off Up Disabled Auto
1/e42 -- Full -- Enabled Off Up Disabled Auto
1/e43 -- Full -- Enabled Off Up Disabled Auto
1/e44 -- Full -- Enabled Off Up Disabled Auto
1/e45 -- Full -- Enabled Off Up Disabled Auto
1/e46 -- Full -- Enabled Off Up Disabled Auto
1/e47 -- Full -- Enabled Off Up Disabled Auto
1/e48 -- Full -- Enabled Off Up Disabled Auto
1/g1 1G-Combo-C Full 1000 Enabled Off Up Disabled Auto
1/g2 1G-Combo-C Full 1000 Enabled Off Up Disabled Auto
1/g3 -- Full -- Enabled Off Up Disabled Auto
1/g4 -- Full -- Enabled Off Up Disabled Auto
2/e1 -- Full -- Enabled Off Up Disabled Auto
2/e2 -- Full -- Enabled Off Up Disabled Auto
2/e3 -- Full -- Enabled Off Up Disabled Auto
2/e4 -- Full -- Enabled Off Up Disabled Auto
2/e5 -- Full -- Enabled Off Up Disabled Auto
2/e6 -- Full -- Enabled Off Up Disabled Auto
2/e7 -- Full -- Enabled Off Up Disabled Auto
"""]})
dut.add_cmd({'cmd': 'show interfaces description', 'state': 0, 'action': 'PRINT', 'args': ["""
Port Description
------- -----------
1/e1
1/e2
1/e3
1/e4 singleworddescription
1/e5
1/e6
1/e7
1/e8
1/e9
1/e10
1/e11
1/e12 some_description
1/e13
1/e14
1/e15
1/e16
1/e17
1/e18
1/e19
1/e20 some description
1/e21
1/e22
1/e23
1/e24
1/e25
1/e26
1/e27
1/e28
1/e29
1/e30
1/e31
1/e32
1/e33
1/e34
1/e35
1/e36
1/e37
1/e38
1/e39
1/e40
1/e41
1/e42
1/e43
1/e44
1/e45
1/e46
1/e47
1/e48
1/g1
1/g2
1/g3
1/g4
2/e1
2/e2
2/e3
"""]})
dut.add_cmd({'cmd': 'interface ethernet 1/e18', 'state': 0, 'action': 'SET_PROMPT', 'args': ['(config-if)#']})
dut.add_cmd({'cmd': 'interface ethernet 1/e18', 'state': 0, 'action': 'SET_STATE', 'args': [1]})
dut.add_cmd({'cmd': 'description "test description"', 'state': 1, 'action': 'SET_STATE', 'args': [2]})
dut.add_cmd({'cmd': 'show interfaces description', 'state': 2, 'action': 'PRINT', 'args': ["""
Port Description
------- -----------
1/e1
1/e2
1/e3
1/e4 singleworddescription
1/e5
1/e6
1/e7
1/e8
1/e9
1/e10
1/e11
1/e12 some_description
1/e13
1/e14
1/e15
1/e16
1/e17
1/e18 test description
1/e19
1/e20 some description
1/e21
1/e22
1/e23
1/e24
1/e25
1/e26
1/e27
1/e28
1/e29
1/e30
1/e31
1/e32
1/e33
1/e34
1/e35
1/e36
1/e37
1/e38
1/e39
1/e40
1/e41
1/e42
1/e43
1/e44
1/e45
1/e46
1/e47
1/e48
1/g1
1/g2
1/g3
1/g4
2/e1
2/e2
2/e3
"""]})
dut.add_cmd({'cmd': 'interface ethernet 1/g1', 'state': 2, 'action': 'SET_PROMPT', 'args': ['(config-if)#']})
dut.add_cmd({'cmd': 'interface ethernet 1/g1', 'state': 2, 'action': 'SET_STATE', 'args': [3]})
dut.add_cmd({'cmd': 'description test_description', 'state': 3, 'action': 'SET_STATE', 'args': [4]})
dut.add_cmd({'cmd': 'show interfaces description', 'state': 4, 'action': 'PRINT', 'args': ["""
Port Description
------- -----------
1/e1
1/e2
1/e3
1/e4 singleworddescription
1/e5
1/e6
1/e7
1/e8
1/e9
1/e10
1/e11
1/e12 some_description
1/e13
1/e14
1/e15
1/e16
1/e17
1/e18 test description
1/e19
1/e20 some description
1/e21
1/e22
1/e23
1/e24
1/e25
1/e26
1/e27
1/e28
1/e29
1/e30
1/e31
1/e32
1/e33
1/e34
1/e35
1/e36
1/e37
1/e38
1/e39
1/e40
1/e41
1/e42
1/e43
1/e44
1/e45
1/e46
1/e47
1/e48
1/g1 test_description
1/g2
1/g3
1/g4
2/e1
2/e2
2/e3
"""]})
d = Device(host=dut.host, port=dut.port, protocol=dut.protocol, log_level=log_level, mock=use_mock)
d.open()
d.interface.update('1.0.18', description='test description')
assert d.interface['1.0.18']['description'] == 'test description'
d.interface.update('1.0.25', description='test_description')
assert d.interface['1.0.25']['description'] == 'test_description'
d.close()
def test_update_interface_48(dut, log_level, use_mock):
if dut.mode != 'emulated':
pytest.skip("only on emulated")
setup_dut(dut)
dut.add_cmd({'cmd': 'show system', 'state': -1, 'action': 'PRINT', 'args': ["""
Unit Type
---- -------------------
1 AT-8000S/48
Unit Up time
---- ---------------
1 00,00:14:51
Unit Number: 1
Serial number: 8675309
"""]})
dut.add_cmd({'cmd': 'show interfaces status', 'state': -1, 'action': 'PRINT', 'args': ["""
Flow Link Back Mdix
Port Type Duplex Speed Neg ctrl State Pressure Mode
-------- ------------ ------ ----- -------- ---- ----------- -------- -------
1/e1 100M-Copper Full 100 Enabled Off Up Disabled On
1/e2 100M-Copper -- -- -- -- Down -- --
1/e3 100M-Copper -- -- -- -- Down -- --
1/e4 100M-Copper -- -- -- -- Down -- --
1/e5 100M-Copper -- -- -- -- Down -- --
1/e6 100M-Copper -- -- -- -- Down -- --
1/e7 100M-Copper -- -- -- -- Down -- --
1/e8 100M-Copper -- -- -- -- Down -- --
1/e9 100M-Copper -- -- -- -- Down -- --
1/e10 100M-Copper -- -- -- -- Down -- --
1/e11 100M-Copper -- -- -- -- Down -- --
1/e12 100M-Copper -- -- -- -- Down -- --
1/e13 100M-Copper -- -- -- -- Down -- --
1/e14 100M-Copper -- -- -- -- Down -- --
1/e15 100M-Copper -- -- -- -- Down -- --
1/e16 100M-Copper -- -- -- -- Down -- --
1/e17 100M-Copper -- -- -- -- Down -- --
1/e18 100M-Copper -- -- -- -- Down -- --
1/e19 100M-Copper -- -- -- -- Down -- --
1/e20 100M-Copper -- -- -- -- Down -- --
1/e21 100M-Copper -- -- -- -- Down -- --
1/e22 100M-Copper -- -- -- -- Down -- --
1/e23 100M-Copper -- -- -- -- Down -- --
1/e24 100M-Copper -- -- -- -- Down -- --
1/e25 -- -- -- -- -- Not Present -- --
1/e26 -- -- -- -- -- Not Present -- --
1/e27 -- -- -- -- -- Not Present -- --
1/e28 -- -- -- -- -- Not Present -- --
1/e29 -- -- -- -- -- Not Present -- --
1/e30 -- -- -- -- -- Not Present -- --
1/e31 -- -- -- -- -- Not Present -- --
1/e32 -- -- -- -- -- Not Present -- --
1/e33 -- -- -- -- -- Not Present -- --
1/g1 1G-Combo-C -- -- -- -- Down -- --
1/g2 1G-Combo-C -- -- -- -- Down -- --
1/g3 -- -- -- -- -- Not Present -- --
1/g4 -- -- -- -- -- Not Present -- --
2/e1 -- -- -- -- -- Not Present -- --
2/e2 -- -- -- -- -- Not Present -- --
2/e3 -- -- -- -- -- Not Present -- --
"""]})
dut.add_cmd({'cmd': 'show interfaces configuration', 'state': -1, 'action': 'PRINT', 'args': ["""
Flow Admin Back Mdix
Port Type Duplex Speed Neg control State Pressure Mode
-------- ------------ ------ ----- -------- ------- ----- -------- ----
1/e1 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e2 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e3 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e4 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e5 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e6 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e7 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e8 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e9 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e10 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e11 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e12 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e13 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e14 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e15 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e16 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e17 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e18 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e19 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e20 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e21 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e22 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e23 100M-Copper Full 100 Enabled Off Up Disabled Auto
1/e24 100M-Copper Full 100 Enabled Off Down Disabled Auto
1/e25 -- Full -- Enabled Off Up Disabled Auto
1/e26 -- Full -- Enabled Off Up Disabled Auto
1/e27 -- Full -- Enabled Off Up Disabled Auto
1/e28 -- Full -- Enabled Off Up Disabled Auto
1/e29 -- Full -- Enabled Off Up Disabled Auto
1/e30 -- Full -- Enabled Off Up Disabled Auto
1/e31 -- Full -- Enabled Off Up Disabled Auto
1/e32 -- Full -- Enabled Off Up Disabled Auto
1/e33 -- Full -- Enabled Off Up Disabled Auto
1/e34 -- Full -- Enabled Off Up Disabled Auto
1/e35 -- Full -- Enabled Off Up Disabled Auto
1/e36 -- Full -- Enabled Off Up Disabled Auto
1/e37 -- Full -- Enabled Off Up Disabled Auto
1/e38 -- Full -- Enabled Off Up Disabled Auto
1/e39 -- Full -- Enabled Off Up Disabled Auto
1/e40 -- Full -- Enabled Off Up Disabled Auto
1/e41 -- Full -- Enabled Off Up Disabled Auto
1/e42 -- Full -- Enabled Off Up Disabled Auto
1/e43 -- Full -- Enabled Off Up Disabled Auto
1/e44 -- Full -- Enabled Off Up Disabled Auto
1/e45 -- Full -- Enabled Off Up Disabled Auto
1/e46 -- Full -- Enabled Off Up Disabled Auto
1/e47 -- Full -- Enabled Off Up Disabled Auto
1/e48 -- Full -- Enabled Off Up Disabled Auto
1/g1 1G-Combo-C Full 1000 Enabled Off Up Disabled Auto
1/g2 1G-Combo-C Full 1000 Enabled Off Up Disabled Auto
1/g3 -- Full -- Enabled Off Up Disabled Auto
1/g4 -- Full -- Enabled Off Up Disabled Auto
2/e1 -- Full -- Enabled Off Up Disabled Auto
2/e2 -- Full -- Enabled Off Up Disabled Auto
2/e3 -- Full -- Enabled Off Up Disabled Auto
2/e4 -- Full -- Enabled Off Up Disabled Auto
2/e5 -- Full -- Enabled Off Up Disabled Auto
2/e6 -- Full -- Enabled Off Up Disabled Auto
2/e7 -- Full -- Enabled Off Up Disabled Auto
"""]})
dut.add_cmd({'cmd': 'show interfaces description', 'state': 0, 'action': 'PRINT', 'args': ["""
Port Description
------- -----------
1/e1
1/e2
1/e3
1/e4 singleworddescription
1/e5
1/e6
1/e7
1/e8
1/e9
1/e10
1/e11
1/e12 some_description
1/e13
1/e14
1/e15
1/e16
1/e17
1/e18
1/e19
1/e20 some description
1/e21
1/e22
1/e23
1/e24
1/e25
1/e26
1/e27
1/e28
1/e29
1/e30
1/e31
1/e32
1/e33
1/e34
1/e35
1/e36
1/e37
1/e38
1/e39
1/e40
1/e41
1/e42
1/e43
1/e44
1/e45
1/e46
1/e47
1/e48
1/g1
1/g2
1/g3
1/g4
2/e1
2/e2
2/e3
"""]})
dut.add_cmd({'cmd': 'interface ethernet 1/e18', 'state': 0, 'action': 'SET_PROMPT', 'args': ['(config-if)#']})
dut.add_cmd({'cmd': 'interface ethernet 1/e18', 'state': 0, 'action': 'SET_STATE', 'args': [1]})
dut.add_cmd({'cmd': 'description "test description"', 'state': 1, 'action': 'SET_STATE', 'args': [2]})
dut.add_cmd({'cmd': 'show interfaces description', 'state': 2, 'action': 'PRINT', 'args': ["""
Port Description
------- -----------
1/e1
1/e2
1/e3
1/e4 singleworddescription
1/e5
1/e6
1/e7
1/e8
1/e9
1/e10
1/e11
1/e12 some_description
1/e13
1/e14
1/e15
1/e16
1/e17
1/e18 test description
1/e19
1/e20 some description
1/e21
1/e22
1/e23
1/e24
1/e25
1/e26
1/e27
1/e28
1/e29
1/e30
1/e31
1/e32
1/e33
1/e34
1/e35
1/e36
1/e37
1/e38
1/e39
1/e40
1/e41
1/e42
1/e43
1/e44
1/e45
1/e46
1/e47
1/e48
1/g1
1/g2
1/g3
1/g4
2/e1
2/e2
2/e3
"""]})
dut.add_cmd({'cmd': 'interface ethernet 1/g1', 'state': 2, 'action': 'SET_PROMPT', 'args': ['(config-if)#']})
dut.add_cmd({'cmd': 'interface ethernet 1/g1', 'state': 2, 'action': 'SET_STATE', 'args': [3]})
dut.add_cmd({'cmd': 'description test_description', 'state': 3, 'action': 'SET_STATE', 'args': [4]})
dut.add_cmd({'cmd': 'show interfaces description', 'state': 4, 'action': 'PRINT', 'args': ["""
Port Description
------- -----------
1/e1
1/e2
1/e3
1/e4 singleworddescription
1/e5
1/e6
1/e7
1/e8
1/e9
1/e10
1/e11
1/e12 some_description
1/e13
1/e14
1/e15
1/e16
1/e17
1/e18 test description
1/e19
1/e20 some description
1/e21
1/e22
1/e23
1/e24
1/e25
1/e26
1/e27
1/e28
1/e29
1/e30
1/e31
1/e32
1/e33
1/e34
1/e35
1/e36
1/e37
1/e38
1/e39
1/e40
1/e41
1/e42
1/e43
1/e44
1/e45
1/e46
1/e47
1/e48
1/g1 test_description
1/g2
1/g3
1/g4
2/e1
2/e2
2/e3
"""]})
d = Device(host=dut.host, port=dut.port, protocol=dut.protocol, log_level=log_level, mock=use_mock)
d.open()
assert '1.0.10' in d.interface
assert d.interface['1.0.24']['enable'] is False
d.interface.update('1.0.18', description='test description')
assert d.interface['1.0.18']['description'] == 'test description'
with pytest.raises(ValueError) as excinfo:
d.interface.update('1.0.99', description='test description')
assert 'interface 1.0.99 does not exist' in excinfo.value
d.close()
| 38.372698
| 138
| 0.448557
| 4,252
| 35,418
| 3.696378
| 0.047742
| 0.114526
| 0.136667
| 0.227779
| 0.909143
| 0.899408
| 0.888083
| 0.888083
| 0.882993
| 0.882993
| 0
| 0.131623
| 0.407956
| 35,418
| 922
| 139
| 38.414317
| 0.617912
| 0.000593
| 0
| 0.923429
| 0
| 0
| 0.854104
| 0.004746
| 0
| 0
| 0
| 0
| 0.027429
| 1
| 0.008
| false
| 0
| 0.002286
| 0
| 0.010286
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 9
|
899c649ad362d748354372855604277acccc2bd6
| 8,909
|
py
|
Python
|
dataset.py
|
xuweigogogo/DSACA
|
7b7de22bd770c3cc2856fcb6dc58ff07cd2a3571
|
[
"MIT"
] | 8
|
2021-04-12T08:54:48.000Z
|
2022-03-14T06:27:12.000Z
|
dataset.py
|
xuweigogogo/DSACA
|
7b7de22bd770c3cc2856fcb6dc58ff07cd2a3571
|
[
"MIT"
] | null | null | null |
dataset.py
|
xuweigogogo/DSACA
|
7b7de22bd770c3cc2856fcb6dc58ff07cd2a3571
|
[
"MIT"
] | null | null | null |
import torch
from torch.utils.data import Dataset
import os
from image import *
import random
import time
import torch
from config import args
from torchvision import datasets, transforms
import numpy as np
from PIL import Image, ImageEnhance
import numbers
from torch.multiprocessing import Pool, Process, set_start_method
try:
set_start_method('spawn')
except RuntimeError:
pass
class listDataset_visdrone_class_8(Dataset):
def __init__(self, root, shape=None, shuffle=True, transform=None, train=False, seen=0, batch_size=args.batch_size,
num_workers=args.workers, ):
if train:
random.shuffle(root)
# data_keys = pre_data(root, train)
# self.pre_data = data_keys
self.nSamples = len(root)
self.lines = root
self.transform = transform
self.train = train
self.shape = shape
self.seen = seen
self.batch_size = batch_size
self.num_workers = num_workers
def __len__(self):
return self.nSamples
def __getitem__(self, index):
assert index <= len(self), 'index range error'
torch.cuda.synchronize()
begin_time_test_5 = time.time()
# img = self.lines[index]['img']
# kpoint = self.lines[index]['kpoint']
# target = self.lines[index]['target']
# fname = self.lines[index]['fname']
# mask_map = self.lines[index]['mask']
# Img_path = self.lines[index]
Img_path = self.lines[index]
fname = os.path.basename(Img_path)
img, target, kpoint, mask_map = load_data_visdrone_class_8(Img_path, self.train)
torch.cuda.synchronize()
end_time_test_5 = time.time()
run_time_5 = end_time_test_5 - begin_time_test_5
# print('该循环程序运行时间5:', run_time_5)
'''data augmention'''
if self.train == True:
if random.random() > 0.5:
target_0 = np.fliplr(target[0])
target_1 = np.fliplr(target[1])
target_2 = np.fliplr(target[2])
target_3 = np.fliplr(target[3])
target_4 = np.fliplr(target[4])
target_5 = np.fliplr(target[5])
target_6 = np.fliplr(target[6])
target_7 = np.fliplr(target[7])
mask_map_0 = np.fliplr(mask_map[0])
mask_map_1 = np.fliplr(mask_map[1])
mask_map_2 = np.fliplr(mask_map[2])
mask_map_3 = np.fliplr(mask_map[3])
mask_map_4 = np.fliplr(mask_map[4])
mask_map_5 = np.fliplr(mask_map[5])
mask_map_6 = np.fliplr(mask_map[6])
mask_map_7 = np.fliplr(mask_map[7])
target = np.array([target_0, target_1, target_2, target_3, target_4, target_5, target_6, target_7])
mask_map = np.array([mask_map_0, mask_map_1, mask_map_2, mask_map_3, mask_map_4, mask_map_5, mask_map_6, mask_map_7])
img = img.transpose(Image.FLIP_LEFT_RIGHT)
# kpoint = np.fliplr(kpoint)
# if random.random() > 0.5:
# proportion = random.uniform(0.004, 0.015)
# width, height = img.size[0], img.size[1]
# num = int(height * width * proportion)
# for i in range(num):
# w = random.randint(0, width - 1)
# h = random.randint(0, height - 1)
# if random.randint(0, 1) == 0:
# img.putpixel((w, h), (0, 0, 0))
# else:
# img.putpixel((w, h), (255, 255, 255))
torch.cuda.synchronize()
begin_time_test_6 = time.time()
target = target.copy()
# kpoint = kpoint.copy()
img = np.array(img).copy()
# mask_map = mask_map.copy()
if self.transform is not None:
img = self.transform(img)
if self.train == True:
# img = torch.from_numpy(img).cuda()
target = torch.from_numpy(target).cuda()
mask_map = torch.from_numpy(mask_map).cuda()
width = 512
height = 512
if (img.shape[-2]>512) & (img.shape[-1]>512):
crop_size_x = random.randint(0, img.shape[-1] - width)
crop_size_y = random.randint(0, img.shape[-2] - height)
img = img[:, crop_size_y: crop_size_y + width, crop_size_x:crop_size_x + height]
target = target[:, crop_size_y: crop_size_y + width, crop_size_x:crop_size_x + height]
mask_map = mask_map[:,crop_size_y: crop_size_y + width, crop_size_x:crop_size_x + height]
torch.cuda.synchronize()
end_time_test_6 = time.time()
run_time_6 = end_time_test_6 - begin_time_test_6
# print('该循环程序运行时间6:', run_time_6)
return fname, img, target, kpoint, mask_map
class listDataset_dota_class_2(Dataset):
def __init__(self, root, shape=None, shuffle=True, transform=None, train=False, seen=0, batch_size=args.batch_size,
num_workers=args.workers, ):
if train:
random.shuffle(root)
# data_keys = pre_data(root, train)
# self.pre_data = data_keys
self.nSamples = len(root)
self.lines = root
self.transform = transform
self.train = train
self.shape = shape
self.seen = seen
self.batch_size = batch_size
self.num_workers = num_workers
def __len__(self):
return self.nSamples
def __getitem__(self, index):
assert index <= len(self), 'index range error'
torch.cuda.synchronize()
begin_time_test_5 = time.time()
# img = self.lines[index]['img']
# kpoint = self.lines[index]['kpoint']
# target = self.lines[index]['target']
# fname = self.lines[index]['fname']
# mask_map = self.lines[index]['mask']
# Img_path = self.lines[index]
Img_path = self.lines[index]
fname = os.path.basename(Img_path)
img, target, kpoint, mask_map = load_data_dota_class_2(Img_path, self.train)
torch.cuda.synchronize()
end_time_test_5 = time.time()
run_time_5 = end_time_test_5 - begin_time_test_5
# print('该循环程序运行时间5:', run_time_5)
'''data augmention'''
if self.train == True:
if random.random() > 0.5:
target_0 = np.fliplr(target[0])
target_1 = np.fliplr(target[1])
mask_map_0 = np.fliplr(mask_map[0])
mask_map_1 = np.fliplr(mask_map[1])
target = np.array([target_0, target_1])
mask_map = np.array([mask_map_0, mask_map_1])
img = img.transpose(Image.FLIP_LEFT_RIGHT)
# kpoint = np.fliplr(kpoint)
# if random.random() > 0.5:
# proportion = random.uniform(0.004, 0.015)
# width, height = img.size[0], img.size[1]
# num = int(height * width * proportion)
# for i in range(num):
# w = random.randint(0, width - 1)
# h = random.randint(0, height - 1)
# if random.randint(0, 1) == 0:
# img.putpixel((w, h), (0, 0, 0))
# else:
# img.putpixel((w, h), (255, 255, 255))
torch.cuda.synchronize()
begin_time_test_6 = time.time()
target = target.copy()
# kpoint = kpoint.copy()
img = np.array(img).copy()
# mask_map = mask_map.copy()
if self.transform is not None:
img = self.transform(img)
if self.train == True:
# img = torch.from_numpy(img).cuda()
target = torch.from_numpy(target).cuda()
mask_map = torch.from_numpy(mask_map).cuda()
width = 512
height = 512
if (img.shape[-2]>512) & (img.shape[-1]>512):
crop_size_x = random.randint(0, img.shape[-1] - width)
crop_size_y = random.randint(0, img.shape[-2] - height)
img = img[:, crop_size_y: crop_size_y + width, crop_size_x:crop_size_x + height]
target = target[:, crop_size_y: crop_size_y + width, crop_size_x:crop_size_x + height]
mask_map = mask_map[:,crop_size_y: crop_size_y + width, crop_size_x:crop_size_x + height]
torch.cuda.synchronize()
end_time_test_6 = time.time()
run_time_6 = end_time_test_6 - begin_time_test_6
# print('该循环程序运行时间6:', run_time_6)
return fname, img, target, kpoint, mask_map
| 37.590717
| 134
| 0.547536
| 1,140
| 8,909
| 4.022807
| 0.10614
| 0.076319
| 0.042739
| 0.032708
| 0.863934
| 0.863934
| 0.834278
| 0.822503
| 0.822503
| 0.822503
| 0
| 0.033265
| 0.338646
| 8,909
| 236
| 135
| 37.75
| 0.745078
| 0.192502
| 0
| 0.748201
| 0
| 0
| 0.005683
| 0
| 0
| 0
| 0
| 0
| 0.014388
| 1
| 0.043165
| false
| 0.007194
| 0.093525
| 0.014388
| 0.179856
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
89a998ffaac4df7af10d76701e5a83608039387b
| 229
|
py
|
Python
|
python/scrutiny/server/protocol/commands/__init__.py
|
scrutinydebugger/scrutiny
|
7530790ae40f20c3008fe196e39cab07c4b73445
|
[
"MIT"
] | 1
|
2021-04-18T02:58:59.000Z
|
2021-04-18T02:58:59.000Z
|
python/scrutiny/server/protocol/commands/__init__.py
|
scrutinydebugger/scrutiny
|
7530790ae40f20c3008fe196e39cab07c4b73445
|
[
"MIT"
] | null | null | null |
python/scrutiny/server/protocol/commands/__init__.py
|
scrutinydebugger/scrutiny
|
7530790ae40f20c3008fe196e39cab07c4b73445
|
[
"MIT"
] | null | null | null |
from .base_command import DatalogControl
from .base_command import GetInfo
from .base_command import MemoryControl
from .base_command import CommControl
from .base_command import UserCommand
from .base_command import DummyCommand
| 38.166667
| 40
| 0.873362
| 30
| 229
| 6.466667
| 0.333333
| 0.247423
| 0.463918
| 0.649485
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.100437
| 229
| 6
| 41
| 38.166667
| 0.941748
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 0
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 1
| 0
|
0
| 7
|
983092fd7cd3bc6824b23f7203f539b42bec1abe
| 713
|
py
|
Python
|
ULA/testeULA.py
|
RicardoFedrigo/ULA_PYTHON
|
23c746b2076cf2bc637aa34330e54db49d7a8554
|
[
"MIT"
] | null | null | null |
ULA/testeULA.py
|
RicardoFedrigo/ULA_PYTHON
|
23c746b2076cf2bc637aa34330e54db49d7a8554
|
[
"MIT"
] | null | null | null |
ULA/testeULA.py
|
RicardoFedrigo/ULA_PYTHON
|
23c746b2076cf2bc637aa34330e54db49d7a8554
|
[
"MIT"
] | null | null | null |
from ula import Ula
ula=Ula(4)
A = [1,0,0,0,1,0,0,1]
B = [1,0,0,0,1,0,0,1]
C = [1,1,1,1,1,1,1,1]
ula.setA(A)
ula.setB(B)
ula.setInstrucao([0,0,0,1])
ula.selecao()
print(ula.getSaida())
ula.setInstrucao([0,0,1,0])
ula.selecao()
print(ula.getSaida())
ula.setInstrucao([0,0,1,1])
ula.selecao()
print(ula.getSaida())
ula.setInstrucao([0,1,0,0])
ula.selecao()
print(ula.getSaida())
ula.setInstrucao([0,1,0,1])
ula.selecao()
print(ula.getSaida())
ula.setInstrucao([0,1,1,0])
ula.selecao()
print(ula.getSaida())
ula.setInstrucao([0,1,1,1])
ula.selecao()
print(ula.getSaida())
ula.setInstrucao([1,0,0,0])
ula.selecao()
print(ula.getSaida())
ula.setInstrucao([1,0,0,1])
ula.selecao()
print(ula.getSaida())
| 13.980392
| 27
| 0.660589
| 139
| 713
| 3.388489
| 0.107914
| 0.059448
| 0.286624
| 0.343949
| 0.876858
| 0.876858
| 0.876858
| 0.859873
| 0.766454
| 0.762208
| 0
| 0.093272
| 0.082749
| 713
| 51
| 28
| 13.980392
| 0.626911
| 0
| 0
| 0.529412
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0
| 0.029412
| 0
| 0.029412
| 0.264706
| 0
| 0
| 0
| null | 0
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
7f2bb676e5135ebdf8b615c0ce9ba1c6a5bc6581
| 4,505
|
py
|
Python
|
test/observer/test_observer.py
|
a1trl9/MQBench
|
279c5a9e6e48778fe2913ba708b53ab9c2b0520c
|
[
"Apache-2.0"
] | 51
|
2021-08-20T01:28:50.000Z
|
2021-09-22T05:34:39.000Z
|
test/observer/test_observer.py
|
a1trl9/MQBench
|
279c5a9e6e48778fe2913ba708b53ab9c2b0520c
|
[
"Apache-2.0"
] | 7
|
2021-08-24T09:46:31.000Z
|
2021-09-22T05:43:06.000Z
|
test/observer/test_observer.py
|
a1trl9/MQBench
|
279c5a9e6e48778fe2913ba708b53ab9c2b0520c
|
[
"Apache-2.0"
] | 6
|
2021-08-20T09:18:48.000Z
|
2021-09-19T04:35:13.000Z
|
import torch
import unittest
from mqbench.prepare_by_platform import prepare_by_platform, BackendType
from mqbench.convert_deploy import convert_deploy
from mqbench.utils.state import enable_calibration, enable_quantization
class TestObserver(unittest.TestCase):
def test_quantile_observer(self):
model_to_quantize = torch.hub.load('pytorch/vision', 'resnet18', pretrained=False)
dummy_input = torch.randn(2, 3, 224, 224, device='cpu')
model_to_quantize.train()
extra_qconfig_dict = {
'w_observer': 'MinMaxObserver',
'a_observer': 'EMAQuantileObserver',
'w_fakequantize': 'FixedFakeQuantize',
'a_fakequantize': 'FixedFakeQuantize',
}
prepare_custom_config_dict = {'extra_qconfig_dict': extra_qconfig_dict}
model_prepared = prepare_by_platform(model_to_quantize, BackendType.Tensorrt, prepare_custom_config_dict)
enable_calibration(model_prepared)
model_prepared(dummy_input)
enable_quantization(model_prepared)
loss = model_prepared(dummy_input).sum()
loss.backward()
def test_ema_observer(self):
model_to_quantize = torch.hub.load('pytorch/vision', 'resnet18', pretrained=False)
dummy_input = torch.randn(2, 3, 224, 224, device='cpu')
model_to_quantize.train()
extra_qconfig_dict = {
'w_observer': 'MinMaxObserver',
'a_observer': 'EMAMinMaxObserver',
'w_fakequantize': 'FixedFakeQuantize',
'a_fakequantize': 'FixedFakeQuantize',
}
prepare_custom_config_dict = {'extra_qconfig_dict': extra_qconfig_dict}
model_prepared = prepare_by_platform(model_to_quantize, BackendType.Tensorrt, prepare_custom_config_dict)
enable_calibration(model_prepared)
model_prepared(dummy_input)
enable_quantization(model_prepared)
loss = model_prepared(dummy_input).sum()
loss.backward()
def test_minmax_observer(self):
model_to_quantize = torch.hub.load('pytorch/vision', 'resnet18', pretrained=False)
dummy_input = torch.randn(2, 3, 224, 224, device='cpu')
model_to_quantize.train()
extra_qconfig_dict = {
'w_observer': 'MinMaxObserver',
'a_observer': 'MinMaxObserver',
'w_fakequantize': 'FixedFakeQuantize',
'a_fakequantize': 'FixedFakeQuantize',
}
prepare_custom_config_dict = {'extra_qconfig_dict': extra_qconfig_dict}
model_prepared = prepare_by_platform(model_to_quantize, BackendType.Tensorrt, prepare_custom_config_dict)
enable_calibration(model_prepared)
model_prepared(dummy_input)
enable_quantization(model_prepared)
loss = model_prepared(dummy_input).sum()
loss.backward()
def test_lsq_observer(self):
model_to_quantize = torch.hub.load('pytorch/vision', 'resnet18', pretrained=False)
dummy_input = torch.randn(2, 3, 224, 224, device='cpu')
model_to_quantize.train()
extra_qconfig_dict = {
'w_observer': 'LSQObserver',
'a_observer': 'LSQObserver',
'w_fakequantize': 'FixedFakeQuantize',
'a_fakequantize': 'FixedFakeQuantize',
}
prepare_custom_config_dict = {'extra_qconfig_dict': extra_qconfig_dict}
model_prepared = prepare_by_platform(model_to_quantize, BackendType.Tensorrt, prepare_custom_config_dict)
enable_calibration(model_prepared)
model_prepared(dummy_input)
enable_quantization(model_prepared)
loss = model_prepared(dummy_input).sum()
loss.backward()
def test_clip_std_observer(self):
model_to_quantize = torch.hub.load('pytorch/vision', 'resnet18', pretrained=False)
dummy_input = torch.randn(2, 3, 224, 224, device='cpu')
model_to_quantize.train()
extra_qconfig_dict = {
'w_observer': 'ClipStdObserver',
'a_observer': 'ClipStdObserver',
'w_fakequantize': 'FixedFakeQuantize',
'a_fakequantize': 'FixedFakeQuantize',
}
prepare_custom_config_dict = {'extra_qconfig_dict': extra_qconfig_dict}
model_prepared = prepare_by_platform(model_to_quantize, BackendType.Tensorrt, prepare_custom_config_dict)
enable_calibration(model_prepared)
model_prepared(dummy_input)
enable_quantization(model_prepared)
loss = model_prepared(dummy_input).sum()
loss.backward()
| 45.969388
| 113
| 0.685905
| 480
| 4,505
| 6.04375
| 0.139583
| 0.11203
| 0.077559
| 0.079283
| 0.869355
| 0.869355
| 0.869355
| 0.869355
| 0.869355
| 0.869355
| 0
| 0.014205
| 0.218646
| 4,505
| 98
| 114
| 45.969388
| 0.809943
| 0
| 0
| 0.747253
| 0
| 0
| 0.170661
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.054945
| false
| 0
| 0.054945
| 0
| 0.120879
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
7f89ef2283ab13bb046619397b197275189da323
| 24,174
|
py
|
Python
|
swagger_client/apis/organization_api.py
|
ESIPFed/corpy
|
e1eec577f15934c6969784c4025d2c29eb7c32ca
|
[
"Apache-2.0"
] | null | null | null |
swagger_client/apis/organization_api.py
|
ESIPFed/corpy
|
e1eec577f15934c6969784c4025d2c29eb7c32ca
|
[
"Apache-2.0"
] | null | null | null |
swagger_client/apis/organization_api.py
|
ESIPFed/corpy
|
e1eec577f15934c6969784c4025d2c29eb7c32ca
|
[
"Apache-2.0"
] | null | null | null |
# coding: utf-8
"""
ORR API Documentation
The main ORR documentation is located at: https://mmisw.org/orrdoc/ __Please note__: - The ORR API is approaching a stable version but is still work in progress. Please [let us know](https://github.com/mmisw/mmiorr-docs/issues) if you have any questions or suggestions. - Besides the documentation itself, this page lets you directly exercise and test the API. Click on any operation header below to learn more details about it, and see a \"Try it out\" button. - You can click on the \"Authorize\" button at the top right of this page (or the `!` icon under the particular operation) to retrieve an authentication token corresponding to your ORR instance credentials (username and password). Once authorized, the authentication token will be automatically included in the corresponding request. You will be able to not only perform the basic `GET` operations, but also see expanded responses according to your access privileges as well as perform other operations. - The \"Try it out\" button will also show the corresponding API call that you can submit from the command line using [`curl`](https://curl.haxx.se/). - This API includes administrative operations related with the triple store. The SPARQL endpoint itself (located at `http://cor.esipfed.org/sparql` for the MMI ORR instance) is not described here. (General SPARQL information can be found [here](https://en.wikipedia.org/wiki/SPARQL), and regarding the current service used by the ORR to support the SPARQL interface [here](http://franz.com/agraph/support/documentation/current/http-protocol.html).) - Actual requests from this page are against the specific endpoint at `http://cor.esipfed.org/ont`.
OpenAPI spec version: v0
Generated by: https://github.com/swagger-api/swagger-codegen.git
"""
from __future__ import absolute_import
import sys
import os
import re
# python 2 and python 3 compatibility library
from six import iteritems
from ..configuration import Configuration
from ..api_client import ApiClient
class OrganizationApi(object):
"""
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
Ref: https://github.com/swagger-api/swagger-codegen
"""
def __init__(self, api_client=None):
config = Configuration()
if api_client:
self.api_client = api_client
else:
if not config.api_client:
config.api_client = ApiClient()
self.api_client = config.api_client
def add_org(self, **kwargs):
"""
Registers an organization
Only admins can perform this operation.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.add_org(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param PostOrg body: Organization object that needs to be registered
:return: OrgNew
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.add_org_with_http_info(**kwargs)
else:
(data) = self.add_org_with_http_info(**kwargs)
return data
def add_org_with_http_info(self, **kwargs):
"""
Registers an organization
Only admins can perform this operation.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.add_org_with_http_info(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param PostOrg body: Organization object that needs to be registered
:return: OrgNew
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['body']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method add_org" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json', 'multipart/form-data'])
# Authentication setting
auth_settings = ['basicAuth']
return self.api_client.call_api('/org', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='OrgNew',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def delete_org(self, org_name, **kwargs):
"""
Unregisters an organization
Only users with administrative privilege can perform this operation.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_org(org_name, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str org_name: Identifier of the organization (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.delete_org_with_http_info(org_name, **kwargs)
else:
(data) = self.delete_org_with_http_info(org_name, **kwargs)
return data
def delete_org_with_http_info(self, org_name, **kwargs):
"""
Unregisters an organization
Only users with administrative privilege can perform this operation.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.delete_org_with_http_info(org_name, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str org_name: Identifier of the organization (required)
:return: None
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['org_name']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method delete_org" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'org_name' is set
if ('org_name' not in params) or (params['org_name'] is None):
raise ValueError("Missing the required parameter `org_name` when calling `delete_org`")
collection_formats = {}
path_params = {}
if 'org_name' in params:
path_params['orgName'] = params['org_name']
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json', 'multipart/form-data'])
# Authentication setting
auth_settings = ['basicAuth']
return self.api_client.call_api('/org/{orgName}', 'DELETE',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type=None,
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def org_get(self, **kwargs):
"""
Gets information about registered organizations
Gets basic information of all registered organizations. This will include additional information depending on privileges of requesting user.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.org_get(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:return: list[Org]
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.org_get_with_http_info(**kwargs)
else:
(data) = self.org_get_with_http_info(**kwargs)
return data
def org_get_with_http_info(self, **kwargs):
"""
Gets information about registered organizations
Gets basic information of all registered organizations. This will include additional information depending on privileges of requesting user.
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.org_get_with_http_info(callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:return: list[Org]
If the method is called asynchronously,
returns the request thread.
"""
all_params = []
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method org_get" % key
)
params[key] = val
del params['kwargs']
collection_formats = {}
path_params = {}
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json', 'multipart/form-data'])
# Authentication setting
auth_settings = []
return self.api_client.call_api('/org', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='list[Org]',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def org_org_name_get(self, org_name, **kwargs):
"""
Gets basic information of a particular organization
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.org_org_name_get(org_name, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str org_name: The code (short name) of the organization. (required)
:return: Org
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.org_org_name_get_with_http_info(org_name, **kwargs)
else:
(data) = self.org_org_name_get_with_http_info(org_name, **kwargs)
return data
def org_org_name_get_with_http_info(self, org_name, **kwargs):
"""
Gets basic information of a particular organization
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.org_org_name_get_with_http_info(org_name, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str org_name: The code (short name) of the organization. (required)
:return: Org
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['org_name']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method org_org_name_get" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'org_name' is set
if ('org_name' not in params) or (params['org_name'] is None):
raise ValueError("Missing the required parameter `org_name` when calling `org_org_name_get`")
collection_formats = {}
path_params = {}
if 'org_name' in params:
path_params['orgName'] = params['org_name']
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json', 'multipart/form-data'])
# Authentication setting
auth_settings = []
return self.api_client.call_api('/org/{orgName}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='Org',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
def update_org(self, org_name, **kwargs):
"""
Updates information about a registered organization
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.update_org(org_name, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str org_name: The code (short name) of the organization to be updated. (required)
:param PutOrg body: Object with information for the organization to be updated.
:return: OrgUpdated
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
if kwargs.get('callback'):
return self.update_org_with_http_info(org_name, **kwargs)
else:
(data) = self.update_org_with_http_info(org_name, **kwargs)
return data
def update_org_with_http_info(self, org_name, **kwargs):
"""
Updates information about a registered organization
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please define a `callback` function
to be invoked when receiving the response.
>>> def callback_function(response):
>>> pprint(response)
>>>
>>> thread = api.update_org_with_http_info(org_name, callback=callback_function)
:param callback function: The callback function
for asynchronous request. (optional)
:param str org_name: The code (short name) of the organization to be updated. (required)
:param PutOrg body: Object with information for the organization to be updated.
:return: OrgUpdated
If the method is called asynchronously,
returns the request thread.
"""
all_params = ['org_name', 'body']
all_params.append('callback')
all_params.append('_return_http_data_only')
all_params.append('_preload_content')
all_params.append('_request_timeout')
params = locals()
for key, val in iteritems(params['kwargs']):
if key not in all_params:
raise TypeError(
"Got an unexpected keyword argument '%s'"
" to method update_org" % key
)
params[key] = val
del params['kwargs']
# verify the required parameter 'org_name' is set
if ('org_name' not in params) or (params['org_name'] is None):
raise ValueError("Missing the required parameter `org_name` when calling `update_org`")
collection_formats = {}
path_params = {}
if 'org_name' in params:
path_params['orgName'] = params['org_name']
query_params = []
header_params = {}
form_params = []
local_var_files = {}
body_params = None
if 'body' in params:
body_params = params['body']
# HTTP header `Accept`
header_params['Accept'] = self.api_client.\
select_header_accept(['application/json'])
# HTTP header `Content-Type`
header_params['Content-Type'] = self.api_client.\
select_header_content_type(['application/json', 'multipart/form-data'])
# Authentication setting
auth_settings = ['basicAuth']
return self.api_client.call_api('/org/{orgName}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
response_type='OrgUpdated',
auth_settings=auth_settings,
callback=params.get('callback'),
_return_http_data_only=params.get('_return_http_data_only'),
_preload_content=params.get('_preload_content', True),
_request_timeout=params.get('_request_timeout'),
collection_formats=collection_formats)
| 43.090909
| 1,710
| 0.577108
| 2,535
| 24,174
| 5.289941
| 0.116371
| 0.027666
| 0.02088
| 0.026846
| 0.863087
| 0.851902
| 0.851902
| 0.833706
| 0.830276
| 0.82692
| 0
| 0.000253
| 0.344957
| 24,174
| 560
| 1,711
| 43.167857
| 0.846606
| 0.381402
| 0
| 0.775735
| 0
| 0
| 0.145354
| 0.024336
| 0
| 0
| 0
| 0
| 0
| 1
| 0.040441
| false
| 0
| 0.025735
| 0
| 0.125
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
f696efa59729939ba926957507833fcd86d29ed3
| 288,902
|
py
|
Python
|
google/ads/google_ads/v6/proto/services/google_ads_service_pb2.py
|
jphanwebstaurant/google-ads-python
|
600812b2afcc4d57f00b47dfe436620ce50bfe9b
|
[
"Apache-2.0"
] | 1
|
2021-04-09T04:28:47.000Z
|
2021-04-09T04:28:47.000Z
|
google/ads/google_ads/v6/proto/services/google_ads_service_pb2.py
|
jphanwebstaurant/google-ads-python
|
600812b2afcc4d57f00b47dfe436620ce50bfe9b
|
[
"Apache-2.0"
] | null | null | null |
google/ads/google_ads/v6/proto/services/google_ads_service_pb2.py
|
jphanwebstaurant/google-ads-python
|
600812b2afcc4d57f00b47dfe436620ce50bfe9b
|
[
"Apache-2.0"
] | null | null | null |
# -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google/ads/googleads_v6/proto/services/google_ads_service.proto
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from google.ads.google_ads.v6.proto.common import metrics_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_common_dot_metrics__pb2
from google.ads.google_ads.v6.proto.common import segments_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_common_dot_segments__pb2
from google.ads.google_ads.v6.proto.enums import response_content_type_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_enums_dot_response__content__type__pb2
from google.ads.google_ads.v6.proto.enums import summary_row_setting_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_enums_dot_summary__row__setting__pb2
from google.ads.google_ads.v6.proto.resources import account_budget_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_account__budget__pb2
from google.ads.google_ads.v6.proto.resources import account_budget_proposal_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_account__budget__proposal__pb2
from google.ads.google_ads.v6.proto.resources import account_link_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_account__link__pb2
from google.ads.google_ads.v6.proto.resources import ad_group_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__pb2
from google.ads.google_ads.v6.proto.resources import ad_group_ad_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__ad__pb2
from google.ads.google_ads.v6.proto.resources import ad_group_ad_asset_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__ad__asset__view__pb2
from google.ads.google_ads.v6.proto.resources import ad_group_ad_label_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__ad__label__pb2
from google.ads.google_ads.v6.proto.resources import ad_group_audience_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__audience__view__pb2
from google.ads.google_ads.v6.proto.resources import ad_group_bid_modifier_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2
from google.ads.google_ads.v6.proto.resources import ad_group_criterion_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__criterion__pb2
from google.ads.google_ads.v6.proto.resources import ad_group_criterion_label_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2
from google.ads.google_ads.v6.proto.resources import ad_group_criterion_simulation_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2
from google.ads.google_ads.v6.proto.resources import ad_group_extension_setting_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2
from google.ads.google_ads.v6.proto.resources import ad_group_feed_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__feed__pb2
from google.ads.google_ads.v6.proto.resources import ad_group_label_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__label__pb2
from google.ads.google_ads.v6.proto.resources import ad_group_simulation_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__simulation__pb2
from google.ads.google_ads.v6.proto.resources import ad_parameter_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__parameter__pb2
from google.ads.google_ads.v6.proto.resources import ad_schedule_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__schedule__view__pb2
from google.ads.google_ads.v6.proto.resources import age_range_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_age__range__view__pb2
from google.ads.google_ads.v6.proto.resources import asset_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_asset__pb2
from google.ads.google_ads.v6.proto.resources import batch_job_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_batch__job__pb2
from google.ads.google_ads.v6.proto.resources import bidding_strategy_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_bidding__strategy__pb2
from google.ads.google_ads.v6.proto.resources import billing_setup_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_billing__setup__pb2
from google.ads.google_ads.v6.proto.resources import campaign_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__pb2
from google.ads.google_ads.v6.proto.resources import campaign_asset_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__asset__pb2
from google.ads.google_ads.v6.proto.resources import campaign_audience_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__audience__view__pb2
from google.ads.google_ads.v6.proto.resources import campaign_bid_modifier_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2
from google.ads.google_ads.v6.proto.resources import campaign_budget_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__budget__pb2
from google.ads.google_ads.v6.proto.resources import campaign_criterion_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__criterion__pb2
from google.ads.google_ads.v6.proto.resources import campaign_criterion_simulation_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2
from google.ads.google_ads.v6.proto.resources import campaign_draft_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__draft__pb2
from google.ads.google_ads.v6.proto.resources import campaign_experiment_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__experiment__pb2
from google.ads.google_ads.v6.proto.resources import campaign_extension_setting_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__extension__setting__pb2
from google.ads.google_ads.v6.proto.resources import campaign_feed_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__feed__pb2
from google.ads.google_ads.v6.proto.resources import campaign_label_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__label__pb2
from google.ads.google_ads.v6.proto.resources import campaign_shared_set_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__shared__set__pb2
from google.ads.google_ads.v6.proto.resources import carrier_constant_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_carrier__constant__pb2
from google.ads.google_ads.v6.proto.resources import change_event_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_change__event__pb2
from google.ads.google_ads.v6.proto.resources import change_status_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_change__status__pb2
from google.ads.google_ads.v6.proto.resources import click_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_click__view__pb2
from google.ads.google_ads.v6.proto.resources import combined_audience_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_combined__audience__pb2
from google.ads.google_ads.v6.proto.resources import conversion_action_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_conversion__action__pb2
from google.ads.google_ads.v6.proto.resources import currency_constant_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_currency__constant__pb2
from google.ads.google_ads.v6.proto.resources import custom_audience_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_custom__audience__pb2
from google.ads.google_ads.v6.proto.resources import custom_interest_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_custom__interest__pb2
from google.ads.google_ads.v6.proto.resources import customer_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__pb2
from google.ads.google_ads.v6.proto.resources import customer_client_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__client__pb2
from google.ads.google_ads.v6.proto.resources import customer_client_link_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__client__link__pb2
from google.ads.google_ads.v6.proto.resources import customer_extension_setting_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__extension__setting__pb2
from google.ads.google_ads.v6.proto.resources import customer_feed_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__feed__pb2
from google.ads.google_ads.v6.proto.resources import customer_label_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__label__pb2
from google.ads.google_ads.v6.proto.resources import customer_manager_link_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__manager__link__pb2
from google.ads.google_ads.v6.proto.resources import customer_negative_criterion_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__negative__criterion__pb2
from google.ads.google_ads.v6.proto.resources import customer_user_access_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__user__access__pb2
from google.ads.google_ads.v6.proto.resources import detail_placement_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_detail__placement__view__pb2
from google.ads.google_ads.v6.proto.resources import display_keyword_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_display__keyword__view__pb2
from google.ads.google_ads.v6.proto.resources import distance_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_distance__view__pb2
from google.ads.google_ads.v6.proto.resources import domain_category_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_domain__category__pb2
from google.ads.google_ads.v6.proto.resources import dynamic_search_ads_search_term_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2
from google.ads.google_ads.v6.proto.resources import expanded_landing_page_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2
from google.ads.google_ads.v6.proto.resources import extension_feed_item_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_extension__feed__item__pb2
from google.ads.google_ads.v6.proto.resources import feed_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__pb2
from google.ads.google_ads.v6.proto.resources import feed_item_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__item__pb2
from google.ads.google_ads.v6.proto.resources import feed_item_set_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__item__set__pb2
from google.ads.google_ads.v6.proto.resources import feed_item_set_link_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__item__set__link__pb2
from google.ads.google_ads.v6.proto.resources import feed_item_target_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__item__target__pb2
from google.ads.google_ads.v6.proto.resources import feed_mapping_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__mapping__pb2
from google.ads.google_ads.v6.proto.resources import feed_placeholder_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__placeholder__view__pb2
from google.ads.google_ads.v6.proto.resources import gender_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_gender__view__pb2
from google.ads.google_ads.v6.proto.resources import geo_target_constant_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_geo__target__constant__pb2
from google.ads.google_ads.v6.proto.resources import geographic_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_geographic__view__pb2
from google.ads.google_ads.v6.proto.resources import group_placement_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_group__placement__view__pb2
from google.ads.google_ads.v6.proto.resources import hotel_group_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_hotel__group__view__pb2
from google.ads.google_ads.v6.proto.resources import hotel_performance_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_hotel__performance__view__pb2
from google.ads.google_ads.v6.proto.resources import income_range_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_income__range__view__pb2
from google.ads.google_ads.v6.proto.resources import keyword_plan_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__pb2
from google.ads.google_ads.v6.proto.resources import keyword_plan_ad_group_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2
from google.ads.google_ads.v6.proto.resources import keyword_plan_ad_group_keyword_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__ad__group__keyword__pb2
from google.ads.google_ads.v6.proto.resources import keyword_plan_campaign_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2
from google.ads.google_ads.v6.proto.resources import keyword_plan_campaign_keyword_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__campaign__keyword__pb2
from google.ads.google_ads.v6.proto.resources import keyword_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__view__pb2
from google.ads.google_ads.v6.proto.resources import label_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_label__pb2
from google.ads.google_ads.v6.proto.resources import landing_page_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_landing__page__view__pb2
from google.ads.google_ads.v6.proto.resources import language_constant_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_language__constant__pb2
from google.ads.google_ads.v6.proto.resources import location_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_location__view__pb2
from google.ads.google_ads.v6.proto.resources import managed_placement_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_managed__placement__view__pb2
from google.ads.google_ads.v6.proto.resources import media_file_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_media__file__pb2
from google.ads.google_ads.v6.proto.resources import mobile_app_category_constant_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2
from google.ads.google_ads.v6.proto.resources import mobile_device_constant_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_mobile__device__constant__pb2
from google.ads.google_ads.v6.proto.resources import offline_user_data_job_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_offline__user__data__job__pb2
from google.ads.google_ads.v6.proto.resources import operating_system_version_constant_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_operating__system__version__constant__pb2
from google.ads.google_ads.v6.proto.resources import paid_organic_search_term_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_paid__organic__search__term__view__pb2
from google.ads.google_ads.v6.proto.resources import parental_status_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_parental__status__view__pb2
from google.ads.google_ads.v6.proto.resources import product_bidding_category_constant_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2
from google.ads.google_ads.v6.proto.resources import product_group_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_product__group__view__pb2
from google.ads.google_ads.v6.proto.resources import recommendation_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_recommendation__pb2
from google.ads.google_ads.v6.proto.resources import remarketing_action_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_remarketing__action__pb2
from google.ads.google_ads.v6.proto.resources import search_term_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_search__term__view__pb2
from google.ads.google_ads.v6.proto.resources import shared_criterion_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_shared__criterion__pb2
from google.ads.google_ads.v6.proto.resources import shared_set_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_shared__set__pb2
from google.ads.google_ads.v6.proto.resources import shopping_performance_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_shopping__performance__view__pb2
from google.ads.google_ads.v6.proto.resources import third_party_app_analytics_link_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_third__party__app__analytics__link__pb2
from google.ads.google_ads.v6.proto.resources import topic_constant_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_topic__constant__pb2
from google.ads.google_ads.v6.proto.resources import topic_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_topic__view__pb2
from google.ads.google_ads.v6.proto.resources import user_interest_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_user__interest__pb2
from google.ads.google_ads.v6.proto.resources import user_list_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_user__list__pb2
from google.ads.google_ads.v6.proto.resources import user_location_view_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_user__location__view__pb2
from google.ads.google_ads.v6.proto.resources import video_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_video__pb2
from google.ads.google_ads.v6.proto.services import ad_group_ad_label_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2
from google.ads.google_ads.v6.proto.services import ad_group_ad_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__ad__service__pb2
from google.ads.google_ads.v6.proto.services import ad_group_bid_modifier_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2
from google.ads.google_ads.v6.proto.services import ad_group_criterion_label_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2
from google.ads.google_ads.v6.proto.services import ad_group_criterion_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__criterion__service__pb2
from google.ads.google_ads.v6.proto.services import ad_group_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2
from google.ads.google_ads.v6.proto.services import ad_group_feed_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__feed__service__pb2
from google.ads.google_ads.v6.proto.services import ad_group_label_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__label__service__pb2
from google.ads.google_ads.v6.proto.services import ad_group_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__service__pb2
from google.ads.google_ads.v6.proto.services import ad_parameter_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__parameter__service__pb2
from google.ads.google_ads.v6.proto.services import ad_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__service__pb2
from google.ads.google_ads.v6.proto.services import asset_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_asset__service__pb2
from google.ads.google_ads.v6.proto.services import bidding_strategy_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_bidding__strategy__service__pb2
from google.ads.google_ads.v6.proto.services import campaign_asset_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__asset__service__pb2
from google.ads.google_ads.v6.proto.services import campaign_bid_modifier_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2
from google.ads.google_ads.v6.proto.services import campaign_budget_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__budget__service__pb2
from google.ads.google_ads.v6.proto.services import campaign_criterion_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__criterion__service__pb2
from google.ads.google_ads.v6.proto.services import campaign_draft_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__draft__service__pb2
from google.ads.google_ads.v6.proto.services import campaign_experiment_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__experiment__service__pb2
from google.ads.google_ads.v6.proto.services import campaign_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2
from google.ads.google_ads.v6.proto.services import campaign_feed_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__feed__service__pb2
from google.ads.google_ads.v6.proto.services import campaign_label_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__label__service__pb2
from google.ads.google_ads.v6.proto.services import campaign_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__service__pb2
from google.ads.google_ads.v6.proto.services import campaign_shared_set_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__shared__set__service__pb2
from google.ads.google_ads.v6.proto.services import conversion_action_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_conversion__action__service__pb2
from google.ads.google_ads.v6.proto.services import customer_extension_setting_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__extension__setting__service__pb2
from google.ads.google_ads.v6.proto.services import customer_feed_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__feed__service__pb2
from google.ads.google_ads.v6.proto.services import customer_label_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__label__service__pb2
from google.ads.google_ads.v6.proto.services import customer_negative_criterion_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2
from google.ads.google_ads.v6.proto.services import customer_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__service__pb2
from google.ads.google_ads.v6.proto.services import extension_feed_item_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_extension__feed__item__service__pb2
from google.ads.google_ads.v6.proto.services import feed_item_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__service__pb2
from google.ads.google_ads.v6.proto.services import feed_item_set_link_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__set__link__service__pb2
from google.ads.google_ads.v6.proto.services import feed_item_set_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__set__service__pb2
from google.ads.google_ads.v6.proto.services import feed_item_target_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__target__service__pb2
from google.ads.google_ads.v6.proto.services import feed_mapping_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__mapping__service__pb2
from google.ads.google_ads.v6.proto.services import feed_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__service__pb2
from google.ads.google_ads.v6.proto.services import keyword_plan_ad_group_keyword_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__ad__group__keyword__service__pb2
from google.ads.google_ads.v6.proto.services import keyword_plan_ad_group_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2
from google.ads.google_ads.v6.proto.services import keyword_plan_campaign_keyword_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2
from google.ads.google_ads.v6.proto.services import keyword_plan_campaign_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2
from google.ads.google_ads.v6.proto.services import keyword_plan_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__service__pb2
from google.ads.google_ads.v6.proto.services import label_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_label__service__pb2
from google.ads.google_ads.v6.proto.services import media_file_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_media__file__service__pb2
from google.ads.google_ads.v6.proto.services import remarketing_action_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_remarketing__action__service__pb2
from google.ads.google_ads.v6.proto.services import shared_criterion_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_shared__criterion__service__pb2
from google.ads.google_ads.v6.proto.services import shared_set_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_shared__set__service__pb2
from google.ads.google_ads.v6.proto.services import user_list_service_pb2 as google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_user__list__service__pb2
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from google.api import client_pb2 as google_dot_api_dot_client__pb2
from google.api import field_behavior_pb2 as google_dot_api_dot_field__behavior__pb2
from google.protobuf import field_mask_pb2 as google_dot_protobuf_dot_field__mask__pb2
from google.rpc import status_pb2 as google_dot_rpc_dot_status__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='google/ads/googleads_v6/proto/services/google_ads_service.proto',
package='google.ads.googleads.v6.services',
syntax='proto3',
serialized_options=b'\n$com.google.ads.googleads.v6.servicesB\025GoogleAdsServiceProtoP\001ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v6/services;services\242\002\003GAA\252\002 Google.Ads.GoogleAds.V6.Services\312\002 Google\\Ads\\GoogleAds\\V6\\Services\352\002$Google::Ads::GoogleAds::V6::Services',
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n?google/ads/googleads_v6/proto/services/google_ads_service.proto\x12 google.ads.googleads.v6.services\x1a\x32google/ads/googleads_v6/proto/common/metrics.proto\x1a\x33google/ads/googleads_v6/proto/common/segments.proto\x1a?google/ads/googleads_v6/proto/enums/response_content_type.proto\x1a=google/ads/googleads_v6/proto/enums/summary_row_setting.proto\x1a<google/ads/googleads_v6/proto/resources/account_budget.proto\x1a\x45google/ads/googleads_v6/proto/resources/account_budget_proposal.proto\x1a:google/ads/googleads_v6/proto/resources/account_link.proto\x1a\x36google/ads/googleads_v6/proto/resources/ad_group.proto\x1a\x39google/ads/googleads_v6/proto/resources/ad_group_ad.proto\x1a\x44google/ads/googleads_v6/proto/resources/ad_group_ad_asset_view.proto\x1a?google/ads/googleads_v6/proto/resources/ad_group_ad_label.proto\x1a\x44google/ads/googleads_v6/proto/resources/ad_group_audience_view.proto\x1a\x43google/ads/googleads_v6/proto/resources/ad_group_bid_modifier.proto\x1a@google/ads/googleads_v6/proto/resources/ad_group_criterion.proto\x1a\x46google/ads/googleads_v6/proto/resources/ad_group_criterion_label.proto\x1aKgoogle/ads/googleads_v6/proto/resources/ad_group_criterion_simulation.proto\x1aHgoogle/ads/googleads_v6/proto/resources/ad_group_extension_setting.proto\x1a;google/ads/googleads_v6/proto/resources/ad_group_feed.proto\x1a<google/ads/googleads_v6/proto/resources/ad_group_label.proto\x1a\x41google/ads/googleads_v6/proto/resources/ad_group_simulation.proto\x1a:google/ads/googleads_v6/proto/resources/ad_parameter.proto\x1a>google/ads/googleads_v6/proto/resources/ad_schedule_view.proto\x1a<google/ads/googleads_v6/proto/resources/age_range_view.proto\x1a\x33google/ads/googleads_v6/proto/resources/asset.proto\x1a\x37google/ads/googleads_v6/proto/resources/batch_job.proto\x1a>google/ads/googleads_v6/proto/resources/bidding_strategy.proto\x1a;google/ads/googleads_v6/proto/resources/billing_setup.proto\x1a\x36google/ads/googleads_v6/proto/resources/campaign.proto\x1a<google/ads/googleads_v6/proto/resources/campaign_asset.proto\x1a\x44google/ads/googleads_v6/proto/resources/campaign_audience_view.proto\x1a\x43google/ads/googleads_v6/proto/resources/campaign_bid_modifier.proto\x1a=google/ads/googleads_v6/proto/resources/campaign_budget.proto\x1a@google/ads/googleads_v6/proto/resources/campaign_criterion.proto\x1aKgoogle/ads/googleads_v6/proto/resources/campaign_criterion_simulation.proto\x1a<google/ads/googleads_v6/proto/resources/campaign_draft.proto\x1a\x41google/ads/googleads_v6/proto/resources/campaign_experiment.proto\x1aHgoogle/ads/googleads_v6/proto/resources/campaign_extension_setting.proto\x1a;google/ads/googleads_v6/proto/resources/campaign_feed.proto\x1a<google/ads/googleads_v6/proto/resources/campaign_label.proto\x1a\x41google/ads/googleads_v6/proto/resources/campaign_shared_set.proto\x1a>google/ads/googleads_v6/proto/resources/carrier_constant.proto\x1a:google/ads/googleads_v6/proto/resources/change_event.proto\x1a;google/ads/googleads_v6/proto/resources/change_status.proto\x1a\x38google/ads/googleads_v6/proto/resources/click_view.proto\x1a?google/ads/googleads_v6/proto/resources/combined_audience.proto\x1a?google/ads/googleads_v6/proto/resources/conversion_action.proto\x1a?google/ads/googleads_v6/proto/resources/currency_constant.proto\x1a=google/ads/googleads_v6/proto/resources/custom_audience.proto\x1a=google/ads/googleads_v6/proto/resources/custom_interest.proto\x1a\x36google/ads/googleads_v6/proto/resources/customer.proto\x1a=google/ads/googleads_v6/proto/resources/customer_client.proto\x1a\x42google/ads/googleads_v6/proto/resources/customer_client_link.proto\x1aHgoogle/ads/googleads_v6/proto/resources/customer_extension_setting.proto\x1a;google/ads/googleads_v6/proto/resources/customer_feed.proto\x1a<google/ads/googleads_v6/proto/resources/customer_label.proto\x1a\x43google/ads/googleads_v6/proto/resources/customer_manager_link.proto\x1aIgoogle/ads/googleads_v6/proto/resources/customer_negative_criterion.proto\x1a\x42google/ads/googleads_v6/proto/resources/customer_user_access.proto\x1a\x43google/ads/googleads_v6/proto/resources/detail_placement_view.proto\x1a\x42google/ads/googleads_v6/proto/resources/display_keyword_view.proto\x1a;google/ads/googleads_v6/proto/resources/distance_view.proto\x1a=google/ads/googleads_v6/proto/resources/domain_category.proto\x1aQgoogle/ads/googleads_v6/proto/resources/dynamic_search_ads_search_term_view.proto\x1aHgoogle/ads/googleads_v6/proto/resources/expanded_landing_page_view.proto\x1a\x41google/ads/googleads_v6/proto/resources/extension_feed_item.proto\x1a\x32google/ads/googleads_v6/proto/resources/feed.proto\x1a\x37google/ads/googleads_v6/proto/resources/feed_item.proto\x1a;google/ads/googleads_v6/proto/resources/feed_item_set.proto\x1a@google/ads/googleads_v6/proto/resources/feed_item_set_link.proto\x1a>google/ads/googleads_v6/proto/resources/feed_item_target.proto\x1a:google/ads/googleads_v6/proto/resources/feed_mapping.proto\x1a\x43google/ads/googleads_v6/proto/resources/feed_placeholder_view.proto\x1a\x39google/ads/googleads_v6/proto/resources/gender_view.proto\x1a\x41google/ads/googleads_v6/proto/resources/geo_target_constant.proto\x1a=google/ads/googleads_v6/proto/resources/geographic_view.proto\x1a\x42google/ads/googleads_v6/proto/resources/group_placement_view.proto\x1a>google/ads/googleads_v6/proto/resources/hotel_group_view.proto\x1a\x44google/ads/googleads_v6/proto/resources/hotel_performance_view.proto\x1a?google/ads/googleads_v6/proto/resources/income_range_view.proto\x1a:google/ads/googleads_v6/proto/resources/keyword_plan.proto\x1a\x43google/ads/googleads_v6/proto/resources/keyword_plan_ad_group.proto\x1aKgoogle/ads/googleads_v6/proto/resources/keyword_plan_ad_group_keyword.proto\x1a\x43google/ads/googleads_v6/proto/resources/keyword_plan_campaign.proto\x1aKgoogle/ads/googleads_v6/proto/resources/keyword_plan_campaign_keyword.proto\x1a:google/ads/googleads_v6/proto/resources/keyword_view.proto\x1a\x33google/ads/googleads_v6/proto/resources/label.proto\x1a?google/ads/googleads_v6/proto/resources/landing_page_view.proto\x1a?google/ads/googleads_v6/proto/resources/language_constant.proto\x1a;google/ads/googleads_v6/proto/resources/location_view.proto\x1a\x44google/ads/googleads_v6/proto/resources/managed_placement_view.proto\x1a\x38google/ads/googleads_v6/proto/resources/media_file.proto\x1aJgoogle/ads/googleads_v6/proto/resources/mobile_app_category_constant.proto\x1a\x44google/ads/googleads_v6/proto/resources/mobile_device_constant.proto\x1a\x43google/ads/googleads_v6/proto/resources/offline_user_data_job.proto\x1aOgoogle/ads/googleads_v6/proto/resources/operating_system_version_constant.proto\x1aKgoogle/ads/googleads_v6/proto/resources/paid_organic_search_term_view.proto\x1a\x42google/ads/googleads_v6/proto/resources/parental_status_view.proto\x1aOgoogle/ads/googleads_v6/proto/resources/product_bidding_category_constant.proto\x1a@google/ads/googleads_v6/proto/resources/product_group_view.proto\x1a<google/ads/googleads_v6/proto/resources/recommendation.proto\x1a@google/ads/googleads_v6/proto/resources/remarketing_action.proto\x1a>google/ads/googleads_v6/proto/resources/search_term_view.proto\x1a>google/ads/googleads_v6/proto/resources/shared_criterion.proto\x1a\x38google/ads/googleads_v6/proto/resources/shared_set.proto\x1aGgoogle/ads/googleads_v6/proto/resources/shopping_performance_view.proto\x1aLgoogle/ads/googleads_v6/proto/resources/third_party_app_analytics_link.proto\x1a<google/ads/googleads_v6/proto/resources/topic_constant.proto\x1a\x38google/ads/googleads_v6/proto/resources/topic_view.proto\x1a;google/ads/googleads_v6/proto/resources/user_interest.proto\x1a\x37google/ads/googleads_v6/proto/resources/user_list.proto\x1a@google/ads/googleads_v6/proto/resources/user_location_view.proto\x1a\x33google/ads/googleads_v6/proto/resources/video.proto\x1a\x46google/ads/googleads_v6/proto/services/ad_group_ad_label_service.proto\x1a@google/ads/googleads_v6/proto/services/ad_group_ad_service.proto\x1aJgoogle/ads/googleads_v6/proto/services/ad_group_bid_modifier_service.proto\x1aMgoogle/ads/googleads_v6/proto/services/ad_group_criterion_label_service.proto\x1aGgoogle/ads/googleads_v6/proto/services/ad_group_criterion_service.proto\x1aOgoogle/ads/googleads_v6/proto/services/ad_group_extension_setting_service.proto\x1a\x42google/ads/googleads_v6/proto/services/ad_group_feed_service.proto\x1a\x43google/ads/googleads_v6/proto/services/ad_group_label_service.proto\x1a=google/ads/googleads_v6/proto/services/ad_group_service.proto\x1a\x41google/ads/googleads_v6/proto/services/ad_parameter_service.proto\x1a\x37google/ads/googleads_v6/proto/services/ad_service.proto\x1a:google/ads/googleads_v6/proto/services/asset_service.proto\x1a\x45google/ads/googleads_v6/proto/services/bidding_strategy_service.proto\x1a\x43google/ads/googleads_v6/proto/services/campaign_asset_service.proto\x1aJgoogle/ads/googleads_v6/proto/services/campaign_bid_modifier_service.proto\x1a\x44google/ads/googleads_v6/proto/services/campaign_budget_service.proto\x1aGgoogle/ads/googleads_v6/proto/services/campaign_criterion_service.proto\x1a\x43google/ads/googleads_v6/proto/services/campaign_draft_service.proto\x1aHgoogle/ads/googleads_v6/proto/services/campaign_experiment_service.proto\x1aOgoogle/ads/googleads_v6/proto/services/campaign_extension_setting_service.proto\x1a\x42google/ads/googleads_v6/proto/services/campaign_feed_service.proto\x1a\x43google/ads/googleads_v6/proto/services/campaign_label_service.proto\x1a=google/ads/googleads_v6/proto/services/campaign_service.proto\x1aHgoogle/ads/googleads_v6/proto/services/campaign_shared_set_service.proto\x1a\x46google/ads/googleads_v6/proto/services/conversion_action_service.proto\x1aOgoogle/ads/googleads_v6/proto/services/customer_extension_setting_service.proto\x1a\x42google/ads/googleads_v6/proto/services/customer_feed_service.proto\x1a\x43google/ads/googleads_v6/proto/services/customer_label_service.proto\x1aPgoogle/ads/googleads_v6/proto/services/customer_negative_criterion_service.proto\x1a=google/ads/googleads_v6/proto/services/customer_service.proto\x1aHgoogle/ads/googleads_v6/proto/services/extension_feed_item_service.proto\x1a>google/ads/googleads_v6/proto/services/feed_item_service.proto\x1aGgoogle/ads/googleads_v6/proto/services/feed_item_set_link_service.proto\x1a\x42google/ads/googleads_v6/proto/services/feed_item_set_service.proto\x1a\x45google/ads/googleads_v6/proto/services/feed_item_target_service.proto\x1a\x41google/ads/googleads_v6/proto/services/feed_mapping_service.proto\x1a\x39google/ads/googleads_v6/proto/services/feed_service.proto\x1aRgoogle/ads/googleads_v6/proto/services/keyword_plan_ad_group_keyword_service.proto\x1aJgoogle/ads/googleads_v6/proto/services/keyword_plan_ad_group_service.proto\x1aRgoogle/ads/googleads_v6/proto/services/keyword_plan_campaign_keyword_service.proto\x1aJgoogle/ads/googleads_v6/proto/services/keyword_plan_campaign_service.proto\x1a\x41google/ads/googleads_v6/proto/services/keyword_plan_service.proto\x1a:google/ads/googleads_v6/proto/services/label_service.proto\x1a?google/ads/googleads_v6/proto/services/media_file_service.proto\x1aGgoogle/ads/googleads_v6/proto/services/remarketing_action_service.proto\x1a\x45google/ads/googleads_v6/proto/services/shared_criterion_service.proto\x1a?google/ads/googleads_v6/proto/services/shared_set_service.proto\x1a>google/ads/googleads_v6/proto/services/user_list_service.proto\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a google/protobuf/field_mask.proto\x1a\x17google/rpc/status.proto\"\x8d\x02\n\x16SearchGoogleAdsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x11\n\tpage_size\x18\x04 \x01(\x05\x12\x15\n\rvalidate_only\x18\x05 \x01(\x08\x12\"\n\x1areturn_total_results_count\x18\x07 \x01(\x08\x12\x63\n\x13summary_row_setting\x18\x08 \x01(\x0e\x32\x46.google.ads.googleads.v6.enums.SummaryRowSettingEnum.SummaryRowSetting\"\x85\x02\n\x17SearchGoogleAdsResponse\x12?\n\x07results\x18\x01 \x03(\x0b\x32..google.ads.googleads.v6.services.GoogleAdsRow\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x1b\n\x13total_results_count\x18\x03 \x01(\x03\x12.\n\nfield_mask\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x43\n\x0bsummary_row\x18\x06 \x01(\x0b\x32..google.ads.googleads.v6.services.GoogleAdsRow\"\xb1\x01\n\x1cSearchGoogleAdsStreamRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x63\n\x13summary_row_setting\x18\x03 \x01(\x0e\x32\x46.google.ads.googleads.v6.enums.SummaryRowSettingEnum.SummaryRowSetting\"\xd5\x01\n\x1dSearchGoogleAdsStreamResponse\x12?\n\x07results\x18\x01 \x03(\x0b\x32..google.ads.googleads.v6.services.GoogleAdsRow\x12.\n\nfield_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\x12\x43\n\x0bsummary_row\x18\x03 \x01(\x0b\x32..google.ads.googleads.v6.services.GoogleAdsRow\"\xe2\x44\n\x0cGoogleAdsRow\x12H\n\x0e\x61\x63\x63ount_budget\x18* \x01(\x0b\x32\x30.google.ads.googleads.v6.resources.AccountBudget\x12Y\n\x17\x61\x63\x63ount_budget_proposal\x18+ \x01(\x0b\x32\x38.google.ads.googleads.v6.resources.AccountBudgetProposal\x12\x45\n\x0c\x61\x63\x63ount_link\x18\x8f\x01 \x01(\x0b\x32..google.ads.googleads.v6.resources.AccountLink\x12<\n\x08\x61\x64_group\x18\x03 \x01(\x0b\x32*.google.ads.googleads.v6.resources.AdGroup\x12\x41\n\x0b\x61\x64_group_ad\x18\x10 \x01(\x0b\x32,.google.ads.googleads.v6.resources.AdGroupAd\x12V\n\x16\x61\x64_group_ad_asset_view\x18\x83\x01 \x01(\x0b\x32\x35.google.ads.googleads.v6.resources.AdGroupAdAssetView\x12L\n\x11\x61\x64_group_ad_label\x18x \x01(\x0b\x32\x31.google.ads.googleads.v6.resources.AdGroupAdLabel\x12V\n\x16\x61\x64_group_audience_view\x18\x39 \x01(\x0b\x32\x36.google.ads.googleads.v6.resources.AdGroupAudienceView\x12T\n\x15\x61\x64_group_bid_modifier\x18\x18 \x01(\x0b\x32\x35.google.ads.googleads.v6.resources.AdGroupBidModifier\x12O\n\x12\x61\x64_group_criterion\x18\x11 \x01(\x0b\x32\x33.google.ads.googleads.v6.resources.AdGroupCriterion\x12Z\n\x18\x61\x64_group_criterion_label\x18y \x01(\x0b\x32\x38.google.ads.googleads.v6.resources.AdGroupCriterionLabel\x12\x64\n\x1d\x61\x64_group_criterion_simulation\x18n \x01(\x0b\x32=.google.ads.googleads.v6.resources.AdGroupCriterionSimulation\x12^\n\x1a\x61\x64_group_extension_setting\x18p \x01(\x0b\x32:.google.ads.googleads.v6.resources.AdGroupExtensionSetting\x12\x45\n\rad_group_feed\x18\x43 \x01(\x0b\x32..google.ads.googleads.v6.resources.AdGroupFeed\x12G\n\x0e\x61\x64_group_label\x18s \x01(\x0b\x32/.google.ads.googleads.v6.resources.AdGroupLabel\x12Q\n\x13\x61\x64_group_simulation\x18k \x01(\x0b\x32\x34.google.ads.googleads.v6.resources.AdGroupSimulation\x12\x45\n\x0c\x61\x64_parameter\x18\x82\x01 \x01(\x0b\x32..google.ads.googleads.v6.resources.AdParameter\x12G\n\x0e\x61ge_range_view\x18\x30 \x01(\x0b\x32/.google.ads.googleads.v6.resources.AgeRangeView\x12K\n\x10\x61\x64_schedule_view\x18Y \x01(\x0b\x32\x31.google.ads.googleads.v6.resources.AdScheduleView\x12J\n\x0f\x64omain_category\x18[ \x01(\x0b\x32\x31.google.ads.googleads.v6.resources.DomainCategory\x12\x37\n\x05\x61sset\x18i \x01(\x0b\x32(.google.ads.googleads.v6.resources.Asset\x12?\n\tbatch_job\x18\x8b\x01 \x01(\x0b\x32+.google.ads.googleads.v6.resources.BatchJob\x12L\n\x10\x62idding_strategy\x18\x12 \x01(\x0b\x32\x32.google.ads.googleads.v6.resources.BiddingStrategy\x12\x46\n\rbilling_setup\x18) \x01(\x0b\x32/.google.ads.googleads.v6.resources.BillingSetup\x12J\n\x0f\x63\x61mpaign_budget\x18\x13 \x01(\x0b\x32\x31.google.ads.googleads.v6.resources.CampaignBudget\x12=\n\x08\x63\x61mpaign\x18\x02 \x01(\x0b\x32+.google.ads.googleads.v6.resources.Campaign\x12I\n\x0e\x63\x61mpaign_asset\x18\x8e\x01 \x01(\x0b\x32\x30.google.ads.googleads.v6.resources.CampaignAsset\x12W\n\x16\x63\x61mpaign_audience_view\x18\x45 \x01(\x0b\x32\x37.google.ads.googleads.v6.resources.CampaignAudienceView\x12U\n\x15\x63\x61mpaign_bid_modifier\x18\x1a \x01(\x0b\x32\x36.google.ads.googleads.v6.resources.CampaignBidModifier\x12P\n\x12\x63\x61mpaign_criterion\x18\x14 \x01(\x0b\x32\x34.google.ads.googleads.v6.resources.CampaignCriterion\x12\x65\n\x1d\x63\x61mpaign_criterion_simulation\x18o \x01(\x0b\x32>.google.ads.googleads.v6.resources.CampaignCriterionSimulation\x12H\n\x0e\x63\x61mpaign_draft\x18\x31 \x01(\x0b\x32\x30.google.ads.googleads.v6.resources.CampaignDraft\x12R\n\x13\x63\x61mpaign_experiment\x18T \x01(\x0b\x32\x35.google.ads.googleads.v6.resources.CampaignExperiment\x12_\n\x1a\x63\x61mpaign_extension_setting\x18q \x01(\x0b\x32;.google.ads.googleads.v6.resources.CampaignExtensionSetting\x12\x46\n\rcampaign_feed\x18? \x01(\x0b\x32/.google.ads.googleads.v6.resources.CampaignFeed\x12H\n\x0e\x63\x61mpaign_label\x18l \x01(\x0b\x32\x30.google.ads.googleads.v6.resources.CampaignLabel\x12Q\n\x13\x63\x61mpaign_shared_set\x18\x1e \x01(\x0b\x32\x34.google.ads.googleads.v6.resources.CampaignSharedSet\x12L\n\x10\x63\x61rrier_constant\x18\x42 \x01(\x0b\x32\x32.google.ads.googleads.v6.resources.CarrierConstant\x12\x45\n\x0c\x63hange_event\x18\x91\x01 \x01(\x0b\x32..google.ads.googleads.v6.resources.ChangeEvent\x12\x46\n\rchange_status\x18% \x01(\x0b\x32/.google.ads.googleads.v6.resources.ChangeStatus\x12O\n\x11\x63ombined_audience\x18\x94\x01 \x01(\x0b\x32\x33.google.ads.googleads.v6.resources.CombinedAudience\x12N\n\x11\x63onversion_action\x18g \x01(\x0b\x32\x33.google.ads.googleads.v6.resources.ConversionAction\x12@\n\nclick_view\x18z \x01(\x0b\x32,.google.ads.googleads.v6.resources.ClickView\x12O\n\x11\x63urrency_constant\x18\x86\x01 \x01(\x0b\x32\x33.google.ads.googleads.v6.resources.CurrencyConstant\x12K\n\x0f\x63ustom_audience\x18\x93\x01 \x01(\x0b\x32\x31.google.ads.googleads.v6.resources.CustomAudience\x12J\n\x0f\x63ustom_interest\x18h \x01(\x0b\x32\x31.google.ads.googleads.v6.resources.CustomInterest\x12=\n\x08\x63ustomer\x18\x01 \x01(\x0b\x32+.google.ads.googleads.v6.resources.Customer\x12U\n\x15\x63ustomer_manager_link\x18= \x01(\x0b\x32\x36.google.ads.googleads.v6.resources.CustomerManagerLink\x12S\n\x14\x63ustomer_client_link\x18> \x01(\x0b\x32\x35.google.ads.googleads.v6.resources.CustomerClientLink\x12J\n\x0f\x63ustomer_client\x18\x46 \x01(\x0b\x32\x31.google.ads.googleads.v6.resources.CustomerClient\x12_\n\x1a\x63ustomer_extension_setting\x18r \x01(\x0b\x32;.google.ads.googleads.v6.resources.CustomerExtensionSetting\x12\x46\n\rcustomer_feed\x18@ \x01(\x0b\x32/.google.ads.googleads.v6.resources.CustomerFeed\x12H\n\x0e\x63ustomer_label\x18| \x01(\x0b\x32\x30.google.ads.googleads.v6.resources.CustomerLabel\x12\x61\n\x1b\x63ustomer_negative_criterion\x18X \x01(\x0b\x32<.google.ads.googleads.v6.resources.CustomerNegativeCriterion\x12T\n\x14\x63ustomer_user_access\x18\x92\x01 \x01(\x0b\x32\x35.google.ads.googleads.v6.resources.CustomerUserAccess\x12U\n\x15\x64\x65tail_placement_view\x18v \x01(\x0b\x32\x36.google.ads.googleads.v6.resources.DetailPlacementView\x12S\n\x14\x64isplay_keyword_view\x18/ \x01(\x0b\x32\x35.google.ads.googleads.v6.resources.DisplayKeywordView\x12G\n\rdistance_view\x18\x84\x01 \x01(\x0b\x32/.google.ads.googleads.v6.resources.DistanceView\x12n\n#dynamic_search_ads_search_term_view\x18j \x01(\x0b\x32\x41.google.ads.googleads.v6.resources.DynamicSearchAdsSearchTermView\x12_\n\x1a\x65xpanded_landing_page_view\x18\x80\x01 \x01(\x0b\x32:.google.ads.googleads.v6.resources.ExpandedLandingPageView\x12Q\n\x13\x65xtension_feed_item\x18U \x01(\x0b\x32\x34.google.ads.googleads.v6.resources.ExtensionFeedItem\x12\x35\n\x04\x66\x65\x65\x64\x18. \x01(\x0b\x32\'.google.ads.googleads.v6.resources.Feed\x12>\n\tfeed_item\x18\x32 \x01(\x0b\x32+.google.ads.googleads.v6.resources.FeedItem\x12\x46\n\rfeed_item_set\x18\x95\x01 \x01(\x0b\x32..google.ads.googleads.v6.resources.FeedItemSet\x12O\n\x12\x66\x65\x65\x64_item_set_link\x18\x97\x01 \x01(\x0b\x32\x32.google.ads.googleads.v6.resources.FeedItemSetLink\x12K\n\x10\x66\x65\x65\x64_item_target\x18t \x01(\x0b\x32\x31.google.ads.googleads.v6.resources.FeedItemTarget\x12\x44\n\x0c\x66\x65\x65\x64_mapping\x18: \x01(\x0b\x32..google.ads.googleads.v6.resources.FeedMapping\x12U\n\x15\x66\x65\x65\x64_placeholder_view\x18\x61 \x01(\x0b\x32\x36.google.ads.googleads.v6.resources.FeedPlaceholderView\x12\x42\n\x0bgender_view\x18( \x01(\x0b\x32-.google.ads.googleads.v6.resources.GenderView\x12Q\n\x13geo_target_constant\x18\x17 \x01(\x0b\x32\x34.google.ads.googleads.v6.resources.GeoTargetConstant\x12J\n\x0fgeographic_view\x18} \x01(\x0b\x32\x31.google.ads.googleads.v6.resources.GeographicView\x12S\n\x14group_placement_view\x18w \x01(\x0b\x32\x35.google.ads.googleads.v6.resources.GroupPlacementView\x12K\n\x10hotel_group_view\x18\x33 \x01(\x0b\x32\x31.google.ads.googleads.v6.resources.HotelGroupView\x12W\n\x16hotel_performance_view\x18G \x01(\x0b\x32\x37.google.ads.googleads.v6.resources.HotelPerformanceView\x12N\n\x11income_range_view\x18\x8a\x01 \x01(\x0b\x32\x32.google.ads.googleads.v6.resources.IncomeRangeView\x12\x44\n\x0ckeyword_view\x18\x15 \x01(\x0b\x32..google.ads.googleads.v6.resources.KeywordView\x12\x44\n\x0ckeyword_plan\x18 \x01(\x0b\x32..google.ads.googleads.v6.resources.KeywordPlan\x12U\n\x15keyword_plan_campaign\x18! \x01(\x0b\x32\x36.google.ads.googleads.v6.resources.KeywordPlanCampaign\x12\x65\n\x1dkeyword_plan_campaign_keyword\x18\x8c\x01 \x01(\x0b\x32=.google.ads.googleads.v6.resources.KeywordPlanCampaignKeyword\x12T\n\x15keyword_plan_ad_group\x18# \x01(\x0b\x32\x35.google.ads.googleads.v6.resources.KeywordPlanAdGroup\x12\x64\n\x1dkeyword_plan_ad_group_keyword\x18\x8d\x01 \x01(\x0b\x32<.google.ads.googleads.v6.resources.KeywordPlanAdGroupKeyword\x12\x37\n\x05label\x18\x34 \x01(\x0b\x32(.google.ads.googleads.v6.resources.Label\x12M\n\x11landing_page_view\x18~ \x01(\x0b\x32\x32.google.ads.googleads.v6.resources.LandingPageView\x12N\n\x11language_constant\x18\x37 \x01(\x0b\x32\x33.google.ads.googleads.v6.resources.LanguageConstant\x12\x46\n\rlocation_view\x18{ \x01(\x0b\x32/.google.ads.googleads.v6.resources.LocationView\x12W\n\x16managed_placement_view\x18\x35 \x01(\x0b\x32\x37.google.ads.googleads.v6.resources.ManagedPlacementView\x12@\n\nmedia_file\x18Z \x01(\x0b\x32,.google.ads.googleads.v6.resources.MediaFile\x12\x62\n\x1cmobile_app_category_constant\x18W \x01(\x0b\x32<.google.ads.googleads.v6.resources.MobileAppCategoryConstant\x12W\n\x16mobile_device_constant\x18\x62 \x01(\x0b\x32\x37.google.ads.googleads.v6.resources.MobileDeviceConstant\x12U\n\x15offline_user_data_job\x18\x89\x01 \x01(\x0b\x32\x35.google.ads.googleads.v6.resources.OfflineUserDataJob\x12l\n!operating_system_version_constant\x18V \x01(\x0b\x32\x41.google.ads.googleads.v6.resources.OperatingSystemVersionConstant\x12\x64\n\x1dpaid_organic_search_term_view\x18\x81\x01 \x01(\x0b\x32<.google.ads.googleads.v6.resources.PaidOrganicSearchTermView\x12S\n\x14parental_status_view\x18- \x01(\x0b\x32\x35.google.ads.googleads.v6.resources.ParentalStatusView\x12l\n!product_bidding_category_constant\x18m \x01(\x0b\x32\x41.google.ads.googleads.v6.resources.ProductBiddingCategoryConstant\x12O\n\x12product_group_view\x18\x36 \x01(\x0b\x32\x33.google.ads.googleads.v6.resources.ProductGroupView\x12I\n\x0erecommendation\x18\x16 \x01(\x0b\x32\x31.google.ads.googleads.v6.resources.Recommendation\x12K\n\x10search_term_view\x18\x44 \x01(\x0b\x32\x31.google.ads.googleads.v6.resources.SearchTermView\x12L\n\x10shared_criterion\x18\x1d \x01(\x0b\x32\x32.google.ads.googleads.v6.resources.SharedCriterion\x12@\n\nshared_set\x18\x1b \x01(\x0b\x32,.google.ads.googleads.v6.resources.SharedSet\x12]\n\x19shopping_performance_view\x18u \x01(\x0b\x32:.google.ads.googleads.v6.resources.ShoppingPerformanceView\x12\x66\n\x1ethird_party_app_analytics_link\x18\x90\x01 \x01(\x0b\x32=.google.ads.googleads.v6.resources.ThirdPartyAppAnalyticsLink\x12@\n\ntopic_view\x18, \x01(\x0b\x32,.google.ads.googleads.v6.resources.TopicView\x12\x46\n\ruser_interest\x18; \x01(\x0b\x32/.google.ads.googleads.v6.resources.UserInterest\x12>\n\tuser_list\x18& \x01(\x0b\x32+.google.ads.googleads.v6.resources.UserList\x12P\n\x12user_location_view\x18\x87\x01 \x01(\x0b\x32\x33.google.ads.googleads.v6.resources.UserLocationView\x12P\n\x12remarketing_action\x18< \x01(\x0b\x32\x34.google.ads.googleads.v6.resources.RemarketingAction\x12H\n\x0etopic_constant\x18\x1f \x01(\x0b\x32\x30.google.ads.googleads.v6.resources.TopicConstant\x12\x37\n\x05video\x18\' \x01(\x0b\x32(.google.ads.googleads.v6.resources.Video\x12\x38\n\x07metrics\x18\x04 \x01(\x0b\x32\'.google.ads.googleads.v6.common.Metrics\x12:\n\x08segments\x18\x66 \x01(\x0b\x32(.google.ads.googleads.v6.common.Segments\"\xa0\x02\n\x16MutateGoogleAdsRequest\x12\x18\n\x0b\x63ustomer_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Q\n\x11mutate_operations\x18\x02 \x03(\x0b\x32\x31.google.ads.googleads.v6.services.MutateOperationB\x03\xe0\x41\x02\x12\x17\n\x0fpartial_failure\x18\x03 \x01(\x08\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\x12i\n\x15response_content_type\x18\x05 \x01(\x0e\x32J.google.ads.googleads.v6.enums.ResponseContentTypeEnum.ResponseContentType\"\xab\x01\n\x17MutateGoogleAdsResponse\x12\x31\n\x15partial_failure_error\x18\x03 \x01(\x0b\x32\x12.google.rpc.Status\x12]\n\x1amutate_operation_responses\x18\x01 \x03(\x0b\x32\x39.google.ads.googleads.v6.services.MutateOperationResponse\"\xb6$\n\x0fMutateOperation\x12`\n\x1b\x61\x64_group_ad_label_operation\x18\x11 \x01(\x0b\x32\x39.google.ads.googleads.v6.services.AdGroupAdLabelOperationH\x00\x12U\n\x15\x61\x64_group_ad_operation\x18\x01 \x01(\x0b\x32\x34.google.ads.googleads.v6.services.AdGroupAdOperationH\x00\x12h\n\x1f\x61\x64_group_bid_modifier_operation\x18\x02 \x01(\x0b\x32=.google.ads.googleads.v6.services.AdGroupBidModifierOperationH\x00\x12n\n\"ad_group_criterion_label_operation\x18\x12 \x01(\x0b\x32@.google.ads.googleads.v6.services.AdGroupCriterionLabelOperationH\x00\x12\x63\n\x1c\x61\x64_group_criterion_operation\x18\x03 \x01(\x0b\x32;.google.ads.googleads.v6.services.AdGroupCriterionOperationH\x00\x12r\n$ad_group_extension_setting_operation\x18\x13 \x01(\x0b\x32\x42.google.ads.googleads.v6.services.AdGroupExtensionSettingOperationH\x00\x12Y\n\x17\x61\x64_group_feed_operation\x18\x14 \x01(\x0b\x32\x36.google.ads.googleads.v6.services.AdGroupFeedOperationH\x00\x12[\n\x18\x61\x64_group_label_operation\x18\x15 \x01(\x0b\x32\x37.google.ads.googleads.v6.services.AdGroupLabelOperationH\x00\x12P\n\x12\x61\x64_group_operation\x18\x05 \x01(\x0b\x32\x32.google.ads.googleads.v6.services.AdGroupOperationH\x00\x12\x45\n\x0c\x61\x64_operation\x18\x31 \x01(\x0b\x32-.google.ads.googleads.v6.services.AdOperationH\x00\x12X\n\x16\x61\x64_parameter_operation\x18\x16 \x01(\x0b\x32\x36.google.ads.googleads.v6.services.AdParameterOperationH\x00\x12K\n\x0f\x61sset_operation\x18\x17 \x01(\x0b\x32\x30.google.ads.googleads.v6.services.AssetOperationH\x00\x12`\n\x1a\x62idding_strategy_operation\x18\x06 \x01(\x0b\x32:.google.ads.googleads.v6.services.BiddingStrategyOperationH\x00\x12\\\n\x18\x63\x61mpaign_asset_operation\x18\x34 \x01(\x0b\x32\x38.google.ads.googleads.v6.services.CampaignAssetOperationH\x00\x12i\n\x1f\x63\x61mpaign_bid_modifier_operation\x18\x07 \x01(\x0b\x32>.google.ads.googleads.v6.services.CampaignBidModifierOperationH\x00\x12^\n\x19\x63\x61mpaign_budget_operation\x18\x08 \x01(\x0b\x32\x39.google.ads.googleads.v6.services.CampaignBudgetOperationH\x00\x12\x64\n\x1c\x63\x61mpaign_criterion_operation\x18\r \x01(\x0b\x32<.google.ads.googleads.v6.services.CampaignCriterionOperationH\x00\x12\\\n\x18\x63\x61mpaign_draft_operation\x18\x18 \x01(\x0b\x32\x38.google.ads.googleads.v6.services.CampaignDraftOperationH\x00\x12\x66\n\x1d\x63\x61mpaign_experiment_operation\x18\x19 \x01(\x0b\x32=.google.ads.googleads.v6.services.CampaignExperimentOperationH\x00\x12s\n$campaign_extension_setting_operation\x18\x1a \x01(\x0b\x32\x43.google.ads.googleads.v6.services.CampaignExtensionSettingOperationH\x00\x12Z\n\x17\x63\x61mpaign_feed_operation\x18\x1b \x01(\x0b\x32\x37.google.ads.googleads.v6.services.CampaignFeedOperationH\x00\x12\\\n\x18\x63\x61mpaign_label_operation\x18\x1c \x01(\x0b\x32\x38.google.ads.googleads.v6.services.CampaignLabelOperationH\x00\x12Q\n\x12\x63\x61mpaign_operation\x18\n \x01(\x0b\x32\x33.google.ads.googleads.v6.services.CampaignOperationH\x00\x12\x65\n\x1d\x63\x61mpaign_shared_set_operation\x18\x0b \x01(\x0b\x32<.google.ads.googleads.v6.services.CampaignSharedSetOperationH\x00\x12\x62\n\x1b\x63onversion_action_operation\x18\x0c \x01(\x0b\x32;.google.ads.googleads.v6.services.ConversionActionOperationH\x00\x12s\n$customer_extension_setting_operation\x18\x1e \x01(\x0b\x32\x43.google.ads.googleads.v6.services.CustomerExtensionSettingOperationH\x00\x12Z\n\x17\x63ustomer_feed_operation\x18\x1f \x01(\x0b\x32\x37.google.ads.googleads.v6.services.CustomerFeedOperationH\x00\x12\\\n\x18\x63ustomer_label_operation\x18 \x01(\x0b\x32\x38.google.ads.googleads.v6.services.CustomerLabelOperationH\x00\x12u\n%customer_negative_criterion_operation\x18\" \x01(\x0b\x32\x44.google.ads.googleads.v6.services.CustomerNegativeCriterionOperationH\x00\x12Q\n\x12\x63ustomer_operation\x18# \x01(\x0b\x32\x33.google.ads.googleads.v6.services.CustomerOperationH\x00\x12\x65\n\x1d\x65xtension_feed_item_operation\x18$ \x01(\x0b\x32<.google.ads.googleads.v6.services.ExtensionFeedItemOperationH\x00\x12R\n\x13\x66\x65\x65\x64_item_operation\x18% \x01(\x0b\x32\x33.google.ads.googleads.v6.services.FeedItemOperationH\x00\x12Y\n\x17\x66\x65\x65\x64_item_set_operation\x18\x35 \x01(\x0b\x32\x36.google.ads.googleads.v6.services.FeedItemSetOperationH\x00\x12\x62\n\x1c\x66\x65\x65\x64_item_set_link_operation\x18\x36 \x01(\x0b\x32:.google.ads.googleads.v6.services.FeedItemSetLinkOperationH\x00\x12_\n\x1a\x66\x65\x65\x64_item_target_operation\x18& \x01(\x0b\x32\x39.google.ads.googleads.v6.services.FeedItemTargetOperationH\x00\x12X\n\x16\x66\x65\x65\x64_mapping_operation\x18\' \x01(\x0b\x32\x36.google.ads.googleads.v6.services.FeedMappingOperationH\x00\x12I\n\x0e\x66\x65\x65\x64_operation\x18( \x01(\x0b\x32/.google.ads.googleads.v6.services.FeedOperationH\x00\x12h\n\x1fkeyword_plan_ad_group_operation\x18, \x01(\x0b\x32=.google.ads.googleads.v6.services.KeywordPlanAdGroupOperationH\x00\x12w\n\'keyword_plan_ad_group_keyword_operation\x18\x32 \x01(\x0b\x32\x44.google.ads.googleads.v6.services.KeywordPlanAdGroupKeywordOperationH\x00\x12x\n\'keyword_plan_campaign_keyword_operation\x18\x33 \x01(\x0b\x32\x45.google.ads.googleads.v6.services.KeywordPlanCampaignKeywordOperationH\x00\x12i\n\x1fkeyword_plan_campaign_operation\x18- \x01(\x0b\x32>.google.ads.googleads.v6.services.KeywordPlanCampaignOperationH\x00\x12X\n\x16keyword_plan_operation\x18\x30 \x01(\x0b\x32\x36.google.ads.googleads.v6.services.KeywordPlanOperationH\x00\x12K\n\x0flabel_operation\x18) \x01(\x0b\x32\x30.google.ads.googleads.v6.services.LabelOperationH\x00\x12T\n\x14media_file_operation\x18* \x01(\x0b\x32\x34.google.ads.googleads.v6.services.MediaFileOperationH\x00\x12\x64\n\x1cremarketing_action_operation\x18+ \x01(\x0b\x32<.google.ads.googleads.v6.services.RemarketingActionOperationH\x00\x12`\n\x1ashared_criterion_operation\x18\x0e \x01(\x0b\x32:.google.ads.googleads.v6.services.SharedCriterionOperationH\x00\x12T\n\x14shared_set_operation\x18\x0f \x01(\x0b\x32\x34.google.ads.googleads.v6.services.SharedSetOperationH\x00\x12R\n\x13user_list_operation\x18\x10 \x01(\x0b\x32\x33.google.ads.googleads.v6.services.UserListOperationH\x00\x42\x0b\n\toperation\"\xbd$\n\x17MutateOperationResponse\x12`\n\x18\x61\x64_group_ad_label_result\x18\x11 \x01(\x0b\x32<.google.ads.googleads.v6.services.MutateAdGroupAdLabelResultH\x00\x12U\n\x12\x61\x64_group_ad_result\x18\x01 \x01(\x0b\x32\x37.google.ads.googleads.v6.services.MutateAdGroupAdResultH\x00\x12h\n\x1c\x61\x64_group_bid_modifier_result\x18\x02 \x01(\x0b\x32@.google.ads.googleads.v6.services.MutateAdGroupBidModifierResultH\x00\x12n\n\x1f\x61\x64_group_criterion_label_result\x18\x12 \x01(\x0b\x32\x43.google.ads.googleads.v6.services.MutateAdGroupCriterionLabelResultH\x00\x12\x63\n\x19\x61\x64_group_criterion_result\x18\x03 \x01(\x0b\x32>.google.ads.googleads.v6.services.MutateAdGroupCriterionResultH\x00\x12r\n!ad_group_extension_setting_result\x18\x13 \x01(\x0b\x32\x45.google.ads.googleads.v6.services.MutateAdGroupExtensionSettingResultH\x00\x12Y\n\x14\x61\x64_group_feed_result\x18\x14 \x01(\x0b\x32\x39.google.ads.googleads.v6.services.MutateAdGroupFeedResultH\x00\x12[\n\x15\x61\x64_group_label_result\x18\x15 \x01(\x0b\x32:.google.ads.googleads.v6.services.MutateAdGroupLabelResultH\x00\x12P\n\x0f\x61\x64_group_result\x18\x05 \x01(\x0b\x32\x35.google.ads.googleads.v6.services.MutateAdGroupResultH\x00\x12X\n\x13\x61\x64_parameter_result\x18\x16 \x01(\x0b\x32\x39.google.ads.googleads.v6.services.MutateAdParameterResultH\x00\x12\x45\n\tad_result\x18\x31 \x01(\x0b\x32\x30.google.ads.googleads.v6.services.MutateAdResultH\x00\x12K\n\x0c\x61sset_result\x18\x17 \x01(\x0b\x32\x33.google.ads.googleads.v6.services.MutateAssetResultH\x00\x12`\n\x17\x62idding_strategy_result\x18\x06 \x01(\x0b\x32=.google.ads.googleads.v6.services.MutateBiddingStrategyResultH\x00\x12\\\n\x15\x63\x61mpaign_asset_result\x18\x34 \x01(\x0b\x32;.google.ads.googleads.v6.services.MutateCampaignAssetResultH\x00\x12i\n\x1c\x63\x61mpaign_bid_modifier_result\x18\x07 \x01(\x0b\x32\x41.google.ads.googleads.v6.services.MutateCampaignBidModifierResultH\x00\x12^\n\x16\x63\x61mpaign_budget_result\x18\x08 \x01(\x0b\x32<.google.ads.googleads.v6.services.MutateCampaignBudgetResultH\x00\x12\x64\n\x19\x63\x61mpaign_criterion_result\x18\r \x01(\x0b\x32?.google.ads.googleads.v6.services.MutateCampaignCriterionResultH\x00\x12\\\n\x15\x63\x61mpaign_draft_result\x18\x18 \x01(\x0b\x32;.google.ads.googleads.v6.services.MutateCampaignDraftResultH\x00\x12\x66\n\x1a\x63\x61mpaign_experiment_result\x18\x19 \x01(\x0b\x32@.google.ads.googleads.v6.services.MutateCampaignExperimentResultH\x00\x12s\n!campaign_extension_setting_result\x18\x1a \x01(\x0b\x32\x46.google.ads.googleads.v6.services.MutateCampaignExtensionSettingResultH\x00\x12Z\n\x14\x63\x61mpaign_feed_result\x18\x1b \x01(\x0b\x32:.google.ads.googleads.v6.services.MutateCampaignFeedResultH\x00\x12\\\n\x15\x63\x61mpaign_label_result\x18\x1c \x01(\x0b\x32;.google.ads.googleads.v6.services.MutateCampaignLabelResultH\x00\x12Q\n\x0f\x63\x61mpaign_result\x18\n \x01(\x0b\x32\x36.google.ads.googleads.v6.services.MutateCampaignResultH\x00\x12\x65\n\x1a\x63\x61mpaign_shared_set_result\x18\x0b \x01(\x0b\x32?.google.ads.googleads.v6.services.MutateCampaignSharedSetResultH\x00\x12\x62\n\x18\x63onversion_action_result\x18\x0c \x01(\x0b\x32>.google.ads.googleads.v6.services.MutateConversionActionResultH\x00\x12s\n!customer_extension_setting_result\x18\x1e \x01(\x0b\x32\x46.google.ads.googleads.v6.services.MutateCustomerExtensionSettingResultH\x00\x12Z\n\x14\x63ustomer_feed_result\x18\x1f \x01(\x0b\x32:.google.ads.googleads.v6.services.MutateCustomerFeedResultH\x00\x12\\\n\x15\x63ustomer_label_result\x18 \x01(\x0b\x32;.google.ads.googleads.v6.services.MutateCustomerLabelResultH\x00\x12t\n\"customer_negative_criterion_result\x18\" \x01(\x0b\x32\x46.google.ads.googleads.v6.services.MutateCustomerNegativeCriteriaResultH\x00\x12Q\n\x0f\x63ustomer_result\x18# \x01(\x0b\x32\x36.google.ads.googleads.v6.services.MutateCustomerResultH\x00\x12\x65\n\x1a\x65xtension_feed_item_result\x18$ \x01(\x0b\x32?.google.ads.googleads.v6.services.MutateExtensionFeedItemResultH\x00\x12R\n\x10\x66\x65\x65\x64_item_result\x18% \x01(\x0b\x32\x36.google.ads.googleads.v6.services.MutateFeedItemResultH\x00\x12Y\n\x14\x66\x65\x65\x64_item_set_result\x18\x35 \x01(\x0b\x32\x39.google.ads.googleads.v6.services.MutateFeedItemSetResultH\x00\x12\x62\n\x19\x66\x65\x65\x64_item_set_link_result\x18\x36 \x01(\x0b\x32=.google.ads.googleads.v6.services.MutateFeedItemSetLinkResultH\x00\x12_\n\x17\x66\x65\x65\x64_item_target_result\x18& \x01(\x0b\x32<.google.ads.googleads.v6.services.MutateFeedItemTargetResultH\x00\x12X\n\x13\x66\x65\x65\x64_mapping_result\x18\' \x01(\x0b\x32\x39.google.ads.googleads.v6.services.MutateFeedMappingResultH\x00\x12I\n\x0b\x66\x65\x65\x64_result\x18( \x01(\x0b\x32\x32.google.ads.googleads.v6.services.MutateFeedResultH\x00\x12h\n\x1ckeyword_plan_ad_group_result\x18, \x01(\x0b\x32@.google.ads.googleads.v6.services.MutateKeywordPlanAdGroupResultH\x00\x12i\n\x1ckeyword_plan_campaign_result\x18- \x01(\x0b\x32\x41.google.ads.googleads.v6.services.MutateKeywordPlanCampaignResultH\x00\x12w\n$keyword_plan_ad_group_keyword_result\x18\x32 \x01(\x0b\x32G.google.ads.googleads.v6.services.MutateKeywordPlanAdGroupKeywordResultH\x00\x12x\n$keyword_plan_campaign_keyword_result\x18\x33 \x01(\x0b\x32H.google.ads.googleads.v6.services.MutateKeywordPlanCampaignKeywordResultH\x00\x12Y\n\x13keyword_plan_result\x18\x30 \x01(\x0b\x32:.google.ads.googleads.v6.services.MutateKeywordPlansResultH\x00\x12K\n\x0clabel_result\x18) \x01(\x0b\x32\x33.google.ads.googleads.v6.services.MutateLabelResultH\x00\x12T\n\x11media_file_result\x18* \x01(\x0b\x32\x37.google.ads.googleads.v6.services.MutateMediaFileResultH\x00\x12\x64\n\x19remarketing_action_result\x18+ \x01(\x0b\x32?.google.ads.googleads.v6.services.MutateRemarketingActionResultH\x00\x12`\n\x17shared_criterion_result\x18\x0e \x01(\x0b\x32=.google.ads.googleads.v6.services.MutateSharedCriterionResultH\x00\x12T\n\x11shared_set_result\x18\x0f \x01(\x0b\x32\x37.google.ads.googleads.v6.services.MutateSharedSetResultH\x00\x12R\n\x10user_list_result\x18\x10 \x01(\x0b\x32\x36.google.ads.googleads.v6.services.MutateUserListResultH\x00\x42\n\n\x08response2\xc2\x05\n\x10GoogleAdsService\x12\xcc\x01\n\x06Search\x12\x38.google.ads.googleads.v6.services.SearchGoogleAdsRequest\x1a\x39.google.ads.googleads.v6.services.SearchGoogleAdsResponse\"M\x82\xd3\xe4\x93\x02\x33\"./v6/customers/{customer_id=*}/googleAds:search:\x01*\xda\x41\x11\x63ustomer_id,query\x12\xe6\x01\n\x0cSearchStream\x12>.google.ads.googleads.v6.services.SearchGoogleAdsStreamRequest\x1a?.google.ads.googleads.v6.services.SearchGoogleAdsStreamResponse\"S\x82\xd3\xe4\x93\x02\x39\"4/v6/customers/{customer_id=*}/googleAds:searchStream:\x01*\xda\x41\x11\x63ustomer_id,query0\x01\x12\xd8\x01\n\x06Mutate\x12\x38.google.ads.googleads.v6.services.MutateGoogleAdsRequest\x1a\x39.google.ads.googleads.v6.services.MutateGoogleAdsResponse\"Y\x82\xd3\xe4\x93\x02\x33\"./v6/customers/{customer_id=*}/googleAds:mutate:\x01*\xda\x41\x1d\x63ustomer_id,mutate_operations\x1a\x1b\xca\x41\x18googleads.googleapis.comB\xfc\x01\n$com.google.ads.googleads.v6.servicesB\x15GoogleAdsServiceProtoP\x01ZHgoogle.golang.org/genproto/googleapis/ads/googleads/v6/services;services\xa2\x02\x03GAA\xaa\x02 Google.Ads.GoogleAds.V6.Services\xca\x02 Google\\Ads\\GoogleAds\\V6\\Services\xea\x02$Google::Ads::GoogleAds::V6::Servicesb\x06proto3'
,
dependencies=[google_dot_ads_dot_googleads__v6_dot_proto_dot_common_dot_metrics__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_common_dot_segments__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_enums_dot_response__content__type__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_enums_dot_summary__row__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_account__budget__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_account__budget__proposal__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_account__link__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__ad__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__ad__asset__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__ad__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__audience__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__feed__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__parameter__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__schedule__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_age__range__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_asset__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_batch__job__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_bidding__strategy__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_billing__setup__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__asset__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__audience__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__budget__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__draft__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__experiment__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__extension__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__feed__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__shared__set__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_carrier__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_change__event__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_change__status__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_click__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_combined__audience__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_conversion__action__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_currency__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_custom__audience__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_custom__interest__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__client__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__client__link__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__extension__setting__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__feed__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__manager__link__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__negative__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__user__access__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_detail__placement__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_display__keyword__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_distance__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_domain__category__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_extension__feed__item__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__item__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__item__set__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__item__set__link__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__item__target__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__mapping__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__placeholder__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_gender__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_geo__target__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_geographic__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_group__placement__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_hotel__group__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_hotel__performance__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_income__range__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__ad__group__keyword__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__campaign__keyword__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_label__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_landing__page__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_language__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_location__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_managed__placement__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_media__file__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_mobile__device__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_offline__user__data__job__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_operating__system__version__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_paid__organic__search__term__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_parental__status__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_product__group__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_recommendation__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_remarketing__action__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_search__term__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_shared__criterion__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_shared__set__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_shopping__performance__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_third__party__app__analytics__link__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_topic__constant__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_topic__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_user__interest__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_user__list__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_user__location__view__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_video__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__ad__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__criterion__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__feed__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__parameter__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_asset__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_bidding__strategy__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__asset__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__budget__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__criterion__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__draft__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__experiment__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__feed__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__shared__set__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_conversion__action__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__extension__setting__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__feed__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_extension__feed__item__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__set__link__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__set__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__target__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__mapping__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__ad__group__keyword__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_label__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_media__file__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_remarketing__action__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_shared__criterion__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_shared__set__service__pb2.DESCRIPTOR,google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_user__list__service__pb2.DESCRIPTOR,google_dot_api_dot_annotations__pb2.DESCRIPTOR,google_dot_api_dot_client__pb2.DESCRIPTOR,google_dot_api_dot_field__behavior__pb2.DESCRIPTOR,google_dot_protobuf_dot_field__mask__pb2.DESCRIPTOR,google_dot_rpc_dot_status__pb2.DESCRIPTOR,])
_SEARCHGOOGLEADSREQUEST = _descriptor.Descriptor(
name='SearchGoogleAdsRequest',
full_name='google.ads.googleads.v6.services.SearchGoogleAdsRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='customer_id', full_name='google.ads.googleads.v6.services.SearchGoogleAdsRequest.customer_id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='query', full_name='google.ads.googleads.v6.services.SearchGoogleAdsRequest.query', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='page_token', full_name='google.ads.googleads.v6.services.SearchGoogleAdsRequest.page_token', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='page_size', full_name='google.ads.googleads.v6.services.SearchGoogleAdsRequest.page_size', index=3,
number=4, type=5, cpp_type=1, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='validate_only', full_name='google.ads.googleads.v6.services.SearchGoogleAdsRequest.validate_only', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='return_total_results_count', full_name='google.ads.googleads.v6.services.SearchGoogleAdsRequest.return_total_results_count', index=5,
number=7, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='summary_row_setting', full_name='google.ads.googleads.v6.services.SearchGoogleAdsRequest.summary_row_setting', index=6,
number=8, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=10928,
serialized_end=11197,
)
_SEARCHGOOGLEADSRESPONSE = _descriptor.Descriptor(
name='SearchGoogleAdsResponse',
full_name='google.ads.googleads.v6.services.SearchGoogleAdsResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='results', full_name='google.ads.googleads.v6.services.SearchGoogleAdsResponse.results', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='next_page_token', full_name='google.ads.googleads.v6.services.SearchGoogleAdsResponse.next_page_token', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='total_results_count', full_name='google.ads.googleads.v6.services.SearchGoogleAdsResponse.total_results_count', index=2,
number=3, type=3, cpp_type=2, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='field_mask', full_name='google.ads.googleads.v6.services.SearchGoogleAdsResponse.field_mask', index=3,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='summary_row', full_name='google.ads.googleads.v6.services.SearchGoogleAdsResponse.summary_row', index=4,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=11200,
serialized_end=11461,
)
_SEARCHGOOGLEADSSTREAMREQUEST = _descriptor.Descriptor(
name='SearchGoogleAdsStreamRequest',
full_name='google.ads.googleads.v6.services.SearchGoogleAdsStreamRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='customer_id', full_name='google.ads.googleads.v6.services.SearchGoogleAdsStreamRequest.customer_id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='query', full_name='google.ads.googleads.v6.services.SearchGoogleAdsStreamRequest.query', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='summary_row_setting', full_name='google.ads.googleads.v6.services.SearchGoogleAdsStreamRequest.summary_row_setting', index=2,
number=3, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=11464,
serialized_end=11641,
)
_SEARCHGOOGLEADSSTREAMRESPONSE = _descriptor.Descriptor(
name='SearchGoogleAdsStreamResponse',
full_name='google.ads.googleads.v6.services.SearchGoogleAdsStreamResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='results', full_name='google.ads.googleads.v6.services.SearchGoogleAdsStreamResponse.results', index=0,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='field_mask', full_name='google.ads.googleads.v6.services.SearchGoogleAdsStreamResponse.field_mask', index=1,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='summary_row', full_name='google.ads.googleads.v6.services.SearchGoogleAdsStreamResponse.summary_row', index=2,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=11644,
serialized_end=11857,
)
_GOOGLEADSROW = _descriptor.Descriptor(
name='GoogleAdsRow',
full_name='google.ads.googleads.v6.services.GoogleAdsRow',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='account_budget', full_name='google.ads.googleads.v6.services.GoogleAdsRow.account_budget', index=0,
number=42, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='account_budget_proposal', full_name='google.ads.googleads.v6.services.GoogleAdsRow.account_budget_proposal', index=1,
number=43, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='account_link', full_name='google.ads.googleads.v6.services.GoogleAdsRow.account_link', index=2,
number=143, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_group', index=3,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_ad', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_group_ad', index=4,
number=16, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_ad_asset_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_group_ad_asset_view', index=5,
number=131, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_ad_label', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_group_ad_label', index=6,
number=120, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_audience_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_group_audience_view', index=7,
number=57, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_bid_modifier', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_group_bid_modifier', index=8,
number=24, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_criterion', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_group_criterion', index=9,
number=17, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_criterion_label', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_group_criterion_label', index=10,
number=121, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_criterion_simulation', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_group_criterion_simulation', index=11,
number=110, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_extension_setting', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_group_extension_setting', index=12,
number=112, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_feed', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_group_feed', index=13,
number=67, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_label', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_group_label', index=14,
number=115, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_simulation', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_group_simulation', index=15,
number=107, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_parameter', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_parameter', index=16,
number=130, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='age_range_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.age_range_view', index=17,
number=48, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_schedule_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.ad_schedule_view', index=18,
number=89, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='domain_category', full_name='google.ads.googleads.v6.services.GoogleAdsRow.domain_category', index=19,
number=91, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='asset', full_name='google.ads.googleads.v6.services.GoogleAdsRow.asset', index=20,
number=105, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='batch_job', full_name='google.ads.googleads.v6.services.GoogleAdsRow.batch_job', index=21,
number=139, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='bidding_strategy', full_name='google.ads.googleads.v6.services.GoogleAdsRow.bidding_strategy', index=22,
number=18, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='billing_setup', full_name='google.ads.googleads.v6.services.GoogleAdsRow.billing_setup', index=23,
number=41, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_budget', full_name='google.ads.googleads.v6.services.GoogleAdsRow.campaign_budget', index=24,
number=19, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign', full_name='google.ads.googleads.v6.services.GoogleAdsRow.campaign', index=25,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_asset', full_name='google.ads.googleads.v6.services.GoogleAdsRow.campaign_asset', index=26,
number=142, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_audience_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.campaign_audience_view', index=27,
number=69, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_bid_modifier', full_name='google.ads.googleads.v6.services.GoogleAdsRow.campaign_bid_modifier', index=28,
number=26, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_criterion', full_name='google.ads.googleads.v6.services.GoogleAdsRow.campaign_criterion', index=29,
number=20, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_criterion_simulation', full_name='google.ads.googleads.v6.services.GoogleAdsRow.campaign_criterion_simulation', index=30,
number=111, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_draft', full_name='google.ads.googleads.v6.services.GoogleAdsRow.campaign_draft', index=31,
number=49, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_experiment', full_name='google.ads.googleads.v6.services.GoogleAdsRow.campaign_experiment', index=32,
number=84, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_extension_setting', full_name='google.ads.googleads.v6.services.GoogleAdsRow.campaign_extension_setting', index=33,
number=113, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_feed', full_name='google.ads.googleads.v6.services.GoogleAdsRow.campaign_feed', index=34,
number=63, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_label', full_name='google.ads.googleads.v6.services.GoogleAdsRow.campaign_label', index=35,
number=108, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_shared_set', full_name='google.ads.googleads.v6.services.GoogleAdsRow.campaign_shared_set', index=36,
number=30, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='carrier_constant', full_name='google.ads.googleads.v6.services.GoogleAdsRow.carrier_constant', index=37,
number=66, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='change_event', full_name='google.ads.googleads.v6.services.GoogleAdsRow.change_event', index=38,
number=145, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='change_status', full_name='google.ads.googleads.v6.services.GoogleAdsRow.change_status', index=39,
number=37, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='combined_audience', full_name='google.ads.googleads.v6.services.GoogleAdsRow.combined_audience', index=40,
number=148, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='conversion_action', full_name='google.ads.googleads.v6.services.GoogleAdsRow.conversion_action', index=41,
number=103, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='click_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.click_view', index=42,
number=122, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='currency_constant', full_name='google.ads.googleads.v6.services.GoogleAdsRow.currency_constant', index=43,
number=134, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='custom_audience', full_name='google.ads.googleads.v6.services.GoogleAdsRow.custom_audience', index=44,
number=147, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='custom_interest', full_name='google.ads.googleads.v6.services.GoogleAdsRow.custom_interest', index=45,
number=104, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer', full_name='google.ads.googleads.v6.services.GoogleAdsRow.customer', index=46,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_manager_link', full_name='google.ads.googleads.v6.services.GoogleAdsRow.customer_manager_link', index=47,
number=61, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_client_link', full_name='google.ads.googleads.v6.services.GoogleAdsRow.customer_client_link', index=48,
number=62, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_client', full_name='google.ads.googleads.v6.services.GoogleAdsRow.customer_client', index=49,
number=70, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_extension_setting', full_name='google.ads.googleads.v6.services.GoogleAdsRow.customer_extension_setting', index=50,
number=114, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_feed', full_name='google.ads.googleads.v6.services.GoogleAdsRow.customer_feed', index=51,
number=64, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_label', full_name='google.ads.googleads.v6.services.GoogleAdsRow.customer_label', index=52,
number=124, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_negative_criterion', full_name='google.ads.googleads.v6.services.GoogleAdsRow.customer_negative_criterion', index=53,
number=88, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_user_access', full_name='google.ads.googleads.v6.services.GoogleAdsRow.customer_user_access', index=54,
number=146, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='detail_placement_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.detail_placement_view', index=55,
number=118, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='display_keyword_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.display_keyword_view', index=56,
number=47, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='distance_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.distance_view', index=57,
number=132, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='dynamic_search_ads_search_term_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.dynamic_search_ads_search_term_view', index=58,
number=106, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='expanded_landing_page_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.expanded_landing_page_view', index=59,
number=128, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='extension_feed_item', full_name='google.ads.googleads.v6.services.GoogleAdsRow.extension_feed_item', index=60,
number=85, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed', full_name='google.ads.googleads.v6.services.GoogleAdsRow.feed', index=61,
number=46, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_item', full_name='google.ads.googleads.v6.services.GoogleAdsRow.feed_item', index=62,
number=50, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_item_set', full_name='google.ads.googleads.v6.services.GoogleAdsRow.feed_item_set', index=63,
number=149, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_item_set_link', full_name='google.ads.googleads.v6.services.GoogleAdsRow.feed_item_set_link', index=64,
number=151, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_item_target', full_name='google.ads.googleads.v6.services.GoogleAdsRow.feed_item_target', index=65,
number=116, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_mapping', full_name='google.ads.googleads.v6.services.GoogleAdsRow.feed_mapping', index=66,
number=58, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_placeholder_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.feed_placeholder_view', index=67,
number=97, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='gender_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.gender_view', index=68,
number=40, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='geo_target_constant', full_name='google.ads.googleads.v6.services.GoogleAdsRow.geo_target_constant', index=69,
number=23, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='geographic_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.geographic_view', index=70,
number=125, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='group_placement_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.group_placement_view', index=71,
number=119, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='hotel_group_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.hotel_group_view', index=72,
number=51, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='hotel_performance_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.hotel_performance_view', index=73,
number=71, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='income_range_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.income_range_view', index=74,
number=138, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.keyword_view', index=75,
number=21, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan', full_name='google.ads.googleads.v6.services.GoogleAdsRow.keyword_plan', index=76,
number=32, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan_campaign', full_name='google.ads.googleads.v6.services.GoogleAdsRow.keyword_plan_campaign', index=77,
number=33, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan_campaign_keyword', full_name='google.ads.googleads.v6.services.GoogleAdsRow.keyword_plan_campaign_keyword', index=78,
number=140, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan_ad_group', full_name='google.ads.googleads.v6.services.GoogleAdsRow.keyword_plan_ad_group', index=79,
number=35, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan_ad_group_keyword', full_name='google.ads.googleads.v6.services.GoogleAdsRow.keyword_plan_ad_group_keyword', index=80,
number=141, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='label', full_name='google.ads.googleads.v6.services.GoogleAdsRow.label', index=81,
number=52, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='landing_page_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.landing_page_view', index=82,
number=126, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='language_constant', full_name='google.ads.googleads.v6.services.GoogleAdsRow.language_constant', index=83,
number=55, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='location_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.location_view', index=84,
number=123, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='managed_placement_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.managed_placement_view', index=85,
number=53, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='media_file', full_name='google.ads.googleads.v6.services.GoogleAdsRow.media_file', index=86,
number=90, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='mobile_app_category_constant', full_name='google.ads.googleads.v6.services.GoogleAdsRow.mobile_app_category_constant', index=87,
number=87, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='mobile_device_constant', full_name='google.ads.googleads.v6.services.GoogleAdsRow.mobile_device_constant', index=88,
number=98, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='offline_user_data_job', full_name='google.ads.googleads.v6.services.GoogleAdsRow.offline_user_data_job', index=89,
number=137, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='operating_system_version_constant', full_name='google.ads.googleads.v6.services.GoogleAdsRow.operating_system_version_constant', index=90,
number=86, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='paid_organic_search_term_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.paid_organic_search_term_view', index=91,
number=129, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='parental_status_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.parental_status_view', index=92,
number=45, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='product_bidding_category_constant', full_name='google.ads.googleads.v6.services.GoogleAdsRow.product_bidding_category_constant', index=93,
number=109, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='product_group_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.product_group_view', index=94,
number=54, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='recommendation', full_name='google.ads.googleads.v6.services.GoogleAdsRow.recommendation', index=95,
number=22, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='search_term_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.search_term_view', index=96,
number=68, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='shared_criterion', full_name='google.ads.googleads.v6.services.GoogleAdsRow.shared_criterion', index=97,
number=29, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='shared_set', full_name='google.ads.googleads.v6.services.GoogleAdsRow.shared_set', index=98,
number=27, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='shopping_performance_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.shopping_performance_view', index=99,
number=117, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='third_party_app_analytics_link', full_name='google.ads.googleads.v6.services.GoogleAdsRow.third_party_app_analytics_link', index=100,
number=144, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='topic_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.topic_view', index=101,
number=44, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='user_interest', full_name='google.ads.googleads.v6.services.GoogleAdsRow.user_interest', index=102,
number=59, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='user_list', full_name='google.ads.googleads.v6.services.GoogleAdsRow.user_list', index=103,
number=38, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='user_location_view', full_name='google.ads.googleads.v6.services.GoogleAdsRow.user_location_view', index=104,
number=135, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='remarketing_action', full_name='google.ads.googleads.v6.services.GoogleAdsRow.remarketing_action', index=105,
number=60, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='topic_constant', full_name='google.ads.googleads.v6.services.GoogleAdsRow.topic_constant', index=106,
number=31, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='video', full_name='google.ads.googleads.v6.services.GoogleAdsRow.video', index=107,
number=39, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='metrics', full_name='google.ads.googleads.v6.services.GoogleAdsRow.metrics', index=108,
number=4, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='segments', full_name='google.ads.googleads.v6.services.GoogleAdsRow.segments', index=109,
number=102, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=11860,
serialized_end=20662,
)
_MUTATEGOOGLEADSREQUEST = _descriptor.Descriptor(
name='MutateGoogleAdsRequest',
full_name='google.ads.googleads.v6.services.MutateGoogleAdsRequest',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='customer_id', full_name='google.ads.googleads.v6.services.MutateGoogleAdsRequest.customer_id', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=False, default_value=b"".decode('utf-8'),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='mutate_operations', full_name='google.ads.googleads.v6.services.MutateGoogleAdsRequest.mutate_operations', index=1,
number=2, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=b'\340A\002', file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='partial_failure', full_name='google.ads.googleads.v6.services.MutateGoogleAdsRequest.partial_failure', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='validate_only', full_name='google.ads.googleads.v6.services.MutateGoogleAdsRequest.validate_only', index=3,
number=4, type=8, cpp_type=7, label=1,
has_default_value=False, default_value=False,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='response_content_type', full_name='google.ads.googleads.v6.services.MutateGoogleAdsRequest.response_content_type', index=4,
number=5, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=0,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=20665,
serialized_end=20953,
)
_MUTATEGOOGLEADSRESPONSE = _descriptor.Descriptor(
name='MutateGoogleAdsResponse',
full_name='google.ads.googleads.v6.services.MutateGoogleAdsResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='partial_failure_error', full_name='google.ads.googleads.v6.services.MutateGoogleAdsResponse.partial_failure_error', index=0,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='mutate_operation_responses', full_name='google.ads.googleads.v6.services.MutateGoogleAdsResponse.mutate_operation_responses', index=1,
number=1, type=11, cpp_type=10, label=3,
has_default_value=False, default_value=[],
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
],
serialized_start=20956,
serialized_end=21127,
)
_MUTATEOPERATION = _descriptor.Descriptor(
name='MutateOperation',
full_name='google.ads.googleads.v6.services.MutateOperation',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='ad_group_ad_label_operation', full_name='google.ads.googleads.v6.services.MutateOperation.ad_group_ad_label_operation', index=0,
number=17, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_ad_operation', full_name='google.ads.googleads.v6.services.MutateOperation.ad_group_ad_operation', index=1,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_bid_modifier_operation', full_name='google.ads.googleads.v6.services.MutateOperation.ad_group_bid_modifier_operation', index=2,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_criterion_label_operation', full_name='google.ads.googleads.v6.services.MutateOperation.ad_group_criterion_label_operation', index=3,
number=18, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_criterion_operation', full_name='google.ads.googleads.v6.services.MutateOperation.ad_group_criterion_operation', index=4,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_extension_setting_operation', full_name='google.ads.googleads.v6.services.MutateOperation.ad_group_extension_setting_operation', index=5,
number=19, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_feed_operation', full_name='google.ads.googleads.v6.services.MutateOperation.ad_group_feed_operation', index=6,
number=20, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_label_operation', full_name='google.ads.googleads.v6.services.MutateOperation.ad_group_label_operation', index=7,
number=21, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_operation', full_name='google.ads.googleads.v6.services.MutateOperation.ad_group_operation', index=8,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_operation', full_name='google.ads.googleads.v6.services.MutateOperation.ad_operation', index=9,
number=49, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_parameter_operation', full_name='google.ads.googleads.v6.services.MutateOperation.ad_parameter_operation', index=10,
number=22, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='asset_operation', full_name='google.ads.googleads.v6.services.MutateOperation.asset_operation', index=11,
number=23, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='bidding_strategy_operation', full_name='google.ads.googleads.v6.services.MutateOperation.bidding_strategy_operation', index=12,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_asset_operation', full_name='google.ads.googleads.v6.services.MutateOperation.campaign_asset_operation', index=13,
number=52, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_bid_modifier_operation', full_name='google.ads.googleads.v6.services.MutateOperation.campaign_bid_modifier_operation', index=14,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_budget_operation', full_name='google.ads.googleads.v6.services.MutateOperation.campaign_budget_operation', index=15,
number=8, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_criterion_operation', full_name='google.ads.googleads.v6.services.MutateOperation.campaign_criterion_operation', index=16,
number=13, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_draft_operation', full_name='google.ads.googleads.v6.services.MutateOperation.campaign_draft_operation', index=17,
number=24, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_experiment_operation', full_name='google.ads.googleads.v6.services.MutateOperation.campaign_experiment_operation', index=18,
number=25, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_extension_setting_operation', full_name='google.ads.googleads.v6.services.MutateOperation.campaign_extension_setting_operation', index=19,
number=26, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_feed_operation', full_name='google.ads.googleads.v6.services.MutateOperation.campaign_feed_operation', index=20,
number=27, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_label_operation', full_name='google.ads.googleads.v6.services.MutateOperation.campaign_label_operation', index=21,
number=28, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_operation', full_name='google.ads.googleads.v6.services.MutateOperation.campaign_operation', index=22,
number=10, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_shared_set_operation', full_name='google.ads.googleads.v6.services.MutateOperation.campaign_shared_set_operation', index=23,
number=11, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='conversion_action_operation', full_name='google.ads.googleads.v6.services.MutateOperation.conversion_action_operation', index=24,
number=12, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_extension_setting_operation', full_name='google.ads.googleads.v6.services.MutateOperation.customer_extension_setting_operation', index=25,
number=30, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_feed_operation', full_name='google.ads.googleads.v6.services.MutateOperation.customer_feed_operation', index=26,
number=31, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_label_operation', full_name='google.ads.googleads.v6.services.MutateOperation.customer_label_operation', index=27,
number=32, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_negative_criterion_operation', full_name='google.ads.googleads.v6.services.MutateOperation.customer_negative_criterion_operation', index=28,
number=34, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_operation', full_name='google.ads.googleads.v6.services.MutateOperation.customer_operation', index=29,
number=35, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='extension_feed_item_operation', full_name='google.ads.googleads.v6.services.MutateOperation.extension_feed_item_operation', index=30,
number=36, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_item_operation', full_name='google.ads.googleads.v6.services.MutateOperation.feed_item_operation', index=31,
number=37, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_item_set_operation', full_name='google.ads.googleads.v6.services.MutateOperation.feed_item_set_operation', index=32,
number=53, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_item_set_link_operation', full_name='google.ads.googleads.v6.services.MutateOperation.feed_item_set_link_operation', index=33,
number=54, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_item_target_operation', full_name='google.ads.googleads.v6.services.MutateOperation.feed_item_target_operation', index=34,
number=38, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_mapping_operation', full_name='google.ads.googleads.v6.services.MutateOperation.feed_mapping_operation', index=35,
number=39, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_operation', full_name='google.ads.googleads.v6.services.MutateOperation.feed_operation', index=36,
number=40, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan_ad_group_operation', full_name='google.ads.googleads.v6.services.MutateOperation.keyword_plan_ad_group_operation', index=37,
number=44, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan_ad_group_keyword_operation', full_name='google.ads.googleads.v6.services.MutateOperation.keyword_plan_ad_group_keyword_operation', index=38,
number=50, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan_campaign_keyword_operation', full_name='google.ads.googleads.v6.services.MutateOperation.keyword_plan_campaign_keyword_operation', index=39,
number=51, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan_campaign_operation', full_name='google.ads.googleads.v6.services.MutateOperation.keyword_plan_campaign_operation', index=40,
number=45, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan_operation', full_name='google.ads.googleads.v6.services.MutateOperation.keyword_plan_operation', index=41,
number=48, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='label_operation', full_name='google.ads.googleads.v6.services.MutateOperation.label_operation', index=42,
number=41, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='media_file_operation', full_name='google.ads.googleads.v6.services.MutateOperation.media_file_operation', index=43,
number=42, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='remarketing_action_operation', full_name='google.ads.googleads.v6.services.MutateOperation.remarketing_action_operation', index=44,
number=43, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='shared_criterion_operation', full_name='google.ads.googleads.v6.services.MutateOperation.shared_criterion_operation', index=45,
number=14, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='shared_set_operation', full_name='google.ads.googleads.v6.services.MutateOperation.shared_set_operation', index=46,
number=15, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='user_list_operation', full_name='google.ads.googleads.v6.services.MutateOperation.user_list_operation', index=47,
number=16, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='operation', full_name='google.ads.googleads.v6.services.MutateOperation.operation',
index=0, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
],
serialized_start=21130,
serialized_end=25792,
)
_MUTATEOPERATIONRESPONSE = _descriptor.Descriptor(
name='MutateOperationResponse',
full_name='google.ads.googleads.v6.services.MutateOperationResponse',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='ad_group_ad_label_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.ad_group_ad_label_result', index=0,
number=17, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_ad_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.ad_group_ad_result', index=1,
number=1, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_bid_modifier_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.ad_group_bid_modifier_result', index=2,
number=2, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_criterion_label_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.ad_group_criterion_label_result', index=3,
number=18, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_criterion_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.ad_group_criterion_result', index=4,
number=3, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_extension_setting_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.ad_group_extension_setting_result', index=5,
number=19, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_feed_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.ad_group_feed_result', index=6,
number=20, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_label_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.ad_group_label_result', index=7,
number=21, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_group_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.ad_group_result', index=8,
number=5, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_parameter_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.ad_parameter_result', index=9,
number=22, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ad_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.ad_result', index=10,
number=49, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='asset_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.asset_result', index=11,
number=23, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='bidding_strategy_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.bidding_strategy_result', index=12,
number=6, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_asset_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.campaign_asset_result', index=13,
number=52, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_bid_modifier_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.campaign_bid_modifier_result', index=14,
number=7, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_budget_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.campaign_budget_result', index=15,
number=8, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_criterion_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.campaign_criterion_result', index=16,
number=13, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_draft_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.campaign_draft_result', index=17,
number=24, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_experiment_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.campaign_experiment_result', index=18,
number=25, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_extension_setting_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.campaign_extension_setting_result', index=19,
number=26, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_feed_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.campaign_feed_result', index=20,
number=27, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_label_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.campaign_label_result', index=21,
number=28, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.campaign_result', index=22,
number=10, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='campaign_shared_set_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.campaign_shared_set_result', index=23,
number=11, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='conversion_action_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.conversion_action_result', index=24,
number=12, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_extension_setting_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.customer_extension_setting_result', index=25,
number=30, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_feed_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.customer_feed_result', index=26,
number=31, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_label_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.customer_label_result', index=27,
number=32, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_negative_criterion_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.customer_negative_criterion_result', index=28,
number=34, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='customer_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.customer_result', index=29,
number=35, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='extension_feed_item_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.extension_feed_item_result', index=30,
number=36, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_item_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.feed_item_result', index=31,
number=37, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_item_set_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.feed_item_set_result', index=32,
number=53, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_item_set_link_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.feed_item_set_link_result', index=33,
number=54, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_item_target_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.feed_item_target_result', index=34,
number=38, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_mapping_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.feed_mapping_result', index=35,
number=39, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='feed_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.feed_result', index=36,
number=40, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan_ad_group_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.keyword_plan_ad_group_result', index=37,
number=44, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan_campaign_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.keyword_plan_campaign_result', index=38,
number=45, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan_ad_group_keyword_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.keyword_plan_ad_group_keyword_result', index=39,
number=50, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan_campaign_keyword_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.keyword_plan_campaign_keyword_result', index=40,
number=51, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='keyword_plan_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.keyword_plan_result', index=41,
number=48, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='label_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.label_result', index=42,
number=41, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='media_file_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.media_file_result', index=43,
number=42, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='remarketing_action_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.remarketing_action_result', index=44,
number=43, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='shared_criterion_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.shared_criterion_result', index=45,
number=14, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='shared_set_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.shared_set_result', index=46,
number=15, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='user_list_result', full_name='google.ads.googleads.v6.services.MutateOperationResponse.user_list_result', index=47,
number=16, type=11, cpp_type=10, label=1,
has_default_value=False, default_value=None,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto3',
extension_ranges=[],
oneofs=[
_descriptor.OneofDescriptor(
name='response', full_name='google.ads.googleads.v6.services.MutateOperationResponse.response',
index=0, containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[]),
],
serialized_start=25795,
serialized_end=30464,
)
_SEARCHGOOGLEADSREQUEST.fields_by_name['summary_row_setting'].enum_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_enums_dot_summary__row__setting__pb2._SUMMARYROWSETTINGENUM_SUMMARYROWSETTING
_SEARCHGOOGLEADSRESPONSE.fields_by_name['results'].message_type = _GOOGLEADSROW
_SEARCHGOOGLEADSRESPONSE.fields_by_name['field_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK
_SEARCHGOOGLEADSRESPONSE.fields_by_name['summary_row'].message_type = _GOOGLEADSROW
_SEARCHGOOGLEADSSTREAMREQUEST.fields_by_name['summary_row_setting'].enum_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_enums_dot_summary__row__setting__pb2._SUMMARYROWSETTINGENUM_SUMMARYROWSETTING
_SEARCHGOOGLEADSSTREAMRESPONSE.fields_by_name['results'].message_type = _GOOGLEADSROW
_SEARCHGOOGLEADSSTREAMRESPONSE.fields_by_name['field_mask'].message_type = google_dot_protobuf_dot_field__mask__pb2._FIELDMASK
_SEARCHGOOGLEADSSTREAMRESPONSE.fields_by_name['summary_row'].message_type = _GOOGLEADSROW
_GOOGLEADSROW.fields_by_name['account_budget'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_account__budget__pb2._ACCOUNTBUDGET
_GOOGLEADSROW.fields_by_name['account_budget_proposal'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_account__budget__proposal__pb2._ACCOUNTBUDGETPROPOSAL
_GOOGLEADSROW.fields_by_name['account_link'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_account__link__pb2._ACCOUNTLINK
_GOOGLEADSROW.fields_by_name['ad_group'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__pb2._ADGROUP
_GOOGLEADSROW.fields_by_name['ad_group_ad'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__ad__pb2._ADGROUPAD
_GOOGLEADSROW.fields_by_name['ad_group_ad_asset_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__ad__asset__view__pb2._ADGROUPADASSETVIEW
_GOOGLEADSROW.fields_by_name['ad_group_ad_label'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__ad__label__pb2._ADGROUPADLABEL
_GOOGLEADSROW.fields_by_name['ad_group_audience_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__audience__view__pb2._ADGROUPAUDIENCEVIEW
_GOOGLEADSROW.fields_by_name['ad_group_bid_modifier'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__bid__modifier__pb2._ADGROUPBIDMODIFIER
_GOOGLEADSROW.fields_by_name['ad_group_criterion'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__criterion__pb2._ADGROUPCRITERION
_GOOGLEADSROW.fields_by_name['ad_group_criterion_label'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__criterion__label__pb2._ADGROUPCRITERIONLABEL
_GOOGLEADSROW.fields_by_name['ad_group_criterion_simulation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__criterion__simulation__pb2._ADGROUPCRITERIONSIMULATION
_GOOGLEADSROW.fields_by_name['ad_group_extension_setting'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__extension__setting__pb2._ADGROUPEXTENSIONSETTING
_GOOGLEADSROW.fields_by_name['ad_group_feed'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__feed__pb2._ADGROUPFEED
_GOOGLEADSROW.fields_by_name['ad_group_label'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__label__pb2._ADGROUPLABEL
_GOOGLEADSROW.fields_by_name['ad_group_simulation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__group__simulation__pb2._ADGROUPSIMULATION
_GOOGLEADSROW.fields_by_name['ad_parameter'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__parameter__pb2._ADPARAMETER
_GOOGLEADSROW.fields_by_name['age_range_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_age__range__view__pb2._AGERANGEVIEW
_GOOGLEADSROW.fields_by_name['ad_schedule_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_ad__schedule__view__pb2._ADSCHEDULEVIEW
_GOOGLEADSROW.fields_by_name['domain_category'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_domain__category__pb2._DOMAINCATEGORY
_GOOGLEADSROW.fields_by_name['asset'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_asset__pb2._ASSET
_GOOGLEADSROW.fields_by_name['batch_job'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_batch__job__pb2._BATCHJOB
_GOOGLEADSROW.fields_by_name['bidding_strategy'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_bidding__strategy__pb2._BIDDINGSTRATEGY
_GOOGLEADSROW.fields_by_name['billing_setup'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_billing__setup__pb2._BILLINGSETUP
_GOOGLEADSROW.fields_by_name['campaign_budget'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__budget__pb2._CAMPAIGNBUDGET
_GOOGLEADSROW.fields_by_name['campaign'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__pb2._CAMPAIGN
_GOOGLEADSROW.fields_by_name['campaign_asset'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__asset__pb2._CAMPAIGNASSET
_GOOGLEADSROW.fields_by_name['campaign_audience_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__audience__view__pb2._CAMPAIGNAUDIENCEVIEW
_GOOGLEADSROW.fields_by_name['campaign_bid_modifier'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__bid__modifier__pb2._CAMPAIGNBIDMODIFIER
_GOOGLEADSROW.fields_by_name['campaign_criterion'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__criterion__pb2._CAMPAIGNCRITERION
_GOOGLEADSROW.fields_by_name['campaign_criterion_simulation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__criterion__simulation__pb2._CAMPAIGNCRITERIONSIMULATION
_GOOGLEADSROW.fields_by_name['campaign_draft'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__draft__pb2._CAMPAIGNDRAFT
_GOOGLEADSROW.fields_by_name['campaign_experiment'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__experiment__pb2._CAMPAIGNEXPERIMENT
_GOOGLEADSROW.fields_by_name['campaign_extension_setting'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__extension__setting__pb2._CAMPAIGNEXTENSIONSETTING
_GOOGLEADSROW.fields_by_name['campaign_feed'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__feed__pb2._CAMPAIGNFEED
_GOOGLEADSROW.fields_by_name['campaign_label'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__label__pb2._CAMPAIGNLABEL
_GOOGLEADSROW.fields_by_name['campaign_shared_set'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_campaign__shared__set__pb2._CAMPAIGNSHAREDSET
_GOOGLEADSROW.fields_by_name['carrier_constant'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_carrier__constant__pb2._CARRIERCONSTANT
_GOOGLEADSROW.fields_by_name['change_event'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_change__event__pb2._CHANGEEVENT
_GOOGLEADSROW.fields_by_name['change_status'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_change__status__pb2._CHANGESTATUS
_GOOGLEADSROW.fields_by_name['combined_audience'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_combined__audience__pb2._COMBINEDAUDIENCE
_GOOGLEADSROW.fields_by_name['conversion_action'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_conversion__action__pb2._CONVERSIONACTION
_GOOGLEADSROW.fields_by_name['click_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_click__view__pb2._CLICKVIEW
_GOOGLEADSROW.fields_by_name['currency_constant'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_currency__constant__pb2._CURRENCYCONSTANT
_GOOGLEADSROW.fields_by_name['custom_audience'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_custom__audience__pb2._CUSTOMAUDIENCE
_GOOGLEADSROW.fields_by_name['custom_interest'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_custom__interest__pb2._CUSTOMINTEREST
_GOOGLEADSROW.fields_by_name['customer'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__pb2._CUSTOMER
_GOOGLEADSROW.fields_by_name['customer_manager_link'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__manager__link__pb2._CUSTOMERMANAGERLINK
_GOOGLEADSROW.fields_by_name['customer_client_link'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__client__link__pb2._CUSTOMERCLIENTLINK
_GOOGLEADSROW.fields_by_name['customer_client'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__client__pb2._CUSTOMERCLIENT
_GOOGLEADSROW.fields_by_name['customer_extension_setting'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__extension__setting__pb2._CUSTOMEREXTENSIONSETTING
_GOOGLEADSROW.fields_by_name['customer_feed'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__feed__pb2._CUSTOMERFEED
_GOOGLEADSROW.fields_by_name['customer_label'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__label__pb2._CUSTOMERLABEL
_GOOGLEADSROW.fields_by_name['customer_negative_criterion'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__negative__criterion__pb2._CUSTOMERNEGATIVECRITERION
_GOOGLEADSROW.fields_by_name['customer_user_access'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_customer__user__access__pb2._CUSTOMERUSERACCESS
_GOOGLEADSROW.fields_by_name['detail_placement_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_detail__placement__view__pb2._DETAILPLACEMENTVIEW
_GOOGLEADSROW.fields_by_name['display_keyword_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_display__keyword__view__pb2._DISPLAYKEYWORDVIEW
_GOOGLEADSROW.fields_by_name['distance_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_distance__view__pb2._DISTANCEVIEW
_GOOGLEADSROW.fields_by_name['dynamic_search_ads_search_term_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_dynamic__search__ads__search__term__view__pb2._DYNAMICSEARCHADSSEARCHTERMVIEW
_GOOGLEADSROW.fields_by_name['expanded_landing_page_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_expanded__landing__page__view__pb2._EXPANDEDLANDINGPAGEVIEW
_GOOGLEADSROW.fields_by_name['extension_feed_item'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_extension__feed__item__pb2._EXTENSIONFEEDITEM
_GOOGLEADSROW.fields_by_name['feed'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__pb2._FEED
_GOOGLEADSROW.fields_by_name['feed_item'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__item__pb2._FEEDITEM
_GOOGLEADSROW.fields_by_name['feed_item_set'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__item__set__pb2._FEEDITEMSET
_GOOGLEADSROW.fields_by_name['feed_item_set_link'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__item__set__link__pb2._FEEDITEMSETLINK
_GOOGLEADSROW.fields_by_name['feed_item_target'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__item__target__pb2._FEEDITEMTARGET
_GOOGLEADSROW.fields_by_name['feed_mapping'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__mapping__pb2._FEEDMAPPING
_GOOGLEADSROW.fields_by_name['feed_placeholder_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_feed__placeholder__view__pb2._FEEDPLACEHOLDERVIEW
_GOOGLEADSROW.fields_by_name['gender_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_gender__view__pb2._GENDERVIEW
_GOOGLEADSROW.fields_by_name['geo_target_constant'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_geo__target__constant__pb2._GEOTARGETCONSTANT
_GOOGLEADSROW.fields_by_name['geographic_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_geographic__view__pb2._GEOGRAPHICVIEW
_GOOGLEADSROW.fields_by_name['group_placement_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_group__placement__view__pb2._GROUPPLACEMENTVIEW
_GOOGLEADSROW.fields_by_name['hotel_group_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_hotel__group__view__pb2._HOTELGROUPVIEW
_GOOGLEADSROW.fields_by_name['hotel_performance_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_hotel__performance__view__pb2._HOTELPERFORMANCEVIEW
_GOOGLEADSROW.fields_by_name['income_range_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_income__range__view__pb2._INCOMERANGEVIEW
_GOOGLEADSROW.fields_by_name['keyword_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__view__pb2._KEYWORDVIEW
_GOOGLEADSROW.fields_by_name['keyword_plan'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__pb2._KEYWORDPLAN
_GOOGLEADSROW.fields_by_name['keyword_plan_campaign'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__campaign__pb2._KEYWORDPLANCAMPAIGN
_GOOGLEADSROW.fields_by_name['keyword_plan_campaign_keyword'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__campaign__keyword__pb2._KEYWORDPLANCAMPAIGNKEYWORD
_GOOGLEADSROW.fields_by_name['keyword_plan_ad_group'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__ad__group__pb2._KEYWORDPLANADGROUP
_GOOGLEADSROW.fields_by_name['keyword_plan_ad_group_keyword'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_keyword__plan__ad__group__keyword__pb2._KEYWORDPLANADGROUPKEYWORD
_GOOGLEADSROW.fields_by_name['label'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_label__pb2._LABEL
_GOOGLEADSROW.fields_by_name['landing_page_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_landing__page__view__pb2._LANDINGPAGEVIEW
_GOOGLEADSROW.fields_by_name['language_constant'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_language__constant__pb2._LANGUAGECONSTANT
_GOOGLEADSROW.fields_by_name['location_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_location__view__pb2._LOCATIONVIEW
_GOOGLEADSROW.fields_by_name['managed_placement_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_managed__placement__view__pb2._MANAGEDPLACEMENTVIEW
_GOOGLEADSROW.fields_by_name['media_file'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_media__file__pb2._MEDIAFILE
_GOOGLEADSROW.fields_by_name['mobile_app_category_constant'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_mobile__app__category__constant__pb2._MOBILEAPPCATEGORYCONSTANT
_GOOGLEADSROW.fields_by_name['mobile_device_constant'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_mobile__device__constant__pb2._MOBILEDEVICECONSTANT
_GOOGLEADSROW.fields_by_name['offline_user_data_job'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_offline__user__data__job__pb2._OFFLINEUSERDATAJOB
_GOOGLEADSROW.fields_by_name['operating_system_version_constant'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_operating__system__version__constant__pb2._OPERATINGSYSTEMVERSIONCONSTANT
_GOOGLEADSROW.fields_by_name['paid_organic_search_term_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_paid__organic__search__term__view__pb2._PAIDORGANICSEARCHTERMVIEW
_GOOGLEADSROW.fields_by_name['parental_status_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_parental__status__view__pb2._PARENTALSTATUSVIEW
_GOOGLEADSROW.fields_by_name['product_bidding_category_constant'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_product__bidding__category__constant__pb2._PRODUCTBIDDINGCATEGORYCONSTANT
_GOOGLEADSROW.fields_by_name['product_group_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_product__group__view__pb2._PRODUCTGROUPVIEW
_GOOGLEADSROW.fields_by_name['recommendation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_recommendation__pb2._RECOMMENDATION
_GOOGLEADSROW.fields_by_name['search_term_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_search__term__view__pb2._SEARCHTERMVIEW
_GOOGLEADSROW.fields_by_name['shared_criterion'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_shared__criterion__pb2._SHAREDCRITERION
_GOOGLEADSROW.fields_by_name['shared_set'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_shared__set__pb2._SHAREDSET
_GOOGLEADSROW.fields_by_name['shopping_performance_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_shopping__performance__view__pb2._SHOPPINGPERFORMANCEVIEW
_GOOGLEADSROW.fields_by_name['third_party_app_analytics_link'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_third__party__app__analytics__link__pb2._THIRDPARTYAPPANALYTICSLINK
_GOOGLEADSROW.fields_by_name['topic_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_topic__view__pb2._TOPICVIEW
_GOOGLEADSROW.fields_by_name['user_interest'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_user__interest__pb2._USERINTEREST
_GOOGLEADSROW.fields_by_name['user_list'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_user__list__pb2._USERLIST
_GOOGLEADSROW.fields_by_name['user_location_view'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_user__location__view__pb2._USERLOCATIONVIEW
_GOOGLEADSROW.fields_by_name['remarketing_action'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_remarketing__action__pb2._REMARKETINGACTION
_GOOGLEADSROW.fields_by_name['topic_constant'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_topic__constant__pb2._TOPICCONSTANT
_GOOGLEADSROW.fields_by_name['video'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_resources_dot_video__pb2._VIDEO
_GOOGLEADSROW.fields_by_name['metrics'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_common_dot_metrics__pb2._METRICS
_GOOGLEADSROW.fields_by_name['segments'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_common_dot_segments__pb2._SEGMENTS
_MUTATEGOOGLEADSREQUEST.fields_by_name['mutate_operations'].message_type = _MUTATEOPERATION
_MUTATEGOOGLEADSREQUEST.fields_by_name['response_content_type'].enum_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_enums_dot_response__content__type__pb2._RESPONSECONTENTTYPEENUM_RESPONSECONTENTTYPE
_MUTATEGOOGLEADSRESPONSE.fields_by_name['partial_failure_error'].message_type = google_dot_rpc_dot_status__pb2._STATUS
_MUTATEGOOGLEADSRESPONSE.fields_by_name['mutate_operation_responses'].message_type = _MUTATEOPERATIONRESPONSE
_MUTATEOPERATION.fields_by_name['ad_group_ad_label_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2._ADGROUPADLABELOPERATION
_MUTATEOPERATION.fields_by_name['ad_group_ad_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__ad__service__pb2._ADGROUPADOPERATION
_MUTATEOPERATION.fields_by_name['ad_group_bid_modifier_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2._ADGROUPBIDMODIFIEROPERATION
_MUTATEOPERATION.fields_by_name['ad_group_criterion_label_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2._ADGROUPCRITERIONLABELOPERATION
_MUTATEOPERATION.fields_by_name['ad_group_criterion_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__criterion__service__pb2._ADGROUPCRITERIONOPERATION
_MUTATEOPERATION.fields_by_name['ad_group_extension_setting_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2._ADGROUPEXTENSIONSETTINGOPERATION
_MUTATEOPERATION.fields_by_name['ad_group_feed_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__feed__service__pb2._ADGROUPFEEDOPERATION
_MUTATEOPERATION.fields_by_name['ad_group_label_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__label__service__pb2._ADGROUPLABELOPERATION
_MUTATEOPERATION.fields_by_name['ad_group_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__service__pb2._ADGROUPOPERATION
_MUTATEOPERATION.fields_by_name['ad_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__service__pb2._ADOPERATION
_MUTATEOPERATION.fields_by_name['ad_parameter_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__parameter__service__pb2._ADPARAMETEROPERATION
_MUTATEOPERATION.fields_by_name['asset_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_asset__service__pb2._ASSETOPERATION
_MUTATEOPERATION.fields_by_name['bidding_strategy_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_bidding__strategy__service__pb2._BIDDINGSTRATEGYOPERATION
_MUTATEOPERATION.fields_by_name['campaign_asset_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__asset__service__pb2._CAMPAIGNASSETOPERATION
_MUTATEOPERATION.fields_by_name['campaign_bid_modifier_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2._CAMPAIGNBIDMODIFIEROPERATION
_MUTATEOPERATION.fields_by_name['campaign_budget_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__budget__service__pb2._CAMPAIGNBUDGETOPERATION
_MUTATEOPERATION.fields_by_name['campaign_criterion_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__criterion__service__pb2._CAMPAIGNCRITERIONOPERATION
_MUTATEOPERATION.fields_by_name['campaign_draft_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__draft__service__pb2._CAMPAIGNDRAFTOPERATION
_MUTATEOPERATION.fields_by_name['campaign_experiment_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__experiment__service__pb2._CAMPAIGNEXPERIMENTOPERATION
_MUTATEOPERATION.fields_by_name['campaign_extension_setting_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2._CAMPAIGNEXTENSIONSETTINGOPERATION
_MUTATEOPERATION.fields_by_name['campaign_feed_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__feed__service__pb2._CAMPAIGNFEEDOPERATION
_MUTATEOPERATION.fields_by_name['campaign_label_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__label__service__pb2._CAMPAIGNLABELOPERATION
_MUTATEOPERATION.fields_by_name['campaign_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__service__pb2._CAMPAIGNOPERATION
_MUTATEOPERATION.fields_by_name['campaign_shared_set_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__shared__set__service__pb2._CAMPAIGNSHAREDSETOPERATION
_MUTATEOPERATION.fields_by_name['conversion_action_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_conversion__action__service__pb2._CONVERSIONACTIONOPERATION
_MUTATEOPERATION.fields_by_name['customer_extension_setting_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__extension__setting__service__pb2._CUSTOMEREXTENSIONSETTINGOPERATION
_MUTATEOPERATION.fields_by_name['customer_feed_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__feed__service__pb2._CUSTOMERFEEDOPERATION
_MUTATEOPERATION.fields_by_name['customer_label_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__label__service__pb2._CUSTOMERLABELOPERATION
_MUTATEOPERATION.fields_by_name['customer_negative_criterion_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2._CUSTOMERNEGATIVECRITERIONOPERATION
_MUTATEOPERATION.fields_by_name['customer_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__service__pb2._CUSTOMEROPERATION
_MUTATEOPERATION.fields_by_name['extension_feed_item_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_extension__feed__item__service__pb2._EXTENSIONFEEDITEMOPERATION
_MUTATEOPERATION.fields_by_name['feed_item_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__service__pb2._FEEDITEMOPERATION
_MUTATEOPERATION.fields_by_name['feed_item_set_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__set__service__pb2._FEEDITEMSETOPERATION
_MUTATEOPERATION.fields_by_name['feed_item_set_link_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__set__link__service__pb2._FEEDITEMSETLINKOPERATION
_MUTATEOPERATION.fields_by_name['feed_item_target_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__target__service__pb2._FEEDITEMTARGETOPERATION
_MUTATEOPERATION.fields_by_name['feed_mapping_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__mapping__service__pb2._FEEDMAPPINGOPERATION
_MUTATEOPERATION.fields_by_name['feed_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__service__pb2._FEEDOPERATION
_MUTATEOPERATION.fields_by_name['keyword_plan_ad_group_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2._KEYWORDPLANADGROUPOPERATION
_MUTATEOPERATION.fields_by_name['keyword_plan_ad_group_keyword_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__ad__group__keyword__service__pb2._KEYWORDPLANADGROUPKEYWORDOPERATION
_MUTATEOPERATION.fields_by_name['keyword_plan_campaign_keyword_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2._KEYWORDPLANCAMPAIGNKEYWORDOPERATION
_MUTATEOPERATION.fields_by_name['keyword_plan_campaign_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2._KEYWORDPLANCAMPAIGNOPERATION
_MUTATEOPERATION.fields_by_name['keyword_plan_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__service__pb2._KEYWORDPLANOPERATION
_MUTATEOPERATION.fields_by_name['label_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_label__service__pb2._LABELOPERATION
_MUTATEOPERATION.fields_by_name['media_file_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_media__file__service__pb2._MEDIAFILEOPERATION
_MUTATEOPERATION.fields_by_name['remarketing_action_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_remarketing__action__service__pb2._REMARKETINGACTIONOPERATION
_MUTATEOPERATION.fields_by_name['shared_criterion_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_shared__criterion__service__pb2._SHAREDCRITERIONOPERATION
_MUTATEOPERATION.fields_by_name['shared_set_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_shared__set__service__pb2._SHAREDSETOPERATION
_MUTATEOPERATION.fields_by_name['user_list_operation'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_user__list__service__pb2._USERLISTOPERATION
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['ad_group_ad_label_operation'])
_MUTATEOPERATION.fields_by_name['ad_group_ad_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['ad_group_ad_operation'])
_MUTATEOPERATION.fields_by_name['ad_group_ad_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['ad_group_bid_modifier_operation'])
_MUTATEOPERATION.fields_by_name['ad_group_bid_modifier_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['ad_group_criterion_label_operation'])
_MUTATEOPERATION.fields_by_name['ad_group_criterion_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['ad_group_criterion_operation'])
_MUTATEOPERATION.fields_by_name['ad_group_criterion_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['ad_group_extension_setting_operation'])
_MUTATEOPERATION.fields_by_name['ad_group_extension_setting_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['ad_group_feed_operation'])
_MUTATEOPERATION.fields_by_name['ad_group_feed_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['ad_group_label_operation'])
_MUTATEOPERATION.fields_by_name['ad_group_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['ad_group_operation'])
_MUTATEOPERATION.fields_by_name['ad_group_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['ad_operation'])
_MUTATEOPERATION.fields_by_name['ad_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['ad_parameter_operation'])
_MUTATEOPERATION.fields_by_name['ad_parameter_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['asset_operation'])
_MUTATEOPERATION.fields_by_name['asset_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['bidding_strategy_operation'])
_MUTATEOPERATION.fields_by_name['bidding_strategy_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['campaign_asset_operation'])
_MUTATEOPERATION.fields_by_name['campaign_asset_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['campaign_bid_modifier_operation'])
_MUTATEOPERATION.fields_by_name['campaign_bid_modifier_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['campaign_budget_operation'])
_MUTATEOPERATION.fields_by_name['campaign_budget_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['campaign_criterion_operation'])
_MUTATEOPERATION.fields_by_name['campaign_criterion_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['campaign_draft_operation'])
_MUTATEOPERATION.fields_by_name['campaign_draft_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['campaign_experiment_operation'])
_MUTATEOPERATION.fields_by_name['campaign_experiment_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['campaign_extension_setting_operation'])
_MUTATEOPERATION.fields_by_name['campaign_extension_setting_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['campaign_feed_operation'])
_MUTATEOPERATION.fields_by_name['campaign_feed_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['campaign_label_operation'])
_MUTATEOPERATION.fields_by_name['campaign_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['campaign_operation'])
_MUTATEOPERATION.fields_by_name['campaign_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['campaign_shared_set_operation'])
_MUTATEOPERATION.fields_by_name['campaign_shared_set_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['conversion_action_operation'])
_MUTATEOPERATION.fields_by_name['conversion_action_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['customer_extension_setting_operation'])
_MUTATEOPERATION.fields_by_name['customer_extension_setting_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['customer_feed_operation'])
_MUTATEOPERATION.fields_by_name['customer_feed_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['customer_label_operation'])
_MUTATEOPERATION.fields_by_name['customer_label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['customer_negative_criterion_operation'])
_MUTATEOPERATION.fields_by_name['customer_negative_criterion_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['customer_operation'])
_MUTATEOPERATION.fields_by_name['customer_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['extension_feed_item_operation'])
_MUTATEOPERATION.fields_by_name['extension_feed_item_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['feed_item_operation'])
_MUTATEOPERATION.fields_by_name['feed_item_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['feed_item_set_operation'])
_MUTATEOPERATION.fields_by_name['feed_item_set_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['feed_item_set_link_operation'])
_MUTATEOPERATION.fields_by_name['feed_item_set_link_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['feed_item_target_operation'])
_MUTATEOPERATION.fields_by_name['feed_item_target_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['feed_mapping_operation'])
_MUTATEOPERATION.fields_by_name['feed_mapping_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['feed_operation'])
_MUTATEOPERATION.fields_by_name['feed_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['keyword_plan_ad_group_operation'])
_MUTATEOPERATION.fields_by_name['keyword_plan_ad_group_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['keyword_plan_ad_group_keyword_operation'])
_MUTATEOPERATION.fields_by_name['keyword_plan_ad_group_keyword_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['keyword_plan_campaign_keyword_operation'])
_MUTATEOPERATION.fields_by_name['keyword_plan_campaign_keyword_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['keyword_plan_campaign_operation'])
_MUTATEOPERATION.fields_by_name['keyword_plan_campaign_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['keyword_plan_operation'])
_MUTATEOPERATION.fields_by_name['keyword_plan_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['label_operation'])
_MUTATEOPERATION.fields_by_name['label_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['media_file_operation'])
_MUTATEOPERATION.fields_by_name['media_file_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['remarketing_action_operation'])
_MUTATEOPERATION.fields_by_name['remarketing_action_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['shared_criterion_operation'])
_MUTATEOPERATION.fields_by_name['shared_criterion_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['shared_set_operation'])
_MUTATEOPERATION.fields_by_name['shared_set_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATION.oneofs_by_name['operation'].fields.append(
_MUTATEOPERATION.fields_by_name['user_list_operation'])
_MUTATEOPERATION.fields_by_name['user_list_operation'].containing_oneof = _MUTATEOPERATION.oneofs_by_name['operation']
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_label_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__ad__label__service__pb2._MUTATEADGROUPADLABELRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__ad__service__pb2._MUTATEADGROUPADRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_bid_modifier_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__bid__modifier__service__pb2._MUTATEADGROUPBIDMODIFIERRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_label_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__criterion__label__service__pb2._MUTATEADGROUPCRITERIONLABELRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__criterion__service__pb2._MUTATEADGROUPCRITERIONRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_extension_setting_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__extension__setting__service__pb2._MUTATEADGROUPEXTENSIONSETTINGRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_feed_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__feed__service__pb2._MUTATEADGROUPFEEDRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_label_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__label__service__pb2._MUTATEADGROUPLABELRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__group__service__pb2._MUTATEADGROUPRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_parameter_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__parameter__service__pb2._MUTATEADPARAMETERRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_ad__service__pb2._MUTATEADRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['asset_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_asset__service__pb2._MUTATEASSETRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['bidding_strategy_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_bidding__strategy__service__pb2._MUTATEBIDDINGSTRATEGYRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_asset_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__asset__service__pb2._MUTATECAMPAIGNASSETRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_bid_modifier_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__bid__modifier__service__pb2._MUTATECAMPAIGNBIDMODIFIERRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_budget_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__budget__service__pb2._MUTATECAMPAIGNBUDGETRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_criterion_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__criterion__service__pb2._MUTATECAMPAIGNCRITERIONRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_draft_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__draft__service__pb2._MUTATECAMPAIGNDRAFTRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_experiment_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__experiment__service__pb2._MUTATECAMPAIGNEXPERIMENTRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_extension_setting_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__extension__setting__service__pb2._MUTATECAMPAIGNEXTENSIONSETTINGRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_feed_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__feed__service__pb2._MUTATECAMPAIGNFEEDRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_label_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__label__service__pb2._MUTATECAMPAIGNLABELRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__service__pb2._MUTATECAMPAIGNRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_shared_set_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_campaign__shared__set__service__pb2._MUTATECAMPAIGNSHAREDSETRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['conversion_action_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_conversion__action__service__pb2._MUTATECONVERSIONACTIONRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_extension_setting_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__extension__setting__service__pb2._MUTATECUSTOMEREXTENSIONSETTINGRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_feed_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__feed__service__pb2._MUTATECUSTOMERFEEDRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_label_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__label__service__pb2._MUTATECUSTOMERLABELRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_negative_criterion_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__negative__criterion__service__pb2._MUTATECUSTOMERNEGATIVECRITERIARESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_customer__service__pb2._MUTATECUSTOMERRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['extension_feed_item_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_extension__feed__item__service__pb2._MUTATEEXTENSIONFEEDITEMRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__service__pb2._MUTATEFEEDITEMRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_set_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__set__service__pb2._MUTATEFEEDITEMSETRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_set_link_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__set__link__service__pb2._MUTATEFEEDITEMSETLINKRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_target_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__item__target__service__pb2._MUTATEFEEDITEMTARGETRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_mapping_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__mapping__service__pb2._MUTATEFEEDMAPPINGRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_feed__service__pb2._MUTATEFEEDRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_ad_group_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__ad__group__service__pb2._MUTATEKEYWORDPLANADGROUPRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_campaign_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__campaign__service__pb2._MUTATEKEYWORDPLANCAMPAIGNRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_ad_group_keyword_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__ad__group__keyword__service__pb2._MUTATEKEYWORDPLANADGROUPKEYWORDRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_campaign_keyword_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__campaign__keyword__service__pb2._MUTATEKEYWORDPLANCAMPAIGNKEYWORDRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_keyword__plan__service__pb2._MUTATEKEYWORDPLANSRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['label_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_label__service__pb2._MUTATELABELRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['media_file_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_media__file__service__pb2._MUTATEMEDIAFILERESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['remarketing_action_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_remarketing__action__service__pb2._MUTATEREMARKETINGACTIONRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['shared_criterion_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_shared__criterion__service__pb2._MUTATESHAREDCRITERIONRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['shared_set_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_shared__set__service__pb2._MUTATESHAREDSETRESULT
_MUTATEOPERATIONRESPONSE.fields_by_name['user_list_result'].message_type = google_dot_ads_dot_googleads__v6_dot_proto_dot_services_dot_user__list__service__pb2._MUTATEUSERLISTRESULT
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_label_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_ad_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_bid_modifier_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_bid_modifier_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_label_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_criterion_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_extension_setting_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_extension_setting_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_feed_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_feed_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_label_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_group_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_parameter_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_parameter_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['ad_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['asset_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['asset_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['bidding_strategy_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['bidding_strategy_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_asset_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_asset_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_bid_modifier_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_bid_modifier_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_budget_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_budget_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_criterion_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_criterion_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_draft_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_draft_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_experiment_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_experiment_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_extension_setting_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_extension_setting_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_feed_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_feed_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_label_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_shared_set_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['campaign_shared_set_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['conversion_action_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['conversion_action_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_extension_setting_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_extension_setting_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_feed_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_feed_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_label_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_negative_criterion_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_negative_criterion_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['customer_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['extension_feed_item_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['extension_feed_item_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_set_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_set_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_set_link_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_set_link_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_target_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_item_target_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_mapping_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_mapping_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['feed_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_ad_group_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_ad_group_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_campaign_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_campaign_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_ad_group_keyword_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_ad_group_keyword_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_campaign_keyword_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_campaign_keyword_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['keyword_plan_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['label_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['label_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['media_file_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['media_file_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['remarketing_action_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['remarketing_action_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['shared_criterion_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['shared_criterion_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['shared_set_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['shared_set_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
_MUTATEOPERATIONRESPONSE.oneofs_by_name['response'].fields.append(
_MUTATEOPERATIONRESPONSE.fields_by_name['user_list_result'])
_MUTATEOPERATIONRESPONSE.fields_by_name['user_list_result'].containing_oneof = _MUTATEOPERATIONRESPONSE.oneofs_by_name['response']
DESCRIPTOR.message_types_by_name['SearchGoogleAdsRequest'] = _SEARCHGOOGLEADSREQUEST
DESCRIPTOR.message_types_by_name['SearchGoogleAdsResponse'] = _SEARCHGOOGLEADSRESPONSE
DESCRIPTOR.message_types_by_name['SearchGoogleAdsStreamRequest'] = _SEARCHGOOGLEADSSTREAMREQUEST
DESCRIPTOR.message_types_by_name['SearchGoogleAdsStreamResponse'] = _SEARCHGOOGLEADSSTREAMRESPONSE
DESCRIPTOR.message_types_by_name['GoogleAdsRow'] = _GOOGLEADSROW
DESCRIPTOR.message_types_by_name['MutateGoogleAdsRequest'] = _MUTATEGOOGLEADSREQUEST
DESCRIPTOR.message_types_by_name['MutateGoogleAdsResponse'] = _MUTATEGOOGLEADSRESPONSE
DESCRIPTOR.message_types_by_name['MutateOperation'] = _MUTATEOPERATION
DESCRIPTOR.message_types_by_name['MutateOperationResponse'] = _MUTATEOPERATIONRESPONSE
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
SearchGoogleAdsRequest = _reflection.GeneratedProtocolMessageType('SearchGoogleAdsRequest', (_message.Message,), {
'DESCRIPTOR' : _SEARCHGOOGLEADSREQUEST,
'__module__' : 'google.ads.googleads_v6.proto.services.google_ads_service_pb2'
,
'__doc__': """Request message for [GoogleAdsService.Search][google.ads.googleads.v6.
services.GoogleAdsService.Search].
Attributes:
customer_id:
Required. The ID of the customer being queried.
query:
Required. The query string.
page_token:
Token of the page to retrieve. If not specified, the first
page of results will be returned. Use the value obtained from
``next_page_token`` in the previous response in order to
request the next page of results.
page_size:
Number of elements to retrieve in a single page. When too
large a page is requested, the server may decide to further
limit the number of returned resources.
validate_only:
If true, the request is validated but not executed.
return_total_results_count:
If true, the total number of results that match the query
ignoring the LIMIT clause will be included in the response.
Default is false.
summary_row_setting:
Determines whether a summary row will be returned. By default,
summary row is not returned. If requested, the summary row
will be sent in a response by itself after all other query
results are returned.
""",
# @@protoc_insertion_point(class_scope:google.ads.googleads.v6.services.SearchGoogleAdsRequest)
})
_sym_db.RegisterMessage(SearchGoogleAdsRequest)
SearchGoogleAdsResponse = _reflection.GeneratedProtocolMessageType('SearchGoogleAdsResponse', (_message.Message,), {
'DESCRIPTOR' : _SEARCHGOOGLEADSRESPONSE,
'__module__' : 'google.ads.googleads_v6.proto.services.google_ads_service_pb2'
,
'__doc__': """Response message for [GoogleAdsService.Search][google.ads.googleads.v6
.services.GoogleAdsService.Search].
Attributes:
results:
The list of rows that matched the query.
next_page_token:
Pagination token used to retrieve the next page of results.
Pass the content of this string as the ``page_token``
attribute of the next request. ``next_page_token`` is not
returned for the last page.
total_results_count:
Total number of results that match the query ignoring the
LIMIT clause.
field_mask:
FieldMask that represents what fields were requested by the
user.
summary_row:
Summary row that contains summary of metrics in results.
Summary of metrics means aggregation of metrics across all
results, here aggregation could be sum, average, rate, etc.
""",
# @@protoc_insertion_point(class_scope:google.ads.googleads.v6.services.SearchGoogleAdsResponse)
})
_sym_db.RegisterMessage(SearchGoogleAdsResponse)
SearchGoogleAdsStreamRequest = _reflection.GeneratedProtocolMessageType('SearchGoogleAdsStreamRequest', (_message.Message,), {
'DESCRIPTOR' : _SEARCHGOOGLEADSSTREAMREQUEST,
'__module__' : 'google.ads.googleads_v6.proto.services.google_ads_service_pb2'
,
'__doc__': """Request message for [GoogleAdsService.SearchStream][google.ads.googlea
ds.v6.services.GoogleAdsService.SearchStream].
Attributes:
customer_id:
Required. The ID of the customer being queried.
query:
Required. The query string.
summary_row_setting:
Determines whether a summary row will be returned. By default,
summary row is not returned. If requested, the summary row
will be sent in a response by itself after all other query
results are returned.
""",
# @@protoc_insertion_point(class_scope:google.ads.googleads.v6.services.SearchGoogleAdsStreamRequest)
})
_sym_db.RegisterMessage(SearchGoogleAdsStreamRequest)
SearchGoogleAdsStreamResponse = _reflection.GeneratedProtocolMessageType('SearchGoogleAdsStreamResponse', (_message.Message,), {
'DESCRIPTOR' : _SEARCHGOOGLEADSSTREAMRESPONSE,
'__module__' : 'google.ads.googleads_v6.proto.services.google_ads_service_pb2'
,
'__doc__': """Response message for [GoogleAdsService.SearchStream][google.ads.google
ads.v6.services.GoogleAdsService.SearchStream].
Attributes:
results:
The list of rows that matched the query.
field_mask:
FieldMask that represents what fields were requested by the
user.
summary_row:
Summary row that contains summary of metrics in results.
Summary of metrics means aggregation of metrics across all
results, here aggregation could be sum, average, rate, etc.
""",
# @@protoc_insertion_point(class_scope:google.ads.googleads.v6.services.SearchGoogleAdsStreamResponse)
})
_sym_db.RegisterMessage(SearchGoogleAdsStreamResponse)
GoogleAdsRow = _reflection.GeneratedProtocolMessageType('GoogleAdsRow', (_message.Message,), {
'DESCRIPTOR' : _GOOGLEADSROW,
'__module__' : 'google.ads.googleads_v6.proto.services.google_ads_service_pb2'
,
'__doc__': """A returned row from the query.
Attributes:
account_budget:
The account budget in the query.
account_budget_proposal:
The account budget proposal referenced in the query.
account_link:
The AccountLink referenced in the query.
ad_group:
The ad group referenced in the query.
ad_group_ad:
The ad referenced in the query.
ad_group_ad_asset_view:
The ad group ad asset view in the query.
ad_group_ad_label:
The ad group ad label referenced in the query.
ad_group_audience_view:
The ad group audience view referenced in the query.
ad_group_bid_modifier:
The bid modifier referenced in the query.
ad_group_criterion:
The criterion referenced in the query.
ad_group_criterion_label:
The ad group criterion label referenced in the query.
ad_group_criterion_simulation:
The ad group criterion simulation referenced in the query.
ad_group_extension_setting:
The ad group extension setting referenced in the query.
ad_group_feed:
The ad group feed referenced in the query.
ad_group_label:
The ad group label referenced in the query.
ad_group_simulation:
The ad group simulation referenced in the query.
ad_parameter:
The ad parameter referenced in the query.
age_range_view:
The age range view referenced in the query.
ad_schedule_view:
The ad schedule view referenced in the query.
domain_category:
The domain category referenced in the query.
asset:
The asset referenced in the query.
batch_job:
The batch job referenced in the query.
bidding_strategy:
The bidding strategy referenced in the query.
billing_setup:
The billing setup referenced in the query.
campaign_budget:
The campaign budget referenced in the query.
campaign:
The campaign referenced in the query.
campaign_asset:
The campaign asset referenced in the query.
campaign_audience_view:
The campaign audience view referenced in the query.
campaign_bid_modifier:
The campaign bid modifier referenced in the query.
campaign_criterion:
The campaign criterion referenced in the query.
campaign_criterion_simulation:
The campaign criterion simulation referenced in the query.
campaign_draft:
The campaign draft referenced in the query.
campaign_experiment:
The campaign experiment referenced in the query.
campaign_extension_setting:
The campaign extension setting referenced in the query.
campaign_feed:
The campaign feed referenced in the query.
campaign_label:
The campaign label referenced in the query.
campaign_shared_set:
Campaign Shared Set referenced in AWQL query.
carrier_constant:
The carrier constant referenced in the query.
change_event:
The ChangeEvent referenced in the query.
change_status:
The ChangeStatus referenced in the query.
combined_audience:
The CombinedAudience referenced in the query.
conversion_action:
The conversion action referenced in the query.
click_view:
The ClickView referenced in the query.
currency_constant:
The currency constant referenced in the query.
custom_audience:
The CustomAudience referenced in the query.
custom_interest:
The CustomInterest referenced in the query.
customer:
The customer referenced in the query.
customer_manager_link:
The CustomerManagerLink referenced in the query.
customer_client_link:
The CustomerClientLink referenced in the query.
customer_client:
The CustomerClient referenced in the query.
customer_extension_setting:
The customer extension setting referenced in the query.
customer_feed:
The customer feed referenced in the query.
customer_label:
The customer label referenced in the query.
customer_negative_criterion:
The customer negative criterion referenced in the query.
customer_user_access:
The CustomerUserAccess referenced in the query.
detail_placement_view:
The detail placement view referenced in the query.
display_keyword_view:
The display keyword view referenced in the query.
distance_view:
The distance view referenced in the query.
dynamic_search_ads_search_term_view:
The dynamic search ads search term view referenced in the
query.
expanded_landing_page_view:
The expanded landing page view referenced in the query.
extension_feed_item:
The extension feed item referenced in the query.
feed:
The feed referenced in the query.
feed_item:
The feed item referenced in the query.
feed_item_set:
The feed item set referenced in the query.
feed_item_set_link:
The feed item set link referenced in the query.
feed_item_target:
The feed item target referenced in the query.
feed_mapping:
The feed mapping referenced in the query.
feed_placeholder_view:
The feed placeholder view referenced in the query.
gender_view:
The gender view referenced in the query.
geo_target_constant:
The geo target constant referenced in the query.
geographic_view:
The geographic view referenced in the query.
group_placement_view:
The group placement view referenced in the query.
hotel_group_view:
The hotel group view referenced in the query.
hotel_performance_view:
The hotel performance view referenced in the query.
income_range_view:
The income range view referenced in the query.
keyword_view:
The keyword view referenced in the query.
keyword_plan:
The keyword plan referenced in the query.
keyword_plan_campaign:
The keyword plan campaign referenced in the query.
keyword_plan_campaign_keyword:
The keyword plan campaign keyword referenced in the query.
keyword_plan_ad_group:
The keyword plan ad group referenced in the query.
keyword_plan_ad_group_keyword:
The keyword plan ad group referenced in the query.
label:
The label referenced in the query.
landing_page_view:
The landing page view referenced in the query.
language_constant:
The language constant referenced in the query.
location_view:
The location view referenced in the query.
managed_placement_view:
The managed placement view referenced in the query.
media_file:
The media file referenced in the query.
mobile_app_category_constant:
The mobile app category constant referenced in the query.
mobile_device_constant:
The mobile device constant referenced in the query.
offline_user_data_job:
The offline user data job referenced in the query.
operating_system_version_constant:
The operating system version constant referenced in the query.
paid_organic_search_term_view:
The paid organic search term view referenced in the query.
parental_status_view:
The parental status view referenced in the query.
product_bidding_category_constant:
The Product Bidding Category referenced in the query.
product_group_view:
The product group view referenced in the query.
recommendation:
The recommendation referenced in the query.
search_term_view:
The search term view referenced in the query.
shared_criterion:
The shared set referenced in the query.
shared_set:
The shared set referenced in the query.
shopping_performance_view:
The shopping performance view referenced in the query.
third_party_app_analytics_link:
The AccountLink referenced in the query.
topic_view:
The topic view referenced in the query.
user_interest:
The user interest referenced in the query.
user_list:
The user list referenced in the query.
user_location_view:
The user location view referenced in the query.
remarketing_action:
The remarketing action referenced in the query.
topic_constant:
The topic constant referenced in the query.
video:
The video referenced in the query.
metrics:
The metrics.
segments:
The segments.
""",
# @@protoc_insertion_point(class_scope:google.ads.googleads.v6.services.GoogleAdsRow)
})
_sym_db.RegisterMessage(GoogleAdsRow)
MutateGoogleAdsRequest = _reflection.GeneratedProtocolMessageType('MutateGoogleAdsRequest', (_message.Message,), {
'DESCRIPTOR' : _MUTATEGOOGLEADSREQUEST,
'__module__' : 'google.ads.googleads_v6.proto.services.google_ads_service_pb2'
,
'__doc__': """Request message for [GoogleAdsService.Mutate][google.ads.googleads.v6.
services.GoogleAdsService.Mutate].
Attributes:
customer_id:
Required. The ID of the customer whose resources are being
modified.
mutate_operations:
Required. The list of operations to perform on individual
resources.
partial_failure:
If true, successful operations will be carried out and invalid
operations will return errors. If false, all operations will
be carried out in one transaction if and only if they are all
valid. Default is false.
validate_only:
If true, the request is validated but not executed. Only
errors are returned, not results.
response_content_type:
The response content type setting. Determines whether the
mutable resource or just the resource name should be returned
post mutation. The mutable resource will only be returned if
the resource has the appropriate response field. E.g.
MutateCampaignResult.campaign.
""",
# @@protoc_insertion_point(class_scope:google.ads.googleads.v6.services.MutateGoogleAdsRequest)
})
_sym_db.RegisterMessage(MutateGoogleAdsRequest)
MutateGoogleAdsResponse = _reflection.GeneratedProtocolMessageType('MutateGoogleAdsResponse', (_message.Message,), {
'DESCRIPTOR' : _MUTATEGOOGLEADSRESPONSE,
'__module__' : 'google.ads.googleads_v6.proto.services.google_ads_service_pb2'
,
'__doc__': """Response message for [GoogleAdsService.Mutate][google.ads.googleads.v6
.services.GoogleAdsService.Mutate].
Attributes:
partial_failure_error:
Errors that pertain to operation failures in the partial
failure mode. Returned only when partial\_failure = true and
all errors occur inside the operations. If any errors occur
outside the operations (e.g., auth errors), we return an RPC
level error.
mutate_operation_responses:
All responses for the mutate.
""",
# @@protoc_insertion_point(class_scope:google.ads.googleads.v6.services.MutateGoogleAdsResponse)
})
_sym_db.RegisterMessage(MutateGoogleAdsResponse)
MutateOperation = _reflection.GeneratedProtocolMessageType('MutateOperation', (_message.Message,), {
'DESCRIPTOR' : _MUTATEOPERATION,
'__module__' : 'google.ads.googleads_v6.proto.services.google_ads_service_pb2'
,
'__doc__': """A single operation (create, update, remove) on a resource.
Attributes:
operation:
The mutate operation.
ad_group_ad_label_operation:
An ad group ad label mutate operation.
ad_group_ad_operation:
An ad group ad mutate operation.
ad_group_bid_modifier_operation:
An ad group bid modifier mutate operation.
ad_group_criterion_label_operation:
An ad group criterion label mutate operation.
ad_group_criterion_operation:
An ad group criterion mutate operation.
ad_group_extension_setting_operation:
An ad group extension setting mutate operation.
ad_group_feed_operation:
An ad group feed mutate operation.
ad_group_label_operation:
An ad group label mutate operation.
ad_group_operation:
An ad group mutate operation.
ad_operation:
An ad mutate operation.
ad_parameter_operation:
An ad parameter mutate operation.
asset_operation:
An asset mutate operation.
bidding_strategy_operation:
A bidding strategy mutate operation.
campaign_asset_operation:
A campaign asset mutate operation.
campaign_bid_modifier_operation:
A campaign bid modifier mutate operation.
campaign_budget_operation:
A campaign budget mutate operation.
campaign_criterion_operation:
A campaign criterion mutate operation.
campaign_draft_operation:
A campaign draft mutate operation.
campaign_experiment_operation:
A campaign experiment mutate operation.
campaign_extension_setting_operation:
A campaign extension setting mutate operation.
campaign_feed_operation:
A campaign feed mutate operation.
campaign_label_operation:
A campaign label mutate operation.
campaign_operation:
A campaign mutate operation.
campaign_shared_set_operation:
A campaign shared set mutate operation.
conversion_action_operation:
A conversion action mutate operation.
customer_extension_setting_operation:
A customer extension setting mutate operation.
customer_feed_operation:
A customer feed mutate operation.
customer_label_operation:
A customer label mutate operation.
customer_negative_criterion_operation:
A customer negative criterion mutate operation.
customer_operation:
A customer mutate operation.
extension_feed_item_operation:
An extension feed item mutate operation.
feed_item_operation:
A feed item mutate operation.
feed_item_set_operation:
A feed item set mutate operation.
feed_item_set_link_operation:
A feed item set link mutate operation.
feed_item_target_operation:
A feed item target mutate operation.
feed_mapping_operation:
A feed mapping mutate operation.
feed_operation:
A feed mutate operation.
keyword_plan_ad_group_operation:
A keyword plan ad group operation.
keyword_plan_ad_group_keyword_operation:
A keyword plan ad group keyword operation.
keyword_plan_campaign_keyword_operation:
A keyword plan campaign keyword operation.
keyword_plan_campaign_operation:
A keyword plan campaign operation.
keyword_plan_operation:
A keyword plan operation.
label_operation:
A label mutate operation.
media_file_operation:
A media file mutate operation.
remarketing_action_operation:
A remarketing action mutate operation.
shared_criterion_operation:
A shared criterion mutate operation.
shared_set_operation:
A shared set mutate operation.
user_list_operation:
A user list mutate operation.
""",
# @@protoc_insertion_point(class_scope:google.ads.googleads.v6.services.MutateOperation)
})
_sym_db.RegisterMessage(MutateOperation)
MutateOperationResponse = _reflection.GeneratedProtocolMessageType('MutateOperationResponse', (_message.Message,), {
'DESCRIPTOR' : _MUTATEOPERATIONRESPONSE,
'__module__' : 'google.ads.googleads_v6.proto.services.google_ads_service_pb2'
,
'__doc__': """Response message for the resource mutate.
Attributes:
response:
The mutate response.
ad_group_ad_label_result:
The result for the ad group ad label mutate.
ad_group_ad_result:
The result for the ad group ad mutate.
ad_group_bid_modifier_result:
The result for the ad group bid modifier mutate.
ad_group_criterion_label_result:
The result for the ad group criterion label mutate.
ad_group_criterion_result:
The result for the ad group criterion mutate.
ad_group_extension_setting_result:
The result for the ad group extension setting mutate.
ad_group_feed_result:
The result for the ad group feed mutate.
ad_group_label_result:
The result for the ad group label mutate.
ad_group_result:
The result for the ad group mutate.
ad_parameter_result:
The result for the ad parameter mutate.
ad_result:
The result for the ad mutate.
asset_result:
The result for the asset mutate.
bidding_strategy_result:
The result for the bidding strategy mutate.
campaign_asset_result:
The result for the campaign asset mutate.
campaign_bid_modifier_result:
The result for the campaign bid modifier mutate.
campaign_budget_result:
The result for the campaign budget mutate.
campaign_criterion_result:
The result for the campaign criterion mutate.
campaign_draft_result:
The result for the campaign draft mutate.
campaign_experiment_result:
The result for the campaign experiment mutate.
campaign_extension_setting_result:
The result for the campaign extension setting mutate.
campaign_feed_result:
The result for the campaign feed mutate.
campaign_label_result:
The result for the campaign label mutate.
campaign_result:
The result for the campaign mutate.
campaign_shared_set_result:
The result for the campaign shared set mutate.
conversion_action_result:
The result for the conversion action mutate.
customer_extension_setting_result:
The result for the customer extension setting mutate.
customer_feed_result:
The result for the customer feed mutate.
customer_label_result:
The result for the customer label mutate.
customer_negative_criterion_result:
The result for the customer negative criterion mutate.
customer_result:
The result for the customer mutate.
extension_feed_item_result:
The result for the extension feed item mutate.
feed_item_result:
The result for the feed item mutate.
feed_item_set_result:
The result for the feed item set mutate.
feed_item_set_link_result:
The result for the feed item set link mutate.
feed_item_target_result:
The result for the feed item target mutate.
feed_mapping_result:
The result for the feed mapping mutate.
feed_result:
The result for the feed mutate.
keyword_plan_ad_group_result:
The result for the keyword plan ad group mutate.
keyword_plan_campaign_result:
The result for the keyword plan campaign mutate.
keyword_plan_ad_group_keyword_result:
The result for the keyword plan ad group keyword mutate.
keyword_plan_campaign_keyword_result:
The result for the keyword plan campaign keyword mutate.
keyword_plan_result:
The result for the keyword plan mutate.
label_result:
The result for the label mutate.
media_file_result:
The result for the media file mutate.
remarketing_action_result:
The result for the remarketing action mutate.
shared_criterion_result:
The result for the shared criterion mutate.
shared_set_result:
The result for the shared set mutate.
user_list_result:
The result for the user list mutate.
""",
# @@protoc_insertion_point(class_scope:google.ads.googleads.v6.services.MutateOperationResponse)
})
_sym_db.RegisterMessage(MutateOperationResponse)
DESCRIPTOR._options = None
_SEARCHGOOGLEADSREQUEST.fields_by_name['customer_id']._options = None
_SEARCHGOOGLEADSREQUEST.fields_by_name['query']._options = None
_SEARCHGOOGLEADSSTREAMREQUEST.fields_by_name['customer_id']._options = None
_SEARCHGOOGLEADSSTREAMREQUEST.fields_by_name['query']._options = None
_MUTATEGOOGLEADSREQUEST.fields_by_name['customer_id']._options = None
_MUTATEGOOGLEADSREQUEST.fields_by_name['mutate_operations']._options = None
_GOOGLEADSSERVICE = _descriptor.ServiceDescriptor(
name='GoogleAdsService',
full_name='google.ads.googleads.v6.services.GoogleAdsService',
file=DESCRIPTOR,
index=0,
serialized_options=b'\312A\030googleads.googleapis.com',
create_key=_descriptor._internal_create_key,
serialized_start=30467,
serialized_end=31173,
methods=[
_descriptor.MethodDescriptor(
name='Search',
full_name='google.ads.googleads.v6.services.GoogleAdsService.Search',
index=0,
containing_service=None,
input_type=_SEARCHGOOGLEADSREQUEST,
output_type=_SEARCHGOOGLEADSRESPONSE,
serialized_options=b'\202\323\344\223\0023\"./v6/customers/{customer_id=*}/googleAds:search:\001*\332A\021customer_id,query',
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='SearchStream',
full_name='google.ads.googleads.v6.services.GoogleAdsService.SearchStream',
index=1,
containing_service=None,
input_type=_SEARCHGOOGLEADSSTREAMREQUEST,
output_type=_SEARCHGOOGLEADSSTREAMRESPONSE,
serialized_options=b'\202\323\344\223\0029\"4/v6/customers/{customer_id=*}/googleAds:searchStream:\001*\332A\021customer_id,query',
create_key=_descriptor._internal_create_key,
),
_descriptor.MethodDescriptor(
name='Mutate',
full_name='google.ads.googleads.v6.services.GoogleAdsService.Mutate',
index=2,
containing_service=None,
input_type=_MUTATEGOOGLEADSREQUEST,
output_type=_MUTATEGOOGLEADSRESPONSE,
serialized_options=b'\202\323\344\223\0023\"./v6/customers/{customer_id=*}/googleAds:mutate:\001*\332A\035customer_id,mutate_operations',
create_key=_descriptor._internal_create_key,
),
])
_sym_db.RegisterServiceDescriptor(_GOOGLEADSSERVICE)
DESCRIPTOR.services_by_name['GoogleAdsService'] = _GOOGLEADSSERVICE
# @@protoc_insertion_point(module_scope)
| 89.3051
| 38,948
| 0.833279
| 39,538
| 288,902
| 5.577748
| 0.028605
| 0.059506
| 0.042152
| 0.051149
| 0.855124
| 0.826353
| 0.799803
| 0.765591
| 0.729419
| 0.670584
| 0
| 0.032439
| 0.082554
| 288,902
| 3,234
| 38,949
| 89.332715
| 0.799598
| 0.003697
| 0
| 0.522082
| 1
| 0.003155
| 0.286416
| 0.198625
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| false
| 0.000315
| 0.053312
| 0
| 0.053312
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
|
0
| 8
|
f6ae515cfe79c68afb075360cf5f75341ab00831
| 1,497
|
py
|
Python
|
tests/test_wrappers.py
|
chrisbrake/aerial
|
6a33cf048820aab948dd24d5867e53f0f1eaa11d
|
[
"BSD-3-Clause"
] | null | null | null |
tests/test_wrappers.py
|
chrisbrake/aerial
|
6a33cf048820aab948dd24d5867e53f0f1eaa11d
|
[
"BSD-3-Clause"
] | 1
|
2018-09-20T04:39:02.000Z
|
2018-09-21T04:19:15.000Z
|
tests/test_wrappers.py
|
chrisbrake/aerial
|
6a33cf048820aab948dd24d5867e53f0f1eaa11d
|
[
"BSD-3-Clause"
] | null | null | null |
import signal as s
from aerial import Feed, wrappers as w
def test_feed_init():
""" Confirm feed is initialized if it is None """
w.feed = None
w.received(s.SIGINT)
assert isinstance(w.feed, Feed)
def test_received_false():
""" Confirm the method returns False if no signal recieved """
assert not w.received(s.SIGINT)
def test_received_true():
""" Confirm we get back True if signal retrieved """
w.feed = None # reset
w.received(s.SIGINT) # init
w.feed._receiver(s.SIGINT, 'frame')
assert w.received(s.SIGINT)
def test_received_true_auto_awk_default():
""" Confirm we get back True if signal retrieved, and then False again """
w.feed = None # reset
w.received(s.SIGINT) # init
w.feed._receiver(s.SIGINT, 'frame')
assert w.received(s.SIGINT)
assert not w.received(s.SIGINT)
def test_received_true_auto_awk_true():
""" Confirm we get back True if signal retrieved, and then False again """
w.feed = None # reset
w.received(s.SIGINT) # init
w.feed._receiver(s.SIGINT, 'frame')
assert w.received(s.SIGINT, awk=True)
assert not w.received(s.SIGINT)
def test_received_true_auto_awk_false():
""" Confirm we get back True if signal retrieved, and then True again """
w.feed = None # reset
w.received(s.SIGINT) # init
w.feed._receiver(s.SIGINT, 'frame')
assert w.received(s.SIGINT, awk=False)
assert w.received(s.SIGINT, awk=True)
assert not w.received(s.SIGINT)
| 29.352941
| 78
| 0.678023
| 232
| 1,497
| 4.267241
| 0.185345
| 0.127273
| 0.141414
| 0.226263
| 0.787879
| 0.765657
| 0.765657
| 0.765657
| 0.765657
| 0.724242
| 0
| 0
| 0.205745
| 1,497
| 50
| 79
| 29.94
| 0.832632
| 0.261857
| 0
| 0.6875
| 0
| 0
| 0.01885
| 0
| 0
| 0
| 0
| 0
| 0.3125
| 1
| 0.1875
| true
| 0
| 0.0625
| 0
| 0.25
| 0
| 0
| 0
| 0
| null | 0
| 0
| 1
| 0
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
|
0
| 7
|
f6ec0f45efebd772f014a2bd9b91bd010caa2083
| 201
|
py
|
Python
|
conan/tools/google/__init__.py
|
Mu-L/conan
|
7c24ec4bbd6e8c16cdcd879403aae742689bc36a
|
[
"MIT"
] | 1
|
2019-11-04T17:23:09.000Z
|
2019-11-04T17:23:09.000Z
|
conan/tools/google/__init__.py
|
Mu-L/conan
|
7c24ec4bbd6e8c16cdcd879403aae742689bc36a
|
[
"MIT"
] | 1
|
2020-11-05T16:16:49.000Z
|
2020-11-05T16:16:49.000Z
|
conan/tools/google/__init__.py
|
Mattlk13/conan
|
005fc53485557b0a570bb71670f2ca9c66082165
|
[
"MIT"
] | null | null | null |
from conan.tools.google.toolchain import BazelToolchain
from conan.tools.google.bazeldeps import BazelDeps
from conan.tools.google.bazel import Bazel
from conan.tools.google.layout import bazel_layout
| 40.2
| 55
| 0.860697
| 29
| 201
| 5.931034
| 0.344828
| 0.209302
| 0.325581
| 0.465116
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.079602
| 201
| 4
| 56
| 50.25
| 0.92973
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| true
| 0
| 1
| 0
| 1
| 0
| 1
| 0
| 0
| null | 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 1
| 0
| 0
| 0
|
0
| 7
|
100d9789f6e6312613e49c7a269082eb46397dd5
| 3,832
|
py
|
Python
|
chapter21casestudy2/GuessingApp/GuessingGame/wordgenerator.py
|
bpbpublications/Question-Bank-for-Exam-Success-Computer-Science-with-Python-Class-XII-CBSE-083-
|
c2ad485b5f9b7a304d4398539770c3a5916b2248
|
[
"MIT"
] | null | null | null |
chapter21casestudy2/GuessingApp/GuessingGame/wordgenerator.py
|
bpbpublications/Question-Bank-for-Exam-Success-Computer-Science-with-Python-Class-XII-CBSE-083-
|
c2ad485b5f9b7a304d4398539770c3a5916b2248
|
[
"MIT"
] | null | null | null |
chapter21casestudy2/GuessingApp/GuessingGame/wordgenerator.py
|
bpbpublications/Question-Bank-for-Exam-Success-Computer-Science-with-Python-Class-XII-CBSE-083-
|
c2ad485b5f9b7a304d4398539770c3a5916b2248
|
[
"MIT"
] | 1
|
2020-12-17T22:49:47.000Z
|
2020-12-17T22:49:47.000Z
|
words=['about','above','abuse','actor','acute','admit','adopt','adult','after','again','agent','agree','ahead','alarm','album','alert','alike','alive','allow','alone','along','alter','among','anger','Angle','angry','apart','apple','apply','arena','argue','arise','array','aside','asset','audio','audit','avoid','award','aware','badly','baker','bases','basic','basis','beach','began','begin','begun','being','below','bench','billy','birth','black','blame','blind','block','blood','board','boost','booth','bound','brain','brand','bread','break','breed','brief','bring','broad','broke','brown','build','built','buyer','cable','calif','carry','catch','cause','chain','chair','chart','chase','cheap','check','chest','chief','child','china','chose','civil','claim','class','clean','clear','click','clock','close','coach','coast','could','count','court','cover','craft','crash','cream','crime','cross','crowd','crown','curve','cycle','daily','dance','dated','dealt','death','debut','delay','depth','doing','doubt','dozen','draft','drama','drawn','dream','dress','drill','drink','drive','drove','dying','eager','early','earth','eight','elite','empty','enemy','enjoy','enter','entry','equal','error','event','every','exact','exist','extra','faith','false','fault','fiber','field','fifth','fifty','fight','final','first','fixed','flash','fleet','floor','fluid','focus','force','forth','forty','forum','found','frame','frank','fraud','fresh','front','fruit','fully','funny','giant','given','glass','globe','going','grace','grade','grand','grant','grass','great','green','gross','group','grown','guard','guess','guest','guide','happy','harry','heart','heavy','hence','henry','horse','hotel','house','human','ideal','image','index','inner','input','issue','japan','jimmy','joint','jones','judge','known','label','large','laser','later','laugh','layer','learn','lease','least','leave','legal','level','lewis','light','limit','links','lives','local','logic','loose','lower','lucky','lunch','lying','magic','major','maker','march','maria','match','maybe','mayor','meant','media','metal','might','minor','minus','mixed','model','money','month','moral','motor','mount','mouse','mouth','movie','music','needs','never','newly','night','noise','north','noted','novel','nurse','occur','ocea ior','prize','proof','proud','prove','queen','quick','quiet','quite','radio','raise','range','rapid','ratio','reach','ready','refer','right','rival','river','robin','roger','roman','rough','round','route','royal','rural','scale','scene','scope','score','sense','serve','seven','shall','shape','share','sharp','sheet','shelf','shell','shift','shirt','shock','shoot','short','shown','sight','since','sixth','sixty','sized','skill','sleep','slide','small','smart','smile','smith','smoke','solid','solve','sorry','sound','south','space','spare','speak','speed','spend','spent','split','spoke','sport','staff','stage','stake','stand','start','state','steam','steel','stick','still','stock','stone','stood','store','storm','story','strip','stuck','study','stuff','style','sugar','suite','super','sweet','table','taken','taste','taxes','teach','teeth','terry','texas','thank','theft','their','theme','there','these','thick','thing','think','third','those','three','threw','throw','tight','times','tired','title','today','topic','total','touch','tough','tower','track','trade','train','treat','trend','trial','tried','tries','truck','truly','trust','truth','twice','under','undue','union','unity','until','upper','upset','urban','usage','usual','valid','value','video','virus','visit','vital','voice','waste','watch','water','wheel','where','which','while','white','whole','whose','woman','women','world','worry','worse','worst','worth','would','wound','write','wrong','wrote','yield','young','youth']
import random
def randomword():
return random.choice(words)
| 547.428571
| 3,763
| 0.626305
| 479
| 3,832
| 5.010438
| 0.995825
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0.004436
| 3,832
| 6
| 3,764
| 638.666667
| 0.629096
| 0
| 0
| 0
| 0
| 0
| 0.613856
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0.25
| false
| 0
| 0.25
| 0.25
| 0.75
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| null | 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 1
| 1
| 0
|
0
| 7
|
63fcf04b9b9a8d66be7df9996321e5a3e5b4d7e9
| 9,145
|
py
|
Python
|
test/test_SM/test_ploshadki/test_ploshadka_b2b_center.py
|
IrinaSlobodchikova/marker
|
72f981134fb025a94348cd2bc829fa8430a01372
|
[
"Apache-2.0"
] | null | null | null |
test/test_SM/test_ploshadki/test_ploshadka_b2b_center.py
|
IrinaSlobodchikova/marker
|
72f981134fb025a94348cd2bc829fa8430a01372
|
[
"Apache-2.0"
] | null | null | null |
test/test_SM/test_ploshadki/test_ploshadka_b2b_center.py
|
IrinaSlobodchikova/marker
|
72f981134fb025a94348cd2bc829fa8430a01372
|
[
"Apache-2.0"
] | null | null | null |
def test_sm_b2b_center_include_eic_yestoday(app):
app.testhelpersm.refresh_page()
app.session.open_SM_page(app.smPurchases)
app.session.ensure_login_sm(app.username, app.password)
app.session.ensure_login_sm(app.username, app.password)
app.session.open_SM_page(app.smPurchases)
app.testHelperSMSearch.expand_show_hide()
# Искать в контейнере (всего контейнеров + 1, номер контейнера(если 0 - случайный выбор), номер строки
# в контейнере если 0 - случайный выбор)
name = 'B2B-Center'
app.testHelperSMSearch.select_first_publish_date(3, 0)
app.testHelperSMSearch.find_torgovaya_ploschadka(name)
app.testHelperSMSearch.press_search_button()
assert app.testHelperSMSearch.check_results() != '0'
assert int(app.testHelperSMSearch.check_results()) > 4500
def test_sm_b2b_center_without_eic_yestoday(app):
app.testhelpersm.refresh_page()
app.session.open_SM_page(app.smPurchases)
app.session.ensure_login_sm(app.username, app.password)
app.session.ensure_login_sm(app.username, app.password)
app.session.open_SM_page(app.smPurchases)
app.testHelperSMSearch.expand_show_hide()
# Искать в контейнере (всего контейнеров + 1, номер контейнера(если 0 - случайный выбор), номер строки
# в контейнере если 0 - случайный выбор)
name = 'B2B-Center'
app.testHelperSMSearch.select_first_publish_date(3, 0)
app.testHelperSMSearch.find_torgovaya_ploschadka(name)
app.testHelperSMSearch.find_in_container_number(11, 2, 1)
app.testHelperSMSearch.find_in_container_number(11, 6, 3)
app.testHelperSMSearch.find_in_container_number(11, 6, 4)
app.testHelperSMSearch.press_search_button()
assert app.testHelperSMSearch.check_results() != '0'
assert int(app.testHelperSMSearch.check_results()) > 4500
def test_sm_b2b_center_include_eic_yestoday_today(app):
app.testhelpersm.refresh_page()
app.session.open_SM_page(app.smPurchases)
app.session.ensure_login_sm(app.username, app.password)
app.session.ensure_login_sm(app.username, app.password)
app.session.open_SM_page(app.smPurchases)
app.testHelperSMSearch.expand_show_hide()
# Искать в контейнере (всего контейнеров + 1, номер контейнера(если 0 - случайный выбор), номер строки
# в контейнере если 0 - случайный выбор)
name = 'B2B-Center'
app.testHelperSMSearch.select_first_publish_date(11, 0)
app.testHelperSMSearch.find_torgovaya_ploschadka(name)
app.testHelperSMSearch.press_search_button()
assert app.testHelperSMSearch.check_results() != '0'
assert int(app.testHelperSMSearch.check_results()) > 4500
def test_sm_b2b_center_without_eic_yestoday_today(app):
app.testhelpersm.refresh_page()
app.session.open_SM_page(app.smPurchases)
app.session.ensure_login_sm(app.username, app.password)
app.session.ensure_login_sm(app.username, app.password)
app.session.open_SM_page(app.smPurchases)
app.testHelperSMSearch.expand_show_hide()
# Искать в контейнере (всего контейнеров + 1, номер контейнера(если 0 - случайный выбор), номер строки
# в контейнере если 0 - случайный выбор)
name = 'B2B-Center'
app.testHelperSMSearch.select_first_publish_date(11, 0)
app.testHelperSMSearch.find_torgovaya_ploschadka(name)
app.testHelperSMSearch.find_in_container_number(11, 2, 1)
app.testHelperSMSearch.find_in_container_number(11, 6, 3)
app.testHelperSMSearch.find_in_container_number(11, 6, 4)
app.testHelperSMSearch.press_search_button()
assert app.testHelperSMSearch.check_results() != '0'
assert int(app.testHelperSMSearch.check_results()) > 4500
def test_sm_b2b_center_include_eic_7_days(app):
app.testhelpersm.refresh_page()
app.session.open_SM_page(app.smPurchases)
app.session.ensure_login_sm(app.username, app.password)
app.session.ensure_login_sm(app.username, app.password)
app.session.open_SM_page(app.smPurchases)
app.testHelperSMSearch.expand_show_hide()
# Искать в контейнере (всего контейнеров + 1, номер контейнера(если 0 - случайный выбор), номер строки
# в контейнере если 0 - случайный выбор)
name = 'B2B-Center'
app.testHelperSMSearch.select_first_publish_date(4, 0)
app.testHelperSMSearch.find_torgovaya_ploschadka(name)
app.testHelperSMSearch.press_search_button()
assert app.testHelperSMSearch.check_results() != '0'
assert int(app.testHelperSMSearch.check_results()) > 15000
def test_sm_b2b_center_without_eic_7_days(app):
app.testhelpersm.refresh_page()
app.session.open_SM_page(app.smPurchases)
app.session.ensure_login_sm(app.username, app.password)
app.session.ensure_login_sm(app.username, app.password)
app.session.open_SM_page(app.smPurchases)
app.testHelperSMSearch.expand_show_hide()
# Искать в контейнере (всего контейнеров + 1, номер контейнера(если 0 - случайный выбор), номер строки
# в контейнере если 0 - случайный выбор)
name = 'B2B-Center'
app.testHelperSMSearch.select_first_publish_date(4, 0)
app.testHelperSMSearch.find_torgovaya_ploschadka(name)
app.testHelperSMSearch.find_in_container_number(11, 2, 1)
app.testHelperSMSearch.find_in_container_number(11, 6, 3)
app.testHelperSMSearch.find_in_container_number(11, 6, 4)
app.testHelperSMSearch.press_search_button()
assert app.testHelperSMSearch.check_results() != '0'
assert int(app.testHelperSMSearch.check_results()) > 15000
def test_sm_b2b_center_include_eic_current_month(app):
app.testhelpersm.refresh_page()
app.session.open_SM_page(app.smPurchases)
app.session.ensure_login_sm(app.username, app.password)
app.session.ensure_login_sm(app.username, app.password)
app.session.open_SM_page(app.smPurchases)
app.testHelperSMSearch.expand_show_hide()
# Искать в контейнере (всего контейнеров + 1, номер контейнера(если 0 - случайный выбор), номер строки
# в контейнере если 0 - случайный выбор)
name = 'B2B-Center'
app.testHelperSMSearch.select_first_publish_date(5, 0)
app.testHelperSMSearch.find_torgovaya_ploschadka(name)
app.testHelperSMSearch.press_search_button()
assert app.testHelperSMSearch.check_results() != '0'
assert int(app.testHelperSMSearch.check_results()) > int(app.testHelperSMSearch.current_date_time_day())*2000
def test_sm_b2b_center_without_eic_current_month(app):
app.testhelpersm.refresh_page()
app.session.open_SM_page(app.smPurchases)
app.session.ensure_login_sm(app.username, app.password)
app.session.ensure_login_sm(app.username, app.password)
app.session.open_SM_page(app.smPurchases)
app.testHelperSMSearch.expand_show_hide()
# Искать в контейнере (всего контейнеров + 1, номер контейнера(если 0 - случайный выбор), номер строки
# в контейнере если 0 - случайный выбор)
name = 'B2B-Center'
app.testHelperSMSearch.select_first_publish_date(5, 0)
app.testHelperSMSearch.find_torgovaya_ploschadka(name)
app.testHelperSMSearch.find_in_container_number(11, 2, 1)
app.testHelperSMSearch.find_in_container_number(11, 6, 3)
app.testHelperSMSearch.find_in_container_number(11, 6, 4)
app.testHelperSMSearch.press_search_button()
assert app.testHelperSMSearch.check_results() != '0'
assert int(app.testHelperSMSearch.check_results()) > int(app.testHelperSMSearch.current_date_time_day())*2000
def test_sm_b2b_center_include_eic_prev_month(app):
app.testhelpersm.refresh_page()
app.session.open_SM_page(app.smPurchases)
app.session.ensure_login_sm(app.username, app.password)
app.session.ensure_login_sm(app.username, app.password)
app.session.open_SM_page(app.smPurchases)
app.testHelperSMSearch.expand_show_hide()
# Искать в контейнере (всего контейнеров + 1, номер контейнера(если 0 - случайный выбор), номер строки
# в контейнере если 0 - случайный выбор)
name = 'B2B-Center'
app.testHelperSMSearch.select_first_publish_date(6, 0)
app.testHelperSMSearch.find_torgovaya_ploschadka(name)
app.testHelperSMSearch.press_search_button()
assert app.testHelperSMSearch.check_results() != '0'
assert int(app.testHelperSMSearch.check_results()) > 95000
def test_sm_b2b_center_without_eic_prev_month(app):
app.testhelpersm.refresh_page()
app.session.open_SM_page(app.smPurchases)
app.session.ensure_login_sm(app.username, app.password)
app.session.ensure_login_sm(app.username, app.password)
app.session.open_SM_page(app.smPurchases)
app.testHelperSMSearch.expand_show_hide()
# Искать в контейнере (всего контейнеров + 1, номер контейнера(если 0 - случайный выбор), номер строки
# в контейнере если 0 - случайный выбор)
name = 'B2B-Center'
app.testHelperSMSearch.select_first_publish_date(6, 0)
app.testHelperSMSearch.find_torgovaya_ploschadka(name)
app.testHelperSMSearch.find_in_container_number(11, 2, 1)
app.testHelperSMSearch.find_in_container_number(11, 6, 3)
app.testHelperSMSearch.find_in_container_number(11, 6, 4)
app.testHelperSMSearch.press_search_button()
assert app.testHelperSMSearch.check_results() != '0'
assert int(app.testHelperSMSearch.check_results()) > 95000
| 48.386243
| 113
| 0.774522
| 1,207
| 9,145
| 5.603977
| 0.060481
| 0.23906
| 0.092401
| 0.047309
| 1
| 1
| 1
| 0.992164
| 0.988468
| 0.988468
| 0
| 0.023597
| 0.128814
| 9,145
| 188
| 114
| 48.643617
| 0.825405
| 0.15298
| 0
| 0.931034
| 0
| 0
| 0.014245
| 0
| 0
| 0
| 0
| 0
| 0.137931
| 1
| 0.068966
| false
| 0.137931
| 0
| 0
| 0.068966
| 0
| 0
| 0
| 0
| null | 1
| 0
| 0
| 1
| 1
| 1
| 1
| 1
| 1
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
| null | 0
| 0
| 0
| 0
| 0
| 0
| 0
| 1
| 0
| 0
| 0
| 0
|
0
| 9
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.