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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
5f22cd4c7df56cbad90a1855eababba298933a79 | 33 | py | Python | showcase/help_functions/__init__.py | SbastianGarzon/geoextent | b1731c3d69eeb0af18a9d5a0178cf47ae2492b13 | [
"MIT"
] | 1 | 2021-01-02T06:07:09.000Z | 2021-01-02T06:07:09.000Z | showcase/help_functions/__init__.py | SbastianGarzon/geoextent | b1731c3d69eeb0af18a9d5a0178cf47ae2492b13 | [
"MIT"
] | 119 | 2019-08-16T08:37:53.000Z | 2021-08-20T13:16:10.000Z | showcase/help_functions/__init__.py | SbastianGarzon/geoextent | b1731c3d69eeb0af18a9d5a0178cf47ae2492b13 | [
"MIT"
] | 6 | 2019-08-12T08:11:55.000Z | 2020-09-24T18:39:02.000Z | from request_zenodo_api import *
| 16.5 | 32 | 0.848485 | 5 | 33 | 5.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.896552 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
a0301da5d390d052f0e1b35e59be81474f24127c | 71 | py | Python | plgspl/types.py | bevansm/PLGSPL | b7f8e9b103756398d8eb9e3d207eaf767897c79f | [
"MIT"
] | 1 | 2021-08-16T00:40:58.000Z | 2021-08-16T00:40:58.000Z | plgspl/types.py | bevansm/PLGSPL | b7f8e9b103756398d8eb9e3d207eaf767897c79f | [
"MIT"
] | 1 | 2021-08-28T13:58:20.000Z | 2021-08-29T00:06:07.000Z | plgspl/types.py | bevansm/PLGSPL | b7f8e9b103756398d8eb9e3d207eaf767897c79f | [
"MIT"
] | null | null | null | from fpdf import FPDF, HTMLMixin
class PDF(FPDF, HTMLMixin):
pass
| 14.2 | 32 | 0.732394 | 10 | 71 | 5.2 | 0.7 | 0.5 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.197183 | 71 | 4 | 33 | 17.75 | 0.912281 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.333333 | 0.333333 | 0 | 0.666667 | 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 | 0 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 6 |
a0a762a6fed34827bc0c9bcbc609087de5560991 | 45 | py | Python | book-code/numpy-ml/numpy_ml/linear_models/__init__.py | yangninghua/code_library | b769abecb4e0cbdbbb5762949c91847a0f0b3c5a | [
"MIT"
] | null | null | null | book-code/numpy-ml/numpy_ml/linear_models/__init__.py | yangninghua/code_library | b769abecb4e0cbdbbb5762949c91847a0f0b3c5a | [
"MIT"
] | null | null | null | book-code/numpy-ml/numpy_ml/linear_models/__init__.py | yangninghua/code_library | b769abecb4e0cbdbbb5762949c91847a0f0b3c5a | [
"MIT"
] | null | null | null | from .lm import *
from .naive_bayes import *
| 15 | 26 | 0.733333 | 7 | 45 | 4.571429 | 0.714286 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.177778 | 45 | 2 | 27 | 22.5 | 0.864865 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
cd80fe3407b9c27a58445eff017ab6e8b913139a | 7,429 | py | Python | tests/unit/cfngin/lookups/handlers/test_ami.py | avosper-intellaegis/runway | 757d4e7db269ec16479b044ac82a69f25fa2a450 | [
"Apache-2.0"
] | 134 | 2018-02-26T21:35:23.000Z | 2022-03-03T00:30:27.000Z | tests/unit/cfngin/lookups/handlers/test_ami.py | asksmruti/runway | 8aca76df9372e3d13eb35e12f81758f618e89e74 | [
"Apache-2.0"
] | 937 | 2018-03-08T22:04:35.000Z | 2022-03-30T12:21:47.000Z | tests/unit/cfngin/lookups/handlers/test_ami.py | asksmruti/runway | 8aca76df9372e3d13eb35e12f81758f618e89e74 | [
"Apache-2.0"
] | 70 | 2018-02-26T23:48:11.000Z | 2022-03-02T18:44:30.000Z | """Tests for runway.cfngin.lookups.handlers.ami."""
# pylint: disable=no-self-use
# pyright: basic
from __future__ import annotations
from typing import TYPE_CHECKING
import pytest
from runway.cfngin.lookups.handlers.ami import AmiLookup, ImageNotFound
if TYPE_CHECKING:
from ....factories import MockCFNginContext
REGION = "us-east-1"
class TestAMILookup:
"""Tests for runway.cfngin.lookups.handlers.ami.ImageNotFound."""
def test_basic_lookup_single_image(self, cfngin_context: MockCFNginContext) -> None:
"""Test basic lookup single image."""
stubber = cfngin_context.add_stubber("ec2")
image_id = "ami-fffccc111"
stubber.add_response(
"describe_images",
{
"Images": [
{
"OwnerId": "897883143566",
"Architecture": "x86_64",
"CreationDate": "2011-02-13T01:17:44.000Z",
"State": "available",
"ImageId": image_id,
"Name": "Fake Image 1",
"VirtualizationType": "hvm",
}
]
},
)
with stubber:
assert (
AmiLookup.handle(
value=r"owners:self name_regex:Fake\sImage\s\d",
context=cfngin_context,
)
== image_id
)
def test_basic_lookup_with_region(self, cfngin_context: MockCFNginContext) -> None:
"""Test basic lookup with region."""
stubber = cfngin_context.add_stubber("ec2", region="us-west-1")
image_id = "ami-fffccc111"
stubber.add_response(
"describe_images",
{
"Images": [
{
"OwnerId": "897883143566",
"Architecture": "x86_64",
"CreationDate": "2011-02-13T01:17:44.000Z",
"State": "available",
"ImageId": image_id,
"Name": "Fake Image 1",
"VirtualizationType": "hvm",
}
]
},
)
with stubber:
assert (
AmiLookup.handle(
value=r"us-west-1@owners:self name_regex:Fake\sImage\s\d",
context=cfngin_context,
)
== image_id
)
def test_basic_lookup_multiple_images(
self, cfngin_context: MockCFNginContext
) -> None:
"""Test basic lookup multiple images."""
stubber = cfngin_context.add_stubber("ec2")
image_id = "ami-fffccc111"
stubber.add_response(
"describe_images",
{
"Images": [
{
"OwnerId": "897883143566",
"Architecture": "x86_64",
"CreationDate": "2011-02-13T01:17:44.000Z",
"State": "available",
"ImageId": "ami-fffccc110",
"Name": "Fake Image 1",
"VirtualizationType": "hvm",
},
{
"OwnerId": "897883143566",
"Architecture": "x86_64",
"CreationDate": "2011-02-14T01:17:44.000Z",
"State": "available",
"ImageId": image_id,
"Name": "Fake Image 2",
"VirtualizationType": "hvm",
},
# include an ARI in the response to ensure it can be handled
# (these don't include a 'Name')
{
"OwnerId": "897883143566",
"Architecture": "x86_64",
"CreationDate": "2011-06-24T20:34:25.000Z",
"State": "available",
"ImageId": "ari-e6bc478f",
"VirtualizationType": "paravirtual",
},
]
},
)
with stubber:
assert (
AmiLookup.handle(
value=r"owners:self name_regex:Fake\sImage\s\d",
context=cfngin_context,
)
== image_id
)
def test_basic_lookup_multiple_images_name_match(
self, cfngin_context: MockCFNginContext
) -> None:
"""Test basic lookup multiple images name match."""
stubber = cfngin_context.add_stubber("ec2")
image_id = "ami-fffccc111"
stubber.add_response(
"describe_images",
{
"Images": [
{
"OwnerId": "897883143566",
"Architecture": "x86_64",
"CreationDate": "2011-02-13T01:17:44.000Z",
"State": "available",
"ImageId": "ami-fffccc110",
"Name": "Fa---ke Image 1",
"VirtualizationType": "hvm",
},
{
"OwnerId": "897883143566",
"Architecture": "x86_64",
"CreationDate": "2011-02-14T01:17:44.000Z",
"State": "available",
"ImageId": image_id,
"Name": "Fake Image 2",
"VirtualizationType": "hvm",
},
]
},
)
with stubber:
assert (
AmiLookup.handle(
value=r"owners:self name_regex:Fake\sImage\s\d",
context=cfngin_context,
)
== image_id
)
def test_basic_lookup_no_matching_images(
self, cfngin_context: MockCFNginContext
) -> None:
"""Test basic lookup no matching images."""
stubber = cfngin_context.add_stubber("ec2")
stubber.add_response("describe_images", {"Images": []})
with stubber, pytest.raises(ImageNotFound):
AmiLookup.handle(
value=r"owners:self name_regex:Fake\sImage\s\d", context=cfngin_context
)
def test_basic_lookup_no_matching_images_from_name(
self, cfngin_context: MockCFNginContext
) -> None:
"""Test basic lookup no matching images from name."""
stubber = cfngin_context.add_stubber("ec2")
image_id = "ami-fffccc111"
stubber.add_response(
"describe_images",
{
"Images": [
{
"OwnerId": "897883143566",
"Architecture": "x86_64",
"CreationDate": "2011-02-13T01:17:44.000Z",
"State": "available",
"ImageId": image_id,
"Name": "Fake Image 1",
"VirtualizationType": "hvm",
}
]
},
)
with stubber, pytest.raises(ImageNotFound):
AmiLookup.handle(
value=r"owners:self name_regex:MyImage\s\d", context=cfngin_context
)
| 35.042453 | 88 | 0.445417 | 580 | 7,429 | 5.532759 | 0.187931 | 0.07292 | 0.056092 | 0.084762 | 0.873792 | 0.839825 | 0.816454 | 0.756622 | 0.708944 | 0.707074 | 0 | 0.074536 | 0.449186 | 7,429 | 211 | 89 | 35.208531 | 0.709677 | 0.063131 | 0 | 0.616667 | 0 | 0 | 0.222961 | 0.052776 | 0 | 0 | 0 | 0 | 0.022222 | 1 | 0.033333 | false | 0 | 0.027778 | 0 | 0.066667 | 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 | 0 | 0 | 0 | 6 |
26d5c9c3785fe4dcff144d1a44245f0a43fcac6c | 7,723 | py | Python | permute.py | Lexseal/cube-solver | be8928734ecad4bde2ede9cac0207df9e20b8d91 | [
"MIT"
] | null | null | null | permute.py | Lexseal/cube-solver | be8928734ecad4bde2ede9cac0207df9e20b8d91 | [
"MIT"
] | null | null | null | permute.py | Lexseal/cube-solver | be8928734ecad4bde2ede9cac0207df9e20b8d91 | [
"MIT"
] | null | null | null | from queue import SimpleQueue
import numpy as np
from time import time
import random
from array import array
from copy import copy
import cube_model
from cube import Cube
import rank
from move_coord import stage1_move, stage2_move
"""
Permutes through most of the cube positions in the coordinate level to
calculate a pruning table.
"""
def calc_stage1_corners_ud():
# stage 1 can be completed in 12 moves or fewer
stage1_corners_ud = bytearray([12]*cube_model.StateSize.CO_ORI*cube_model.StateSize.UD_COMB)
stage1_corners_ud[0] = 0 # first entry is solved so takes 0 move to get to
# [co_ori, eg_ori, ud_edges, last_move]
state = array('I', [0, 0, 0, 255]) # a new cube
queue = SimpleQueue()
queue.put(state)
n = 0
last_print = 0
start_time = time() # logs
while queue.qsize() > 0:
cur_state = queue.get() # pop
cur_idx = cur_state[0]*cube_model.StateSize.UD_COMB + cur_state[2]
move_count = stage1_corners_ud[cur_idx] # get the move count up to this state
last_move = cur_state[3]
for move in cube_model.MoveSpace:
cur_face = move//3
last_face = last_move//3
if cur_face == last_face: continue
elif cur_face == 3 and last_face == 1: continue
elif cur_face == 4 and last_face == 2: continue
elif cur_face == 5 and last_face == 0: continue
next_state = copy(cur_state) # get a copy of cur state
stage1_move(next_state, move) # compute next state
next_idx = next_state[0]*cube_model.StateSize.UD_COMB + next_state[2]
next_count = stage1_corners_ud[next_idx] # get moves count
if next_count > move_count+1:
stage1_corners_ud[next_idx] = move_count+1
next_state[3] = move
queue.put(next_state)
n += 1
if (n-last_print > 100):
last_print = n
print(n, str(queue.qsize()//1000)+'k', move_count, round((time()-start_time)/60, 2))
print(n)
np.save("table/stage1_corners", np.array(stage1_corners_ud, dtype=np.uint8))
def calc_stage1_edges_ud():
# works because stage 1 can be completed in 12 moves or fewer
stage1_edges = bytearray([12]*cube_model.StateSize.EG_ORI*cube_model.StateSize.UD_COMB)
stage1_edges[0] = 0 # first entry is solved so takes 0 move to get to
# [co_ori, eg_ori, ud_edges, last_move]
state = array('I', [0, 0, 0, 255]) # a new cube
queue = SimpleQueue()
queue.put(state)
n = 0
last_print = 0
start_time = time() # logs
while queue.qsize() > 0:
cur_state = queue.get() # pop
cur_idx = cur_state[1]*cube_model.StateSize.UD_COMB + cur_state[2]
move_count = stage1_edges[cur_idx] # get the move count up to this state
last_move = cur_state[3]
for move in cube_model.MoveSpace:
cur_face = move//3
last_face = last_move//3
if cur_face == last_face: continue
elif cur_face == 3 and last_face == 1: continue
elif cur_face == 4 and last_face == 2: continue
elif cur_face == 5 and last_face == 0: continue
next_state = copy(cur_state) # get a copy of cur state
stage1_move(next_state, move) # compute next state
next_idx = next_state[1]*cube_model.StateSize.UD_COMB + next_state[2]
next_count = stage1_edges[next_idx] # get moves count
if next_count > move_count+1:
stage1_edges[next_idx] = move_count+1
next_state[3] = move
queue.put(next_state)
n += 1
if (n-last_print > 1000):
last_print = n
print(n, str(queue.qsize()//1000)+'k', move_count, round((time()-start_time)/60, 2))
print(n)
np.save("table/stage1_edges", np.array(stage1_edges, dtype=np.uint8))
def calc_stage2_corners_ud():
# stage 2 can be completed in 18 moves or fewer
stage2_corners_ud = bytearray([18]*cube_model.StateSize.CO_PERM*cube_model.StateSize.UD_PERM)
stage2_corners_ud[0] = 0 # first entry is solved so takes 0 move to get to
# [co_perm, eg_perm, ud_perm, last_move]
state = array('I', [0, 0, 0, 255]) # a new cube
queue = SimpleQueue()
queue.put(state)
n = 0
last_print = 0
start_time = time() # logs
while queue.qsize() > 0:
cur_state = queue.get() # pop
cur_idx = cur_state[0]*cube_model.StateSize.UD_PERM + cur_state[2]
move_count = stage2_corners_ud[cur_idx] # get the move count up to this state
last_move = cur_state[3]
for move in cube_model.G1Space: # we don't use the entire move space
cur_face = move//3
last_face = last_move//3
if cur_face == last_face: continue
elif cur_face == 3 and last_face == 1: continue
elif cur_face == 4 and last_face == 2: continue
elif cur_face == 5 and last_face == 0: continue
next_state = copy(cur_state) # get a copy of cur state
stage2_move(next_state, move) # compute next state
next_idx = next_state[0]*cube_model.StateSize.UD_PERM + next_state[2]
next_count = stage2_corners_ud[next_idx] # get moves count
if next_count > move_count+1:
stage2_corners_ud[next_idx] = move_count+1
next_state[3] = move
queue.put(next_state)
n += 1
if (n-last_print > 1000):
last_print = n
print(n, str(queue.qsize()//1000)+'k', move_count, round((time()-start_time)/60, 2))
print(n)
np.save("table/stage2_corners", np.array(stage2_corners_ud, dtype=np.uint8))
def calc_stage2_egdes_ud():
# stage 2 can be completed in 18 moves or fewer
stage2_edges_ud = bytearray([18]*cube_model.StateSize.EG_PERM*cube_model.StateSize.UD_PERM)
stage2_edges_ud[0] = 0 # first entry is solved so takes 0 move to get to
# [co_perm, eg_perm, ud_perm, last_move]
state = array('I', [0, 0, 0, 255]) # a new cube
queue = SimpleQueue()
queue.put(state)
n = 0
last_print = 0
start_time = time() # logs
while queue.qsize() > 0:
cur_state = queue.get() # pop
cur_idx = cur_state[1]*cube_model.StateSize.UD_PERM + cur_state[2]
move_count = stage2_edges_ud[cur_idx] # get the move count up to this state
last_move = cur_state[3]
for move in cube_model.G1Space: # we don't use the entire move space
cur_face = move//3
last_face = last_move//3
if cur_face == last_face: continue
elif cur_face == 3 and last_face == 1: continue
elif cur_face == 4 and last_face == 2: continue
elif cur_face == 5 and last_face == 0: continue
next_state = copy(cur_state) # get a copy of cur state
stage2_move(next_state, move) # compute next state
next_idx = next_state[1]*cube_model.StateSize.UD_PERM + next_state[2]
next_count = stage2_edges_ud[next_idx] # get moves count
if next_count > move_count+1:
stage2_edges_ud[next_idx] = move_count+1
next_state[3] = move
queue.put(next_state)
n += 1
if (n-last_print > 1000):
last_print = n
print(n, str(queue.qsize()//1000)+'k', move_count, round((time()-start_time)/60, 2))
print(n)
np.save("table/stage2_edges", np.array(stage2_edges_ud, dtype=np.uint8))
if __name__ == "__main__":
calc_stage1_corners_ud()
calc_stage1_edges_ud()
calc_stage2_corners_ud()
calc_stage2_egdes_ud()
pass | 39.005051 | 97 | 0.621132 | 1,175 | 7,723 | 3.83234 | 0.097872 | 0.055963 | 0.063957 | 0.053298 | 0.870309 | 0.855208 | 0.834555 | 0.792361 | 0.792361 | 0.792361 | 0 | 0.040901 | 0.281367 | 7,723 | 198 | 98 | 39.005051 | 0.77045 | 0.138936 | 0 | 0.660256 | 0 | 0 | 0.014147 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.025641 | false | 0.00641 | 0.064103 | 0 | 0.089744 | 0.128205 | 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 | 0 | 0 | 0 | 6 |
26e95d389e4cddedd5240520c7ee90cef527f996 | 146 | py | Python | backend/mainapp/schema.py | DiamondBrook/arrhythmia_project | 7236d9c3ba0ff4b089111049236c956b45900571 | [
"MIT"
] | null | null | null | backend/mainapp/schema.py | DiamondBrook/arrhythmia_project | 7236d9c3ba0ff4b089111049236c956b45900571 | [
"MIT"
] | null | null | null | backend/mainapp/schema.py | DiamondBrook/arrhythmia_project | 7236d9c3ba0ff4b089111049236c956b45900571 | [
"MIT"
] | null | null | null | import graphene
import patientdb.schema
class Query(patientdb.schema.Query, graphene.ObjectType):
pass
schema = graphene.Schema(query=Query) | 20.857143 | 57 | 0.80137 | 18 | 146 | 6.5 | 0.444444 | 0.25641 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.109589 | 146 | 7 | 58 | 20.857143 | 0.9 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.2 | 0.4 | 0 | 0.6 | 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 | 0 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
26ff9c9ccefe94eb0436200f276c2c6f50dacf27 | 120 | py | Python | net_models/models/interfaces/__init__.py | ashkalikava/net_models | 1a99f6dc743665b47c4c4731bbca2a52176ded3f | [
"MIT"
] | null | null | null | net_models/models/interfaces/__init__.py | ashkalikava/net_models | 1a99f6dc743665b47c4c4731bbca2a52176ded3f | [
"MIT"
] | null | null | null | net_models/models/interfaces/__init__.py | ashkalikava/net_models | 1a99f6dc743665b47c4c4731bbca2a52176ded3f | [
"MIT"
] | 1 | 2021-08-09T06:33:28.000Z | 2021-08-09T06:33:28.000Z | from .L2InterfaceModels import *
from .L3InterfaceModels import *
from .InterfaceModels import *
from .SpModels import * | 30 | 32 | 0.808333 | 12 | 120 | 8.083333 | 0.5 | 0.309278 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.019048 | 0.125 | 120 | 4 | 33 | 30 | 0.904762 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f85c053092e225ade672c4d7a729718c62297f4c | 55 | py | Python | nlptoolkit/translation/models/Transformer/__init__.py | jackashore/NLP_Toolkit | e5bd8bcfad87f4906c45e66351adf93bd5c2727f | [
"Apache-2.0"
] | 2 | 2020-09-26T11:20:13.000Z | 2021-09-17T13:15:48.000Z | nlptoolkit/translation/models/Transformer/__init__.py | jackashore/NLP_Toolkit | e5bd8bcfad87f4906c45e66351adf93bd5c2727f | [
"Apache-2.0"
] | null | null | null | nlptoolkit/translation/models/Transformer/__init__.py | jackashore/NLP_Toolkit | e5bd8bcfad87f4906c45e66351adf93bd5c2727f | [
"Apache-2.0"
] | 1 | 2021-03-11T21:14:24.000Z | 2021-03-11T21:14:24.000Z | from . import py_Transformer
from . import Transformer
| 18.333333 | 28 | 0.818182 | 7 | 55 | 6.285714 | 0.571429 | 0.454545 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 55 | 2 | 29 | 27.5 | 0.93617 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
f8b3c14a1badc48b8d2a121045ff924a8d6f9d01 | 7,051 | py | Python | AppVoor/tests/load_dataset_test.py | Noczio/VoorSpelling | 51e30ab3f3b2e346c6eb56578818020e142a3adb | [
"BSD-3-Clause"
] | 3 | 2020-10-09T06:15:14.000Z | 2021-04-27T02:04:28.000Z | AppVoor/tests/load_dataset_test.py | Noczio/VoorSpelling | 51e30ab3f3b2e346c6eb56578818020e142a3adb | [
"BSD-3-Clause"
] | 17 | 2020-09-10T20:22:01.000Z | 2020-12-21T04:57:03.000Z | AppVoor/tests/load_dataset_test.py | Noczio/VoorSpelling | 51e30ab3f3b2e346c6eb56578818020e142a3adb | [
"BSD-3-Clause"
] | null | null | null | import unittest
from resources.backend_scripts.load_data import LoaderCreator
class MyTestCase(unittest.TestCase):
_loader_creator = LoaderCreator()
def test_data_loaded_csv(self):
# load diabetes.csv from disk
folder_name = "datasets"
file_name = "diabetes.csv"
test_full_path = ".\\..\\" + folder_name + "\\" + file_name
# get dataframe using LoaderCreator
csv_type = self._loader_creator.create_loader(test_full_path, "CSV")
df = csv_type.get_file_transformed()
df_column_len = len(df.columns)
# do the values match?
self.assertEqual(df_column_len, 9)
def test_data_loaded_scsv(self):
# load diabetes.csv from disk
folder_name = "datasets"
file_name = "winequality-red.csv"
test_full_path = ".\\..\\" + folder_name + "\\" + file_name
# get dataframe using LoaderCreator
scsv_type = self._loader_creator.create_loader(test_full_path, "SCSV")
df = scsv_type.get_file_transformed()
df_column_len = len(df.columns)
# do the values match?
self.assertEqual(df_column_len, 12)
def test_data_load_tsv(self):
# load molecules.csv from disk
folder_name = "datasets"
file_name = "molecules.csv"
test_full_path = ".\\..\\" + folder_name + "\\" + file_name
# get dataframe using LoaderCreator
tsv_type = self._loader_creator.create_loader(test_full_path, "TSV")
df = tsv_type.get_file_transformed()
df_column_len = len(df.columns)
# do the values match?
self.assertEqual(df_column_len, 34)
def test_wrong_sep_for_tsv_file(self):
# load molecules.csv from disk
folder_name = "datasets"
file_name = "molecules.csv"
test_full_path = ".\\..\\" + folder_name + "\\" + file_name
with self.assertRaises(TypeError):
# get dataframe using LoaderCreator
tsv_type = self._loader_creator.create_loader(test_full_path, "CSV")
# this should raise an TypeError
_ = tsv_type.get_file_transformed()
def test_wrong_sep_for_scsv_file(self):
# load molecules.csv from disk
folder_name = "datasets"
file_name = "winequality-red.csv"
test_full_path = ".\\..\\" + folder_name + "\\" + file_name
with self.assertRaises(TypeError):
# get dataframe using LoaderCreator
scsv_type = self._loader_creator.create_loader(test_full_path, "CSV")
# this should raise an TypeError
_ = scsv_type.get_file_transformed()
def test_wrong_sep_for_csv_file(self):
# load diabetes.csv from disk
folder_name = "datasets"
file_name = "diabetes.csv"
test_full_path = ".\\..\\" + folder_name + "\\" + file_name
with self.assertRaises(TypeError):
csv_type = self._loader_creator.create_loader(test_full_path, "TSV")
# this should raise an TypeError
_ = csv_type.get_file_transformed()
def test_wrong_path_csv_file(self):
# load mol.csv from disk. This file does not exist
folder_name = "datasets"
file_name = "mol.csv"
test_full_path = ".\\..\\" + folder_name + "\\" + file_name
with self.assertRaises(FileNotFoundError):
# get dataframe using LoaderCreator
csv_type = self._loader_creator.create_loader(test_full_path, "CSV")
# this should raise an FileNotFoundError
_ = csv_type.get_file_transformed()
def test_wrong_path_tsv_file(self):
# load mol.csv from disk. This file does not exist
folder_name = "datasets"
file_name = "mol.csv"
test_full_path = ".\\..\\" + folder_name + "\\" + file_name
with self.assertRaises(FileNotFoundError):
# get dataframe using LoaderCreator
tsv_type = self._loader_creator.create_loader(test_full_path, "TSV")
# this should raise an FileNotFoundError
_ = tsv_type.get_file_transformed()
def test_wrong_path_scsv_file(self):
# load mol.csv from disk. This file does not exist
folder_name = "datasets"
file_name = "mol.csv"
test_full_path = ".\\..\\" + folder_name + "\\" + file_name
with self.assertRaises(FileNotFoundError):
# get dataframe using LoaderCreator
scsv_type = self._loader_creator.create_loader(test_full_path, "SCSV")
# this should raise an FileNotFoundError
_ = scsv_type.get_file_transformed()
def test_creator_value_is_wrong(self):
# load molecules.csv from disk
folder_name = "datasets"
file_name = "molecules.csv"
test_full_path = ".\\..\\" + folder_name + "\\" + file_name
with self.assertRaises(AttributeError):
# get dataframe using LoaderCreator. This should raise a ValueError
_ = self._loader_creator.create_loader(test_full_path, "txt")
def test_creator_value_with_no_capital_letters_is_right(self):
# load molecules.csv from disk
folder_name = "datasets"
file_name = "molecules.csv"
test_full_path = ".\\..\\" + folder_name + "\\" + file_name
# get dataframe using LoaderCreator
tsv_type = self._loader_creator.create_loader(test_full_path, "tsv")
df = tsv_type.get_file_transformed()
df_column_len = len(df.columns)
# do the values match?
self.assertEqual(df_column_len, 34)
def test_creator_value_with_no_capital_letters_and_white_space_is_right(self):
# load molecules.csv from disk
folder_name = "datasets"
file_name = "molecules.csv"
test_full_path = ".\\..\\" + folder_name + "\\" + file_name
# get dataframe using LoaderCreator
tsv_type = self._loader_creator.create_loader(test_full_path, " tsv ")
df = tsv_type.get_file_transformed()
df_column_len = len(df.columns)
# do the values match?
self.assertEqual(df_column_len, 34)
def test_loader_creator_types_are_correct(self):
# check for available types
loader_types = self._loader_creator.get_available_types()
expected_types = ("CSV", "TSV", "JSON", "SCSV")
results = [True for i in loader_types if i in expected_types]
bol_answer = all(results)
# this should assert true
self.assertTrue(bol_answer)
def test_file_is_not_a_dataset_it_is_a_json(self):
# load mol.csv from disk. This file does not exist
folder_name = "json_info"
file_name = "help_message.json"
test_full_path = ".\\..\\" + folder_name + "\\" + file_name
with self.assertRaises(Exception):
# get dataframe using LoaderCreator
csv_type = self._loader_creator.create_loader(test_full_path, "CSV")
# this should raise an FileNotFoundError
_ = csv_type.get_file_transformed()
if __name__ == '__main__':
unittest.main()
| 42.475904 | 82 | 0.643313 | 856 | 7,051 | 4.929907 | 0.119159 | 0.061611 | 0.073934 | 0.05545 | 0.846209 | 0.827725 | 0.827725 | 0.818957 | 0.781991 | 0.749526 | 0 | 0.001723 | 0.259254 | 7,051 | 165 | 83 | 42.733333 | 0.806242 | 0.183946 | 0 | 0.654206 | 0 | 0 | 0.079104 | 0 | 0 | 0 | 0 | 0 | 0.130841 | 1 | 0.130841 | false | 0 | 0.018692 | 0 | 0.168224 | 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 | 0 | 0 | 0 | 6 |
f8cdcd565ec5ada87f5ab66032b993e992d78881 | 69 | py | Python | layers/__init__.py | mikuh/asr-transformer | ce5af3d6fbf2a4b92f39b3e25e0b5b8d7be4eb3f | [
"MIT"
] | null | null | null | layers/__init__.py | mikuh/asr-transformer | ce5af3d6fbf2a4b92f39b3e25e0b5b8d7be4eb3f | [
"MIT"
] | null | null | null | layers/__init__.py | mikuh/asr-transformer | ce5af3d6fbf2a4b92f39b3e25e0b5b8d7be4eb3f | [
"MIT"
] | null | null | null | from layers.encoder import Encoder
from layers.decoder import Decoder | 34.5 | 34 | 0.869565 | 10 | 69 | 6 | 0.5 | 0.333333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.101449 | 69 | 2 | 35 | 34.5 | 0.967742 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
3e01e121f522b06504d81aa68f4af3851610373d | 200 | py | Python | melon_modules/cloud_data.py | WeMayNeverKnow/MelonMintBots | 6feac66a25ad86ab0c9a8b41f4cdae819f4e9fbd | [
"MIT"
] | null | null | null | melon_modules/cloud_data.py | WeMayNeverKnow/MelonMintBots | 6feac66a25ad86ab0c9a8b41f4cdae819f4e9fbd | [
"MIT"
] | null | null | null | melon_modules/cloud_data.py | WeMayNeverKnow/MelonMintBots | 6feac66a25ad86ab0c9a8b41f4cdae819f4e9fbd | [
"MIT"
] | null | null | null | from hata import Client
MELON : Client
#@MELON.commands.from_class
#class sync:
# pass
#@MELON.commands.from_class
#class refresh:
# pass
#@MELON.commands.from_class
#class reset:
# pass
| 12.5 | 27 | 0.715 | 27 | 200 | 5.185185 | 0.407407 | 0.278571 | 0.364286 | 0.471429 | 0.635714 | 0.442857 | 0 | 0 | 0 | 0 | 0 | 0 | 0.175 | 200 | 15 | 28 | 13.333333 | 0.848485 | 0.695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
3e40013e9eb9aa72622bc96fcb2341023cc3ee3f | 184 | py | Python | PoC/MLCube/src/benchmark/dataloader.py | aristizabal95/medical | 17e5317d7c33a90aadda19151bde18d751068350 | [
"Apache-2.0"
] | 12 | 2021-03-23T18:25:25.000Z | 2021-12-09T10:31:10.000Z | PoC/MLCube/src/benchmark/dataloader.py | aristizabal95/medical | 17e5317d7c33a90aadda19151bde18d751068350 | [
"Apache-2.0"
] | 4 | 2021-04-18T20:49:24.000Z | 2021-09-22T17:56:14.000Z | PoC/MLCube/src/benchmark/dataloader.py | aristizabal95/medical | 17e5317d7c33a90aadda19151bde18d751068350 | [
"Apache-2.0"
] | 3 | 2021-03-19T02:58:32.000Z | 2021-08-23T21:52:15.000Z | from torch.utils.data import DataLoader
class DataLoader(DataLoader):
def __init__(self, dataset, num_workers=0):
super().__init__(dataset=dataset,num_workers=num_workers) | 36.8 | 65 | 0.771739 | 24 | 184 | 5.458333 | 0.625 | 0.229008 | 0.259542 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.006211 | 0.125 | 184 | 5 | 65 | 36.8 | 0.807453 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.25 | 0 | 0.75 | 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 | 1 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 6 |
e44801ded22ff85e8f451669de107b4ae5c676e2 | 207 | py | Python | arc/project_test.py | artificialcreatures/arc | 156276c930657d0ca263e33fc60efaa2bbf52de1 | [
"Apache-2.0"
] | null | null | null | arc/project_test.py | artificialcreatures/arc | 156276c930657d0ca263e33fc60efaa2bbf52de1 | [
"Apache-2.0"
] | null | null | null | arc/project_test.py | artificialcreatures/arc | 156276c930657d0ca263e33fc60efaa2bbf52de1 | [
"Apache-2.0"
] | null | null | null | from arc.scm import SCM, obj_module_path
from arc.data.job import Job
from numpy import ndarray
def test_obj_module():
assert obj_module_path(Job) == "arc.data.job"
print(obj_module_path(ndarray))
| 23 | 49 | 0.763285 | 35 | 207 | 4.285714 | 0.428571 | 0.24 | 0.26 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.144928 | 207 | 8 | 50 | 25.875 | 0.847458 | 0 | 0 | 0 | 0 | 0 | 0.057971 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 1 | 0.166667 | true | 0 | 0.5 | 0 | 0.666667 | 0.166667 | 0 | 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 | 6 |
e44c4af9c70f2d3a85f0715a580fc8cd243f6cdc | 682 | py | Python | test/test_service_update.py | CiscoDevNet/python-msx-sdk | d7e0a08c656504b4f4551d263e67c671a2a04b3f | [
"MIT"
] | null | null | null | test/test_service_update.py | CiscoDevNet/python-msx-sdk | d7e0a08c656504b4f4551d263e67c671a2a04b3f | [
"MIT"
] | null | null | null | test/test_service_update.py | CiscoDevNet/python-msx-sdk | d7e0a08c656504b4f4551d263e67c671a2a04b3f | [
"MIT"
] | null | null | null | """
MSX SDK
MSX SDK client. # noqa: E501
The version of the OpenAPI document: 1.0.9
Generated by: https://openapi-generator.tech
"""
import sys
import unittest
import python_msx_sdk
from python_msx_sdk.model.service_update import ServiceUpdate
class TestServiceUpdate(unittest.TestCase):
"""ServiceUpdate unit test stubs"""
def setUp(self):
pass
def tearDown(self):
pass
def testServiceUpdate(self):
"""Test ServiceUpdate"""
# FIXME: construct object with mandatory attributes with example values
# model = ServiceUpdate() # noqa: E501
pass
if __name__ == '__main__':
unittest.main()
| 18.944444 | 79 | 0.665689 | 79 | 682 | 5.582278 | 0.620253 | 0.054422 | 0.054422 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.017476 | 0.244868 | 682 | 35 | 80 | 19.485714 | 0.838835 | 0.416422 | 0 | 0.230769 | 1 | 0 | 0.022099 | 0 | 0 | 0 | 0 | 0.028571 | 0 | 1 | 0.230769 | false | 0.230769 | 0.307692 | 0 | 0.615385 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | null | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | 6 |
e4fcae713a3828986b801bd4d4dfc1f43e358520 | 509 | py | Python | ssc2ce/tests/coinbase_expected_result.py | fakecoinbase/olnedslashssc2ce-python | 2cf576471fe4ba1170f2ba85b09e85ba3ee47474 | [
"MIT"
] | 4 | 2020-06-23T13:04:11.000Z | 2021-09-03T10:40:13.000Z | ssc2ce/tests/coinbase_expected_result.py | fakecoinbase/olnedslashssc2ce-python | 2cf576471fe4ba1170f2ba85b09e85ba3ee47474 | [
"MIT"
] | 6 | 2020-06-01T13:20:37.000Z | 2020-09-18T19:09:36.000Z | ssc2ce/tests/coinbase_expected_result.py | fakecoinbase/olnedslashssc2ce-python | 2cf576471fe4ba1170f2ba85b09e85ba3ee47474 | [
"MIT"
] | 3 | 2019-05-24T16:35:30.000Z | 2021-10-06T21:21:02.000Z | results = [
(0,),
(1, 8539.99, 8541.6),
(1, 8539.99, 8541.61),
(1, 8539.99, 8541.59),
(1, 8539.99, 8541.58),
(1, 8539.99, 8541.57),
(1, 8539.99, 8541.58),
(1, 8538.96, 8541.58),
(1, 8539.99, 8541.58),
(1, 8539.99, 8541.58),
(1, 8537.45, 8541.58),
(1, 8537.45, 8541.58),
(1, 8537.42, 8541.58),
(1, 8537.44, 8541.58),
(1, 8537.42, 8541.58),
(1, 8537.42, 8541.58),
(1, 8540.51, 8541.58),
(1, 8540.52, 8541.58),
(1, 8540.52, 8541.58),
]
| 23.136364 | 26 | 0.473477 | 92 | 509 | 2.619565 | 0.217391 | 0.348548 | 0.377593 | 0.365145 | 0.742739 | 0.742739 | 0.684647 | 0.551867 | 0.489627 | 0 | 0 | 0.625668 | 0.265226 | 509 | 21 | 27 | 24.238095 | 0.018717 | 0 | 0 | 0.52381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9036895734e445cc530024607f4e65340d4491f3 | 650 | py | Python | mathy_envs/gym/__init__.py | mathy/mathy_envs | 41d82cca881ff9d3d3fe576d0e75100116a0e4da | [
"MIT"
] | 1 | 2021-12-06T10:29:40.000Z | 2021-12-06T10:29:40.000Z | mathy_envs/gym/__init__.py | mathy/mathy_envs | 41d82cca881ff9d3d3fe576d0e75100116a0e4da | [
"MIT"
] | 8 | 2020-09-06T17:17:22.000Z | 2021-08-11T20:35:26.000Z | mathy_envs/gym/__init__.py | mathy/mathy_envs | 41d82cca881ff9d3d3fe576d0e75100116a0e4da | [
"MIT"
] | null | null | null | try:
import gym # noqa
except ImportError:
raise ImportError(
"""
The "gym" library must be installed to use mathy_envs.gym submodule. Please try:
pip install mathy_envs[gym]
"""
)
from .gym_binomial_distribute import * # noqa
from .gym_complex_simplify import * # noqa
from .gym_poly_blockers import * # noqa
from .gym_poly_combine_in_place import * # noqa
from .gym_poly_commute_like_terms import * # noqa
from .gym_poly_grouping import * # noqa
from .gym_poly_haystack_like_terms import * # noqa
from .gym_poly_simplify import * # noqa
from .masked_discrete import * # noqa
from .mathy_gym_env import * # noqa
| 29.545455 | 80 | 0.735385 | 92 | 650 | 4.902174 | 0.413043 | 0.221729 | 0.279379 | 0.263858 | 0.31929 | 0.133038 | 0.133038 | 0 | 0 | 0 | 0 | 0 | 0.190769 | 650 | 21 | 81 | 30.952381 | 0.857414 | 0.083077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.866667 | 0 | 0.866667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5f42f0559b3e9f213963c956066d9827effd2be2 | 35 | py | Python | arclet/edoves/mah/module/__init__.py | ArcletProject/Edoves | b28423057ab765796d5299b5d8f98a0e8ce494dd | [
"MIT"
] | 2 | 2022-01-25T16:05:30.000Z | 2022-02-12T18:33:39.000Z | arclet/edoves/mah/module/__init__.py | ArcletProject/Edoves | b28423057ab765796d5299b5d8f98a0e8ce494dd | [
"MIT"
] | 4 | 2022-03-04T08:24:53.000Z | 2022-03-23T15:22:26.000Z | arclet/edoves/mah/module/__init__.py | ArcletProject/Edoves | b28423057ab765796d5299b5d8f98a0e8ce494dd | [
"MIT"
] | null | null | null | from .message import MessageModule
| 17.5 | 34 | 0.857143 | 4 | 35 | 7.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.114286 | 35 | 1 | 35 | 35 | 0.967742 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
5f7b3e4af612b1072c491d7b84e8c6de3f1e4133 | 194 | bzl | Python | rules/scala/grpc_scala_library.bzl | heartless-clown/rules_proto | 99c0d0c7a00c1df7221afc3331b5d859a02c420f | [
"Apache-2.0"
] | 249 | 2018-10-24T21:11:08.000Z | 2022-03-31T03:28:34.000Z | rules/scala/grpc_scala_library.bzl | heartless-clown/rules_proto | 99c0d0c7a00c1df7221afc3331b5d859a02c420f | [
"Apache-2.0"
] | 147 | 2018-12-05T18:58:13.000Z | 2022-03-26T15:41:07.000Z | rules/scala/grpc_scala_library.bzl | heartless-clown/rules_proto | 99c0d0c7a00c1df7221afc3331b5d859a02c420f | [
"Apache-2.0"
] | 126 | 2018-11-20T22:34:48.000Z | 2022-03-18T13:42:05.000Z | "grpc_scala_library.bzl provides a scala_library for grpc files."
load("@io_bazel_rules_scala//scala:scala.bzl", "scala_library")
def grpc_scala_library(**kwargs):
scala_library(**kwargs)
| 27.714286 | 65 | 0.778351 | 29 | 194 | 4.862069 | 0.482759 | 0.425532 | 0.22695 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092784 | 194 | 6 | 66 | 32.333333 | 0.801136 | 0.324742 | 0 | 0 | 0 | 0 | 0.587629 | 0.309278 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | true | 0 | 0 | 0 | 0.25 | 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 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
5fcbd65c35af3fb6f5f10b6294fa0936d4de6d82 | 181 | py | Python | web_scrapers/linkedin/local_drivers/__init__.py | kohlert/data_science | acfa37ec6e69beda6b7a1b5ae29373b03d32c0f2 | [
"MIT"
] | null | null | null | web_scrapers/linkedin/local_drivers/__init__.py | kohlert/data_science | acfa37ec6e69beda6b7a1b5ae29373b03d32c0f2 | [
"MIT"
] | null | null | null | web_scrapers/linkedin/local_drivers/__init__.py | kohlert/data_science | acfa37ec6e69beda6b7a1b5ae29373b03d32c0f2 | [
"MIT"
] | null | null | null | from pkg_resources import resource_filename
chrome_88_path = resource_filename(__name__, '/chromedriver88.exe')
chrome_90_path = resource_filename(__name__, '/chromedriver90.exe')
| 36.2 | 67 | 0.839779 | 22 | 181 | 6.181818 | 0.636364 | 0.352941 | 0.294118 | 0.352941 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.047619 | 0.071823 | 181 | 4 | 68 | 45.25 | 0.761905 | 0 | 0 | 0 | 0 | 0 | 0.209945 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
399a57287e814737fb3a644cb6d91b5931e32bec | 36 | py | Python | backend/crud/__init__.py | Taym95/grocery-stores-home-delivery | 7d5495ae89cbc594bb5178a5893ed86dccdca442 | [
"MIT"
] | 5 | 2020-03-26T00:02:35.000Z | 2022-03-20T07:52:50.000Z | backend/crud/__init__.py | Taym95/grocery-stores-home-delivery | 7d5495ae89cbc594bb5178a5893ed86dccdca442 | [
"MIT"
] | 87 | 2020-03-22T15:57:34.000Z | 2020-06-12T07:39:21.000Z | backend/crud/__init__.py | Taym95/grocery-stores-home-delivery | 7d5495ae89cbc594bb5178a5893ed86dccdca442 | [
"MIT"
] | 7 | 2020-03-22T16:02:26.000Z | 2022-03-21T06:27:54.000Z | from .crud_stores import store_crud
| 18 | 35 | 0.861111 | 6 | 36 | 4.833333 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.111111 | 36 | 1 | 36 | 36 | 0.90625 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
39d6bb2a35bb1b426023d42c9de93ef16866b8bf | 242 | py | Python | mi/abc/chat.py | gitter-badger/Mi.py | ef6611c93c8a5237ec9d51ff89e845b85771e070 | [
"MIT"
] | 13 | 2021-09-14T02:47:23.000Z | 2022-02-27T16:48:09.000Z | mi/abc/chat.py | gitter-badger/Mi.py | ef6611c93c8a5237ec9d51ff89e845b85771e070 | [
"MIT"
] | 62 | 2021-08-28T10:56:55.000Z | 2022-03-30T06:47:28.000Z | mi/abc/chat.py | gitter-badger/Mi.py | ef6611c93c8a5237ec9d51ff89e845b85771e070 | [
"MIT"
] | 3 | 2021-12-23T20:10:57.000Z | 2022-03-30T13:19:49.000Z | from abc import ABC, abstractmethod
class AbstractChat(ABC):
@abstractmethod
async def send(self) -> 'AbstractChatContent':
pass
class AbstractChatContent(ABC):
@abstractmethod
async def delete(self):
pass
| 17.285714 | 50 | 0.68595 | 24 | 242 | 6.916667 | 0.541667 | 0.307229 | 0.26506 | 0.301205 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.235537 | 242 | 13 | 51 | 18.615385 | 0.897297 | 0 | 0 | 0.444444 | 0 | 0 | 0.078512 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0.222222 | 0.111111 | 0 | 0.333333 | 0 | 1 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
ffd2a46e6ffad741f9eff5635ad8ca5ac8c5916e | 31 | py | Python | ma_gym/envs/pong_duel/__init__.py | prasuchit/ma-gym | 1b2e76452f3e124aa2b049a78fc4f9eaa383e986 | [
"Apache-2.0"
] | 310 | 2019-08-17T21:27:36.000Z | 2022-03-28T16:47:21.000Z | ma_gym/envs/pong_duel/__init__.py | prasuchit/ma-gym | 1b2e76452f3e124aa2b049a78fc4f9eaa383e986 | [
"Apache-2.0"
] | 26 | 2019-08-25T16:31:56.000Z | 2022-03-31T17:50:30.000Z | ma_gym/envs/pong_duel/__init__.py | nekoaruku/ma-gym | 1c94623571cb81298e8515c99fef70a2fee5df3d | [
"Apache-2.0"
] | 63 | 2019-08-20T11:59:24.000Z | 2022-03-06T17:35:50.000Z | from .pong_duel import PongDuel | 31 | 31 | 0.870968 | 5 | 31 | 5.2 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.096774 | 31 | 1 | 31 | 31 | 0.928571 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
fff8913976f1573531ef1043ab166832d3f4f2c8 | 171 | py | Python | bci_learning_studio/session/__init__.py | hellomoto-ai/bci-learning-studio | f37256bd0e2d85590ff258f14d70f09afcd9609f | [
"MIT"
] | null | null | null | bci_learning_studio/session/__init__.py | hellomoto-ai/bci-learning-studio | f37256bd0e2d85590ff258f14d70f09afcd9609f | [
"MIT"
] | 13 | 2018-11-28T05:00:00.000Z | 2019-01-07T04:06:37.000Z | bci_learning_studio/session/__init__.py | hellomoto-ai/bci-learning-studio | f37256bd0e2d85590ff258f14d70f09afcd9609f | [
"MIT"
] | null | null | null | __all__ = [
'cursor_control',
'device_manager',
]
from .cursor_control.main import main as cursor_control
from .device_manager.main import main as device_manager
| 21.375 | 55 | 0.766082 | 23 | 171 | 5.26087 | 0.391304 | 0.322314 | 0.231405 | 0.264463 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 171 | 7 | 56 | 24.428571 | 0.840278 | 0 | 0 | 0 | 0 | 0 | 0.163743 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.333333 | 0 | 0.333333 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
0848fcb367bd393ec725bacaad8b8738f8a5f9ea | 119 | wsgi | Python | opengamedata.wsgi | opengamedata/opengamedata-server | 985a4d54d2d7bcc463ad43f4f74a6551cbc7092c | [
"MIT"
] | null | null | null | opengamedata.wsgi | opengamedata/opengamedata-server | 985a4d54d2d7bcc463ad43f4f74a6551cbc7092c | [
"MIT"
] | null | null | null | opengamedata.wsgi | opengamedata/opengamedata-server | 985a4d54d2d7bcc463ad43f4f74a6551cbc7092c | [
"MIT"
] | null | null | null | import sys
if not "/var/www/wsgi-bin" in sys.path:
sys.path.append("/var/www/wsgi-bin")
from app import application | 29.75 | 40 | 0.722689 | 22 | 119 | 3.909091 | 0.636364 | 0.139535 | 0.232558 | 0.302326 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.12605 | 119 | 4 | 41 | 29.75 | 0.826923 | 0 | 0 | 0 | 0 | 0 | 0.283333 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 6 |
f2691bc9957f62a762820e665e66b4da85dc4771 | 112 | py | Python | core/corefgraph/__init__.py | malv007/coreference-base | 5fe41dda0da83a37a01220f8f0552a336f2294ef | [
"Apache-2.0"
] | 13 | 2015-08-07T13:14:17.000Z | 2021-11-08T10:33:51.000Z | core/corefgraph/__init__.py | malv007/coreference-base | 5fe41dda0da83a37a01220f8f0552a336f2294ef | [
"Apache-2.0"
] | null | null | null | core/corefgraph/__init__.py | malv007/coreference-base | 5fe41dda0da83a37a01220f8f0552a336f2294ef | [
"Apache-2.0"
] | 6 | 2015-02-10T17:00:35.000Z | 2021-08-04T17:46:13.000Z | # coding=utf-8
__author__ = 'Josu Bermudez <josu.bermudez@deusto.es>, Rodrigo Agerri <rodrigo.agerri@ehu.es>'
| 22.4 | 94 | 0.741071 | 16 | 112 | 4.9375 | 0.6875 | 0.303797 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.01 | 0.107143 | 112 | 4 | 95 | 28 | 0.78 | 0.107143 | 0 | 0 | 0 | 1 | 0.814433 | 0.505155 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
f2b272109c96ee5b983faef7c8b4ca461b6c88aa | 4,213 | py | Python | tests/components/mazda/test_binary_sensor.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 30,023 | 2016-04-13T10:17:53.000Z | 2020-03-02T12:56:31.000Z | tests/components/mazda/test_binary_sensor.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 24,710 | 2016-04-13T08:27:26.000Z | 2020-03-02T12:59:13.000Z | tests/components/mazda/test_binary_sensor.py | MrDelik/core | 93a66cc357b226389967668441000498a10453bb | [
"Apache-2.0"
] | 11,956 | 2016-04-13T18:42:31.000Z | 2020-03-02T09:32:12.000Z | """The binary sensor tests for the Mazda Connected Services integration."""
from homeassistant.components.binary_sensor import BinarySensorDeviceClass
from homeassistant.const import ATTR_DEVICE_CLASS, ATTR_FRIENDLY_NAME, ATTR_ICON
from homeassistant.helpers import entity_registry as er
from . import init_integration
async def test_binary_sensors(hass):
"""Test creation of the binary sensors."""
await init_integration(hass)
entity_registry = er.async_get(hass)
# Driver Door
state = hass.states.get("binary_sensor.my_mazda3_driver_door")
assert state
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "My Mazda3 Driver Door"
assert state.attributes.get(ATTR_ICON) == "mdi:car-door"
assert state.attributes.get(ATTR_DEVICE_CLASS) == BinarySensorDeviceClass.DOOR
assert state.state == "off"
entry = entity_registry.async_get("binary_sensor.my_mazda3_driver_door")
assert entry
assert entry.unique_id == "JM000000000000000_driver_door"
# Passenger Door
state = hass.states.get("binary_sensor.my_mazda3_passenger_door")
assert state
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "My Mazda3 Passenger Door"
assert state.attributes.get(ATTR_ICON) == "mdi:car-door"
assert state.attributes.get(ATTR_DEVICE_CLASS) == BinarySensorDeviceClass.DOOR
assert state.state == "on"
entry = entity_registry.async_get("binary_sensor.my_mazda3_passenger_door")
assert entry
assert entry.unique_id == "JM000000000000000_passenger_door"
# Rear Left Door
state = hass.states.get("binary_sensor.my_mazda3_rear_left_door")
assert state
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "My Mazda3 Rear Left Door"
assert state.attributes.get(ATTR_ICON) == "mdi:car-door"
assert state.attributes.get(ATTR_DEVICE_CLASS) == BinarySensorDeviceClass.DOOR
assert state.state == "off"
entry = entity_registry.async_get("binary_sensor.my_mazda3_rear_left_door")
assert entry
assert entry.unique_id == "JM000000000000000_rear_left_door"
# Rear Right Door
state = hass.states.get("binary_sensor.my_mazda3_rear_right_door")
assert state
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "My Mazda3 Rear Right Door"
assert state.attributes.get(ATTR_ICON) == "mdi:car-door"
assert state.attributes.get(ATTR_DEVICE_CLASS) == BinarySensorDeviceClass.DOOR
assert state.state == "off"
entry = entity_registry.async_get("binary_sensor.my_mazda3_rear_right_door")
assert entry
assert entry.unique_id == "JM000000000000000_rear_right_door"
# Trunk
state = hass.states.get("binary_sensor.my_mazda3_trunk")
assert state
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "My Mazda3 Trunk"
assert state.attributes.get(ATTR_ICON) == "mdi:car-back"
assert state.attributes.get(ATTR_DEVICE_CLASS) == BinarySensorDeviceClass.DOOR
assert state.state == "off"
entry = entity_registry.async_get("binary_sensor.my_mazda3_trunk")
assert entry
assert entry.unique_id == "JM000000000000000_trunk"
# Hood
state = hass.states.get("binary_sensor.my_mazda3_hood")
assert state
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "My Mazda3 Hood"
assert state.attributes.get(ATTR_ICON) == "mdi:car"
assert state.attributes.get(ATTR_DEVICE_CLASS) == BinarySensorDeviceClass.DOOR
assert state.state == "on"
entry = entity_registry.async_get("binary_sensor.my_mazda3_hood")
assert entry
assert entry.unique_id == "JM000000000000000_hood"
async def test_electric_vehicle_binary_sensors(hass):
"""Test sensors which are specific to electric vehicles."""
await init_integration(hass, electric_vehicle=True)
entity_registry = er.async_get(hass)
# Plugged In
state = hass.states.get("binary_sensor.my_mazda3_plugged_in")
assert state
assert state.attributes.get(ATTR_FRIENDLY_NAME) == "My Mazda3 Plugged In"
assert state.attributes.get(ATTR_DEVICE_CLASS) == BinarySensorDeviceClass.PLUG
assert state.state == "on"
entry = entity_registry.async_get("binary_sensor.my_mazda3_plugged_in")
assert entry
assert entry.unique_id == "JM000000000000000_ev_plugged_in"
| 42.555556 | 82 | 0.75813 | 552 | 4,213 | 5.519928 | 0.128623 | 0.122744 | 0.137841 | 0.157532 | 0.803085 | 0.800131 | 0.773876 | 0.720709 | 0.586807 | 0.51723 | 0 | 0.035117 | 0.14835 | 4,213 | 98 | 83 | 42.989796 | 0.814103 | 0.035604 | 0 | 0.458333 | 0 | 0 | 0.230886 | 0.173165 | 0 | 0 | 0 | 0 | 0.666667 | 1 | 0 | false | 0.055556 | 0.055556 | 0 | 0.055556 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
4b3fd6fe80a01be4af7e83b8432f7485b26280f4 | 23 | py | Python | rpi_electronics/gpio/__init__.py | lab-coding-de/rpi-electronics | e64a9a8e51676c8d05e842e6e0eaaf081a9b15d1 | [
"MIT"
] | null | null | null | rpi_electronics/gpio/__init__.py | lab-coding-de/rpi-electronics | e64a9a8e51676c8d05e842e6e0eaaf081a9b15d1 | [
"MIT"
] | null | null | null | rpi_electronics/gpio/__init__.py | lab-coding-de/rpi-electronics | e64a9a8e51676c8d05e842e6e0eaaf081a9b15d1 | [
"MIT"
] | null | null | null | from .lcd20x4 import *
| 11.5 | 22 | 0.73913 | 3 | 23 | 5.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.157895 | 0.173913 | 23 | 1 | 23 | 23 | 0.736842 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
299e06925cf5c166e729759b7f70718e6f3ee079 | 77 | py | Python | TaichiGAME/collision/algorithm/__init__.py | erizmr/TaichiGAME | db6258d5fd89b4afef9f3944337ed010eb75e246 | [
"MIT"
] | 37 | 2021-12-30T02:03:11.000Z | 2022-03-21T11:37:52.000Z | TaichiGAME/collision/algorithm/__init__.py | maksyuki/TaichiGame | 647d08d3d31b209314ec0dfec5270c565b2f6a61 | [
"MIT"
] | 2 | 2022-01-09T13:04:04.000Z | 2022-01-11T06:47:43.000Z | TaichiGAME/collision/algorithm/__init__.py | maksyuki/TaichiGame | 647d08d3d31b209314ec0dfec5270c565b2f6a61 | [
"MIT"
] | 2 | 2022-01-03T06:52:23.000Z | 2022-01-11T06:31:30.000Z | from .clip import *
from .gjk import *
from .mpr import *
from .sat import *
| 15.4 | 19 | 0.688312 | 12 | 77 | 4.416667 | 0.5 | 0.566038 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.207792 | 77 | 4 | 20 | 19.25 | 0.868852 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
29b608cd08f26837c06e3c1036c1a752ca041b4c | 17 | py | Python | packageupdater.py | adrian-wang/spark-package-maker | 409f5a17c7b6f1bf4e36a78328e72022a2e77304 | [
"Apache-2.0"
] | 2 | 2018-08-15T17:50:04.000Z | 2019-04-27T17:20:37.000Z | packageupdater.py | adrian-wang/spark-package-maker | 409f5a17c7b6f1bf4e36a78328e72022a2e77304 | [
"Apache-2.0"
] | 2 | 2018-06-27T02:34:11.000Z | 2018-08-16T14:51:56.000Z | packageupdater.py | adrian-wang/spark-package-maker | 409f5a17c7b6f1bf4e36a78328e72022a2e77304 | [
"Apache-2.0"
] | null | null | null | a = {1,3,4,6,67}
| 8.5 | 16 | 0.411765 | 6 | 17 | 1.166667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.428571 | 0.176471 | 17 | 1 | 17 | 17 | 0.071429 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
29f853c660095ab4c83f48a73508b046644b98f4 | 46 | py | Python | allennlp/training/__init__.py | unendin/allennlp | 0dcbaea6dbc6cc43e24a3564d6d37f8a1421484c | [
"Apache-2.0"
] | 21 | 2019-03-11T13:39:05.000Z | 2021-11-02T11:43:32.000Z | allennlp/training/__init__.py | unendin/allennlp | 0dcbaea6dbc6cc43e24a3564d6d37f8a1421484c | [
"Apache-2.0"
] | 8 | 2020-01-28T22:40:24.000Z | 2021-08-25T15:30:18.000Z | allennlp/training/__init__.py | unendin/allennlp | 0dcbaea6dbc6cc43e24a3564d6d37f8a1421484c | [
"Apache-2.0"
] | 4 | 2019-11-04T07:21:49.000Z | 2022-03-01T14:59:14.000Z | from allennlp.training.trainer import Trainer
| 23 | 45 | 0.869565 | 6 | 46 | 6.666667 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086957 | 46 | 1 | 46 | 46 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4b017f68705f1408b75489fdf5e4e1e1e79264a2 | 947 | py | Python | IBM Coding Questions in Interview.py | Soumyo-Pandey/Python-Coding-Question-For-Interview | a11ff33957297ea58f5295e94a55653ecce72878 | [
"MIT"
] | null | null | null | IBM Coding Questions in Interview.py | Soumyo-Pandey/Python-Coding-Question-For-Interview | a11ff33957297ea58f5295e94a55653ecce72878 | [
"MIT"
] | null | null | null | IBM Coding Questions in Interview.py | Soumyo-Pandey/Python-Coding-Question-For-Interview | a11ff33957297ea58f5295e94a55653ecce72878 | [
"MIT"
] | null | null | null | ## Find the number of Cells in Excel Sheet.
Que="A10:C8"
p=Que.split(":")
a=p[0][0]
b=p[1][0]
c=p[0][1:]
d=p[1][1:]
if (a == b and c == d):
print("Invalid")
else:
m = abs(int(c)-int(d))+1
n = abs(ord(a)-ord(b))+1
print(m*n)
## Second Code
Que="B10:F20"
p=Que.split(":")
a=p[0][0]
b=p[1][0]
c=p[0][1:]
d=p[1][1:]
if (a == b and c == d):
print("Invalid")
else:
m = abs(int(c)-int(d))+1
n = abs(ord(a)-ord(b))+1
print(m*n)
##Third Program
Que="A1:A2"
p=Que.split(":")
a=p[0][0]
b=p[1][0]
c=p[0][1:]
d=p[1][1:]
if (a == b and c == d):
print("Invalid")
else:
m = abs(int(c)-int(d))+1
n = abs(ord(a)-ord(b))+1
print(m*n)
##Fourth Program
Que="A1:A1"
p=Que.split(":")
a=p[0][0]
b=p[1][0]
c=p[0][1:]
d=p[1][1:]
if (a == b and c == d):
print("Invalid")
else:
m = abs(int(c)-int(d))+1
n = abs(ord(a)-ord(b))+1
print(m*n) | 13.338028 | 44 | 0.454065 | 206 | 947 | 2.087379 | 0.184466 | 0.037209 | 0.083721 | 0.093023 | 0.772093 | 0.772093 | 0.772093 | 0.772093 | 0.772093 | 0.772093 | 0 | 0.072546 | 0.257656 | 947 | 71 | 45 | 13.338028 | 0.539118 | 0.083421 | 0 | 0.916667 | 0 | 0 | 0.06962 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0.166667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
4b0196905e294304a5530ad5eae70f69bb6752c2 | 90 | py | Python | trchime/__init__.py | yatorho/trchime | 503acd1309b6c2e44c1a270266f4479bdcfdd804 | [
"Apache-2.0"
] | null | null | null | trchime/__init__.py | yatorho/trchime | 503acd1309b6c2e44c1a270266f4479bdcfdd804 | [
"Apache-2.0"
] | null | null | null | trchime/__init__.py | yatorho/trchime | 503acd1309b6c2e44c1a270266f4479bdcfdd804 | [
"Apache-2.0"
] | null | null | null | from .core import *
from .core.initial import *
from . import random
from . import nn
| 10 | 27 | 0.7 | 13 | 90 | 4.846154 | 0.461538 | 0.253968 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 90 | 8 | 28 | 11.25 | 0.9 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
4b0917862dfefa0b5941d57da526e2c8f9340f24 | 19,779 | py | Python | model.py | aliborji/ShapeDefence | 92da19bb195b5161d997f6ee1cc777b07a714f6f | [
"MIT"
] | null | null | null | model.py | aliborji/ShapeDefence | 92da19bb195b5161d997f6ee1cc777b07a714f6f | [
"MIT"
] | 1 | 2022-03-12T00:40:21.000Z | 2022-03-12T00:40:21.000Z | model.py | aliborji/ShapeDefense | 92da19bb195b5161d997f6ee1cc777b07a714f6f | [
"MIT"
] | null | null | null | from lib import *
from image_transform import ImageTransform
from config import *
from utils import make_datapath_list, train_model, load_model
from dataset import MyDataset, Dataset_MNIST, Dataset_FashionMNIST, DogsDataset, folderDB, Dataset_CIFAR10
import torch.nn as nn
from torchvision import transforms, datasets, models
from torch.utils.data import Dataset, DataLoader
import pandas as pd
from os.path import isfile, join, abspath, exists, isdir, expanduser
import os
from torch.optim import lr_scheduler
from time import time
def model_dispatcher(whichModel, *argv):
if whichModel.lower() == 'mnist':
net, dataloader_dict, criterior, optimizer = build_model_mnist(argv[0])
elif whichModel.lower() == 'fashionmnist':
net, dataloader_dict, criterior, optimizer = build_model_fashion_mnist(argv[0])
elif whichModel.lower() == 'dogbreeds':
net, dataloader_dict, criterior, optimizer = build_model_dogs(*argv[:3])
elif whichModel.lower() == 'dogvscat':
net, dataloader_dict, criterior, optimizer = build_model_dog_cat(*argv)
elif whichModel.lower() in ['gtsrb', 'icons', 'sketch', 'imagenette', 'tinyimagenet']:
net, dataloader_dict, criterior, optimizer = build_model_resNet(*argv)
elif whichModel.lower() == 'cifar10':
net, dataloader_dict, criterior, optimizer = build_model_resNet_CIFAR10(*argv)
return net, dataloader_dict, criterior, optimizer
# Binary network used for dog vs cat classification
class Net(nn.Module):
def __init__(self, net_type):
super(Net, self).__init__()
if net_type == 'rgb':
self.conv1 = nn.Conv2d(3, 32, 3)
elif net_type == 'edge':
self.conv1 = nn.Conv2d(1, 32, 3)
else: # rgb + edge
self.conv1 = nn.Conv2d(4, 32, 3)
self.conv2 = nn.Conv2d(32, 64, 3)
self.conv3 = nn.Conv2d(64, 128, 3)
self.conv4 = nn.Conv2d(128, 128, 3)
self.dropout = nn.Dropout(p=0.5)
self.fc1 = nn.Linear(128*7*7, 512)
self.fc2 = nn.Linear(512, 2)
def forward(self, x):
x = self.conv1(x)
x = F.relu(x)
x = F.max_pool2d(x, (2, 2))
x = self.conv2(x)
x = F.relu(x)
x = F.max_pool2d(x, (2, 2))
x = self.conv3(x)
x = F.relu(x)
x = F.max_pool2d(x, (2, 2))
x = self.conv4(x)
x = F.relu(x)
x = F.max_pool2d(x, (2, 2))
x = x.view(-1, self.num_flat_features(x))
x = self.dropout(x)
x = F.relu(self.fc1(x))
x = F.softmax(self.fc2(x))
return x
def num_flat_features(self, x):
size = x.size()[1:]
num_features = 1
for s in size:
num_features *= s
return num_features
def build_model_dog_cat(net_type):
# import pdb; pdb.set_trace()
train_list = make_datapath_list("train")
val_list = make_datapath_list("val")
WIDTH = 150
HEIGHT = 150
MEAN = (1./255,1./255,1./255)
STD = (1.0,1.0,1.0)
# Create dataset objects
train_dataset = MyDataset(train_list, ImageTransform((HEIGHT, WIDTH), MEAN, STD), phase='train', net_type=net_type)
val_dataset = MyDataset(val_list, ImageTransform((HEIGHT, WIDTH), MEAN, STD), phase='val', net_type=net_type)
# Create dataloader objects
train_dataloader = torch.utils.data.DataLoader(train_dataset, BATCH_SIZE, shuffle=True)
val_dataloader = torch.utils.data.DataLoader(val_dataset, BATCH_SIZE, shuffle=False)
dataloader_dict = {'train': train_dataloader, 'val': val_dataloader}
# Build model
net = Net(net_type)
print(net)
# Loss
criterior = nn.CrossEntropyLoss()
# Optimizer
params = net.parameters()
# optimizer = optim.RMSprop(params, lr=1e-4)
optimizer = optim.Adam(params, lr=1e-4)
return net, dataloader_dict, criterior, optimizer
# LeNet Model definition
class MNIST_Net(nn.Module):
def __init__(self, net_type):
super(MNIST_Net, self).__init__()
if net_type in ['gray', 'edge']:
self.conv1 = nn.Conv2d(1, 10, kernel_size=5)
else: # gray + edge
self.conv1 = nn.Conv2d(2, 10, kernel_size=5)
self.conv2 = nn.Conv2d(10, 20, kernel_size=5)
self.conv2_drop = nn.Dropout2d()
self.fc1 = nn.Linear(320, 50)
self.fc2 = nn.Linear(50, 10)
def forward(self, x):
x = F.relu(F.max_pool2d(self.conv1(x), 2))
x = F.relu(F.max_pool2d(self.conv2_drop(self.conv2(x)), 2))
x = x.view(-1, 320)
x = F.relu(self.fc1(x))
x = F.dropout(x, training=self.training)
x = self.fc2(x)
return x#F.log_softmax(x, dim=1)
# LeNet Model definition
class MNIST_Net_2CH_INPUT(nn.Module):
def __init__(self, net_type):
super(MNIST_Net, self).__init__()
if net_type in ['gray', 'edge']:
self.conv1 = nn.Conv2d(1, 10, kernel_size=5)
else: # gray + edge
self.conv1 = nn.Conv2d(2, 10, kernel_size=5)
self.conv2 = nn.Conv2d(10, 20, kernel_size=5)
self.conv2_drop = nn.Dropout2d()
self.fc1 = nn.Linear(320, 50)
self.fc2 = nn.Linear(50, 10)
def forward(self, gray, edge):
edge.requires_grad = False
x = torch.cat((gray, edge),dim=0)
x = F.relu(F.max_pool2d(self.conv1(x), 2))
x = F.relu(F.max_pool2d(self.conv2_drop(self.conv2(x)), 2))
x = x.view(-1, 320)
x = F.relu(self.fc1(x))
x = F.dropout(x, training=self.training)
x = self.fc2(x)
return x#F.log_softmax(x, dim=1)
def build_model_mnist(net_type):
# import pdb; pdb.set_trace()
train_list = make_datapath_list("train")
val_list = make_datapath_list("val")
# Create dataset objects
train_dataset = Dataset_MNIST(phase='train', net_type=net_type)
val_dataset = Dataset_MNIST(phase='val', net_type=net_type)
# Create dataloader objects
train_dataloader = torch.utils.data.DataLoader(train_dataset, batch_size=100 , shuffle=True)
val_dataloader = torch.utils.data.DataLoader(val_dataset, batch_size=100, shuffle=False)
dataloader_dict = {'train': train_dataloader, 'val': val_dataloader}
# Build model
net = MNIST_Net(net_type)
print(net)
# Loss
criterior = nn.CrossEntropyLoss()
# Optimizer
params = net.parameters()
# optimizer = optim.RMSprop(params, lr=1e-4)
optimizer = optim.Adam(params, lr=1e-4)
# Training model
# train_model(net, dataloader_dict, criterior, optimizer, NUM_EPOCHS)
return net, dataloader_dict, criterior, optimizer
def build_model_fashion_mnist(net_type):
# import pdb; pdb.set_trace()
train_list = make_datapath_list("train")
val_list = make_datapath_list("val")
# Create dataset objects
train_dataset = Dataset_FashionMNIST(phase='train', net_type=net_type)
val_dataset = Dataset_FashionMNIST(phase='val', net_type=net_type)
# Create dataloader objects
train_dataloader = torch.utils.data.DataLoader(train_dataset, batch_size=100, shuffle=True)
val_dataloader = torch.utils.data.DataLoader(val_dataset, batch_size=100, shuffle=False)
dataloader_dict = {'train': train_dataloader, 'val': val_dataloader}
# Build model
net = MNIST_Net(net_type)
print(net)
# Loss
criterior = nn.CrossEntropyLoss()
# Optimizer
params = net.parameters()
# optimizer = optim.RMSprop(params, lr=1e-4)
optimizer = optim.Adam(params, lr=1e-4)
# Training model
# train_model(net, dataloader_dict, criterior, optimizer, NUM_EPOCHS)
return net, dataloader_dict, criterior, optimizer
def build_model_dogs(net_type, data_dir, inp_size):
INPUT_SIZE = inp_size
NUM_CLASSES = 16
# data_dir = './dog-breed-identification/'
labels = pd.read_csv(osp.join(data_dir, 'labels.csv'))
sample_submission = pd.read_csv(osp.join(data_dir, 'sample_submission.csv'))
print(len(os.listdir(osp.join(data_dir, 'train'))), len(labels))
# import pdb; pdb.set_trace()
selected_breed_list = list(labels.groupby('breed').count().sort_values(by='id', ascending=False).head(NUM_CLASSES).index)
labels = labels[labels['breed'].isin(selected_breed_list)]
labels['target'] = 1
# labels['rank'] = labels.groupby('breed').rank()['id']
labels_pivot = labels.pivot('id', 'breed', 'target').reset_index().fillna(0)
num_train = int(labels_pivot.shape[0]*.8)
train = labels_pivot[:num_train]# .sample(frac=0.8)
valid = labels_pivot[num_train:]
# import pdb; pdb.set_trace()
# train = labels_pivot.sample(frac=0.8)
# valid = labels_pivot[~labels_pivot['id'].isin(train['id'])]
print(train.shape, valid.shape)
normalize = transforms.Normalize(
mean=[0.485, 0.456, 0.406],
std=[0.229, 0.224, 0.225]
)
# ds_trans = transforms.Compose([transforms.Scale(224),
# transforms.CenterCrop(224),
# transforms.ToTensor(),
# normalize])
ds_trans = transforms.Compose([
transforms.Resize((INPUT_SIZE, INPUT_SIZE)),
transforms.ToTensor(),
transforms.Normalize((0.3403, 0.3121, 0.3214),
(0.2724, 0.2608, 0.2669))
])
train_ds = DogsDataset(train, data_dir+'/traincrop/', data_dir+'/traincropedgesobel/', transform=ds_trans, net_type=net_type, inp_size=INPUT_SIZE)
valid_ds = DogsDataset(valid, data_dir+'/traincrop/', data_dir+'/traincropedgesobel/', transform=ds_trans, net_type=net_type, inp_size=INPUT_SIZE)
# test is over the validation set
train_dataloader = DataLoader(train_ds, batch_size=4, shuffle=True, num_workers=4)
val_dataloader = DataLoader(valid_ds, batch_size=4, shuffle=True, num_workers=4)
dataloader_dict = {'train': train_dataloader, 'val': val_dataloader}
# Build model
resnet = models.resnet18(pretrained=False)
# resnet = models.resnet18(pretrained=True)
resnet.load_state_dict(torch.load(data_dir + '/resnet18-5c106cde.pth')) #resnet50-19c8e357.pth'))
# import pdb; pdb.set_trace()
if net_type == 'rgb':
pass
# resnet.conv1 = nn.Conv2d(3, 64, kernel_size=7, stride=2, padding=3, bias=False)
elif net_type == 'edge': # rgb_egde
with torch.no_grad():
new_layer = nn.Conv2d(1, 64, kernel_size=7, stride=2, padding=3, bias=False)
# new_layer.requires_grad = False
new_layer.weight[:,0] = torch.mean(resnet.conv1.weight, 1)#[:,None]
# resnet.conv1.weight = new_layer #nn.Conv2d(1, 64, kernel_size=7, stride=2, padding=3, bias=False)
resnet.conv1 = new_layer
else: # rgb + edge
with torch.no_grad():
new_layer = nn.Conv2d(4, 64, kernel_size=7, stride=2, padding=3, bias=False)
# new_layer.requires_grad = False
new_layer.weight[:,:3] = resnet.conv1.weight.squeeze(1)
new_layer.weight[:,3] = torch.mean(resnet.conv1.weight, 1)#[:,None]
# resnet.conv1.weight = new_layer #nn.Conv2d(1, 64, kernel_size=7, stride=2, padding=3, bias=False)
resnet.conv1 = new_layer
# resnet.conv1 = nn.Conv2d(4, 64, kernel_size=7, stride=2, padding=3, bias=False)
# freeze all model parameters
# for param in resnet.parameters():
# param.requires_grad = False
resnet.conv1.requires_grad = True
# new final layer with 16 classes
num_ftrs = resnet.fc.in_features
resnet.fc = torch.nn.Linear(num_ftrs, NUM_CLASSES)
criterion = torch.nn.CrossEntropyLoss()
# optimizer = torch.optim.SGD([resnet.fc.parameters(), resnet.conv1.weight], lr=0.001, momentum=0.9)
# YOU MAY WANT TO OPTIMIZE ALL PARAMETERS BY USING resnet.parameters()
# optimizer = torch.optim.SGD(list(resnet.fc.parameters()) + list(resnet.conv1.parameters()), lr=0.001, momentum=0.9)
optimizer = torch.optim.SGD(resnet.parameters(), lr=0.001, momentum=0.9)
exp_lr_scheduler = lr_scheduler.StepLR(optimizer, step_size=7, gamma=0.1)
# print(resnet)
print('Model loaded ...')
return resnet, dataloader_dict, criterion, optimizer#, exp_lr_scheduler
def build_model_resNet(net_type, data_dir, inp_size, n_classes):
# import pdb; pdb.set_trace()
INPUT_SIZE = inp_size
NUM_CLASSES = n_classes
transform = transforms.Compose([
transforms.Resize((INPUT_SIZE, INPUT_SIZE)),
transforms.ToTensor(),
transforms.Normalize((0.3403, 0.3121, 0.3214),
(0.2724, 0.2608, 0.2669))
])
trainset = folderDB(
root_dir='.', train=True, transform=transform, net_type=net_type, base_folder=data_dir)
testset = folderDB(
root_dir='.', train=False, transform=transform, net_type=net_type, base_folder=data_dir)
trainloader = torch.utils.data.DataLoader(
trainset, batch_size=128, shuffle=True, num_workers=2)
testloader = torch.utils.data.DataLoader(
testset, batch_size=128, shuffle=False, num_workers=2)
dataloader_dict = {'train': trainloader, 'val': testloader}
# Build model
resnet = models.resnet18(pretrained=True)
# import pdb; pdb.set_trace()
if net_type == 'rgb':
# new_layer = nn.Conv2d(3, 64, kernel_size=7, stride=2, padding=3, bias=False)
# resnet.conv1 = new_layer
pass
# resnet.conv1 = nn.Conv2d(3, 64, kernel_size=7, stride=2, padding=3, bias=False)
elif net_type in ['edge', 'gray']: # rgb_egde
with torch.no_grad():
new_layer = nn.Conv2d(1, 64, kernel_size=7, stride=2, padding=3, bias=False)
# new_layer.requires_grad = False
new_layer.weight[:,0] = torch.mean(resnet.conv1.weight, 1)#[:,None]
# resnet.conv1.weight = new_layer #nn.Conv2d(1, 64, kernel_size=7, stride=2, padding=3, bias=False)
resnet.conv1 = new_layer
elif net_type == 'grayedge': # rgb + edge
with torch.no_grad():
new_layer = nn.Conv2d(2, 64, kernel_size=7, stride=2, padding=3, bias=False)
# new_layer.requires_grad = False
new_layer.weight[:,0] = torch.mean(resnet.conv1.weight, 1)#[:,None]
new_layer.weight[:,1] = torch.mean(resnet.conv1.weight, 1)#[:,None]
# resnet.conv1.weight = new_layer #nn.Conv2d(1, 64, kernel_size=7, stride=2, padding=3, bias=False)
resnet.conv1 = new_layer
else: # rgb + edge
with torch.no_grad():
new_layer = nn.Conv2d(4, 64, kernel_size=7, stride=2, padding=3, bias=False)
# new_layer.requires_grad = False
new_layer.weight[:,:3] = resnet.conv1.weight.squeeze(1)
new_layer.weight[:,3] = torch.mean(resnet.conv1.weight, 1)#[:,None]
# resnet.conv1.weight = new_layer #nn.Conv2d(1, 64, kernel_size=7, stride=2, padding=3, bias=False)
resnet.conv1 = new_layer
# resnet.conv1 = nn.Conv2d(4, 64, kernel_size=7, stride=2, padding=3, bias=False)
# freeze all model parameters
# for param in resnet.parameters():
# param.requires_grad = False
resnet.conv1.requires_grad = True
# new final layer with 16 classes
num_ftrs = resnet.fc.in_features
resnet.fc = torch.nn.Linear(num_ftrs, NUM_CLASSES)
criterion = torch.nn.CrossEntropyLoss()
# optimizer = torch.optim.SGD([resnet.fc.parameters(), resnet.conv1.weight], lr=0.001, momentum=0.9)
optimizer = torch.optim.SGD(resnet.parameters(), lr=0.001, momentum=0.9)
# optimizer = torch.optim.SGD(list(resnet.fc.parameters()) + list(resnet.conv1.parameters()), lr=0.001, momentum=0.9)
exp_lr_scheduler = lr_scheduler.StepLR(optimizer, step_size=7, gamma=0.1)
# print(resnet)
print('Model loaded ...')
return resnet, dataloader_dict, criterion, optimizer#, exp_lr_scheduler
def build_model_resNet_CIFAR10(net_type='rgb', data_dir='', inp_size='32', n_classes=10):
# import pdb; pdb.set_trace()
INPUT_SIZE = inp_size
NUM_CLASSES = 10
transform = transforms.Compose([
transforms.Resize((INPUT_SIZE, INPUT_SIZE)),
transforms.ToTensor(),
transforms.Normalize((0.3403, 0.3121, 0.3214),
(0.2724, 0.2608, 0.2669))
])
# import pdb; pdb.set_trace()
train_list = make_datapath_list("train")
val_list = make_datapath_list("val")
# Create dataset objects
train_dataset = Dataset_CIFAR10(phase='train', net_type=net_type, transform=transform)
val_dataset = Dataset_CIFAR10(phase='val', net_type=net_type, transform=transform)
# Create dataloader objects
train_dataloader = torch.utils.data.DataLoader(train_dataset, batch_size=128, shuffle=True)
val_dataloader = torch.utils.data.DataLoader(val_dataset, batch_size=128, shuffle=False)
dataloader_dict = {'train': train_dataloader, 'val': val_dataloader}
# Build model
resnet = models.resnet18(pretrained=True)
# import pdb; pdb.set_trace()
if net_type == 'rgb':
# new_layer = nn.Conv2d(3, 64, kernel_size=7, stride=2, padding=3, bias=False)
# resnet.conv1 = new_layer
pass
# resnet.conv1 = nn.Conv2d(3, 64, kernel_size=7, stride=2, padding=3, bias=False)
elif net_type in ['edge', 'gray']: # rgb_egde
with torch.no_grad():
new_layer = nn.Conv2d(1, 64, kernel_size=7, stride=2, padding=3, bias=False)
# new_layer.requires_grad = False
new_layer.weight[:,0] = torch.mean(resnet.conv1.weight, 1)#[:,None]
# resnet.conv1.weight = new_layer #nn.Conv2d(1, 64, kernel_size=7, stride=2, padding=3, bias=False)
resnet.conv1 = new_layer
elif net_type == 'grayedge': # rgb + edge
with torch.no_grad():
new_layer = nn.Conv2d(2, 64, kernel_size=7, stride=2, padding=3, bias=False)
# new_layer.requires_grad = False
new_layer.weight[:,0] = torch.mean(resnet.conv1.weight, 1)#[:,None]
new_layer.weight[:,1] = torch.mean(resnet.conv1.weight, 1)#[:,None]
# resnet.conv1.weight = new_layer #nn.Conv2d(1, 64, kernel_size=7, stride=2, padding=3, bias=False)
resnet.conv1 = new_layer
else: # rgb + edge
with torch.no_grad():
new_layer = nn.Conv2d(4, 64, kernel_size=7, stride=2, padding=3, bias=False)
# new_layer.requires_grad = False
new_layer.weight[:,:3] = resnet.conv1.weight.squeeze(1)
new_layer.weight[:,3] = torch.mean(resnet.conv1.weight, 1)#[:,None]
# resnet.conv1.weight = new_layer #nn.Conv2d(1, 64, kernel_size=7, stride=2, padding=3, bias=False)
resnet.conv1 = new_layer
# resnet.conv1 = nn.Conv2d(4, 64, kernel_size=7, stride=2, padding=3, bias=False)
# freeze all model parameters
# for param in resnet.parameters():
# param.requires_grad = False
resnet.conv1.requires_grad = True
# new final layer with 16 classes
num_ftrs = resnet.fc.in_features
resnet.fc = torch.nn.Linear(num_ftrs, NUM_CLASSES)
criterion = torch.nn.CrossEntropyLoss()
# optimizer = torch.optim.SGD([resnet.fc.parameters(), resnet.conv1.weight], lr=0.001, momentum=0.9)
optimizer = torch.optim.SGD(resnet.parameters(), lr=0.001, momentum=0.9)
# optimizer = torch.optim.SGD(list(resnet.fc.parameters()) + list(resnet.conv1.parameters()), lr=0.001, momentum=0.9)
exp_lr_scheduler = lr_scheduler.StepLR(optimizer, step_size=7, gamma=0.1)
# print(resnet)
print('Model loaded ...')
return resnet, dataloader_dict, criterion, optimizer#, exp_lr_scheduler
| 35.069149 | 150 | 0.6425 | 2,715 | 19,779 | 4.507551 | 0.101657 | 0.032031 | 0.023533 | 0.025494 | 0.805524 | 0.782971 | 0.748652 | 0.719725 | 0.707305 | 0.68941 | 0 | 0.047007 | 0.224531 | 19,779 | 563 | 151 | 35.131439 | 0.75088 | 0.242934 | 0 | 0.619048 | 0 | 0 | 0.031347 | 0.002899 | 0 | 0 | 0 | 0 | 0 | 1 | 0.047619 | false | 0.010204 | 0.044218 | 0 | 0.139456 | 0.027211 | 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 | 0 | 0 | 0 | 6 |
d9a83f907a82f5f77382d05ac6fcac696e9728ac | 11,177 | py | Python | neat_panda/_set_operations.py | htp84/neat-panda | 9c60ac467e799e92d9e7099eafc7c8440669288c | [
"MIT"
] | null | null | null | neat_panda/_set_operations.py | htp84/neat-panda | 9c60ac467e799e92d9e7099eafc7c8440669288c | [
"MIT"
] | 3 | 2019-03-18T20:20:25.000Z | 2020-09-24T19:09:15.000Z | neat_panda/_set_operations.py | htp84/neat_panda | 9c60ac467e799e92d9e7099eafc7c8440669288c | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
from typing import Optional, List
from dataclasses import dataclass
import pandas as pd
import pandas_flavor as pf
from ._helpers import control_duplicates, control_value
@pf.register_dataframe_method
def difference(dataframe1, dataframe2) -> pd.DataFrame:
"""The set difference between dataframe1 (S) and dataframe2 (T), i.e. it returns those elements that are in dataframe1
but not in dataframe2. Formally S - T = {s|s ∈ S and s ∉ T}.
If duplicates exists in either dataframe they are dropped and a UserWarning is issued.
Does not alter the original DataFrame.
Parameters
----------
dataframe1 : pd.DataFrame\n
dataframe2 : pd.DataFrame\n
Returns
-------
pandas DataFrame\n
The set difference between dataframe1 and dataframe2
Raises
------
ValueError\n
Raises ValueError if the columns in datframe1 and dataframe2 are not identical.
"""
return SetOperations(dataframe1, dataframe2).difference()
@pf.register_dataframe_method
def symmetric_difference(
dataframe1, dataframe2, dataframe_names: Optional[List[str]] = None
) -> pd.DataFrame:
"""The symmetric set difference between dataframe1 (S) and dataframe2 (T). It is the same as the union of the set difference between
dataframe1 and dataframe2 and the set difference between dataframe2 and dataframe1. Formally A ⊕ B = (A - B) ∪ (B - A).
If duplicates exists in either dataframe they are dropped and a UserWarning is issued.
Does not alter the original DataFrame.
Parameters
----------
dataframe1 : pd.DataFrame\n
dataframe2 : pd.DataFrame\n
dataframe_names : Optional[List[str]], default None\n
The names given in the list is inserted in the returned dataframe in a column called 'original_dataframe'. The purpose
of this column is to make it easier to track differences between the two dataframes.
Returns
-------
pandas DataFrame\n
The set symmetric difference between dataframe1 and dataframe2
Raises
------
ValueError\n
Raises ValueError if the columns in datframe1 and dataframe2 are not identical.
ValueError\n
Raises ValueError if the dataframe_names parameter is used and the length of the passed list is not 2.
Example
-------
```python
import pandas as pd
import neat_panda
print(df1)
country continent year actual
0 Sweden Europe 2018 1
1 Sweden Europe 2019 2
2 Denmark Not known 2018 3
print(df2)
country continent year actual
0 Sweden Europe 2018 1
1 Denmark Not known 2018 3
2 Iceleand Europe 2019 0
df3 = df1.symmetric_difference(df2, dataframe_names=["df1", "df2"])
print(df3)
country continent year actual original_dataframe
0 Sweden Europe 2019 2 df1
1 Denmark Not known 2018 3 df1
2 Sweden Europe 2012 2 df2
3 Finland Scandinavia 2018 3 df2
```
"""
return SetOperations(dataframe1, dataframe2).symmetric_difference(
dataframe_names=dataframe_names
)
@pf.register_dataframe_method
def intersection(dataframe1, dataframe2) -> pd.DataFrame:
"""The set intersection between dataframe1 (S) and dataframe2 (T), i.e. it returns the elements that are both in dataframe1
and dataframe2. Formally S ∩ T = {s|s ∈ S and s ∈ T}.
If duplicates exists in either dataframe they are dropped and a UserWarning is issued.
Does not alter the original DataFrame.
Parameters
----------
dataframe1 : pd.DataFrame\n
dataframe2 : pd.DataFrame\n
Returns
-------
pandas DataFrame\n
The set intersection between dataframe1 and dataframe2
Raises
------
ValueError\n
Raises ValueError if the columns in datframe1 and dataframe2 are not identical.
"""
return SetOperations(dataframe1, dataframe2).intersection()
@pf.register_dataframe_method
def union(dataframe1, dataframe2) -> pd.DataFrame:
"""The set union between dataframe1 (S) and dataframe2 (T), i.e. it returns the elements that are both in dataframe1
and dataframe2. Formally S ∩ T = {s|s ∈ S and s ∈ T}.
If duplicates exists in either dataframe they are dropped and a UserWarning is issued.
Does not alter the original DataFrame.
Syntactic sugar for the pandas dataframe append method.
Parameters
----------
dataframe1 : pd.DataFrame\n
dataframe2 : pd.DataFrame\n
Returns
-------
pandas DataFrame\n
The set difference between dataframe1 and dataframe2
Raises
------
ValueError\n
Raises ValueError if the columns in datframe1 and dataframe2 are not identical.
Example
-------
```python
import panda as pd
import neat_panda
print(df1)
country continent year actual
0 Sweden Europe 2018 1
1 Denmark Not known 2018 3
2 Iceleand Europe 2019 0
print(df2)
country continent year actual
0 Sweden Europe 2020 1
1 Denmark Not known 2020 3
df3 = df1.union(df2)
print(df3)
country continent year actual
0 Sweden Europe 2018 1
1 Denmark Not known 2018 3
2 Iceleand Europe 2019 0
3 Sweden Europe 2020 1
4 Denmark Not known 2020 3
```
"""
return SetOperations(dataframe1, dataframe2).union()
@dataclass
class SetOperations:
dataframe1: pd.DataFrame
dataframe2: pd.DataFrame
@control_value
@control_duplicates
def difference(self) -> pd.DataFrame:
"""The set difference between dataframe1 (S) and dataframe2 (T), i.e. it returns those elements that are in dataframe1
but not in dataframe2. Formally S - T = {s|s ∈ S and s ∉ T}.
If duplicates exists in either dataframe they are dropped and a UserWarning is issued.
Does not alter the original DataFrame.
Parameters
----------
dataframe1 : pd.DataFrame\n
dataframe2 : pd.DataFrame\n
The code is copied from the users WeNYoBen answer to the question "Python Pandas - Find difference between two data
frames" at [StackOverflow](https://stackoverflow.com/questions/48647534/python-pandas-find-difference-between-two-data-frames)
Returns
-------
pandas DataFrame\n
The set difference between dataframe1 and dataframe2
Raises
------
ValueError\n
Raises ValueError if the columns in datframe1 and dataframe2 are not identical.
"""
return pd.concat(
[self.dataframe1, self.dataframe2, self.dataframe2]
).drop_duplicates(keep=False)
@control_value
@control_duplicates
def symmetric_difference(
self, dataframe_names: Optional[List[str]] = None
) -> pd.DataFrame:
"""The symmetric set difference between dataframe1 (S) and dataframe2 (T). It is the same as the union of the set difference between
dataframe1 and dataframe2 and the set difference between dataframe2 and dataframe1. Formally A ⊕ B = (A - B) ∪ (B - A).
If duplicates exists in either dataframe they are dropped and a UserWarning is issued.
Does not alter the original DataFrame.
Parameters
----------
dataframe1 : pd.DataFrame\n
dataframe2 : pd.DataFrame\n
dataframe_names : Optional[List[str]], default None\n
The names given in the list is inserted in the returned dataframe in a column called 'original_dataframe'. The purpose
of this column is to make it easier to track differences between the two dataframes.
Returns
-------
pandas DataFrame\n
The set symmetric difference between dataframe1 and dataframe2
Raises
------
ValueError\n
Raises ValueError if the columns in datframe1 and dataframe2 are not identical.
ValueError\n
Raises ValueError if the dataframe_names parameter is used and the length of the passed list is not 2.
"""
if dataframe_names and len(dataframe_names) != 2:
raise ValueError("Only two dataframe names")
df1 = self.difference()
self._swap_dataframes()
df2 = self.difference()
if dataframe_names:
df1["original_dataframe"] = dataframe_names[0]
df2["original_dataframe"] = dataframe_names[1]
return pd.concat([df1, df2]).reset_index(drop=True)
def _swap_dataframes(self):
temp = self.dataframe1.copy()
self.dataframe1 = self.dataframe2.copy()
self.dataframe2 = temp.copy()
@control_value
@control_duplicates
def intersection(self) -> pd.DataFrame:
"""The set intersection between dataframe1 (S) and dataframe2 (T), i.e. it returns the elements that are both in dataframe1
and dataframe2. Formally S ∩ T = {s|s ∈ S and s ∈ T}.
If duplicates exists in either dataframe they are dropped and a UserWarning is issued.
Does not alter the original DataFrame.
Parameters
----------
dataframe1 : pd.DataFrame\n
dataframe2 : pd.DataFrame\n
Returns
-------
pandas DataFrame\n
The set intersection between dataframe1 and dataframe2
Raises
------
ValueError\n
Raises ValueError if the columns in datframe1 and dataframe2 are not identical.
"""
return self.dataframe1.merge(right=self.dataframe2, how="inner").reset_index(
drop=True
)
@control_value
@control_duplicates
def union(self) -> pd.DataFrame:
"""The set union between dataframe1 (S) and dataframe2 (T), i.e. it returns the elements that are both in dataframe1
and dataframe2. Formally S ∩ T = {s|s ∈ S and s ∈ T}.
If duplicates exists in either dataframe they are dropped and a UserWarning is issued.
Does not alter the original DataFrame.
Syntactic sugar for the pandas dataframe append method.
Parameters
----------
dataframe1 : pd.DataFrame\n
dataframe2 : pd.DataFrame\n
Returns
-------
pandas DataFrame\n
The set difference between dataframe1 and dataframe2
Raises
------
ValueError\n
Raises ValueError if the columns in datframe1 and dataframe2 are not identical.
"""
return self.dataframe1.append(self.dataframe2).reset_index(drop=True)
if __name__ == "__main__":
pass
| 33.364179 | 141 | 0.622797 | 1,345 | 11,177 | 5.144981 | 0.124907 | 0.056358 | 0.027746 | 0.033237 | 0.809538 | 0.759249 | 0.747543 | 0.740607 | 0.727312 | 0.719364 | 0 | 0.034995 | 0.307149 | 11,177 | 334 | 142 | 33.464072 | 0.856018 | 0.656616 | 0 | 0.262295 | 0 | 0 | 0.030685 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.147541 | false | 0.016393 | 0.081967 | 0 | 0.409836 | 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 | 0 | 0 | 0 | 6 |
d9ab3b2b3e98ddd263e5d678aa012cca6160eea6 | 78,707 | py | Python | test/integration/plugins/solidfire/TestSnapshots.py | Codegass/cloudstack | 71056191f2bdad4be1a7eaf9bb73a7dcee3516f2 | [
"Apache-2.0"
] | 1,131 | 2015-01-08T18:59:06.000Z | 2022-03-29T11:31:10.000Z | test/integration/plugins/solidfire/TestSnapshots.py | Codegass/cloudstack | 71056191f2bdad4be1a7eaf9bb73a7dcee3516f2 | [
"Apache-2.0"
] | 5,908 | 2015-01-13T15:28:37.000Z | 2022-03-31T20:31:07.000Z | test/integration/plugins/solidfire/TestSnapshots.py | Codegass/cloudstack | 71056191f2bdad4be1a7eaf9bb73a7dcee3516f2 | [
"Apache-2.0"
] | 1,083 | 2015-01-05T01:16:52.000Z | 2022-03-31T12:14:10.000Z | # Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you 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 logging
import random
import SignedAPICall
import time
from solidfire.factory import ElementFactory
from util import sf_util
# All tests inherit from cloudstackTestCase
from marvin.cloudstackTestCase import cloudstackTestCase
from nose.plugins.attrib import attr
# Import Integration Libraries
# base - contains all resources as entities and defines create, delete, list operations on them
from marvin.lib.base import Account, DiskOffering, ServiceOffering, Snapshot, StoragePool, Template, User, VirtualMachine, Volume
# common - commonly used methods for all tests are listed here
from marvin.lib.common import get_domain, get_template, get_zone, list_volumes, list_snapshots
# utils - utility classes for common cleanup, external library wrappers, etc.
from marvin.lib.utils import cleanup_resources, wait_until
# Prerequisites:
# Only one zone
# Only one pod
# Only one cluster
#
# Running the tests:
# Change the "hypervisor_type" variable to control which hypervisor type to test.
# If using KVM, set the Global Setting "kvm.snapshot.enabled" equal to true.
class TestData():
# constants
account = "account"
capacityBytes = "capacitybytes"
capacityIops = "capacityiops"
clusterId = "clusterId"
computeOffering = "computeoffering"
diskName = "diskname"
diskOffering = "diskoffering"
domainId = "domainId"
hypervisor = "hypervisor"
kvm = "kvm"
mvip = "mvip"
password = "password"
port = "port"
primaryStorage = "primarystorage"
provider = "provider"
scope = "scope"
solidFire = "solidfire"
storageTag = "SolidFire_SAN_1"
tags = "tags"
url = "url"
user = "user"
username = "username"
virtualMachine = "virtualmachine"
vmWare = "vmware"
volume_1 = "volume_1"
volume_2 = "volume_2"
xenServer = "xenserver"
zoneId = "zoneId"
# modify to control which hypervisor type to test
hypervisor_type = xenServer
def __init__(self):
self.testdata = {
TestData.solidFire: {
TestData.mvip: "10.117.78.225",
TestData.username: "admin",
TestData.password: "admin",
TestData.port: 443,
TestData.url: "https://10.117.78.225:443"
},
TestData.primaryStorage: {
"name": "SolidFire-%d" % random.randint(0, 100),
TestData.scope: "ZONE",
"url": "MVIP=10.117.78.225;SVIP=10.117.94.225;" +
"clusterAdminUsername=admin;clusterAdminPassword=admin;" +
"clusterDefaultMinIops=10000;clusterDefaultMaxIops=15000;" +
"clusterDefaultBurstIopsPercentOfMaxIops=1.5;",
TestData.provider: "SolidFire",
TestData.tags: TestData.storageTag,
TestData.capacityIops: 4500000,
TestData.capacityBytes: 2251799813685248,
TestData.hypervisor: "Any"
},
TestData.account: {
"email": "test@test.com",
"firstname": "John",
"lastname": "Doe",
"username": "test",
"password": "test"
},
TestData.user: {
"email": "user@test.com",
"firstname": "Jane",
"lastname": "Doe",
TestData.username: "testuser",
TestData.password: "password"
},
TestData.virtualMachine: {
"name": "TestVM",
"displayname": "Test VM"
},
TestData.computeOffering: {
"name": "SF_CO_1",
"displaytext": "SF_CO_1 (Min IOPS = 10,000; Max IOPS = 15,000)",
"cpunumber": 1,
"cpuspeed": 100,
"memory": 128,
"storagetype": "shared",
"customizediops": False,
"miniops": "10000",
"maxiops": "15000",
"hypervisorsnapshotreserve": 200,
"tags": "SolidFire_SAN_1"
},
TestData.diskOffering: {
"name": "SF_DO_1",
"displaytext": "SF_DO_1 (Min IOPS = 300; Max IOPS = 500)",
"disksize": 128,
"customizediops": False,
"miniops": 300,
"maxiops": 500,
"hypervisorsnapshotreserve": 200,
TestData.tags: TestData.storageTag,
"storagetype": "shared"
},
TestData.volume_1: {
TestData.diskName: "test-volume",
},
TestData.volume_2: {
TestData.diskName: "test-volume-2",
},
TestData.zoneId: 1,
TestData.domainId: 1,
TestData.url: "10.117.40.114"
}
class TestSnapshots(cloudstackTestCase):
_should_be_zero_volume_access_groups_in_list_err_msg = "There shouldn't be any volume access groups in this list."
_should_be_zero_snapshots_in_list_err_msg = "There shouldn't be any snapshots in this list."
_should_only_be_one_snapshot_in_list_err_msg = "There should only be one snapshot in this list."
_should_be_two_snapshots_in_list_err_msg = "There should be two snapshots in this list."
_should_be_three_snapshots_in_list_err_msg = "There should be three snapshots in this list."
_should_be_zero_volumes_in_list_err_msg = "There shouldn't be any volumes in this list."
_should_only_be_one_volume_in_list_err_msg = "There should only be one volume in this list."
_should_be_two_volumes_in_list_err_msg = "There should be two volumes in this list."
_should_be_three_volumes_in_list_err_msg = "There should be three volumes in this list."
_should_be_four_volumes_in_list_err_msg = "There should be four volumes in this list."
_should_be_five_volumes_in_list_err_msg = "There should be five volumes in this list."
_should_be_six_volumes_in_list_err_msg = "There should be six volumes in this list."
_should_be_seven_volumes_in_list_err_msg = "There should be seven volumes in this list."
_should_be_five_items_in_list_err_msg = "There should be five items in this list."
_should_be_six_items_in_list_err_msg = "There should be six items in this list."
_should_be_seven_items_in_list_err_msg = "There should be seven items in this list."
_sf_account_id_should_be_non_zero_int_err_msg = "The SolidFire account ID should be a non-zero integer."
@classmethod
def setUpClass(cls):
# Set up API client
testclient = super(TestSnapshots, cls).getClsTestClient()
cls.apiClient = testclient.getApiClient()
cls.configData = testclient.getParsedTestDataConfig()
cls.dbConnection = testclient.getDbConnection()
cls.testdata = TestData().testdata
# Set up SolidFire connection
solidfire = cls.testdata[TestData.solidFire]
cls.sfe = ElementFactory.create(solidfire[TestData.mvip], solidfire[TestData.username], solidfire[TestData.password])
# Get Resources from Cloud Infrastructure
cls.zone = get_zone(cls.apiClient, zone_id=cls.testdata[TestData.zoneId])
cls.template = get_template(cls.apiClient, cls.zone.id, hypervisor=TestData.hypervisor_type)
cls.domain = get_domain(cls.apiClient, cls.testdata[TestData.domainId])
# Create test account
cls.account = Account.create(
cls.apiClient,
cls.testdata["account"],
admin=1
)
# Set up connection to make customized API calls
cls.user = User.create(
cls.apiClient,
cls.testdata["user"],
account=cls.account.name,
domainid=cls.domain.id
)
url = cls.testdata[TestData.url]
api_url = "http://" + url + ":8080/client/api"
userkeys = User.registerUserKeys(cls.apiClient, cls.user.id)
cls.cs_api = SignedAPICall.CloudStack(api_url, userkeys.apikey, userkeys.secretkey)
primarystorage = cls.testdata[TestData.primaryStorage]
cls.primary_storage = StoragePool.create(
cls.apiClient,
primarystorage,
scope=primarystorage[TestData.scope],
zoneid=cls.zone.id,
provider=primarystorage[TestData.provider],
tags=primarystorage[TestData.tags],
capacityiops=primarystorage[TestData.capacityIops],
capacitybytes=primarystorage[TestData.capacityBytes],
hypervisor=primarystorage[TestData.hypervisor]
)
cls.compute_offering = ServiceOffering.create(
cls.apiClient,
cls.testdata[TestData.computeOffering]
)
cls.disk_offering = DiskOffering.create(
cls.apiClient,
cls.testdata[TestData.diskOffering]
)
# Resources that are to be destroyed
cls._cleanup = [
cls.compute_offering,
cls.disk_offering,
cls.user,
cls.account
]
@classmethod
def tearDownClass(cls):
try:
cleanup_resources(cls.apiClient, cls._cleanup)
cls.primary_storage.delete(cls.apiClient)
sf_util.purge_solidfire_volumes(cls.sfe)
except Exception as e:
logging.debug("Exception in tearDownClass(cls): %s" % e)
def setUp(self):
self.cleanup = []
def tearDown(self):
cleanup_resources(self.apiClient, self.cleanup)
def test_01_create_volume_snapshot_using_sf_snapshot(self):
if TestData.hypervisor_type == TestData.xenServer:
sf_util.set_supports_resign(True, self.dbConnection)
virtual_machine = VirtualMachine.create(
self.apiClient,
self.testdata[TestData.virtualMachine],
accountid=self.account.name,
zoneid=self.zone.id,
serviceofferingid=self.compute_offering.id,
templateid=self.template.id,
domainid=self.domain.id,
startvm=True
)
list_volumes_response = list_volumes(
self.apiClient,
virtualmachineid=virtual_machine.id,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vm_1_root_volume = list_volumes_response[0]
vm_1_root_volume_name = vm_1_root_volume.name
sf_account_id = sf_util.get_sf_account_id(self.cs_api, self.account.id, self.primary_storage.id, self, TestSnapshots._sf_account_id_should_be_non_zero_int_err_msg)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots = self.sfe.list_snapshots(volume_id=sf_volume.volume_id).snapshots
sf_util.check_list(sf_snapshots, 0, self, TestSnapshots._should_be_zero_snapshots_in_list_err_msg)
primary_storage_db_id = self._get_cs_storage_pool_db_id(self.primary_storage)
vol_snap_1 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 1, TestSnapshots._should_only_be_one_snapshot_in_list_err_msg)
vol_snap_2 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 2, TestSnapshots._should_be_two_snapshots_in_list_err_msg)
vol_snap_3 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 3, TestSnapshots._should_be_three_snapshots_in_list_err_msg)
self._delete_and_test_snapshot(vol_snap_2)
self._delete_and_test_snapshot(vol_snap_1)
self._delete_and_test_snapshot(vol_snap_3)
vol_snap_1 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 1, TestSnapshots._should_only_be_one_snapshot_in_list_err_msg)
vol_snap_2 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 2, TestSnapshots._should_be_two_snapshots_in_list_err_msg)
virtual_machine.delete(self.apiClient, True)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
self._delete_and_test_snapshot(vol_snap_1)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
self._delete_and_test_snapshot(vol_snap_2)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 0, self, TestSnapshots._should_be_zero_volumes_in_list_err_msg)
virtual_machine = VirtualMachine.create(
self.apiClient,
self.testdata[TestData.virtualMachine],
accountid=self.account.name,
zoneid=self.zone.id,
serviceofferingid=self.compute_offering.id,
templateid=self.template.id,
domainid=self.domain.id,
startvm=True
)
list_volumes_response = list_volumes(
self.apiClient,
virtualmachineid=virtual_machine.id,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vm_1_root_volume = list_volumes_response[0]
vm_1_root_volume_name = vm_1_root_volume.name
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots = self.sfe.list_snapshots(volume_id=sf_volume.volume_id).snapshots
sf_util.check_list(sf_snapshots, 0, self, TestSnapshots._should_be_zero_snapshots_in_list_err_msg)
vol_snap_1 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 1, TestSnapshots._should_only_be_one_snapshot_in_list_err_msg)
vol_snap_2 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 2, TestSnapshots._should_be_two_snapshots_in_list_err_msg)
vol_snap_3 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 3, TestSnapshots._should_be_three_snapshots_in_list_err_msg)
services = {"displaytext": "Template-1", "name": "Template-1-name", "ostypeid": self.template.ostypeid, "ispublic": "true"}
template = Template.create_from_snapshot(self.apiClient, vol_snap_2, services)
self.cleanup.append(template)
virtual_machine_dict = {"name": "TestVM2", "displayname": "Test VM 2"}
virtual_machine_2 = VirtualMachine.create(
self.apiClient,
virtual_machine_dict,
accountid=self.account.name,
zoneid=self.zone.id,
serviceofferingid=self.compute_offering.id,
templateid=template.id,
domainid=self.domain.id,
startvm=True
)
list_volumes_response = list_volumes(
self.apiClient,
virtualmachineid=virtual_machine_2.id,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vm_2_root_volume = list_volumes_response[0]
vm_2_root_volume_name = vm_2_root_volume.name
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 2, self, TestSnapshots._should_be_two_volumes_in_list_err_msg)
sf_volume_2 = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_2_root_volume_name)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots_2 = self.sfe.list_snapshots(volume_id=sf_volume_2.volume_id).snapshots
sf_util.check_list(sf_snapshots_2, 0, self, TestSnapshots._should_be_zero_snapshots_in_list_err_msg)
vol_snap_a = self._create_and_test_snapshot(vm_2_root_volume, sf_volume_2, primary_storage_db_id, 1, TestSnapshots._should_only_be_one_snapshot_in_list_err_msg)
services = {"diskname": "Vol-1", "zoneid": self.testdata[TestData.zoneId], "ispublic": True}
volume_created_from_snapshot = Volume.create_from_snapshot(self.apiClient, vol_snap_a.id, services, account=self.account.name, domainid=self.domain.id)
volume_created_from_snapshot_name = volume_created_from_snapshot.name
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 3, self, TestSnapshots._should_be_three_volumes_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
sf_volume_2 = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_2_root_volume_name)
sf_volume_3 = sf_util.get_sf_volume_by_name(self, sf_volumes, volume_created_from_snapshot_name)
sf_util.check_list(sf_volume_3.volume_access_groups, 0, self, TestSnapshots._should_be_zero_volume_access_groups_in_list_err_msg)
volume_created_from_snapshot = virtual_machine.attach_volume(
self.apiClient,
volume_created_from_snapshot
)
self._delete_and_test_snapshot(vol_snap_a)
virtual_machine.delete(self.apiClient, True)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 3, self, TestSnapshots._should_be_three_volumes_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
sf_volume_2 = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_2_root_volume_name)
sf_volume_3 = sf_util.get_sf_volume_by_name(self, sf_volumes, volume_created_from_snapshot_name)
volume_created_from_snapshot = virtual_machine_2.attach_volume(
self.apiClient,
volume_created_from_snapshot
)
self._delete_and_test_snapshot(vol_snap_2)
self._delete_and_test_snapshot(vol_snap_3)
self._delete_and_test_snapshot(vol_snap_1)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 2, self, TestSnapshots._should_be_two_volumes_in_list_err_msg)
sf_volume_2 = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_2_root_volume_name)
sf_volume_3 = sf_util.get_sf_volume_by_name(self, sf_volumes, volume_created_from_snapshot_name)
virtual_machine_2.delete(self.apiClient, True)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
sf_volume_3 = sf_util.get_sf_volume_by_name(self, sf_volumes, volume_created_from_snapshot_name)
list_volumes_response = list_volumes(
self.apiClient,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
data_volume = list_volumes_response[0]
data_volume = Volume(data_volume.__dict__)
data_volume.delete(self.apiClient)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 0, self, TestSnapshots._should_be_zero_volumes_in_list_err_msg)
@attr(hypervisor='XenServer')
def test_02_create_volume_snapshot_using_sf_volume(self):
if TestData.hypervisor_type != TestData.xenServer:
return
sf_util.set_supports_resign(False, self.dbConnection)
virtual_machine = VirtualMachine.create(
self.apiClient,
self.testdata[TestData.virtualMachine],
accountid=self.account.name,
zoneid=self.zone.id,
serviceofferingid=self.compute_offering.id,
templateid=self.template.id,
domainid=self.domain.id,
startvm=True
)
list_volumes_response = list_volumes(
self.apiClient,
virtualmachineid=virtual_machine.id,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vm_1_root_volume = list_volumes_response[0]
vm_1_root_volume_name = vm_1_root_volume.name
sf_account_id = sf_util.get_sf_account_id(self.cs_api, self.account.id, self.primary_storage.id, self, TestSnapshots._sf_account_id_should_be_non_zero_int_err_msg)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots = self.sfe.list_snapshots(volume_id=sf_volume.volume_id).snapshots
sf_util.check_list(sf_snapshots, 0, self, TestSnapshots._should_be_zero_snapshots_in_list_err_msg)
primary_storage_db_id = self._get_cs_storage_pool_db_id(self.primary_storage)
sf_volume_id = sf_volume.volume_id
sf_volume_size = sf_volume.total_size
vol_snap_1 = self._create_and_test_snapshot_2(vm_1_root_volume.id, sf_volume_id, sf_volume_id + 1, primary_storage_db_id, sf_volume_size,
sf_account_id, 2, TestSnapshots._should_be_two_volumes_in_list_err_msg)
vol_snap_2 = self._create_and_test_snapshot_2(vm_1_root_volume.id, sf_volume_id, sf_volume_id + 2, primary_storage_db_id, sf_volume_size,
sf_account_id, 3, TestSnapshots._should_be_three_volumes_in_list_err_msg)
vol_snap_3 = self._create_and_test_snapshot_2(vm_1_root_volume.id, sf_volume_id, sf_volume_id + 3, primary_storage_db_id, sf_volume_size,
sf_account_id, 4, TestSnapshots._should_be_four_volumes_in_list_err_msg)
self._delete_and_test_snapshot_2(vol_snap_2, sf_account_id, 3, TestSnapshots._should_be_three_volumes_in_list_err_msg)
self._delete_and_test_snapshot_2(vol_snap_1, sf_account_id, 2, TestSnapshots._should_be_two_volumes_in_list_err_msg)
self._delete_and_test_snapshot_2(vol_snap_3, sf_account_id, 1, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vol_snap_1 = self._create_and_test_snapshot_2(vm_1_root_volume.id, sf_volume_id, sf_volume_id + 4, primary_storage_db_id, sf_volume_size,
sf_account_id, 2, TestSnapshots._should_be_two_volumes_in_list_err_msg)
vol_snap_2 = self._create_and_test_snapshot_2(vm_1_root_volume.id, sf_volume_id, sf_volume_id + 5, primary_storage_db_id, sf_volume_size,
sf_account_id, 3, TestSnapshots._should_be_three_volumes_in_list_err_msg)
virtual_machine.delete(self.apiClient, True)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 2, self, TestSnapshots._should_be_two_volumes_in_list_err_msg)
self._delete_and_test_snapshot_2(vol_snap_1, sf_account_id, 1, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
self._delete_and_test_snapshot_2(vol_snap_2, sf_account_id, 0, TestSnapshots._should_be_zero_volumes_in_list_err_msg)
virtual_machine = VirtualMachine.create(
self.apiClient,
self.testdata[TestData.virtualMachine],
accountid=self.account.name,
zoneid=self.zone.id,
serviceofferingid=self.compute_offering.id,
templateid=self.template.id,
domainid=self.domain.id,
startvm=True
)
list_volumes_response = list_volumes(
self.apiClient,
virtualmachineid=virtual_machine.id,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vm_1_root_volume = list_volumes_response[0]
vm_1_root_volume_name = vm_1_root_volume.name
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots = self.sfe.list_snapshots(volume_id=sf_volume.volume_id).snapshots
sf_util.check_list(sf_snapshots, 0, self, TestSnapshots._should_be_zero_snapshots_in_list_err_msg)
sf_volume_id = sf_volume.volume_id
sf_volume_size = sf_volume.total_size
vol_snap_1 = self._create_and_test_snapshot_2(vm_1_root_volume.id, sf_volume_id, sf_volume_id + 1, primary_storage_db_id, sf_volume_size,
sf_account_id, 2, TestSnapshots._should_be_two_volumes_in_list_err_msg)
vol_snap_2 = self._create_and_test_snapshot_2(vm_1_root_volume.id, sf_volume_id, sf_volume_id + 2, primary_storage_db_id, sf_volume_size,
sf_account_id, 3, TestSnapshots._should_be_three_volumes_in_list_err_msg)
vol_snap_3 = self._create_and_test_snapshot_2(vm_1_root_volume.id, sf_volume_id, sf_volume_id + 3, primary_storage_db_id, sf_volume_size,
sf_account_id, 4, TestSnapshots._should_be_four_volumes_in_list_err_msg)
services = {"displaytext": "Template-1", "name": "Template-1-name", "ostypeid": self.template.ostypeid, "ispublic": "true"}
template = Template.create_from_snapshot(self.apiClient, vol_snap_2, services)
self.cleanup.append(template)
virtual_machine_dict = {"name": "TestVM2", "displayname": "Test VM 2"}
virtual_machine_2 = VirtualMachine.create(
self.apiClient,
virtual_machine_dict,
accountid=self.account.name,
zoneid=self.zone.id,
serviceofferingid=self.compute_offering.id,
templateid=template.id,
domainid=self.domain.id,
startvm=True
)
list_volumes_response = list_volumes(
self.apiClient,
virtualmachineid=virtual_machine_2.id,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vm_2_root_volume = list_volumes_response[0]
vm_2_root_volume_name = vm_2_root_volume.name
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 5, self, TestSnapshots._should_be_five_volumes_in_list_err_msg)
sf_volume_2 = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_2_root_volume_name)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots_2 = self.sfe.list_snapshots(volume_id=sf_volume_2.volume_id).snapshots
sf_util.check_list(sf_snapshots_2, 0, self, TestSnapshots._should_be_zero_snapshots_in_list_err_msg)
sf_volume_id_2 = sf_volume_2.volume_id
sf_volume_size_2 = sf_volume_2.total_size
vol_snap_a = self._create_and_test_snapshot_2(vm_2_root_volume.id, sf_volume_id_2, sf_volume_id + 5, primary_storage_db_id, sf_volume_size_2,
sf_account_id, 6, TestSnapshots._should_be_six_volumes_in_list_err_msg)
services = {"diskname": "Vol-1", "zoneid": self.testdata[TestData.zoneId], "ispublic": True}
volume_created_from_snapshot = Volume.create_from_snapshot(self.apiClient, vol_snap_a.id, services, account=self.account.name, domainid=self.domain.id)
volume_created_from_snapshot_name = volume_created_from_snapshot.name
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 7, self, TestSnapshots._should_be_seven_volumes_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
sf_volume_2 = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_2_root_volume_name)
sf_volume_3 = sf_util.get_sf_volume_by_name(self, sf_volumes, volume_created_from_snapshot_name)
sf_util.check_list(sf_volume_3.volume_access_groups, 0, self, TestSnapshots._should_be_zero_volume_access_groups_in_list_err_msg)
volume_created_from_snapshot = virtual_machine.attach_volume(
self.apiClient,
volume_created_from_snapshot
)
self._delete_and_test_snapshot_2(vol_snap_a, sf_account_id, 6, TestSnapshots._should_be_six_volumes_in_list_err_msg)
virtual_machine.delete(self.apiClient, True)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 5, self, TestSnapshots._should_be_five_volumes_in_list_err_msg)
sf_volume_2 = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_2_root_volume_name)
sf_volume_3 = sf_util.get_sf_volume_by_name(self, sf_volumes, volume_created_from_snapshot_name)
volume_created_from_snapshot = virtual_machine_2.attach_volume(
self.apiClient,
volume_created_from_snapshot
)
self._delete_and_test_snapshot_2(vol_snap_2, sf_account_id, 4, TestSnapshots._should_be_four_volumes_in_list_err_msg)
self._delete_and_test_snapshot_2(vol_snap_3, sf_account_id, 3, TestSnapshots._should_be_three_volumes_in_list_err_msg)
self._delete_and_test_snapshot_2(vol_snap_1, sf_account_id, 2, TestSnapshots._should_be_two_volumes_in_list_err_msg)
virtual_machine_2.delete(self.apiClient, True)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
list_volumes_response = list_volumes(
self.apiClient,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
data_volume = list_volumes_response[0]
data_volume = Volume(data_volume.__dict__)
data_volume.delete(self.apiClient)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 0, self, TestSnapshots._should_be_zero_volumes_in_list_err_msg)
virtual_machine = VirtualMachine.create(
self.apiClient,
self.testdata[TestData.virtualMachine],
accountid=self.account.name,
zoneid=self.zone.id,
serviceofferingid=self.compute_offering.id,
templateid=template.id,
domainid=self.domain.id,
startvm=True
)
list_volumes_response = list_volumes(
self.apiClient,
virtualmachineid=virtual_machine.id,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vm_1_root_volume = list_volumes_response[0]
vm_1_root_volume_name = vm_1_root_volume.name
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
time.sleep(60)
virtual_machine.stop(self.apiClient, True)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
sf_volume_id = sf_volume.volume_id
sf_volume_size = sf_volume.total_size
vol_snap_1 = self._create_and_test_snapshot_2(vm_1_root_volume.id, sf_volume_id, sf_volume_id + 1, primary_storage_db_id, sf_volume_size,
sf_account_id, 2, TestSnapshots._should_be_two_volumes_in_list_err_msg)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 2, self, TestSnapshots._should_be_two_volumes_in_list_err_msg)
services = {"diskname": "Vol-1", "zoneid": self.testdata[TestData.zoneId], "ispublic": True}
volume_created_from_snapshot = Volume.create_from_snapshot(self.apiClient, vol_snap_1.id, services, account=self.account.name, domainid=self.domain.id)
volume_created_from_snapshot_name = volume_created_from_snapshot.name
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 3, self, TestSnapshots._should_be_three_volumes_in_list_err_msg)
sf_volume_2 = sf_util.get_sf_volume_by_name(self, sf_volumes, volume_created_from_snapshot_name)
sf_util.check_list(sf_volume_2.volume_access_groups, 0, self, TestSnapshots._should_be_zero_volume_access_groups_in_list_err_msg)
volume_created_from_snapshot = virtual_machine.attach_volume(
self.apiClient,
volume_created_from_snapshot
)
sf_volume_id_2 = sf_volume_2.volume_id
sf_volume_size_2 = sf_volume_2.total_size
vol_snap_a = self._create_and_test_snapshot_2(volume_created_from_snapshot.id, sf_volume_id_2, sf_volume_id + 3, primary_storage_db_id, sf_volume_size_2,
sf_account_id, 4, TestSnapshots._should_be_four_volumes_in_list_err_msg)
self._delete_and_test_snapshot_2(vol_snap_1, sf_account_id, 3, TestSnapshots._should_be_three_volumes_in_list_err_msg)
self._delete_and_test_snapshot_2(vol_snap_a, sf_account_id, 2, TestSnapshots._should_be_two_volumes_in_list_err_msg)
virtual_machine.delete(self.apiClient, True)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
list_volumes_response = list_volumes(
self.apiClient,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vol_snap_a = self._create_and_test_snapshot_2(volume_created_from_snapshot.id, sf_volume_id_2, sf_volume_id + 4, primary_storage_db_id, sf_volume_size_2,
sf_account_id, 2, TestSnapshots._should_be_two_volumes_in_list_err_msg)
data_volume = list_volumes_response[0]
data_volume = Volume(data_volume.__dict__)
data_volume.delete(self.apiClient)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
list_volumes_response = list_volumes(
self.apiClient,
listall=True
)
self.assertEqual(
list_volumes_response,
None,
"'list_volumes_response' should be equal to 'None'."
)
self._delete_and_test_snapshot_2(vol_snap_a, sf_account_id, 0, TestSnapshots._should_be_zero_volumes_in_list_err_msg)
@attr(hypervisor='XenServer')
def test_03_create_volume_snapshot_using_sf_volume_and_sf_snapshot(self):
if TestData.hypervisor_type != TestData.xenServer:
return
sf_util.set_supports_resign(False, self.dbConnection)
virtual_machine = VirtualMachine.create(
self.apiClient,
self.testdata[TestData.virtualMachine],
accountid=self.account.name,
zoneid=self.zone.id,
serviceofferingid=self.compute_offering.id,
templateid=self.template.id,
domainid=self.domain.id,
startvm=True
)
list_volumes_response = list_volumes(
self.apiClient,
virtualmachineid=virtual_machine.id,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vm_1_root_volume = list_volumes_response[0]
vm_1_root_volume_name = vm_1_root_volume.name
sf_account_id = sf_util.get_sf_account_id(self.cs_api, self.account.id, self.primary_storage.id, self, TestSnapshots._sf_account_id_should_be_non_zero_int_err_msg)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots = self.sfe.list_snapshots(volume_id=sf_volume.volume_id).snapshots
sf_util.check_list(sf_snapshots, 0, self, TestSnapshots._should_be_zero_snapshots_in_list_err_msg)
primary_storage_db_id = self._get_cs_storage_pool_db_id(self.primary_storage)
sf_volume_id = sf_volume.volume_id
sf_volume_size = sf_volume.total_size
vol_snap_1 = self._create_and_test_snapshot_2(vm_1_root_volume.id, sf_volume_id, sf_volume_id + 1, primary_storage_db_id, sf_volume_size,
sf_account_id, 2, TestSnapshots._should_be_two_volumes_in_list_err_msg)
vol_snap_2 = self._create_and_test_snapshot_2(vm_1_root_volume.id, sf_volume_id, sf_volume_id + 2, primary_storage_db_id, sf_volume_size,
sf_account_id, 3, TestSnapshots._should_be_three_volumes_in_list_err_msg)
sf_util.set_supports_resign(True, self.dbConnection)
vol_snap_a = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 1, TestSnapshots._should_only_be_one_snapshot_in_list_err_msg)
vol_snap_b = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 2, TestSnapshots._should_be_two_snapshots_in_list_err_msg)
services = {"displaytext": "Template-1", "name": "Template-1-name", "ostypeid": self.template.ostypeid, "ispublic": "true"}
template_1 = Template.create_from_snapshot(self.apiClient, vol_snap_1, services)
self.cleanup.append(template_1)
virtual_machine_dict = {"name": "TestVM2", "displayname": "Test VM 2"}
virtual_machine_2 = VirtualMachine.create(
self.apiClient,
virtual_machine_dict,
accountid=self.account.name,
zoneid=self.zone.id,
serviceofferingid=self.compute_offering.id,
templateid=template_1.id,
domainid=self.domain.id,
startvm=True
)
list_volumes_response = list_volumes(
self.apiClient,
virtualmachineid=virtual_machine_2.id,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vm_2_root_volume = list_volumes_response[0]
vm_2_root_volume_name = vm_2_root_volume.name
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 4, self, TestSnapshots._should_be_four_volumes_in_list_err_msg)
sf_volume_2 = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_2_root_volume_name)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots = self.sfe.list_snapshots(volume_id=sf_volume_2.volume_id).snapshots
sf_util.check_list(sf_snapshots, 0, self, TestSnapshots._should_be_zero_snapshots_in_list_err_msg)
services = {"diskname": "Vol-1", "zoneid": self.testdata[TestData.zoneId], "ispublic": True}
volume_created_from_snapshot_1 = Volume.create_from_snapshot(self.apiClient, vol_snap_2.id, services, account=self.account.name, domainid=self.domain.id)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 5, self, TestSnapshots._should_be_five_volumes_in_list_err_msg)
volume_created_from_snapshot_1 = virtual_machine_2.attach_volume(
self.apiClient,
volume_created_from_snapshot_1
)
services = {"displaytext": "Template-A", "name": "Template-A-name", "ostypeid": self.template.ostypeid, "ispublic": "true"}
template_a = Template.create_from_snapshot(self.apiClient, vol_snap_a, services)
self.cleanup.append(template_a)
virtual_machine_dict = {"name": "TestVM3", "displayname": "Test VM 3"}
virtual_machine_3 = VirtualMachine.create(
self.apiClient,
virtual_machine_dict,
accountid=self.account.name,
zoneid=self.zone.id,
serviceofferingid=self.compute_offering.id,
templateid=template_a.id,
domainid=self.domain.id,
startvm=True
)
list_volumes_response = list_volumes(
self.apiClient,
virtualmachineid=virtual_machine_3.id,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vm_3_root_volume = list_volumes_response[0]
vm_3_root_volume_name = vm_3_root_volume.name
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 6, self, TestSnapshots._should_be_six_volumes_in_list_err_msg)
sf_volume_3 = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_3_root_volume_name)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots = self.sfe.list_snapshots(volume_id=sf_volume_3.volume_id).snapshots
sf_util.check_list(sf_snapshots, 0, self, TestSnapshots._should_be_zero_snapshots_in_list_err_msg)
services = {"diskname": "Vol-A", "zoneid": self.testdata[TestData.zoneId], "ispublic": True}
volume_created_from_snapshot_a = Volume.create_from_snapshot(self.apiClient, vol_snap_b.id, services, account=self.account.name, domainid=self.domain.id)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 7, self, TestSnapshots._should_be_seven_volumes_in_list_err_msg)
volume_created_from_snapshot_a = virtual_machine_3.attach_volume(
self.apiClient,
volume_created_from_snapshot_a
)
virtual_machine.delete(self.apiClient, True)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
# should still be 7 volumes because the SolidFire volume for the root disk of the VM just destroyed
# is still needed for the SolidFire snapshots
sf_util.check_list(sf_volumes, 7, self, TestSnapshots._should_be_seven_volumes_in_list_err_msg)
virtual_machine_2.delete(self.apiClient, True)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 6, self, TestSnapshots._should_be_six_volumes_in_list_err_msg)
virtual_machine_3.delete(self.apiClient, True)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 5, self, TestSnapshots._should_be_five_volumes_in_list_err_msg)
data_volume = Volume(volume_created_from_snapshot_a.__dict__)
data_volume.delete(self.apiClient)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 4, self, TestSnapshots._should_be_four_volumes_in_list_err_msg)
data_volume = Volume(volume_created_from_snapshot_1.__dict__)
data_volume.delete(self.apiClient)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 3, self, TestSnapshots._should_be_three_volumes_in_list_err_msg)
self._delete_and_test_snapshot_2(vol_snap_1, sf_account_id, 2, TestSnapshots._should_be_two_volumes_in_list_err_msg)
self._delete_and_test_snapshot(vol_snap_b)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
# should still be 2 volumes because the SolidFire volume for the root disk of the VM just destroyed
# is still needed for the SolidFire snapshots
sf_util.check_list(sf_volumes, 2, self, TestSnapshots._should_be_two_volumes_in_list_err_msg)
self._delete_and_test_snapshot(vol_snap_a)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
self._delete_and_test_snapshot_2(vol_snap_2, sf_account_id, 0, TestSnapshots._should_be_zero_volumes_in_list_err_msg)
@attr(hypervisor='XenServer')
def test_04_create_volume_snapshot_using_sf_snapshot_and_archiving(self):
if TestData.hypervisor_type != TestData.xenServer:
return
sf_util.set_supports_resign(True, self.dbConnection)
virtual_machine = VirtualMachine.create(
self.apiClient,
self.testdata[TestData.virtualMachine],
accountid=self.account.name,
zoneid=self.zone.id,
serviceofferingid=self.compute_offering.id,
templateid=self.template.id,
domainid=self.domain.id,
startvm=True
)
list_volumes_response = list_volumes(
self.apiClient,
virtualmachineid=virtual_machine.id,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vm_1_root_volume = list_volumes_response[0]
vm_1_root_volume_name = vm_1_root_volume.name
sf_account_id = sf_util.get_sf_account_id(self.cs_api, self.account.id, self.primary_storage.id, self, TestSnapshots._sf_account_id_should_be_non_zero_int_err_msg)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots = self.sfe.list_snapshots(volume_id=sf_volume.volume_id).snapshots
sf_util.check_list(sf_snapshots, 0, self, TestSnapshots._should_be_zero_snapshots_in_list_err_msg)
primary_storage_db_id = self._get_cs_storage_pool_db_id(self.primary_storage)
vol_snap_1_archive = self._create_and_test_archive_snapshot(vm_1_root_volume.id, sf_volume)
vol_snap_2 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 1, TestSnapshots._should_only_be_one_snapshot_in_list_err_msg)
vol_snap_3_archive = self._create_and_test_archive_snapshot(vm_1_root_volume.id, sf_volume)
vol_snap_4 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 2, TestSnapshots._should_be_two_snapshots_in_list_err_msg)
self._delete_and_test_archive_snapshot(vol_snap_3_archive)
self._delete_and_test_snapshot(vol_snap_2)
self._delete_and_test_snapshot(vol_snap_4)
self._delete_and_test_archive_snapshot(vol_snap_1_archive)
vol_snap_1_archive = self._create_and_test_archive_snapshot(vm_1_root_volume.id, sf_volume)
vol_snap_2 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 1, TestSnapshots._should_only_be_one_snapshot_in_list_err_msg)
virtual_machine.delete(self.apiClient, True)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
self._delete_and_test_archive_snapshot(vol_snap_1_archive)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
self._delete_and_test_snapshot(vol_snap_2)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 0, self, TestSnapshots._should_be_zero_volumes_in_list_err_msg)
virtual_machine = VirtualMachine.create(
self.apiClient,
self.testdata[TestData.virtualMachine],
accountid=self.account.name,
zoneid=self.zone.id,
serviceofferingid=self.compute_offering.id,
templateid=self.template.id,
domainid=self.domain.id,
startvm=True
)
list_volumes_response = list_volumes(
self.apiClient,
virtualmachineid=virtual_machine.id,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vm_1_root_volume = list_volumes_response[0]
vm_1_root_volume_name = vm_1_root_volume.name
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots = self.sfe.list_snapshots(volume_id=sf_volume.volume_id).snapshots
sf_util.check_list(sf_snapshots, 0, self, TestSnapshots._should_be_zero_snapshots_in_list_err_msg)
vol_snap_1 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 1, TestSnapshots._should_only_be_one_snapshot_in_list_err_msg)
vol_snap_2_archive = self._create_and_test_archive_snapshot(vm_1_root_volume.id, sf_volume)
vol_snap_3 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 2, TestSnapshots._should_be_two_snapshots_in_list_err_msg)
vol_snap_4_archive = self._create_and_test_archive_snapshot(vm_1_root_volume.id, sf_volume)
services = {"displaytext": "Template-1", "name": "Template-1-name", "ostypeid": self.template.ostypeid, "ispublic": "true"}
template = Template.create_from_snapshot(self.apiClient, vol_snap_2_archive, services)
self.cleanup.append(template)
virtual_machine_dict = {"name": "TestVM2", "displayname": "Test VM 2"}
virtual_machine_2 = VirtualMachine.create(
self.apiClient,
virtual_machine_dict,
accountid=self.account.name,
zoneid=self.zone.id,
serviceofferingid=self.compute_offering.id,
templateid=template.id,
domainid=self.domain.id,
startvm=True
)
list_volumes_response = list_volumes(
self.apiClient,
virtualmachineid=virtual_machine_2.id,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vm_2_root_volume = list_volumes_response[0]
vm_2_root_volume_name = vm_2_root_volume.name
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 2, self, TestSnapshots._should_be_two_volumes_in_list_err_msg)
sf_volume_2 = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_2_root_volume_name)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots_2 = self.sfe.list_snapshots(volume_id=sf_volume_2.volume_id).snapshots
sf_util.check_list(sf_snapshots_2, 0, self, TestSnapshots._should_be_zero_snapshots_in_list_err_msg)
vol_snap_a_archive = self._create_and_test_archive_snapshot(vm_2_root_volume.id, sf_volume_2)
services = {"diskname": "Vol-1", "zoneid": self.testdata[TestData.zoneId], "ispublic": True}
volume_created_from_snapshot = Volume.create_from_snapshot(self.apiClient, vol_snap_a_archive.id, services, account=self.account.name, domainid=self.domain.id)
volume_created_from_snapshot_name = volume_created_from_snapshot.name
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 3, self, TestSnapshots._should_be_three_volumes_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
sf_volume_2 = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_2_root_volume_name)
sf_volume_3 = sf_util.get_sf_volume_by_name(self, sf_volumes, volume_created_from_snapshot_name)
sf_util.check_list(sf_volume_3.volume_access_groups, 0, self, TestSnapshots._should_be_zero_volume_access_groups_in_list_err_msg)
volume_created_from_snapshot = virtual_machine.attach_volume(
self.apiClient,
volume_created_from_snapshot
)
self._delete_and_test_archive_snapshot(vol_snap_a_archive)
virtual_machine.delete(self.apiClient, True)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 3, self, TestSnapshots._should_be_three_volumes_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
sf_volume_2 = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_2_root_volume_name)
sf_volume_3 = sf_util.get_sf_volume_by_name(self, sf_volumes, volume_created_from_snapshot_name)
volume_created_from_snapshot = virtual_machine_2.attach_volume(
self.apiClient,
volume_created_from_snapshot
)
self._delete_and_test_archive_snapshot(vol_snap_4_archive)
self._delete_and_test_snapshot(vol_snap_1)
self._delete_and_test_archive_snapshot(vol_snap_2_archive)
self._delete_and_test_snapshot(vol_snap_3)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 2, self, TestSnapshots._should_be_two_volumes_in_list_err_msg)
sf_volume_2 = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_2_root_volume_name)
sf_volume_3 = sf_util.get_sf_volume_by_name(self, sf_volumes, volume_created_from_snapshot_name)
virtual_machine_2.delete(self.apiClient, True)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
sf_volume_3 = sf_util.get_sf_volume_by_name(self, sf_volumes, volume_created_from_snapshot_name)
list_volumes_response = list_volumes(
self.apiClient,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
data_volume = list_volumes_response[0]
data_volume = Volume(data_volume.__dict__)
data_volume.delete(self.apiClient)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 0, self, TestSnapshots._should_be_zero_volumes_in_list_err_msg)
def test_05_create_volume_snapshot_using_sf_snapshot_and_revert_volume_to_snapshot(self):
if TestData.hypervisor_type != TestData.vmWare and TestData.hypervisor_type != TestData.kvm:
return
virtual_machine = VirtualMachine.create(
self.apiClient,
self.testdata[TestData.virtualMachine],
accountid=self.account.name,
zoneid=self.zone.id,
serviceofferingid=self.compute_offering.id,
templateid=self.template.id,
domainid=self.domain.id,
startvm=True
)
list_volumes_response = list_volumes(
self.apiClient,
virtualmachineid=virtual_machine.id,
listall=True
)
sf_util.check_list(list_volumes_response, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
vm_1_root_volume = list_volumes_response[0]
vm_1_root_volume_name = vm_1_root_volume.name
sf_account_id = sf_util.get_sf_account_id(self.cs_api, self.account.id, self.primary_storage.id, self, TestSnapshots._sf_account_id_should_be_non_zero_int_err_msg)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 1, self, TestSnapshots._should_only_be_one_volume_in_list_err_msg)
sf_volume = sf_util.get_sf_volume_by_name(self, sf_volumes, vm_1_root_volume_name)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots = self.sfe.list_snapshots(volume_id=sf_volume.volume_id).snapshots
sf_util.check_list(sf_snapshots, 0, self, TestSnapshots._should_be_zero_snapshots_in_list_err_msg)
primary_storage_db_id = self._get_cs_storage_pool_db_id(self.primary_storage)
vol_snap_1 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 1, TestSnapshots._should_only_be_one_snapshot_in_list_err_msg)
vol_snap_2 = self._create_and_test_snapshot(vm_1_root_volume, sf_volume, primary_storage_db_id, 2, TestSnapshots._should_be_two_snapshots_in_list_err_msg)
virtual_machine.stop(self.apiClient, False)
if TestData.hypervisor_type == TestData.vmWare:
try:
Volume.revertToSnapshot(self.apiClient, vol_snap_1.id)
self.assertTrue(False, "An exception should have been thrown when trying to revert a volume to a snapshot and the volume is a root disk on VMware.")
except:
pass
else:
Volume.revertToSnapshot(self.apiClient, vol_snap_1.id)
virtual_machine.start(self.apiClient)
try:
Volume.revertToSnapshot(self.apiClient, vol_snap_1.id)
self.assertTrue(False, "An exception should have been thrown when trying to revert a volume to a snapshot and the volume is attached to a running VM.")
except:
pass
services = {"diskname": "Vol-1", "zoneid": self.testdata[TestData.zoneId], "ispublic": True}
volume_created_from_snapshot = Volume.create_from_snapshot(self.apiClient, vol_snap_2.id, services, account=self.account.name, domainid=self.domain.id)
volume_created_from_snapshot_name = volume_created_from_snapshot.name
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, 2, self, TestSnapshots._should_be_two_volumes_in_list_err_msg)
sf_volume_2 = sf_util.get_sf_volume_by_name(self, sf_volumes, volume_created_from_snapshot_name)
self._delete_and_test_snapshot(vol_snap_2)
self._delete_and_test_snapshot(vol_snap_1)
vol_snap_1 = self._create_and_test_snapshot(volume_created_from_snapshot, sf_volume_2, primary_storage_db_id, 1, TestSnapshots._should_only_be_one_snapshot_in_list_err_msg)
vol_snap_2 = self._create_and_test_snapshot(volume_created_from_snapshot, sf_volume_2, primary_storage_db_id, 2, TestSnapshots._should_be_two_snapshots_in_list_err_msg)
volume_created_from_snapshot = virtual_machine.attach_volume(
self.apiClient,
volume_created_from_snapshot
)
virtual_machine.stop(self.apiClient, False)
Volume.revertToSnapshot(self.apiClient, vol_snap_1.id)
virtual_machine.start(self.apiClient)
try:
Volume.revertToSnapshot(self.apiClient, vol_snap_1.id)
self.assertTrue(False, "An exception should have been thrown when trying to revert a volume to a snapshot and the volume is attached to a running VM.")
except:
pass
self._delete_and_test_snapshot(vol_snap_2)
self._delete_and_test_snapshot(vol_snap_1)
virtual_machine.delete(self.apiClient, True)
volume_created_from_snapshot = Volume(volume_created_from_snapshot.__dict__)
volume_created_from_snapshot.delete(self.apiClient)
# used when SolidFire snapshots are being used for CloudStack volume snapshots
def _check_snapshot_details(self, sf_snapshot_details, cs_snapshot_id, volume, sf_volume_id, sf_snapshot_id, storage_pool_id, sf_volume_size):
if TestData.hypervisor_type == TestData.vmWare:
expected_num_details = 7
err_msg = TestSnapshots._should_be_seven_items_in_list_err_msg
else:
expected_num_details = 6
err_msg = TestSnapshots._should_be_six_items_in_list_err_msg
volume_id = sf_util.get_cs_volume_db_id(self.dbConnection, volume)
sf_util.check_list(sf_snapshot_details, expected_num_details, self, err_msg)
self._check_snapshot_detail(sf_snapshot_details, cs_snapshot_id, "takeSnapshot", "true")
self._check_snapshot_detail(sf_snapshot_details, cs_snapshot_id, "volumeId", sf_volume_id)
self._check_snapshot_detail(sf_snapshot_details, cs_snapshot_id, "snapshotId", sf_snapshot_id)
self._check_snapshot_detail(sf_snapshot_details, cs_snapshot_id, "sfStoragePoolId", storage_pool_id)
self._check_snapshot_detail(sf_snapshot_details, cs_snapshot_id, "sfVolumeSize", sf_volume_size)
self._check_snapshot_detail(sf_snapshot_details, cs_snapshot_id, "originalCloudStackVolumeId", volume_id)
if TestData.hypervisor_type == TestData.vmWare:
self._check_snapshot_detail_with(str.endswith, sf_snapshot_details, cs_snapshot_id, "vmdk", ".vmdk")
# used when SolidFire volumes are being used for CloudStack volume snapshots
def _check_snapshot_details_2(self, sf_snapshot_details, cs_snapshot_id, sf_volume_id, storage_pool_id, sf_volume_size):
sf_util.check_list(sf_snapshot_details, 5, self, TestSnapshots._should_be_five_items_in_list_err_msg)
self._check_snapshot_detail(sf_snapshot_details, cs_snapshot_id, "volumeId", sf_volume_id)
self._check_snapshot_detail(sf_snapshot_details, cs_snapshot_id, "sfStoragePoolId", storage_pool_id)
self._check_snapshot_detail(sf_snapshot_details, cs_snapshot_id, "sfVolumeSize", sf_volume_size)
self._check_snapshot_detail_with(str.startswith, sf_snapshot_details, cs_snapshot_id, "iqn", "/iqn.")
self._check_snapshot_detail_size(sf_snapshot_details, cs_snapshot_id, "path", 36)
def _check_snapshot_detail(self, sf_snapshot_details_list, cs_snapshot_id, snapshot_detail_key, snapshot_detail_value):
for sf_snapshot_detail_dict in sf_snapshot_details_list:
if sf_snapshot_detail_dict["volumeSnapshotId"] != cs_snapshot_id:
raise Exception("This snapshot detail does not apply to the expected CloudStack volume snapshot.")
if sf_snapshot_detail_dict["snapshotDetailsName"] == snapshot_detail_key:
if sf_snapshot_detail_dict["snapshotDetailsValue"] == str(snapshot_detail_value):
return
raise Exception("There is a problem with the snapshot details key '" + snapshot_detail_key + "' and value '" + str(snapshot_detail_value) + "'.")
def _check_snapshot_detail_with(self, with_f, sf_snapshot_details_list, cs_snapshot_id, snapshot_detail_key, with_str):
for sf_snapshot_detail_dict in sf_snapshot_details_list:
if sf_snapshot_detail_dict["volumeSnapshotId"] != cs_snapshot_id:
raise Exception("This snapshot detail does not apply to the expected CloudStack volume snapshot.")
if sf_snapshot_detail_dict["snapshotDetailsName"] == snapshot_detail_key:
if with_f(str(sf_snapshot_detail_dict["snapshotDetailsValue"]), with_str):
return
raise Exception("There is a problem with the snapshot details key '" + snapshot_detail_key + "' and 'starts with/ends with' value '" + with_str + "'.")
def _check_snapshot_detail_size(self, sf_snapshot_details_list, cs_snapshot_id, snapshot_detail_key, length):
for sf_snapshot_detail_dict in sf_snapshot_details_list:
if sf_snapshot_detail_dict["volumeSnapshotId"] != cs_snapshot_id:
raise Exception("This snapshot detail does not apply to the expected CloudStack volume snapshot.")
if sf_snapshot_detail_dict["snapshotDetailsName"] == snapshot_detail_key:
if len(sf_snapshot_detail_dict["snapshotDetailsValue"]) == length:
return
raise Exception("There is a problem with the snapshot details key '" + snapshot_detail_key + "' and 'length' value '" + str(length) + "'.")
def _most_recent_sf_snapshot(self, sf_snapshots):
sf_util.check_list_not_empty(self, sf_snapshots)
most_recent_id = 0
sf_snapshot_to_return = None
for sf_snapshot in sf_snapshots:
if (sf_snapshot.snapshot_id > most_recent_id):
sf_snapshot_to_return = sf_snapshot
most_recent_id = sf_snapshot.snapshot_id
if (sf_snapshot_to_return == None):
raise Exception("Unable to find the most recent SolidFire snapshot in the provided list")
return sf_snapshot_to_return
def _get_cs_volume_snapshot_db_id(self, vol_snap):
return sf_util.get_db_id(self.dbConnection, "snapshots", vol_snap)
def _get_cs_storage_pool_db_id(self, storage_pool):
return sf_util.get_db_id(self.dbConnection, "storage_pool", storage_pool)
def _get_sf_volume_by_id(self, sf_volumes, sf_volume_id):
sf_util.check_list_not_empty(self, sf_volumes)
sf_volume = None
for volume in sf_volumes:
if volume.volume_id == sf_volume_id:
sf_volume = volume
break
self.assertNotEqual(
sf_volume,
None,
"The SolidFire volume could not be found in the expected account."
)
return sf_volume
def _get_snapshot_detail(self, sf_snapshot_details_list, key):
for sf_snapshot_detail_dict in sf_snapshot_details_list:
if sf_snapshot_detail_dict["snapshotDetailsName"] == key:
return sf_snapshot_detail_dict["snapshotDetailsValue"]
raise Exception("Unable to find the following snapshot details key: " + key)
def _check_sf_snapshot_does_not_exist(self, sf_snapshots, sf_snapshot_id):
for sf_snapshot in sf_snapshots:
if sf_snapshot.snapshot_id == sf_snapshot:
raise Exception("The following SolidFire snapshot ID should not exist: " + sf_snapshot_id)
def _check_snapshot_details_do_not_exist(self, vol_snap_db_id):
sql_query = "Select count(*) From snapshot_details Where snapshot_id = " + str(vol_snap_db_id)
# make sure you can connect to MySQL: https://teamtreehouse.com/community/cant-connect-remotely-to-mysql-server-with-mysql-workbench
sql_result = self.dbConnection.execute(sql_query)
self.assertEqual(
sql_result[0][0],
0,
"Snapshot details should not exist for the following CloudStack volume snapshot DB ID: " + str(vol_snap_db_id)
)
# used when SolidFire snapshots are being used for CloudStack volume snapshots
def _create_and_test_snapshot(self, volume_for_snapshot, sf_volume, primary_storage_db_id, expected_num_snapshots, snapshot_err_msg):
vol_snap = Snapshot.create(
self.apiClient,
volume_id=volume_for_snapshot.id
)
self._wait_for_snapshot_state(vol_snap.id, Snapshot.BACKED_UP)
sf_volume_id = sf_volume.volume_id
# Get snapshot information for volume from SolidFire cluster
sf_snapshots = self.sfe.list_snapshots(volume_id=sf_volume_id).snapshots
sf_util.check_list(sf_snapshots, expected_num_snapshots, self, snapshot_err_msg)
sf_snapshot = self._most_recent_sf_snapshot(sf_snapshots)
sf_snapshot_details_request = {'snapshotid': vol_snap.id}
sf_snapshot_details_response = self.cs_api.getVolumeSnapshotDetails(sf_snapshot_details_request)
sf_snapshot_details = sf_snapshot_details_response['null'] # 'null' gets me the list that's in the dictionary
vol_snap_db_id = self._get_cs_volume_snapshot_db_id(vol_snap)
self._check_snapshot_details(sf_snapshot_details, vol_snap_db_id, volume_for_snapshot, sf_volume_id, sf_snapshot.snapshot_id, primary_storage_db_id, sf_volume.total_size)
return vol_snap
# used when SolidFire snapshots are being used for CloudStack volume snapshots to create a backup on secondary storage
def _create_and_test_archive_snapshot(self, volume_id_for_snapshot, sf_volume):
sf_volume_id = sf_volume.volume_id
# Get snapshot information for volume from SolidFire cluster
sf_snapshots_orig = self.sfe.list_snapshots(sf_volume_id).snapshots
vol_snap = Snapshot.create(
self.apiClient,
volume_id=volume_id_for_snapshot,
locationtype="secondary"
)
self._wait_for_snapshot_state(vol_snap.id, Snapshot.BACKED_UP)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots = self.sfe.list_snapshots(sf_volume_id).snapshots
sf_util.check_list(sf_snapshots, len(sf_snapshots_orig), self, "A new SolidFire snapshot was detected.")
vol_snap_db_id = self._get_cs_volume_snapshot_db_id(vol_snap)
self._check_snapshot_details_do_not_exist(vol_snap_db_id)
return vol_snap
# used when SolidFire volumes are being used for CloudStack volume snapshots
def _create_and_test_snapshot_2(self, volume_id_for_snapshot, sf_volume_id, sf_volume_id_for_volume_snapshot, primary_storage_db_id, sf_volume_size,
sf_account_id, expected_num_volumes, volume_err_msg):
vol_snap = Snapshot.create(
self.apiClient,
volume_id=volume_id_for_snapshot
)
self._wait_for_snapshot_state(vol_snap.id, Snapshot.BACKED_UP)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots = self.sfe.list_snapshots(volume_id=sf_volume_id).snapshots
sf_util.check_list(sf_snapshots, 0, self, TestSnapshots._should_be_zero_snapshots_in_list_err_msg)
sf_snapshot_details_request = {'snapshotid': vol_snap.id}
sf_snapshot_details_response = self.cs_api.getVolumeSnapshotDetails(sf_snapshot_details_request)
sf_snapshot_details = sf_snapshot_details_response['null'] # 'null' gets me the list that's in the dictionary
vol_snap_db_id = self._get_cs_volume_snapshot_db_id(vol_snap)
self._check_snapshot_details_2(sf_snapshot_details, vol_snap_db_id, sf_volume_id_for_volume_snapshot, primary_storage_db_id, sf_volume_size)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, expected_num_volumes, self, volume_err_msg)
sf_volume_for_snapshot = self._get_sf_volume_by_id(sf_volumes, sf_volume_id_for_volume_snapshot)
sf_util.check_list(sf_volume_for_snapshot.volume_access_groups, 0, self, TestSnapshots._should_be_zero_volume_access_groups_in_list_err_msg)
return vol_snap
def _wait_for_snapshot_state(self, vol_snap_id, snapshot_state):
retry_interval = 10
num_tries = 10
wait_result, return_val = wait_until(retry_interval, num_tries, TestSnapshots._check_snapshot_state, self.apiClient, vol_snap_id, snapshot_state)
if not wait_result:
raise Exception(return_val)
@staticmethod
def _check_snapshot_state(api_client, vol_snap_id, snapshot_state):
volume_snapshot = list_snapshots(
api_client,
id=vol_snap_id,
listall=True
)[0]
if str(volume_snapshot.state).lower() == snapshot_state.lower():
return True, ""
return False, "The snapshot is not in the '" + snapshot_state + "' state. State = " + str(volume_snapshot.state)
# used when SolidFire snapshots are being used for CloudStack volume snapshots
def _delete_and_test_snapshot(self, vol_snap):
vol_snap_id = vol_snap.id
vol_snap_db_id = self._get_cs_volume_snapshot_db_id(vol_snap)
sf_snapshot_details_request = {'snapshotid': vol_snap_id}
sf_snapshot_details_response = self.cs_api.getVolumeSnapshotDetails(sf_snapshot_details_request)
sf_snapshot_details = sf_snapshot_details_response['null'] # 'null' gets me the list that's in the dictionary
sf_volume_id = self._get_snapshot_detail(sf_snapshot_details, "volumeId")
sf_snapshot_id = self._get_snapshot_detail(sf_snapshot_details, "snapshotId")
vol_snap.delete(self.apiClient)
# Get snapshot information for volume from SolidFire cluster
sf_snapshots = self.sfe.list_snapshots(volume_id=sf_volume_id).snapshots
self._check_sf_snapshot_does_not_exist(sf_snapshots, sf_snapshot_id)
self._check_snapshot_details_do_not_exist(vol_snap_db_id)
# used when SolidFire snapshots are being used for CloudStack volume snapshots to create a backup on secondary storage
def _delete_and_test_archive_snapshot(self, vol_snap):
vol_snap.delete(self.apiClient)
# used when SolidFire volumes are being used for CloudStack volume snapshots
def _delete_and_test_snapshot_2(self, vol_snap, sf_account_id, expected_num_volumes, volume_err_msg):
vol_snap_db_id = self._get_cs_volume_snapshot_db_id(vol_snap)
vol_snap.delete(self.apiClient)
self._check_snapshot_details_do_not_exist(vol_snap_db_id)
# Get volume information from SolidFire cluster
sf_volumes = sf_util.get_active_sf_volumes(self.sfe, sf_account_id)
sf_util.check_list(sf_volumes, expected_num_volumes, self, volume_err_msg)
| 44.442123 | 180 | 0.72113 | 10,772 | 78,707 | 4.787319 | 0.042425 | 0.036456 | 0.026702 | 0.035603 | 0.856813 | 0.838139 | 0.815451 | 0.800209 | 0.774031 | 0.767671 | 0 | 0.011083 | 0.210159 | 78,707 | 1,770 | 181 | 44.467232 | 0.818454 | 0.078748 | 0 | 0.628857 | 0 | 0.002722 | 0.059557 | 0.00402 | 0 | 0 | 0 | 0 | 0.005445 | 1 | 0.027223 | false | 0.008167 | 0.009982 | 0.001815 | 0.096189 | 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 | 0 | 0 | 0 | 6 |
8a0577e78f4cc5cf2f1348c743d1663432693569 | 55,421 | py | Python | tests/unit/api_container_test.py | StefanScherer/docker-py | 407dcfd65ba81e8974c3dab5dd9499014e0f8b7f | [
"Apache-2.0"
] | 1 | 2020-12-11T23:19:21.000Z | 2020-12-11T23:19:21.000Z | tests/unit/api_container_test.py | gdyuldin/docker-py | ce2669e3edfe5d3215ba501cc9771fc0ffad680a | [
"Apache-2.0"
] | null | null | null | tests/unit/api_container_test.py | gdyuldin/docker-py | ce2669e3edfe5d3215ba501cc9771fc0ffad680a | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
import datetime
import json
import signal
import docker
from docker.api import APIClient
import pytest
import six
from . import fake_api
from ..helpers import requires_api_version
from .api_test import (
BaseAPIClientTest, url_prefix, fake_request, DEFAULT_TIMEOUT_SECONDS,
fake_inspect_container, url_base
)
try:
from unittest import mock
except ImportError:
import mock
def fake_inspect_container_tty(self, container):
return fake_inspect_container(self, container, tty=True)
class StartContainerTest(BaseAPIClientTest):
def test_start_container(self):
self.client.start(fake_api.FAKE_CONTAINER_ID)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/3cc2351ab11b/start'
assert 'data' not in args[1]
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_start_container_none(self):
with pytest.raises(ValueError) as excinfo:
self.client.start(container=None)
assert str(excinfo.value) == 'Resource ID was not provided'
with pytest.raises(ValueError) as excinfo:
self.client.start(None)
assert str(excinfo.value) == 'Resource ID was not provided'
def test_start_container_regression_573(self):
self.client.start(**{'container': fake_api.FAKE_CONTAINER_ID})
def test_start_container_with_lxc_conf(self):
with pytest.raises(docker.errors.DeprecatedMethod):
self.client.start(
fake_api.FAKE_CONTAINER_ID,
lxc_conf={'lxc.conf.k': 'lxc.conf.value'}
)
def test_start_container_with_lxc_conf_compat(self):
with pytest.raises(docker.errors.DeprecatedMethod):
self.client.start(
fake_api.FAKE_CONTAINER_ID,
lxc_conf=[{'Key': 'lxc.conf.k', 'Value': 'lxc.conf.value'}]
)
def test_start_container_with_binds_ro(self):
with pytest.raises(docker.errors.DeprecatedMethod):
self.client.start(
fake_api.FAKE_CONTAINER_ID, binds={
'/tmp': {
"bind": '/mnt',
"ro": True
}
}
)
def test_start_container_with_binds_rw(self):
with pytest.raises(docker.errors.DeprecatedMethod):
self.client.start(
fake_api.FAKE_CONTAINER_ID, binds={
'/tmp': {"bind": '/mnt', "ro": False}
}
)
def test_start_container_with_port_binds(self):
self.maxDiff = None
with pytest.raises(docker.errors.DeprecatedMethod):
self.client.start(fake_api.FAKE_CONTAINER_ID, port_bindings={
1111: None,
2222: 2222,
'3333/udp': (3333,),
4444: ('127.0.0.1',),
5555: ('127.0.0.1', 5555),
6666: [('127.0.0.1',), ('192.168.0.1',)]
})
def test_start_container_with_links(self):
with pytest.raises(docker.errors.DeprecatedMethod):
self.client.start(
fake_api.FAKE_CONTAINER_ID, links={'path': 'alias'}
)
def test_start_container_with_multiple_links(self):
with pytest.raises(docker.errors.DeprecatedMethod):
self.client.start(
fake_api.FAKE_CONTAINER_ID,
links={
'path1': 'alias1',
'path2': 'alias2'
}
)
def test_start_container_with_links_as_list_of_tuples(self):
with pytest.raises(docker.errors.DeprecatedMethod):
self.client.start(fake_api.FAKE_CONTAINER_ID,
links=[('path', 'alias')])
def test_start_container_privileged(self):
with pytest.raises(docker.errors.DeprecatedMethod):
self.client.start(fake_api.FAKE_CONTAINER_ID, privileged=True)
def test_start_container_with_dict_instead_of_id(self):
self.client.start({'Id': fake_api.FAKE_CONTAINER_ID})
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/3cc2351ab11b/start'
assert 'data' not in args[1]
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
class CreateContainerTest(BaseAPIClientTest):
def test_create_container(self):
self.client.create_container('busybox', 'true')
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data']) == json.loads('''
{"Tty": false, "Image": "busybox", "Cmd": ["true"],
"AttachStdin": false,
"AttachStderr": true, "AttachStdout": true,
"StdinOnce": false,
"OpenStdin": false, "NetworkDisabled": false}
''')
assert args[1]['headers'] == {'Content-Type': 'application/json'}
def test_create_container_with_binds(self):
mount_dest = '/mnt'
self.client.create_container('busybox', ['ls', mount_dest],
volumes=[mount_dest])
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data']) == json.loads('''
{"Tty": false, "Image": "busybox",
"Cmd": ["ls", "/mnt"], "AttachStdin": false,
"Volumes": {"/mnt": {}},
"AttachStderr": true,
"AttachStdout": true, "OpenStdin": false,
"StdinOnce": false,
"NetworkDisabled": false}
''')
assert args[1]['headers'] == {'Content-Type': 'application/json'}
def test_create_container_with_volume_string(self):
mount_dest = '/mnt'
self.client.create_container('busybox', ['ls', mount_dest],
volumes=mount_dest)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data']) == json.loads('''
{"Tty": false, "Image": "busybox",
"Cmd": ["ls", "/mnt"], "AttachStdin": false,
"Volumes": {"/mnt": {}},
"AttachStderr": true,
"AttachStdout": true, "OpenStdin": false,
"StdinOnce": false,
"NetworkDisabled": false}
''')
assert args[1]['headers'] == {'Content-Type': 'application/json'}
def test_create_container_with_ports(self):
self.client.create_container('busybox', 'ls',
ports=[1111, (2222, 'udp'), (3333,)])
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data']) == json.loads('''
{"Tty": false, "Image": "busybox",
"Cmd": ["ls"], "AttachStdin": false,
"ExposedPorts": {
"1111/tcp": {},
"2222/udp": {},
"3333/tcp": {}
},
"AttachStderr": true,
"AttachStdout": true, "OpenStdin": false,
"StdinOnce": false,
"NetworkDisabled": false}
''')
assert args[1]['headers'] == {'Content-Type': 'application/json'}
def test_create_container_with_entrypoint(self):
self.client.create_container('busybox', 'hello',
entrypoint='cowsay entry')
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data']) == json.loads('''
{"Tty": false, "Image": "busybox",
"Cmd": ["hello"], "AttachStdin": false,
"AttachStderr": true,
"AttachStdout": true, "OpenStdin": false,
"StdinOnce": false,
"NetworkDisabled": false,
"Entrypoint": ["cowsay", "entry"]}
''')
assert args[1]['headers'] == {'Content-Type': 'application/json'}
def test_create_container_with_host_config_cpu_shares(self):
self.client.create_container(
'busybox', 'ls', host_config=self.client.create_host_config(
cpu_shares=512
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data']) == json.loads('''
{"Tty": false, "Image": "busybox",
"Cmd": ["ls"], "AttachStdin": false,
"AttachStderr": true,
"AttachStdout": true, "OpenStdin": false,
"StdinOnce": false,
"NetworkDisabled": false,
"HostConfig": {
"CpuShares": 512,
"NetworkMode": "default"
}}
''')
assert args[1]['headers'] == {'Content-Type': 'application/json'}
def test_create_container_with_host_config_cpuset(self):
self.client.create_container(
'busybox', 'ls', host_config=self.client.create_host_config(
cpuset_cpus='0,1'
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data']) == json.loads('''
{"Tty": false, "Image": "busybox",
"Cmd": ["ls"], "AttachStdin": false,
"AttachStderr": true,
"AttachStdout": true, "OpenStdin": false,
"StdinOnce": false,
"NetworkDisabled": false,
"HostConfig": {
"CpusetCpus": "0,1",
"NetworkMode": "default"
}}
''')
assert args[1]['headers'] == {'Content-Type': 'application/json'}
def test_create_container_with_host_config_cpuset_mems(self):
self.client.create_container(
'busybox', 'ls', host_config=self.client.create_host_config(
cpuset_mems='0'
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data']) == json.loads('''
{"Tty": false, "Image": "busybox",
"Cmd": ["ls"], "AttachStdin": false,
"AttachStderr": true,
"AttachStdout": true, "OpenStdin": false,
"StdinOnce": false,
"NetworkDisabled": false,
"HostConfig": {
"CpusetMems": "0",
"NetworkMode": "default"
}}
''')
assert args[1]['headers'] == {'Content-Type': 'application/json'}
def test_create_container_with_cgroup_parent(self):
self.client.create_container(
'busybox', 'ls', host_config=self.client.create_host_config(
cgroup_parent='test'
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
data = json.loads(args[1]['data'])
assert 'HostConfig' in data
assert 'CgroupParent' in data['HostConfig']
assert data['HostConfig']['CgroupParent'] == 'test'
def test_create_container_with_working_dir(self):
self.client.create_container('busybox', 'ls',
working_dir='/root')
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data']) == json.loads('''
{"Tty": false, "Image": "busybox",
"Cmd": ["ls"], "AttachStdin": false,
"AttachStderr": true,
"AttachStdout": true, "OpenStdin": false,
"StdinOnce": false,
"NetworkDisabled": false,
"WorkingDir": "/root"}
''')
assert args[1]['headers'] == {'Content-Type': 'application/json'}
def test_create_container_with_stdin_open(self):
self.client.create_container('busybox', 'true', stdin_open=True)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data']) == json.loads('''
{"Tty": false, "Image": "busybox", "Cmd": ["true"],
"AttachStdin": true,
"AttachStderr": true, "AttachStdout": true,
"StdinOnce": true,
"OpenStdin": true, "NetworkDisabled": false}
''')
assert args[1]['headers'] == {'Content-Type': 'application/json'}
def test_create_named_container(self):
self.client.create_container('busybox', 'true',
name='marisa-kirisame')
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data']) == json.loads('''
{"Tty": false, "Image": "busybox", "Cmd": ["true"],
"AttachStdin": false,
"AttachStderr": true, "AttachStdout": true,
"StdinOnce": false,
"OpenStdin": false, "NetworkDisabled": false}
''')
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['params'] == {'name': 'marisa-kirisame'}
def test_create_container_with_mem_limit_as_int(self):
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
mem_limit=128.0
)
)
args = fake_request.call_args
data = json.loads(args[1]['data'])
assert data['HostConfig']['Memory'] == 128.0
def test_create_container_with_mem_limit_as_string(self):
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
mem_limit='128'
)
)
args = fake_request.call_args
data = json.loads(args[1]['data'])
assert data['HostConfig']['Memory'] == 128.0
def test_create_container_with_mem_limit_as_string_with_k_unit(self):
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
mem_limit='128k'
)
)
args = fake_request.call_args
data = json.loads(args[1]['data'])
assert data['HostConfig']['Memory'] == 128.0 * 1024
def test_create_container_with_mem_limit_as_string_with_m_unit(self):
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
mem_limit='128m'
)
)
args = fake_request.call_args
data = json.loads(args[1]['data'])
assert data['HostConfig']['Memory'] == 128.0 * 1024 * 1024
def test_create_container_with_mem_limit_as_string_with_g_unit(self):
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
mem_limit='128g'
)
)
args = fake_request.call_args
data = json.loads(args[1]['data'])
assert data['HostConfig']['Memory'] == 128.0 * 1024 * 1024 * 1024
def test_create_container_with_mem_limit_as_string_with_wrong_value(self):
with pytest.raises(docker.errors.DockerException):
self.client.create_host_config(mem_limit='128p')
with pytest.raises(docker.errors.DockerException):
self.client.create_host_config(mem_limit='1f28')
def test_create_container_with_lxc_conf(self):
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
lxc_conf={'lxc.conf.k': 'lxc.conf.value'}
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['LxcConf'] = [
{"Value": "lxc.conf.value", "Key": "lxc.conf.k"}
]
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_lxc_conf_compat(self):
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
lxc_conf=[{'Key': 'lxc.conf.k', 'Value': 'lxc.conf.value'}]
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['LxcConf'] = [
{"Value": "lxc.conf.value", "Key": "lxc.conf.k"}
]
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_binds_ro(self):
mount_dest = '/mnt'
mount_origin = '/tmp'
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
binds={mount_origin: {
"bind": mount_dest,
"ro": True
}}
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['Binds'] = ["/tmp:/mnt:ro"]
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_binds_rw(self):
mount_dest = '/mnt'
mount_origin = '/tmp'
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
binds={mount_origin: {
"bind": mount_dest,
"ro": False
}}
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['Binds'] = ["/tmp:/mnt:rw"]
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_binds_mode(self):
mount_dest = '/mnt'
mount_origin = '/tmp'
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
binds={mount_origin: {
"bind": mount_dest,
"mode": "z",
}}
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['Binds'] = ["/tmp:/mnt:z"]
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_binds_mode_and_ro_error(self):
with pytest.raises(ValueError):
mount_dest = '/mnt'
mount_origin = '/tmp'
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
binds={mount_origin: {
"bind": mount_dest,
"mode": "z",
"ro": True,
}}
)
)
def test_create_container_with_binds_list(self):
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
binds=[
"/tmp:/mnt/1:ro",
"/tmp:/mnt/2",
],
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['Binds'] = [
"/tmp:/mnt/1:ro",
"/tmp:/mnt/2",
]
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_port_binds(self):
self.maxDiff = None
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
port_bindings={
1111: None,
2222: 2222,
'3333/udp': (3333,),
4444: ('127.0.0.1',),
5555: ('127.0.0.1', 5555),
6666: [('127.0.0.1',), ('192.168.0.1',)]
}
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
data = json.loads(args[1]['data'])
port_bindings = data['HostConfig']['PortBindings']
assert '1111/tcp' in port_bindings
assert '2222/tcp' in port_bindings
assert '3333/udp' in port_bindings
assert '4444/tcp' in port_bindings
assert '5555/tcp' in port_bindings
assert '6666/tcp' in port_bindings
assert [{"HostPort": "", "HostIp": ""}] == port_bindings['1111/tcp']
assert [
{"HostPort": "2222", "HostIp": ""}
] == port_bindings['2222/tcp']
assert [
{"HostPort": "3333", "HostIp": ""}
] == port_bindings['3333/udp']
assert [
{"HostPort": "", "HostIp": "127.0.0.1"}
] == port_bindings['4444/tcp']
assert [
{"HostPort": "5555", "HostIp": "127.0.0.1"}
] == port_bindings['5555/tcp']
assert len(port_bindings['6666/tcp']) == 2
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_mac_address(self):
expected = "02:42:ac:11:00:0a"
self.client.create_container(
'busybox',
['sleep', '60'],
mac_address=expected
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
data = json.loads(args[1]['data'])
assert data['MacAddress'] == expected
def test_create_container_with_links(self):
link_path = 'path'
alias = 'alias'
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
links={link_path: alias}
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['Links'] = ['path:alias']
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
def test_create_container_with_multiple_links(self):
link_path = 'path'
alias = 'alias'
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
links={
link_path + '1': alias + '1',
link_path + '2': alias + '2'
}
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['Links'] = [
'path1:alias1', 'path2:alias2'
]
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
def test_create_container_with_links_as_list_of_tuples(self):
link_path = 'path'
alias = 'alias'
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
links=[(link_path, alias)]
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['Links'] = ['path:alias']
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
def test_create_container_privileged(self):
self.client.create_container(
'busybox', 'true',
host_config=self.client.create_host_config(privileged=True)
)
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['Privileged'] = True
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_restart_policy(self):
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
restart_policy={
"Name": "always",
"MaximumRetryCount": 0
}
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['RestartPolicy'] = {
"MaximumRetryCount": 0, "Name": "always"
}
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_added_capabilities(self):
self.client.create_container(
'busybox', 'true',
host_config=self.client.create_host_config(cap_add=['MKNOD'])
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['CapAdd'] = ['MKNOD']
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_dropped_capabilities(self):
self.client.create_container(
'busybox', 'true',
host_config=self.client.create_host_config(cap_drop=['MKNOD'])
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['CapDrop'] = ['MKNOD']
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_devices(self):
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
devices=['/dev/sda:/dev/xvda:rwm',
'/dev/sdb:/dev/xvdb',
'/dev/sdc']
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['Devices'] = [
{'CgroupPermissions': 'rwm',
'PathInContainer': '/dev/xvda',
'PathOnHost': '/dev/sda'},
{'CgroupPermissions': 'rwm',
'PathInContainer': '/dev/xvdb',
'PathOnHost': '/dev/sdb'},
{'CgroupPermissions': 'rwm',
'PathInContainer': '/dev/sdc',
'PathOnHost': '/dev/sdc'}
]
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_device_requests(self):
client = APIClient(version='1.40')
fake_api.fake_responses.setdefault(
'{0}/v1.40/containers/create'.format(fake_api.prefix),
fake_api.post_fake_create_container,
)
client.create_container(
'busybox', 'true', host_config=client.create_host_config(
device_requests=[
{
'device_ids': [
'0',
'GPU-3a23c669-1f69-c64e-cf85-44e9b07e7a2a'
]
},
{
'driver': 'nvidia',
'Count': -1,
'capabilities': [
['gpu', 'utility']
],
'options': {
'key': 'value'
}
}
]
)
)
args = fake_request.call_args
assert args[0][1] == url_base + 'v1.40/' + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = client.create_host_config()
expected_payload['HostConfig']['DeviceRequests'] = [
{
'Driver': '',
'Count': 0,
'DeviceIDs': [
'0',
'GPU-3a23c669-1f69-c64e-cf85-44e9b07e7a2a'
],
'Capabilities': [],
'Options': {}
},
{
'Driver': 'nvidia',
'Count': -1,
'DeviceIDs': [],
'Capabilities': [
['gpu', 'utility']
],
'Options': {
'key': 'value'
}
}
]
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers']['Content-Type'] == 'application/json'
assert set(args[1]['headers']) <= {'Content-Type', 'User-Agent'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_labels_dict(self):
labels_dict = {
six.text_type('foo'): six.text_type('1'),
six.text_type('bar'): six.text_type('2'),
}
self.client.create_container(
'busybox', 'true',
labels=labels_dict,
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data'])['Labels'] == labels_dict
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_labels_list(self):
labels_list = [
six.text_type('foo'),
six.text_type('bar'),
]
labels_dict = {
six.text_type('foo'): six.text_type(),
six.text_type('bar'): six.text_type(),
}
self.client.create_container(
'busybox', 'true',
labels=labels_list,
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data'])['Labels'] == labels_dict
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_named_volume(self):
mount_dest = '/mnt'
volume_name = 'name'
self.client.create_container(
'busybox', 'true',
host_config=self.client.create_host_config(
volume_driver='foodriver',
binds={volume_name: {
"bind": mount_dest,
"ro": False
}}),
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['VolumeDriver'] = 'foodriver'
expected_payload['HostConfig']['Binds'] = ["name:/mnt:rw"]
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_stop_signal(self):
self.client.create_container('busybox', 'ls',
stop_signal='SIGINT')
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data']) == json.loads('''
{"Tty": false, "Image": "busybox",
"Cmd": ["ls"], "AttachStdin": false,
"AttachStderr": true,
"AttachStdout": true, "OpenStdin": false,
"StdinOnce": false,
"NetworkDisabled": false,
"StopSignal": "SIGINT"}
''')
assert args[1]['headers'] == {'Content-Type': 'application/json'}
@requires_api_version('1.22')
def test_create_container_with_aliases(self):
self.client.create_container(
'busybox', 'ls',
host_config=self.client.create_host_config(
network_mode='some-network',
),
networking_config=self.client.create_networking_config({
'some-network': self.client.create_endpoint_config(
aliases=['foo', 'bar'],
),
}),
)
args = fake_request.call_args
assert json.loads(args[1]['data']) == json.loads('''
{"Tty": false, "Image": "busybox",
"Cmd": ["ls"], "AttachStdin": false,
"AttachStderr": true,
"AttachStdout": true, "OpenStdin": false,
"StdinOnce": false,
"NetworkDisabled": false,
"HostConfig": {
"NetworkMode": "some-network"
},
"NetworkingConfig": {
"EndpointsConfig": {
"some-network": {"Aliases": ["foo", "bar"]}
}
}}
''')
@requires_api_version('1.22')
def test_create_container_with_tmpfs_list(self):
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
tmpfs=[
"/tmp",
"/mnt:size=3G,uid=100"
]
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['Tmpfs'] = {
"/tmp": "",
"/mnt": "size=3G,uid=100"
}
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
@requires_api_version('1.22')
def test_create_container_with_tmpfs_dict(self):
self.client.create_container(
'busybox', 'true', host_config=self.client.create_host_config(
tmpfs={
"/tmp": "",
"/mnt": "size=3G,uid=100"
}
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['Tmpfs'] = {
"/tmp": "",
"/mnt": "size=3G,uid=100"
}
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
@requires_api_version('1.24')
def test_create_container_with_sysctl(self):
self.client.create_container(
'busybox', 'true',
host_config=self.client.create_host_config(
sysctls={
'net.core.somaxconn': 1024,
'net.ipv4.tcp_syncookies': '0',
}
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
expected_payload = self.base_create_payload()
expected_payload['HostConfig'] = self.client.create_host_config()
expected_payload['HostConfig']['Sysctls'] = {
'net.core.somaxconn': '1024', 'net.ipv4.tcp_syncookies': '0',
}
assert json.loads(args[1]['data']) == expected_payload
assert args[1]['headers'] == {'Content-Type': 'application/json'}
assert args[1]['timeout'] == DEFAULT_TIMEOUT_SECONDS
def test_create_container_with_unicode_envvars(self):
envvars_dict = {
'foo': u'☃',
}
expected = [
u'foo=☃'
]
self.client.create_container(
'busybox', 'true',
environment=envvars_dict,
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data'])['Env'] == expected
@requires_api_version('1.25')
def test_create_container_with_host_config_cpus(self):
self.client.create_container(
'busybox', 'ls', host_config=self.client.create_host_config(
cpu_count=1,
cpu_percent=20,
nano_cpus=1000
)
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/create'
assert json.loads(args[1]['data']) == json.loads('''
{"Tty": false, "Image": "busybox",
"Cmd": ["ls"], "AttachStdin": false,
"AttachStderr": true,
"AttachStdout": true, "OpenStdin": false,
"StdinOnce": false,
"NetworkDisabled": false,
"HostConfig": {
"CpuCount": 1,
"CpuPercent": 20,
"NanoCpus": 1000,
"NetworkMode": "default"
}}
''')
assert args[1]['headers'] == {'Content-Type': 'application/json'}
class ContainerTest(BaseAPIClientTest):
def test_list_containers(self):
self.client.containers(all=True)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/json',
params={
'all': 1,
'since': None,
'size': 0,
'limit': -1,
'trunc_cmd': 0,
'before': None
},
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_resize_container(self):
self.client.resize(
{'Id': fake_api.FAKE_CONTAINER_ID},
height=15,
width=120
)
fake_request.assert_called_with(
'POST',
url_prefix + 'containers/3cc2351ab11b/resize',
params={'h': 15, 'w': 120},
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_rename_container(self):
self.client.rename(
{'Id': fake_api.FAKE_CONTAINER_ID},
name='foobar'
)
fake_request.assert_called_with(
'POST',
url_prefix + 'containers/3cc2351ab11b/rename',
params={'name': 'foobar'},
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_wait(self):
self.client.wait(fake_api.FAKE_CONTAINER_ID)
fake_request.assert_called_with(
'POST',
url_prefix + 'containers/3cc2351ab11b/wait',
timeout=None,
params={}
)
def test_wait_with_dict_instead_of_id(self):
self.client.wait({'Id': fake_api.FAKE_CONTAINER_ID})
fake_request.assert_called_with(
'POST',
url_prefix + 'containers/3cc2351ab11b/wait',
timeout=None,
params={}
)
def test_logs(self):
with mock.patch('docker.api.client.APIClient.inspect_container',
fake_inspect_container):
logs = self.client.logs(fake_api.FAKE_CONTAINER_ID)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/logs',
params={'timestamps': 0, 'follow': 0, 'stderr': 1, 'stdout': 1,
'tail': 'all'},
timeout=DEFAULT_TIMEOUT_SECONDS,
stream=False
)
assert logs == 'Flowering Nights\n(Sakuya Iyazoi)\n'.encode('ascii')
def test_logs_with_dict_instead_of_id(self):
with mock.patch('docker.api.client.APIClient.inspect_container',
fake_inspect_container):
logs = self.client.logs({'Id': fake_api.FAKE_CONTAINER_ID})
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/logs',
params={'timestamps': 0, 'follow': 0, 'stderr': 1, 'stdout': 1,
'tail': 'all'},
timeout=DEFAULT_TIMEOUT_SECONDS,
stream=False
)
assert logs == 'Flowering Nights\n(Sakuya Iyazoi)\n'.encode('ascii')
def test_log_streaming(self):
with mock.patch('docker.api.client.APIClient.inspect_container',
fake_inspect_container):
self.client.logs(fake_api.FAKE_CONTAINER_ID, stream=True,
follow=False)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/logs',
params={'timestamps': 0, 'follow': 0, 'stderr': 1, 'stdout': 1,
'tail': 'all'},
timeout=DEFAULT_TIMEOUT_SECONDS,
stream=True
)
def test_log_following(self):
with mock.patch('docker.api.client.APIClient.inspect_container',
fake_inspect_container):
self.client.logs(fake_api.FAKE_CONTAINER_ID, stream=False,
follow=True)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/logs',
params={'timestamps': 0, 'follow': 1, 'stderr': 1, 'stdout': 1,
'tail': 'all'},
timeout=DEFAULT_TIMEOUT_SECONDS,
stream=False
)
def test_log_following_backwards(self):
with mock.patch('docker.api.client.APIClient.inspect_container',
fake_inspect_container):
self.client.logs(fake_api.FAKE_CONTAINER_ID, stream=True)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/logs',
params={'timestamps': 0, 'follow': 1, 'stderr': 1, 'stdout': 1,
'tail': 'all'},
timeout=DEFAULT_TIMEOUT_SECONDS,
stream=True
)
def test_log_streaming_and_following(self):
with mock.patch('docker.api.client.APIClient.inspect_container',
fake_inspect_container):
self.client.logs(fake_api.FAKE_CONTAINER_ID, stream=True,
follow=True)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/logs',
params={'timestamps': 0, 'follow': 1, 'stderr': 1, 'stdout': 1,
'tail': 'all'},
timeout=DEFAULT_TIMEOUT_SECONDS,
stream=True
)
def test_log_tail(self):
with mock.patch('docker.api.client.APIClient.inspect_container',
fake_inspect_container):
self.client.logs(fake_api.FAKE_CONTAINER_ID, stream=False,
follow=False, tail=10)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/logs',
params={'timestamps': 0, 'follow': 0, 'stderr': 1, 'stdout': 1,
'tail': 10},
timeout=DEFAULT_TIMEOUT_SECONDS,
stream=False
)
def test_log_since(self):
ts = 809222400
with mock.patch('docker.api.client.APIClient.inspect_container',
fake_inspect_container):
self.client.logs(fake_api.FAKE_CONTAINER_ID, stream=False,
follow=False, since=ts)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/logs',
params={'timestamps': 0, 'follow': 0, 'stderr': 1, 'stdout': 1,
'tail': 'all', 'since': ts},
timeout=DEFAULT_TIMEOUT_SECONDS,
stream=False
)
def test_log_since_with_datetime(self):
ts = 809222400
time = datetime.datetime.utcfromtimestamp(ts)
with mock.patch('docker.api.client.APIClient.inspect_container',
fake_inspect_container):
self.client.logs(fake_api.FAKE_CONTAINER_ID, stream=False,
follow=False, since=time)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/logs',
params={'timestamps': 0, 'follow': 0, 'stderr': 1, 'stdout': 1,
'tail': 'all', 'since': ts},
timeout=DEFAULT_TIMEOUT_SECONDS,
stream=False
)
def test_log_since_with_invalid_value_raises_error(self):
with mock.patch('docker.api.client.APIClient.inspect_container',
fake_inspect_container):
with pytest.raises(docker.errors.InvalidArgument):
self.client.logs(fake_api.FAKE_CONTAINER_ID, stream=False,
follow=False, since=42.42)
def test_log_tty(self):
m = mock.Mock()
with mock.patch('docker.api.client.APIClient.inspect_container',
fake_inspect_container_tty):
with mock.patch('docker.api.client.APIClient._stream_raw_result',
m):
self.client.logs(fake_api.FAKE_CONTAINER_ID,
follow=True, stream=True)
assert m.called
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/logs',
params={'timestamps': 0, 'follow': 1, 'stderr': 1, 'stdout': 1,
'tail': 'all'},
timeout=DEFAULT_TIMEOUT_SECONDS,
stream=True
)
def test_diff(self):
self.client.diff(fake_api.FAKE_CONTAINER_ID)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/changes',
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_diff_with_dict_instead_of_id(self):
self.client.diff({'Id': fake_api.FAKE_CONTAINER_ID})
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/changes',
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_port(self):
self.client.port({'Id': fake_api.FAKE_CONTAINER_ID}, 1111)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/json',
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_stop_container(self):
timeout = 2
self.client.stop(fake_api.FAKE_CONTAINER_ID, timeout=timeout)
fake_request.assert_called_with(
'POST',
url_prefix + 'containers/3cc2351ab11b/stop',
params={'t': timeout},
timeout=(DEFAULT_TIMEOUT_SECONDS + timeout)
)
def test_stop_container_with_dict_instead_of_id(self):
timeout = 2
self.client.stop({'Id': fake_api.FAKE_CONTAINER_ID},
timeout=timeout)
fake_request.assert_called_with(
'POST',
url_prefix + 'containers/3cc2351ab11b/stop',
params={'t': timeout},
timeout=(DEFAULT_TIMEOUT_SECONDS + timeout)
)
def test_pause_container(self):
self.client.pause(fake_api.FAKE_CONTAINER_ID)
fake_request.assert_called_with(
'POST',
url_prefix + 'containers/3cc2351ab11b/pause',
timeout=(DEFAULT_TIMEOUT_SECONDS)
)
def test_unpause_container(self):
self.client.unpause(fake_api.FAKE_CONTAINER_ID)
fake_request.assert_called_with(
'POST',
url_prefix + 'containers/3cc2351ab11b/unpause',
timeout=(DEFAULT_TIMEOUT_SECONDS)
)
def test_kill_container(self):
self.client.kill(fake_api.FAKE_CONTAINER_ID)
fake_request.assert_called_with(
'POST',
url_prefix + 'containers/3cc2351ab11b/kill',
params={},
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_kill_container_with_dict_instead_of_id(self):
self.client.kill({'Id': fake_api.FAKE_CONTAINER_ID})
fake_request.assert_called_with(
'POST',
url_prefix + 'containers/3cc2351ab11b/kill',
params={},
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_kill_container_with_signal(self):
self.client.kill(fake_api.FAKE_CONTAINER_ID, signal=signal.SIGTERM)
fake_request.assert_called_with(
'POST',
url_prefix + 'containers/3cc2351ab11b/kill',
params={'signal': signal.SIGTERM},
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_restart_container(self):
self.client.restart(fake_api.FAKE_CONTAINER_ID, timeout=2)
fake_request.assert_called_with(
'POST',
url_prefix + 'containers/3cc2351ab11b/restart',
params={'t': 2},
timeout=(DEFAULT_TIMEOUT_SECONDS + 2)
)
def test_restart_container_with_dict_instead_of_id(self):
self.client.restart({'Id': fake_api.FAKE_CONTAINER_ID}, timeout=2)
fake_request.assert_called_with(
'POST',
url_prefix + 'containers/3cc2351ab11b/restart',
params={'t': 2},
timeout=(DEFAULT_TIMEOUT_SECONDS + 2)
)
def test_remove_container(self):
self.client.remove_container(fake_api.FAKE_CONTAINER_ID)
fake_request.assert_called_with(
'DELETE',
url_prefix + 'containers/3cc2351ab11b',
params={'v': False, 'link': False, 'force': False},
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_remove_container_with_dict_instead_of_id(self):
self.client.remove_container({'Id': fake_api.FAKE_CONTAINER_ID})
fake_request.assert_called_with(
'DELETE',
url_prefix + 'containers/3cc2351ab11b',
params={'v': False, 'link': False, 'force': False},
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_export(self):
self.client.export(fake_api.FAKE_CONTAINER_ID)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/export',
stream=True,
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_export_with_dict_instead_of_id(self):
self.client.export({'Id': fake_api.FAKE_CONTAINER_ID})
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/export',
stream=True,
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_inspect_container(self):
self.client.inspect_container(fake_api.FAKE_CONTAINER_ID)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/json',
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_inspect_container_undefined_id(self):
for arg in None, '', {True: True}:
with pytest.raises(docker.errors.NullResource) as excinfo:
self.client.inspect_container(arg)
assert excinfo.value.args[0] == 'Resource ID was not provided'
def test_container_stats(self):
self.client.stats(fake_api.FAKE_CONTAINER_ID)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/stats',
timeout=60,
stream=True
)
def test_container_top(self):
self.client.top(fake_api.FAKE_CONTAINER_ID)
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/top',
params={},
timeout=DEFAULT_TIMEOUT_SECONDS
)
def test_container_top_with_psargs(self):
self.client.top(fake_api.FAKE_CONTAINER_ID, 'waux')
fake_request.assert_called_with(
'GET',
url_prefix + 'containers/3cc2351ab11b/top',
params={'ps_args': 'waux'},
timeout=DEFAULT_TIMEOUT_SECONDS
)
@requires_api_version('1.22')
def test_container_update(self):
self.client.update_container(
fake_api.FAKE_CONTAINER_ID, mem_limit='2k', cpu_shares=124,
blkio_weight=345
)
args = fake_request.call_args
assert args[0][1] == url_prefix + 'containers/3cc2351ab11b/update'
assert json.loads(args[1]['data']) == {
'Memory': 2 * 1024, 'CpuShares': 124, 'BlkioWeight': 345
}
assert args[1]['headers']['Content-Type'] == 'application/json'
| 36.678359 | 78 | 0.56217 | 5,683 | 55,421 | 5.228225 | 0.065282 | 0.050485 | 0.052235 | 0.049946 | 0.865038 | 0.849152 | 0.824347 | 0.800417 | 0.774468 | 0.759121 | 0 | 0.026322 | 0.308331 | 55,421 | 1,510 | 79 | 36.702649 | 0.748728 | 0.000379 | 0 | 0.585992 | 0 | 0 | 0.226109 | 0.031933 | 0 | 0 | 0 | 0 | 0.15642 | 1 | 0.076265 | false | 0 | 0.010117 | 0.000778 | 0.089494 | 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 | 0 | 0 | 0 | 6 |
8a71fc945070ef40abc9e0e04ee1c960b16a7ecd | 9,978 | py | Python | sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py | beltr0n/azure-sdk-for-python | 2f7fb8bee881b0fc0386a0ad5385755ceedd0453 | [
"MIT"
] | 1 | 2021-04-30T04:44:41.000Z | 2021-04-30T04:44:41.000Z | sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py | beltr0n/azure-sdk-for-python | 2f7fb8bee881b0fc0386a0ad5385755ceedd0453 | [
"MIT"
] | 4 | 2019-04-17T17:57:49.000Z | 2020-04-24T21:11:22.000Z | sdk/communication/azure-communication-identity/tests/test_communication_identity_client_async.py | beltr0n/azure-sdk-for-python | 2f7fb8bee881b0fc0386a0ad5385755ceedd0453 | [
"MIT"
] | 1 | 2019-04-05T18:17:43.000Z | 2019-04-05T18:17:43.000Z | # coding: utf-8
# -------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
import pytest
import datetime
from azure.core.credentials import AccessToken
from azure.communication.identity.aio import CommunicationIdentityClient
from azure.communication.identity import CommunicationTokenScope
from azure.communication.identity._shared.utils import parse_connection_str
from azure_devtools.scenario_tests import RecordingProcessor
from devtools_testutils import ResourceGroupPreparer
from _shared.helper import URIIdentityReplacer
from _shared.asynctestcase import AsyncCommunicationTestCase
from _shared.testcase import BodyReplacerProcessor
from _shared.communication_service_preparer import CommunicationPreparer
from _shared.utils import get_http_logging_policy
from azure.identity import DefaultAzureCredential
class FakeTokenCredential(object):
def __init__(self):
self.token = AccessToken("Fake Token", 0)
def get_token(self, *args):
return self.token
class CommunicationIdentityClientTestAsync(AsyncCommunicationTestCase):
def setUp(self):
super(CommunicationIdentityClientTestAsync, self).setUp()
self.recording_processors.extend([
BodyReplacerProcessor(keys=["id", "token"]),
URIIdentityReplacer()])
@CommunicationPreparer()
async def test_create_user_from_managed_identity(self, communication_connection_string):
endpoint, access_key = parse_connection_str(communication_connection_string)
from devtools_testutils import is_live
if not is_live():
credential = FakeTokenCredential()
else:
credential = DefaultAzureCredential()
identity_client = CommunicationIdentityClient(
endpoint,
credential,
http_logging_policy=get_http_logging_policy()
)
async with identity_client:
user = await identity_client.create_user()
assert user.properties.get('id') is not None
@CommunicationPreparer()
async def test_create_user(self, communication_connection_string):
identity_client = CommunicationIdentityClient.from_connection_string(
communication_connection_string,
http_logging_policy=get_http_logging_policy()
)
async with identity_client:
user = await identity_client.create_user()
assert user.properties.get('id') is not None
@CommunicationPreparer()
async def test_create_user_and_token(self, communication_connection_string):
identity_client = CommunicationIdentityClient.from_connection_string(
communication_connection_string,
http_logging_policy=get_http_logging_policy()
)
async with identity_client:
user, token_response = await identity_client.create_user_and_token(scopes=[CommunicationTokenScope.CHAT])
assert user.properties.get('id') is not None
assert token_response.token is not None
@CommunicationPreparer()
async def test_get_token_from_managed_identity(self, communication_connection_string):
endpoint, access_key = parse_connection_str(communication_connection_string)
from devtools_testutils import is_live
if not is_live():
credential = FakeTokenCredential()
else:
credential = DefaultAzureCredential()
identity_client = CommunicationIdentityClient(
endpoint,
credential,
http_logging_policy=get_http_logging_policy()
)
async with identity_client:
user = await identity_client.create_user()
token_response = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT])
assert user.properties.get('id') is not None
assert token_response.token is not None
@CommunicationPreparer()
async def test_get_token(self, communication_connection_string):
identity_client = CommunicationIdentityClient.from_connection_string(
communication_connection_string,
http_logging_policy=get_http_logging_policy()
)
async with identity_client:
user = await identity_client.create_user()
token_response = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT])
assert user.properties.get('id') is not None
assert token_response.token is not None
@CommunicationPreparer()
async def test_revoke_tokens_from_managed_identity(self, communication_connection_string):
endpoint, access_key = parse_connection_str(communication_connection_string)
from devtools_testutils import is_live
if not is_live():
credential = FakeTokenCredential()
else:
credential = DefaultAzureCredential()
identity_client = CommunicationIdentityClient(
endpoint,
credential,
http_logging_policy=get_http_logging_policy()
)
async with identity_client:
user = await identity_client.create_user()
token_response = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT])
await identity_client.revoke_tokens(user)
assert user.properties.get('id') is not None
assert token_response.token is not None
@CommunicationPreparer()
async def test_revoke_tokens(self, communication_connection_string):
identity_client = CommunicationIdentityClient.from_connection_string(
communication_connection_string,
http_logging_policy=get_http_logging_policy()
)
async with identity_client:
user = await identity_client.create_user()
token_response = await identity_client.get_token(user, scopes=[CommunicationTokenScope.CHAT])
await identity_client.revoke_tokens(user)
assert user.properties.get('id') is not None
assert token_response.token is not None
@CommunicationPreparer()
async def test_delete_user_from_managed_identity(self, communication_connection_string):
endpoint, access_key = parse_connection_str(communication_connection_string)
from devtools_testutils import is_live
if not is_live():
credential = FakeTokenCredential()
else:
credential = DefaultAzureCredential()
identity_client = CommunicationIdentityClient(
endpoint,
credential,
http_logging_policy=get_http_logging_policy()
)
async with identity_client:
user = await identity_client.create_user()
await identity_client.delete_user(user)
assert user.properties.get('id') is not None
@CommunicationPreparer()
async def test_delete_user(self, communication_connection_string):
identity_client = CommunicationIdentityClient.from_connection_string(
communication_connection_string,
http_logging_policy=get_http_logging_policy()
)
async with identity_client:
user = await identity_client.create_user()
await identity_client.delete_user(user)
assert user.properties.get('id') is not None
@CommunicationPreparer()
async def test_create_user_and_token_with_no_scopes(self, communication_connection_string):
identity_client = CommunicationIdentityClient.from_connection_string(
communication_connection_string,
http_logging_policy=get_http_logging_policy()
)
async with identity_client:
with pytest.raises(Exception) as ex:
user, token_response = await identity_client.create_user_and_token(scopes=None)
@CommunicationPreparer()
async def test_delete_user_with_no_user(self, communication_connection_string):
identity_client = CommunicationIdentityClient.from_connection_string(
communication_connection_string,
http_logging_policy=get_http_logging_policy()
)
async with identity_client:
with pytest.raises(Exception) as ex:
await identity_client.delete_user(user=None)
@CommunicationPreparer()
async def test_revoke_tokens_with_no_user(self, communication_connection_string):
identity_client = CommunicationIdentityClient.from_connection_string(
communication_connection_string,
http_logging_policy=get_http_logging_policy()
)
async with identity_client:
with pytest.raises(Exception) as ex:
await identity_client.revoke_tokens(user=None)
@CommunicationPreparer()
async def test_get_token_with_no_user(self, communication_connection_string):
identity_client = CommunicationIdentityClient.from_connection_string(
communication_connection_string,
http_logging_policy=get_http_logging_policy()
)
async with identity_client:
with pytest.raises(Exception) as ex:
token_response = await identity_client.get_token(user=None, scopes=[CommunicationTokenScope.CHAT])
@CommunicationPreparer()
async def test_get_token_with_no_scopes(self, communication_connection_string):
identity_client = CommunicationIdentityClient.from_connection_string(
communication_connection_string,
http_logging_policy=get_http_logging_policy()
)
async with identity_client:
with pytest.raises(Exception) as ex:
user = await identity_client.create_user()
token_response = await identity_client.get_token(user, scopes=None)
| 43.382609 | 117 | 0.705051 | 995 | 9,978 | 6.726633 | 0.112563 | 0.106679 | 0.073659 | 0.044823 | 0.829822 | 0.829822 | 0.819513 | 0.804572 | 0.786493 | 0.7847 | 0 | 0.000258 | 0.223592 | 9,978 | 229 | 118 | 43.572052 | 0.863689 | 0.031369 | 0 | 0.694301 | 0 | 0 | 0.003624 | 0 | 0 | 0 | 0 | 0 | 0.072539 | 1 | 0.015544 | false | 0 | 0.093264 | 0.005181 | 0.124352 | 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 | 0 | 0 | 0 | 6 |
8a831e85f5fb5998aaaf4817aaef2e78765f9f7a | 2,251 | py | Python | gaphor/storage/tests/test_xmlwriter.py | MartinIIOT/gaphor | b08bf6ddb8c92ec87fccabc2ddee697609f73e67 | [
"Apache-2.0"
] | 867 | 2018-01-09T00:19:09.000Z | 2022-03-31T02:49:23.000Z | gaphor/storage/tests/test_xmlwriter.py | burakozturk16/gaphor | 86267a5200ac4439626d35d306dbb376c3800107 | [
"Apache-2.0"
] | 790 | 2018-01-13T23:47:07.000Z | 2022-03-31T16:04:27.000Z | gaphor/storage/tests/test_xmlwriter.py | burakozturk16/gaphor | 86267a5200ac4439626d35d306dbb376c3800107 | [
"Apache-2.0"
] | 117 | 2018-01-09T02:24:49.000Z | 2022-03-23T08:07:42.000Z | import sys
from gaphor.storage.xmlwriter import XMLWriter
class Writer:
def __init__(self):
self.s = ""
def write(self, text):
self.s += text
def test_elements_1():
w = Writer()
xml_w = XMLWriter(w)
xml_w.startDocument()
xml_w.startElement("foo", {})
xml_w.endElement("foo")
xml = """<?xml version="1.0" encoding="%s"?>\n<foo/>""" % sys.getdefaultencoding()
assert w.s == xml, w.s + " != " + xml
def test_elements_2():
w = Writer()
xml_w = XMLWriter(w)
xml_w.startDocument()
xml_w.startElement("foo", {})
xml_w.startElement("bar", {})
xml_w.endElement("bar")
xml_w.endElement("foo")
xml = (
"""<?xml version="1.0" encoding="%s"?>\n<foo>\n<bar/>\n</foo>"""
% sys.getdefaultencoding()
)
assert w.s == xml, w.s
def test_elements_test():
w = Writer()
xml_w = XMLWriter(w)
xml_w.startDocument()
xml_w.startElement("foo", {})
xml_w.startElement("bar", {})
xml_w.characters("hello")
xml_w.endElement("bar")
xml_w.endElement("foo")
xml = (
"""<?xml version="1.0" encoding="%s"?>\n<foo>\n<bar>hello</bar>\n</foo>"""
% sys.getdefaultencoding()
)
assert w.s == xml, w.s
def test_elements_ns_default():
w = Writer()
xml_w = XMLWriter(w)
xml_w.startDocument()
xml_w.startPrefixMapping(None, "http://gaphor.devjavu.com/schema")
xml_w.startElementNS(("http://gaphor.devjavu.com/schema", "foo"), "qn", {})
xml_w.endElementNS(("http://gaphor.devjavu.com/schema", "foo"), "qn")
xml = (
"""<?xml version="1.0" encoding="%s"?>\n<foo xmlns="http://gaphor.devjavu.com/schema"/>"""
% sys.getdefaultencoding()
)
assert w.s == xml, w.s
def test_elements_ns_1():
w = Writer()
xml_w = XMLWriter(w)
xml_w.startDocument()
xml_w.startPrefixMapping("g", "http://gaphor.devjavu.com/schema")
xml_w.startElementNS(("http://gaphor.devjavu.com/schema", "foo"), "qn", {})
xml_w.endElementNS(("http://gaphor.devjavu.com/schema", "foo"), "qn")
xml = (
"""<?xml version="1.0" encoding="%s"?>\n<g:foo xmlns:g="http://gaphor.devjavu.com/schema"/>"""
% sys.getdefaultencoding()
)
assert w.s == xml, w.s
| 26.174419 | 102 | 0.58685 | 301 | 2,251 | 4.245847 | 0.152824 | 0.100156 | 0.106416 | 0.125196 | 0.855243 | 0.855243 | 0.853678 | 0.853678 | 0.853678 | 0.85133 | 0 | 0.007279 | 0.206575 | 2,251 | 85 | 103 | 26.482353 | 0.708287 | 0 | 0 | 0.66129 | 0 | 0 | 0.152929 | 0.011923 | 0 | 0 | 0 | 0 | 0.080645 | 1 | 0.112903 | false | 0 | 0.032258 | 0 | 0.16129 | 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 | 0 | 0 | 0 | 6 |
0a03d4dff3710de039d3ea4e8d2d9b9c5c8e0907 | 78 | py | Python | code/helloworld.py | tvek/MyKerasAPI | 5b64e7a38109e22af1de987e6eda89187b5dd9ab | [
"Apache-2.0"
] | null | null | null | code/helloworld.py | tvek/MyKerasAPI | 5b64e7a38109e22af1de987e6eda89187b5dd9ab | [
"Apache-2.0"
] | null | null | null | code/helloworld.py | tvek/MyKerasAPI | 5b64e7a38109e22af1de987e6eda89187b5dd9ab | [
"Apache-2.0"
] | null | null | null | from keras.models import Sequential
from keras.layers import Dense, Activation | 39 | 42 | 0.858974 | 11 | 78 | 6.090909 | 0.727273 | 0.268657 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.102564 | 78 | 2 | 42 | 39 | 0.957143 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0a218caf2e3051510f997e52429b994fbce29135 | 163 | py | Python | iotbx/cns/xray_structure.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | iotbx/cns/xray_structure.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | iotbx/cns/xray_structure.py | rimmartin/cctbx_project | 644090f9432d9afc22cfb542fc3ab78ca8e15e5d | [
"BSD-3-Clause-LBNL"
] | null | null | null | from __future__ import division
from iotbx.cns import sdb_writer
from cctbx import xray
xray.structure.as_cns_sdb_file = sdb_writer.xray_structure_as_cns_sdb_file
| 32.6 | 74 | 0.877301 | 28 | 163 | 4.607143 | 0.464286 | 0.139535 | 0.232558 | 0.27907 | 0.387597 | 0.387597 | 0 | 0 | 0 | 0 | 0 | 0 | 0.092025 | 163 | 4 | 75 | 40.75 | 0.871622 | 0 | 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 | 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 | 6 |
0a391283064d7a62a409ca80fd699d597b134ca2 | 40 | py | Python | chakin/__init__.py | massongit/chakin | 8cca89336fbc1e90f95063003b2241c26da0e5bc | [
"MIT"
] | 334 | 2017-05-24T10:14:33.000Z | 2022-03-12T06:53:36.000Z | chakin/__init__.py | massongit/chakin | 8cca89336fbc1e90f95063003b2241c26da0e5bc | [
"MIT"
] | 13 | 2017-05-24T12:34:16.000Z | 2019-07-19T22:31:46.000Z | chakin/__init__.py | massongit/chakin | 8cca89336fbc1e90f95063003b2241c26da0e5bc | [
"MIT"
] | 48 | 2017-05-31T00:34:56.000Z | 2022-03-01T23:05:55.000Z | from .downloader import download, search | 40 | 40 | 0.85 | 5 | 40 | 6.8 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.1 | 40 | 1 | 40 | 40 | 0.944444 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
0a46ebcc663003831ebc1b4e6726efa39fe2e74e | 23,147 | py | Python | coremltools/converters/mil/mil/ops/tests/test_elementwise_unary.py | seibert/coremltools | 609188ebcfee2178293f0d4e93a5af2995c88645 | [
"BSD-3-Clause"
] | null | null | null | coremltools/converters/mil/mil/ops/tests/test_elementwise_unary.py | seibert/coremltools | 609188ebcfee2178293f0d4e93a5af2995c88645 | [
"BSD-3-Clause"
] | null | null | null | coremltools/converters/mil/mil/ops/tests/test_elementwise_unary.py | seibert/coremltools | 609188ebcfee2178293f0d4e93a5af2995c88645 | [
"BSD-3-Clause"
] | null | null | null | # Copyright (c) 2020, Apple Inc. All rights reserved.
#
# Use of this source code is governed by a BSD-3-clause license that can be
# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
import scipy
from scipy import special
from coremltools.converters.mil import testing_reqs
from coremltools.converters.mil.testing_reqs import *
from .testing_utils import run_compare_builder
backends = testing_reqs.backends
class TestElementwiseUnary:
# All ops in this test share the same backends
@pytest.mark.parametrize(
"use_cpu_for_conversion, backend, mode",
itertools.product(
[True, False],
backends,
[
"abs",
"acos",
"asin",
"atan",
"atanh",
"exp2",
"clip",
"cos",
"cosh",
"erf",
"exp",
"erf",
"floor",
"inverse",
"log",
"round",
"rsqrt",
"sign",
"sin",
"sinh",
"sqrt",
"square",
"tan",
"tanh",
"threshold",
"cast",
],
),
)
def test_builder_to_backend_smoke(self, use_cpu_for_conversion, backend, mode):
if backend == "mlprogram" and not use_cpu_for_conversion and mode == "cast":
pytest.xfail("rdar://78343191 ((MIL GPU) Core ML Tools Unit Test failures [failure to load or Seg fault])")
if mode == "abs":
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
expected_outputs = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
build = lambda x: mb.abs(x=x)
elif mode == "acos":
val = np.array([[-1, -0.5, 0], [0.4, 0.5, 0.8]], dtype=np.float32)
expected_outputs = np.array(
[
[3.14159265, 2.0943951, 1.57079633],
[1.15927948, 1.04719755, 0.64350111],
],
dtype=np.float32,
)
build = lambda x: mb.acos(x=x)
elif mode == "asin":
val = np.array([[-1, -0.5, 0], [0.4, 0.5, 0.8]], dtype=np.float32)
expected_outputs = np.array(
[[-1.57079633, -0.52359878, 0.0], [0.41151685, 0.52359878, 0.92729522]],
dtype=np.float32,
)
build = lambda x: mb.asin(x=x)
elif mode == "atan":
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
expected_outputs = np.array(
[
[-0.78539816, 1.10714872, -1.24904577],
[1.32581766, -1.37340077, 1.40564765],
],
dtype=np.float32,
)
build = lambda x: mb.atan(x=x)
elif mode == "atanh":
val = np.array([[-0.8, -0.5, 0], [0.4, 0.5, 0.8]], dtype=np.float32)
expected_outputs = np.array(
[[-1.09861229, -0.54930614, 0.0], [0.42364893, 0.54930614, 1.09861229]],
dtype=np.float32,
)
build = lambda x: mb.atanh(x=x)
elif mode == "cast":
val = np.array([[-1.2, 2, -3.6], [4.5, -5, 6.7]], dtype=np.float32)
expected_outputs = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.int32)
build = lambda x: mb.cast(x=x, dtype="int32")
elif mode == "ceil":
val = np.array([[-1.2, 2, -3.4], [4.5, -5, 6.7]], dtype=np.float32)
expected_outputs = np.array([[-1, 2, -3], [5, -5, 7]], dtype=np.float32)
build = lambda x: mb.ceil(x=x)
elif mode == "clip":
val = np.array([[-1.2, 2, -3.4], [4.5, -5, 6.7]], dtype=np.float32)
expected_outputs = np.array([[0, 2, 0], [4.5, 0, 5]], dtype=np.float32)
build = lambda x: mb.clip(x=x, alpha=0.0, beta=5.0)
elif mode == "cos":
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
expected_outputs = np.array(
[
[0.54030231, -0.41614684, -0.9899925],
[-0.65364362, 0.28366219, 0.96017029],
],
dtype=np.float32,
)
build = lambda x: mb.cos(x=x)
elif mode == "cosh":
val = np.array([[-1, -2, -3], [1, 2, 3]], dtype=np.float32)
expected_outputs = np.array(
[
[1.54308063, 3.76219569, 10.067662],
[1.54308063, 3.76219569, 10.067662],
],
dtype=np.float32,
)
build = lambda x: mb.cosh(x=x)
elif mode == "erf":
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
expected_outputs = np.array(
[
[-0.8427007929497148, 0.9953222650189527, -0.9999779095030014],
[0.9999999845827421, -0.9999999999984626, 1.0],
],
dtype=np.float32,
)
build = lambda x: mb.erf(x=x)
elif mode == "exp":
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
expected_outputs = np.array(
[
[0.36787944, 7.3890561, 0.04978707],
[54.5981500, 0.0067379, 403.428793],
],
dtype=np.float32,
)
build = lambda x: mb.exp(x=x)
elif mode == "exp2":
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
expected_outputs = np.array(
[[0.5, 4.0, 0.125], [16, 0.03125, 64]], dtype=np.float32
)
build = lambda x: mb.exp2(x=x)
elif mode == "floor":
val = np.array([[-1.2, 2, -3.4], [4.5, -5, 6.7]], dtype=np.float32)
expected_outputs = np.array([[-2, 2, -4], [4, -5, 6]], dtype=np.float32)
build = lambda x: mb.floor(x=x)
elif mode == "inverse":
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
expected_outputs = np.array(
[[-1.0, 0.5, -0.33333334], [0.25, -0.2, 0.16666667]], dtype=np.float32
)
build = lambda x: mb.inverse(x=x)
elif mode == "log":
val = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
expected_outputs = np.array(
[[0.0, 0.69314718, 1.09861229], [1.38629436, 1.60943791, 1.79175947]],
dtype=np.float32,
)
build = lambda x: mb.log(x=x)
elif mode == "round":
val = np.array([[-1.2, 2, -3.4], [4.6, -5, 6.7]], dtype=np.float32)
expected_outputs = np.array([[-1, 2, -3], [5, -5, 7]], dtype=np.float32)
build = lambda x: mb.round(x=x)
elif mode == "rsqrt":
val = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
expected_outputs = np.array(
[[1.0, 0.70710678, 0.57735027], [0.5, 0.4472136, 0.40824829]],
dtype=np.float32,
)
build = lambda x: mb.rsqrt(x=x)
elif mode == "sign":
val = np.array([[-1, 2, 0], [0, -5, 6]], dtype=np.float32)
expected_outputs = np.array([[-1, 1, 0], [0, -1, 1]], dtype=np.float32)
build = lambda x: mb.sign(x=x)
elif mode == "sin":
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
expected_outputs = np.array(
[
[-0.84147098, 0.90929743, -0.14112001],
[-0.7568025, 0.95892427, -0.2794155],
],
dtype=np.float32,
)
build = lambda x: mb.sin(x=x)
elif mode == "sinh":
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
expected_outputs = np.array(
[[-1.1752, 3.62686, -10.017874], [27.289917, -74.20321, 201.71315]],
dtype=np.float32,
)
build = lambda x: mb.sinh(x=x)
elif mode == "sqrt":
val = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
expected_outputs = np.array(
[[1.0, 1.41421356, 1.73205081], [2.0, 2.23606798, 2.44948974]],
dtype=np.float32,
)
build = lambda x: mb.sqrt(x=x)
elif mode == "square":
val = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
expected_outputs = np.array(
[[1.0, 4.0, 9.0], [16.0, 25.0, 36.]],
dtype=np.float32,
)
build = lambda x: mb.square(x=x)
elif mode == "tan":
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
expected_outputs = np.array(
[[-1.5574, -2.185, 0.1425], [1.15782, 3.3805, -0.291]], dtype=np.float32
)
build = lambda x: mb.tan(x=x)
elif mode == "tanh":
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
expected_outputs = np.array(
[
[-0.7615942, 0.9640276, -0.9950548],
[0.9993293, -0.9999092, 0.9999877],
],
dtype=np.float32,
)
build = lambda x: mb.tanh(x=x)
elif mode == "threshold":
val = np.array([[-1.2, 2, -3.4], [4.5, -5, 6.7]], dtype=np.float32)
expected_outputs = np.array(
[[1.0, 2, 1.0], [4.5, 1.0, 6.7]], dtype=np.float32
)
build = lambda x: mb.threshold(x=x, alpha=1.0)
input_placeholders = {"x": mb.placeholder(shape=val.shape)}
input_values = {"x": val}
expected_output_types = (
(2, 3, types.int32) if mode == "cast" else (2, 3, types.fp32)
)
run_compare_builder(
build,
input_placeholders,
input_values,
expected_output_types,
expected_outputs,
use_cpu_only=use_cpu_for_conversion,
frontend_only=False,
backend=backend,
use_cpu_for_conversion=use_cpu_for_conversion,
)
@ssa_fn
def test_builder_abs_eval(self):
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
v = mb.abs(x=val)
expected_outputs = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_acos_eval(self):
val = np.array([[-1, -0.5, 0], [0.4, 0.5, 0.8]], dtype=np.float32)
v = mb.acos(x=val)
expected_outputs = np.array(
[[3.14159265, 2.0943951, 1.57079633], [1.15927948, 1.04719755, 0.64350111]],
dtype=np.float32,
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_asin_eval(self):
val = np.array([[-1, -0.5, 0], [0.4, 0.5, 0.8]], dtype=np.float32)
v = mb.asin(x=val)
expected_outputs = np.array(
[[-1.57079633, -0.52359878, 0.0], [0.41151685, 0.52359878, 0.92729522]],
dtype=np.float32,
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_atan_eval(self):
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
v = mb.atan(x=val)
expected_outputs = np.array(
[
[-0.78539816, 1.10714872, -1.24904577],
[1.32581766, -1.37340077, 1.40564765],
],
dtype=np.float32,
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_atanh_eval(self):
val = np.array([[-0.8, -0.5, 0], [0.4, 0.5, 0.8]], dtype=np.float32)
v = mb.atanh(x=val)
expected_outputs = np.array(
[[-1.09861229, -0.54930614, 0.0], [0.42364893, 0.54930614, 1.09861229]],
dtype=np.float32,
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_cast_eval(self):
val = np.array([[-1.2, 2, -3.4], [4.5, -5, 6.7]], dtype=np.float32)
expected_outputs = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.int32)
v = mb.cast(x=val, dtype="int32")
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_ceil_eval(self):
val = np.array([[-1.2, 2, -3.4], [4.5, -5, 6.7]], dtype=np.float32)
v = mb.ceil(x=val)
expected_outputs = np.array([[-1, 2, -3], [5, -5, 7]], dtype=np.float32)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_clip_eval(self):
val = np.array([[-1.2, 2, -3.4], [4.5, -5, 6.7]], dtype=np.float32)
v = mb.clip(x=val, alpha=0.0, beta=5.0)
expected_outputs = np.array([[0, 2, 0], [4.5, 0, 5]], dtype=np.float32)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_cos_eval(self):
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
v = mb.cos(x=val)
expected_outputs = np.array(
[
[0.54030231, -0.41614684, -0.9899925],
[-0.65364362, 0.28366219, 0.96017029],
],
dtype=np.float32,
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_cosh_eval(self):
val = np.array([[-1, -2, -3], [1, 2, 3]], dtype=np.float32)
v = mb.cosh(x=val)
expected_outputs = np.array(
[[1.54308063, 3.76219569, 10.067662], [1.54308063, 3.76219569, 10.067662]],
dtype=np.float32,
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_erf_eval(self):
x_val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
v = mb.erf(x=x_val)
assert is_close(scipy.special.erf(x_val), v.val)
@ssa_fn
def test_builder_exp_eval(self):
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
v = mb.exp(x=val)
expected_outputs = np.array(
[[0.36787944, 7.3890561, 0.04978707], [54.5981500, 0.0067379, 403.428793]],
dtype=np.float32,
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_exp2_eval(self):
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
v = mb.exp2(x=val)
expected_outputs = np.array(
[[0.5, 4.0, 0.125], [16, 0.03125, 64]], dtype=np.float32
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_floor_eval(self):
val = np.array([[-1.2, 2, -3.4], [4.5, -5, 6.7]], dtype=np.float32)
v = mb.floor(x=val)
expected_outputs = np.array([[-2, 2, -4], [4, -5, 6]], dtype=np.float32)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_inverse_eval(self):
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
v = mb.inverse(x=val)
expected_outputs = np.array(
[[-1.0, 0.5, -0.33333334], [0.25, -0.2, 0.16666667]], dtype=np.float32
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_log_eval(self):
val = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
v = mb.log(x=val)
expected_outputs = np.array(
[[0.0, 0.69314718, 1.09861229], [1.38629436, 1.60943791, 1.79175947]],
dtype=np.float32,
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_round_eval(self):
val = np.array([[-1.2, 2, -3.4], [4.6, -5, 6.7]], dtype=np.float32)
v = mb.round(x=val)
expected_outputs = np.array([[-1, 2, -3], [5, -5, 7]], dtype=np.float32)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_rsqrt_eval(self):
val = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
v = mb.rsqrt(x=val)
expected_outputs = np.array(
[[1.0, 0.70710678, 0.57735027], [0.5, 0.4472136, 0.40824829]],
dtype=np.float32,
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_sign_eval(self):
val = np.array([[-1, 2, 0], [0, -5, 6]], dtype=np.float32)
v = mb.sign(x=val)
expected_outputs = np.array([[-1, 1, 0], [0, -1, 1]], dtype=np.float32)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_sin_eval(self):
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
v = mb.sin(x=val)
expected_outputs = np.array(
[
[-0.84147098, 0.90929743, -0.14112001],
[-0.7568025, 0.95892427, -0.2794155],
],
dtype=np.float32,
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_sinh_eval(self):
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
v = mb.sinh(x=val)
expected_outputs = np.array(
[[-1.1752, 3.62686, -10.017874], [27.289917, -74.20321, 201.71315]],
dtype=np.float32,
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_sqrt_eval(self):
val = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
v = mb.sqrt(x=val)
expected_outputs = np.array(
[[1.0, 1.41421356, 1.73205081], [2.0, 2.23606798, 2.44948974]],
dtype=np.float32,
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_tan_eval(self):
val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
v = mb.tan(x=val)
expected_outputs = np.array(
[[-1.5574, -2.185, 0.1425], [1.15782, 3.3805, -0.291]], dtype=np.float32
)
assert is_close(expected_outputs, v.val)
@ssa_fn
def test_builder_tanh_eval(self):
x_val = np.array([[-1, 2, -3], [4, -5, 6]], dtype=np.float32)
v = mb.tanh(x=x_val)
assert is_close(np.tanh(x_val), v.val)
@ssa_fn
def test_builder_threshold_eval(self):
val = np.array([[-1.2, 2, -3.4], [4.5, -5, 6.7]], dtype=np.float32)
v = mb.threshold(x=val, alpha=1.0)
expected_outputs = np.array([[1.0, 2, 1.0], [4.5, 1.0, 6.7]], dtype=np.float32)
assert is_close(expected_outputs, v.val)
@pytest.mark.parametrize(
"use_cpu_only, backend, epsilon",
itertools.product(
[True, False],
backends,
[1e-3, 1e-1, 1.0],
),
)
def test_builder_to_backend_stress_inverse(
self, use_cpu_only, backend, epsilon
):
x = np.array([[1, -2, 3], [4, -5, 6]], dtype=np.float32)
numpy_pred = 1 / (x + epsilon)
input_placeholder_dict = {"x": mb.placeholder(shape=x.shape)}
input_value_dict = {"x": x}
def build(x):
return mb.inverse(x=x, epsilon=epsilon)
expected_output_type = x.shape + (types.fp32,)
run_compare_builder(
build,
input_placeholder_dict,
input_value_dict,
expected_output_type,
numpy_pred,
use_cpu_only=use_cpu_only,
frontend_only=False,
backend=backend,
)
@pytest.mark.parametrize(
"use_cpu_only, backend, epsilon",
itertools.product(
[True, False],
backends,
[1e-3, 1e-1, 1.0],
),
)
def test_builder_to_backend_stress_rsqrt(
self, use_cpu_only, backend, epsilon
):
x = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
numpy_pred = 1.0 / np.sqrt(x + epsilon)
input_placeholder_dict = {"x": mb.placeholder(shape=x.shape)}
input_value_dict = {"x": x}
def build(x):
return mb.rsqrt(x=x, epsilon=epsilon)
expected_output_type = x.shape + (types.fp32,)
run_compare_builder(
build,
input_placeholder_dict,
input_value_dict,
expected_output_type,
numpy_pred,
use_cpu_only=use_cpu_only,
frontend_only=False,
backend=backend,
)
@pytest.mark.parametrize(
"use_cpu_only, backend, epsilon",
itertools.product(
[True, False],
backends,
[1e-3, 1e-1, 1.0],
),
)
def test_builder_to_backend_stress_log(
self, use_cpu_only, backend, epsilon
):
if backend == "mlprogram" and not use_cpu_only:
pytest.xfail("rdar://78343225 ((MIL GPU) Core ML Tools Unit Test failures [numerical error])")
x = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
numpy_pred = np.log(x + epsilon)
input_placeholder_dict = {"x": mb.placeholder(shape=x.shape)}
input_value_dict = {"x": x}
def build(x):
return mb.log(x=x, epsilon=epsilon)
expected_output_type = x.shape + (types.fp32,)
run_compare_builder(
build,
input_placeholder_dict,
input_value_dict,
expected_output_type,
numpy_pred,
use_cpu_only=use_cpu_only,
frontend_only=False,
backend=backend,
)
@pytest.mark.parametrize(
"use_cpu_for_conversion, backend, src_dst",
itertools.product(
[True, False],
backends,
[("fp32", "int32"), ("fp16", "fp32"), ("fp32", "fp16"), ("fp16", "int32")],
),
)
def test_builder_to_backend_stress_cast(
self, use_cpu_for_conversion, backend, src_dst
):
if backend == "mlprogram" and not use_cpu_for_conversion:
pytest.xfail("rdar://78343191 ((MIL GPU) Core ML Tools Unit Test failures [failure to load or Seg fault])")
src_dtype, dst_dtype = src_dst
type_map = {
"int32": np.int32,
"int64": np.int64,
"fp16": np.float16,
"fp32": np.float32,
"fp64": np.float64,
"bool": np.bool,
}
x = np.array([[1, 2, 3], [4, 5, 6]], dtype=np.float32)
numpy_pred = x.astype(dtype=np.float16)
input_placeholder_dict = {"x": mb.placeholder(shape=x.shape)}
input_value_dict = {"x": x}
def build(x):
x = mb.cast(x=x, dtype=src_dtype)
x = mb.square(x=x)
x = mb.cast(x=x, dtype=dst_dtype)
x = mb.sqrt(x=x)
x = mb.cast(x=x, dtype="fp32")
return x
expected_output_type = x.shape + (types.fp32,)
run_compare_builder(
build,
input_placeholder_dict,
input_value_dict,
expected_output_type,
numpy_pred,
use_cpu_only=use_cpu_for_conversion,
frontend_only=False,
backend=backend,
use_cpu_for_conversion=use_cpu_for_conversion,
) | 34.291852 | 119 | 0.497473 | 3,091 | 23,147 | 3.600129 | 0.085733 | 0.06605 | 0.128325 | 0.0461 | 0.832674 | 0.819195 | 0.80275 | 0.75665 | 0.742182 | 0.728523 | 0 | 0.151073 | 0.341988 | 23,147 | 675 | 120 | 34.291852 | 0.579542 | 0.01093 | 0 | 0.561189 | 0 | 0.003497 | 0.033511 | 0.00201 | 0 | 0 | 0 | 0 | 0.043706 | 1 | 0.059441 | false | 0 | 0.008741 | 0.005245 | 0.076923 | 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 | 0 | 0 | 0 | 6 |
0a6f4685d41cc794eee33db690c3dd09f64d80cf | 8,416 | py | Python | exploits/primes.py | enowars/enowars3-service-telescopy | 191591ed6d96d081334250f4ed997f18d9da2941 | [
"MIT"
] | null | null | null | exploits/primes.py | enowars/enowars3-service-telescopy | 191591ed6d96d081334250f4ed997f18d9da2941 | [
"MIT"
] | null | null | null | exploits/primes.py | enowars/enowars3-service-telescopy | 191591ed6d96d081334250f4ed997f18d9da2941 | [
"MIT"
] | null | null | null | prime_tickets = [800000005333, 800000005361, 800000005369, 800000005403, 800000005421, 800000005451, 800000005507, 800000005517, 800000005547, 800000005549, 800000005559, 800000005577, 800000005579, 800000005589, 800000005621, 800000005633, 800000005657, 800000005667, 800000005687, 800000005711, 800000005747, 800000005757, 800000005799, 800000005817, 800000005829, 800000005843, 800000005891, 800000005901, 800000005913, 800000005967, 800000005997, 800000006021, 800000006059, 800000006077, 800000006081, 800000006107, 800000006159, 800000006209, 800000006227, 800000006231, 800000006251, 800000006269, 800000006339, 800000006363, 800000006371, 800000006387, 800000006447, 800000006473, 800000006501, 800000006537, 800000006569, 800000006573, 800000006579, 800000006587, 800000006621, 800000006629, 800000006647, 800000006681, 800000006731, 800000006737, 800000006807, 800000006831, 800000006837, 800000006881, 800000006891, 800000006903, 800000006987, 800000007029, 800000007077, 800000007083, 800000007097, 800000007119, 800000007181, 800000007199, 800000007211, 800000007307, 800000007311, 800000007343, 800000007353, 800000007361, 800000007397, 800000007409, 800000007427, 800000007449, 800000007461, 800000007463, 800000007497, 800000007517, 800000007523, 800000007551, 800000007559, 800000007563, 800000007601, 800000007613, 800000007637, 800000007649, 800000007661, 800000007679, 800000007683, 800000007701, 800000007803, 800000007839, 800000007893, 800000007907, 800000007973, 800000008033, 800000008069, 800000008103, 800000008109, 800000008147, 800000008169, 800000008177, 800000008309, 800000008363, 800000008387, 800000008417, 800000008429, 800000008433, 800000008447, 800000008469, 800000008501, 800000008517, 800000008547, 800000008583, 800000008607, 800000008657, 800000008667, 800000008681, 800000008693, 800000008721, 800000008729, 800000008733, 800000008741, 800000008789, 800000008849, 800000008861, 800000008883, 800000008903, 800000008921, 800000008939, 800000008949, 800000009021, 800000009051, 800000009059, 800000009087, 800000009131, 800000009191, 800000009197, 800000009209, 800000009273, 800000009287, 800000009321, 800000009329, 800000009353, 800000009371, 800000009437, 800000009443, 800000009477, 800000009503, 800000009533, 800000009603, 800000009621, 800000009651, 800000009689, 800000009707, 800000009723, 800000009729, 800000009747, 800000009773, 800000009797, 800000009827, 800000009833, 800000009909, 800000009911, 800000009917, 800000009953, 800000009957, 800000009959, 800000009999, 800000010049, 800000010077, 800000010097, 800000010101, 800000010119, 800000010149, 800000010169, 800000010181, 800000010191, 800000010203, 800000010247, 800000010253, 800000010259, 800000010343, 800000010349, 800000010361, 800000010391, 800000010401, 800000010413, 800000010521, 800000010527, 800000010529, 800000010553, 800000010571, 800000010577, 800000010583, 800000010599, 800000010613, 800000010617, 800000010647, 800000010713, 800000010721, 800000010767, 800000010829, 800000010871, 800000010893, 800000010913, 800000010989, 800000010991, 800000011037, 800000011067, 800000011073, 800000011081, 800000011093, 800000011123, 800000011127, 800000011147, 800000011159, 800000011171, 800000011201, 800000011229, 800000011273, 800000011319, 800000011333, 800000011351, 800000011403, 800000011409, 800000011423, 800000011477, 800000011487, 800000011513, 800000011543, 800000011549, 800000011567, 800000011583, 800000011651, 800000011663, 800000011667, 800000011691, 800000011693, 800000011709, 800000011717, 800000011739, 800000011781, 800000011861, 800000011883, 800000011901, 800000011913, 800000011919, 800000011973, 800000011981, 800000012003, 800000012023, 800000012047, 800000012059, 800000012137, 800000012191, 800000012213, 800000012237, 800000012243, 800000012263, 800000012269, 800000012281, 800000012293, 800000012321, 800000012347, 800000012353, 800000012363, 800000012401, 800000012419, 800000012423, 800000012443, 800000012491, 800000012501, 800000012521, 800000012563, 800000012569, 800000012611, 800000012621, 800000012653, 800000012663, 800000012701, 800000012711, 800000012719, 800000012729, 800000012783, 800000012963, 800000012969, 800000013011, 800000013019, 800000013037, 800000013041, 800000013091, 800000013107, 800000013119, 800000013143, 800000013161, 800000013229, 800000013251, 800000013257, 800000013259, 800000013331, 800000013341, 800000013343, 800000013377, 800000013391, 800000013401, 800000013403, 800000013419, 800000013479, 800000013499, 800000013557, 800000013611, 800000013679, 800000013691, 800000013727, 800000013733, 800000013751, 800000013781, 800000013809, 800000013811, 800000013833, 800000013847, 800000013851, 800000013919, 800000013949, 800000013979, 800000013997, 800000014003, 800000014031, 800000014097, 800000014129, 800000014133, 800000014169, 800000014181, 800000014183, 800000014207, 800000014211, 800000014237, 800000014241, 800000014277, 800000014361, 800000014381, 800000014417, 800000014507, 800000014519, 800000014531, 800000014559, 800000014591, 800000014637, 800000014643, 800000014663, 800000014717, 800000014733, 800000014739, 800000014741, 800000014747, 800000014787, 800000014969, 800000014991, 800000015039, 800000015041, 800000015047, 800000015149, 800000015197, 800000015219, 800000015233, 800000015249, 800000015263, 800000015323, 800000015329, 800000015371, 800000015387, 800000015401, 800000015467, 800000015471, 800000015473, 800000015527, 800000015729, 800000015761, 800000015779, 800000015849, 800000015861, 800000015863, 800000015897, 800000015921, 800000016043, 800000016071, 800000016097, 800000016103, 800000016119, 800000016121, 800000016187, 800000016229, 800000016241, 800000016251, 800000016281, 800000016301, 800000016359, 800000016383, 800000016493, 800000016527, 800000016539, 800000016577, 800000016671, 800000016677, 800000016679, 800000016691, 800000016709, 800000016727, 800000016763, 800000016793, 800000016847, 800000016859, 800000016877, 800000016889, 800000016941, 800000016953, 800000016961, 800000016967, 800000017013, 800000017079, 800000017081, 800000017087, 800000017127, 800000017133, 800000017147, 800000017169, 800000017213, 800000017217, 800000017237, 800000017303, 800000017307, 800000017319, 800000017321, 800000017379, 800000017433, 800000017457, 800000017489, 800000017513, 800000017519, 800000017547, 800000017573, 800000017613, 800000017651, 800000017669, 800000017681, 800000017699, 800000017717, 800000017727, 800000017759, 800000017783, 800000017801, 800000017807, 800000017841, 800000017849, 800000017889, 800000017903, 800000017907, 800000017931, 800000017961, 800000017967, 800000018003, 800000018117, 800000018123, 800000018131, 800000018179, 800000018189, 800000018243, 800000018249, 800000018263, 800000018267, 800000018309, 800000018347, 800000018371, 800000018381, 800000018401, 800000018407, 800000018429, 800000018443, 800000018471, 800000018497, 800000018507, 800000018537, 800000018549, 800000018561, 800000018593, 800000018611, 800000018647, 800000018651, 800000018669, 800000018677, 800000018737, 800000018743, 800000018767, 800000018813, 800000018833, 800000018837, 800000018861, 800000018893, 800000018941, 800000018969, 800000018977, 800000019011, 800000019043, 800000019073, 800000019103, 800000019107, 800000019127, 800000019157, 800000019163, 800000019179, 800000019209, 800000019233, 800000019239, 800000019283, 800000019289, 800000019307, 800000019331, 800000019367, 800000019391, 800000019473, 800000019487, 800000019493, 800000019503, 800000019527, 800000019541, 800000019569, 800000019571, 800000019601, 800000019613, 800000019647, 800000019659, 800000019671, 800000019761, 800000019769, 800000019773, 800000019779, 800000019829, 800000019851, 800000019877, 800000019881, 800000019937, 800000019943, 800000020003, 800000020033, 800000020037, 800000020093, 800000020103, 800000020111, 800000020117, 800000020151, 800000020181, 800000020201, 800000020207, 800000020217, 800000020247, 800000020357, 800000020387, 800000020433, 800000020439, 800000020453, 800000020483, 800000020493, 800000020507, 800000020511, 800000020517, 800000020537, 800000020571, 800000020577, 800000020601, 800000020663, 800000020667, 800000020669, 800000020691, 800000020763, 800000020783, 800000020811, 800000020819, 800000020849, 800000020861, 800000020931, 800000020933, 800000020969, 800000020979, 800000020999, 800000021033, 800000021057, 800000021063, 800000021089, 800000021131] | 8,416 | 8,416 | 0.857058 | 602 | 8,416 | 11.980066 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.921305 | 0.071412 | 8,416 | 1 | 8,416 | 8,416 | 0.001536 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
6a54d5752812fe085f8e3cc478226da5962650be | 21,196 | py | Python | sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_recognizer_client_async.py | LianwMS/azure-sdk-for-python | 612d7bca9de86ee1bd1fa59291d7bf897ba9213f | [
"MIT"
] | null | null | null | sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_recognizer_client_async.py | LianwMS/azure-sdk-for-python | 612d7bca9de86ee1bd1fa59291d7bf897ba9213f | [
"MIT"
] | 2 | 2020-07-17T13:57:08.000Z | 2020-07-21T18:30:37.000Z | sdk/formrecognizer/azure-ai-formrecognizer/azure/ai/formrecognizer/aio/_form_recognizer_client_async.py | LianwMS/azure-sdk-for-python | 612d7bca9de86ee1bd1fa59291d7bf897ba9213f | [
"MIT"
] | 1 | 2020-07-31T16:33:36.000Z | 2020-07-31T16:33:36.000Z | # coding=utf-8
# ------------------------------------
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.
# ------------------------------------
# pylint: disable=protected-access
from typing import (
Any,
IO,
Union,
List,
TYPE_CHECKING,
)
from azure.core.tracing.decorator_async import distributed_trace_async
from azure.core.polling import AsyncLROPoller
from azure.core.polling.async_base_polling import AsyncLROBasePolling
from .._generated.aio._form_recognizer_client_async import FormRecognizerClient as FormRecognizer
from .._response_handlers import (
prepare_receipt,
prepare_content_result,
prepare_form_result
)
from .._generated.models import AnalyzeOperationResult
from .._helpers import get_content_type, get_authentication_policy, error_map, POLLING_INTERVAL
from .._user_agent import USER_AGENT
from .._polling import AnalyzePolling
from .._api_versions import validate_api_version
from .._models import FormPage, RecognizedForm
if TYPE_CHECKING:
from azure.core.credentials import AzureKeyCredential
from azure.core.credentials_async import AsyncTokenCredential
class FormRecognizerClient(object):
"""FormRecognizerClient extracts information from forms and images into structured data.
It is the interface to use for analyzing receipts, recognizing content/layout from
forms, and analyzing custom forms from trained models. It provides different methods
based on inputs from a URL and inputs from a stream.
:param str endpoint: Supported Cognitive Services endpoints (protocol and hostname,
for example: https://westus2.api.cognitive.microsoft.com).
:param credential: Credentials needed for the client to connect to Azure.
This is an instance of AzureKeyCredential if using an API key or a token
credential from :mod:`azure.identity`.
:type credential: :class:`~azure.core.credentials.AzureKeyCredential`
or :class:`~azure.core.credentials_async.AsyncTokenCredential`
:keyword str api_version:
The API version of the service to use for requests. It defaults to the latest service version.
Setting to an older version may result in reduced feature compatibility.
.. admonition:: Example:
.. literalinclude:: ../samples/async_samples/sample_authentication_async.py
:start-after: [START create_fr_client_with_key_async]
:end-before: [END create_fr_client_with_key_async]
:language: python
:dedent: 8
:caption: Creating the FormRecognizerClient with an endpoint and API key.
.. literalinclude:: ../samples/async_samples/sample_authentication_async.py
:start-after: [START create_fr_client_with_aad_async]
:end-before: [END create_fr_client_with_aad_async]
:language: python
:dedent: 8
:caption: Creating the FormRecognizerClient with a token credential.
"""
def __init__(
self,
endpoint: str,
credential: Union["AzureKeyCredential", "AsyncTokenCredential"],
**kwargs: Any
) -> None:
authentication_policy = get_authentication_policy(credential)
polling_interval = kwargs.pop("polling_interval", POLLING_INTERVAL)
api_version = kwargs.pop('api_version', None)
validate_api_version(api_version)
self._client = FormRecognizer(
endpoint=endpoint,
credential=credential, # type: ignore
sdk_moniker=USER_AGENT,
authentication_policy=authentication_policy,
polling_interval=polling_interval,
**kwargs
)
def _receipt_callback(self, raw_response, _, headers): # pylint: disable=unused-argument
analyze_result = self._client._deserialize(AnalyzeOperationResult, raw_response)
return prepare_receipt(analyze_result)
@distributed_trace_async
async def begin_recognize_receipts(
self,
receipt: Union[bytes, IO[bytes]],
**kwargs: Any
) -> AsyncLROPoller[List[RecognizedForm]]:
"""Extract field text and semantic values from a given US sales receipt.
The input document must be of one of the supported content types - 'application/pdf',
'image/jpeg', 'image/png' or 'image/tiff'.
See fields found on a receipt here:
https://aka.ms/formrecognizer/receiptfields
:param receipt: JPEG, PNG, PDF and TIFF type file stream or bytes.
Currently only supports US sales receipts.
:type receipt: bytes or IO[bytes]
:keyword bool include_field_elements:
Whether or not to include field elements such as lines and words in addition to form fields.
:keyword content_type: Media type of the body sent to the API. Content-type is
auto-detected, but can be overridden by passing this keyword argument. For options,
see :class:`~azure.ai.formrecognizer.FormContentType`.
:paramtype content_type: str or ~azure.ai.formrecognizer.FormContentType
:keyword int polling_interval: Waiting time between two polls for LRO operations
if no Retry-After header is present. Defaults to 5 seconds.
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:return: An instance of an AsyncLROPoller. Call `result()` on the poller
object to return a list[:class:`~azure.ai.formrecognizer.RecognizedForm`].
:rtype: ~azure.core.polling.AsyncLROPoller[list[~azure.ai.formrecognizer.RecognizedForm]]
:raises ~azure.core.exceptions.HttpResponseError:
.. admonition:: Example:
.. literalinclude:: ../samples/async_samples/sample_recognize_receipts_async.py
:start-after: [START recognize_receipts_async]
:end-before: [END recognize_receipts_async]
:language: python
:dedent: 8
:caption: Recognize US sales receipt fields.
"""
polling_interval = kwargs.pop("polling_interval", self._client._config.polling_interval)
continuation_token = kwargs.pop("continuation_token", None)
content_type = kwargs.pop("content_type", None)
if content_type == "application/json":
raise TypeError("Call begin_recognize_receipts_from_url() to analyze a receipt from a URL.")
include_field_elements = kwargs.pop("include_field_elements", False)
if content_type is None:
content_type = get_content_type(receipt)
return await self._client.begin_analyze_receipt_async( # type: ignore
file_stream=receipt,
content_type=content_type,
include_text_details=include_field_elements,
cls=kwargs.pop("cls", self._receipt_callback),
polling=AsyncLROBasePolling(
timeout=polling_interval,
**kwargs
),
error_map=error_map,
continuation_token=continuation_token,
**kwargs
)
@distributed_trace_async
async def begin_recognize_receipts_from_url(
self,
receipt_url: str,
**kwargs: Any
) -> AsyncLROPoller[List[RecognizedForm]]:
"""Extract field text and semantic values from a given US sales receipt.
The input document must be the location (URL) of the receipt to be analyzed.
See fields found on a receipt here:
https://aka.ms/formrecognizer/receiptfields
:param str receipt_url: The URL of the receipt to analyze. The input must be a valid, encoded URL
of one of the supported formats: JPEG, PNG, PDF and TIFF. Currently only supports
US sales receipts.
:keyword bool include_field_elements:
Whether or not to include field elements such as lines and words in addition to form fields.
:keyword int polling_interval: Waiting time between two polls for LRO operations
if no Retry-After header is present. Defaults to 5 seconds.
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:return: An instance of an AsyncLROPoller. Call `result()` on the poller
object to return a list[:class:`~azure.ai.formrecognizer.RecognizedForm`].
:rtype: ~azure.core.polling.AsyncLROPoller[list[~azure.ai.formrecognizer.RecognizedForm]]
:raises ~azure.core.exceptions.HttpResponseError:
.. admonition:: Example:
.. literalinclude:: ../samples/async_samples/sample_recognize_receipts_from_url_async.py
:start-after: [START recognize_receipts_from_url_async]
:end-before: [END recognize_receipts_from_url_async]
:language: python
:dedent: 8
:caption: Recognize US sales receipt fields from a URL.
"""
polling_interval = kwargs.pop("polling_interval", self._client._config.polling_interval)
continuation_token = kwargs.pop("continuation_token", None)
include_field_elements = kwargs.pop("include_field_elements", False)
return await self._client.begin_analyze_receipt_async( # type: ignore
file_stream={"source": receipt_url},
include_text_details=include_field_elements,
cls=kwargs.pop("cls", self._receipt_callback),
polling=AsyncLROBasePolling(
timeout=polling_interval,
**kwargs
),
error_map=error_map,
continuation_token=continuation_token,
**kwargs
)
def _content_callback(self, raw_response, _, headers): # pylint: disable=unused-argument
analyze_result = self._client._deserialize(AnalyzeOperationResult, raw_response)
return prepare_content_result(analyze_result)
@distributed_trace_async
async def begin_recognize_content(
self,
form: Union[bytes, IO[bytes]],
**kwargs: Any
) -> AsyncLROPoller[List[FormPage]]:
"""Extract text and content/layout information from a given document.
The input document must be of one of the supported content types - 'application/pdf',
'image/jpeg', 'image/png' or 'image/tiff'.
:param form: JPEG, PNG, PDF and TIFF type file stream or bytes.
:type form: bytes or IO[bytes]
:keyword content_type: Media type of the body sent to the API. Content-type is
auto-detected, but can be overridden by passing this keyword argument. For options,
see :class:`~azure.ai.formrecognizer.FormContentType`.
:paramtype content_type: str or ~azure.ai.formrecognizer.FormContentType
:keyword int polling_interval: Waiting time between two polls for LRO operations
if no Retry-After header is present. Defaults to 5 seconds.
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:return: An instance of an AsyncLROPoller. Call `result()` on the poller
object to return a list[:class:`~azure.ai.formrecognizer.FormPage`].
:rtype: ~azure.core.polling.AsyncLROPoller[list[~azure.ai.formrecognizer.FormPage]]
:raises ~azure.core.exceptions.HttpResponseError:
.. admonition:: Example:
.. literalinclude:: ../samples/async_samples/sample_recognize_content_async.py
:start-after: [START recognize_content_async]
:end-before: [END recognize_content_async]
:language: python
:dedent: 8
:caption: Recognize text and content/layout information from a form.
"""
polling_interval = kwargs.pop("polling_interval", self._client._config.polling_interval)
continuation_token = kwargs.pop("continuation_token", None)
content_type = kwargs.pop("content_type", None)
if content_type == "application/json":
raise TypeError("Call begin_recognize_content_from_url() to analyze a document from a url.")
if content_type is None:
content_type = get_content_type(form)
return await self._client.begin_analyze_layout_async( # type: ignore
file_stream=form,
content_type=content_type,
cls=kwargs.pop("cls", self._content_callback),
polling=AsyncLROBasePolling(
timeout=polling_interval,
**kwargs
),
error_map=error_map,
continuation_token=continuation_token,
**kwargs
)
@distributed_trace_async
async def begin_recognize_content_from_url(self, form_url: str, **kwargs: Any) -> AsyncLROPoller[List[FormPage]]:
"""Extract text and layout information from a given document.
The input document must be the location (URL) of the document to be analyzed.
:param str form_url: The URL of the form to analyze. The input must be a valid, encoded URL
of one of the supported formats: JPEG, PNG, PDF and TIFF.
:keyword int polling_interval: Waiting time between two polls for LRO operations
if no Retry-After header is present. Defaults to 5 seconds.
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:return: An instance of an AsyncLROPoller. Call `result()` on the poller
object to return a list[:class:`~azure.ai.formrecognizer.FormPage`].
:rtype: ~azure.core.polling.AsyncLROPoller[list[~azure.ai.formrecognizer.FormPage]]
:raises ~azure.core.exceptions.HttpResponseError:
"""
polling_interval = kwargs.pop("polling_interval", self._client._config.polling_interval)
continuation_token = kwargs.pop("continuation_token", None)
return await self._client.begin_analyze_layout_async( # type: ignore
file_stream={"source": form_url},
cls=kwargs.pop("cls", self._content_callback),
polling=AsyncLROBasePolling(
timeout=polling_interval,
**kwargs
),
error_map=error_map,
continuation_token=continuation_token,
**kwargs
)
@distributed_trace_async
async def begin_recognize_custom_forms(
self,
model_id: str,
form: Union[bytes, IO[bytes]],
**kwargs: Any
) -> AsyncLROPoller[List[RecognizedForm]]:
"""Analyze a custom form with a model trained with or without labels. The form
to analyze should be of the same type as the forms that were used to train the model.
The input document must be of one of the supported content types - 'application/pdf',
'image/jpeg', 'image/png' or 'image/tiff'.
:param str model_id: Custom model identifier.
:param form: JPEG, PNG, PDF and TIFF type file stream or bytes.
:type form: bytes or IO[bytes]
:keyword bool include_field_elements:
Whether or not to include field elements such as lines and words in addition to form fields.
:keyword content_type: Media type of the body sent to the API. Content-type is
auto-detected, but can be overridden by passing this keyword argument. For options,
see :class:`~azure.ai.formrecognizer.FormContentType`.
:paramtype content_type: str or ~azure.ai.formrecognizer.FormContentType
:keyword int polling_interval: Waiting time between two polls for LRO operations
if no Retry-After header is present. Defaults to 5 seconds.
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:return: An instance of an AsyncLROPoller. Call `result()` on the poller
object to return a list[:class:`~azure.ai.formrecognizer.RecognizedForm`].
:rtype: ~azure.core.polling.AsyncLROPoller[list[~azure.ai.formrecognizer.RecognizedForm]
:raises ~azure.core.exceptions.HttpResponseError:
.. admonition:: Example:
.. literalinclude:: ../samples/async_samples/sample_recognize_custom_forms_async.py
:start-after: [START recognize_custom_forms_async]
:end-before: [END recognize_custom_forms_async]
:language: python
:dedent: 8
:caption: Recognize fields and values from a custom form.
"""
if not model_id:
raise ValueError("model_id cannot be None or empty.")
cls = kwargs.pop("cls", None)
polling_interval = kwargs.pop("polling_interval", self._client._config.polling_interval)
continuation_token = kwargs.pop("continuation_token", None)
content_type = kwargs.pop("content_type", None)
if content_type == "application/json":
raise TypeError("Call begin_recognize_custom_forms_from_url() to analyze a document from a URL.")
include_field_elements = kwargs.pop("include_field_elements", False)
if content_type is None:
content_type = get_content_type(form)
def analyze_callback(raw_response, _, headers): # pylint: disable=unused-argument
analyze_result = self._client._deserialize(AnalyzeOperationResult, raw_response)
return prepare_form_result(analyze_result, model_id)
deserialization_callback = cls if cls else analyze_callback
return await self._client.begin_analyze_with_custom_model( # type: ignore
file_stream=form,
model_id=model_id,
include_text_details=include_field_elements,
content_type=content_type,
cls=deserialization_callback,
polling=AsyncLROBasePolling(
timeout=polling_interval,
lro_algorithms=[AnalyzePolling()],
**kwargs
),
error_map=error_map,
continuation_token=continuation_token,
**kwargs
)
@distributed_trace_async
async def begin_recognize_custom_forms_from_url(
self,
model_id: str,
form_url: str,
**kwargs: Any
) -> AsyncLROPoller[List[RecognizedForm]]:
"""Analyze a custom form with a model trained with or without labels. The form
to analyze should be of the same type as the forms that were used to train the model.
The input document must be the location (URL) of the document to be analyzed.
:param str model_id: Custom model identifier.
:param str form_url: The URL of the form to analyze. The input must be a valid, encoded URL
of one of the supported formats: JPEG, PNG, PDF and TIFF.
:keyword bool include_field_elements:
Whether or not to include field elements such as lines and words in addition to form fields.
:keyword int polling_interval: Waiting time between two polls for LRO operations
if no Retry-After header is present. Defaults to 5 seconds.
:keyword str continuation_token: A continuation token to restart a poller from a saved state.
:return: An instance of an AsyncLROPoller. Call `result()` on the poller
object to return a list[:class:`~azure.ai.formrecognizer.RecognizedForm`].
:rtype: ~azure.core.polling.AsyncLROPoller[list[~azure.ai.formrecognizer.RecognizedForm]
:raises ~azure.core.exceptions.HttpResponseError:
"""
if not model_id:
raise ValueError("model_id cannot be None or empty.")
cls = kwargs.pop("cls", None)
polling_interval = kwargs.pop("polling_interval", self._client._config.polling_interval)
continuation_token = kwargs.pop("continuation_token", None)
include_field_elements = kwargs.pop("include_field_elements", False)
def analyze_callback(raw_response, _, headers): # pylint: disable=unused-argument
analyze_result = self._client._deserialize(AnalyzeOperationResult, raw_response)
return prepare_form_result(analyze_result, model_id)
deserialization_callback = cls if cls else analyze_callback
return await self._client.begin_analyze_with_custom_model( # type: ignore
file_stream={"source": form_url},
model_id=model_id,
include_text_details=include_field_elements,
cls=deserialization_callback,
polling=AsyncLROBasePolling(
timeout=polling_interval,
lro_algorithms=[AnalyzePolling()],
**kwargs
),
error_map=error_map,
continuation_token=continuation_token,
**kwargs
)
async def __aenter__(self) -> "FormRecognizerClient":
await self._client.__aenter__()
return self
async def __aexit__(self, *args: "Any") -> None:
await self._client.__aexit__(*args)
async def close(self) -> None:
"""Close the :class:`~azure.ai.formrecognizer.aio.FormRecognizerClient` session.
"""
await self._client.__aexit__()
| 48.172727 | 117 | 0.670976 | 2,465 | 21,196 | 5.580933 | 0.11927 | 0.039253 | 0.029076 | 0.018899 | 0.818056 | 0.797776 | 0.77764 | 0.757723 | 0.741005 | 0.722396 | 0 | 0.000882 | 0.250944 | 21,196 | 439 | 118 | 48.28246 | 0.865592 | 0.097896 | 0 | 0.652582 | 0 | 0 | 0.082481 | 0.020464 | 0 | 0 | 0 | 0 | 0 | 1 | 0.023474 | false | 0 | 0.065728 | 0 | 0.14554 | 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 | 0 | 0 | 0 | 6 |
6a7b5439c8cf4ddbf4a60538ef6942afed4fadc0 | 299 | py | Python | elasticmock/utilities/__init__.py | textioHQ/elasticmock | 095dcd41a019a7ee1e9bda9fcc3bc69c6793b87b | [
"MIT"
] | null | null | null | elasticmock/utilities/__init__.py | textioHQ/elasticmock | 095dcd41a019a7ee1e9bda9fcc3bc69c6793b87b | [
"MIT"
] | 1 | 2018-07-12T05:13:58.000Z | 2018-07-12T05:13:58.000Z | elasticmock/utilities/__init__.py | textioHQ/textio-elasticmock | 095dcd41a019a7ee1e9bda9fcc3bc69c6793b87b | [
"MIT"
] | null | null | null | # -*- coding: utf-8 -*-
import random
import string
DEFAULT_ELASTICSEARCH_ID_SIZE = 20
CHARSET_FOR_ELASTICSEARCH_ID = string.ascii_letters + string.digits
def get_random_id(size=DEFAULT_ELASTICSEARCH_ID_SIZE):
return ''.join(random.choice(CHARSET_FOR_ELASTICSEARCH_ID) for _ in range(size))
| 24.916667 | 84 | 0.795987 | 42 | 299 | 5.285714 | 0.547619 | 0.27027 | 0.198198 | 0.234234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011278 | 0.110368 | 299 | 11 | 85 | 27.181818 | 0.823308 | 0.070234 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.166667 | false | 0 | 0.333333 | 0.166667 | 0.666667 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 6 |
6a87d5c8bdc2e5fe8a8204a5b3f07795c4f22a67 | 92 | py | Python | utils/__init__.py | OwenLeng/Early-Detection-of-Fake-News-on-Social-Media-Through-Propagation-Path-Classification-with-pytorch- | 39f8b7508240ebf58a3cdcf69fbb838a4239e0e5 | [
"MIT"
] | 38 | 2018-09-04T06:52:35.000Z | 2022-02-10T06:48:33.000Z | utils/__init__.py | OwenLeng/Early-Detection-of-Fake-News-on-Social-Media-Through-Propagation-Path-Classification-with-pytorch- | 39f8b7508240ebf58a3cdcf69fbb838a4239e0e5 | [
"MIT"
] | 4 | 2018-12-03T08:51:57.000Z | 2021-11-03T23:02:45.000Z | utils/__init__.py | yumere/early-fakenews-detection | 39f8b7508240ebf58a3cdcf69fbb838a4239e0e5 | [
"MIT"
] | 17 | 2018-10-17T07:30:28.000Z | 2021-06-23T21:04:51.000Z | from utils.utils import User
from utils.utils import bcolors
__all__ = ['User', 'bcolors'] | 18.4 | 31 | 0.75 | 13 | 92 | 5 | 0.461538 | 0.276923 | 0.430769 | 0.615385 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.141304 | 92 | 5 | 32 | 18.4 | 0.822785 | 0 | 0 | 0 | 0 | 0 | 0.11828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 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 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 6 |
6a8ab2dbd14a5467459f2aed755fac086d63e138 | 151 | py | Python | pontoon/base/context_processors.py | Tratty/pontoon | ecb903d72f9274f02137b16669cc3c5859f6329c | [
"BSD-3-Clause"
] | 3 | 2020-01-27T12:26:20.000Z | 2022-02-03T09:56:02.000Z | pontoon/base/context_processors.py | texnoman/pontoon-src | 6b40ac229605e99966c3bdd1510b772c89d4de24 | [
"BSD-3-Clause"
] | 9 | 2021-03-10T21:34:51.000Z | 2022-02-19T03:30:06.000Z | pontoon/base/context_processors.py | texnoman/pontoon-src | 6b40ac229605e99966c3bdd1510b772c89d4de24 | [
"BSD-3-Clause"
] | 4 | 2020-01-26T21:28:43.000Z | 2021-06-10T15:25:19.000Z | from __future__ import absolute_import
from django.conf import settings
def globals(request):
return {"request": request, "settings": settings}
| 18.875 | 53 | 0.768212 | 18 | 151 | 6.166667 | 0.611111 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145695 | 151 | 7 | 54 | 21.571429 | 0.860465 | 0 | 0 | 0 | 0 | 0 | 0.099338 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.25 | false | 0 | 0.5 | 0.25 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
0a80b1df9a79217613fe22440ab205508918d436 | 9,163 | py | Python | tests/api/test_channel_feed.py | BoraxTheClean/python-twitch-client | c26fbbaf4448f71ab95e8017b8ed0b7a9f614045 | [
"MIT"
] | null | null | null | tests/api/test_channel_feed.py | BoraxTheClean/python-twitch-client | c26fbbaf4448f71ab95e8017b8ed0b7a9f614045 | [
"MIT"
] | null | null | null | tests/api/test_channel_feed.py | BoraxTheClean/python-twitch-client | c26fbbaf4448f71ab95e8017b8ed0b7a9f614045 | [
"MIT"
] | null | null | null | import json
import pytest
import responses
from twitch.client import TwitchClient
from twitch.constants import BASE_URL
from twitch.exceptions import TwitchAttributeException
from twitch.resources import Comment, Post
# Note: comment doesn't have id prefixed with _ for some reason
example_comment = {
"id": "132629",
"body": "Hey there! KappaHD",
"created_at": "2016-11-29T15:52:27Z",
}
# Note: post doesn't have id prefixed with _ for some reason
example_post = {
"id": "443228891479487861",
"body": "News feed post!",
"comments": {
"_cursor": "1480434747093939000",
"_total": 1,
"comments": [example_comment],
},
"created_at": "2016-11-18T16:51:01Z",
}
@responses.activate
def test_get_posts():
channel_id = "1234"
response = {
"_cursor": "1479487861147094000",
"_topic": "feeds.channel.44322889",
"posts": [example_post],
}
responses.add(
responses.GET,
"{}feed/{}/posts".format(BASE_URL, channel_id),
body=json.dumps(response),
status=200,
content_type="application/json",
)
client = TwitchClient("client id")
posts = client.channel_feed.get_posts(channel_id)
assert len(responses.calls) == 1
assert len(posts) == 1
post = posts[0]
assert isinstance(post, Post)
assert post.id == example_post["id"]
assert post.body == example_post["body"]
@responses.activate
@pytest.mark.parametrize("param,value", [("limit", 101), ("comments", 6)])
def test_get_posts_raises_if_wrong_params_are_passed_in(param, value):
client = TwitchClient("client id")
kwargs = {param: value}
with pytest.raises(TwitchAttributeException):
client.channel_feed.get_posts("1234", **kwargs)
@responses.activate
def test_get_post():
channel_id = "1234"
post_id = example_post["id"]
responses.add(
responses.GET,
"{}feed/{}/posts/{}".format(BASE_URL, channel_id, post_id),
body=json.dumps(example_post),
status=200,
content_type="application/json",
)
client = TwitchClient("client id")
post = client.channel_feed.get_post(channel_id, post_id)
assert len(responses.calls) == 1
assert isinstance(post, Post)
assert post.id == example_post["id"]
assert post.body == example_post["body"]
@responses.activate
@pytest.mark.parametrize("param,value", [("comments", 6)])
def test_get_post_raises_if_wrong_params_are_passed_in(param, value):
client = TwitchClient("client id")
kwargs = {param: value}
with pytest.raises(TwitchAttributeException):
client.channel_feed.get_post("1234", example_post["id"], **kwargs)
@responses.activate
def test_create_post():
channel_id = "1234"
response = {"post": example_post, "tweet": None}
responses.add(
responses.POST,
"{}feed/{}/posts".format(BASE_URL, channel_id),
body=json.dumps(response),
status=200,
content_type="application/json",
)
client = TwitchClient("client id", "oauth token")
post = client.channel_feed.create_post(channel_id, "abcd")
assert len(responses.calls) == 1
assert isinstance(post, Post)
assert post.id == example_post["id"]
assert post.body == example_post["body"]
@responses.activate
def test_delete_post():
channel_id = "1234"
post_id = example_post["id"]
responses.add(
responses.DELETE,
"{}feed/{}/posts/{}".format(BASE_URL, channel_id, post_id),
body=json.dumps(example_post),
status=200,
content_type="application/json",
)
client = TwitchClient("client id", "oauth token")
post = client.channel_feed.delete_post(channel_id, post_id)
assert len(responses.calls) == 1
assert isinstance(post, Post)
assert post.id == example_post["id"]
@responses.activate
def test_create_reaction_to_post():
channel_id = "1234"
post_id = example_post["id"]
response = {
"id": "24989127",
"emote_id": "25",
"user": {},
"created_at": "2016-11-29T15:51:12Z",
}
responses.add(
responses.POST,
"{}feed/{}/posts/{}/reactions".format(BASE_URL, channel_id, post_id),
body=json.dumps(response),
status=200,
content_type="application/json",
)
client = TwitchClient("client id", "oauth token")
response = client.channel_feed.create_reaction_to_post(
channel_id, post_id, response["emote_id"]
)
assert len(responses.calls) == 1
assert response["id"]
@responses.activate
def test_delete_reaction_to_post():
channel_id = "1234"
post_id = example_post["id"]
body = {"deleted": True}
responses.add(
responses.DELETE,
"{}feed/{}/posts/{}/reactions".format(BASE_URL, channel_id, post_id),
body=json.dumps(body),
status=200,
content_type="application/json",
)
client = TwitchClient("client id", "oauth token")
response = client.channel_feed.delete_reaction_to_post(channel_id, post_id, "1234")
assert len(responses.calls) == 1
assert response["deleted"]
@responses.activate
def test_get_post_comments():
channel_id = "1234"
post_id = example_post["id"]
response = {
"_cursor": "1480651694954867000",
"_total": 1,
"comments": [example_comment],
}
responses.add(
responses.GET,
"{}feed/{}/posts/{}/comments".format(BASE_URL, channel_id, post_id),
body=json.dumps(response),
status=200,
content_type="application/json",
)
client = TwitchClient("client id")
comments = client.channel_feed.get_post_comments(channel_id, post_id)
assert len(responses.calls) == 1
assert len(comments) == 1
comment = comments[0]
assert isinstance(comment, Comment)
assert comment.id == example_comment["id"]
assert comment.body == example_comment["body"]
@responses.activate
@pytest.mark.parametrize("param,value", [("limit", 101)])
def test_get_post_comments_raises_if_wrong_params_are_passed_in(param, value):
client = TwitchClient("client id")
kwargs = {param: value}
with pytest.raises(TwitchAttributeException):
client.channel_feed.get_post_comments("1234", example_post["id"], **kwargs)
@responses.activate
def test_create_post_comment():
channel_id = "1234"
post_id = example_post["id"]
responses.add(
responses.POST,
"{}feed/{}/posts/{}/comments".format(BASE_URL, channel_id, post_id),
body=json.dumps(example_comment),
status=200,
content_type="application/json",
)
client = TwitchClient("client id", "oauth token")
comment = client.channel_feed.create_post_comment(channel_id, post_id, "abcd")
assert len(responses.calls) == 1
assert isinstance(comment, Comment)
assert comment.id == example_comment["id"]
assert comment.body == example_comment["body"]
@responses.activate
def test_delete_post_comment():
channel_id = "1234"
post_id = example_post["id"]
comment_id = example_comment["id"]
responses.add(
responses.DELETE,
"{}feed/{}/posts/{}/comments/{}".format(
BASE_URL, channel_id, post_id, comment_id
),
body=json.dumps(example_comment),
status=200,
content_type="application/json",
)
client = TwitchClient("client id", "oauth token")
comment = client.channel_feed.delete_post_comment(channel_id, post_id, comment_id)
assert len(responses.calls) == 1
assert isinstance(comment, Comment)
assert comment.id == example_comment["id"]
@responses.activate
def test_create_reaction_to_comment():
channel_id = "1234"
post_id = example_post["id"]
comment_id = example_comment["id"]
body = {
"created_at": "2016-12-02T04:26:47Z",
"emote_id": "1",
"id": "1341393b-e872-4554-9f6f-acd5f8b669fc",
"user": {},
}
url = "{}feed/{}/posts/{}/comments/{}/reactions".format(
BASE_URL, channel_id, post_id, comment_id
)
responses.add(
responses.POST,
url,
body=json.dumps(body),
status=200,
content_type="application/json",
)
client = TwitchClient("client id", "oauth token")
response = client.channel_feed.create_reaction_to_comment(
channel_id, post_id, comment_id, "1"
)
assert len(responses.calls) == 1
assert response["id"]
@responses.activate
def test_delete_reaction_to_comment():
channel_id = "1234"
post_id = example_post["id"]
comment_id = example_comment["id"]
body = {"deleted": True}
url = "{}feed/{}/posts/{}/comments/{}/reactions".format(
BASE_URL, channel_id, post_id, comment_id
)
responses.add(
responses.DELETE,
url,
body=json.dumps(body),
status=200,
content_type="application/json",
)
client = TwitchClient("client id", "oauth token")
response = client.channel_feed.delete_reaction_to_comment(
channel_id, post_id, comment_id, "1"
)
assert len(responses.calls) == 1
assert response["deleted"]
| 27.516517 | 87 | 0.650005 | 1,094 | 9,163 | 5.221207 | 0.106947 | 0.04937 | 0.040966 | 0.047269 | 0.871499 | 0.822654 | 0.781162 | 0.758754 | 0.732143 | 0.720413 | 0 | 0.041181 | 0.212922 | 9,163 | 332 | 88 | 27.599398 | 0.750832 | 0.013096 | 0 | 0.659091 | 0 | 0 | 0.146792 | 0.030752 | 0 | 0 | 0 | 0 | 0.136364 | 1 | 0.05303 | false | 0.011364 | 0.026515 | 0 | 0.079545 | 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 | 0 | 0 | 0 | 6 |
0aefca891d2336fa13090c10dbb695b030b1cd8f | 82 | py | Python | __init__.py | francisc112/fmp_quant | d5033cc9c230615147ebfb49c0eeb125e19d9088 | [
"MIT"
] | null | null | null | __init__.py | francisc112/fmp_quant | d5033cc9c230615147ebfb49c0eeb125e19d9088 | [
"MIT"
] | null | null | null | __init__.py | francisc112/fmp_quant | d5033cc9c230615147ebfb49c0eeb125e19d9088 | [
"MIT"
] | null | null | null | from .FMP_Connect import FMP_CONNECTION
from .FMP_TARGET_PRICE import Target_Price | 41 | 42 | 0.890244 | 13 | 82 | 5.230769 | 0.538462 | 0.205882 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.085366 | 82 | 2 | 42 | 41 | 0.906667 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
7c3cbaa8d7c37df80d0e49e24f800407f0049302 | 15,791 | py | Python | timeseria/tests/test_operations.py | sarusso/Timeseria | fdf9990ab68e20f75a64f090a2c43979266dcba9 | [
"Apache-2.0"
] | 8 | 2021-01-02T17:43:13.000Z | 2022-02-22T09:07:22.000Z | timeseria/tests/test_operations.py | sarusso/Timeseria | fdf9990ab68e20f75a64f090a2c43979266dcba9 | [
"Apache-2.0"
] | 20 | 2020-07-15T11:29:41.000Z | 2022-03-29T22:51:52.000Z | timeseria/tests/test_operations.py | sarusso/Timeseria | fdf9990ab68e20f75a64f090a2c43979266dcba9 | [
"Apache-2.0"
] | null | null | null | import unittest
import os
from ..datastructures import TimePoint, DataTimePoint, DataTimeSlotSeries, DataTimeSlot
from ..datastructures import TimePointSeries, DataTimePointSeries
from ..operations import derivative, integral, diff, csum, min, max, avg, filter, select, mavg
from ..operations import Operation
# Setup logging
import logging
logging.basicConfig(level=os.environ.get('LOGLEVEL') if os.environ.get('LOGLEVEL') else 'CRITICAL')
class TestBaseOpertions(unittest.TestCase):
def test_base(self):
operation_from_callable = Operation()
self.assertEqual(operation_from_callable.__name__, 'operation')
def operation_as_function(data):
pass
self.assertEqual(operation_as_function.__name__, 'operation_as_function')
class TestMathOperations(unittest.TestCase):
def test_diff_csum(self):
# Test data
data_time_slot_series = DataTimeSlotSeries()
data_time_slot_series.append(DataTimeSlot(start=TimePoint(0), end=TimePoint(60), data={'value':10}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(60), end=TimePoint(120), data={'value':12}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(120), end=TimePoint(180), data={'value':15}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(180), end=TimePoint(240), data={'value':16}))
# Test standard, from the series
diff_data_time_slot_series = diff(data_time_slot_series)
self.assertEqual(len(diff_data_time_slot_series), 4)
self.assertEqual(diff_data_time_slot_series[0].data['value_diff'],0) # 2?
self.assertEqual(diff_data_time_slot_series[1].data['value_diff'],2)
self.assertEqual(diff_data_time_slot_series[2].data['value_diff'],3)
self.assertEqual(diff_data_time_slot_series[3].data['value_diff'],1)
# Test csum as well
diff_csum_data_time_slot_series = csum(diff_data_time_slot_series, offset=10)
self.assertEqual(diff_csum_data_time_slot_series[0].data['value_diff_csum'], 10)
self.assertEqual(diff_csum_data_time_slot_series[1].data['value_diff_csum'], 12)
self.assertEqual(diff_csum_data_time_slot_series[2].data['value_diff_csum'], 15)
self.assertEqual(diff_csum_data_time_slot_series[3].data['value_diff_csum'], 16)
# Test standalone
self.assertEqual(len(diff(data_time_slot_series)), 4)
# Test in-place behavior
diff(data_time_slot_series, inplace=True)
self.assertEqual(len(data_time_slot_series), 4)
self.assertEqual(data_time_slot_series[0].data['value'],10)
self.assertEqual(data_time_slot_series[0].data['value_diff'],0)
self.assertEqual(data_time_slot_series[1].data['value'],12)
self.assertEqual(data_time_slot_series[1].data['value_diff'],2)
self.assertEqual(data_time_slot_series[2].data['value'],15)
self.assertEqual(data_time_slot_series[2].data['value_diff'],3)
self.assertEqual(data_time_slot_series[3].data['value'],16)
self.assertEqual(data_time_slot_series[3].data['value_diff'],1)
# Multi-key Test data
data_time_point_series = DataTimePointSeries()
data_time_point_series.append(DataTimePoint(t=0, data={'value':10, 'another_value': 75}))
data_time_point_series.append(DataTimePoint(t=60, data={'value':12, 'another_value': 65}))
data_time_point_series.append(DataTimePoint(t=120, data={'value':6, 'another_value': 32}))
data_time_point_series.append(DataTimePoint(t=180, data={'value':16, 'another_value': 10}))
diff_data_time_point_series = data_time_point_series.diff()
self.assertEqual(diff_data_time_point_series[0].data['value_diff'],0)
self.assertEqual(diff_data_time_point_series[0].data['another_value_diff'],0)
self.assertEqual(diff_data_time_point_series[1].data['value_diff'],2)
self.assertEqual(diff_data_time_point_series[1].data['another_value_diff'],-10)
# Test offset
diff_csum_data_time_point_series = diff_data_time_point_series.csum(offset={'value_diff':10, 'another_value_diff':75})
self.assertEqual(diff_csum_data_time_point_series[0].data['value_diff_csum'],10)
self.assertEqual(diff_csum_data_time_point_series[0].data['another_value_diff_csum'],75)
self.assertEqual(diff_csum_data_time_point_series[3].data['value_diff_csum'],16)
self.assertEqual(diff_csum_data_time_point_series[3].data['another_value_diff_csum'],10)
def test_derivative_integral(self):
# Test data
data_time_slot_series = DataTimeSlotSeries()
data_time_slot_series.append(DataTimeSlot(start=TimePoint(0), end=TimePoint(1), data={'value':10}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(1), end=TimePoint(2), data={'value':12}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(2), end=TimePoint(3), data={'value':15}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(3), end=TimePoint(4), data={'value':16}))
# Test standard derivativeative behavior, from the series
derivative_data_time_slot_series = derivative(data_time_slot_series)
self.assertEqual(len(derivative_data_time_slot_series), 4)
self.assertAlmostEqual(derivative_data_time_slot_series[0].data['value_derivative'],2) # 0
self.assertAlmostEqual(derivative_data_time_slot_series[1].data['value_derivative'],2.5) # 2
self.assertAlmostEqual(derivative_data_time_slot_series[2].data['value_derivative'],2) # 5
self.assertAlmostEqual(derivative_data_time_slot_series[3].data['value_derivative'],1.0) # 6
# Test integral as well
derivative_integral_data_time_slot_series = integral(derivative_data_time_slot_series, c=10)
self.assertEqual(derivative_integral_data_time_slot_series[0].data['value_derivative_integral'], 10)
self.assertEqual(derivative_integral_data_time_slot_series[1].data['value_derivative_integral'], 12)
self.assertEqual(derivative_integral_data_time_slot_series[2].data['value_derivative_integral'], 15)
self.assertEqual(derivative_integral_data_time_slot_series[3].data['value_derivative_integral'], 16)
# Test data
data_time_slot_series = DataTimeSlotSeries()
data_time_slot_series.append(DataTimeSlot(start=TimePoint(0), end=TimePoint(10), data={'value':10}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(10), end=TimePoint(20), data={'value':12}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(20), end=TimePoint(30), data={'value':15}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(30), end=TimePoint(40), data={'value':16}))
# Test standard derivativeative behavior, from the series
derivative_data_time_slot_series = derivative(data_time_slot_series)
self.assertEqual(len(derivative_data_time_slot_series), 4)
self.assertAlmostEqual(derivative_data_time_slot_series[0].data['value_derivative'],0.2)
self.assertAlmostEqual(derivative_data_time_slot_series[1].data['value_derivative'],0.25)
self.assertAlmostEqual(derivative_data_time_slot_series[2].data['value_derivative'],0.2)
self.assertAlmostEqual(derivative_data_time_slot_series[3].data['value_derivative'],0.1)
# Multi-key Test data
data_time_point_series = DataTimePointSeries()
data_time_point_series.append(DataTimePoint(t=0, data={'value':10, 'another_value': 75}))
data_time_point_series.append(DataTimePoint(t=10, data={'value':12, 'another_value': 65}))
data_time_point_series.append(DataTimePoint(t=20, data={'value':6, 'another_value': 32}))
data_time_point_series.append(DataTimePoint(t=30, data={'value':16, 'another_value': 10}))
derivative_data_time_point_series = data_time_point_series.derivative()
self.assertAlmostEqual(derivative_data_time_point_series[0].data['value_derivative'],0.2)
self.assertAlmostEqual(derivative_data_time_point_series[0].data['another_value_derivative'],-1.0)
self.assertAlmostEqual(derivative_data_time_point_series[1].data['value_derivative'],-0.2)
self.assertAlmostEqual(derivative_data_time_point_series[1].data['another_value_derivative'],-2.15)
# Test derivative-integral identity with ther data
data_time_slot_series = DataTimeSlotSeries()
data_time_slot_series.append(DataTimeSlot(start=TimePoint(0), end=TimePoint(1), data={'value':0}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(1), end=TimePoint(2), data={'value':6}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(2), end=TimePoint(3), data={'value':14}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(3), end=TimePoint(4), data={'value':16}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(4), end=TimePoint(5), data={'value':20}))
derivative_data_time_slot_series = data_time_slot_series.derivative()
derivative_integral_data_time_slot_series = derivative_data_time_slot_series.integral()
self.assertAlmostEqual(derivative_integral_data_time_slot_series[0].data['value_derivative_integral'],0)
self.assertAlmostEqual(derivative_integral_data_time_slot_series[1].data['value_derivative_integral'],6)
self.assertAlmostEqual(derivative_integral_data_time_slot_series[2].data['value_derivative_integral'],14)
self.assertAlmostEqual(derivative_integral_data_time_slot_series[3].data['value_derivative_integral'],16)
self.assertAlmostEqual(derivative_integral_data_time_slot_series[4].data['value_derivative_integral'],20)
def test_mavg(self):
data_time_slot_series = DataTimeSlotSeries()
data_time_slot_series.append(DataTimeSlot(start=TimePoint(0), end=TimePoint(1), data={'value':2}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(1), end=TimePoint(2), data={'value':4}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(2), end=TimePoint(3), data={'value':8}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(3), end=TimePoint(4), data={'value':16}))
mavg_data_time_slot_series = mavg(data_time_slot_series, 2)
self.assertEqual(mavg_data_time_slot_series[0].data['value_mavg_2'], 3)
self.assertEqual(mavg_data_time_slot_series[1].data['value_mavg_2'], 6)
self.assertEqual(mavg_data_time_slot_series[2].data['value_mavg_2'], 12)
self.assertEqual(mavg_data_time_slot_series[0].t, 1)
self.assertEqual(mavg_data_time_slot_series[1].t, 2)
self.assertEqual(mavg_data_time_slot_series[2].t, 3)
def test_min_max_avg(self):
# Test Python built-in default behaviour
self.assertEqual(str(min), 'Min operation')
self.assertEqual(min([1,2,3]),1)
self.assertEqual(str(max), 'Max operation')
self.assertEqual(max([1,2,3]),3)
# Test data
data_time_slot_series = DataTimeSlotSeries()
data_time_slot_series.append(DataTimeSlot(start=TimePoint(0), end=TimePoint(60), data={'value':10}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(60), end=TimePoint(120), data={'value':12}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(120), end=TimePoint(180), data={'value':6}))
data_time_slot_series.append(DataTimeSlot(start=TimePoint(180), end=TimePoint(240), data={'value':16}))
# Test standalone
self.assertEqual(min(data_time_slot_series), 6)
self.assertEqual(max(data_time_slot_series), 16)
self.assertEqual(avg(data_time_slot_series), 11)
# Test from the series
self.assertEqual(data_time_slot_series.min(), 6)
self.assertEqual(data_time_slot_series.max(), 16)
self.assertEqual(data_time_slot_series.avg(), 11)
# Multi-key Test data
data_time_point_series = DataTimePointSeries()
data_time_point_series.append(DataTimePoint(t=0, data={'value':10, 'another_value': 75}))
data_time_point_series.append(DataTimePoint(t=60, data={'value':12, 'another_value': 65}))
data_time_point_series.append(DataTimePoint(t=120, data={'value':6, 'another_value': 32}))
data_time_point_series.append(DataTimePoint(t=180, data={'value':16, 'another_value': 10}))
self.assertEqual(data_time_point_series.min(), {'value': 6, 'another_value': 10})
self.assertEqual(data_time_point_series.min(key='value'), 6)
self.assertEqual(data_time_point_series.min(key='another_value'), 10)
self.assertEqual(data_time_point_series.max(), {'value': 16, 'another_value': 75})
self.assertEqual(data_time_point_series.max(key='value'), 16)
self.assertEqual(data_time_point_series.max(key='another_value'), 75)
self.assertEqual(data_time_point_series.avg(), {'value': 11, 'another_value': 45.5})
self.assertEqual(data_time_point_series.avg(key='value'), 11)
self.assertEqual(data_time_point_series.avg(key='another_value'), 45.5)
class TestSeriesOperations(unittest.TestCase):
def test_filter(self):
test_time_point_series = TimePointSeries(TimePoint(t=60),TimePoint(t=120),TimePoint(t=130))
# Test from/to filtering
self.assertEqual(len(filter(test_time_point_series, from_t=1, to_t=140)),3)
# Test from/to filtering from the series
self.assertEqual(len(test_time_point_series.filter(from_t=1, to_t=140)),3)
self.assertEqual(len(test_time_point_series.filter(from_t=61, to_t=140)),2)
self.assertEqual(len(test_time_point_series.filter(from_t=61)),2)
self.assertEqual(len(test_time_point_series.filter(to_t=61)),1)
# Test data
data_time_point_series = DataTimePointSeries(DataTimePoint(t=60, data={'a':1, 'b':2}),
DataTimePoint(t=120, data={'a':2, 'b':4}),
DataTimePoint(t=180, data={'a':3, 'b':8}))
# Test get item by string key (filtering on data labels)
self.assertEqual(filter(data_time_point_series, 'b')[0].data, {'b': 2})
# Test get item by string key (filtering on data labels), from the series
self.assertEqual(data_time_point_series.filter('a')[0].data, {'a': 1})
self.assertEqual(data_time_point_series.filter('a')[1].data, {'a': 2})
self.assertEqual(data_time_point_series.filter('a')[2].data, {'a': 3})
self.assertEqual(len(data_time_point_series.filter('a')), 3 )
# Test that we haven't modified the original series
self.assertEqual(data_time_point_series.data_keys(), ['a', 'b'])
self.assertEqual(data_time_point_series[1].data['b'], 4)
def test_select(self):
# Test data
data_time_point_series = DataTimePointSeries()
data_time_point_series.append(DataTimePoint(t=0, data={'value':10, 'another_value': 75}))
data_time_point_series.append(DataTimePoint(t=60, data={'value':12, 'another_value': 65}))
data_time_point_series.append(DataTimePoint(t=120, data={'value':6, 'another_value': 32}))
data_time_point_series.append(DataTimePoint(t=180, data={'value':16, 'another_value': 10}))
# Basic select test
self.assertEqual(select(data_time_point_series, query='another_value=65')[0].t, 60)
self.assertEqual(data_time_point_series.select('"another_value"=65')[0].t, 60)
| 59.364662 | 126 | 0.711608 | 2,120 | 15,791 | 4.970283 | 0.060849 | 0.117681 | 0.111607 | 0.16741 | 0.822056 | 0.789504 | 0.75382 | 0.724684 | 0.629781 | 0.541805 | 0 | 0.036469 | 0.161294 | 15,791 | 265 | 127 | 59.588679 | 0.759136 | 0.050345 | 0 | 0.201117 | 0 | 0 | 0.096448 | 0.022741 | 0 | 0 | 0 | 0 | 0.50838 | 1 | 0.044693 | false | 0.005587 | 0.039106 | 0 | 0.100559 | 0 | 0 | 0 | 0 | null | 0 | 0 | 1 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7c43f97a85a2063711357b1752a5498205189ef0 | 3,933 | py | Python | resources/dot_PyCharm/system/python_stubs/-762174762/PySide/QtGui/QMatrix.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | 1 | 2020-04-20T02:27:20.000Z | 2020-04-20T02:27:20.000Z | resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QMatrix.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | null | null | null | resources/dot_PyCharm/system/python_stubs/cache/8cdc475d469a13122bc4bc6c3ac1c215d93d5f120f5cc1ef33a8f3088ee54d8e/PySide/QtGui/QMatrix.py | basepipe/developer_onboarding | 05b6a776f8974c89517868131b201f11c6c2a5ad | [
"MIT"
] | null | null | null | # encoding: utf-8
# module PySide.QtGui
# from C:\Python27\lib\site-packages\PySide\QtGui.pyd
# by generator 1.147
# no doc
# imports
import PySide.QtCore as __PySide_QtCore
import Shiboken as __Shiboken
class QMatrix(__Shiboken.Object):
# no doc
def det(self, *args, **kwargs): # real signature unknown
pass
def determinant(self, *args, **kwargs): # real signature unknown
pass
def dx(self, *args, **kwargs): # real signature unknown
pass
def dy(self, *args, **kwargs): # real signature unknown
pass
def inverted(self, *args, **kwargs): # real signature unknown
pass
def isIdentity(self, *args, **kwargs): # real signature unknown
pass
def isInvertible(self, *args, **kwargs): # real signature unknown
pass
def m11(self, *args, **kwargs): # real signature unknown
pass
def m12(self, *args, **kwargs): # real signature unknown
pass
def m21(self, *args, **kwargs): # real signature unknown
pass
def m22(self, *args, **kwargs): # real signature unknown
pass
def map(self, *args, **kwargs): # real signature unknown
pass
def mapRect(self, *args, **kwargs): # real signature unknown
pass
def mapToPolygon(self, *args, **kwargs): # real signature unknown
pass
def reset(self, *args, **kwargs): # real signature unknown
pass
def rotate(self, *args, **kwargs): # real signature unknown
pass
def scale(self, *args, **kwargs): # real signature unknown
pass
def setMatrix(self, *args, **kwargs): # real signature unknown
pass
def shear(self, *args, **kwargs): # real signature unknown
pass
def translate(self, *args, **kwargs): # real signature unknown
pass
def __copy__(self, *args, **kwargs): # real signature unknown
pass
def __eq__(self, y): # real signature unknown; restored from __doc__
""" x.__eq__(y) <==> x==y """
pass
def __ge__(self, y): # real signature unknown; restored from __doc__
""" x.__ge__(y) <==> x>=y """
pass
def __gt__(self, y): # real signature unknown; restored from __doc__
""" x.__gt__(y) <==> x>y """
pass
def __init__(self, *args, **kwargs): # real signature unknown
pass
def __le__(self, y): # real signature unknown; restored from __doc__
""" x.__le__(y) <==> x<=y """
pass
def __lshift__(self, y): # real signature unknown; restored from __doc__
""" x.__lshift__(y) <==> x<<y """
pass
def __lt__(self, y): # real signature unknown; restored from __doc__
""" x.__lt__(y) <==> x<y """
pass
def __mul__(self, y): # real signature unknown; restored from __doc__
""" x.__mul__(y) <==> x*y """
pass
@staticmethod # known case of __new__
def __new__(S, *more): # real signature unknown; restored from __doc__
""" T.__new__(S, ...) -> a new object with type S, a subtype of T """
pass
def __ne__(self, y): # real signature unknown; restored from __doc__
""" x.__ne__(y) <==> x!=y """
pass
def __reduce__(self, *args, **kwargs): # real signature unknown
pass
def __repr__(self): # real signature unknown; restored from __doc__
""" x.__repr__() <==> repr(x) """
pass
def __rlshift__(self, y): # real signature unknown; restored from __doc__
""" x.__rlshift__(y) <==> y<<x """
pass
def __rmul__(self, y): # real signature unknown; restored from __doc__
""" x.__rmul__(y) <==> y*x """
pass
def __rrshift__(self, y): # real signature unknown; restored from __doc__
""" x.__rrshift__(y) <==> y>>x """
pass
def __rshift__(self, y): # real signature unknown; restored from __doc__
""" x.__rshift__(y) <==> x>>y """
pass
| 27.893617 | 77 | 0.59166 | 480 | 3,933 | 4.45 | 0.179167 | 0.225187 | 0.346442 | 0.19382 | 0.751873 | 0.705056 | 0.68867 | 0.671816 | 0.230337 | 0 | 0 | 0.005261 | 0.275108 | 3,933 | 140 | 78 | 28.092857 | 0.743949 | 0.43402 | 0 | 0.474359 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.474359 | false | 0.474359 | 0.025641 | 0 | 0.512821 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
7c521be438d2b5a80ba166ec81284396741309bd | 8,726 | py | Python | tests/functional/test_patch_fixture/test_services_available.py | krigar1184/pytest-localstack | 47a69973c3efb8b469017f7bae9e72405aaeef98 | [
"MIT"
] | null | null | null | tests/functional/test_patch_fixture/test_services_available.py | krigar1184/pytest-localstack | 47a69973c3efb8b469017f7bae9e72405aaeef98 | [
"MIT"
] | null | null | null | tests/functional/test_patch_fixture/test_services_available.py | krigar1184/pytest-localstack | 47a69973c3efb8b469017f7bae9e72405aaeef98 | [
"MIT"
] | null | null | null | """Test all services accessible for pytest_localstack.patch_fixture."""
import boto3
import botocore
import pytest_localstack
localstack = pytest_localstack.patch_fixture(scope="module", autouse=True)
def _assert_key_isinstance(result, key, type):
assert key in result
assert isinstance(result[key], type)
class TestBotocore:
"""Test service accessibility via botocore."""
@property
def session(self):
if not hasattr(self, "_session"):
self._session = botocore.session.get_session()
return self._session
def client(self, *args, **kwargs):
return self.session.create_client(*args, **kwargs)
def test_apigateway_available(self):
client = self.client("apigateway")
result = client.get_rest_apis()
assert result["items"] == []
def test_cloudformation_available(self):
client = self.client("cloudformation")
result = client.list_stacks(
StackStatusFilter=[
"CREATE_IN_PROGRESS",
"CREATE_FAILED",
"CREATE_COMPLETE",
"ROLLBACK_IN_PROGRESS",
"ROLLBACK_FAILED",
"ROLLBACK_COMPLETE",
"DELETE_IN_PROGRESS",
"DELETE_FAILED",
"DELETE_COMPLETE",
"UPDATE_IN_PROGRESS",
"UPDATE_COMPLETE_CLEANUP_IN_PROGRESS",
"UPDATE_COMPLETE",
"UPDATE_ROLLBACK_IN_PROGRESS",
"UPDATE_ROLLBACK_FAILED",
"UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS",
"UPDATE_ROLLBACK_COMPLETE",
"REVIEW_IN_PROGRESS",
]
)
_assert_key_isinstance(result, "StackSummaries", list)
def test_cloudwatch_available(self):
client = self.client("cloudwatch")
result = client.list_metrics()
_assert_key_isinstance(result, "Metrics", list)
def test_dynamodb_available(self):
client = self.client("dynamodb")
result = client.list_tables()
_assert_key_isinstance(result, "TableNames", list)
def test_dynamodbstreams_available(self):
client = self.client("dynamodbstreams")
result = client.list_streams()
_assert_key_isinstance(result, "Streams", list)
def test_es_available(self):
client = self.client("es")
result = client.list_domain_names()
_assert_key_isinstance(result, "DomainNames", list)
def test_firehose_available(self):
client = self.client("firehose")
result = client.list_delivery_streams()
_assert_key_isinstance(result, "DeliveryStreamNames", list)
def test_kinesis_available(self):
client = self.client("kinesis")
result = client.list_streams()
_assert_key_isinstance(result, "StreamNames", list)
def test_lambda_available(self):
client = self.client("lambda")
result = client.list_functions()
_assert_key_isinstance(result, "Functions", list)
def test_redshift_available(self):
client = self.client("redshift")
result = client.describe_clusters()
_assert_key_isinstance(result, "Clusters", list)
def test_route53_available(self):
client = self.client("route53")
result = client.list_hosted_zones()
_assert_key_isinstance(result, "HostedZones", list)
def test_s3_available(self):
client = self.client("s3")
result = client.list_buckets()
_assert_key_isinstance(result, "Buckets", list)
def test_ses_available(self):
client = self.client("ses")
result = client.list_identities()
_assert_key_isinstance(result, "Identities", list)
def test_sns_available(self):
client = self.client("sns")
result = client.list_topics()
_assert_key_isinstance(result, "Topics", list)
def test_sqs_available(self):
client = self.client("sqs")
result = client.list_queues()
assert "ResponseMetadata" in result
assert "HTTPStatusCode" in result["ResponseMetadata"]
assert result["ResponseMetadata"]["HTTPStatusCode"] == 200
class TestBoto3Clients:
"""Test service accessibility via boto3 clients."""
def test_apigateway_available(self):
client = boto3.client("apigateway")
result = client.get_rest_apis()
assert result["items"] == []
def test_cloudformation_available(self):
client = boto3.client("cloudformation")
result = client.list_stacks(
StackStatusFilter=[
"CREATE_IN_PROGRESS",
"CREATE_FAILED",
"CREATE_COMPLETE",
"ROLLBACK_IN_PROGRESS",
"ROLLBACK_FAILED",
"ROLLBACK_COMPLETE",
"DELETE_IN_PROGRESS",
"DELETE_FAILED",
"DELETE_COMPLETE",
"UPDATE_IN_PROGRESS",
"UPDATE_COMPLETE_CLEANUP_IN_PROGRESS",
"UPDATE_COMPLETE",
"UPDATE_ROLLBACK_IN_PROGRESS",
"UPDATE_ROLLBACK_FAILED",
"UPDATE_ROLLBACK_COMPLETE_CLEANUP_IN_PROGRESS",
"UPDATE_ROLLBACK_COMPLETE",
"REVIEW_IN_PROGRESS",
]
)
_assert_key_isinstance(result, "StackSummaries", list)
def test_cloudwatch_available(self):
client = boto3.client("cloudwatch")
result = client.list_metrics()
_assert_key_isinstance(result, "Metrics", list)
def test_dynamodb_available(self):
client = boto3.client("dynamodb")
result = client.list_tables()
_assert_key_isinstance(result, "TableNames", list)
def test_dynamodbstreams_available(self):
client = boto3.client("dynamodbstreams")
result = client.list_streams()
_assert_key_isinstance(result, "Streams", list)
def test_es_available(self):
client = boto3.client("es")
result = client.list_domain_names()
_assert_key_isinstance(result, "DomainNames", list)
def test_firehose_available(self):
client = boto3.client("firehose")
result = client.list_delivery_streams()
_assert_key_isinstance(result, "DeliveryStreamNames", list)
def test_kinesis_available(self):
client = boto3.client("kinesis")
result = client.list_streams()
_assert_key_isinstance(result, "StreamNames", list)
def test_lambda_available(self):
client = boto3.client("lambda")
result = client.list_functions()
_assert_key_isinstance(result, "Functions", list)
def test_redshift_available(self):
client = boto3.client("redshift")
result = client.describe_clusters()
_assert_key_isinstance(result, "Clusters", list)
def test_route53_available(self):
client = boto3.client("route53")
result = client.list_hosted_zones()
_assert_key_isinstance(result, "HostedZones", list)
def test_s3_available(self):
client = boto3.client("s3")
result = client.list_buckets()
_assert_key_isinstance(result, "Buckets", list)
def test_ses_available(self):
client = boto3.client("ses")
result = client.list_identities()
_assert_key_isinstance(result, "Identities", list)
def test_sns_available(self):
client = boto3.client("sns")
result = client.list_topics()
_assert_key_isinstance(result, "Topics", list)
def test_sqs_available(self):
client = boto3.client("sqs")
result = client.list_queues()
assert "ResponseMetadata" in result
assert "HTTPStatusCode" in result["ResponseMetadata"]
assert result["ResponseMetadata"]["HTTPStatusCode"] == 200
class TestBoto3Resources:
"""Test service accessibility via boto3 resources."""
def test_cloudformation_available(self):
cloudformation = boto3.resource("cloudformation")
assert isinstance(list(cloudformation.stacks.all()), list)
def test_cloudwatch_available(self):
cloudwatch = boto3.resource("cloudwatch")
assert isinstance(list(cloudwatch.alarms.all()), list)
def test_dynamodb_available(self):
dynamodb = boto3.resource("dynamodb")
assert isinstance(list(dynamodb.tables.all()), list)
def test_s3_available(self):
s3 = boto3.resource("s3")
assert isinstance(list(s3.buckets.all()), list)
def test_sns_available(self):
sns = boto3.resource("sns")
assert isinstance(list(sns.topics.all()), list)
def test_sqs_available(self):
sqs = boto3.resource("sqs")
assert isinstance(list(sqs.queues.all()), list)
| 34.626984 | 74 | 0.642333 | 880 | 8,726 | 6.065909 | 0.113636 | 0.084301 | 0.063882 | 0.126452 | 0.834582 | 0.790933 | 0.750094 | 0.750094 | 0.750094 | 0.750094 | 0 | 0.007381 | 0.254756 | 8,726 | 251 | 75 | 34.76494 | 0.813471 | 0.02292 | 0 | 0.683417 | 0 | 0 | 0.162493 | 0.035744 | 0 | 0 | 0 | 0 | 0.21608 | 1 | 0.19598 | false | 0 | 0.015075 | 0.005025 | 0.236181 | 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 | 0 | 0 | 0 | 6 |
7c7cd3d553f9ecbaffd3a354f1f90c8f501da9d0 | 136 | py | Python | CLCC/ex3.py | adstr123/LPTHW | 1a331ef173ffd6122b5c5ed13d8fdcc73ab7ce66 | [
"Zed"
] | null | null | null | CLCC/ex3.py | adstr123/LPTHW | 1a331ef173ffd6122b5c5ed13d8fdcc73ab7ce66 | [
"Zed"
] | null | null | null | CLCC/ex3.py | adstr123/LPTHW | 1a331ef173ffd6122b5c5ed13d8fdcc73ab7ce66 | [
"Zed"
] | null | null | null | # Return to home directory at any time
#pwd # (print current directory so you know where you are)
#cd ~ # (return to home directory) | 34 | 59 | 0.713235 | 22 | 136 | 4.409091 | 0.727273 | 0.164948 | 0.247423 | 0.43299 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.213235 | 136 | 4 | 60 | 34 | 0.906542 | 0.911765 | 0 | null | 0 | null | 0 | 0 | null | 0 | 0 | 0 | null | 1 | null | true | 0 | 0 | null | null | null | 1 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
7c83ffbc47156fa8379371380241686d836a42bd | 57,301 | py | Python | tests/timezones/tests.py | andreip/django | c61d1361d027a729d07d277879950ff133c19f4c | [
"PSF-2.0",
"BSD-3-Clause"
] | 2 | 2020-09-25T04:02:25.000Z | 2020-10-15T00:01:00.000Z | tests/timezones/tests.py | seanfagan/django | 66bbde6819586cc3a75630e12e569dc8ae72f211 | [
"PSF-2.0",
"BSD-3-Clause"
] | null | null | null | tests/timezones/tests.py | seanfagan/django | 66bbde6819586cc3a75630e12e569dc8ae72f211 | [
"PSF-2.0",
"BSD-3-Clause"
] | 1 | 2020-10-15T00:01:13.000Z | 2020-10-15T00:01:13.000Z | import datetime
import re
import sys
import warnings
from contextlib import contextmanager
from unittest import SkipTest, skipIf
from xml.dom.minidom import parseString
import pytz
from django.contrib.auth.models import User
from django.core import serializers
from django.core.exceptions import ImproperlyConfigured
from django.db import connection, connections
from django.db.models import F, Max, Min
from django.http import HttpRequest
from django.template import (
Context, RequestContext, Template, TemplateSyntaxError, context_processors,
)
from django.test import (
SimpleTestCase, TestCase, TransactionTestCase, override_settings,
skipIfDBFeature, skipUnlessDBFeature,
)
from django.test.utils import requires_tz_support
from django.urls import reverse
from django.utils import timezone
from django.utils.timezone import timedelta
from .forms import (
EventForm, EventLocalizedForm, EventLocalizedModelForm, EventModelForm,
EventSplitForm,
)
from .models import (
AllDayEvent, Event, MaybeEvent, Session, SessionEvent, Timestamp,
)
# These tests use the EAT (Eastern Africa Time) and ICT (Indochina Time)
# who don't have Daylight Saving Time, so we can represent them easily
# with FixedOffset, and use them directly as tzinfo in the constructors.
# settings.TIME_ZONE is forced to EAT. Most tests use a variant of
# datetime.datetime(2011, 9, 1, 13, 20, 30), which translates to
# 10:20:30 in UTC and 17:20:30 in ICT.
UTC = timezone.utc
EAT = timezone.get_fixed_timezone(180) # Africa/Nairobi
ICT = timezone.get_fixed_timezone(420) # Asia/Bangkok
@override_settings(TIME_ZONE='Africa/Nairobi', USE_TZ=False)
class LegacyDatabaseTests(TestCase):
def test_naive_datetime(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30)
Event.objects.create(dt=dt)
event = Event.objects.get()
self.assertEqual(event.dt, dt)
@skipUnlessDBFeature('supports_microsecond_precision')
def test_naive_datetime_with_microsecond(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, 405060)
Event.objects.create(dt=dt)
event = Event.objects.get()
self.assertEqual(event.dt, dt)
@skipIfDBFeature('supports_microsecond_precision')
def test_naive_datetime_with_microsecond_unsupported(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, 405060)
Event.objects.create(dt=dt)
event = Event.objects.get()
# microseconds are lost during a round-trip in the database
self.assertEqual(event.dt, dt.replace(microsecond=0))
@skipUnlessDBFeature('supports_timezones')
def test_aware_datetime_in_local_timezone(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)
Event.objects.create(dt=dt)
event = Event.objects.get()
self.assertIsNone(event.dt.tzinfo)
# interpret the naive datetime in local time to get the correct value
self.assertEqual(event.dt.replace(tzinfo=EAT), dt)
@skipUnlessDBFeature('supports_timezones')
@skipUnlessDBFeature('supports_microsecond_precision')
def test_aware_datetime_in_local_timezone_with_microsecond(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, 405060, tzinfo=EAT)
Event.objects.create(dt=dt)
event = Event.objects.get()
self.assertIsNone(event.dt.tzinfo)
# interpret the naive datetime in local time to get the correct value
self.assertEqual(event.dt.replace(tzinfo=EAT), dt)
# This combination actually never happens.
@skipUnlessDBFeature('supports_timezones')
@skipIfDBFeature('supports_microsecond_precision')
def test_aware_datetime_in_local_timezone_with_microsecond_unsupported(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, 405060, tzinfo=EAT)
Event.objects.create(dt=dt)
event = Event.objects.get()
self.assertIsNone(event.dt.tzinfo)
# interpret the naive datetime in local time to get the correct value
# microseconds are lost during a round-trip in the database
self.assertEqual(event.dt.replace(tzinfo=EAT), dt.replace(microsecond=0))
@skipUnlessDBFeature('supports_timezones')
def test_aware_datetime_in_utc(self):
dt = datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC)
Event.objects.create(dt=dt)
event = Event.objects.get()
self.assertIsNone(event.dt.tzinfo)
# interpret the naive datetime in local time to get the correct value
self.assertEqual(event.dt.replace(tzinfo=EAT), dt)
@skipUnlessDBFeature('supports_timezones')
def test_aware_datetime_in_other_timezone(self):
dt = datetime.datetime(2011, 9, 1, 17, 20, 30, tzinfo=ICT)
Event.objects.create(dt=dt)
event = Event.objects.get()
self.assertIsNone(event.dt.tzinfo)
# interpret the naive datetime in local time to get the correct value
self.assertEqual(event.dt.replace(tzinfo=EAT), dt)
@skipIfDBFeature('supports_timezones')
def test_aware_datetime_unsupported(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)
with self.assertRaises(ValueError):
Event.objects.create(dt=dt)
def test_auto_now_and_auto_now_add(self):
now = datetime.datetime.now()
past = now - datetime.timedelta(seconds=2)
future = now + datetime.timedelta(seconds=2)
Timestamp.objects.create()
ts = Timestamp.objects.get()
self.assertLess(past, ts.created)
self.assertLess(past, ts.updated)
self.assertGreater(future, ts.updated)
self.assertGreater(future, ts.updated)
def test_query_filter(self):
dt1 = datetime.datetime(2011, 9, 1, 12, 20, 30)
dt2 = datetime.datetime(2011, 9, 1, 14, 20, 30)
Event.objects.create(dt=dt1)
Event.objects.create(dt=dt2)
self.assertEqual(Event.objects.filter(dt__gte=dt1).count(), 2)
self.assertEqual(Event.objects.filter(dt__gt=dt1).count(), 1)
self.assertEqual(Event.objects.filter(dt__gte=dt2).count(), 1)
self.assertEqual(Event.objects.filter(dt__gt=dt2).count(), 0)
def test_query_datetime_lookups(self):
Event.objects.create(dt=datetime.datetime(2011, 1, 1, 1, 30, 0))
Event.objects.create(dt=datetime.datetime(2011, 1, 1, 4, 30, 0))
self.assertEqual(Event.objects.filter(dt__year=2011).count(), 2)
self.assertEqual(Event.objects.filter(dt__month=1).count(), 2)
self.assertEqual(Event.objects.filter(dt__day=1).count(), 2)
self.assertEqual(Event.objects.filter(dt__week_day=7).count(), 2)
self.assertEqual(Event.objects.filter(dt__hour=1).count(), 1)
self.assertEqual(Event.objects.filter(dt__minute=30).count(), 2)
self.assertEqual(Event.objects.filter(dt__second=0).count(), 2)
def test_query_aggregation(self):
# Only min and max make sense for datetimes.
Event.objects.create(dt=datetime.datetime(2011, 9, 1, 23, 20, 20))
Event.objects.create(dt=datetime.datetime(2011, 9, 1, 13, 20, 30))
Event.objects.create(dt=datetime.datetime(2011, 9, 1, 3, 20, 40))
result = Event.objects.all().aggregate(Min('dt'), Max('dt'))
self.assertEqual(result, {
'dt__min': datetime.datetime(2011, 9, 1, 3, 20, 40),
'dt__max': datetime.datetime(2011, 9, 1, 23, 20, 20),
})
def test_query_annotation(self):
# Only min and max make sense for datetimes.
morning = Session.objects.create(name='morning')
afternoon = Session.objects.create(name='afternoon')
SessionEvent.objects.create(dt=datetime.datetime(2011, 9, 1, 23, 20, 20), session=afternoon)
SessionEvent.objects.create(dt=datetime.datetime(2011, 9, 1, 13, 20, 30), session=afternoon)
SessionEvent.objects.create(dt=datetime.datetime(2011, 9, 1, 3, 20, 40), session=morning)
morning_min_dt = datetime.datetime(2011, 9, 1, 3, 20, 40)
afternoon_min_dt = datetime.datetime(2011, 9, 1, 13, 20, 30)
self.assertQuerysetEqual(
Session.objects.annotate(dt=Min('events__dt')).order_by('dt'),
[morning_min_dt, afternoon_min_dt],
transform=lambda d: d.dt)
self.assertQuerysetEqual(
Session.objects.annotate(dt=Min('events__dt')).filter(dt__lt=afternoon_min_dt),
[morning_min_dt],
transform=lambda d: d.dt)
self.assertQuerysetEqual(
Session.objects.annotate(dt=Min('events__dt')).filter(dt__gte=afternoon_min_dt),
[afternoon_min_dt],
transform=lambda d: d.dt)
def test_query_datetimes(self):
Event.objects.create(dt=datetime.datetime(2011, 1, 1, 1, 30, 0))
Event.objects.create(dt=datetime.datetime(2011, 1, 1, 4, 30, 0))
self.assertSequenceEqual(Event.objects.datetimes('dt', 'year'), [datetime.datetime(2011, 1, 1, 0, 0, 0)])
self.assertSequenceEqual(Event.objects.datetimes('dt', 'month'), [datetime.datetime(2011, 1, 1, 0, 0, 0)])
self.assertSequenceEqual(Event.objects.datetimes('dt', 'day'), [datetime.datetime(2011, 1, 1, 0, 0, 0)])
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'hour'),
[datetime.datetime(2011, 1, 1, 1, 0, 0),
datetime.datetime(2011, 1, 1, 4, 0, 0)]
)
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'minute'),
[datetime.datetime(2011, 1, 1, 1, 30, 0),
datetime.datetime(2011, 1, 1, 4, 30, 0)]
)
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'second'),
[datetime.datetime(2011, 1, 1, 1, 30, 0),
datetime.datetime(2011, 1, 1, 4, 30, 0)]
)
def test_raw_sql(self):
# Regression test for #17755
dt = datetime.datetime(2011, 9, 1, 13, 20, 30)
event = Event.objects.create(dt=dt)
self.assertEqual(list(Event.objects.raw('SELECT * FROM timezones_event WHERE dt = %s', [dt])), [event])
def test_cursor_execute_accepts_naive_datetime(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30)
with connection.cursor() as cursor:
cursor.execute('INSERT INTO timezones_event (dt) VALUES (%s)', [dt])
event = Event.objects.get()
self.assertEqual(event.dt, dt)
def test_cursor_execute_returns_naive_datetime(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30)
Event.objects.create(dt=dt)
with connection.cursor() as cursor:
cursor.execute('SELECT dt FROM timezones_event WHERE dt = %s', [dt])
self.assertEqual(cursor.fetchall()[0][0], dt)
def test_filter_date_field_with_aware_datetime(self):
# Regression test for #17742
day = datetime.date(2011, 9, 1)
AllDayEvent.objects.create(day=day)
# This is 2011-09-02T01:30:00+03:00 in EAT
dt = datetime.datetime(2011, 9, 1, 22, 30, 0, tzinfo=UTC)
self.assertTrue(AllDayEvent.objects.filter(day__gte=dt).exists())
@override_settings(TIME_ZONE='Africa/Nairobi', USE_TZ=True)
class NewDatabaseTests(TestCase):
@requires_tz_support
def test_naive_datetime(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30)
with warnings.catch_warnings(record=True) as recorded:
warnings.simplefilter('always')
Event.objects.create(dt=dt)
self.assertEqual(len(recorded), 1)
msg = str(recorded[0].message)
self.assertTrue(msg.startswith("DateTimeField Event.dt received "
"a naive datetime"))
event = Event.objects.get()
# naive datetimes are interpreted in local time
self.assertEqual(event.dt, dt.replace(tzinfo=EAT))
@requires_tz_support
def test_datetime_from_date(self):
dt = datetime.date(2011, 9, 1)
with warnings.catch_warnings(record=True) as recorded:
warnings.simplefilter('always')
Event.objects.create(dt=dt)
self.assertEqual(len(recorded), 1)
msg = str(recorded[0].message)
self.assertTrue(msg.startswith("DateTimeField Event.dt received "
"a naive datetime"))
event = Event.objects.get()
self.assertEqual(event.dt, datetime.datetime(2011, 9, 1, tzinfo=EAT))
@requires_tz_support
@skipUnlessDBFeature('supports_microsecond_precision')
def test_naive_datetime_with_microsecond(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, 405060)
with warnings.catch_warnings(record=True) as recorded:
warnings.simplefilter('always')
Event.objects.create(dt=dt)
self.assertEqual(len(recorded), 1)
msg = str(recorded[0].message)
self.assertTrue(msg.startswith("DateTimeField Event.dt received "
"a naive datetime"))
event = Event.objects.get()
# naive datetimes are interpreted in local time
self.assertEqual(event.dt, dt.replace(tzinfo=EAT))
@requires_tz_support
@skipIfDBFeature('supports_microsecond_precision')
def test_naive_datetime_with_microsecond_unsupported(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, 405060)
with warnings.catch_warnings(record=True) as recorded:
warnings.simplefilter('always')
Event.objects.create(dt=dt)
self.assertEqual(len(recorded), 1)
msg = str(recorded[0].message)
self.assertTrue(msg.startswith("DateTimeField Event.dt received "
"a naive datetime"))
event = Event.objects.get()
# microseconds are lost during a round-trip in the database
# naive datetimes are interpreted in local time
self.assertEqual(event.dt, dt.replace(microsecond=0, tzinfo=EAT))
def test_aware_datetime_in_local_timezone(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)
Event.objects.create(dt=dt)
event = Event.objects.get()
self.assertEqual(event.dt, dt)
@skipUnlessDBFeature('supports_microsecond_precision')
def test_aware_datetime_in_local_timezone_with_microsecond(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, 405060, tzinfo=EAT)
Event.objects.create(dt=dt)
event = Event.objects.get()
self.assertEqual(event.dt, dt)
@skipIfDBFeature('supports_microsecond_precision')
def test_aware_datetime_in_local_timezone_with_microsecond_unsupported(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, 405060, tzinfo=EAT)
Event.objects.create(dt=dt)
event = Event.objects.get()
# microseconds are lost during a round-trip in the database
self.assertEqual(event.dt, dt.replace(microsecond=0))
def test_aware_datetime_in_utc(self):
dt = datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC)
Event.objects.create(dt=dt)
event = Event.objects.get()
self.assertEqual(event.dt, dt)
def test_aware_datetime_in_other_timezone(self):
dt = datetime.datetime(2011, 9, 1, 17, 20, 30, tzinfo=ICT)
Event.objects.create(dt=dt)
event = Event.objects.get()
self.assertEqual(event.dt, dt)
def test_auto_now_and_auto_now_add(self):
now = timezone.now()
past = now - datetime.timedelta(seconds=2)
future = now + datetime.timedelta(seconds=2)
Timestamp.objects.create()
ts = Timestamp.objects.get()
self.assertLess(past, ts.created)
self.assertLess(past, ts.updated)
self.assertGreater(future, ts.updated)
self.assertGreater(future, ts.updated)
def test_query_filter(self):
dt1 = datetime.datetime(2011, 9, 1, 12, 20, 30, tzinfo=EAT)
dt2 = datetime.datetime(2011, 9, 1, 14, 20, 30, tzinfo=EAT)
Event.objects.create(dt=dt1)
Event.objects.create(dt=dt2)
self.assertEqual(Event.objects.filter(dt__gte=dt1).count(), 2)
self.assertEqual(Event.objects.filter(dt__gt=dt1).count(), 1)
self.assertEqual(Event.objects.filter(dt__gte=dt2).count(), 1)
self.assertEqual(Event.objects.filter(dt__gt=dt2).count(), 0)
def test_query_filter_with_pytz_timezones(self):
tz = pytz.timezone('Europe/Paris')
dt = datetime.datetime(2011, 9, 1, 12, 20, 30, tzinfo=tz)
Event.objects.create(dt=dt)
next = dt + datetime.timedelta(seconds=3)
prev = dt - datetime.timedelta(seconds=3)
self.assertEqual(Event.objects.filter(dt__exact=dt).count(), 1)
self.assertEqual(Event.objects.filter(dt__exact=next).count(), 0)
self.assertEqual(Event.objects.filter(dt__in=(prev, next)).count(), 0)
self.assertEqual(Event.objects.filter(dt__in=(prev, dt, next)).count(), 1)
self.assertEqual(Event.objects.filter(dt__range=(prev, next)).count(), 1)
@requires_tz_support
def test_query_filter_with_naive_datetime(self):
dt = datetime.datetime(2011, 9, 1, 12, 20, 30, tzinfo=EAT)
Event.objects.create(dt=dt)
dt = dt.replace(tzinfo=None)
with warnings.catch_warnings(record=True) as recorded:
warnings.simplefilter('always')
# naive datetimes are interpreted in local time
self.assertEqual(Event.objects.filter(dt__exact=dt).count(), 1)
self.assertEqual(Event.objects.filter(dt__lte=dt).count(), 1)
self.assertEqual(Event.objects.filter(dt__gt=dt).count(), 0)
self.assertEqual(len(recorded), 3)
for warning in recorded:
msg = str(warning.message)
self.assertTrue(msg.startswith("DateTimeField Event.dt "
"received a naive datetime"))
@skipUnlessDBFeature('has_zoneinfo_database')
def test_query_datetime_lookups(self):
Event.objects.create(dt=datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=EAT))
Event.objects.create(dt=datetime.datetime(2011, 1, 1, 4, 30, 0, tzinfo=EAT))
self.assertEqual(Event.objects.filter(dt__year=2011).count(), 2)
self.assertEqual(Event.objects.filter(dt__month=1).count(), 2)
self.assertEqual(Event.objects.filter(dt__day=1).count(), 2)
self.assertEqual(Event.objects.filter(dt__week_day=7).count(), 2)
self.assertEqual(Event.objects.filter(dt__hour=1).count(), 1)
self.assertEqual(Event.objects.filter(dt__minute=30).count(), 2)
self.assertEqual(Event.objects.filter(dt__second=0).count(), 2)
@skipUnlessDBFeature('has_zoneinfo_database')
def test_query_datetime_lookups_in_other_timezone(self):
Event.objects.create(dt=datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=EAT))
Event.objects.create(dt=datetime.datetime(2011, 1, 1, 4, 30, 0, tzinfo=EAT))
with timezone.override(UTC):
# These two dates fall in the same day in EAT, but in different days,
# years and months in UTC.
self.assertEqual(Event.objects.filter(dt__year=2011).count(), 1)
self.assertEqual(Event.objects.filter(dt__month=1).count(), 1)
self.assertEqual(Event.objects.filter(dt__day=1).count(), 1)
self.assertEqual(Event.objects.filter(dt__week_day=7).count(), 1)
self.assertEqual(Event.objects.filter(dt__hour=22).count(), 1)
self.assertEqual(Event.objects.filter(dt__minute=30).count(), 2)
self.assertEqual(Event.objects.filter(dt__second=0).count(), 2)
def test_query_aggregation(self):
# Only min and max make sense for datetimes.
Event.objects.create(dt=datetime.datetime(2011, 9, 1, 23, 20, 20, tzinfo=EAT))
Event.objects.create(dt=datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT))
Event.objects.create(dt=datetime.datetime(2011, 9, 1, 3, 20, 40, tzinfo=EAT))
result = Event.objects.all().aggregate(Min('dt'), Max('dt'))
self.assertEqual(result, {
'dt__min': datetime.datetime(2011, 9, 1, 3, 20, 40, tzinfo=EAT),
'dt__max': datetime.datetime(2011, 9, 1, 23, 20, 20, tzinfo=EAT),
})
def test_query_annotation(self):
# Only min and max make sense for datetimes.
morning = Session.objects.create(name='morning')
afternoon = Session.objects.create(name='afternoon')
SessionEvent.objects.create(dt=datetime.datetime(2011, 9, 1, 23, 20, 20, tzinfo=EAT), session=afternoon)
SessionEvent.objects.create(dt=datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT), session=afternoon)
SessionEvent.objects.create(dt=datetime.datetime(2011, 9, 1, 3, 20, 40, tzinfo=EAT), session=morning)
morning_min_dt = datetime.datetime(2011, 9, 1, 3, 20, 40, tzinfo=EAT)
afternoon_min_dt = datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)
self.assertQuerysetEqual(
Session.objects.annotate(dt=Min('events__dt')).order_by('dt'),
[morning_min_dt, afternoon_min_dt],
transform=lambda d: d.dt)
self.assertQuerysetEqual(
Session.objects.annotate(dt=Min('events__dt')).filter(dt__lt=afternoon_min_dt),
[morning_min_dt],
transform=lambda d: d.dt)
self.assertQuerysetEqual(
Session.objects.annotate(dt=Min('events__dt')).filter(dt__gte=afternoon_min_dt),
[afternoon_min_dt],
transform=lambda d: d.dt)
@skipUnlessDBFeature('has_zoneinfo_database')
def test_query_datetimes(self):
Event.objects.create(dt=datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=EAT))
Event.objects.create(dt=datetime.datetime(2011, 1, 1, 4, 30, 0, tzinfo=EAT))
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'year'),
[datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=EAT)]
)
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'month'),
[datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=EAT)]
)
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'day'),
[datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=EAT)]
)
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'hour'),
[datetime.datetime(2011, 1, 1, 1, 0, 0, tzinfo=EAT),
datetime.datetime(2011, 1, 1, 4, 0, 0, tzinfo=EAT)]
)
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'minute'),
[datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=EAT),
datetime.datetime(2011, 1, 1, 4, 30, 0, tzinfo=EAT)]
)
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'second'),
[datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=EAT),
datetime.datetime(2011, 1, 1, 4, 30, 0, tzinfo=EAT)]
)
@skipUnlessDBFeature('has_zoneinfo_database')
def test_query_datetimes_in_other_timezone(self):
Event.objects.create(dt=datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=EAT))
Event.objects.create(dt=datetime.datetime(2011, 1, 1, 4, 30, 0, tzinfo=EAT))
with timezone.override(UTC):
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'year'),
[datetime.datetime(2010, 1, 1, 0, 0, 0, tzinfo=UTC),
datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=UTC)]
)
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'month'),
[datetime.datetime(2010, 12, 1, 0, 0, 0, tzinfo=UTC),
datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=UTC)]
)
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'day'),
[datetime.datetime(2010, 12, 31, 0, 0, 0, tzinfo=UTC),
datetime.datetime(2011, 1, 1, 0, 0, 0, tzinfo=UTC)]
)
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'hour'),
[datetime.datetime(2010, 12, 31, 22, 0, 0, tzinfo=UTC),
datetime.datetime(2011, 1, 1, 1, 0, 0, tzinfo=UTC)]
)
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'minute'),
[datetime.datetime(2010, 12, 31, 22, 30, 0, tzinfo=UTC),
datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=UTC)]
)
self.assertSequenceEqual(
Event.objects.datetimes('dt', 'second'),
[datetime.datetime(2010, 12, 31, 22, 30, 0, tzinfo=UTC),
datetime.datetime(2011, 1, 1, 1, 30, 0, tzinfo=UTC)]
)
def test_raw_sql(self):
# Regression test for #17755
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)
event = Event.objects.create(dt=dt)
self.assertSequenceEqual(list(Event.objects.raw('SELECT * FROM timezones_event WHERE dt = %s', [dt])), [event])
@skipUnlessDBFeature('supports_timezones')
def test_cursor_execute_accepts_aware_datetime(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)
with connection.cursor() as cursor:
cursor.execute('INSERT INTO timezones_event (dt) VALUES (%s)', [dt])
event = Event.objects.get()
self.assertEqual(event.dt, dt)
@skipIfDBFeature('supports_timezones')
def test_cursor_execute_accepts_naive_datetime(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)
utc_naive_dt = timezone.make_naive(dt, timezone.utc)
with connection.cursor() as cursor:
cursor.execute('INSERT INTO timezones_event (dt) VALUES (%s)', [utc_naive_dt])
event = Event.objects.get()
self.assertEqual(event.dt, dt)
@skipUnlessDBFeature('supports_timezones')
def test_cursor_execute_returns_aware_datetime(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)
Event.objects.create(dt=dt)
with connection.cursor() as cursor:
cursor.execute('SELECT dt FROM timezones_event WHERE dt = %s', [dt])
self.assertEqual(cursor.fetchall()[0][0], dt)
@skipIfDBFeature('supports_timezones')
def test_cursor_execute_returns_naive_datetime(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)
utc_naive_dt = timezone.make_naive(dt, timezone.utc)
Event.objects.create(dt=dt)
with connection.cursor() as cursor:
cursor.execute('SELECT dt FROM timezones_event WHERE dt = %s', [utc_naive_dt])
self.assertEqual(cursor.fetchall()[0][0], utc_naive_dt)
@requires_tz_support
def test_filter_date_field_with_aware_datetime(self):
# Regression test for #17742
day = datetime.date(2011, 9, 1)
AllDayEvent.objects.create(day=day)
# This is 2011-09-02T01:30:00+03:00 in EAT
dt = datetime.datetime(2011, 9, 1, 22, 30, 0, tzinfo=UTC)
self.assertFalse(AllDayEvent.objects.filter(day__gte=dt).exists())
def test_null_datetime(self):
# Regression test for #17294
e = MaybeEvent.objects.create()
self.assertIsNone(e.dt)
def test_update_with_timedelta(self):
initial_dt = timezone.now().replace(microsecond=0)
event = Event.objects.create(dt=initial_dt)
Event.objects.update(dt=F('dt') + timedelta(hours=2))
event.refresh_from_db()
self.assertEqual(event.dt, initial_dt + timedelta(hours=2))
@override_settings(TIME_ZONE='Africa/Nairobi', USE_TZ=True)
class ForcedTimeZoneDatabaseTests(TransactionTestCase):
"""
Test the TIME_ZONE database configuration parameter.
Since this involves reading and writing to the same database through two
connections, this is a TransactionTestCase.
"""
available_apps = ['timezones']
@classmethod
def setUpClass(cls):
# @skipIfDBFeature and @skipUnlessDBFeature cannot be chained. The
# outermost takes precedence. Handle skipping manually instead.
if connection.features.supports_timezones:
raise SkipTest("Database has feature(s) supports_timezones")
if not connection.features.test_db_allows_multiple_connections:
raise SkipTest("Database doesn't support feature(s): test_db_allows_multiple_connections")
super().setUpClass()
@contextmanager
def override_database_connection_timezone(self, timezone):
try:
orig_timezone = connection.settings_dict['TIME_ZONE']
connection.settings_dict['TIME_ZONE'] = timezone
# Clear cached properties, after first accessing them to ensure they exist.
connection.timezone
del connection.timezone
connection.timezone_name
del connection.timezone_name
yield
finally:
connection.settings_dict['TIME_ZONE'] = orig_timezone
# Clear cached properties, after first accessing them to ensure they exist.
connection.timezone
del connection.timezone
connection.timezone_name
del connection.timezone_name
def test_read_datetime(self):
fake_dt = datetime.datetime(2011, 9, 1, 17, 20, 30, tzinfo=UTC)
Event.objects.create(dt=fake_dt)
with self.override_database_connection_timezone('Asia/Bangkok'):
event = Event.objects.get()
dt = datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC)
self.assertEqual(event.dt, dt)
def test_write_datetime(self):
dt = datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC)
with self.override_database_connection_timezone('Asia/Bangkok'):
Event.objects.create(dt=dt)
event = Event.objects.get()
fake_dt = datetime.datetime(2011, 9, 1, 17, 20, 30, tzinfo=UTC)
self.assertEqual(event.dt, fake_dt)
@skipUnlessDBFeature('supports_timezones')
@override_settings(TIME_ZONE='Africa/Nairobi', USE_TZ=True)
class UnsupportedTimeZoneDatabaseTests(TestCase):
def test_time_zone_parameter_not_supported_if_database_supports_timezone(self):
connections.databases['tz'] = connections.databases['default'].copy()
connections.databases['tz']['TIME_ZONE'] = 'Asia/Bangkok'
tz_conn = connections['tz']
try:
with self.assertRaises(ImproperlyConfigured):
tz_conn.cursor()
finally:
connections['tz'].close() # in case the test fails
del connections['tz']
del connections.databases['tz']
@override_settings(TIME_ZONE='Africa/Nairobi')
class SerializationTests(SimpleTestCase):
# Backend-specific notes:
# - JSON supports only milliseconds, microseconds will be truncated.
# - PyYAML dumps the UTC offset correctly for timezone-aware datetimes,
# but when it loads this representation, it subtracts the offset and
# returns a naive datetime object in UTC (http://pyyaml.org/ticket/202).
# Tests are adapted to take these quirks into account.
def assert_python_contains_datetime(self, objects, dt):
self.assertEqual(objects[0]['fields']['dt'], dt)
def assert_json_contains_datetime(self, json, dt):
self.assertIn('"fields": {"dt": "%s"}' % dt, json)
def assert_xml_contains_datetime(self, xml, dt):
field = parseString(xml).getElementsByTagName('field')[0]
self.assertXMLEqual(field.childNodes[0].wholeText, dt)
def assert_yaml_contains_datetime(self, yaml, dt):
# Depending on the yaml dumper, '!timestamp' might be absent
self.assertRegex(yaml, r"\n fields: {dt: !(!timestamp)? '%s'}" % re.escape(dt))
def test_naive_datetime(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30)
data = serializers.serialize('python', [Event(dt=dt)])
self.assert_python_contains_datetime(data, dt)
obj = next(serializers.deserialize('python', data)).object
self.assertEqual(obj.dt, dt)
data = serializers.serialize('json', [Event(dt=dt)])
self.assert_json_contains_datetime(data, "2011-09-01T13:20:30")
obj = next(serializers.deserialize('json', data)).object
self.assertEqual(obj.dt, dt)
data = serializers.serialize('xml', [Event(dt=dt)])
self.assert_xml_contains_datetime(data, "2011-09-01T13:20:30")
obj = next(serializers.deserialize('xml', data)).object
self.assertEqual(obj.dt, dt)
if not isinstance(serializers.get_serializer('yaml'), serializers.BadSerializer):
data = serializers.serialize('yaml', [Event(dt=dt)])
self.assert_yaml_contains_datetime(data, "2011-09-01 13:20:30")
obj = next(serializers.deserialize('yaml', data)).object
self.assertEqual(obj.dt, dt)
def test_naive_datetime_with_microsecond(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, 405060)
data = serializers.serialize('python', [Event(dt=dt)])
self.assert_python_contains_datetime(data, dt)
obj = next(serializers.deserialize('python', data)).object
self.assertEqual(obj.dt, dt)
data = serializers.serialize('json', [Event(dt=dt)])
self.assert_json_contains_datetime(data, "2011-09-01T13:20:30.405")
obj = next(serializers.deserialize('json', data)).object
self.assertEqual(obj.dt, dt.replace(microsecond=405000))
data = serializers.serialize('xml', [Event(dt=dt)])
self.assert_xml_contains_datetime(data, "2011-09-01T13:20:30.405060")
obj = next(serializers.deserialize('xml', data)).object
self.assertEqual(obj.dt, dt)
if not isinstance(serializers.get_serializer('yaml'), serializers.BadSerializer):
data = serializers.serialize('yaml', [Event(dt=dt)])
self.assert_yaml_contains_datetime(data, "2011-09-01 13:20:30.405060")
obj = next(serializers.deserialize('yaml', data)).object
self.assertEqual(obj.dt, dt)
def test_aware_datetime_with_microsecond(self):
dt = datetime.datetime(2011, 9, 1, 17, 20, 30, 405060, tzinfo=ICT)
data = serializers.serialize('python', [Event(dt=dt)])
self.assert_python_contains_datetime(data, dt)
obj = next(serializers.deserialize('python', data)).object
self.assertEqual(obj.dt, dt)
data = serializers.serialize('json', [Event(dt=dt)])
self.assert_json_contains_datetime(data, "2011-09-01T17:20:30.405+07:00")
obj = next(serializers.deserialize('json', data)).object
self.assertEqual(obj.dt, dt.replace(microsecond=405000))
data = serializers.serialize('xml', [Event(dt=dt)])
self.assert_xml_contains_datetime(data, "2011-09-01T17:20:30.405060+07:00")
obj = next(serializers.deserialize('xml', data)).object
self.assertEqual(obj.dt, dt)
if not isinstance(serializers.get_serializer('yaml'), serializers.BadSerializer):
data = serializers.serialize('yaml', [Event(dt=dt)])
self.assert_yaml_contains_datetime(data, "2011-09-01 17:20:30.405060+07:00")
obj = next(serializers.deserialize('yaml', data)).object
self.assertEqual(obj.dt.replace(tzinfo=UTC), dt)
def test_aware_datetime_in_utc(self):
dt = datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC)
data = serializers.serialize('python', [Event(dt=dt)])
self.assert_python_contains_datetime(data, dt)
obj = next(serializers.deserialize('python', data)).object
self.assertEqual(obj.dt, dt)
data = serializers.serialize('json', [Event(dt=dt)])
self.assert_json_contains_datetime(data, "2011-09-01T10:20:30Z")
obj = next(serializers.deserialize('json', data)).object
self.assertEqual(obj.dt, dt)
data = serializers.serialize('xml', [Event(dt=dt)])
self.assert_xml_contains_datetime(data, "2011-09-01T10:20:30+00:00")
obj = next(serializers.deserialize('xml', data)).object
self.assertEqual(obj.dt, dt)
if not isinstance(serializers.get_serializer('yaml'), serializers.BadSerializer):
data = serializers.serialize('yaml', [Event(dt=dt)])
self.assert_yaml_contains_datetime(data, "2011-09-01 10:20:30+00:00")
obj = next(serializers.deserialize('yaml', data)).object
self.assertEqual(obj.dt.replace(tzinfo=UTC), dt)
def test_aware_datetime_in_local_timezone(self):
dt = datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)
data = serializers.serialize('python', [Event(dt=dt)])
self.assert_python_contains_datetime(data, dt)
obj = next(serializers.deserialize('python', data)).object
self.assertEqual(obj.dt, dt)
data = serializers.serialize('json', [Event(dt=dt)])
self.assert_json_contains_datetime(data, "2011-09-01T13:20:30+03:00")
obj = next(serializers.deserialize('json', data)).object
self.assertEqual(obj.dt, dt)
data = serializers.serialize('xml', [Event(dt=dt)])
self.assert_xml_contains_datetime(data, "2011-09-01T13:20:30+03:00")
obj = next(serializers.deserialize('xml', data)).object
self.assertEqual(obj.dt, dt)
if not isinstance(serializers.get_serializer('yaml'), serializers.BadSerializer):
data = serializers.serialize('yaml', [Event(dt=dt)])
self.assert_yaml_contains_datetime(data, "2011-09-01 13:20:30+03:00")
obj = next(serializers.deserialize('yaml', data)).object
self.assertEqual(obj.dt.replace(tzinfo=UTC), dt)
def test_aware_datetime_in_other_timezone(self):
dt = datetime.datetime(2011, 9, 1, 17, 20, 30, tzinfo=ICT)
data = serializers.serialize('python', [Event(dt=dt)])
self.assert_python_contains_datetime(data, dt)
obj = next(serializers.deserialize('python', data)).object
self.assertEqual(obj.dt, dt)
data = serializers.serialize('json', [Event(dt=dt)])
self.assert_json_contains_datetime(data, "2011-09-01T17:20:30+07:00")
obj = next(serializers.deserialize('json', data)).object
self.assertEqual(obj.dt, dt)
data = serializers.serialize('xml', [Event(dt=dt)])
self.assert_xml_contains_datetime(data, "2011-09-01T17:20:30+07:00")
obj = next(serializers.deserialize('xml', data)).object
self.assertEqual(obj.dt, dt)
if not isinstance(serializers.get_serializer('yaml'), serializers.BadSerializer):
data = serializers.serialize('yaml', [Event(dt=dt)])
self.assert_yaml_contains_datetime(data, "2011-09-01 17:20:30+07:00")
obj = next(serializers.deserialize('yaml', data)).object
self.assertEqual(obj.dt.replace(tzinfo=UTC), dt)
@override_settings(DATETIME_FORMAT='c', TIME_ZONE='Africa/Nairobi', USE_L10N=False, USE_TZ=True)
class TemplateTests(SimpleTestCase):
@requires_tz_support
def test_localtime_templatetag_and_filters(self):
"""
Test the {% localtime %} templatetag and related filters.
"""
datetimes = {
'utc': datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC),
'eat': datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT),
'ict': datetime.datetime(2011, 9, 1, 17, 20, 30, tzinfo=ICT),
'naive': datetime.datetime(2011, 9, 1, 13, 20, 30),
}
templates = {
'notag': Template("{% load tz %}{{ dt }}|{{ dt|localtime }}|{{ dt|utc }}|{{ dt|timezone:ICT }}"),
'noarg': Template(
"{% load tz %}{% localtime %}{{ dt }}|{{ dt|localtime }}|"
"{{ dt|utc }}|{{ dt|timezone:ICT }}{% endlocaltime %}"
),
'on': Template(
"{% load tz %}{% localtime on %}{{ dt }}|{{ dt|localtime }}|"
"{{ dt|utc }}|{{ dt|timezone:ICT }}{% endlocaltime %}"
),
'off': Template(
"{% load tz %}{% localtime off %}{{ dt }}|{{ dt|localtime }}|"
"{{ dt|utc }}|{{ dt|timezone:ICT }}{% endlocaltime %}"
),
}
# Transform a list of keys in 'datetimes' to the expected template
# output. This makes the definition of 'results' more readable.
def t(*result):
return '|'.join(datetimes[key].isoformat() for key in result)
# Results for USE_TZ = True
results = {
'utc': {
'notag': t('eat', 'eat', 'utc', 'ict'),
'noarg': t('eat', 'eat', 'utc', 'ict'),
'on': t('eat', 'eat', 'utc', 'ict'),
'off': t('utc', 'eat', 'utc', 'ict'),
},
'eat': {
'notag': t('eat', 'eat', 'utc', 'ict'),
'noarg': t('eat', 'eat', 'utc', 'ict'),
'on': t('eat', 'eat', 'utc', 'ict'),
'off': t('eat', 'eat', 'utc', 'ict'),
},
'ict': {
'notag': t('eat', 'eat', 'utc', 'ict'),
'noarg': t('eat', 'eat', 'utc', 'ict'),
'on': t('eat', 'eat', 'utc', 'ict'),
'off': t('ict', 'eat', 'utc', 'ict'),
},
'naive': {
'notag': t('naive', 'eat', 'utc', 'ict'),
'noarg': t('naive', 'eat', 'utc', 'ict'),
'on': t('naive', 'eat', 'utc', 'ict'),
'off': t('naive', 'eat', 'utc', 'ict'),
}
}
for k1, dt in datetimes.items():
for k2, tpl in templates.items():
ctx = Context({'dt': dt, 'ICT': ICT})
actual = tpl.render(ctx)
expected = results[k1][k2]
self.assertEqual(actual, expected, '%s / %s: %r != %r' % (k1, k2, actual, expected))
# Changes for USE_TZ = False
results['utc']['notag'] = t('utc', 'eat', 'utc', 'ict')
results['ict']['notag'] = t('ict', 'eat', 'utc', 'ict')
with self.settings(USE_TZ=False):
for k1, dt in datetimes.items():
for k2, tpl in templates.items():
ctx = Context({'dt': dt, 'ICT': ICT})
actual = tpl.render(ctx)
expected = results[k1][k2]
self.assertEqual(actual, expected, '%s / %s: %r != %r' % (k1, k2, actual, expected))
def test_localtime_filters_with_pytz(self):
"""
Test the |localtime, |utc, and |timezone filters with pytz.
"""
# Use a pytz timezone as local time
tpl = Template("{% load tz %}{{ dt|localtime }}|{{ dt|utc }}")
ctx = Context({'dt': datetime.datetime(2011, 9, 1, 12, 20, 30)})
with self.settings(TIME_ZONE='Europe/Paris'):
self.assertEqual(tpl.render(ctx), "2011-09-01T12:20:30+02:00|2011-09-01T10:20:30+00:00")
# Use a pytz timezone as argument
tpl = Template("{% load tz %}{{ dt|timezone:tz }}")
ctx = Context({'dt': datetime.datetime(2011, 9, 1, 13, 20, 30),
'tz': pytz.timezone('Europe/Paris')})
self.assertEqual(tpl.render(ctx), "2011-09-01T12:20:30+02:00")
# Use a pytz timezone name as argument
tpl = Template("{% load tz %}{{ dt|timezone:'Europe/Paris' }}")
ctx = Context({'dt': datetime.datetime(2011, 9, 1, 13, 20, 30),
'tz': pytz.timezone('Europe/Paris')})
self.assertEqual(tpl.render(ctx), "2011-09-01T12:20:30+02:00")
def test_localtime_templatetag_invalid_argument(self):
with self.assertRaises(TemplateSyntaxError):
Template("{% load tz %}{% localtime foo %}{% endlocaltime %}").render()
def test_localtime_filters_do_not_raise_exceptions(self):
"""
Test the |localtime, |utc, and |timezone filters on bad inputs.
"""
tpl = Template("{% load tz %}{{ dt }}|{{ dt|localtime }}|{{ dt|utc }}|{{ dt|timezone:tz }}")
with self.settings(USE_TZ=True):
# bad datetime value
ctx = Context({'dt': None, 'tz': ICT})
self.assertEqual(tpl.render(ctx), "None|||")
ctx = Context({'dt': 'not a date', 'tz': ICT})
self.assertEqual(tpl.render(ctx), "not a date|||")
# bad timezone value
tpl = Template("{% load tz %}{{ dt|timezone:tz }}")
ctx = Context({'dt': datetime.datetime(2011, 9, 1, 13, 20, 30), 'tz': None})
self.assertEqual(tpl.render(ctx), "")
ctx = Context({'dt': datetime.datetime(2011, 9, 1, 13, 20, 30), 'tz': 'not a tz'})
self.assertEqual(tpl.render(ctx), "")
@requires_tz_support
def test_timezone_templatetag(self):
"""
Test the {% timezone %} templatetag.
"""
tpl = Template(
"{% load tz %}"
"{{ dt }}|"
"{% timezone tz1 %}"
"{{ dt }}|"
"{% timezone tz2 %}"
"{{ dt }}"
"{% endtimezone %}"
"{% endtimezone %}"
)
ctx = Context({'dt': datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC),
'tz1': ICT, 'tz2': None})
self.assertEqual(
tpl.render(ctx),
"2011-09-01T13:20:30+03:00|2011-09-01T17:20:30+07:00|2011-09-01T13:20:30+03:00"
)
def test_timezone_templatetag_with_pytz(self):
"""
Test the {% timezone %} templatetag with pytz.
"""
tpl = Template("{% load tz %}{% timezone tz %}{{ dt }}{% endtimezone %}")
# Use a pytz timezone as argument
ctx = Context({'dt': datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT),
'tz': pytz.timezone('Europe/Paris')})
self.assertEqual(tpl.render(ctx), "2011-09-01T12:20:30+02:00")
# Use a pytz timezone name as argument
ctx = Context({'dt': datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT),
'tz': 'Europe/Paris'})
self.assertEqual(tpl.render(ctx), "2011-09-01T12:20:30+02:00")
def test_timezone_templatetag_invalid_argument(self):
with self.assertRaises(TemplateSyntaxError):
Template("{% load tz %}{% timezone %}{% endtimezone %}").render()
with self.assertRaises(pytz.UnknownTimeZoneError):
Template("{% load tz %}{% timezone tz %}{% endtimezone %}").render(Context({'tz': 'foobar'}))
@skipIf(sys.platform.startswith('win'), "Windows uses non-standard time zone names")
def test_get_current_timezone_templatetag(self):
"""
Test the {% get_current_timezone %} templatetag.
"""
tpl = Template("{% load tz %}{% get_current_timezone as time_zone %}{{ time_zone }}")
self.assertEqual(tpl.render(Context()), "Africa/Nairobi")
with timezone.override(UTC):
self.assertEqual(tpl.render(Context()), "UTC")
tpl = Template(
"{% load tz %}{% timezone tz %}{% get_current_timezone as time_zone %}"
"{% endtimezone %}{{ time_zone }}"
)
self.assertEqual(tpl.render(Context({'tz': ICT})), "+0700")
with timezone.override(UTC):
self.assertEqual(tpl.render(Context({'tz': ICT})), "+0700")
def test_get_current_timezone_templatetag_with_pytz(self):
"""
Test the {% get_current_timezone %} templatetag with pytz.
"""
tpl = Template("{% load tz %}{% get_current_timezone as time_zone %}{{ time_zone }}")
with timezone.override(pytz.timezone('Europe/Paris')):
self.assertEqual(tpl.render(Context()), "Europe/Paris")
tpl = Template(
"{% load tz %}{% timezone 'Europe/Paris' %}"
"{% get_current_timezone as time_zone %}{% endtimezone %}"
"{{ time_zone }}"
)
self.assertEqual(tpl.render(Context()), "Europe/Paris")
def test_get_current_timezone_templatetag_invalid_argument(self):
with self.assertRaises(TemplateSyntaxError):
Template("{% load tz %}{% get_current_timezone %}").render()
@skipIf(sys.platform.startswith('win'), "Windows uses non-standard time zone names")
def test_tz_template_context_processor(self):
"""
Test the django.template.context_processors.tz template context processor.
"""
tpl = Template("{{ TIME_ZONE }}")
context = Context()
self.assertEqual(tpl.render(context), "")
request_context = RequestContext(HttpRequest(), processors=[context_processors.tz])
self.assertEqual(tpl.render(request_context), "Africa/Nairobi")
@requires_tz_support
def test_date_and_time_template_filters(self):
tpl = Template("{{ dt|date:'Y-m-d' }} at {{ dt|time:'H:i:s' }}")
ctx = Context({'dt': datetime.datetime(2011, 9, 1, 20, 20, 20, tzinfo=UTC)})
self.assertEqual(tpl.render(ctx), "2011-09-01 at 23:20:20")
with timezone.override(ICT):
self.assertEqual(tpl.render(ctx), "2011-09-02 at 03:20:20")
def test_date_and_time_template_filters_honor_localtime(self):
tpl = Template(
"{% load tz %}{% localtime off %}{{ dt|date:'Y-m-d' }} at "
"{{ dt|time:'H:i:s' }}{% endlocaltime %}"
)
ctx = Context({'dt': datetime.datetime(2011, 9, 1, 20, 20, 20, tzinfo=UTC)})
self.assertEqual(tpl.render(ctx), "2011-09-01 at 20:20:20")
with timezone.override(ICT):
self.assertEqual(tpl.render(ctx), "2011-09-01 at 20:20:20")
@requires_tz_support
def test_now_template_tag_uses_current_time_zone(self):
# Regression for #17343
tpl = Template("{% now \"O\" %}")
self.assertEqual(tpl.render(Context({})), "+0300")
with timezone.override(ICT):
self.assertEqual(tpl.render(Context({})), "+0700")
@override_settings(DATETIME_FORMAT='c', TIME_ZONE='Africa/Nairobi', USE_L10N=False, USE_TZ=False)
class LegacyFormsTests(TestCase):
def test_form(self):
form = EventForm({'dt': '2011-09-01 13:20:30'})
self.assertTrue(form.is_valid())
self.assertEqual(form.cleaned_data['dt'], datetime.datetime(2011, 9, 1, 13, 20, 30))
def test_form_with_non_existent_time(self):
form = EventForm({'dt': '2011-03-27 02:30:00'})
with timezone.override(pytz.timezone('Europe/Paris')):
# this is obviously a bug
self.assertTrue(form.is_valid())
self.assertEqual(form.cleaned_data['dt'], datetime.datetime(2011, 3, 27, 2, 30, 0))
def test_form_with_ambiguous_time(self):
form = EventForm({'dt': '2011-10-30 02:30:00'})
with timezone.override(pytz.timezone('Europe/Paris')):
# this is obviously a bug
self.assertTrue(form.is_valid())
self.assertEqual(form.cleaned_data['dt'], datetime.datetime(2011, 10, 30, 2, 30, 0))
def test_split_form(self):
form = EventSplitForm({'dt_0': '2011-09-01', 'dt_1': '13:20:30'})
self.assertTrue(form.is_valid())
self.assertEqual(form.cleaned_data['dt'], datetime.datetime(2011, 9, 1, 13, 20, 30))
def test_model_form(self):
EventModelForm({'dt': '2011-09-01 13:20:30'}).save()
e = Event.objects.get()
self.assertEqual(e.dt, datetime.datetime(2011, 9, 1, 13, 20, 30))
@override_settings(DATETIME_FORMAT='c', TIME_ZONE='Africa/Nairobi', USE_L10N=False, USE_TZ=True)
class NewFormsTests(TestCase):
@requires_tz_support
def test_form(self):
form = EventForm({'dt': '2011-09-01 13:20:30'})
self.assertTrue(form.is_valid())
self.assertEqual(form.cleaned_data['dt'], datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC))
def test_form_with_other_timezone(self):
form = EventForm({'dt': '2011-09-01 17:20:30'})
with timezone.override(ICT):
self.assertTrue(form.is_valid())
self.assertEqual(form.cleaned_data['dt'], datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC))
def test_form_with_explicit_timezone(self):
form = EventForm({'dt': '2011-09-01 17:20:30+07:00'})
# Datetime inputs formats don't allow providing a time zone.
self.assertFalse(form.is_valid())
def test_form_with_non_existent_time(self):
with timezone.override(pytz.timezone('Europe/Paris')):
form = EventForm({'dt': '2011-03-27 02:30:00'})
self.assertFalse(form.is_valid())
self.assertEqual(
form.errors['dt'], [
"2011-03-27 02:30:00 couldn't be interpreted in time zone "
"Europe/Paris; it may be ambiguous or it may not exist."
]
)
def test_form_with_ambiguous_time(self):
with timezone.override(pytz.timezone('Europe/Paris')):
form = EventForm({'dt': '2011-10-30 02:30:00'})
self.assertFalse(form.is_valid())
self.assertEqual(
form.errors['dt'], [
"2011-10-30 02:30:00 couldn't be interpreted in time zone "
"Europe/Paris; it may be ambiguous or it may not exist."
]
)
@requires_tz_support
def test_split_form(self):
form = EventSplitForm({'dt_0': '2011-09-01', 'dt_1': '13:20:30'})
self.assertTrue(form.is_valid())
self.assertEqual(form.cleaned_data['dt'], datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC))
@requires_tz_support
def test_localized_form(self):
form = EventLocalizedForm(initial={'dt': datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)})
with timezone.override(ICT):
self.assertIn("2011-09-01 17:20:30", str(form))
@requires_tz_support
def test_model_form(self):
EventModelForm({'dt': '2011-09-01 13:20:30'}).save()
e = Event.objects.get()
self.assertEqual(e.dt, datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC))
@requires_tz_support
def test_localized_model_form(self):
form = EventLocalizedModelForm(instance=Event(dt=datetime.datetime(2011, 9, 1, 13, 20, 30, tzinfo=EAT)))
with timezone.override(ICT):
self.assertIn("2011-09-01 17:20:30", str(form))
@override_settings(
DATETIME_FORMAT='c',
TIME_ZONE='Africa/Nairobi',
USE_L10N=False,
USE_TZ=True,
ROOT_URLCONF='timezones.urls',
)
class AdminTests(TestCase):
@classmethod
def setUpTestData(cls):
cls.u1 = User.objects.create_user(
password='secret',
last_login=datetime.datetime(2007, 5, 30, 13, 20, 10, tzinfo=UTC),
is_superuser=True, username='super', first_name='Super', last_name='User',
email='super@example.com', is_staff=True, is_active=True,
date_joined=datetime.datetime(2007, 5, 30, 13, 20, 10, tzinfo=UTC),
)
def setUp(self):
self.client.force_login(self.u1)
@requires_tz_support
def test_changelist(self):
e = Event.objects.create(dt=datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC))
response = self.client.get(reverse('admin_tz:timezones_event_changelist'))
self.assertContains(response, e.dt.astimezone(EAT).isoformat())
def test_changelist_in_other_timezone(self):
e = Event.objects.create(dt=datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC))
with timezone.override(ICT):
response = self.client.get(reverse('admin_tz:timezones_event_changelist'))
self.assertContains(response, e.dt.astimezone(ICT).isoformat())
@requires_tz_support
def test_change_editable(self):
e = Event.objects.create(dt=datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC))
response = self.client.get(reverse('admin_tz:timezones_event_change', args=(e.pk,)))
self.assertContains(response, e.dt.astimezone(EAT).date().isoformat())
self.assertContains(response, e.dt.astimezone(EAT).time().isoformat())
def test_change_editable_in_other_timezone(self):
e = Event.objects.create(dt=datetime.datetime(2011, 9, 1, 10, 20, 30, tzinfo=UTC))
with timezone.override(ICT):
response = self.client.get(reverse('admin_tz:timezones_event_change', args=(e.pk,)))
self.assertContains(response, e.dt.astimezone(ICT).date().isoformat())
self.assertContains(response, e.dt.astimezone(ICT).time().isoformat())
@requires_tz_support
def test_change_readonly(self):
Timestamp.objects.create()
# re-fetch the object for backends that lose microseconds (MySQL)
t = Timestamp.objects.get()
response = self.client.get(reverse('admin_tz:timezones_timestamp_change', args=(t.pk,)))
self.assertContains(response, t.created.astimezone(EAT).isoformat())
def test_change_readonly_in_other_timezone(self):
Timestamp.objects.create()
# re-fetch the object for backends that lose microseconds (MySQL)
t = Timestamp.objects.get()
with timezone.override(ICT):
response = self.client.get(reverse('admin_tz:timezones_timestamp_change', args=(t.pk,)))
self.assertContains(response, t.created.astimezone(ICT).isoformat())
| 46.210484 | 119 | 0.626865 | 7,195 | 57,301 | 4.873662 | 0.074357 | 0.063423 | 0.074146 | 0.058347 | 0.839389 | 0.807363 | 0.794958 | 0.768094 | 0.740432 | 0.708293 | 0 | 0.060722 | 0.234359 | 57,301 | 1,239 | 120 | 46.24778 | 0.738558 | 0.063821 | 0 | 0.633673 | 0 | 0.003061 | 0.110106 | 0.020069 | 0 | 0 | 0 | 0 | 0.240816 | 1 | 0.1 | false | 0.00102 | 0.022449 | 0.00102 | 0.133673 | 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 | 0 | 0 | 0 | 6 |
7c8ca4c664aa4764fad5d018bdaafbaaf1f3be23 | 10,699 | py | Python | data/craigslist_scraper.py | llampwall/JordansList | d0cbe44650f95d2dbeaba73dc5e45493c1025c0f | [
"MIT"
] | null | null | null | data/craigslist_scraper.py | llampwall/JordansList | d0cbe44650f95d2dbeaba73dc5e45493c1025c0f | [
"MIT"
] | 1 | 2021-03-10T12:10:08.000Z | 2021-03-10T12:10:08.000Z | data/craigslist_scraper.py | llampwall/JordansList | d0cbe44650f95d2dbeaba73dc5e45493c1025c0f | [
"MIT"
] | null | null | null | import sys
from bs4 import BeautifulSoup as bs
from requests import get
import json
search_url = 'https://losangeles.craigslist.org/search/{}?hasPic=1'
search_url_nopics = 'https://losangeles.craigslist.org/search/{}'
image_url = 'https://images.craigslist.org/{}_600x450.jpg'
forsale_slugs = {
'ata' : 'antiques',
'ppa' : 'appliances',
'pta' : 'auto-parts',
'bia' : 'bikes',
'cba' : 'collectibles',
'ela' : 'electronics',
'foa' : 'general'
}
forsale_results = []
index = 0
for key, value in forsale_slugs.items():
print(key, '->', value)
search = search_url.format(key)
print(search)
response = get(search)
# get posts
html_soup = bs(response.text, 'html.parser')
posts = html_soup.find_all('li', class_='result-row')
# get pics
soup = bs(response.content, 'lxml')
ids = [item['data-ids'].replace('1:','') for item in soup.select('.result-image[data-ids]')]
images = [image_url.format(j) for i in ids for j in i.split(',')]
# get dates
dates = [item['title'] for item in soup.select('.result-date')]
for i in range(1, 26):
cur = {
'id': index + i,
'city': 'la',
'category': 'for-sale',
'listing': value,
'title': posts[i].find('a', class_='result-title hdrlnk').text,
'price': float(posts[i].a.text.strip().replace('$', '')),
'images': images[i],
'uploaded': dates[i],
'desc': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
}
forsale_results.append(cur)
index+=25
##################################################################################################
housing_slugs = {
'apa' : 'apts-or-housing',
'swp' : 'housing-swap',
'hsw' : 'housing-wanted',
'off' : 'office-or-commercial',
'prk' : 'parking-or-storage',
'rea' : 'real-estate-for-sale',
'roo' : 'rooms-or-shared',
'sha' : 'rooms-wanted'
}
housing_results = []
for key, value in housing_slugs.items():
print(key, '->', value)
search = search_url.format(key)
print(search)
response = get(search)
# get posts
html_soup = bs(response.text, 'html.parser')
posts = html_soup.find_all('li', class_='result-row')
# get pics
soup = bs(response.content, 'lxml')
ids = [item['data-ids'].replace('1:','') for item in soup.select('.result-image[data-ids]')]
images = [image_url.format(j) for i in ids for j in i.split(',')]
# get dates
dates = [item['title'] for item in soup.select('.result-date')]
for i in range(1, 26):
cur = {
'id': index + i,
'city': 'la',
'category': 'housing',
'listing': value,
'title': posts[i].find('a', class_='result-title hdrlnk').text,
'price': float(posts[i].a.text.strip().replace('$', '')),
'images': images[i],
'uploaded': dates[i],
'desc': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
}
housing_results.append(cur)
index+=25
######################################################################################
community_slugs = {
'act' : 'activities',
'ats' : 'artists',
'kid' : 'childcare',
'cls' : 'classes',
'eve' : 'events',
'com' : 'general',
'grp' : 'groups',
'vnn' : 'local-news'
}
community_results = []
for key, value in community_slugs.items():
print(key, '->', value)
search = search_url_nopics.format(key)
print(search)
response = get(search)
# get posts
html_soup = bs(response.text, 'html.parser')
posts = html_soup.find_all('li', class_='result-row')
# get dates
dates = [item['title'] for item in soup.select('.result-date')]
for i in range(1, 26):
cur = {
'id': index + i,
'city': 'la',
'category': 'community',
'listing': value,
'title': posts[i].find('a', class_='result-title hdrlnk').text,
'price': '',
'images': '',
'uploaded': dates[i],
'desc': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
}
community_results.append(cur)
index+=25
######################################################################################
jobs_slugs = {
'acc' : 'finance',
'ofc' : 'admin-or-office',
'egr' : 'arch-or-engineering',
'med' : 'art-or-media-or-design',
'sci' : 'biotech-or-science',
'bus' : 'business-or-mgmt',
'csr' : 'customer-service',
'edu' : 'education'
}
jobs_results = []
for key, value in jobs_slugs.items():
print(key, '->', value)
search = search_url_nopics.format(key)
print(search)
response = get(search)
# get posts
html_soup = bs(response.text, 'html.parser')
posts = html_soup.find_all('li', class_='result-row')
# get dates
dates = [item['title'] for item in soup.select('.result-date')]
for i in range(1, 26):
cur = {
'id': index + i,
'city': 'la',
'category': 'jobs',
'listing': value,
'title': posts[i].find('a', class_='result-title hdrlnk').text,
'price': '',
'images': '',
'uploaded': dates[i],
'desc': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
}
jobs_results.append(cur)
index+=25
######################################################################################
services_slugs = {
'aos' : 'automotive',
'bts' : 'beauty',
'cms' : 'cell-or-mobile',
'cps' : 'computer',
'crs' : 'creative',
'cys' : 'cycle',
'evs' : 'event',
'fgs' : 'farm-and-garden'
}
services_results = []
for key, value in services_slugs.items():
print(key, '->', value)
search = search_url_nopics.format(key)
print(search)
response = get(search)
# get posts
html_soup = bs(response.text, 'html.parser')
posts = html_soup.find_all('li', class_='result-row')
# get dates
dates = [item['title'] for item in soup.select('.result-date')]
for i in range(1, 26):
cur = {
'id': index + i,
'city': 'la',
'category': 'services',
'listing': value,
'title': posts[i].find('a', class_='result-title hdrlnk').text,
'price': '',
'images': '',
'uploaded': dates[i],
'desc': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
}
services_results.append(cur)
index+=25
######################################################################################
gigs_slugs = {
'cpg' : 'computer',
'crg' : 'creative',
'cwg' : 'crew',
'dmg' : 'domestic',
'evg' : 'event',
'lbg' : 'labor',
'tlg' : 'talent',
'wrg' : 'writing'
}
gigs_results = []
for key, value in gigs_slugs.items():
print(key, '->', value)
search = search_url_nopics.format(key)
print(search)
response = get(search)
# get posts
html_soup = bs(response.text, 'html.parser')
posts = html_soup.find_all('li', class_='result-row')
# get dates
dates = [item['title'] for item in soup.select('.result-date')]
for i in range(1, 26):
cur = {
'id': index + i,
'city': 'la',
'category': 'gigs',
'listing': value,
'title': posts[i].find('a', class_='result-title hdrlnk').text,
'price': '',
'images': '',
'uploaded': dates[i],
'desc': 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.'
}
gigs_results.append(cur)
index+=25
##########################################################################################
results = forsale_results + housing_results + community_results + jobs_results + services_results + gigs_results
with open('new.js', 'w') as f:
f.write('module.exports = ')
json.dump(results, f)
f.close()
| 36.14527 | 468 | 0.564913 | 1,259 | 10,699 | 4.739476 | 0.207307 | 0.016088 | 0.026144 | 0.017429 | 0.808446 | 0.757164 | 0.757164 | 0.757164 | 0.757164 | 0.757164 | 0 | 0.005161 | 0.257501 | 10,699 | 295 | 469 | 36.267797 | 0.745972 | 0.012805 | 0 | 0.527778 | 0 | 0.027778 | 0.438786 | 0.006996 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.018519 | 0 | 0.018519 | 0.055556 | 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 | 0 | 0 | 0 | 6 |
6b04b716c81e94468f8807cb02a76ebf01691a06 | 611,940 | py | Python | intrepid/gmtaskmodel_pb2.py | intrepid-geophysics/intrepid-protobuf-py | e01a11e139b0ed3bb9500a8153939d7acfa8b3b4 | [
"Apache-2.0"
] | 1 | 2020-07-08T04:41:52.000Z | 2020-07-08T04:41:52.000Z | intrepid/gmtaskmodel_pb2.py | intrepid-geophysics/intrepid-protobuf-py | e01a11e139b0ed3bb9500a8153939d7acfa8b3b4 | [
"Apache-2.0"
] | null | null | null | intrepid/gmtaskmodel_pb2.py | intrepid-geophysics/intrepid-protobuf-py | e01a11e139b0ed3bb9500a8153939d7acfa8b3b4 | [
"Apache-2.0"
] | null | null | null | # -*- coding: utf-8 -*-
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: gmtaskmodel.proto
"""Generated protocol buffer code."""
from google.protobuf.internal import enum_type_wrapper
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()
import intrepid.commontaskmodel_pb2 as commontaskmodel__pb2
import intrepid.vtktasksup_pb2 as vtktasksup__pb2
DESCRIPTOR = _descriptor.FileDescriptor(
name='gmtaskmodel.proto',
package='gmtaskmodel',
syntax='proto2',
serialized_options=None,
create_key=_descriptor._internal_create_key,
serialized_pb=b'\n\x11gmtaskmodel.proto\x12\x0bgmtaskmodel\x1a\x15\x63ommontaskmodel.proto\x1a\x10vtktasksup.proto\"\xfa\x03\n\rFoliation_GMT\x12*\n\x05Point\x18\x01 \x01(\x0b\x32\x1b.gmtaskmodel.AddPoint2d_GMT\x12,\n\x07Point3D\x18\x02 \x01(\x0b\x32\x1b.gmtaskmodel.AddPoint3d_GMT\x12\x0b\n\x03\x64ip\x18\x03 \x02(\x01\x12\x11\n\tdirection\x18\x04 \x01(\x01\x12\x0f\n\x07\x61zimuth\x18\x05 \x01(\x01\x12\x42\n\x0f\x44ipDistribution\x18\x0b \x01(\x0b\x32).ctm.AngleProbabilityDistributionFunction\x12H\n\x15\x44irectionDistribution\x18\x0c \x01(\x0b\x32).ctm.AngleProbabilityDistributionFunction\x12-\n\nProvenance\x18\x06 \x01(\x0e\x32\x13.ctm.ProvenanceType:\x04none\x12\x34\n\x08polarity\x18\x07 \x01(\x0e\x32\x11.ctm.PolarityType:\x0fNormal_Polarity\x12\x17\n\robservationID\x18\x08 \x01(\t:\x00\x12\x11\n\tIntensity\x18\t \x01(\x01\x12#\n\x18spherical_variance_kappa\x18\n \x01(\x01:\x01\x32\x12\x1a\n\x03log\x18\x14 \x01(\t:\rfoliation.rpt\"\x83\x02\n\x0f\x41pparentDip_GMT\x12*\n\x05Point\x18\x01 \x02(\x0b\x32\x1b.gmtaskmodel.AddPoint2d_GMT\x12\x42\n\x0f\x44ipDistribution\x18\x0b \x01(\x0b\x32).ctm.AngleProbabilityDistributionFunction\x12\x35\n\nProvenance\x18\x03 \x01(\x0e\x32\x13.ctm.ProvenanceType:\x0cseismic_pick\x12\x17\n\robservationID\x18\x04 \x01(\t:\x00\x12\x11\n\tdip_error\x18\x05 \x01(\x01\x12\x1d\n\x03log\x18\x06 \x01(\t:\x10\x61pparent_dip.rpt\"Z\n\x12SetModelBounds_GMT\x12!\n\x07\x45xtents\x18\x01 \x02(\x0b\x32\x10.ctm.BoundingBox\x12!\n\x03log\x18\x02 \x01(\t:\x14set_model_bounds.rpt\"Z\n\x12GetModelBounds_GMT\x12!\n\x07\x45xtents\x18\x01 \x01(\x0b\x32\x10.ctm.BoundingBox\x12!\n\x03log\x18\x02 \x01(\t:\x14get_model_bounds.rpt\"E\n\x12OpenProjectGUI_GMT\x12\x10\n\x08\x66ilename\x18\x01 \x02(\t\x12\x1d\n\x03log\x18\x02 \x01(\t:\x10open_project.rpt\"G\n\x14OpenProjectNoGUI_GMT\x12\x10\n\x08\x66ilename\x18\x01 \x02(\t\x12\x1d\n\x03log\x18\x02 \x01(\t:\x10open_project.rpt\"I\n\x15\x43loseProjectNoGUI_GMT\x12\x10\n\x08\x66ilename\x18\x01 \x01(\t\x12\x1e\n\x03log\x18\x02 \x01(\t:\x11\x63lose_project.rpt\"W\n\x0fSaveProject_GMT\x12%\n\x16without_computed_model\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x1d\n\x03log\x18\x01 \x01(\t:\x10save_project.rpt\"n\n\x11SaveProjectAs_GMT\x12\x10\n\x08\x66ilename\x18\x01 \x02(\t\x12%\n\x16without_computed_model\x18\x02 \x01(\x08:\x05\x66\x61lse\x12 \n\x03log\x18\x03 \x01(\t:\x13save_project_as.rpt\"\x93\x03\n\rCustomDTM_GMT\x12\x14\n\x05isGDM\x18\x01 \x01(\x08:\x05\x66\x61lse\x12\x0c\n\x04name\x18\x02 \x02(\t\x12\x1f\n\x08\x66ilename\x18\x03 \x01(\x0b\x32\r.ctm.Grid_INT\x12#\n\x07\x45xtents\x18\x04 \x01(\x0b\x32\x12.ctm.BoundingBox2D\x12\r\n\x02nx\x18\x05 \x01(\x05:\x01\x35\x12\r\n\x02ny\x18\x06 \x01(\x05:\x01\x35\x12\x12\n\x07\x64\x65gree1\x18\x07 \x01(\x05:\x01\x33\x12\x12\n\x07\x64\x65gree2\x18\x08 \x01(\x05:\x01\x35\x12\x1a\n\x0fsub_sample_rate\x18\t \x01(\x05:\x01\x31\x12\x17\n\x0f\x65levation_error\x18\n \x01(\x01\x12 \n\x12isElevationMeasure\x18\x0b \x01(\x08:\x04true\x12*\n\x05units\x18\x0c \x01(\x0e\x32\x13.ctm.Distance_Units:\x06meters\x12\x1e\n\x16spatial_location_error\x18\r \x01(\x01\x12\x12\n\nshape_file\x18\x0e \x01(\t\x12\x1b\n\x03log\x18\x14 \x01(\t:\x0e\x63ustom_dtm.rpt\"u\n\x11HorizontalDTM_GMT\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x11\n\televation\x18\x02 \x02(\x01\x12\x1e\n\x16spatial_location_error\x18\x03 \x01(\x01\x12\x1f\n\x03log\x18\x04 \x01(\t:\x12horizontal_dtm.rpt\"\xa9\x05\n\x11\x43reateProject_GMT\x12-\n\tCustomDTM\x18\x01 \x01(\x0b\x32\x1a.gmtaskmodel.CustomDTM_GMT\x12\x35\n\rHorizontalDTM\x18\x02 \x01(\x0b\x32\x1e.gmtaskmodel.HorizontalDTM_GMT\x12\x0c\n\x04name\x18\x03 \x02(\t\x12\x0e\n\x06\x61uthor\x18\x04 \x02(\t\x12!\n\x04\x64\x61te\x18\x05 \x01(\t:\x13\x30\x31/01/2012 00:00:00\x12\x15\n\x0b\x64\x65scription\x18\x06 \x01(\t:\x00\x12)\n\nprojection\x18\x07 \x01(\x0b\x32\x15.ctm.CoordinateSystem\x12\x12\n\x07version\x18\x08 \x01(\t:\x01\x33\x12*\n\x05units\x18\t \x01(\x0e\x32\x13.ctm.Distance_Units:\x06meters\x12\x35\n\x06Zunits\x18\n \x01(\x0e\x32\x13.ctm.Vertical_Units:\x10meters_elevation\x12\x14\n\tprecision\x18\x0c \x01(\x01:\x01\x31\x12!\n\x07\x45xtents\x18\x0e \x01(\x0b\x32\x10.ctm.BoundingBox\x12\x38\n\x0f\x43reateFromVoxet\x18\x0f \x01(\x0b\x32\x1f.gmtaskmodel.SourceMeshGrid_GMT\x12\x1b\n\x0c\x64\x65\x66lection2d\x18\x10 \x01(\x01:\x05\x30.001\x12\x1b\n\x0c\x64\x65\x66lection3d\x18\x11 \x01(\x01:\x05\x30.001\x12\x1a\n\x0e\x64iscretisation\x18\x12 \x01(\x01:\x02\x31\x30\x12\x1e\n\x10\x64ynamicSelection\x18\x13 \x01(\x08:\x04true\x12\x1a\n\x0creferenceTop\x18\x14 \x01(\x08:\x04true\x12\x1f\n\x03log\x18\x1e \x01(\t:\x12\x63reate_project.rpt\x12\x0e\n\x03run\x18( \x01(\x05:\x01\x30\"\xc1\x02\n ModelInterpolationParameters_GMT\x12\x14\n\x05Range\x18\x01 \x01(\x01:\x05\x31\x30\x30\x30\x30\x12%\n\x16\x43ontacts_Nugget_Effect\x18\x02 \x01(\x01:\x05\x31\x65-06\x12%\n\x17Gradients_Nugget_Effect\x18\x03 \x01(\x01:\x04\x30.01\x12#\n\x18\x46\x61ultDriftEquationDegree\x18\x04 \x01(\x01:\x01\x31\x12\x37\n\nAnisotropy\x18\x05 \x01(\x0b\x32#.gmtaskmodel.Anisotropic_Effect_GMT\x12\x0e\n\x06series\x18\x06 \x02(\t\x12=\n\x12\x65xotic_constraints\x18\x07 \x03(\x0b\x32!.gmtaskmodel.ExoticConstraint_GMT\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"\xad\x01\n\x16\x41nisotropic_Effect_GMT\x12\x12\n\x07\x41zimuth\x18\x01 \x01(\x01:\x01\x30\x12\x0e\n\x03\x44ip\x18\x02 \x01(\x01:\x01\x30\x12\x10\n\x05Pitch\x18\x03 \x01(\x01:\x01\x30\x12\x19\n\x0bLocalXRange\x18\x04 \x01(\x01:\x04\x31\x30\x30\x30\x12\x19\n\x0bLocalYRange\x18\x05 \x01(\x01:\x04\x31\x30\x30\x30\x12\x19\n\x0bLocalZRange\x18\x06 \x01(\x01:\x04\x31\x30\x30\x30\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"7\n\x14\x45xoticConstraint_GMT\x12\x11\n\tlithology\x18\x01 \x02(\t\x12\x0c\n\x04type\x18\x02 \x02(\r\"\xcf\x04\n\x10\x43omputeModel_GMT\x12\'\n\nSeriesList\x18\x01 \x01(\x0b\x32\x13.ctm.RepeatedString\x12(\n\x0bSectionList\x18\x02 \x01(\x0b\x32\x13.ctm.RepeatedString\x12&\n\tFaultList\x18\x03 \x01(\x0b\x32\x13.ctm.RepeatedString\x12)\n\x0c\x42oreholeList\x18\x04 \x01(\x0b\x32\x13.ctm.RepeatedString\x12!\n\x07\x45xtents\x18\x06 \x01(\x0b\x32\x10.ctm.BoundingBox\x12\x12\n\x06radius\x18\x05 \x01(\x01:\x02\x31\x30\x12\x1f\n\x14MinimumDykeThickness\x18\x07 \x01(\x01:\x01\x32\x12\x1a\n\x0b\x64ump_system\x18\x08 \x01(\x08:\x05\x66\x61lse\x12\x1f\n\x10\x63\x61lc_uncertainty\x18\t \x01(\x08:\x05\x66\x61lse\x12\x1a\n\x0b\x66\x61ults_only\x18\n \x01(\x08:\x05\x66\x61lse\x12\x19\n\ndykes_only\x18\x0b \x01(\x08:\x05\x66\x61lse\x12T\n\x1dSeriesInterpolationParameters\x18\x0c \x03(\x0b\x32-.gmtaskmodel.ModelInterpolationParameters_GMT\x12S\n\x1c\x46\x61ultInterpolationParameters\x18\r \x03(\x0b\x32-.gmtaskmodel.ModelInterpolationParameters_GMT\x12\x1e\n\x03log\x18\x14 \x01(\t:\x11\x63ompute_model.rpt\"\x93\x04\n\x0fRenderModel_GMT\x12\n\n\x02nx\x18\x01 \x02(\x05\x12\n\n\x02ny\x18\x02 \x02(\x05\x12\n\n\x02nz\x18\x03 \x02(\x05\x12\x1f\n\x10generateSurfaces\x18\x04 \x01(\x08:\x05\x66\x61lse\x12\x1d\n\x0fgenerateVolumes\x18\x05 \x01(\x08:\x04true\x12\x13\n\x04grid\x18\x06 \x01(\x08:\x05\x66\x61lse\x12\x1d\n\x0f\x62uildFormations\x18\x07 \x01(\x08:\x04true\x12\x1a\n\x0b\x62uildFaults\x18\x08 \x01(\x08:\x05\x66\x61lse\x12\x19\n\nbuildDykes\x18\x16 \x01(\x08:\x05\x66\x61lse\x12\x19\n\x0b\x61\x64\x61ptToTopo\x18\t \x01(\x08:\x04true\x12\x19\n\x0btopoLimited\x18\n \x01(\x08:\x04true\x12\x15\n\x06\x61\x64\x61ptX\x18\x0b \x01(\x08:\x05\x66\x61lse\x12\x15\n\x06\x61\x64\x61ptY\x18\x0c \x01(\x08:\x05\x66\x61lse\x12\x15\n\x06\x61\x64\x61ptZ\x18\r \x01(\x08:\x05\x66\x61lse\x12 \n\x11lookForOverturned\x18\x0e \x01(\x08:\x05\x66\x61lse\x12\x1a\n\x0c\x63reateShapes\x18\x0f \x01(\x08:\x04true\x12\x16\n\x07restart\x18\x10 \x01(\x08:\x05\x66\x61lse\x12\x1e\n\x13smoothingIterations\x18\x11 \x01(\x05:\x01\x30\x12!\n\x07\x45xtents\x18\x12 \x01(\x0b\x32\x10.ctm.BoundingBox\x12\x1d\n\x03log\x18\x19 \x01(\t:\x10render_model.rpt\"\x8e\x02\n\x18RenderModelOnSection_GMT\x12\n\n\x02nu\x18\x01 \x02(\x05\x12\n\n\x02nv\x18\x02 \x02(\x05\x12\x0f\n\x07section\x18\x03 \x02(\t\x12\x1d\n\x08\x66ilename\x18\x04 \x02(\t:\x0bsection.png\x12-\n\x06\x46ormat\x18\x05 \x01(\x0e\x32\x11.ctm.Image_Format:\nPNG_format\x12:\n\x05Style\x18\x06 \x01(\x0e\x32\x1f.gmtaskmodel.SectionRenderStyle:\nSolid_Fill\x12\x1e\n\x13projection_distance\x18\x07 \x01(\x01:\x01\x31\x12\x1f\n\x03log\x18\x19 \x01(\t:\x12render_section.rpt\"\x8b\x01\n\x0f\x43reateFault_GMT\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x10\n\x03red\x18\x02 \x01(\x01:\x03\x32\x35\x35\x12\x12\n\x05green\x18\x03 \x01(\x01:\x03\x32\x35\x35\x12\x0f\n\x04\x62lue\x18\x04 \x01(\x01:\x01\x30\x12\x14\n\tThickness\x18\x06 \x01(\x01:\x01\x30\x12\x1d\n\x03log\x18\t \x01(\t:\x10\x63reate_fault.rpt\"\x9f\x01\n\x14Set3dFaultLimits_GMT\x12\x12\n\nFault_name\x18\x01 \x02(\t\x12\x18\n\nHorizontal\x18\x02 \x01(\x01:\x04\x31\x30\x30\x30\x12\x16\n\x08Vertical\x18\x03 \x01(\x01:\x04\x31\x30\x30\x30\x12\x1e\n\x11InfluenceDistance\x18\x04 \x01(\x01:\x03\x31\x30\x30\x12!\n\x03log\x18\x05 \x01(\t:\x14set_fault_limits.rpt\"\x80\x01\n\x0f\x46\x61ultCentre_GMT\x12\x12\n\nfault_name\x18\x01 \x02(\t\x12*\n\x04type\x18\x02 \x02(\x0e\x32\x1c.gmtaskmodel.FaultCentreType\x12-\n\x08location\x18\x03 \x01(\x0b\x32\x1b.gmtaskmodel.AddPoint3d_GMT\"\xb4\x01\n\x13\x43reateFormation_GMT\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x0e\n\x03red\x18\x02 \x01(\x01:\x01\x30\x12\x12\n\x05green\x18\x03 \x01(\x01:\x03\x31\x32\x35\x12\x11\n\x04\x62lue\x18\x04 \x01(\x01:\x03\x32\x35\x35\x12\x35\n\x11LithologyProperty\x18\x05 \x03(\x0b\x32\x1a.ctm.LithologyProperty_GMT\x12!\n\x03log\x18\n \x01(\t:\x14\x63reate_formation.rpt\"\xaa\x01\n\x0e\x43reateDyke_GMT\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x10\n\x03red\x18\x02 \x01(\x01:\x03\x31\x32\x35\x12\x12\n\x05green\x18\x03 \x01(\x01:\x03\x32\x35\x35\x12\x0f\n\x04\x62lue\x18\x04 \x01(\x01:\x01\x30\x12\x35\n\x11LithologyProperty\x18\x05 \x03(\x0b\x32\x1a.ctm.LithologyProperty_GMT\x12\x1c\n\x03log\x18\n \x01(\t:\x0f\x63reate_dyke.rpt\"W\n\x11\x45xportSection_GMT\x12\x0f\n\x07section\x18\x01 \x02(\t\x12\x10\n\x08\x66ilename\x18\x02 \x02(\t\x12\x1f\n\x03log\x18\x03 \x01(\t:\x12\x65xport_section.rpt\"\xab\x01\n\x10\x45xport2DData_GMT\x12\x0f\n\x07section\x18\x01 \x02(\t\x12\x10\n\x08\x66ilename\x18\x02 \x02(\t\x12&\n\x06\x66ormat\x18\x03 \x02(\x0e\x32\x16.gmtaskmodel.Formats2D\x12+\n\x04type\x18\x04 \x02(\x0e\x32\x14.ctm.SectionDataType:\x07\x63ontact\x12\x1f\n\x03log\x18\x05 \x01(\t:\x12\x65xport_2D_data.rpt\"H\n#CentralVerticalPotentialAndRank_GMT\x12\x0f\n\x07message\x18\x01 \x02(\t\x12\x10\n\x08\x66ilename\x18\x02 \x02(\t\"G\n\x13GetModelSummary_GMT\x12\x10\n\x08\x66ilename\x18\x01 \x02(\t\x12\x10\n\x05level\x18\x02 \x01(\x05:\x01\x32\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"\x8b\x01\n\rSetSeries_GMT\x12\x0c\n\x04name\x18\x01 \x02(\t\x12\x10\n\x08position\x18\x02 \x02(\x05\x12\x15\n\x08relation\x18\x03 \x01(\t:\x03\x61ny\x12\x36\n\terelation\x18\x05 \x01(\x0e\x32\x1e.ctm.StratigraphicRelationship:\x03\x41ny\x12\x0b\n\x03log\x18\x07 \x01(\t\"J\n\x18\x41\x64\x64\x46ormationToSeries_GMT\x12\x0e\n\x06series\x18\x01 \x02(\t\x12\x11\n\tformation\x18\x02 \x02(\t\x12\x0b\n\x03log\x18\x03 \x01(\t\"V\n\x13\x41\x64\x64\x44ykeToSeries_GMT\x12\x0e\n\x06series\x18\x01 \x02(\t\x12\x0c\n\x04\x64yke\x18\x02 \x02(\t\x12\x14\n\x06\x61sBase\x18\x03 \x01(\x08:\x04true\x12\x0b\n\x03log\x18\x04 \x01(\t\"g\n\x0e\x41\x64\x64Point3d_GMT\x12\t\n\x01x\x18\x01 \x02(\x01\x12\t\n\x01y\x18\x02 \x02(\x01\x12\x12\n\x01z\x18\x03 \x01(\x01:\x07-999999\x12\x1e\n\x16spatial_location_error\x18\x04 \x01(\x01\x12\x0b\n\x03log\x18\x05 \x01(\t\"J\n\x0fPointList3d_GMT\x12*\n\x05Point\x18\x01 \x03(\x0b\x32\x1b.gmtaskmodel.AddPoint3d_GMT\x12\x0b\n\x03log\x18\x02 \x01(\t\"S\n\x0e\x41\x64\x64Point2d_GMT\x12\t\n\x01u\x18\x01 \x02(\x01\x12\t\n\x01v\x18\x02 \x02(\x01\x12\x1e\n\x16spatial_location_error\x18\x03 \x01(\x01\x12\x0b\n\x03log\x18\x04 \x01(\t\"J\n\x0fPointList2d_GMT\x12*\n\x05Point\x18\x01 \x03(\x0b\x32\x1b.gmtaskmodel.AddPoint2d_GMT\x12\x0b\n\x03log\x18\x02 \x01(\t\"\xa3\x02\n\x11\x43reateSection_GMT\x12\x0c\n\x04name\x18\x01 \x02(\t\x12/\n\tPointList\x18\x02 \x01(\x0b\x32\x1c.gmtaskmodel.PointList3d_GMT\x12\x12\n\x07\x64\x65grees\x18\x03 \x01(\x05:\x01\x31\x12\x14\n\tdirection\x18\x04 \x01(\x01:\x01\x30\x12\x10\n\x03\x64ip\x18\x05 \x01(\x01:\x03-90\x12!\n\x07\x45xtents\x18\x06 \x01(\x0b\x32\x10.ctm.BoundingBox\x12\x15\n\rInputDataBase\x18\x0c \x01(\t\x12\x12\n\nLineNumber\x18\r \x03(\x05\x12\x1b\n\x10MaxSectionPoints\x18\x11 \x01(\x05:\x01\x35\x12\x1b\n\rClipToProject\x18\x12 \x01(\x08:\x04true\x12\x0b\n\x03log\x18\x07 \x01(\t\"l\n\x17\x43reateSegYThumbnail_GMT\x12\x10\n\x08\x66ilename\x18\x01 \x02(\t\x12\x1c\n\x11standarddeviation\x18\x02 \x01(\x01:\x01\x33\x12\x14\n\tcolourmap\x18\x03 \x01(\x01:\x01\x32\x12\x0b\n\x03log\x18\x04 \x01(\t\"\xa1\x03\n\x19\x41\x64\x64InterfaceToSection_GMT\x12\x0f\n\x07section\x18\x01 \x02(\t\x12\x14\n\x0ctopFormation\x18\x02 \x02(\t\x12\x1e\n\x0f\x62ottomFormation\x18\x03 \x01(\t:\x05\x64ummy\x12/\n\tPointList\x18\x04 \x02(\x0b\x32\x1c.gmtaskmodel.PointList2d_GMT\x12O\n\x11OrientationMethod\x18\x05 \x01(\x0e\x32).gmtaskmodel.Associated_OrientationMethod:\tUNDEFINED\x12\x0b\n\x03\x64ip\x18\x06 \x01(\x01\x12\x0f\n\x07\x61zimuth\x18\x07 \x01(\x01\x12#\n\x08polarity\x18\x08 \x01(\x0e\x32\x11.ctm.PolarityType\x12-\n\nprovenance\x18\t \x01(\x0e\x32\x13.ctm.ProvenanceType:\x04none\x12\x17\n\x08location\x18\n \x01(\x08:\x05\x66\x61lse\x12#\n\x18spherical_variance_kappa\x18\x0c \x01(\x01:\x01\x32\x12\x0b\n\x03log\x18\r \x01(\t\"{\n\x19\x41\x64\x64\x46oliationToSection_GMT\x12\x0f\n\x07section\x18\x01 \x02(\t\x12\x11\n\tformation\x18\x02 \x02(\t\x12-\n\tfoliation\x18\x03 \x02(\x0b\x32\x1a.gmtaskmodel.Foliation_GMT\x12\x0b\n\x03log\x18\x07 \x01(\t\"n\n\x1d\x41\x64\x64\x33\x44\x46oliationToFormation_GMT\x12\x11\n\tformation\x18\x02 \x02(\t\x12-\n\tfoliation\x18\x03 \x03(\x0b\x32\x1a.gmtaskmodel.Foliation_GMT\x12\x0b\n\x03log\x18\x07 \x01(\t\"]\n\x1e\x41\x64\x64\x33\x44InterfacesToFormation_GMT\x12\x11\n\tformation\x18\x02 \x02(\t\x12\x1b\n\x05point\x18\x01 \x03(\x0b\x32\x0c.ctm.Point3d\x12\x0b\n\x03log\x18\x07 \x01(\t\"\x81\x01\n\x1b\x41\x64\x64\x41pparentDipToSection_GMT\x12\x0f\n\x07section\x18\x01 \x02(\t\x12\x11\n\tformation\x18\x02 \x02(\t\x12\x31\n\x0b\x61pparentdip\x18\x03 \x02(\x0b\x32\x1c.gmtaskmodel.ApparentDip_GMT\x12\x0b\n\x03log\x18\x07 \x01(\t\"\xbd\x05\n\"AddDykeStructuralDataToSection_GMT\x12\x0f\n\x07section\x18\x01 \x02(\t\x12\x11\n\tdyke_name\x18\x02 \x02(\t\x12*\n\x05Point\x18\x03 \x02(\x0b\x32\x1b.gmtaskmodel.AddPoint2d_GMT\x12\x0b\n\x03\x64ip\x18\" \x02(\x01\x12\x11\n\tdirection\x18\x05 \x01(\x01\x12\x0e\n\x06strike\x18\x06 \x01(\x01\x12\x42\n\x0f\x44ipDistribution\x18\x0b \x01(\x0b\x32).ctm.AngleProbabilityDistributionFunction\x12H\n\x15\x44irectionDistribution\x18\x0c \x01(\x0b\x32).ctm.AngleProbabilityDistributionFunction\x12-\n\nProvenance\x18\x07 \x01(\x0e\x32\x13.ctm.ProvenanceType:\x04none\x12\x34\n\x08polarity\x18\x11 \x01(\x0e\x32\x11.ctm.PolarityType:\x0fNormal_Polarity\x12\x17\n\robservationID\x18\x08 \x01(\t:\x00\x12\x14\n\tthickness\x18\t \x01(\x01:\x01\x35\x12\x13\n\x06length\x18\n \x01(\x01:\x03\x31\x30\x30\x12\x13\n\x06height\x18\x12 \x01(\x01:\x03\x31\x30\x30\x12\x1c\n\x0esusceptibility\x18\x13 \x01(\x01:\x04\x30.01\x12\x0e\n\x03rms\x18\r \x01(\x01:\x01\x31\x12\x1a\n\x0fthickness_error\x18\x0f \x01(\x01:\x01\x35\x12#\n\x18spherical_variance_kappa\x18\x0e \x01(\x01:\x01\x32\x12O\n\x11OrientationMethod\x18\x10 \x01(\x0e\x32).gmtaskmodel.Associated_OrientationMethod:\tUNDEFINED\x12\x0b\n\x03log\x18\x14 \x01(\t\"=\n\x11\x43reate3DPoint_GMT\x12\x1b\n\x05point\x18\x01 \x03(\x0b\x32\x0c.ctm.Point3d\x12\x0b\n\x03log\x18\x04 \x01(\t\"\x86\x01\n\x19Import2dDataToSection_GMT\x12\x0f\n\x07section\x18\x01 \x02(\t\x12\x10\n\x08\x66ilename\x18\x02 \x02(\t\x12\x1e\n\x16spatial_location_error\x18\x03 \x01(\x01\x12&\n\x03log\x18\x04 \x01(\t:\x19read_import2d_section.rpt\"\xdb\x01\n!ReadAndImport2dDataToASection_GMT\x12\x0f\n\x07section\x18\x01 \x02(\t\x12\x10\n\x08\x66ilename\x18\x02 \x02(\t\x12+\n\x04type\x18\x03 \x01(\x0e\x32\x14.ctm.SectionDataType:\x07\x63ontact\x12&\n\tFieldList\x18\x04 \x02(\x0b\x32\x13.ctm.RepeatedString\x12\x1e\n\x16spatial_location_error\x18\x05 \x01(\x01\x12\x1e\n\x03log\x18\x06 \x01(\t:\x11read_import2d.rpt\"\xd2\x03\n\x17ReadAndImport3dData_GMT\x12\x18\n\x10\x63ontact_csv_file\x18\x01 \x01(\t\x12\x1a\n\x12\x66oliation_csv_file\x18\x02 \x01(\t\x12\x17\n\x0flimits_csv_file\x18\x03 \x01(\t\x12%\n\x1a\x63ontact_header_linestoSkip\x18\x04 \x01(\x05:\x01\x33\x12\'\n\x1c\x66oliation_header_linestoSkip\x18\x05 \x01(\x05:\x01\x33\x12)\n\x1e\x66\x61ult_limit_header_linestoSkip\x18\x06 \x01(\x05:\x01\x34\x12/\n\x04type\x18\x08 \x01(\x0e\x32\x15.ctm.GeologyObsType3D:\ncontact_3D\x12\x39\n\toperation\x18\t \x01(\x0e\x32\x19.gmtaskmodel.ImportAction:\x0b\x43reateFault\x12%\n\x16Treat_Tag_As_Text_Only\x18\n \x01(\x08:\x05\x66\x61lse\x12\x1e\n\x16spatial_location_error\x18\x14 \x01(\x01\x12\x1f\n\x17vertical_location_error\x18\x16 \x01(\x01\x12\x19\n\x03log\x18\x15 \x01(\t:\x0cimport3d.rpt\"\x92\x02\n\x1cImportMicroSeismicEvents_GMT\x12\x17\n\x0f\x65vents_csv_file\x18\x01 \x01(\t\x12$\n\x19\x65vents_header_linestoSkip\x18\x02 \x01(\x05:\x01\x33\x12\x15\n\rMeshGrid_Name\x18\x03 \x01(\t\x12\x14\n\x0cignoreFields\x18\x05 \x03(\t\x12\x1e\n\x16spatial_location_error\x18\x14 \x01(\x01\x12\x1f\n\x17vertical_location_error\x18\x16 \x01(\x01\x12\x1d\n\x0e\x43reateDateTime\x18\t \x01(\x08:\x05\x66\x61lse\x12&\n\x03log\x18\x15 \x01(\t:\x19import3d_microseismic.rpt\"J\n\x13SurveyDirection_GMT\x12\x0f\n\x03\x64ip\x18\x01 \x01(\x01:\x02\x39\x30\x12\x12\n\x07\x61zimuth\x18\x02 \x01(\x01:\x01\x30\x12\x0e\n\x06length\x18\x03 \x01(\x01\"B\n\x15LithologyInterval_GMT\x12\x0c\n\x04\x66rom\x18\x01 \x01(\x01\x12\n\n\x02to\x18\x02 \x01(\x01\x12\x0f\n\x07geology\x18\x03 \x01(\t\"\xef\x01\n\x13\x43reateDrillhole_GMT\x12\x0e\n\x06HoleID\x18\x01 \x02(\t\x12+\n\x06\x43ollar\x18\x02 \x02(\x0b\x32\x1b.gmtaskmodel.AddPoint3d_GMT\x12\x39\n\x0fSurveyDirection\x18\x03 \x03(\x0b\x32 .gmtaskmodel.SurveyDirection_GMT\x12=\n\x11LithologyInterval\x18\x04 \x03(\x0b\x32\".gmtaskmodel.LithologyInterval_GMT\x12!\n\x03log\x18\x05 \x01(\t:\x14\x63reate_drillhole.rpt\"\xad\x03\n\x12LoadDrillholes_GMT\x12\x11\n\tprecision\x18\x01 \x02(\x01\x12\x12\n\ncollarFile\x18\x02 \x02(\t\x12\x12\n\nsurveyFile\x18\x03 \x02(\t\x12\x13\n\x0bgeologyFile\x18\x04 \x02(\t\x12*\n\rcollarAliases\x18\x05 \x02(\x0b\x32\x13.ctm.RepeatedString\x12*\n\rsurveyAliases\x18\x06 \x02(\x0b\x32\x13.ctm.RepeatedString\x12+\n\x0egeologyAliases\x18\x07 \x02(\x0b\x32\x13.ctm.RepeatedString\x12\x19\n\ninvertDips\x18\x08 \x01(\x08:\x05\x66\x61lse\x12\x17\n\x08scanOnly\x18\t \x01(\x08:\x05\x66\x61lse\x12\"\n\x17\x64ownhole_distance_error\x18\n \x01(\x01:\x01\x30\x12!\n\x16\x64ownhole_azimuth_error\x18\x0b \x01(\x01:\x01\x30\x12%\n\x1a\x64ownhole_declination_error\x18\x0c \x01(\x01:\x01\x30\x12 \n\x03log\x18\r \x01(\t:\x13load_drillholes.rpt\"\xf4\x05\n\x17\x43ompositeDrillholes_GMT\x12\x1f\n\x10\x44oAllAssayFields\x18\x01 \x01(\x08:\x05\x66\x61lse\x12\x12\n\nAssayField\x18\x02 \x01(\t\x12\x13\n\x06Suffix\x18\x03 \x01(\t:\x03Reg\x12\x14\n\x0c\x44\x65nsityField\x18\x04 \x01(\t\x12\x19\n\x0eSupport_Length\x18\x05 \x01(\x01:\x01\x32\x12>\n\x0b\x42uild_Style\x18\x06 \x01(\x0e\x32\x1b.gmtaskmodel.CompositeStyle:\x0cStart_Collar\x12\x1f\n\x10Restart_On_Nulls\x18\x07 \x01(\x08:\x05\x66\x61lse\x12\x1b\n\x10restart_interval\x18\x08 \x01(\x01:\x01\x32\x12Z\n\x19internal_null_replacement\x18\t \x01(\x0e\x32&.gmtaskmodel.CompositeReplacementStyle:\x0f\x42\x61\x63kgroundValue\x12Z\n\x19\x65xternal_null_replacement\x18\n \x01(\x0e\x32&.gmtaskmodel.CompositeReplacementStyle:\x0f\x42\x61\x63kgroundValue\x12\x38\n)Enable_Trailing_Interval_Length_Threshold\x18\x0b \x01(\x08:\x05\x66\x61lse\x12!\n\x16low_trailing_threshold\x18\x0c \x01(\x01:\x01\x31\x12\"\n\x17high_trailing_threshold\x18\r \x01(\x01:\x01\x33\x12L\n\x0cWeight_Style\x18\x0e \x01(\x0e\x32$.gmtaskmodel.CompositeWeightingStyle:\x10length_weighting\x12\x17\n\x0f\x61ssayBackground\x18\x0f \x01(\x01\x12\x19\n\x11\x64\x65nsityBackground\x18\x10 \x01(\x01\x12%\n\x03log\x18\x1e \x01(\t:\x18\x63omposite_drillholes.rpt\"\xa7\x01\n\x1a\x44rillholeQueryMeshGrid_GMT\x12\x18\n\x10source_drillhole\x18\x01 \x03(\t\x12\x1a\n\x12new_drillhole_name\x18\x02 \x01(\t\x12\x16\n\x0esample_spacing\x18\x03 \x01(\x01\x12\x15\n\rmeshgrid_name\x18\x14 \x01(\t\x12\x17\n\x0fmeshgrid_fields\x18\x15 \x03(\t\x12\x0b\n\x03log\x18\x63 \x01(\t\"\xab\x03\n\x13ImportSeismicCommon\x12\x14\n\x05InGUI\x18\x01 \x01(\x08:\x05\x66\x61lse\x12\x15\n\rInputDataFile\x18\x02 \x01(\t\x12\x18\n\x10InputProjectFile\x18\x03 \x01(\t\x12\x1d\n\x0fMaxThinningIter\x18\x05 \x01(\x05:\x04\x39\x39\x39\x39\x12\x1f\n\x10MinThinningDelta\x18\x06 \x01(\x01:\x05\x31\x65-07\x12\x1b\n\x10MaxSectionPoints\x18\x07 \x01(\x05:\x01\x35\x12\x1b\n\rClipToProject\x18\x08 \x01(\x08:\x04true\x12\x19\n\nDMSConvert\x18\t \x01(\x08:\x05\x66\x61lse\x12\x1f\n\x0c\x44MSLatFormat\x18\x0b \x01(\t:\tddmmss.ss\x12 \n\x0c\x44MSLonFormat\x18\x0c \x01(\t:\ndddmmss.ss\x12\x19\n\x0bInvertDepth\x18\r \x01(\x08:\x04true\x12\x1d\n\x0fRunParallelCode\x18\x0e \x01(\x08:\x04true\x12\x19\n\x11OutputProjectFile\x18\x13 \x01(\t\x12 \n\x03log\x18\xff\x01 \x01(\t:\x12seismic_report.rpt\"}\n\x14ImportSeismicNav_GMT\x12\x1e\n\x13SectionSplineDegree\x18\x01 \x01(\x05:\x01\x31\x12\x37\n\rImportSeismic\x18\x02 \x02(\x0b\x32 .gmtaskmodel.ImportSeismicCommon\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"\xdd\x01\n\x19ImportSeismicHorizons_GMT\x12,\n\x0fNavigationFiles\x18\x01 \x01(\x0b\x32\x13.ctm.RepeatedString\x12/\n\x12HorizonColumnNames\x18\x02 \x01(\x0b\x32\x13.ctm.RepeatedString\x12\x1a\n\x12IntersectionRadius\x18\x03 \x01(\x01\x12\x37\n\rImportSeismic\x18\x08 \x02(\x0b\x32 .gmtaskmodel.ImportSeismicCommon\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"\xa8\x03\n\x11RenderSection_GMT\x12\x0f\n\x07section\x18\x01 \x01(\t\x12\x0e\n\x02nx\x18\x02 \x02(\x05:\x02\x35\x30\x12\x0e\n\x02ny\x18\x03 \x02(\x05:\x02\x35\x30\x12\x16\n\x0e\x66illFormations\x18\x04 \x03(\t\x12\x1d\n\x15lineFormationOrFaults\x18\x05 \x03(\t\x12\x13\n\x0btraceSeries\x18\x06 \x03(\t\x12\x1f\n\x11showTraceInSeries\x18\x07 \x01(\x08:\x04true\x12\"\n\x13showTraceEverywhere\x18\x08 \x01(\x08:\x05\x66\x61lse\x12#\n\x14showVarianceEnvelope\x18\t \x01(\x08:\x05\x66\x61lse\x12\x1e\n\x10\x43lipToTopography\x18\n \x01(\x08:\x04true\x12\x1e\n\x0fshowUncertainty\x18\x0b \x01(\x08:\x05\x66\x61lse\x12\x1c\n\rshowTriangles\x18\x0c \x01(\x08:\x05\x66\x61lse\x12\r\n\x02\x65t\x18\r \x01(\x01:\x01\x32\x12\x1e\n\x13number_trajectories\x18\x0e \x01(\x05:\x01\x35\x12\x1f\n\x03log\x18\x0f \x01(\t:\x12render_section.rpt\"y\n\x16SaveLithologyVoxet_GMT\x12\n\n\x02nx\x18\x01 \x02(\x05\x12\n\n\x02ny\x18\x02 \x02(\x05\x12\n\n\x02nz\x18\x03 \x02(\x05\x12\x1e\n\x16LithologyVoxetFileStub\x18\x04 \x02(\t\x12\x1b\n\x03log\x18\x0f \x01(\t:\x0esave_voxet.rpt\"\xc2\x01\n\x1eSavePotentialGradientVoxet_GMT\x12\n\n\x02nx\x18\x01 \x02(\x05\x12\n\n\x02ny\x18\x02 \x02(\x05\x12\n\n\x02nz\x18\x03 \x02(\x05\x12\x1c\n\x0eJust_Gradients\x18\x05 \x01(\x08:\x04true\x12!\n\x12OneVoxet_Lithology\x18\x06 \x01(\x08:\x05\x66\x61lse\x12\x15\n\rVoxetFileStub\x18\x04 \x02(\t\x12$\n\x03log\x18\x0f \x01(\t:\x17save_potentialvoxet.rpt\"\xc3\x03\n\x13UpdateInterface_GMT\x12\x0f\n\x07section\x18\x01 \x02(\t\x12*\n\x05Point\x18\x02 \x02(\x0b\x32\x1b.gmtaskmodel.AddPoint2d_GMT\x12\x17\n\robservationId\x18\x03 \x02(\t:\x00\x12-\n\nprovenance\x18\x04 \x01(\x0e\x32\x13.ctm.ProvenanceType:\x04none\x12\x1a\n\x0chasFoliation\x18\x05 \x01(\x08:\x04true\x12\x1a\n\x0bhasLocation\x18\x06 \x02(\x08:\x05\x66\x61lse\x12@\n\x11orientationMethod\x18\x07 \x01(\x0e\x32\x1a.ctm.OrientationMethodType:\tundefined\x12\x12\n\x07\x61zimuth\x18\x08 \x01(\x01:\x01\x30\x12\x0e\n\x03\x64ip\x18\t \x01(\x01:\x01\x30\x12\x16\n\x0blineAzimuth\x18\n \x01(\x01:\x01\x30\x12\x12\n\x07lineDip\x18\x0b \x01(\x01:\x01\x30\x12\x15\n\x08polarity\x18\x0c \x02(\t:\x03top\x12#\n\x18spherical_variance_kappa\x18\r \x01(\x01:\x01\x35\x12!\n\x03log\x18\x0f \x01(\t:\x14update_interface.rpt\"U\n\x1f\x44\x65leteInterfacesFromSection_GMT\x12\x0f\n\x07section\x18\x01 \x02(\t\x12!\n\x03log\x18\x02 \x01(\t:\x14\x64\x65lete_interface.rpt\"C\n\x14\x46\x61ultSeriesLinks_GMT\x12\r\n\x05\x66\x61ult\x18\x01 \x02(\t\x12\x0e\n\x06series\x18\x02 \x03(\t\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"{\n\x18LinkFaultsWithSeries_GMT\x12;\n\x10\x46\x61ultSeriesLinks\x18\x01 \x03(\x0b\x32!.gmtaskmodel.FaultSeriesLinks_GMT\x12\"\n\x03log\x18\x02 \x01(\t:\x15link_fault_series.rpt\"F\n\x16\x46\x61ultStopsOnFaults_GMT\x12\r\n\x05\x66\x61ult\x18\x01 \x02(\t\x12\x0f\n\x07stopson\x18\x02 \x03(\t\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"~\n\x18LinkFaultsWithFaults_GMT\x12?\n\x12\x46\x61ultStopsOnFaults\x18\x01 \x03(\x0b\x32#.gmtaskmodel.FaultStopsOnFaults_GMT\x12!\n\x03log\x18\x02 \x01(\t:\x14link_fault_fault.rpt\"\xb4\x02\n\x12WriteBatchFile_GMT\x12\x10\n\x08\x66ilename\x18\x01 \x02(\t\x12!\n\tTask_Name\x18\x02 \x01(\t:\x0emyProject.task\x12,\n\x1d\x63onvertSection_InterfacesTo3D\x18\x05 \x01(\x08:\x05\x66\x61lse\x12+\n\x1c\x63onvertSection_FoliationTo3D\x18\x06 \x01(\x08:\x05\x66\x61lse\x12#\n\x14\x65xportBoreholesToCSV\x18\x07 \x01(\x08:\x05\x66\x61lse\x12\x19\n\x08\x63sv_path\x18\x08 \x01(\t:\x07\x45XPORT/\x12.\n exportToGeomodellerTempDirectory\x18\t \x01(\x08:\x04true\x12\x1e\n\x03log\x18\x0c \x01(\t:\x11writeprotobuf.rpt\"\xe3\x02\n\x12SourceMeshGrid_GMT\x12?\n\nSourceType\x18\x01 \x01(\x0e\x32\".gmtaskmodel.GeomodellerDataSource:\x07Project\x12\x11\n\tFile_Name\x18\x02 \x01(\t\x12\x15\n\rMeshGrid_Name\x18\x03 \x01(\t\x12-\n\x08\x46ileType\x18\x04 \x01(\x0e\x32\x10.ctm.DfaFileType:\tFT_IGMESH\x12+\n\x06\x46ormat\x18\r \x01(\x0e\x32\x0f.ctm.DataFormat:\nDF_UNKNOWN\x12\x12\n\nField_Name\x18\x05 \x01(\t\x12\x19\n\x0eheader_records\x18\x06 \x01(\x11:\x01\x30\x12!\n\x03log\x18\xff\x01 \x01(\t:\x13source_meshgrid.rpt\x12 \n\x12isElevationMeasure\x18\x0b \x01(\x08:\x04true\x12\x12\n\nUBC_Header\x18\x0c \x01(\t\"\x95\x04\n\x12\x43reateMeshGrid_GMT\x12J\n\x15\x43reateDestinationType\x18\x01 \x01(\x0e\x32\".gmtaskmodel.GeomodellerDataSource:\x07Project\x12>\n\x0eOutputMeshType\x18\x14 \x01(\x0e\x32\x13.ctm.OutputMeshType:\x11ODT_RegularMesh3D\x12\x11\n\tFile_Name\x18\x02 \x01(\t\x12\x15\n\rMeshGrid_Name\x18\x03 \x01(\t\x12-\n\x08\x46ileType\x18\x04 \x01(\x0e\x32\x10.ctm.DfaFileType:\tFT_IGMESH\x12\x12\n\nField_Name\x18\x05 \x01(\t\x12\x16\n\x0e\x46ield_Variance\x18\x06 \x01(\t\x12\x0f\n\x02\x64x\x18\n \x01(\x11:\x03\x31\x30\x30\x12\x0f\n\x02\x64y\x18\x0b \x01(\x11:\x03\x31\x30\x30\x12\x0f\n\x02\x64z\x18\x0c \x01(\x11:\x03\x31\x30\x30\x12!\n\x07\x45xtents\x18\r \x01(\x0b\x32\x10.ctm.BoundingBox\x12\x0e\n\x02nx\x18\x15 \x01(\x11:\x02\x32\x30\x12\x0e\n\x02ny\x18\x16 \x01(\x11:\x02\x32\x30\x12\x0e\n\x02nz\x18\x17 \x01(\x11:\x02\x32\x30\x12\x1e\n\x0f\x41\x64\x64GeologyField\x18\x08 \x01(\x08:\x05\x66\x61lse\x12\'\n\nReportFile\x18\x10 \x01(\t:\x13\x63reate_meshgrid.rpt\x12\x1f\n\x03log\x18\x63 \x01(\t:\x12\x63reate a mesh grid\"\xf4\x03\n\x12\x45xportMeshGrid_GMT\x12\x38\n\x0fMeshGrid_Source\x18\x01 \x02(\x0b\x32\x1f.gmtaskmodel.SourceMeshGrid_GMT\x12>\n\x0eOutputMeshType\x18\x14 \x01(\x0e\x32\x13.ctm.OutputMeshType:\x11ODT_RegularMesh3D\x12\x13\n\x0bOutFileName\x18\x02 \x01(\t\x12\x17\n\x0fOutMeshGridName\x18\x03 \x01(\t\x12\x30\n\x0bOutFileType\x18\x04 \x01(\x0e\x32\x10.ctm.DfaFileType:\tFT_IGMESH\x12.\n\rOutDataFormat\x18\x05 \x01(\x0e\x32\x0f.ctm.DataFormat:\x06\x44\x46_VTK\x12\r\n\x05\x46ield\x18\x06 \x01(\t\x12!\n\x07\x45xtents\x18\x15 \x01(\x0b\x32\x10.ctm.BoundingBox\x12\x0e\n\x02nx\x18\x16 \x01(\x05:\x02\x32\x30\x12\x0e\n\x02ny\x18\x17 \x01(\x05:\x02\x32\x30\x12\x0e\n\x02nz\x18\x18 \x01(\x05:\x02\x32\x30\x12\x0f\n\x02\x64x\x18\x19 \x01(\x01:\x03\x31\x30\x30\x12\x0f\n\x02\x64y\x18\x1a \x01(\x01:\x03\x31\x30\x30\x12\x0f\n\x02\x64z\x18\x1b \x01(\x01:\x03\x31\x30\x30\x12\x1e\n\x0f\x41\x64\x64GeologyField\x18\x08 \x01(\x08:\x05\x66\x61lse\x12\x1f\n\x03log\x18\xff\x01 \x01(\t:\x11save_meshgrid.rpt\"\xa0\x03\n\x13VariogramCurves_GMT\x12\x10\n\x03lag\x18\x02 \x02(\x01:\x03\x31\x30\x30\x12&\n\tvariance1\x18\x03 \x01(\x0b\x32\x13.ctm.RepeatedDouble\x12@\n\x06which1\x18\x04 \x01(\x0e\x32#.gmtaskmodel.Kriging_WhichVariogram:\x0bKriging_RHO\x12&\n\tvariance2\x18\x05 \x01(\x0b\x32\x13.ctm.RepeatedDouble\x12>\n\x06which2\x18\x06 \x01(\x0e\x32#.gmtaskmodel.Kriging_WhichVariogram:\tKriging_V\x12&\n\tvariance3\x18\x07 \x01(\x0b\x32\x13.ctm.RepeatedDouble\x12>\n\x06which3\x18\x08 \x01(\x0e\x32#.gmtaskmodel.Kriging_WhichVariogram:\tKriging_W\x12\x1a\n\rnumber_points\x18\n \x02(\x05:\x03\x31\x30\x30\x12!\n\x03log\x18\xff\x01 \x01(\t:\x13model_variogram.rpt\"\xdf\x04\n\x14\x43omputeVariogram_GMT\x12\x38\n\x0fMeshGrid_Source\x18\x01 \x02(\x0b\x32\x1f.gmtaskmodel.SourceMeshGrid_GMT\x12\x39\n\rAnalysis_Type\x18\x03 \x01(\x0b\x32\".gmtaskmodel.VariogramAnalysisType\x12\x34\n\x06\x44omain\x18\x04 \x02(\x0e\x32\x1a.gmtaskmodel.KrigingDomain:\x08NoDomain\x12\x11\n\tData_Name\x18\x05 \x01(\t\x12\x18\n\x10Maximum_Distance\x18\x06 \x01(\x01\x12\x16\n\x0eVariogram_Name\x18\x07 \x02(\t\x12!\n\x07\x45xtents\x18\x08 \x01(\x0b\x32\x10.ctm.BoundingBox\x12\x17\n\x0cNuggetEffect\x18\n \x01(\x01:\x01\x30\x12\x10\n\x05Range\x18\x0b \x01(\x01:\x01\x31\x12\x0f\n\x04Sill\x18\x0c \x01(\x01:\x01\x31\x12\x42\n\x12VariogramModelType\x18\r \x01(\x0e\x32\x17.ctm.VariogramModelType:\rVMT_Spherical\x12\x10\n\x03lag\x18\x0e \x01(\x01:\x03\x31\x30\x30\x12\x19\n\rNumber_Points\x18\x0f \x01(\x11:\x02\x32\x30\x12!\n\nReportFile\x18\x10 \x01(\t:\rvariogram.rpt\x12\x1f\n\x10Maximum_Measures\x18\x11 \x01(\x05:\x05\x31\x30\x30\x30\x30\x12\x1d\n\rMaximum_Pairs\x18\x12 \x01(\x05:\x06\x31\x30\x30\x30\x30\x30\x12\x16\n\x0bNumber_CPUs\x18\x13 \x01(\x05:\x01\x33\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"\x90\x02\n\x15VariogramAnalysisType\x12\x12\n\x07\x61zmiuth\x18\x03 \x01(\x01:\x01\x30\x12\x0f\n\x03\x64ip\x18\x04 \x01(\x01:\x02\x39\x30\x12\x11\n\x06plunge\x18\x05 \x01(\x01:\x01\x30\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x19\n\x11nameOfSerieOrUnit\x18\x07 \x01(\t\x12\x1e\n\x0fserieConstraint\x18\x08 \x01(\x08:\x05\x66\x61lse\x12.\n\x04type\x18\t \x01(\x0e\x32\x1b.gmtaskmodel.TypeOfAnalysis:\x03Rho\x12\x1d\n\x0eunitConstraint\x18\n \x01(\x08:\x05\x66\x61lse\x12\x19\n\x0eNumber_Sectors\x18\x13 \x01(\x05:\x01\x31\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"\xba\x07\n InterpolateNumericalReadings_GMT\x12\x38\n\x0fMeshGrid_Source\x18\x01 \x02(\x0b\x32\x1f.gmtaskmodel.SourceMeshGrid_GMT\x12\x34\n\x06method\x18\x02 \x02(\x0e\x32\x18.ctm.InterpolationMethod:\nIM_Kriging\x12\x39\n\x0bOutputStyle\x18\x03 \x02(\x0e\x32\x1c.ctm.InterpolationOutputType:\x06IOT_D3\x12 \n\x14Maximum_Observations\x18\x05 \x01(\x11:\x02\x35\x30\x12\x1f\n\x14Minimum_Observations\x18\x06 \x01(\x11:\x01\x32\x12\x16\n\x0eMaximum_Radius\x18\x07 \x01(\x01\x12\x34\n\x06\x44omain\x18\x08 \x01(\x0e\x32\x1a.gmtaskmodel.KrigingDomain:\x08NoDomain\x12\x11\n\tData_Name\x18\t \x01(\t\x12\x37\n\rAnalysis_Type\x18\x15 \x01(\x0e\x32\x1b.gmtaskmodel.TypeOfAnalysis:\x03Rho\x12\x39\n\x0fVariogram_Model\x18\n \x01(\x0b\x32 .gmtaskmodel.VariogramCurves_GMT\x12#\n\x1b\x45xperimental_Variogram_Name\x18\x14 \x01(\t\x12\x42\n\x12VariogramModelType\x18\x1e \x01(\x0e\x32\x17.ctm.VariogramModelType:\rVMT_Spherical\x12\x39\n\tNeighbour\x18\x1f \x01(\x0e\x32\x13.ctm.NeighbourStyle:\x11NS_RegularGridBox\x12\x17\n\x0cNuggetEffect\x18 \x01(\x01:\x01\x30\x12\x10\n\x05Range\x18! \x01(\x01:\x01\x31\x12\x0f\n\x04Sill\x18\" \x01(\x01:\x01\x31\x12?\n\x05which\x18# \x01(\x0e\x32#.gmtaskmodel.Kriging_WhichVariogram:\x0bKriging_RHO\x12\x11\n\x06\x61ratio\x18\x0f \x01(\x01:\x01\x31\x12\x0f\n\x03\x64ip\x18\x11 \x01(\x01:\x02\x39\x30\x12\x12\n\x07\x61zimuth\x18\x12 \x01(\x01:\x01\x30\x12\x11\n\x06plunge\x18\x13 \x01(\x01:\x01\x30\x12\x34\n\x0bOutput_Mesh\x18\x32 \x02(\x0b\x32\x1f.gmtaskmodel.CreateMeshGrid_GMT\x12#\n\nReportFile\x18P \x01(\t:\x0finterpolate.rpt\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"\xdc\x05\n\x14\x42uildTripleLines_GMT\x12\x15\n\tprecision\x18\x0c \x01(\x01:\x02\x32\x30\x12\x19\n\x0b\x63lean_lines\x18\x14 \x01(\x08:\x04true\x12\x1a\n\rpoint_spacing\x18\x18 \x01(\x01:\x03\x32\x35\x30\x12\x46\n\x0ethin_body_bias\x18\x19 \x01(\x0b\x32..gmtaskmodel.BuildTripleLines_GMT.ThinBodyBias\x12P\n\x13\x65xport_triple_lines\x18\x1b \x01(\x0b\x32\x33.gmtaskmodel.BuildTripleLines_GMT.ExportTripleLines\x12\x19\n\x0btopolimited\x18\x1c \x01(\x08:\x04true\x12\x18\n\nborderline\x18\x1d \x01(\x08:\x04true\x12\x18\n\ninsideline\x18\x1e \x01(\x08:\x04true\x12\x31\n#divide_model_using_regular_sections\x18\x1f \x01(\x08:\x04true\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\x1a\x91\x02\n\x11\x45xportTripleLines\x12\x1c\n\x10output_directory\x18\x01 \x01(\t:\x02./\x12k\n\x06\x66ormat\x18\x02 \x01(\x0e\x32K.gmtaskmodel.BuildTripleLines_GMT.ExportTripleLines.TripleLine_ExportFormat:\x0eTripleLine_VTK\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"c\n\x17TripleLine_ExportFormat\x12\x19\n\x15TripleLine_ASCII_LONG\x10\x00\x12\x19\n\x15TripleLine_ASCII_CGAL\x10\x01\x12\x12\n\x0eTripleLine_VTK\x10\x02\x1a\x38\n\x0cThinBodyBias\x12\x0c\n\x01x\x18\x01 \x01(\x01:\x01\x31\x12\x0c\n\x01y\x18\x02 \x01(\x01:\x01\x31\x12\x0c\n\x01z\x18\x03 \x01(\x01:\x01\x31\"I\n\x15ImportTripleLines_GMT\x12\"\n\x08\x66ilename\x18\x01 \x01(\t:\x10triple_lines.txt\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"\xb6\x14\n\x11\x42uildMeshCGAL_GMT\x12\x42\n\rmesh_criteria\x18\x01 \x01(\x0b\x32+.gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria\x12>\n\x0brefine_mesh\x18\x02 \x01(\x0b\x32).gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh\x12=\n\x12\x62uild_triple_lines\x18\x03 \x01(\x0b\x32!.gmtaskmodel.BuildTripleLines_GMT\x12?\n\x13import_triple_lines\x18\x04 \x01(\x0b\x32\".gmtaskmodel.ImportTripleLines_GMT\x12\x1c\n\rmultithreaded\x18\x05 \x01(\x08:\x05\x66\x61lse\x12\x34\n\x0b\x65xport_mesh\x18\x06 \x03(\x0b\x32\x1f.gmtaskmodel.Export3DShapes_GMT\x12L\n\x12geomodeller_output\x18\x07 \x01(\x0b\x32\x30.gmtaskmodel.BuildMeshCGAL_GMT.GeomodellerOutput\x12\x41\n\x0einitial_points\x18\x08 \x01(\x0b\x32).gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\x1a\xe5\x04\n\nRefineMesh\x12G\n\x05lloyd\x18\x01 \x01(\x0b\x32\x38.gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptEnergyParms\x12\x45\n\x03odt\x18\x02 \x01(\x0b\x32\x38.gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptEnergyParms\x12I\n\x07perturb\x18\x03 \x01(\x0b\x32\x38.gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptVertexParms\x12G\n\x05\x65xude\x18\x04 \x01(\x0b\x32\x38.gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptVertexParms\x12\x46\n\x0fmanifold_status\x18\x05 \x01(\x0e\x32\x1f.gmtaskmodel.OptManifoldRequest:\x0cnon_manifold\x1a\x9a\x01\n\x0eOptEnergyParms\x12\x15\n\ntime_limit\x18\x01 \x01(\x01:\x01\x35\x12\x13\n\x08max_iter\x18\x02 \x01(\x05:\x01\x30\x12\x19\n\x0b\x63onvergence\x18\x03 \x01(\x01:\x04\x30.02\x12\x1a\n\x0c\x66reeze_bound\x18\x04 \x01(\x01:\x04\x30.01\x12\x17\n\tdo_freeze\x18\x05 \x01(\x08:\x04true\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\x1aN\n\x0eOptVertexParms\x12\x15\n\ntime_limit\x18\x01 \x01(\x01:\x01\x35\x12\x17\n\x0csliver_bound\x18\x02 \x01(\x01:\x01\x33\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\x1a\xe5\x01\n\x11GeomodellerOutput\x12\x18\n\x10output_directory\x18\x01 \x01(\t\x12\x11\n\x06smooth\x18\x02 \x01(\x05:\x01\x30\x12\x1a\n\x0b\x64raw_shapes\x18\x03 \x01(\x08:\x05\x66\x61lse\x12\x18\n\nformations\x18\x04 \x01(\x08:\x04true\x12\x14\n\x06\x66\x61ults\x18\x05 \x01(\x08:\x04true\x12\x16\n\x08surfaces\x18\x06 \x01(\x08:\x04true\x12\x15\n\x07volumes\x18\x07 \x01(\x08:\x04true\x12\x1a\n\x0ctetrahedrons\x18\x08 \x01(\x08:\x04true\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\x1a\xd6\x06\n\x0cMeshCriteria\x12\x1b\n\x0fmin_facet_angle\x18\x01 \x01(\x01:\x02\x31\x30\x12\x17\n\x0fmin_facet_radii\x18\x02 \x01(\x01\x12\x1f\n\x17min_protect_ball_radius\x18\x03 \x01(\x01\x12\x38\n\x0e\x66\x61\x63\x65t_topology\x18\t \x01(\x0e\x32 .gmtaskmodel.Mesh_facet_topology\x12\x1e\n\x11radius_edge_ratio\x18\x04 \x01(\x01:\x03\x32.5\x12\x63\n\x16\x64\x65\x66\x61ult_discretization\x18\x05 \x01(\x0b\x32\x43.gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization\x12\x65\n\x18\x66ormation_discretization\x18\x06 \x03(\x0b\x32\x43.gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization\x12;\n\x1emin_protect_ball_radius_values\x18\x07 \x01(\x0b\x32\x13.ctm.RepeatedDouble\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\x1a\xfd\x02\n\x17\x46ormationDiscretization\x12\x1a\n\tformation\x18\x01 \x01(\t:\x07\x64\x65\x66\x61ult\x12\x11\n\tprecision\x18\x02 \x01(\x01\x12\x17\n\x0fmax_facet_radii\x18\x03 \x01(\x01\x12\x15\n\rmax_tet_radii\x18\x04 \x01(\x01\x12\x17\n\x0fmax_edge_length\x18\x05 \x01(\x01\x12-\n\x10precision_values\x18\x06 \x01(\x0b\x32\x13.ctm.RepeatedDouble\x12\x33\n\x16max_facet_radii_values\x18\x07 \x01(\x0b\x32\x13.ctm.RepeatedDouble\x12\x31\n\x14max_tet_radii_values\x18\x08 \x01(\x0b\x32\x13.ctm.RepeatedDouble\x12\x33\n\x16max_edge_length_values\x18\t \x01(\x0b\x32\x13.ctm.RepeatedDouble\x12\x1e\n\x16\x61\x64\x61ptive_sphere_radius\x18\n \x01(\x01\x1a\x80\x03\n\nSeedPoints\x12\x1f\n\x11use_triple_points\x18\x01 \x01(\x08:\x04true\x12Q\n\rrandom_points\x18\x02 \x01(\x0b\x32:.gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints.RandomSeedPoints\x12M\n\x0bmesh_points\x18\x03 \x03(\x0b\x32\x38.gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints.MeshSeedPoints\x1a\x87\x01\n\x0eMeshSeedPoints\x12\x10\n\x08\x66ilename\x18\x01 \x01(\t\x12-\n\nclean_mesh\x18\x03 \x01(\x0b\x32\x19.vtktasksup.CleanPolyData\x12\x34\n\rdecimate_mesh\x18\x04 \x01(\x0b\x32\x1d.vtktasksup.QuadricDecimation\x1a%\n\x10RandomSeedPoints\x12\x11\n\x05\x63ount\x18\x01 \x01(\x05:\x02\x31\x32\"\x83\x07\n\x0f\x45xportModel_GMT\x12%\n\x10output_directory\x18\x01 \x01(\t:\x0b\x65xport_mesh\x12;\n\x08\x65xport3D\x18\x02 \x01(\x0b\x32).gmtaskmodel.ExportModel_GMT.ExportType3D\x12;\n\x08\x65xport2D\x18\x03 \x01(\x0b\x32).gmtaskmodel.ExportModel_GMT.ExportType2D\x12\"\n\x08GridSize\x18\x06 \x01(\x0b\x32\x10.ctm.BoundingBox\x12\x0f\n\x02\x64x\x18\n \x01(\x11:\x03\x31\x30\x30\x12\x0f\n\x02\x64y\x18\x0b \x01(\x11:\x03\x31\x30\x30\x12\x0f\n\x02\x64z\x18\x0c \x01(\x11:\x03\x31\x30\x30\x12\x10\n\x03\x64xy\x18\r \x01(\x11:\x03\x31\x30\x30\x12\x1b\n\x10VariableZ_Factor\x18\x11 \x01(\x01:\x01\x31\x12$\n\nReportFile\x18\x10 \x01(\t:\x10\x65xport_model.rpt\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\x1a\xbc\x01\n\x0c\x45xportType2D\x12\x17\n\x08Isopachs\x18\x01 \x01(\x08:\x05\x66\x61lse\x12\x16\n\x07Isohyps\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x19\n\nInterfaces\x18\x03 \x01(\x08:\x05\x66\x61lse\x12\x18\n\tLayercake\x18\x04 \x01(\x08:\x05\x66\x61lse\x12\x15\n\x06Marthe\x18\x05 \x01(\x08:\x05\x66\x61lse\x12\x14\n\x05Tough\x18\x06 \x01(\x08:\x05\x66\x61lse\x12\x19\n\nCataclinal\x18\x07 \x01(\x08:\x05\x66\x61lse\x1a\xd5\x02\n\x0c\x45xportType3D\x12\x1f\n\x10\x44istanceToFaults\x18\x0c \x01(\x08:\x05\x66\x61lse\x12\x1d\n\x0e\x46\x65\x66low_Layered\x18\x01 \x01(\x08:\x05\x66\x61lse\x12\x18\n\tGradients\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x15\n\x06Grdecl\x18\x03 \x01(\x08:\x05\x66\x61lse\x12\x1e\n\x0fKrigingVariance\x18\x04 \x01(\x08:\x05\x66\x61lse\x12\'\n\x18KrigingStandardDeviation\x18\x05 \x01(\x08:\x05\x66\x61lse\x12!\n\x12KrigingScaledError\x18\x06 \x01(\x08:\x05\x66\x61lse\x12\x1b\n\x0cMartheVoxels\x18\x07 \x01(\x08:\x05\x66\x61lse\x12\x1a\n\x0bToughVoxels\x18\x08 \x01(\x08:\x05\x66\x61lse\x12\x15\n\x06Voxels\x18\t \x01(\x08:\x05\x66\x61lse\x12\x18\n\tvoxelsXYZ\x18\n \x01(\x08:\x05\x66\x61lse\"\xb9\x05\n\x12\x45xport3DShapes_GMT\x12%\n\x10output_directory\x18\x01 \x01(\t:\x0b\x65xport_mesh\x12\x12\n\nmodel_name\x18\x02 \x03(\t\x12\x42\n\tfile_type\x18\x03 \x01(\x0e\x32*.gmtaskmodel.Export3DShapes_GMT.FileType3D:\x03VTU\x12\x43\n\tmesh_type\x18\x04 \x01(\x0e\x32(.gmtaskmodel.Export3DShapes_GMT.MeshType:\x06VOLUME\x12\x39\n+filterout_triangles_from_inner_tetrahedrons\x18\x05 \x01(\x08:\x04true\x12\x1c\n\x0ewantTetrahedra\x18\x06 \x01(\x08:\x04true\x12#\n\x15\x65nvelop_surfaces_only\x18\x07 \x01(\x08:\x04true\x12%\n\x17\x46ormation_IsoPotentials\x18\x08 \x01(\x08:\x04true\x12*\n\x1c\x46ormation_GradientPotentials\x18\t \x01(\x08:\x04true\x12#\n\x08property\x18\x32 \x03(\x0e\x32\x11.ctm.PropertyType\x12!\n\x03log\x18\x63 \x01(\t:\x14\x65xport_3d_shapes.rpt\"\x95\x01\n\nFileType3D\x12\t\n\x05TSURF\x10\x00\x12\n\n\x06VULCAN\x10\x01\x12\x08\n\x04IGES\x10\x02\x12\x08\n\x04STEP\x10\x03\x12\t\n\x05\x44XF12\x10\x04\x12\t\n\x05\x44XF13\x10\x05\x12\x07\n\x03VTP\x10\x06\x12\x07\n\x03STL\x10\x07\x12\x07\n\x03VTU\x10\x08\x12\n\n\x06\x46\x45\x46LOW\x10\t\x12\t\n\x05MEDIT\x10\n\x12\x08\n\x04\x43\x33T3\x10\x0b\x12\n\n\x06\x43OMSOL\x10\x0c\".\n\x08MeshType\x12\x0b\n\x07SURFACE\x10\n\x12\t\n\x05SHELL\x10\x0b\x12\n\n\x06VOLUME\x10\x0c\"\xeb\t\n\x15\x45xportProjectSite_GMT\x12\x32\n\x08\x64\x61taType\x18\x01 \x03(\x0e\x32 .gmtaskmodel.GeomodellerDataType\x12\x37\n\nmyTypeSite\x18\x02 \x01(\x0e\x32\x17.gmtaskmodel.SiteType3D:\nPDF3D_Site\x12\x0c\n\x04Name\x18\x03 \x01(\t\x12\x15\n\rVRMLFile_Name\x18\x04 \x01(\t\x12\"\n\x14\x44oTextureEnhancement\x18\x06 \x01(\x08:\x04true\x12\x1a\n\x0b\x41\x64\x64Lighting\x18\x07 \x01(\x08:\x05\x66\x61lse\x12\x11\n\tvtp_files\x18\n \x03(\t\x12#\n\x0coutput_pdf3d\x18\x0b \x01(\t:\rmyProject.pdf\x12!\n\noutput_u3d\x18\x0c \x01(\t:\rmyProject.u3d\x12!\n\noutput_png\x18\x0e \x01(\t:\rmyProject.png\x12!\n\noutput_prc\x18\x0f \x01(\t:\rmyProject.prc\x12\x38\n\x0fMeshGrid_Source\x18\x14 \x03(\x0b\x32\x1f.gmtaskmodel.SourceMeshGrid_GMT\x12\x1a\n\x0fsolution_radius\x18\x15 \x01(\x01:\x01\x35\x12\x1f\n\x12grid_shrink_factor\x18\x16 \x01(\x01:\x03\x30.5\x12\x1d\n\x0eInversion_Case\x18\x1e \x01(\t:\x05\x43\x61se1\x12\x1b\n\rInversion_Run\x18\x1f \x01(\t:\x04Run1\x12#\n\x11Inversion_Product\x18 \x01(\t:\x08\x66inal.vo\x12\x1e\n\rInversion_AEM\x18( \x01(\t:\x07\x45M2DInv\x12\x13\n\x0bLine_Number\x18) \x03(\t\x12\x11\n\tIteration\x18* \x03(\x05\x12\x17\n\x08\x41\x64\x64Ticks\x18< \x01(\x08:\x05\x66\x61lse\x12\x1a\n\x0b\x41\x64\x64Sections\x18= \x01(\x08:\x05\x66\x61lse\x12!\n\x07\x45xtents\x18> \x01(\x0b\x32\x10.ctm.BoundingBox\x12\x1f\n\x14VerticalExaggeration\x18? \x01(\x01:\x01\x31\x12\x1d\n\x10PageHeightPixels\x18\x46 \x01(\x05:\x03\x37\x30\x30\x12\x1c\n\x0fPageWidthPixels\x18G \x01(\x05:\x03\x39\x32\x30\x12\x1b\n\x0e\x62\x61\x63kground_red\x18H \x01(\x01:\x03\x32\x30\x30\x12\x1d\n\x10\x62\x61\x63kground_green\x18I \x01(\x01:\x03\x32\x30\x30\x12\x1c\n\x0f\x62\x61\x63kground_blue\x18J \x01(\x01:\x03\x32\x30\x30\x12\x1e\n\tview_name\x18K \x01(\t:\x0b\x44\x65\x66\x61ultView\x12\x19\n\x0bShowToolBar\x18L \x01(\x08:\x04true\x12\"\n\x13ShowNavigationPanel\x18M \x01(\x08:\x05\x66\x61lse\x12&\n\x17SetOrthogonalProjection\x18N \x01(\x08:\x05\x66\x61lse\x12&\n\x18SetPerspectiveProjection\x18O \x01(\x08:\x04true\x12\x19\n\rfield_of_view\x18P \x01(\x01:\x02\x34\x35\x12\x16\n\x0e\x63overimagefile\x18Q \x01(\t\x12\x14\n\x05\x64\x65\x62ug\x18R \x01(\x08:\x05\x66\x61lse\x12)\n\nReportFile\x18Z \x01(\t:\x15\x45xportProjectSite.rpt\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"i\n\x10\x41xis_Control_GMT\x12\x10\n\x04step\x18\x02 \x01(\x01:\x02-1\x12\x19\n\x0e\x44\x65\x63imal_Number\x18 \x01(\x11:\x01\x31\x12\r\n\x05Title\x18\x04 \x01(\t\"\x19\n\tdirection\x12\x05\n\x01u\x10\x00\x12\x05\n\x01v\x10\x01\"\xd4\x02\n\x1bPresentation2D_Graphics_GMT\x12\x14\n\x0cSection_Name\x18\x01 \x01(\t\x12\x1c\n\rDoAllSections\x18\x02 \x01(\x08:\x05\x66\x61lse\x12\x33\n\x0eTitle_Position\x18\x03 \x01(\x0b\x32\x1b.gmtaskmodel.AddPoint2d_GMT\x12\x1d\n\x0f\x41xis_Graduation\x18\x04 \x01(\x08:\x04true\x12\x19\n\x0b\x41xis_Labels\x18\x05 \x01(\x08:\x04true\x12\x1a\n\x0b\x41xis_Titles\x18\x06 \x01(\x08:\x05\x66\x61lse\x12\x33\n\x0c\x41xis_Control\x18\x07 \x03(\x0b\x32\x1d.gmtaskmodel.Axis_Control_GMT\x12\x33\n\x19output_graphics_file_stub\x18\x08 \x01(\t:\x10section_name.png\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"\xda\x01\n\x1cPrismFeFLOWTriangulation_GMT\x12\x1b\n\x13input_fem_mesh_file\x18\x01 \x02(\t\x12\x19\n\rNumber_Layers\x18\x02 \x01(\x11:\x02\x32\x30\x12\x1b\n\x10VariableZ_Factor\x18\x05 \x01(\x01:\x01\x31\x12 \n\x0boutput_mesh\x18\x03 \x01(\t:\x0bmesh_3d.fem\x12\x35\n\x12output_report_file\x18\x04 \x01(\t:\x19prism_fem_mesh_report.rpt\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"\x9e\x04\n\x16GenerateMeshReport_GMT\x12\x34\n\x12output_report_file\x18\x01 \x01(\t:\x18generate_mesh_report.rpt\x12\x17\n\x0finput_mesh_file\x18\x02 \x01(\t\x12\x41\n\x0cTypeMeshGrid\x18\r \x01(\x0e\x32\x1a.ctm.MeshGrid_TypeMeshGrid:\x0fMeshGrid_VERTEX\x12\x11\n\x03vtk\x18\x03 \x01(\x08:\x04true\x12\x1d\n\x15sharp_angle_threshold\x18\x04 \x01(\x01\x12.\n\x15\x66\x61\x63\x65t_angle_threshold\x18\x05 \x01(\x0b\x32\x0f.ctm.PairDouble\x12-\n\x14\x66\x61\x63\x65t_size_threshold\x18\x06 \x01(\x0b\x32\x0f.ctm.PairDouble\x12\x12\n\x07vtp_dir\x18\x07 \x01(\t:\x01.\x12\x1e\n\x0fwrite_vtp_files\x18\x08 \x01(\x08:\x05\x66\x61lse\x12\x1d\n\x0freport_vertices\x18\t \x01(\x08:\x04true\x12\x1a\n\x0creport_edges\x18\n \x01(\x08:\x04true\x12\x1b\n\rreport_facets\x18\x0b \x01(\x08:\x04true\x12\x19\n\ttolerance\x18\x0c \x01(\x01:\x06\x30.0001\x12,\n\x12output_mesh_report\x18\x14 \x01(\t:\x10mesh_quality.rpt\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"\x95\x06\n\x16MeshUnitForGeophys_GMT\x12\x18\n\x10input_point_file\x18\x01 \x01(\t\x12\x18\n\x10output_mesh_file\x18\x02 \x01(\t\x12J\n\x0brank_radius\x18\x03 \x03(\x0b\x32\x35.gmtaskmodel.MeshUnitForGeophys_GMT.RankRadiusControl\x12\x17\n\x0bnum_samples\x18\x04 \x01(\x05:\x02\x31\x30\x12\x11\n\tdebug_dir\x18\x05 \x01(\t\x12\x14\n\x0c\x64\x65\x62ug_prefix\x18\x07 \x01(\t\x12W\n\x11thinning_function\x18\x08 \x01(\x0e\x32\x34.gmtaskmodel.MeshUnitForGeophys_GMT.ThinningFunction:\x06LINEAR\x12Z\n\rsample_method\x18\t \x01(\x0e\x32\x30.gmtaskmodel.MeshUnitForGeophys_GMT.SampleMethod:\x11INPUT_POINT_CLOUD\x12*\n\x1bthinning_radii_are_absolute\x18\n \x01(\x08:\x05\x66\x61lse\x12\x11\n\tunit_name\x18\x0b \x01(\t\x12\x11\n\tunit_rank\x18\x0c \x01(\x05\x12\x31\n\tcgalparms\x18\r \x01(\x0b\x32\x1e.gmtaskmodel.BuildMeshCGAL_GMT\x12/\n\x03log\x18\x63 \x01(\t:\"mesh_unit_for_geophysics_model.rpt\x1a\x61\n\x11RankRadiusControl\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x0c\n\x04rank\x18\x02 \x01(\x05\x12\x16\n\x0btopo_radius\x18\x03 \x01(\x01:\x01\x31\x12\x18\n\x0b\x62\x61se_radius\x18\x04 \x01(\x01:\x03\x31\x30\x30\"/\n\x10ThinningFunction\x12\n\n\x06LINEAR\x10\x00\x12\x0f\n\x0b\x41NISOTROPIC\x10\x01\":\n\x0cSampleMethod\x12\x15\n\x11INPUT_POINT_CLOUD\x10\x00\x12\x13\n\x0fPOTENTIAL_FIELD\x10\x01\"}\n\x19GetComputedLithoAtXYZ_GMT\x12&\n\x08\x66ilename\x18\x01 \x02(\t:\x14ModelLitho_Query.rpt\x12*\n\x05Point\x18\x02 \x03(\x0b\x32\x1b.gmtaskmodel.AddPoint3d_GMT\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"\x84\x01\n\x1cGetComputedGradientAtXYZ_GMT\x12*\n\x08\x66ilename\x18\x01 \x02(\t:\x18ModelGradients_Query.rpt\x12*\n\x05Point\x18\x02 \x03(\x0b\x32\x1b.gmtaskmodel.AddPoint3d_GMT\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"\xb5\x04\n\x1d\x43omputeExternalDriftField_GMT\x12\x38\n\x0fMeshGrid_Source\x18\x01 \x02(\x0b\x32\x1f.gmtaskmodel.SourceMeshGrid_GMT\x12\x62\n\x17required_drift_function\x18\x03 \x03(\x0b\x32\x41.gmtaskmodel.ComputeExternalDriftField_GMT.Formation_Distribution\x12.\n\tDepthUnit\x18\x04 \x01(\x0e\x32\x13.ctm.Distance_Units:\x06meters\x12\x31\n\rProperty_Type\x18\x05 \x01(\x0e\x32\x11.ctm.PropertyType:\x07\x44\x65nsity\x12\x41\n\x0cTypeMeshGrid\x18\r \x01(\x0e\x32\x1a.ctm.MeshGrid_TypeMeshGrid:\x0fMeshGrid_VERTEX\x12\x39\n\x12output_report_file\x18\x63 \x01(\t:\x1d\x43omputeExternalDriftField.rpt\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\x1a\x86\x01\n\x16\x46ormation_Distribution\x12\x11\n\tformation\x18\x01 \x02(\t\x12,\n\x04Type\x18\x02 \x01(\x0e\x32\x1e.gmtaskmodel.Distribution_Type\x12\r\n\x02p1\x18\x03 \x01(\x01:\x01\x30\x12\r\n\x02p2\x18\x04 \x01(\x01:\x01\x30\x12\r\n\x02p3\x18\x05 \x01(\x01:\x01\x30\"\xe4\x01\n\x15\x43reateAxialSeries_GMT\x12\x13\n\x0b\x41xialSeries\x18\x01 \x02(\t\x12\x0e\n\x03red\x18\x03 \x01(\x01:\x01\x30\x12\x12\n\x05green\x18\x04 \x01(\x01:\x03\x31\x32\x35\x12\x11\n\x04\x62lue\x18\x05 \x01(\x01:\x03\x32\x35\x35\x12;\n\tMechanism\x18\r \x01(\x0e\x32\x1a.gmtaskmodel.FoldMechanism:\x0c\x46lexuralSlip\x12\x35\n\x05style\x18\x0e \x01(\x0e\x32\x1d.gmtaskmodel.DeformationStyle:\x07\x43lass1B\x12\x0b\n\x03log\x18\x07 \x01(\t\"\x9a\x03\n\x16\x43reateAxialSurface_GMT\x12\x13\n\x0b\x41xialSeries\x18\x01 \x02(\t\x12\x14\n\x0c\x41xialSurface\x18\x02 \x02(\t\x12\x0e\n\x03red\x18\x03 \x01(\x01:\x01\x30\x12\x12\n\x05green\x18\x04 \x01(\x01:\x03\x31\x32\x35\x12\x11\n\x04\x62lue\x18\x05 \x01(\x01:\x03\x32\x35\x35\x12/\n\tPointList\x18\x06 \x01(\x0b\x32\x1c.gmtaskmodel.PointList2d_GMT\x12\x31\n\x0bPointList3D\x18\x07 \x01(\x0b\x32\x1c.gmtaskmodel.PointList3d_GMT\x12\x17\n\robservationId\x18\x08 \x01(\t:\x00\x12-\n\nprovenance\x18\t \x01(\x0e\x32\x13.ctm.ProvenanceType:\x04none\x12.\n\x04type\x18\n \x01(\x0e\x32\x15.gmtaskmodel.FoldType:\tAnticline\x12\x35\n\ttightness\x18\x0c \x01(\x0e\x32\x1a.gmtaskmodel.FoldTightness:\x06Gentle\x12\x0b\n\x03log\x18\x14 \x01(\t\"\x95\x02\n\x15\x41\x64\x64\x41xialTraceLine_GMT\x12\x13\n\x0b\x41xialSeries\x18\x01 \x01(\t\x12\x14\n\x0c\x41xialSurface\x18\x02 \x02(\t\x12\x17\n\x0f\x44\x65\x66iningSection\x18\x03 \x01(\t\x12/\n\tPointList\x18\x04 \x01(\x0b\x32\x1c.gmtaskmodel.PointList2d_GMT\x12\x31\n\x0bPointList3D\x18\x05 \x01(\x0b\x32\x1c.gmtaskmodel.PointList3d_GMT\x12\x17\n\robservationId\x18\x06 \x01(\t:\x00\x12-\n\nprovenance\x18\x07 \x01(\x0e\x32\x13.ctm.ProvenanceType:\x04none\x12\x0c\n\x03log\x18\xff\x01 \x01(\t\"\x9d\x03\n\x1e\x41\x64\x64\x41xialSurfaceOrientation_GMT\x12\x13\n\x0b\x41xialSeries\x18\x01 \x02(\t\x12\x17\n\robservationId\x18\x02 \x01(\t:\x00\x12\x17\n\x0f\x44\x65\x66iningSection\x18\x04 \x01(\t\x12*\n\x05Point\x18\x06 \x01(\x0b\x32\x1b.gmtaskmodel.AddPoint2d_GMT\x12,\n\x07Point3D\x18\x07 \x01(\x0b\x32\x1b.gmtaskmodel.AddPoint3d_GMT\x12-\n\nprovenance\x18\x05 \x01(\x0e\x32\x13.ctm.ProvenanceType:\x04none\x12\x0e\n\x03\x44ip\x18\x08 \x01(\x01:\x01\x30\x12\x17\n\x0c\x44ipDirection\x18\t \x01(\x01:\x01\x30\x12\x10\n\x05Pitch\x18\n \x01(\x01:\x01\x30\x12\x34\n\x08Polarity\x18\x11 \x01(\x0e\x32\x11.ctm.PolarityType:\x0fNormal_Polarity\x12-\n\tfoliation\x18\x14 \x01(\x0b\x32\x1a.gmtaskmodel.Foliation_GMT\x12\x0b\n\x03log\x18\x32 \x01(\t\"\xe5\x03\n\x10\x41\x64\x64HingeLine_GMT\x12\x13\n\x0b\x41xialSeries\x18\x01 \x01(\t\x12\x14\n\x0c\x41xialSurface\x18\x02 \x02(\t\x12\x11\n\tFormation\x18\x04 \x02(\t\x12/\n\tPointList\x18\x05 \x01(\x0b\x32\x1c.gmtaskmodel.PointList2d_GMT\x12\x31\n\x0bPointList3D\x18\x06 \x01(\x0b\x32\x1c.gmtaskmodel.PointList3d_GMT\x12\x17\n\robservationId\x18\x07 \x01(\t:\x00\x12-\n\nprovenance\x18\x08 \x01(\x0e\x32\x13.ctm.ProvenanceType:\x04none\x12\x1c\n\x10\x44istanceAtOrigin\x18\t \x01(\x01:\x02\x39\x30\x12 \n\x13\x44istanceAtExtremity\x18\n \x01(\x01:\x03\x31\x30\x30\x12!\n\x13\x43onstant_Fold_Shape\x18\x0b \x01(\x08:\x04true\x12\x1c\n\x10\x41pertureAtOrigin\x18\x0c \x01(\x01:\x02\x33\x30\x12\x1f\n\x13\x41pertureAtExtremity\x18\r \x01(\x01:\x02\x33\x30\x12\x38\n\x08Polarity\x18\x0e \x01(\x0e\x32\x1a.gmtaskmodel.HingePolarity:\nHinge_Left\x12\x0b\n\x03log\x18\x32 \x01(\t\"\xea\x01\n!CreateSectionFromAxialSurface_GMT\x12\x18\n\x10\x41xialSectionName\x18\x01 \x02(\t\x12\x14\n\x0c\x41xialSurface\x18\x02 \x02(\t\x12\x15\n\tGridNodes\x18\x04 \x01(\x05:\x02\x31\x30\x12!\n\x07\x45xtents\x18\x06 \x01(\x0b\x32\x10.ctm.BoundingBox\x12N\n\x17InterpotationParameters\x18\x0c \x01(\x0b\x32-.gmtaskmodel.ModelInterpolationParameters_GMT\x12\x0b\n\x03log\x18\x07 \x01(\t\"\x94)\n\x0fGeomodellerTask\x12\x35\n\rCreateProject\x18\x01 \x01(\x0b\x32\x1e.gmtaskmodel.CreateProject_GMT\x12\x37\n\x0eOpenProjectGUI\x18\x02 \x01(\x0b\x32\x1f.gmtaskmodel.OpenProjectGUI_GMT\x12;\n\x10OpenProjectNoGUI\x18\x03 \x01(\x0b\x32!.gmtaskmodel.OpenProjectNoGUI_GMT\x12\x31\n\x0bSaveProject\x18\x04 \x01(\x0b\x32\x1c.gmtaskmodel.SaveProject_GMT\x12\x35\n\rSaveProjectAs\x18\x05 \x01(\x0b\x32\x1e.gmtaskmodel.SaveProjectAs_GMT\x12-\n\tCustomDTM\x18\x06 \x01(\x0b\x32\x1a.gmtaskmodel.CustomDTM_GMT\x12\x35\n\rHorizontalDTM\x18\x07 \x01(\x0b\x32\x1e.gmtaskmodel.HorizontalDTM_GMT\x12\x39\n\x0f\x43reateFormation\x18\x08 \x01(\x0b\x32 .gmtaskmodel.CreateFormation_GMT\x12\x31\n\x0b\x43reateFault\x18\t \x01(\x0b\x32\x1c.gmtaskmodel.CreateFault_GMT\x12-\n\tSetSeries\x18\n \x01(\x0b\x32\x1a.gmtaskmodel.SetSeries_GMT\x12\x43\n\x14\x41\x64\x64\x46ormationToSeries\x18\x0b \x01(\x0b\x32%.gmtaskmodel.AddFormationToSeries_GMT\x12\x39\n\x0f\x41\x64\x64\x44ykeToSeries\x18\x34 \x01(\x0b\x32 .gmtaskmodel.AddDykeToSeries_GMT\x12/\n\nAddPoint3d\x18\x0c \x01(\x0b\x32\x1b.gmtaskmodel.AddPoint3d_GMT\x12\x31\n\x0bPointList3d\x18\r \x01(\x0b\x32\x1c.gmtaskmodel.PointList3d_GMT\x12\x35\n\rCreateSection\x18\x0e \x01(\x0b\x32\x1e.gmtaskmodel.CreateSection_GMT\x12/\n\nAddPoint2d\x18\x0f \x01(\x0b\x32\x1b.gmtaskmodel.AddPoint2d_GMT\x12\x31\n\x0bPointList2d\x18\x10 \x01(\x0b\x32\x1c.gmtaskmodel.PointList2d_GMT\x12\x45\n\x15\x41\x64\x64InterfaceToSection\x18\x11 \x01(\x0b\x32&.gmtaskmodel.AddInterfaceToSection_GMT\x12\x45\n\x15\x41\x64\x64\x46oliationToSection\x18\x12 \x01(\x0b\x32&.gmtaskmodel.AddFoliationToSection_GMT\x12M\n\x19\x41\x64\x64\x33\x44\x46oliationToFormation\x18\x13 \x01(\x0b\x32*.gmtaskmodel.Add3DFoliationToFormation_GMT\x12\x45\n\x15Import2dDataToSection\x18\x14 \x01(\x0b\x32&.gmtaskmodel.Import2dDataToSection_GMT\x12Q\n\x1b\x44\x65leteInterfacesFromSection\x18\x15 \x01(\x0b\x32,.gmtaskmodel.DeleteInterfacesFromSection_GMT\x12U\n\x1dReadAndImport2dDataToASection\x18\x1e \x01(\x0b\x32..gmtaskmodel.ReadAndImport2dDataToASection_GMT\x12\x35\n\rRenderSection\x18\x1f \x01(\x0b\x32\x1e.gmtaskmodel.RenderSection_GMT\x12\x39\n\x0fUpdateInterface\x18 \x01(\x0b\x32 .gmtaskmodel.UpdateInterface_GMT\x12\x43\n\x14LinkFaultsWithSeries\x18! \x01(\x0b\x32%.gmtaskmodel.LinkFaultsWithSeries_GMT\x12\x43\n\x14LinkFaultsWithFaults\x18\x30 \x01(\x0b\x32%.gmtaskmodel.LinkFaultsWithFaults_GMT\x12/\n\nCreateDyke\x18\" \x01(\x0b\x32\x1b.gmtaskmodel.CreateDyke_GMT\x12\x35\n\rExportSection\x18# \x01(\x0b\x32\x1e.gmtaskmodel.ExportSection_GMT\x12Y\n\x1f\x43\x65ntralVerticalPotentialAndRank\x18$ \x01(\x0b\x32\x30.gmtaskmodel.CentralVerticalPotentialAndRank_GMT\x12\x39\n\x0fGetModelSummary\x18% \x01(\x0b\x32 .gmtaskmodel.GetModelSummary_GMT\x12;\n\x10Set3dFaultLimits\x18\' \x01(\x0b\x32!.gmtaskmodel.Set3dFaultLimits_GMT\x12I\n\x17\x41\x64\x64\x41pparentDipToSection\x18( \x01(\x0b\x32(.gmtaskmodel.AddApparentDipToSection_GMT\x12\x33\n\x0c\x66\x61ult_centre\x18\xa0\x01 \x01(\x0b\x32\x1c.gmtaskmodel.FaultCentre_GMT\x12\x35\n\rCreate3DPoint\x18+ \x01(\x0b\x32\x1e.gmtaskmodel.Create3DPoint_GMT\x12O\n\x1a\x41\x64\x64\x33\x44InterfacesToFormation\x18, \x01(\x0b\x32+.gmtaskmodel.Add3DInterfacesToFormation_GMT\x12\x45\n\x15GetComputedLithoAtXYZ\x18- \x01(\x0b\x32&.gmtaskmodel.GetComputedLithoAtXYZ_GMT\x12K\n\x18GetComputedGradientAtXYZ\x18. \x01(\x0b\x32).gmtaskmodel.GetComputedGradientAtXYZ_GMT\x12\x41\n\x13ReadAndImport3dData\x18/ \x01(\x0b\x32$.gmtaskmodel.ReadAndImport3dData_GMT\x12W\n\x1e\x41\x64\x64\x44ykeStructuralDataToSection\x18\x33 \x01(\x0b\x32/.gmtaskmodel.AddDykeStructuralDataToSection_GMT\x12=\n\x11\x43reateAxialSeries\x18\x36 \x01(\x0b\x32\".gmtaskmodel.CreateAxialSeries_GMT\x12?\n\x12\x43reateAxialSurface\x18\x37 \x01(\x0b\x32#.gmtaskmodel.CreateAxialSurface_GMT\x12=\n\x11\x41\x64\x64\x41xialTraceLine\x18\x38 \x01(\x0b\x32\".gmtaskmodel.AddAxialTraceLine_GMT\x12\x33\n\x0c\x41\x64\x64HingeLine\x18\x39 \x01(\x0b\x32\x1d.gmtaskmodel.AddHingeLine_GMT\x12O\n\x1a\x41\x64\x64\x41xialSurfaceOrientation\x18: \x01(\x0b\x32+.gmtaskmodel.AddAxialSurfaceOrientation_GMT\x12U\n\x1d\x43reateSectionFromAxialSurface\x18; \x01(\x0b\x32..gmtaskmodel.CreateSectionFromAxialSurface_GMT\x12\x39\n\x0f\x43reateDrillhole\x18= \x01(\x0b\x32 .gmtaskmodel.CreateDrillhole_GMT\x12\x37\n\x0eLoadDrillholes\x18& \x01(\x0b\x32\x1f.gmtaskmodel.LoadDrillholes_GMT\x12\x41\n\x13\x43ompositeDrillholes\x18< \x01(\x0b\x32$.gmtaskmodel.CompositeDrillholes_GMT\x12Q\n\x1fProbabilityDistributionFunction\x18\x46 \x01(\x0b\x32(.ctm.ProbabilityDistributionFunction_GMT\x12\x35\n\x11LithologyProperty\x18G \x01(\x0b\x32\x1a.ctm.LithologyProperty_GMT\x12\x37\n\x0eSetModelBounds\x18\x62 \x01(\x0b\x32\x1f.gmtaskmodel.SetModelBounds_GMT\x12\x37\n\x0eGetModelBounds\x18\x63 \x01(\x0b\x32\x1f.gmtaskmodel.GetModelBounds_GMT\x12\x37\n\x0eWriteBatchFile\x18\x31 \x01(\x0b\x32\x1f.gmtaskmodel.WriteBatchFile_GMT\x12\x33\n\x0c\x43omputeModel\x18\x64 \x01(\x0b\x32\x1d.gmtaskmodel.ComputeModel_GMT\x12\x31\n\x0bRenderModel\x18\x65 \x01(\x0b\x32\x1c.gmtaskmodel.RenderModel_GMT\x12\x43\n\x14RenderModelOnSection\x18q \x01(\x0b\x32%.gmtaskmodel.RenderModelOnSection_GMT\x12?\n\x12SaveLithologyVoxet\x18\x66 \x01(\x0b\x32#.gmtaskmodel.SaveLithologyVoxet_GMT\x12O\n\x1aSavePotentialGradientVoxet\x18g \x01(\x0b\x32+.gmtaskmodel.SavePotentialGradientVoxet_GMT\x12S\n\x1cInterpolateNumericalReadings\x18h \x01(\x0b\x32-.gmtaskmodel.InterpolateNumericalReadings_GMT\x12;\n\x10ImportSeismicNav\x18i \x01(\x0b\x32!.gmtaskmodel.ImportSeismicNav_GMT\x12\x45\n\x15ImportSeismicHorizons\x18j \x01(\x0b\x32&.gmtaskmodel.ImportSeismicHorizons_GMT\x12K\n\x18ImportMicroSeismicEvents\x18p \x01(\x0b\x32).gmtaskmodel.ImportMicroSeismicEvents_GMT\x12\x35\n\x0cLoadMeshGrid\x18k \x01(\x0b\x32\x1f.gmtaskmodel.SourceMeshGrid_GMT\x12\x37\n\x0e\x45xportMeshGrid\x18l \x01(\x0b\x32\x1f.gmtaskmodel.ExportMeshGrid_GMT\x12\x37\n\x0e\x43reateMeshGrid\x18m \x01(\x0b\x32\x1f.gmtaskmodel.CreateMeshGrid_GMT\x12?\n\x12GenerateMeshReport\x18n \x01(\x0b\x32#.gmtaskmodel.GenerateMeshReport_GMT\x12\x35\n\rBuildMeshCGAL\x18) \x01(\x0b\x32\x1e.gmtaskmodel.BuildMeshCGAL_GMT\x12\x37\n\x0e\x45xport3DShapes\x18* \x01(\x0b\x32\x1f.gmtaskmodel.Export3DShapes_GMT\x12\x31\n\x0b\x45xportModel\x18\x41 \x01(\x0b\x32\x1c.gmtaskmodel.ExportModel_GMT\x12=\n\x11\x45xportProjectSite\x18\x32 \x01(\x0b\x32\".gmtaskmodel.ExportProjectSite_GMT\x12I\n\x17Presentation2D_Graphics\x18> \x01(\x0b\x32(.gmtaskmodel.Presentation2D_Graphics_GMT\x12;\n\x10\x42uildTripleLines\x18\x35 \x01(\x0b\x32!.gmtaskmodel.BuildTripleLines_GMT\x12K\n\x18PrismFeFLOWTriangulation\x18\x43 \x01(\x0b\x32).gmtaskmodel.PrismFeFLOWTriangulation_GMT\x12?\n\x12MeshUnitForGeophys\x18o \x01(\x0b\x32#.gmtaskmodel.MeshUnitForGeophys_GMT\x12M\n\x19\x43omputeExternalDriftField\x18r \x01(\x0b\x32*.gmtaskmodel.ComputeExternalDriftField_GMT\x12;\n\x10\x43omputeVariogram\x18x \x01(\x0b\x32!.gmtaskmodel.ComputeVariogram_GMT\x12>\n\x11ImportTripleLines\x18\x82\x01 \x01(\x0b\x32\".gmtaskmodel.ImportTripleLines_GMT\x12>\n\x11\x43loseProjectNoGUI\x18\x8c\x01 \x01(\x0b\x32\".gmtaskmodel.CloseProjectNoGUI_GMT\x12H\n\x16\x44rillholeQueryMeshGrid\x18\x96\x01 \x01(\x0b\x32\'.gmtaskmodel.DrillholeQueryMeshGrid_GMT\x12\x34\n\x0c\x45xport2DData\x18\x97\x01 \x01(\x0b\x32\x1d.gmtaskmodel.Export2DData_GMT\x12\x42\n\x13\x43reateSegYThumbnail\x18\x98\x01 \x01(\x0b\x32$.gmtaskmodel.CreateSegYThumbnail_GMT\x12\x0c\n\x03log\x18\xff\x01 \x01(\t*.\n\x15GeomodellerDataSource\x12\x0b\n\x07Project\x10\x00\x12\x08\n\x04\x46ile\x10\x01*L\n\x12SectionRenderStyle\x12\x0e\n\nSolid_Fill\x10\x00\x12\x12\n\x0e\x42oundary_Lines\x10\x01\x12\x12\n\x0eGeology_Trends\x10\x02*P\n\x0f\x46\x61ultCentreType\x12\x11\n\rMEAN_POSITION\x10\x00\x12\x16\n\x12\x42OUNDINGBOX_CENTRE\x10\x01\x12\x12\n\x0eUSER_SPECIFIED\x10\x63*E\n\tFormats2D\x12\n\n\x06\x46T_SHP\x10\x00\x12\x0e\n\nFT_MAPINFO\x10\x01\x12\x10\n\x0c\x46T_ASCIIBRGM\x10\x02\x12\n\n\x06\x46T_CSV\x10\x04*k\n\x1c\x41ssociated_OrientationMethod\x12\r\n\tUNDEFINED\x10\x00\x12\x07\n\x03\x44IP\x10\x01\x12\x0e\n\nDIPAZIMUTH\x10\x02\x12\x13\n\x0fLINEORIENTATION\x10\x03\x12\x0e\n\nORTHOGONAL\x10\x04*|\n\x0cImportAction\x12\x0f\n\x0b\x43reateFault\x10\x00\x12\x13\n\x0f\x43reateFormation\x10\x01\x12\x0e\n\nCreateDyke\x10\x02\x12\x0e\n\nMergeFault\x10\x03\x12\x12\n\x0eMergeFormation\x10\x05\x12\x12\n\x0eImport_default\x10\x06*5\n\x0e\x43ompositeStyle\x12\x10\n\x0cStart_Collar\x10\x00\x12\x11\n\rFirst_NonNull\x10\x01*B\n\x19\x43ompositeReplacementStyle\x12\x13\n\x0f\x42\x61\x63kgroundValue\x10\x00\x12\x10\n\x0cWeightedMean\x10\x01*F\n\x17\x43ompositeWeightingStyle\x12\x14\n\x10length_weighting\x10\x00\x12\x15\n\x11\x64\x65nsity_weighting\x10\x01*L\n\x0eTypeOfAnalysis\x12\x0f\n\x0bRhoThetaPhi\x10\x00\x12\x0c\n\x08RhoTheta\x10\x01\x12\x07\n\x03Rho\x10\x02\x12\x07\n\x03UVT\x10\x03\x12\t\n\x05OnlyT\x10\x04*8\n\rKrigingDomain\x12\n\n\x06Series\x10\x00\x12\r\n\tFormation\x10\x01\x12\x0c\n\x08NoDomain\x10\x02*u\n\x16Kriging_WhichVariogram\x12\r\n\tKriging_U\x10\x00\x12\r\n\tKriging_V\x10\x01\x12\r\n\tKriging_W\x10\x02\x12\x0f\n\x0bKriging_RHO\x10\x03\x12\r\n\tKriging_T\x10\x04\x12\x0e\n\nKriging_UV\x10\x05*\x9d\x01\n\x13Mesh_facet_topology\x12\x1d\n\x19\x46\x41\x43\x45T_VERTICES_ON_SURFACE\x10\x00\x12(\n$FACET_VERTICES_ON_SAME_SURFACE_PATCH\x10\x01\x12=\n9FACET_VERTICES_ON_SAME_SURFACE_PATCH_WITH_ADJACENCY_CHECK\x10\x02*P\n\x12OptManifoldRequest\x12\x0c\n\x08manifold\x10\x00\x12\x1a\n\x16manifold_with_boundary\x10\x01\x12\x10\n\x0cnon_manifold\x10\x02*L\n\nSiteType3D\x12\r\n\tVRML_Site\x10\x00\x12\x0e\n\nPDF3D_Site\x10\x01\x12\x10\n\x0cPDF3D_direct\x10\x02\x12\r\n\tADOBE_PRC\x10\x03*r\n\x13GeomodellerDataType\x12\r\n\tStructure\x10\x01\x12\t\n\x05Model\x10\x02\x12\x0c\n\x08MeshGrid\x10\x03\x12\x0e\n\nDrillHoles\x10\x04\x12\x14\n\x10Inversion_Result\x10\x05\x12\r\n\tAll_Parts\x10\n*{\n\x11\x44istribution_Type\x12\x19\n\x15TopFormation_Gradient\x10\x01\x12\x10\n\x0cTopAndBottom\x10\x02\x12\x1b\n\x17\x44\x65pthParameter_Gradient\x10\x03\x12\x1c\n\x18\x42ottomFormation_Gradient\x10\x04*\xbc\x01\n\x08\x46oldType\x12\r\n\tAnticline\x10\x00\x12\x0c\n\x08Syncline\x10\x01\x12\x0c\n\x08\x41ntiform\x10\x02\x12\x0b\n\x07Synform\x10\x03\x12\x08\n\x04\x44ome\x10\x04\x12\t\n\x05\x42\x61sin\x10\x05\x12\r\n\tMonocline\x10\x06\x12\x0b\n\x07\x43hevron\x10\x07\x12\r\n\tRecumbent\x10\x08\x12\t\n\x05Slump\x10\t\x12\r\n\tPtygmatic\x10\n\x12\r\n\tParasitic\x10\x0b\x12\x0f\n\x0b\x44isharmonic\x10\x0c*E\n\rFoldMechanism\x12\x10\n\x0c\x46lexuralSlip\x10\x00\x12\x0c\n\x08\x42uckling\x10\x01\x12\x14\n\x10MassDisplacement\x10\x02*8\n\rFoldTightness\x12\n\n\x06Gentle\x10\x00\x12\x0c\n\x08OpenFold\x10\x01\x12\r\n\tTightFold\x10\x02*]\n\x10\x44\x65\x66ormationStyle\x12\n\n\x06\x43lass1\x10\x00\x12\x0b\n\x07\x43lass1A\x10\x01\x12\x0b\n\x07\x43lass1B\x10\x02\x12\x0b\n\x07\x43lass1C\x10\x03\x12\n\n\x06\x43lass2\x10\x04\x12\n\n\x06\x43lass3\x10\x05*0\n\rHingePolarity\x12\x0e\n\nHinge_Left\x10\x00\x12\x0f\n\x0bHinge_Right\x10\x01'
,
dependencies=[commontaskmodel__pb2.DESCRIPTOR,vtktasksup__pb2.DESCRIPTOR,])
_GEOMODELLERDATASOURCE = _descriptor.EnumDescriptor(
name='GeomodellerDataSource',
full_name='gmtaskmodel.GeomodellerDataSource',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='Project', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='File', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=34270,
serialized_end=34316,
)
_sym_db.RegisterEnumDescriptor(_GEOMODELLERDATASOURCE)
GeomodellerDataSource = enum_type_wrapper.EnumTypeWrapper(_GEOMODELLERDATASOURCE)
_SECTIONRENDERSTYLE = _descriptor.EnumDescriptor(
name='SectionRenderStyle',
full_name='gmtaskmodel.SectionRenderStyle',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='Solid_Fill', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Boundary_Lines', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Geology_Trends', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=34318,
serialized_end=34394,
)
_sym_db.RegisterEnumDescriptor(_SECTIONRENDERSTYLE)
SectionRenderStyle = enum_type_wrapper.EnumTypeWrapper(_SECTIONRENDERSTYLE)
_FAULTCENTRETYPE = _descriptor.EnumDescriptor(
name='FaultCentreType',
full_name='gmtaskmodel.FaultCentreType',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='MEAN_POSITION', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='BOUNDINGBOX_CENTRE', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='USER_SPECIFIED', index=2, number=99,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=34396,
serialized_end=34476,
)
_sym_db.RegisterEnumDescriptor(_FAULTCENTRETYPE)
FaultCentreType = enum_type_wrapper.EnumTypeWrapper(_FAULTCENTRETYPE)
_FORMATS2D = _descriptor.EnumDescriptor(
name='Formats2D',
full_name='gmtaskmodel.Formats2D',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='FT_SHP', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='FT_MAPINFO', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='FT_ASCIIBRGM', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='FT_CSV', index=3, number=4,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=34478,
serialized_end=34547,
)
_sym_db.RegisterEnumDescriptor(_FORMATS2D)
Formats2D = enum_type_wrapper.EnumTypeWrapper(_FORMATS2D)
_ASSOCIATED_ORIENTATIONMETHOD = _descriptor.EnumDescriptor(
name='Associated_OrientationMethod',
full_name='gmtaskmodel.Associated_OrientationMethod',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='UNDEFINED', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='DIP', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='DIPAZIMUTH', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='LINEORIENTATION', index=3, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='ORTHOGONAL', index=4, number=4,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=34549,
serialized_end=34656,
)
_sym_db.RegisterEnumDescriptor(_ASSOCIATED_ORIENTATIONMETHOD)
Associated_OrientationMethod = enum_type_wrapper.EnumTypeWrapper(_ASSOCIATED_ORIENTATIONMETHOD)
_IMPORTACTION = _descriptor.EnumDescriptor(
name='ImportAction',
full_name='gmtaskmodel.ImportAction',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='CreateFault', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='CreateFormation', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='CreateDyke', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='MergeFault', index=3, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='MergeFormation', index=4, number=5,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Import_default', index=5, number=6,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=34658,
serialized_end=34782,
)
_sym_db.RegisterEnumDescriptor(_IMPORTACTION)
ImportAction = enum_type_wrapper.EnumTypeWrapper(_IMPORTACTION)
_COMPOSITESTYLE = _descriptor.EnumDescriptor(
name='CompositeStyle',
full_name='gmtaskmodel.CompositeStyle',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='Start_Collar', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='First_NonNull', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=34784,
serialized_end=34837,
)
_sym_db.RegisterEnumDescriptor(_COMPOSITESTYLE)
CompositeStyle = enum_type_wrapper.EnumTypeWrapper(_COMPOSITESTYLE)
_COMPOSITEREPLACEMENTSTYLE = _descriptor.EnumDescriptor(
name='CompositeReplacementStyle',
full_name='gmtaskmodel.CompositeReplacementStyle',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='BackgroundValue', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='WeightedMean', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=34839,
serialized_end=34905,
)
_sym_db.RegisterEnumDescriptor(_COMPOSITEREPLACEMENTSTYLE)
CompositeReplacementStyle = enum_type_wrapper.EnumTypeWrapper(_COMPOSITEREPLACEMENTSTYLE)
_COMPOSITEWEIGHTINGSTYLE = _descriptor.EnumDescriptor(
name='CompositeWeightingStyle',
full_name='gmtaskmodel.CompositeWeightingStyle',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='length_weighting', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='density_weighting', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=34907,
serialized_end=34977,
)
_sym_db.RegisterEnumDescriptor(_COMPOSITEWEIGHTINGSTYLE)
CompositeWeightingStyle = enum_type_wrapper.EnumTypeWrapper(_COMPOSITEWEIGHTINGSTYLE)
_TYPEOFANALYSIS = _descriptor.EnumDescriptor(
name='TypeOfAnalysis',
full_name='gmtaskmodel.TypeOfAnalysis',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='RhoThetaPhi', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='RhoTheta', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Rho', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='UVT', index=3, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='OnlyT', index=4, number=4,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=34979,
serialized_end=35055,
)
_sym_db.RegisterEnumDescriptor(_TYPEOFANALYSIS)
TypeOfAnalysis = enum_type_wrapper.EnumTypeWrapper(_TYPEOFANALYSIS)
_KRIGINGDOMAIN = _descriptor.EnumDescriptor(
name='KrigingDomain',
full_name='gmtaskmodel.KrigingDomain',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='Series', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Formation', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='NoDomain', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=35057,
serialized_end=35113,
)
_sym_db.RegisterEnumDescriptor(_KRIGINGDOMAIN)
KrigingDomain = enum_type_wrapper.EnumTypeWrapper(_KRIGINGDOMAIN)
_KRIGING_WHICHVARIOGRAM = _descriptor.EnumDescriptor(
name='Kriging_WhichVariogram',
full_name='gmtaskmodel.Kriging_WhichVariogram',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='Kriging_U', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Kriging_V', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Kriging_W', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Kriging_RHO', index=3, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Kriging_T', index=4, number=4,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Kriging_UV', index=5, number=5,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=35115,
serialized_end=35232,
)
_sym_db.RegisterEnumDescriptor(_KRIGING_WHICHVARIOGRAM)
Kriging_WhichVariogram = enum_type_wrapper.EnumTypeWrapper(_KRIGING_WHICHVARIOGRAM)
_MESH_FACET_TOPOLOGY = _descriptor.EnumDescriptor(
name='Mesh_facet_topology',
full_name='gmtaskmodel.Mesh_facet_topology',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='FACET_VERTICES_ON_SURFACE', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='FACET_VERTICES_ON_SAME_SURFACE_PATCH', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='FACET_VERTICES_ON_SAME_SURFACE_PATCH_WITH_ADJACENCY_CHECK', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=35235,
serialized_end=35392,
)
_sym_db.RegisterEnumDescriptor(_MESH_FACET_TOPOLOGY)
Mesh_facet_topology = enum_type_wrapper.EnumTypeWrapper(_MESH_FACET_TOPOLOGY)
_OPTMANIFOLDREQUEST = _descriptor.EnumDescriptor(
name='OptManifoldRequest',
full_name='gmtaskmodel.OptManifoldRequest',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='manifold', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='manifold_with_boundary', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='non_manifold', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=35394,
serialized_end=35474,
)
_sym_db.RegisterEnumDescriptor(_OPTMANIFOLDREQUEST)
OptManifoldRequest = enum_type_wrapper.EnumTypeWrapper(_OPTMANIFOLDREQUEST)
_SITETYPE3D = _descriptor.EnumDescriptor(
name='SiteType3D',
full_name='gmtaskmodel.SiteType3D',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='VRML_Site', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='PDF3D_Site', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='PDF3D_direct', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='ADOBE_PRC', index=3, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=35476,
serialized_end=35552,
)
_sym_db.RegisterEnumDescriptor(_SITETYPE3D)
SiteType3D = enum_type_wrapper.EnumTypeWrapper(_SITETYPE3D)
_GEOMODELLERDATATYPE = _descriptor.EnumDescriptor(
name='GeomodellerDataType',
full_name='gmtaskmodel.GeomodellerDataType',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='Structure', index=0, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Model', index=1, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='MeshGrid', index=2, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='DrillHoles', index=3, number=4,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Inversion_Result', index=4, number=5,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='All_Parts', index=5, number=10,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=35554,
serialized_end=35668,
)
_sym_db.RegisterEnumDescriptor(_GEOMODELLERDATATYPE)
GeomodellerDataType = enum_type_wrapper.EnumTypeWrapper(_GEOMODELLERDATATYPE)
_DISTRIBUTION_TYPE = _descriptor.EnumDescriptor(
name='Distribution_Type',
full_name='gmtaskmodel.Distribution_Type',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='TopFormation_Gradient', index=0, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='TopAndBottom', index=1, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='DepthParameter_Gradient', index=2, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='BottomFormation_Gradient', index=3, number=4,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=35670,
serialized_end=35793,
)
_sym_db.RegisterEnumDescriptor(_DISTRIBUTION_TYPE)
Distribution_Type = enum_type_wrapper.EnumTypeWrapper(_DISTRIBUTION_TYPE)
_FOLDTYPE = _descriptor.EnumDescriptor(
name='FoldType',
full_name='gmtaskmodel.FoldType',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='Anticline', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Syncline', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Antiform', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Synform', index=3, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Dome', index=4, number=4,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Basin', index=5, number=5,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Monocline', index=6, number=6,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Chevron', index=7, number=7,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Recumbent', index=8, number=8,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Slump', index=9, number=9,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Ptygmatic', index=10, number=10,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Parasitic', index=11, number=11,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Disharmonic', index=12, number=12,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=35796,
serialized_end=35984,
)
_sym_db.RegisterEnumDescriptor(_FOLDTYPE)
FoldType = enum_type_wrapper.EnumTypeWrapper(_FOLDTYPE)
_FOLDMECHANISM = _descriptor.EnumDescriptor(
name='FoldMechanism',
full_name='gmtaskmodel.FoldMechanism',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='FlexuralSlip', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Buckling', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='MassDisplacement', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=35986,
serialized_end=36055,
)
_sym_db.RegisterEnumDescriptor(_FOLDMECHANISM)
FoldMechanism = enum_type_wrapper.EnumTypeWrapper(_FOLDMECHANISM)
_FOLDTIGHTNESS = _descriptor.EnumDescriptor(
name='FoldTightness',
full_name='gmtaskmodel.FoldTightness',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='Gentle', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='OpenFold', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='TightFold', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=36057,
serialized_end=36113,
)
_sym_db.RegisterEnumDescriptor(_FOLDTIGHTNESS)
FoldTightness = enum_type_wrapper.EnumTypeWrapper(_FOLDTIGHTNESS)
_DEFORMATIONSTYLE = _descriptor.EnumDescriptor(
name='DeformationStyle',
full_name='gmtaskmodel.DeformationStyle',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='Class1', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Class1A', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Class1B', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Class1C', index=3, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Class2', index=4, number=4,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Class3', index=5, number=5,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=36115,
serialized_end=36208,
)
_sym_db.RegisterEnumDescriptor(_DEFORMATIONSTYLE)
DeformationStyle = enum_type_wrapper.EnumTypeWrapper(_DEFORMATIONSTYLE)
_HINGEPOLARITY = _descriptor.EnumDescriptor(
name='HingePolarity',
full_name='gmtaskmodel.HingePolarity',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='Hinge_Left', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='Hinge_Right', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=36210,
serialized_end=36258,
)
_sym_db.RegisterEnumDescriptor(_HINGEPOLARITY)
HingePolarity = enum_type_wrapper.EnumTypeWrapper(_HINGEPOLARITY)
Project = 0
File = 1
Solid_Fill = 0
Boundary_Lines = 1
Geology_Trends = 2
MEAN_POSITION = 0
BOUNDINGBOX_CENTRE = 1
USER_SPECIFIED = 99
FT_SHP = 0
FT_MAPINFO = 1
FT_ASCIIBRGM = 2
FT_CSV = 4
UNDEFINED = 0
DIP = 1
DIPAZIMUTH = 2
LINEORIENTATION = 3
ORTHOGONAL = 4
CreateFault = 0
CreateFormation = 1
CreateDyke = 2
MergeFault = 3
MergeFormation = 5
Import_default = 6
Start_Collar = 0
First_NonNull = 1
BackgroundValue = 0
WeightedMean = 1
length_weighting = 0
density_weighting = 1
RhoThetaPhi = 0
RhoTheta = 1
Rho = 2
UVT = 3
OnlyT = 4
Series = 0
Formation = 1
NoDomain = 2
Kriging_U = 0
Kriging_V = 1
Kriging_W = 2
Kriging_RHO = 3
Kriging_T = 4
Kriging_UV = 5
FACET_VERTICES_ON_SURFACE = 0
FACET_VERTICES_ON_SAME_SURFACE_PATCH = 1
FACET_VERTICES_ON_SAME_SURFACE_PATCH_WITH_ADJACENCY_CHECK = 2
manifold = 0
manifold_with_boundary = 1
non_manifold = 2
VRML_Site = 0
PDF3D_Site = 1
PDF3D_direct = 2
ADOBE_PRC = 3
Structure = 1
Model = 2
MeshGrid = 3
DrillHoles = 4
Inversion_Result = 5
All_Parts = 10
TopFormation_Gradient = 1
TopAndBottom = 2
DepthParameter_Gradient = 3
BottomFormation_Gradient = 4
Anticline = 0
Syncline = 1
Antiform = 2
Synform = 3
Dome = 4
Basin = 5
Monocline = 6
Chevron = 7
Recumbent = 8
Slump = 9
Ptygmatic = 10
Parasitic = 11
Disharmonic = 12
FlexuralSlip = 0
Buckling = 1
MassDisplacement = 2
Gentle = 0
OpenFold = 1
TightFold = 2
Class1 = 0
Class1A = 1
Class1B = 2
Class1C = 3
Class2 = 4
Class3 = 5
Hinge_Left = 0
Hinge_Right = 1
_BUILDTRIPLELINES_GMT_EXPORTTRIPLELINES_TRIPLELINE_EXPORTFORMAT = _descriptor.EnumDescriptor(
name='TripleLine_ExportFormat',
full_name='gmtaskmodel.BuildTripleLines_GMT.ExportTripleLines.TripleLine_ExportFormat',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='TripleLine_ASCII_LONG', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='TripleLine_ASCII_CGAL', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='TripleLine_VTK', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=18381,
serialized_end=18480,
)
_sym_db.RegisterEnumDescriptor(_BUILDTRIPLELINES_GMT_EXPORTTRIPLELINES_TRIPLELINE_EXPORTFORMAT)
_EXPORT3DSHAPES_GMT_FILETYPE3D = _descriptor.EnumDescriptor(
name='FileType3D',
full_name='gmtaskmodel.Export3DShapes_GMT.FileType3D',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='TSURF', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='VULCAN', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='IGES', index=2, number=2,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='STEP', index=3, number=3,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='DXF12', index=4, number=4,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='DXF13', index=5, number=5,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='VTP', index=6, number=6,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='STL', index=7, number=7,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='VTU', index=8, number=8,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='FEFLOW', index=9, number=9,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='MEDIT', index=10, number=10,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='C3T3', index=11, number=11,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='COMSOL', index=12, number=12,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=22635,
serialized_end=22784,
)
_sym_db.RegisterEnumDescriptor(_EXPORT3DSHAPES_GMT_FILETYPE3D)
_EXPORT3DSHAPES_GMT_MESHTYPE = _descriptor.EnumDescriptor(
name='MeshType',
full_name='gmtaskmodel.Export3DShapes_GMT.MeshType',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='SURFACE', index=0, number=10,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='SHELL', index=1, number=11,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='VOLUME', index=2, number=12,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=22786,
serialized_end=22832,
)
_sym_db.RegisterEnumDescriptor(_EXPORT3DSHAPES_GMT_MESHTYPE)
_AXIS_CONTROL_GMT_DIRECTION = _descriptor.EnumDescriptor(
name='direction',
full_name='gmtaskmodel.Axis_Control_GMT.direction',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='u', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='v', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=24176,
serialized_end=24201,
)
_sym_db.RegisterEnumDescriptor(_AXIS_CONTROL_GMT_DIRECTION)
_MESHUNITFORGEOPHYS_GMT_THINNINGFUNCTION = _descriptor.EnumDescriptor(
name='ThinningFunction',
full_name='gmtaskmodel.MeshUnitForGeophys_GMT.ThinningFunction',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='LINEAR', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='ANISOTROPIC', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=25995,
serialized_end=26042,
)
_sym_db.RegisterEnumDescriptor(_MESHUNITFORGEOPHYS_GMT_THINNINGFUNCTION)
_MESHUNITFORGEOPHYS_GMT_SAMPLEMETHOD = _descriptor.EnumDescriptor(
name='SampleMethod',
full_name='gmtaskmodel.MeshUnitForGeophys_GMT.SampleMethod',
filename=None,
file=DESCRIPTOR,
create_key=_descriptor._internal_create_key,
values=[
_descriptor.EnumValueDescriptor(
name='INPUT_POINT_CLOUD', index=0, number=0,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
_descriptor.EnumValueDescriptor(
name='POTENTIAL_FIELD', index=1, number=1,
serialized_options=None,
type=None,
create_key=_descriptor._internal_create_key),
],
containing_type=None,
serialized_options=None,
serialized_start=26044,
serialized_end=26102,
)
_sym_db.RegisterEnumDescriptor(_MESHUNITFORGEOPHYS_GMT_SAMPLEMETHOD)
_FOLIATION_GMT = _descriptor.Descriptor(
name='Foliation_GMT',
full_name='gmtaskmodel.Foliation_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='Point', full_name='gmtaskmodel.Foliation_GMT.Point', index=0,
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='Point3D', full_name='gmtaskmodel.Foliation_GMT.Point3D', 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='dip', full_name='gmtaskmodel.Foliation_GMT.dip', index=2,
number=3, type=1, cpp_type=5, label=2,
has_default_value=False, default_value=float(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='direction', full_name='gmtaskmodel.Foliation_GMT.direction', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='azimuth', full_name='gmtaskmodel.Foliation_GMT.azimuth', index=4,
number=5, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='DipDistribution', full_name='gmtaskmodel.Foliation_GMT.DipDistribution', index=5,
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='DirectionDistribution', full_name='gmtaskmodel.Foliation_GMT.DirectionDistribution', index=6,
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='Provenance', full_name='gmtaskmodel.Foliation_GMT.Provenance', index=7,
number=6, type=14, cpp_type=8, label=1,
has_default_value=True, 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='polarity', full_name='gmtaskmodel.Foliation_GMT.polarity', index=8,
number=7, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='observationID', full_name='gmtaskmodel.Foliation_GMT.observationID', index=9,
number=8, type=9, cpp_type=9, label=1,
has_default_value=True, 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='Intensity', full_name='gmtaskmodel.Foliation_GMT.Intensity', index=10,
number=9, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='spherical_variance_kappa', full_name='gmtaskmodel.Foliation_GMT.spherical_variance_kappa', index=11,
number=10, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(2),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.Foliation_GMT.log', index=12,
number=20, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"foliation.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=76,
serialized_end=582,
)
_APPARENTDIP_GMT = _descriptor.Descriptor(
name='ApparentDip_GMT',
full_name='gmtaskmodel.ApparentDip_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='Point', full_name='gmtaskmodel.ApparentDip_GMT.Point', index=0,
number=1, type=11, cpp_type=10, label=2,
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='DipDistribution', full_name='gmtaskmodel.ApparentDip_GMT.DipDistribution', index=1,
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='Provenance', full_name='gmtaskmodel.ApparentDip_GMT.Provenance', index=2,
number=3, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=4,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='observationID', full_name='gmtaskmodel.ApparentDip_GMT.observationID', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=True, 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='dip_error', full_name='gmtaskmodel.ApparentDip_GMT.dip_error', index=4,
number=5, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='log', full_name='gmtaskmodel.ApparentDip_GMT.log', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"apparent_dip.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=585,
serialized_end=844,
)
_SETMODELBOUNDS_GMT = _descriptor.Descriptor(
name='SetModelBounds_GMT',
full_name='gmtaskmodel.SetModelBounds_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='Extents', full_name='gmtaskmodel.SetModelBounds_GMT.Extents', index=0,
number=1, type=11, cpp_type=10, label=2,
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='log', full_name='gmtaskmodel.SetModelBounds_GMT.log', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"set_model_bounds.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=846,
serialized_end=936,
)
_GETMODELBOUNDS_GMT = _descriptor.Descriptor(
name='GetModelBounds_GMT',
full_name='gmtaskmodel.GetModelBounds_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='Extents', full_name='gmtaskmodel.GetModelBounds_GMT.Extents', index=0,
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='log', full_name='gmtaskmodel.GetModelBounds_GMT.log', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"get_model_bounds.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=938,
serialized_end=1028,
)
_OPENPROJECTGUI_GMT = _descriptor.Descriptor(
name='OpenProjectGUI_GMT',
full_name='gmtaskmodel.OpenProjectGUI_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='filename', full_name='gmtaskmodel.OpenProjectGUI_GMT.filename', index=0,
number=1, type=9, cpp_type=9, label=2,
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='log', full_name='gmtaskmodel.OpenProjectGUI_GMT.log', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"open_project.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1030,
serialized_end=1099,
)
_OPENPROJECTNOGUI_GMT = _descriptor.Descriptor(
name='OpenProjectNoGUI_GMT',
full_name='gmtaskmodel.OpenProjectNoGUI_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='filename', full_name='gmtaskmodel.OpenProjectNoGUI_GMT.filename', index=0,
number=1, type=9, cpp_type=9, label=2,
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='log', full_name='gmtaskmodel.OpenProjectNoGUI_GMT.log', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"open_project.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1101,
serialized_end=1172,
)
_CLOSEPROJECTNOGUI_GMT = _descriptor.Descriptor(
name='CloseProjectNoGUI_GMT',
full_name='gmtaskmodel.CloseProjectNoGUI_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='filename', full_name='gmtaskmodel.CloseProjectNoGUI_GMT.filename', 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='log', full_name='gmtaskmodel.CloseProjectNoGUI_GMT.log', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"close_project.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1174,
serialized_end=1247,
)
_SAVEPROJECT_GMT = _descriptor.Descriptor(
name='SaveProject_GMT',
full_name='gmtaskmodel.SaveProject_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='without_computed_model', full_name='gmtaskmodel.SaveProject_GMT.without_computed_model', index=0,
number=2, type=8, cpp_type=7, label=1,
has_default_value=True, 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='log', full_name='gmtaskmodel.SaveProject_GMT.log', index=1,
number=1, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"save_project.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1249,
serialized_end=1336,
)
_SAVEPROJECTAS_GMT = _descriptor.Descriptor(
name='SaveProjectAs_GMT',
full_name='gmtaskmodel.SaveProjectAs_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='filename', full_name='gmtaskmodel.SaveProjectAs_GMT.filename', index=0,
number=1, type=9, cpp_type=9, label=2,
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='without_computed_model', full_name='gmtaskmodel.SaveProjectAs_GMT.without_computed_model', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=True, 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='log', full_name='gmtaskmodel.SaveProjectAs_GMT.log', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"save_project_as.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1338,
serialized_end=1448,
)
_CUSTOMDTM_GMT = _descriptor.Descriptor(
name='CustomDTM_GMT',
full_name='gmtaskmodel.CustomDTM_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='isGDM', full_name='gmtaskmodel.CustomDTM_GMT.isGDM', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=True, 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='name', full_name='gmtaskmodel.CustomDTM_GMT.name', index=1,
number=2, type=9, cpp_type=9, label=2,
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='filename', full_name='gmtaskmodel.CustomDTM_GMT.filename', 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),
_descriptor.FieldDescriptor(
name='Extents', full_name='gmtaskmodel.CustomDTM_GMT.Extents', 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='nx', full_name='gmtaskmodel.CustomDTM_GMT.nx', index=4,
number=5, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=5,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ny', full_name='gmtaskmodel.CustomDTM_GMT.ny', index=5,
number=6, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=5,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='degree1', full_name='gmtaskmodel.CustomDTM_GMT.degree1', index=6,
number=7, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=3,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='degree2', full_name='gmtaskmodel.CustomDTM_GMT.degree2', index=7,
number=8, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=5,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='sub_sample_rate', full_name='gmtaskmodel.CustomDTM_GMT.sub_sample_rate', index=8,
number=9, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='elevation_error', full_name='gmtaskmodel.CustomDTM_GMT.elevation_error', index=9,
number=10, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='isElevationMeasure', full_name='gmtaskmodel.CustomDTM_GMT.isElevationMeasure', index=10,
number=11, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='units', full_name='gmtaskmodel.CustomDTM_GMT.units', index=11,
number=12, type=14, cpp_type=8, label=1,
has_default_value=True, 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='spatial_location_error', full_name='gmtaskmodel.CustomDTM_GMT.spatial_location_error', index=12,
number=13, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='shape_file', full_name='gmtaskmodel.CustomDTM_GMT.shape_file', 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='log', full_name='gmtaskmodel.CustomDTM_GMT.log', index=14,
number=20, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"custom_dtm.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1451,
serialized_end=1854,
)
_HORIZONTALDTM_GMT = _descriptor.Descriptor(
name='HorizontalDTM_GMT',
full_name='gmtaskmodel.HorizontalDTM_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='gmtaskmodel.HorizontalDTM_GMT.name', index=0,
number=1, type=9, cpp_type=9, label=2,
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='elevation', full_name='gmtaskmodel.HorizontalDTM_GMT.elevation', index=1,
number=2, type=1, cpp_type=5, label=2,
has_default_value=False, default_value=float(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='spatial_location_error', full_name='gmtaskmodel.HorizontalDTM_GMT.spatial_location_error', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='log', full_name='gmtaskmodel.HorizontalDTM_GMT.log', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"horizontal_dtm.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1856,
serialized_end=1973,
)
_CREATEPROJECT_GMT = _descriptor.Descriptor(
name='CreateProject_GMT',
full_name='gmtaskmodel.CreateProject_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='CustomDTM', full_name='gmtaskmodel.CreateProject_GMT.CustomDTM', index=0,
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='HorizontalDTM', full_name='gmtaskmodel.CreateProject_GMT.HorizontalDTM', 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='name', full_name='gmtaskmodel.CreateProject_GMT.name', index=2,
number=3, type=9, cpp_type=9, label=2,
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='gmtaskmodel.CreateProject_GMT.author', index=3,
number=4, type=9, cpp_type=9, label=2,
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='date', full_name='gmtaskmodel.CreateProject_GMT.date', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"01/01/2012 00:00:00".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='gmtaskmodel.CreateProject_GMT.description', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=True, 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='projection', full_name='gmtaskmodel.CreateProject_GMT.projection', 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='version', full_name='gmtaskmodel.CreateProject_GMT.version', index=7,
number=8, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"3".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='units', full_name='gmtaskmodel.CreateProject_GMT.units', index=8,
number=9, type=14, cpp_type=8, label=1,
has_default_value=True, 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='Zunits', full_name='gmtaskmodel.CreateProject_GMT.Zunits', index=9,
number=10, type=14, cpp_type=8, label=1,
has_default_value=True, 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='precision', full_name='gmtaskmodel.CreateProject_GMT.precision', index=10,
number=12, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Extents', full_name='gmtaskmodel.CreateProject_GMT.Extents', index=11,
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='CreateFromVoxet', full_name='gmtaskmodel.CreateProject_GMT.CreateFromVoxet', index=12,
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='deflection2d', full_name='gmtaskmodel.CreateProject_GMT.deflection2d', index=13,
number=16, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(0.001),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='deflection3d', full_name='gmtaskmodel.CreateProject_GMT.deflection3d', index=14,
number=17, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(0.001),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='discretisation', full_name='gmtaskmodel.CreateProject_GMT.discretisation', index=15,
number=18, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(10),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='dynamicSelection', full_name='gmtaskmodel.CreateProject_GMT.dynamicSelection', index=16,
number=19, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='referenceTop', full_name='gmtaskmodel.CreateProject_GMT.referenceTop', index=17,
number=20, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.CreateProject_GMT.log', index=18,
number=30, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"create_project.rpt".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='run', full_name='gmtaskmodel.CreateProject_GMT.run', index=19,
number=40, type=5, cpp_type=1, label=1,
has_default_value=True, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=1976,
serialized_end=2657,
)
_MODELINTERPOLATIONPARAMETERS_GMT = _descriptor.Descriptor(
name='ModelInterpolationParameters_GMT',
full_name='gmtaskmodel.ModelInterpolationParameters_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='Range', full_name='gmtaskmodel.ModelInterpolationParameters_GMT.Range', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(10000),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Contacts_Nugget_Effect', full_name='gmtaskmodel.ModelInterpolationParameters_GMT.Contacts_Nugget_Effect', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1e-06),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Gradients_Nugget_Effect', full_name='gmtaskmodel.ModelInterpolationParameters_GMT.Gradients_Nugget_Effect', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(0.01),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='FaultDriftEquationDegree', full_name='gmtaskmodel.ModelInterpolationParameters_GMT.FaultDriftEquationDegree', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Anisotropy', full_name='gmtaskmodel.ModelInterpolationParameters_GMT.Anisotropy', index=4,
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='series', full_name='gmtaskmodel.ModelInterpolationParameters_GMT.series', index=5,
number=6, type=9, cpp_type=9, label=2,
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='exotic_constraints', full_name='gmtaskmodel.ModelInterpolationParameters_GMT.exotic_constraints', index=6,
number=7, 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='log', full_name='gmtaskmodel.ModelInterpolationParameters_GMT.log', index=7,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2660,
serialized_end=2981,
)
_ANISOTROPIC_EFFECT_GMT = _descriptor.Descriptor(
name='Anisotropic_Effect_GMT',
full_name='gmtaskmodel.Anisotropic_Effect_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='Azimuth', full_name='gmtaskmodel.Anisotropic_Effect_GMT.Azimuth', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='Dip', full_name='gmtaskmodel.Anisotropic_Effect_GMT.Dip', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='Pitch', full_name='gmtaskmodel.Anisotropic_Effect_GMT.Pitch', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='LocalXRange', full_name='gmtaskmodel.Anisotropic_Effect_GMT.LocalXRange', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1000),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='LocalYRange', full_name='gmtaskmodel.Anisotropic_Effect_GMT.LocalYRange', index=4,
number=5, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1000),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='LocalZRange', full_name='gmtaskmodel.Anisotropic_Effect_GMT.LocalZRange', index=5,
number=6, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1000),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.Anisotropic_Effect_GMT.log', index=6,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=2984,
serialized_end=3157,
)
_EXOTICCONSTRAINT_GMT = _descriptor.Descriptor(
name='ExoticConstraint_GMT',
full_name='gmtaskmodel.ExoticConstraint_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='lithology', full_name='gmtaskmodel.ExoticConstraint_GMT.lithology', index=0,
number=1, type=9, cpp_type=9, label=2,
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='type', full_name='gmtaskmodel.ExoticConstraint_GMT.type', index=1,
number=2, type=13, cpp_type=3, label=2,
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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3159,
serialized_end=3214,
)
_COMPUTEMODEL_GMT = _descriptor.Descriptor(
name='ComputeModel_GMT',
full_name='gmtaskmodel.ComputeModel_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='SeriesList', full_name='gmtaskmodel.ComputeModel_GMT.SeriesList', index=0,
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='SectionList', full_name='gmtaskmodel.ComputeModel_GMT.SectionList', 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='FaultList', full_name='gmtaskmodel.ComputeModel_GMT.FaultList', 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),
_descriptor.FieldDescriptor(
name='BoreholeList', full_name='gmtaskmodel.ComputeModel_GMT.BoreholeList', 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='Extents', full_name='gmtaskmodel.ComputeModel_GMT.Extents', 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),
_descriptor.FieldDescriptor(
name='radius', full_name='gmtaskmodel.ComputeModel_GMT.radius', index=5,
number=5, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(10),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='MinimumDykeThickness', full_name='gmtaskmodel.ComputeModel_GMT.MinimumDykeThickness', index=6,
number=7, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(2),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='dump_system', full_name='gmtaskmodel.ComputeModel_GMT.dump_system', index=7,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, 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='calc_uncertainty', full_name='gmtaskmodel.ComputeModel_GMT.calc_uncertainty', index=8,
number=9, type=8, cpp_type=7, label=1,
has_default_value=True, 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='faults_only', full_name='gmtaskmodel.ComputeModel_GMT.faults_only', index=9,
number=10, type=8, cpp_type=7, label=1,
has_default_value=True, 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='dykes_only', full_name='gmtaskmodel.ComputeModel_GMT.dykes_only', index=10,
number=11, type=8, cpp_type=7, label=1,
has_default_value=True, 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='SeriesInterpolationParameters', full_name='gmtaskmodel.ComputeModel_GMT.SeriesInterpolationParameters', index=11,
number=12, 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='FaultInterpolationParameters', full_name='gmtaskmodel.ComputeModel_GMT.FaultInterpolationParameters', index=12,
number=13, 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='log', full_name='gmtaskmodel.ComputeModel_GMT.log', index=13,
number=20, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"compute_model.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3217,
serialized_end=3808,
)
_RENDERMODEL_GMT = _descriptor.Descriptor(
name='RenderModel_GMT',
full_name='gmtaskmodel.RenderModel_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='nx', full_name='gmtaskmodel.RenderModel_GMT.nx', index=0,
number=1, type=5, cpp_type=1, label=2,
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='ny', full_name='gmtaskmodel.RenderModel_GMT.ny', index=1,
number=2, type=5, cpp_type=1, label=2,
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='nz', full_name='gmtaskmodel.RenderModel_GMT.nz', index=2,
number=3, type=5, cpp_type=1, label=2,
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='generateSurfaces', full_name='gmtaskmodel.RenderModel_GMT.generateSurfaces', index=3,
number=4, type=8, cpp_type=7, label=1,
has_default_value=True, 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='generateVolumes', full_name='gmtaskmodel.RenderModel_GMT.generateVolumes', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='grid', full_name='gmtaskmodel.RenderModel_GMT.grid', index=5,
number=6, type=8, cpp_type=7, label=1,
has_default_value=True, 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='buildFormations', full_name='gmtaskmodel.RenderModel_GMT.buildFormations', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='buildFaults', full_name='gmtaskmodel.RenderModel_GMT.buildFaults', index=7,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, 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='buildDykes', full_name='gmtaskmodel.RenderModel_GMT.buildDykes', index=8,
number=22, type=8, cpp_type=7, label=1,
has_default_value=True, 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='adaptToTopo', full_name='gmtaskmodel.RenderModel_GMT.adaptToTopo', index=9,
number=9, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='topoLimited', full_name='gmtaskmodel.RenderModel_GMT.topoLimited', index=10,
number=10, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='adaptX', full_name='gmtaskmodel.RenderModel_GMT.adaptX', index=11,
number=11, type=8, cpp_type=7, label=1,
has_default_value=True, 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='adaptY', full_name='gmtaskmodel.RenderModel_GMT.adaptY', index=12,
number=12, type=8, cpp_type=7, label=1,
has_default_value=True, 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='adaptZ', full_name='gmtaskmodel.RenderModel_GMT.adaptZ', index=13,
number=13, type=8, cpp_type=7, label=1,
has_default_value=True, 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='lookForOverturned', full_name='gmtaskmodel.RenderModel_GMT.lookForOverturned', index=14,
number=14, type=8, cpp_type=7, label=1,
has_default_value=True, 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='createShapes', full_name='gmtaskmodel.RenderModel_GMT.createShapes', index=15,
number=15, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='restart', full_name='gmtaskmodel.RenderModel_GMT.restart', index=16,
number=16, type=8, cpp_type=7, label=1,
has_default_value=True, 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='smoothingIterations', full_name='gmtaskmodel.RenderModel_GMT.smoothingIterations', index=17,
number=17, type=5, cpp_type=1, label=1,
has_default_value=True, 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='Extents', full_name='gmtaskmodel.RenderModel_GMT.Extents', index=18,
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='log', full_name='gmtaskmodel.RenderModel_GMT.log', index=19,
number=25, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"render_model.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=3811,
serialized_end=4342,
)
_RENDERMODELONSECTION_GMT = _descriptor.Descriptor(
name='RenderModelOnSection_GMT',
full_name='gmtaskmodel.RenderModelOnSection_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='nu', full_name='gmtaskmodel.RenderModelOnSection_GMT.nu', index=0,
number=1, type=5, cpp_type=1, label=2,
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='nv', full_name='gmtaskmodel.RenderModelOnSection_GMT.nv', index=1,
number=2, type=5, cpp_type=1, label=2,
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='section', full_name='gmtaskmodel.RenderModelOnSection_GMT.section', index=2,
number=3, type=9, cpp_type=9, label=2,
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='filename', full_name='gmtaskmodel.RenderModelOnSection_GMT.filename', index=3,
number=4, type=9, cpp_type=9, label=2,
has_default_value=True, default_value=b"section.png".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='Format', full_name='gmtaskmodel.RenderModelOnSection_GMT.Format', index=4,
number=5, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Style', full_name='gmtaskmodel.RenderModelOnSection_GMT.Style', index=5,
number=6, type=14, cpp_type=8, label=1,
has_default_value=True, 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='projection_distance', full_name='gmtaskmodel.RenderModelOnSection_GMT.projection_distance', index=6,
number=7, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.RenderModelOnSection_GMT.log', index=7,
number=25, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"render_section.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=4345,
serialized_end=4615,
)
_CREATEFAULT_GMT = _descriptor.Descriptor(
name='CreateFault_GMT',
full_name='gmtaskmodel.CreateFault_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='gmtaskmodel.CreateFault_GMT.name', index=0,
number=1, type=9, cpp_type=9, label=2,
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='red', full_name='gmtaskmodel.CreateFault_GMT.red', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(255),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='green', full_name='gmtaskmodel.CreateFault_GMT.green', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(255),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='blue', full_name='gmtaskmodel.CreateFault_GMT.blue', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='Thickness', full_name='gmtaskmodel.CreateFault_GMT.Thickness', index=4,
number=6, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='log', full_name='gmtaskmodel.CreateFault_GMT.log', index=5,
number=9, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"create_fault.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=4618,
serialized_end=4757,
)
_SET3DFAULTLIMITS_GMT = _descriptor.Descriptor(
name='Set3dFaultLimits_GMT',
full_name='gmtaskmodel.Set3dFaultLimits_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='Fault_name', full_name='gmtaskmodel.Set3dFaultLimits_GMT.Fault_name', index=0,
number=1, type=9, cpp_type=9, label=2,
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='Horizontal', full_name='gmtaskmodel.Set3dFaultLimits_GMT.Horizontal', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1000),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Vertical', full_name='gmtaskmodel.Set3dFaultLimits_GMT.Vertical', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1000),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='InfluenceDistance', full_name='gmtaskmodel.Set3dFaultLimits_GMT.InfluenceDistance', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(100),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.Set3dFaultLimits_GMT.log', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"set_fault_limits.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=4760,
serialized_end=4919,
)
_FAULTCENTRE_GMT = _descriptor.Descriptor(
name='FaultCentre_GMT',
full_name='gmtaskmodel.FaultCentre_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='fault_name', full_name='gmtaskmodel.FaultCentre_GMT.fault_name', index=0,
number=1, type=9, cpp_type=9, label=2,
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='type', full_name='gmtaskmodel.FaultCentre_GMT.type', index=1,
number=2, type=14, cpp_type=8, label=2,
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='location', full_name='gmtaskmodel.FaultCentre_GMT.location', 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=4922,
serialized_end=5050,
)
_CREATEFORMATION_GMT = _descriptor.Descriptor(
name='CreateFormation_GMT',
full_name='gmtaskmodel.CreateFormation_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='gmtaskmodel.CreateFormation_GMT.name', index=0,
number=1, type=9, cpp_type=9, label=2,
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='red', full_name='gmtaskmodel.CreateFormation_GMT.red', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='green', full_name='gmtaskmodel.CreateFormation_GMT.green', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(125),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='blue', full_name='gmtaskmodel.CreateFormation_GMT.blue', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(255),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='LithologyProperty', full_name='gmtaskmodel.CreateFormation_GMT.LithologyProperty', index=4,
number=5, 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='log', full_name='gmtaskmodel.CreateFormation_GMT.log', index=5,
number=10, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"create_formation.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=5053,
serialized_end=5233,
)
_CREATEDYKE_GMT = _descriptor.Descriptor(
name='CreateDyke_GMT',
full_name='gmtaskmodel.CreateDyke_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='gmtaskmodel.CreateDyke_GMT.name', index=0,
number=1, type=9, cpp_type=9, label=2,
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='red', full_name='gmtaskmodel.CreateDyke_GMT.red', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(125),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='green', full_name='gmtaskmodel.CreateDyke_GMT.green', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(255),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='blue', full_name='gmtaskmodel.CreateDyke_GMT.blue', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='LithologyProperty', full_name='gmtaskmodel.CreateDyke_GMT.LithologyProperty', index=4,
number=5, 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='log', full_name='gmtaskmodel.CreateDyke_GMT.log', index=5,
number=10, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"create_dyke.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=5236,
serialized_end=5406,
)
_EXPORTSECTION_GMT = _descriptor.Descriptor(
name='ExportSection_GMT',
full_name='gmtaskmodel.ExportSection_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='section', full_name='gmtaskmodel.ExportSection_GMT.section', index=0,
number=1, type=9, cpp_type=9, label=2,
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='filename', full_name='gmtaskmodel.ExportSection_GMT.filename', index=1,
number=2, type=9, cpp_type=9, label=2,
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='log', full_name='gmtaskmodel.ExportSection_GMT.log', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"export_section.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=5408,
serialized_end=5495,
)
_EXPORT2DDATA_GMT = _descriptor.Descriptor(
name='Export2DData_GMT',
full_name='gmtaskmodel.Export2DData_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='section', full_name='gmtaskmodel.Export2DData_GMT.section', index=0,
number=1, type=9, cpp_type=9, label=2,
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='filename', full_name='gmtaskmodel.Export2DData_GMT.filename', index=1,
number=2, type=9, cpp_type=9, label=2,
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='format', full_name='gmtaskmodel.Export2DData_GMT.format', index=2,
number=3, type=14, cpp_type=8, label=2,
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='type', full_name='gmtaskmodel.Export2DData_GMT.type', index=3,
number=4, type=14, cpp_type=8, label=2,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.Export2DData_GMT.log', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"export_2D_data.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=5498,
serialized_end=5669,
)
_CENTRALVERTICALPOTENTIALANDRANK_GMT = _descriptor.Descriptor(
name='CentralVerticalPotentialAndRank_GMT',
full_name='gmtaskmodel.CentralVerticalPotentialAndRank_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='message', full_name='gmtaskmodel.CentralVerticalPotentialAndRank_GMT.message', index=0,
number=1, type=9, cpp_type=9, label=2,
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='filename', full_name='gmtaskmodel.CentralVerticalPotentialAndRank_GMT.filename', index=1,
number=2, type=9, cpp_type=9, label=2,
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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=5671,
serialized_end=5743,
)
_GETMODELSUMMARY_GMT = _descriptor.Descriptor(
name='GetModelSummary_GMT',
full_name='gmtaskmodel.GetModelSummary_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='filename', full_name='gmtaskmodel.GetModelSummary_GMT.filename', index=0,
number=1, type=9, cpp_type=9, label=2,
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='level', full_name='gmtaskmodel.GetModelSummary_GMT.level', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.GetModelSummary_GMT.log', index=2,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=5745,
serialized_end=5816,
)
_SETSERIES_GMT = _descriptor.Descriptor(
name='SetSeries_GMT',
full_name='gmtaskmodel.SetSeries_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='gmtaskmodel.SetSeries_GMT.name', index=0,
number=1, type=9, cpp_type=9, label=2,
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='position', full_name='gmtaskmodel.SetSeries_GMT.position', index=1,
number=2, type=5, cpp_type=1, label=2,
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='relation', full_name='gmtaskmodel.SetSeries_GMT.relation', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"any".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='erelation', full_name='gmtaskmodel.SetSeries_GMT.erelation', index=3,
number=5, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=5,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.SetSeries_GMT.log', index=4,
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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=5819,
serialized_end=5958,
)
_ADDFORMATIONTOSERIES_GMT = _descriptor.Descriptor(
name='AddFormationToSeries_GMT',
full_name='gmtaskmodel.AddFormationToSeries_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='series', full_name='gmtaskmodel.AddFormationToSeries_GMT.series', index=0,
number=1, type=9, cpp_type=9, label=2,
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='formation', full_name='gmtaskmodel.AddFormationToSeries_GMT.formation', index=1,
number=2, type=9, cpp_type=9, label=2,
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='log', full_name='gmtaskmodel.AddFormationToSeries_GMT.log', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=5960,
serialized_end=6034,
)
_ADDDYKETOSERIES_GMT = _descriptor.Descriptor(
name='AddDykeToSeries_GMT',
full_name='gmtaskmodel.AddDykeToSeries_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='series', full_name='gmtaskmodel.AddDykeToSeries_GMT.series', index=0,
number=1, type=9, cpp_type=9, label=2,
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='dyke', full_name='gmtaskmodel.AddDykeToSeries_GMT.dyke', index=1,
number=2, type=9, cpp_type=9, label=2,
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='asBase', full_name='gmtaskmodel.AddDykeToSeries_GMT.asBase', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.AddDykeToSeries_GMT.log', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=6036,
serialized_end=6122,
)
_ADDPOINT3D_GMT = _descriptor.Descriptor(
name='AddPoint3d_GMT',
full_name='gmtaskmodel.AddPoint3d_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='x', full_name='gmtaskmodel.AddPoint3d_GMT.x', index=0,
number=1, type=1, cpp_type=5, label=2,
has_default_value=False, default_value=float(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='y', full_name='gmtaskmodel.AddPoint3d_GMT.y', index=1,
number=2, type=1, cpp_type=5, label=2,
has_default_value=False, default_value=float(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='z', full_name='gmtaskmodel.AddPoint3d_GMT.z', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(-999999),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='spatial_location_error', full_name='gmtaskmodel.AddPoint3d_GMT.spatial_location_error', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='log', full_name='gmtaskmodel.AddPoint3d_GMT.log', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=6124,
serialized_end=6227,
)
_POINTLIST3D_GMT = _descriptor.Descriptor(
name='PointList3d_GMT',
full_name='gmtaskmodel.PointList3d_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='Point', full_name='gmtaskmodel.PointList3d_GMT.Point', 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='log', full_name='gmtaskmodel.PointList3d_GMT.log', 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=6229,
serialized_end=6303,
)
_ADDPOINT2D_GMT = _descriptor.Descriptor(
name='AddPoint2d_GMT',
full_name='gmtaskmodel.AddPoint2d_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='u', full_name='gmtaskmodel.AddPoint2d_GMT.u', index=0,
number=1, type=1, cpp_type=5, label=2,
has_default_value=False, default_value=float(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='v', full_name='gmtaskmodel.AddPoint2d_GMT.v', index=1,
number=2, type=1, cpp_type=5, label=2,
has_default_value=False, default_value=float(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='spatial_location_error', full_name='gmtaskmodel.AddPoint2d_GMT.spatial_location_error', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='log', full_name='gmtaskmodel.AddPoint2d_GMT.log', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=6305,
serialized_end=6388,
)
_POINTLIST2D_GMT = _descriptor.Descriptor(
name='PointList2d_GMT',
full_name='gmtaskmodel.PointList2d_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='Point', full_name='gmtaskmodel.PointList2d_GMT.Point', 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='log', full_name='gmtaskmodel.PointList2d_GMT.log', 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=6390,
serialized_end=6464,
)
_CREATESECTION_GMT = _descriptor.Descriptor(
name='CreateSection_GMT',
full_name='gmtaskmodel.CreateSection_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='gmtaskmodel.CreateSection_GMT.name', index=0,
number=1, type=9, cpp_type=9, label=2,
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='PointList', full_name='gmtaskmodel.CreateSection_GMT.PointList', 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='degrees', full_name='gmtaskmodel.CreateSection_GMT.degrees', index=2,
number=3, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='direction', full_name='gmtaskmodel.CreateSection_GMT.direction', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='dip', full_name='gmtaskmodel.CreateSection_GMT.dip', index=4,
number=5, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(-90),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Extents', full_name='gmtaskmodel.CreateSection_GMT.Extents', 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='InputDataBase', full_name='gmtaskmodel.CreateSection_GMT.InputDataBase', index=6,
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='LineNumber', full_name='gmtaskmodel.CreateSection_GMT.LineNumber', index=7,
number=13, type=5, cpp_type=1, 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='MaxSectionPoints', full_name='gmtaskmodel.CreateSection_GMT.MaxSectionPoints', index=8,
number=17, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=5,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ClipToProject', full_name='gmtaskmodel.CreateSection_GMT.ClipToProject', index=9,
number=18, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.CreateSection_GMT.log', index=10,
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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=6467,
serialized_end=6758,
)
_CREATESEGYTHUMBNAIL_GMT = _descriptor.Descriptor(
name='CreateSegYThumbnail_GMT',
full_name='gmtaskmodel.CreateSegYThumbnail_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='filename', full_name='gmtaskmodel.CreateSegYThumbnail_GMT.filename', index=0,
number=1, type=9, cpp_type=9, label=2,
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='standarddeviation', full_name='gmtaskmodel.CreateSegYThumbnail_GMT.standarddeviation', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(3),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='colourmap', full_name='gmtaskmodel.CreateSegYThumbnail_GMT.colourmap', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(2),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.CreateSegYThumbnail_GMT.log', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=6760,
serialized_end=6868,
)
_ADDINTERFACETOSECTION_GMT = _descriptor.Descriptor(
name='AddInterfaceToSection_GMT',
full_name='gmtaskmodel.AddInterfaceToSection_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='section', full_name='gmtaskmodel.AddInterfaceToSection_GMT.section', index=0,
number=1, type=9, cpp_type=9, label=2,
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='topFormation', full_name='gmtaskmodel.AddInterfaceToSection_GMT.topFormation', index=1,
number=2, type=9, cpp_type=9, label=2,
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='bottomFormation', full_name='gmtaskmodel.AddInterfaceToSection_GMT.bottomFormation', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"dummy".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='PointList', full_name='gmtaskmodel.AddInterfaceToSection_GMT.PointList', index=3,
number=4, type=11, cpp_type=10, label=2,
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='OrientationMethod', full_name='gmtaskmodel.AddInterfaceToSection_GMT.OrientationMethod', index=4,
number=5, type=14, cpp_type=8, label=1,
has_default_value=True, 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='dip', full_name='gmtaskmodel.AddInterfaceToSection_GMT.dip', index=5,
number=6, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='azimuth', full_name='gmtaskmodel.AddInterfaceToSection_GMT.azimuth', index=6,
number=7, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='polarity', full_name='gmtaskmodel.AddInterfaceToSection_GMT.polarity', index=7,
number=8, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='provenance', full_name='gmtaskmodel.AddInterfaceToSection_GMT.provenance', index=8,
number=9, type=14, cpp_type=8, label=1,
has_default_value=True, 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='location', full_name='gmtaskmodel.AddInterfaceToSection_GMT.location', index=9,
number=10, type=8, cpp_type=7, label=1,
has_default_value=True, 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='spherical_variance_kappa', full_name='gmtaskmodel.AddInterfaceToSection_GMT.spherical_variance_kappa', index=10,
number=12, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(2),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.AddInterfaceToSection_GMT.log', index=11,
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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=6871,
serialized_end=7288,
)
_ADDFOLIATIONTOSECTION_GMT = _descriptor.Descriptor(
name='AddFoliationToSection_GMT',
full_name='gmtaskmodel.AddFoliationToSection_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='section', full_name='gmtaskmodel.AddFoliationToSection_GMT.section', index=0,
number=1, type=9, cpp_type=9, label=2,
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='formation', full_name='gmtaskmodel.AddFoliationToSection_GMT.formation', index=1,
number=2, type=9, cpp_type=9, label=2,
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='foliation', full_name='gmtaskmodel.AddFoliationToSection_GMT.foliation', index=2,
number=3, type=11, cpp_type=10, label=2,
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='log', full_name='gmtaskmodel.AddFoliationToSection_GMT.log', index=3,
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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=7290,
serialized_end=7413,
)
_ADD3DFOLIATIONTOFORMATION_GMT = _descriptor.Descriptor(
name='Add3DFoliationToFormation_GMT',
full_name='gmtaskmodel.Add3DFoliationToFormation_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='formation', full_name='gmtaskmodel.Add3DFoliationToFormation_GMT.formation', index=0,
number=2, type=9, cpp_type=9, label=2,
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='foliation', full_name='gmtaskmodel.Add3DFoliationToFormation_GMT.foliation', index=1,
number=3, 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='log', full_name='gmtaskmodel.Add3DFoliationToFormation_GMT.log', index=2,
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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=7415,
serialized_end=7525,
)
_ADD3DINTERFACESTOFORMATION_GMT = _descriptor.Descriptor(
name='Add3DInterfacesToFormation_GMT',
full_name='gmtaskmodel.Add3DInterfacesToFormation_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='formation', full_name='gmtaskmodel.Add3DInterfacesToFormation_GMT.formation', index=0,
number=2, type=9, cpp_type=9, label=2,
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='point', full_name='gmtaskmodel.Add3DInterfacesToFormation_GMT.point', 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),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.Add3DInterfacesToFormation_GMT.log', index=2,
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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=7527,
serialized_end=7620,
)
_ADDAPPARENTDIPTOSECTION_GMT = _descriptor.Descriptor(
name='AddApparentDipToSection_GMT',
full_name='gmtaskmodel.AddApparentDipToSection_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='section', full_name='gmtaskmodel.AddApparentDipToSection_GMT.section', index=0,
number=1, type=9, cpp_type=9, label=2,
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='formation', full_name='gmtaskmodel.AddApparentDipToSection_GMT.formation', index=1,
number=2, type=9, cpp_type=9, label=2,
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='apparentdip', full_name='gmtaskmodel.AddApparentDipToSection_GMT.apparentdip', index=2,
number=3, type=11, cpp_type=10, label=2,
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='log', full_name='gmtaskmodel.AddApparentDipToSection_GMT.log', index=3,
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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=7623,
serialized_end=7752,
)
_ADDDYKESTRUCTURALDATATOSECTION_GMT = _descriptor.Descriptor(
name='AddDykeStructuralDataToSection_GMT',
full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='section', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.section', index=0,
number=1, type=9, cpp_type=9, label=2,
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='dyke_name', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.dyke_name', index=1,
number=2, type=9, cpp_type=9, label=2,
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='Point', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.Point', index=2,
number=3, type=11, cpp_type=10, label=2,
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='dip', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.dip', index=3,
number=34, type=1, cpp_type=5, label=2,
has_default_value=False, default_value=float(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='direction', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.direction', index=4,
number=5, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='strike', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.strike', index=5,
number=6, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='DipDistribution', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.DipDistribution', index=6,
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='DirectionDistribution', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.DirectionDistribution', index=7,
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='Provenance', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.Provenance', index=8,
number=7, type=14, cpp_type=8, label=1,
has_default_value=True, 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='polarity', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.polarity', index=9,
number=17, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='observationID', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.observationID', index=10,
number=8, type=9, cpp_type=9, label=1,
has_default_value=True, 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='thickness', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.thickness', index=11,
number=9, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(5),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='length', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.length', index=12,
number=10, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(100),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='height', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.height', index=13,
number=18, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(100),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='susceptibility', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.susceptibility', index=14,
number=19, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(0.01),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='rms', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.rms', index=15,
number=13, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='thickness_error', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.thickness_error', index=16,
number=15, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(5),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='spherical_variance_kappa', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.spherical_variance_kappa', index=17,
number=14, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(2),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='OrientationMethod', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.OrientationMethod', index=18,
number=16, type=14, cpp_type=8, label=1,
has_default_value=True, 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='log', full_name='gmtaskmodel.AddDykeStructuralDataToSection_GMT.log', 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=7755,
serialized_end=8456,
)
_CREATE3DPOINT_GMT = _descriptor.Descriptor(
name='Create3DPoint_GMT',
full_name='gmtaskmodel.Create3DPoint_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='point', full_name='gmtaskmodel.Create3DPoint_GMT.point', 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='log', full_name='gmtaskmodel.Create3DPoint_GMT.log', index=1,
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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=8458,
serialized_end=8519,
)
_IMPORT2DDATATOSECTION_GMT = _descriptor.Descriptor(
name='Import2dDataToSection_GMT',
full_name='gmtaskmodel.Import2dDataToSection_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='section', full_name='gmtaskmodel.Import2dDataToSection_GMT.section', index=0,
number=1, type=9, cpp_type=9, label=2,
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='filename', full_name='gmtaskmodel.Import2dDataToSection_GMT.filename', index=1,
number=2, type=9, cpp_type=9, label=2,
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='spatial_location_error', full_name='gmtaskmodel.Import2dDataToSection_GMT.spatial_location_error', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='log', full_name='gmtaskmodel.Import2dDataToSection_GMT.log', index=3,
number=4, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"read_import2d_section.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=8522,
serialized_end=8656,
)
_READANDIMPORT2DDATATOASECTION_GMT = _descriptor.Descriptor(
name='ReadAndImport2dDataToASection_GMT',
full_name='gmtaskmodel.ReadAndImport2dDataToASection_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='section', full_name='gmtaskmodel.ReadAndImport2dDataToASection_GMT.section', index=0,
number=1, type=9, cpp_type=9, label=2,
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='filename', full_name='gmtaskmodel.ReadAndImport2dDataToASection_GMT.filename', index=1,
number=2, type=9, cpp_type=9, label=2,
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='type', full_name='gmtaskmodel.ReadAndImport2dDataToASection_GMT.type', index=2,
number=3, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='FieldList', full_name='gmtaskmodel.ReadAndImport2dDataToASection_GMT.FieldList', index=3,
number=4, type=11, cpp_type=10, label=2,
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='spatial_location_error', full_name='gmtaskmodel.ReadAndImport2dDataToASection_GMT.spatial_location_error', index=4,
number=5, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='log', full_name='gmtaskmodel.ReadAndImport2dDataToASection_GMT.log', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"read_import2d.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=8659,
serialized_end=8878,
)
_READANDIMPORT3DDATA_GMT = _descriptor.Descriptor(
name='ReadAndImport3dData_GMT',
full_name='gmtaskmodel.ReadAndImport3dData_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='contact_csv_file', full_name='gmtaskmodel.ReadAndImport3dData_GMT.contact_csv_file', 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='foliation_csv_file', full_name='gmtaskmodel.ReadAndImport3dData_GMT.foliation_csv_file', 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='limits_csv_file', full_name='gmtaskmodel.ReadAndImport3dData_GMT.limits_csv_file', 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='contact_header_linestoSkip', full_name='gmtaskmodel.ReadAndImport3dData_GMT.contact_header_linestoSkip', index=3,
number=4, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=3,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='foliation_header_linestoSkip', full_name='gmtaskmodel.ReadAndImport3dData_GMT.foliation_header_linestoSkip', index=4,
number=5, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=3,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='fault_limit_header_linestoSkip', full_name='gmtaskmodel.ReadAndImport3dData_GMT.fault_limit_header_linestoSkip', index=5,
number=6, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=4,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='type', full_name='gmtaskmodel.ReadAndImport3dData_GMT.type', index=6,
number=8, type=14, cpp_type=8, label=1,
has_default_value=True, 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='operation', full_name='gmtaskmodel.ReadAndImport3dData_GMT.operation', index=7,
number=9, type=14, cpp_type=8, label=1,
has_default_value=True, 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='Treat_Tag_As_Text_Only', full_name='gmtaskmodel.ReadAndImport3dData_GMT.Treat_Tag_As_Text_Only', index=8,
number=10, type=8, cpp_type=7, label=1,
has_default_value=True, 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='spatial_location_error', full_name='gmtaskmodel.ReadAndImport3dData_GMT.spatial_location_error', index=9,
number=20, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='vertical_location_error', full_name='gmtaskmodel.ReadAndImport3dData_GMT.vertical_location_error', index=10,
number=22, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='log', full_name='gmtaskmodel.ReadAndImport3dData_GMT.log', index=11,
number=21, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"import3d.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=8881,
serialized_end=9347,
)
_IMPORTMICROSEISMICEVENTS_GMT = _descriptor.Descriptor(
name='ImportMicroSeismicEvents_GMT',
full_name='gmtaskmodel.ImportMicroSeismicEvents_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='events_csv_file', full_name='gmtaskmodel.ImportMicroSeismicEvents_GMT.events_csv_file', 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='events_header_linestoSkip', full_name='gmtaskmodel.ImportMicroSeismicEvents_GMT.events_header_linestoSkip', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=3,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='MeshGrid_Name', full_name='gmtaskmodel.ImportMicroSeismicEvents_GMT.MeshGrid_Name', 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='ignoreFields', full_name='gmtaskmodel.ImportMicroSeismicEvents_GMT.ignoreFields', index=3,
number=5, 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='spatial_location_error', full_name='gmtaskmodel.ImportMicroSeismicEvents_GMT.spatial_location_error', index=4,
number=20, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='vertical_location_error', full_name='gmtaskmodel.ImportMicroSeismicEvents_GMT.vertical_location_error', index=5,
number=22, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='CreateDateTime', full_name='gmtaskmodel.ImportMicroSeismicEvents_GMT.CreateDateTime', index=6,
number=9, type=8, cpp_type=7, label=1,
has_default_value=True, 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='log', full_name='gmtaskmodel.ImportMicroSeismicEvents_GMT.log', index=7,
number=21, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"import3d_microseismic.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=9350,
serialized_end=9624,
)
_SURVEYDIRECTION_GMT = _descriptor.Descriptor(
name='SurveyDirection_GMT',
full_name='gmtaskmodel.SurveyDirection_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='dip', full_name='gmtaskmodel.SurveyDirection_GMT.dip', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(90),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='azimuth', full_name='gmtaskmodel.SurveyDirection_GMT.azimuth', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='length', full_name='gmtaskmodel.SurveyDirection_GMT.length', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=9626,
serialized_end=9700,
)
_LITHOLOGYINTERVAL_GMT = _descriptor.Descriptor(
name='LithologyInterval_GMT',
full_name='gmtaskmodel.LithologyInterval_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='from', full_name='gmtaskmodel.LithologyInterval_GMT.from', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='to', full_name='gmtaskmodel.LithologyInterval_GMT.to', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='geology', full_name='gmtaskmodel.LithologyInterval_GMT.geology', 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=9702,
serialized_end=9768,
)
_CREATEDRILLHOLE_GMT = _descriptor.Descriptor(
name='CreateDrillhole_GMT',
full_name='gmtaskmodel.CreateDrillhole_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='HoleID', full_name='gmtaskmodel.CreateDrillhole_GMT.HoleID', index=0,
number=1, type=9, cpp_type=9, label=2,
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='Collar', full_name='gmtaskmodel.CreateDrillhole_GMT.Collar', index=1,
number=2, type=11, cpp_type=10, label=2,
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='SurveyDirection', full_name='gmtaskmodel.CreateDrillhole_GMT.SurveyDirection', index=2,
number=3, 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='LithologyInterval', full_name='gmtaskmodel.CreateDrillhole_GMT.LithologyInterval', index=3,
number=4, 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='log', full_name='gmtaskmodel.CreateDrillhole_GMT.log', index=4,
number=5, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"create_drillhole.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=9771,
serialized_end=10010,
)
_LOADDRILLHOLES_GMT = _descriptor.Descriptor(
name='LoadDrillholes_GMT',
full_name='gmtaskmodel.LoadDrillholes_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='precision', full_name='gmtaskmodel.LoadDrillholes_GMT.precision', index=0,
number=1, type=1, cpp_type=5, label=2,
has_default_value=False, default_value=float(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='collarFile', full_name='gmtaskmodel.LoadDrillholes_GMT.collarFile', index=1,
number=2, type=9, cpp_type=9, label=2,
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='surveyFile', full_name='gmtaskmodel.LoadDrillholes_GMT.surveyFile', index=2,
number=3, type=9, cpp_type=9, label=2,
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='geologyFile', full_name='gmtaskmodel.LoadDrillholes_GMT.geologyFile', index=3,
number=4, type=9, cpp_type=9, label=2,
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='collarAliases', full_name='gmtaskmodel.LoadDrillholes_GMT.collarAliases', index=4,
number=5, type=11, cpp_type=10, label=2,
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='surveyAliases', full_name='gmtaskmodel.LoadDrillholes_GMT.surveyAliases', index=5,
number=6, type=11, cpp_type=10, label=2,
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='geologyAliases', full_name='gmtaskmodel.LoadDrillholes_GMT.geologyAliases', index=6,
number=7, type=11, cpp_type=10, label=2,
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='invertDips', full_name='gmtaskmodel.LoadDrillholes_GMT.invertDips', index=7,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, 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='scanOnly', full_name='gmtaskmodel.LoadDrillholes_GMT.scanOnly', index=8,
number=9, type=8, cpp_type=7, label=1,
has_default_value=True, 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='downhole_distance_error', full_name='gmtaskmodel.LoadDrillholes_GMT.downhole_distance_error', index=9,
number=10, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='downhole_azimuth_error', full_name='gmtaskmodel.LoadDrillholes_GMT.downhole_azimuth_error', index=10,
number=11, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='downhole_declination_error', full_name='gmtaskmodel.LoadDrillholes_GMT.downhole_declination_error', index=11,
number=12, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='log', full_name='gmtaskmodel.LoadDrillholes_GMT.log', index=12,
number=13, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"load_drillholes.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=10013,
serialized_end=10442,
)
_COMPOSITEDRILLHOLES_GMT = _descriptor.Descriptor(
name='CompositeDrillholes_GMT',
full_name='gmtaskmodel.CompositeDrillholes_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='DoAllAssayFields', full_name='gmtaskmodel.CompositeDrillholes_GMT.DoAllAssayFields', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=True, 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='AssayField', full_name='gmtaskmodel.CompositeDrillholes_GMT.AssayField', 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='Suffix', full_name='gmtaskmodel.CompositeDrillholes_GMT.Suffix', index=2,
number=3, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"Reg".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='DensityField', full_name='gmtaskmodel.CompositeDrillholes_GMT.DensityField', 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='Support_Length', full_name='gmtaskmodel.CompositeDrillholes_GMT.Support_Length', index=4,
number=5, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(2),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Build_Style', full_name='gmtaskmodel.CompositeDrillholes_GMT.Build_Style', index=5,
number=6, type=14, cpp_type=8, label=1,
has_default_value=True, 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='Restart_On_Nulls', full_name='gmtaskmodel.CompositeDrillholes_GMT.Restart_On_Nulls', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=True, 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='restart_interval', full_name='gmtaskmodel.CompositeDrillholes_GMT.restart_interval', index=7,
number=8, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(2),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='internal_null_replacement', full_name='gmtaskmodel.CompositeDrillholes_GMT.internal_null_replacement', index=8,
number=9, type=14, cpp_type=8, label=1,
has_default_value=True, 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='external_null_replacement', full_name='gmtaskmodel.CompositeDrillholes_GMT.external_null_replacement', index=9,
number=10, type=14, cpp_type=8, label=1,
has_default_value=True, 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='Enable_Trailing_Interval_Length_Threshold', full_name='gmtaskmodel.CompositeDrillholes_GMT.Enable_Trailing_Interval_Length_Threshold', index=10,
number=11, type=8, cpp_type=7, label=1,
has_default_value=True, 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='low_trailing_threshold', full_name='gmtaskmodel.CompositeDrillholes_GMT.low_trailing_threshold', index=11,
number=12, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='high_trailing_threshold', full_name='gmtaskmodel.CompositeDrillholes_GMT.high_trailing_threshold', index=12,
number=13, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(3),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Weight_Style', full_name='gmtaskmodel.CompositeDrillholes_GMT.Weight_Style', index=13,
number=14, type=14, cpp_type=8, label=1,
has_default_value=True, 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='assayBackground', full_name='gmtaskmodel.CompositeDrillholes_GMT.assayBackground', index=14,
number=15, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='densityBackground', full_name='gmtaskmodel.CompositeDrillholes_GMT.densityBackground', index=15,
number=16, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='log', full_name='gmtaskmodel.CompositeDrillholes_GMT.log', index=16,
number=30, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"composite_drillholes.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=10445,
serialized_end=11201,
)
_DRILLHOLEQUERYMESHGRID_GMT = _descriptor.Descriptor(
name='DrillholeQueryMeshGrid_GMT',
full_name='gmtaskmodel.DrillholeQueryMeshGrid_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='source_drillhole', full_name='gmtaskmodel.DrillholeQueryMeshGrid_GMT.source_drillhole', index=0,
number=1, 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='new_drillhole_name', full_name='gmtaskmodel.DrillholeQueryMeshGrid_GMT.new_drillhole_name', 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='sample_spacing', full_name='gmtaskmodel.DrillholeQueryMeshGrid_GMT.sample_spacing', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='meshgrid_name', full_name='gmtaskmodel.DrillholeQueryMeshGrid_GMT.meshgrid_name', index=3,
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),
_descriptor.FieldDescriptor(
name='meshgrid_fields', full_name='gmtaskmodel.DrillholeQueryMeshGrid_GMT.meshgrid_fields', index=4,
number=21, 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='log', full_name='gmtaskmodel.DrillholeQueryMeshGrid_GMT.log', index=5,
number=99, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=11204,
serialized_end=11371,
)
_IMPORTSEISMICCOMMON = _descriptor.Descriptor(
name='ImportSeismicCommon',
full_name='gmtaskmodel.ImportSeismicCommon',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='InGUI', full_name='gmtaskmodel.ImportSeismicCommon.InGUI', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=True, 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='InputDataFile', full_name='gmtaskmodel.ImportSeismicCommon.InputDataFile', 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='InputProjectFile', full_name='gmtaskmodel.ImportSeismicCommon.InputProjectFile', 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='MaxThinningIter', full_name='gmtaskmodel.ImportSeismicCommon.MaxThinningIter', index=3,
number=5, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=9999,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='MinThinningDelta', full_name='gmtaskmodel.ImportSeismicCommon.MinThinningDelta', index=4,
number=6, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1e-07),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='MaxSectionPoints', full_name='gmtaskmodel.ImportSeismicCommon.MaxSectionPoints', index=5,
number=7, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=5,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ClipToProject', full_name='gmtaskmodel.ImportSeismicCommon.ClipToProject', index=6,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='DMSConvert', full_name='gmtaskmodel.ImportSeismicCommon.DMSConvert', index=7,
number=9, type=8, cpp_type=7, label=1,
has_default_value=True, 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='DMSLatFormat', full_name='gmtaskmodel.ImportSeismicCommon.DMSLatFormat', index=8,
number=11, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"ddmmss.ss".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='DMSLonFormat', full_name='gmtaskmodel.ImportSeismicCommon.DMSLonFormat', index=9,
number=12, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"dddmmss.ss".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='InvertDepth', full_name='gmtaskmodel.ImportSeismicCommon.InvertDepth', index=10,
number=13, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='RunParallelCode', full_name='gmtaskmodel.ImportSeismicCommon.RunParallelCode', index=11,
number=14, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='OutputProjectFile', full_name='gmtaskmodel.ImportSeismicCommon.OutputProjectFile', index=12,
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='log', full_name='gmtaskmodel.ImportSeismicCommon.log', index=13,
number=255, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"seismic_report.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=11374,
serialized_end=11801,
)
_IMPORTSEISMICNAV_GMT = _descriptor.Descriptor(
name='ImportSeismicNav_GMT',
full_name='gmtaskmodel.ImportSeismicNav_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='SectionSplineDegree', full_name='gmtaskmodel.ImportSeismicNav_GMT.SectionSplineDegree', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ImportSeismic', full_name='gmtaskmodel.ImportSeismicNav_GMT.ImportSeismic', index=1,
number=2, type=11, cpp_type=10, label=2,
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='log', full_name='gmtaskmodel.ImportSeismicNav_GMT.log', index=2,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=11803,
serialized_end=11928,
)
_IMPORTSEISMICHORIZONS_GMT = _descriptor.Descriptor(
name='ImportSeismicHorizons_GMT',
full_name='gmtaskmodel.ImportSeismicHorizons_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='NavigationFiles', full_name='gmtaskmodel.ImportSeismicHorizons_GMT.NavigationFiles', index=0,
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='HorizonColumnNames', full_name='gmtaskmodel.ImportSeismicHorizons_GMT.HorizonColumnNames', 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='IntersectionRadius', full_name='gmtaskmodel.ImportSeismicHorizons_GMT.IntersectionRadius', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='ImportSeismic', full_name='gmtaskmodel.ImportSeismicHorizons_GMT.ImportSeismic', index=3,
number=8, type=11, cpp_type=10, label=2,
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='log', full_name='gmtaskmodel.ImportSeismicHorizons_GMT.log', index=4,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=11931,
serialized_end=12152,
)
_RENDERSECTION_GMT = _descriptor.Descriptor(
name='RenderSection_GMT',
full_name='gmtaskmodel.RenderSection_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='section', full_name='gmtaskmodel.RenderSection_GMT.section', 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='nx', full_name='gmtaskmodel.RenderSection_GMT.nx', index=1,
number=2, type=5, cpp_type=1, label=2,
has_default_value=True, default_value=50,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ny', full_name='gmtaskmodel.RenderSection_GMT.ny', index=2,
number=3, type=5, cpp_type=1, label=2,
has_default_value=True, default_value=50,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='fillFormations', full_name='gmtaskmodel.RenderSection_GMT.fillFormations', index=3,
number=4, 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='lineFormationOrFaults', full_name='gmtaskmodel.RenderSection_GMT.lineFormationOrFaults', index=4,
number=5, 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='traceSeries', full_name='gmtaskmodel.RenderSection_GMT.traceSeries', index=5,
number=6, 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='showTraceInSeries', full_name='gmtaskmodel.RenderSection_GMT.showTraceInSeries', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='showTraceEverywhere', full_name='gmtaskmodel.RenderSection_GMT.showTraceEverywhere', index=7,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, 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='showVarianceEnvelope', full_name='gmtaskmodel.RenderSection_GMT.showVarianceEnvelope', index=8,
number=9, type=8, cpp_type=7, label=1,
has_default_value=True, 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='ClipToTopography', full_name='gmtaskmodel.RenderSection_GMT.ClipToTopography', index=9,
number=10, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='showUncertainty', full_name='gmtaskmodel.RenderSection_GMT.showUncertainty', index=10,
number=11, type=8, cpp_type=7, label=1,
has_default_value=True, 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='showTriangles', full_name='gmtaskmodel.RenderSection_GMT.showTriangles', index=11,
number=12, type=8, cpp_type=7, label=1,
has_default_value=True, 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='et', full_name='gmtaskmodel.RenderSection_GMT.et', index=12,
number=13, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(2),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='number_trajectories', full_name='gmtaskmodel.RenderSection_GMT.number_trajectories', index=13,
number=14, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=5,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.RenderSection_GMT.log', index=14,
number=15, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"render_section.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=12155,
serialized_end=12579,
)
_SAVELITHOLOGYVOXET_GMT = _descriptor.Descriptor(
name='SaveLithologyVoxet_GMT',
full_name='gmtaskmodel.SaveLithologyVoxet_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='nx', full_name='gmtaskmodel.SaveLithologyVoxet_GMT.nx', index=0,
number=1, type=5, cpp_type=1, label=2,
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='ny', full_name='gmtaskmodel.SaveLithologyVoxet_GMT.ny', index=1,
number=2, type=5, cpp_type=1, label=2,
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='nz', full_name='gmtaskmodel.SaveLithologyVoxet_GMT.nz', index=2,
number=3, type=5, cpp_type=1, label=2,
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='LithologyVoxetFileStub', full_name='gmtaskmodel.SaveLithologyVoxet_GMT.LithologyVoxetFileStub', index=3,
number=4, type=9, cpp_type=9, label=2,
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='log', full_name='gmtaskmodel.SaveLithologyVoxet_GMT.log', index=4,
number=15, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"save_voxet.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=12581,
serialized_end=12702,
)
_SAVEPOTENTIALGRADIENTVOXET_GMT = _descriptor.Descriptor(
name='SavePotentialGradientVoxet_GMT',
full_name='gmtaskmodel.SavePotentialGradientVoxet_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='nx', full_name='gmtaskmodel.SavePotentialGradientVoxet_GMT.nx', index=0,
number=1, type=5, cpp_type=1, label=2,
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='ny', full_name='gmtaskmodel.SavePotentialGradientVoxet_GMT.ny', index=1,
number=2, type=5, cpp_type=1, label=2,
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='nz', full_name='gmtaskmodel.SavePotentialGradientVoxet_GMT.nz', index=2,
number=3, type=5, cpp_type=1, label=2,
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='Just_Gradients', full_name='gmtaskmodel.SavePotentialGradientVoxet_GMT.Just_Gradients', index=3,
number=5, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='OneVoxet_Lithology', full_name='gmtaskmodel.SavePotentialGradientVoxet_GMT.OneVoxet_Lithology', index=4,
number=6, type=8, cpp_type=7, label=1,
has_default_value=True, 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='VoxetFileStub', full_name='gmtaskmodel.SavePotentialGradientVoxet_GMT.VoxetFileStub', index=5,
number=4, type=9, cpp_type=9, label=2,
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='log', full_name='gmtaskmodel.SavePotentialGradientVoxet_GMT.log', index=6,
number=15, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"save_potentialvoxet.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=12705,
serialized_end=12899,
)
_UPDATEINTERFACE_GMT = _descriptor.Descriptor(
name='UpdateInterface_GMT',
full_name='gmtaskmodel.UpdateInterface_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='section', full_name='gmtaskmodel.UpdateInterface_GMT.section', index=0,
number=1, type=9, cpp_type=9, label=2,
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='Point', full_name='gmtaskmodel.UpdateInterface_GMT.Point', index=1,
number=2, type=11, cpp_type=10, label=2,
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='observationId', full_name='gmtaskmodel.UpdateInterface_GMT.observationId', index=2,
number=3, type=9, cpp_type=9, label=2,
has_default_value=True, 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='provenance', full_name='gmtaskmodel.UpdateInterface_GMT.provenance', index=3,
number=4, type=14, cpp_type=8, label=1,
has_default_value=True, 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='hasFoliation', full_name='gmtaskmodel.UpdateInterface_GMT.hasFoliation', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='hasLocation', full_name='gmtaskmodel.UpdateInterface_GMT.hasLocation', index=5,
number=6, type=8, cpp_type=7, label=2,
has_default_value=True, 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='orientationMethod', full_name='gmtaskmodel.UpdateInterface_GMT.orientationMethod', index=6,
number=7, type=14, cpp_type=8, label=1,
has_default_value=True, 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='azimuth', full_name='gmtaskmodel.UpdateInterface_GMT.azimuth', index=7,
number=8, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='dip', full_name='gmtaskmodel.UpdateInterface_GMT.dip', index=8,
number=9, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='lineAzimuth', full_name='gmtaskmodel.UpdateInterface_GMT.lineAzimuth', index=9,
number=10, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='lineDip', full_name='gmtaskmodel.UpdateInterface_GMT.lineDip', index=10,
number=11, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='polarity', full_name='gmtaskmodel.UpdateInterface_GMT.polarity', index=11,
number=12, type=9, cpp_type=9, label=2,
has_default_value=True, default_value=b"top".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='spherical_variance_kappa', full_name='gmtaskmodel.UpdateInterface_GMT.spherical_variance_kappa', index=12,
number=13, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(5),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.UpdateInterface_GMT.log', index=13,
number=15, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"update_interface.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=12902,
serialized_end=13353,
)
_DELETEINTERFACESFROMSECTION_GMT = _descriptor.Descriptor(
name='DeleteInterfacesFromSection_GMT',
full_name='gmtaskmodel.DeleteInterfacesFromSection_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='section', full_name='gmtaskmodel.DeleteInterfacesFromSection_GMT.section', index=0,
number=1, type=9, cpp_type=9, label=2,
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='log', full_name='gmtaskmodel.DeleteInterfacesFromSection_GMT.log', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"delete_interface.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=13355,
serialized_end=13440,
)
_FAULTSERIESLINKS_GMT = _descriptor.Descriptor(
name='FaultSeriesLinks_GMT',
full_name='gmtaskmodel.FaultSeriesLinks_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='fault', full_name='gmtaskmodel.FaultSeriesLinks_GMT.fault', index=0,
number=1, type=9, cpp_type=9, label=2,
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='series', full_name='gmtaskmodel.FaultSeriesLinks_GMT.series', index=1,
number=2, 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='log', full_name='gmtaskmodel.FaultSeriesLinks_GMT.log', index=2,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=13442,
serialized_end=13509,
)
_LINKFAULTSWITHSERIES_GMT = _descriptor.Descriptor(
name='LinkFaultsWithSeries_GMT',
full_name='gmtaskmodel.LinkFaultsWithSeries_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='FaultSeriesLinks', full_name='gmtaskmodel.LinkFaultsWithSeries_GMT.FaultSeriesLinks', 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='log', full_name='gmtaskmodel.LinkFaultsWithSeries_GMT.log', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"link_fault_series.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=13511,
serialized_end=13634,
)
_FAULTSTOPSONFAULTS_GMT = _descriptor.Descriptor(
name='FaultStopsOnFaults_GMT',
full_name='gmtaskmodel.FaultStopsOnFaults_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='fault', full_name='gmtaskmodel.FaultStopsOnFaults_GMT.fault', index=0,
number=1, type=9, cpp_type=9, label=2,
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='stopson', full_name='gmtaskmodel.FaultStopsOnFaults_GMT.stopson', index=1,
number=2, 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='log', full_name='gmtaskmodel.FaultStopsOnFaults_GMT.log', index=2,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=13636,
serialized_end=13706,
)
_LINKFAULTSWITHFAULTS_GMT = _descriptor.Descriptor(
name='LinkFaultsWithFaults_GMT',
full_name='gmtaskmodel.LinkFaultsWithFaults_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='FaultStopsOnFaults', full_name='gmtaskmodel.LinkFaultsWithFaults_GMT.FaultStopsOnFaults', 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='log', full_name='gmtaskmodel.LinkFaultsWithFaults_GMT.log', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"link_fault_fault.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=13708,
serialized_end=13834,
)
_WRITEBATCHFILE_GMT = _descriptor.Descriptor(
name='WriteBatchFile_GMT',
full_name='gmtaskmodel.WriteBatchFile_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='filename', full_name='gmtaskmodel.WriteBatchFile_GMT.filename', index=0,
number=1, type=9, cpp_type=9, label=2,
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='Task_Name', full_name='gmtaskmodel.WriteBatchFile_GMT.Task_Name', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"myProject.task".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='convertSection_InterfacesTo3D', full_name='gmtaskmodel.WriteBatchFile_GMT.convertSection_InterfacesTo3D', index=2,
number=5, type=8, cpp_type=7, label=1,
has_default_value=True, 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='convertSection_FoliationTo3D', full_name='gmtaskmodel.WriteBatchFile_GMT.convertSection_FoliationTo3D', index=3,
number=6, type=8, cpp_type=7, label=1,
has_default_value=True, 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='exportBoreholesToCSV', full_name='gmtaskmodel.WriteBatchFile_GMT.exportBoreholesToCSV', index=4,
number=7, type=8, cpp_type=7, label=1,
has_default_value=True, 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='csv_path', full_name='gmtaskmodel.WriteBatchFile_GMT.csv_path', index=5,
number=8, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"EXPORT/".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='exportToGeomodellerTempDirectory', full_name='gmtaskmodel.WriteBatchFile_GMT.exportToGeomodellerTempDirectory', index=6,
number=9, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.WriteBatchFile_GMT.log', index=7,
number=12, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"writeprotobuf.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=13837,
serialized_end=14145,
)
_SOURCEMESHGRID_GMT = _descriptor.Descriptor(
name='SourceMeshGrid_GMT',
full_name='gmtaskmodel.SourceMeshGrid_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='SourceType', full_name='gmtaskmodel.SourceMeshGrid_GMT.SourceType', index=0,
number=1, type=14, cpp_type=8, label=1,
has_default_value=True, 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='File_Name', full_name='gmtaskmodel.SourceMeshGrid_GMT.File_Name', 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='MeshGrid_Name', full_name='gmtaskmodel.SourceMeshGrid_GMT.MeshGrid_Name', 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='FileType', full_name='gmtaskmodel.SourceMeshGrid_GMT.FileType', index=3,
number=4, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=36,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Format', full_name='gmtaskmodel.SourceMeshGrid_GMT.Format', index=4,
number=13, type=14, cpp_type=8, label=1,
has_default_value=True, 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_Name', full_name='gmtaskmodel.SourceMeshGrid_GMT.Field_Name', index=5,
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='header_records', full_name='gmtaskmodel.SourceMeshGrid_GMT.header_records', index=6,
number=6, type=17, cpp_type=1, label=1,
has_default_value=True, 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='log', full_name='gmtaskmodel.SourceMeshGrid_GMT.log', index=7,
number=255, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"source_meshgrid.rpt".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='isElevationMeasure', full_name='gmtaskmodel.SourceMeshGrid_GMT.isElevationMeasure', index=8,
number=11, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='UBC_Header', full_name='gmtaskmodel.SourceMeshGrid_GMT.UBC_Header', index=9,
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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=14148,
serialized_end=14503,
)
_CREATEMESHGRID_GMT = _descriptor.Descriptor(
name='CreateMeshGrid_GMT',
full_name='gmtaskmodel.CreateMeshGrid_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='CreateDestinationType', full_name='gmtaskmodel.CreateMeshGrid_GMT.CreateDestinationType', index=0,
number=1, type=14, cpp_type=8, label=1,
has_default_value=True, 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='OutputMeshType', full_name='gmtaskmodel.CreateMeshGrid_GMT.OutputMeshType', index=1,
number=20, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='File_Name', full_name='gmtaskmodel.CreateMeshGrid_GMT.File_Name', index=2,
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='MeshGrid_Name', full_name='gmtaskmodel.CreateMeshGrid_GMT.MeshGrid_Name', index=3,
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='FileType', full_name='gmtaskmodel.CreateMeshGrid_GMT.FileType', index=4,
number=4, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=36,
message_type=None, enum_type=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_Name', full_name='gmtaskmodel.CreateMeshGrid_GMT.Field_Name', index=5,
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='Field_Variance', full_name='gmtaskmodel.CreateMeshGrid_GMT.Field_Variance', index=6,
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='dx', full_name='gmtaskmodel.CreateMeshGrid_GMT.dx', index=7,
number=10, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=100,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='dy', full_name='gmtaskmodel.CreateMeshGrid_GMT.dy', index=8,
number=11, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=100,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='dz', full_name='gmtaskmodel.CreateMeshGrid_GMT.dz', index=9,
number=12, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=100,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Extents', full_name='gmtaskmodel.CreateMeshGrid_GMT.Extents', index=10,
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='nx', full_name='gmtaskmodel.CreateMeshGrid_GMT.nx', index=11,
number=21, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=20,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ny', full_name='gmtaskmodel.CreateMeshGrid_GMT.ny', index=12,
number=22, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=20,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='nz', full_name='gmtaskmodel.CreateMeshGrid_GMT.nz', index=13,
number=23, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=20,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='AddGeologyField', full_name='gmtaskmodel.CreateMeshGrid_GMT.AddGeologyField', index=14,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, 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='ReportFile', full_name='gmtaskmodel.CreateMeshGrid_GMT.ReportFile', index=15,
number=16, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"create_meshgrid.rpt".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='log', full_name='gmtaskmodel.CreateMeshGrid_GMT.log', index=16,
number=99, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"create a mesh grid".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=14506,
serialized_end=15039,
)
_EXPORTMESHGRID_GMT = _descriptor.Descriptor(
name='ExportMeshGrid_GMT',
full_name='gmtaskmodel.ExportMeshGrid_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='MeshGrid_Source', full_name='gmtaskmodel.ExportMeshGrid_GMT.MeshGrid_Source', index=0,
number=1, type=11, cpp_type=10, label=2,
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='OutputMeshType', full_name='gmtaskmodel.ExportMeshGrid_GMT.OutputMeshType', index=1,
number=20, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='OutFileName', full_name='gmtaskmodel.ExportMeshGrid_GMT.OutFileName', index=2,
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='OutMeshGridName', full_name='gmtaskmodel.ExportMeshGrid_GMT.OutMeshGridName', index=3,
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='OutFileType', full_name='gmtaskmodel.ExportMeshGrid_GMT.OutFileType', index=4,
number=4, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=36,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='OutDataFormat', full_name='gmtaskmodel.ExportMeshGrid_GMT.OutDataFormat', index=5,
number=5, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=61,
message_type=None, enum_type=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', full_name='gmtaskmodel.ExportMeshGrid_GMT.Field', index=6,
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='Extents', full_name='gmtaskmodel.ExportMeshGrid_GMT.Extents', 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='nx', full_name='gmtaskmodel.ExportMeshGrid_GMT.nx', index=8,
number=22, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=20,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ny', full_name='gmtaskmodel.ExportMeshGrid_GMT.ny', index=9,
number=23, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=20,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='nz', full_name='gmtaskmodel.ExportMeshGrid_GMT.nz', index=10,
number=24, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=20,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='dx', full_name='gmtaskmodel.ExportMeshGrid_GMT.dx', index=11,
number=25, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(100),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='dy', full_name='gmtaskmodel.ExportMeshGrid_GMT.dy', index=12,
number=26, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(100),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='dz', full_name='gmtaskmodel.ExportMeshGrid_GMT.dz', index=13,
number=27, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(100),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='AddGeologyField', full_name='gmtaskmodel.ExportMeshGrid_GMT.AddGeologyField', index=14,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, 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='log', full_name='gmtaskmodel.ExportMeshGrid_GMT.log', index=15,
number=255, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"save_meshgrid.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=15042,
serialized_end=15542,
)
_VARIOGRAMCURVES_GMT = _descriptor.Descriptor(
name='VariogramCurves_GMT',
full_name='gmtaskmodel.VariogramCurves_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='lag', full_name='gmtaskmodel.VariogramCurves_GMT.lag', index=0,
number=2, type=1, cpp_type=5, label=2,
has_default_value=True, default_value=float(100),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='variance1', full_name='gmtaskmodel.VariogramCurves_GMT.variance1', index=1,
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='which1', full_name='gmtaskmodel.VariogramCurves_GMT.which1', index=2,
number=4, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=3,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='variance2', full_name='gmtaskmodel.VariogramCurves_GMT.variance2', 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='which2', full_name='gmtaskmodel.VariogramCurves_GMT.which2', index=4,
number=6, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='variance3', full_name='gmtaskmodel.VariogramCurves_GMT.variance3', index=5,
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='which3', full_name='gmtaskmodel.VariogramCurves_GMT.which3', index=6,
number=8, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='number_points', full_name='gmtaskmodel.VariogramCurves_GMT.number_points', index=7,
number=10, type=5, cpp_type=1, label=2,
has_default_value=True, default_value=100,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.VariogramCurves_GMT.log', index=8,
number=255, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"model_variogram.rpt".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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=15545,
serialized_end=15961,
)
_COMPUTEVARIOGRAM_GMT = _descriptor.Descriptor(
name='ComputeVariogram_GMT',
full_name='gmtaskmodel.ComputeVariogram_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='MeshGrid_Source', full_name='gmtaskmodel.ComputeVariogram_GMT.MeshGrid_Source', index=0,
number=1, type=11, cpp_type=10, label=2,
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='Analysis_Type', full_name='gmtaskmodel.ComputeVariogram_GMT.Analysis_Type', index=1,
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='Domain', full_name='gmtaskmodel.ComputeVariogram_GMT.Domain', index=2,
number=4, type=14, cpp_type=8, label=2,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Data_Name', full_name='gmtaskmodel.ComputeVariogram_GMT.Data_Name', index=3,
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='Maximum_Distance', full_name='gmtaskmodel.ComputeVariogram_GMT.Maximum_Distance', index=4,
number=6, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='Variogram_Name', full_name='gmtaskmodel.ComputeVariogram_GMT.Variogram_Name', index=5,
number=7, type=9, cpp_type=9, label=2,
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='Extents', full_name='gmtaskmodel.ComputeVariogram_GMT.Extents', index=6,
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='NuggetEffect', full_name='gmtaskmodel.ComputeVariogram_GMT.NuggetEffect', index=7,
number=10, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='Range', full_name='gmtaskmodel.ComputeVariogram_GMT.Range', index=8,
number=11, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Sill', full_name='gmtaskmodel.ComputeVariogram_GMT.Sill', index=9,
number=12, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='VariogramModelType', full_name='gmtaskmodel.ComputeVariogram_GMT.VariogramModelType', index=10,
number=13, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='lag', full_name='gmtaskmodel.ComputeVariogram_GMT.lag', index=11,
number=14, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(100),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Number_Points', full_name='gmtaskmodel.ComputeVariogram_GMT.Number_Points', index=12,
number=15, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=20,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ReportFile', full_name='gmtaskmodel.ComputeVariogram_GMT.ReportFile', index=13,
number=16, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"variogram.rpt".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='Maximum_Measures', full_name='gmtaskmodel.ComputeVariogram_GMT.Maximum_Measures', index=14,
number=17, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=10000,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Maximum_Pairs', full_name='gmtaskmodel.ComputeVariogram_GMT.Maximum_Pairs', index=15,
number=18, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=100000,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Number_CPUs', full_name='gmtaskmodel.ComputeVariogram_GMT.Number_CPUs', index=16,
number=19, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=3,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.ComputeVariogram_GMT.log', index=17,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=15964,
serialized_end=16571,
)
_VARIOGRAMANALYSISTYPE = _descriptor.Descriptor(
name='VariogramAnalysisType',
full_name='gmtaskmodel.VariogramAnalysisType',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='azmiuth', full_name='gmtaskmodel.VariogramAnalysisType.azmiuth', index=0,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='dip', full_name='gmtaskmodel.VariogramAnalysisType.dip', index=1,
number=4, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(90),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='plunge', full_name='gmtaskmodel.VariogramAnalysisType.plunge', index=2,
number=5, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='name', full_name='gmtaskmodel.VariogramAnalysisType.name', index=3,
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='nameOfSerieOrUnit', full_name='gmtaskmodel.VariogramAnalysisType.nameOfSerieOrUnit', index=4,
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='serieConstraint', full_name='gmtaskmodel.VariogramAnalysisType.serieConstraint', index=5,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, 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='type', full_name='gmtaskmodel.VariogramAnalysisType.type', index=6,
number=9, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='unitConstraint', full_name='gmtaskmodel.VariogramAnalysisType.unitConstraint', index=7,
number=10, type=8, cpp_type=7, label=1,
has_default_value=True, 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='Number_Sectors', full_name='gmtaskmodel.VariogramAnalysisType.Number_Sectors', index=8,
number=19, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.VariogramAnalysisType.log', index=9,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=16574,
serialized_end=16846,
)
_INTERPOLATENUMERICALREADINGS_GMT = _descriptor.Descriptor(
name='InterpolateNumericalReadings_GMT',
full_name='gmtaskmodel.InterpolateNumericalReadings_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='MeshGrid_Source', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.MeshGrid_Source', index=0,
number=1, type=11, cpp_type=10, label=2,
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='method', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.method', index=1,
number=2, type=14, cpp_type=8, label=2,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='OutputStyle', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.OutputStyle', index=2,
number=3, type=14, cpp_type=8, label=2,
has_default_value=True, 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='Maximum_Observations', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.Maximum_Observations', index=3,
number=5, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=50,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Minimum_Observations', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.Minimum_Observations', index=4,
number=6, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Maximum_Radius', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.Maximum_Radius', index=5,
number=7, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='Domain', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.Domain', index=6,
number=8, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Data_Name', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.Data_Name', index=7,
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='Analysis_Type', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.Analysis_Type', index=8,
number=21, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Variogram_Model', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.Variogram_Model', 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='Experimental_Variogram_Name', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.Experimental_Variogram_Name', index=10,
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),
_descriptor.FieldDescriptor(
name='VariogramModelType', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.VariogramModelType', index=11,
number=30, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Neighbour', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.Neighbour', index=12,
number=31, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='NuggetEffect', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.NuggetEffect', index=13,
number=32, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='Range', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.Range', index=14,
number=33, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Sill', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.Sill', index=15,
number=34, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=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='gmtaskmodel.InterpolateNumericalReadings_GMT.which', index=16,
number=35, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=3,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='aratio', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.aratio', index=17,
number=15, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='dip', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.dip', index=18,
number=17, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(90),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='azimuth', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.azimuth', index=19,
number=18, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='plunge', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.plunge', index=20,
number=19, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='Output_Mesh', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.Output_Mesh', index=21,
number=50, type=11, cpp_type=10, label=2,
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='ReportFile', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.ReportFile', index=22,
number=80, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"interpolate.rpt".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='log', full_name='gmtaskmodel.InterpolateNumericalReadings_GMT.log', index=23,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=16849,
serialized_end=17803,
)
_BUILDTRIPLELINES_GMT_EXPORTTRIPLELINES = _descriptor.Descriptor(
name='ExportTripleLines',
full_name='gmtaskmodel.BuildTripleLines_GMT.ExportTripleLines',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='output_directory', full_name='gmtaskmodel.BuildTripleLines_GMT.ExportTripleLines.output_directory', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=True, 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='format', full_name='gmtaskmodel.BuildTripleLines_GMT.ExportTripleLines.format', index=1,
number=2, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.BuildTripleLines_GMT.ExportTripleLines.log', index=2,
number=255, 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=[
_BUILDTRIPLELINES_GMT_EXPORTTRIPLELINES_TRIPLELINE_EXPORTFORMAT,
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=18207,
serialized_end=18480,
)
_BUILDTRIPLELINES_GMT_THINBODYBIAS = _descriptor.Descriptor(
name='ThinBodyBias',
full_name='gmtaskmodel.BuildTripleLines_GMT.ThinBodyBias',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='x', full_name='gmtaskmodel.BuildTripleLines_GMT.ThinBodyBias.x', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='y', full_name='gmtaskmodel.BuildTripleLines_GMT.ThinBodyBias.y', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='z', full_name='gmtaskmodel.BuildTripleLines_GMT.ThinBodyBias.z', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=18482,
serialized_end=18538,
)
_BUILDTRIPLELINES_GMT = _descriptor.Descriptor(
name='BuildTripleLines_GMT',
full_name='gmtaskmodel.BuildTripleLines_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='precision', full_name='gmtaskmodel.BuildTripleLines_GMT.precision', index=0,
number=12, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(20),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='clean_lines', full_name='gmtaskmodel.BuildTripleLines_GMT.clean_lines', index=1,
number=20, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='point_spacing', full_name='gmtaskmodel.BuildTripleLines_GMT.point_spacing', index=2,
number=24, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(250),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='thin_body_bias', full_name='gmtaskmodel.BuildTripleLines_GMT.thin_body_bias', index=3,
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='export_triple_lines', full_name='gmtaskmodel.BuildTripleLines_GMT.export_triple_lines', index=4,
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='topolimited', full_name='gmtaskmodel.BuildTripleLines_GMT.topolimited', index=5,
number=28, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='borderline', full_name='gmtaskmodel.BuildTripleLines_GMT.borderline', index=6,
number=29, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='insideline', full_name='gmtaskmodel.BuildTripleLines_GMT.insideline', index=7,
number=30, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='divide_model_using_regular_sections', full_name='gmtaskmodel.BuildTripleLines_GMT.divide_model_using_regular_sections', index=8,
number=31, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.BuildTripleLines_GMT.log', index=9,
number=255, 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=[_BUILDTRIPLELINES_GMT_EXPORTTRIPLELINES, _BUILDTRIPLELINES_GMT_THINBODYBIAS, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=17806,
serialized_end=18538,
)
_IMPORTTRIPLELINES_GMT = _descriptor.Descriptor(
name='ImportTripleLines_GMT',
full_name='gmtaskmodel.ImportTripleLines_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='filename', full_name='gmtaskmodel.ImportTripleLines_GMT.filename', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"triple_lines.txt".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='log', full_name='gmtaskmodel.ImportTripleLines_GMT.log', index=1,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=18540,
serialized_end=18613,
)
_BUILDMESHCGAL_GMT_REFINEMESH_OPTENERGYPARMS = _descriptor.Descriptor(
name='OptEnergyParms',
full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptEnergyParms',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='time_limit', full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptEnergyParms.time_limit', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(5),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='max_iter', full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptEnergyParms.max_iter', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=True, 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='convergence', full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptEnergyParms.convergence', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(0.02),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='freeze_bound', full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptEnergyParms.freeze_bound', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(0.01),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='do_freeze', full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptEnergyParms.do_freeze', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptEnergyParms.log', index=5,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=19520,
serialized_end=19674,
)
_BUILDMESHCGAL_GMT_REFINEMESH_OPTVERTEXPARMS = _descriptor.Descriptor(
name='OptVertexParms',
full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptVertexParms',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='time_limit', full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptVertexParms.time_limit', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(5),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='sliver_bound', full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptVertexParms.sliver_bound', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(3),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptVertexParms.log', index=2,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=19676,
serialized_end=19754,
)
_BUILDMESHCGAL_GMT_REFINEMESH = _descriptor.Descriptor(
name='RefineMesh',
full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='lloyd', full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.lloyd', index=0,
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='odt', full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.odt', 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='perturb', full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.perturb', 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),
_descriptor.FieldDescriptor(
name='exude', full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.exude', 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='manifold_status', full_name='gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.manifold_status', index=4,
number=5, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=2,
message_type=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=[_BUILDMESHCGAL_GMT_REFINEMESH_OPTENERGYPARMS, _BUILDMESHCGAL_GMT_REFINEMESH_OPTVERTEXPARMS, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=19141,
serialized_end=19754,
)
_BUILDMESHCGAL_GMT_GEOMODELLEROUTPUT = _descriptor.Descriptor(
name='GeomodellerOutput',
full_name='gmtaskmodel.BuildMeshCGAL_GMT.GeomodellerOutput',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='output_directory', full_name='gmtaskmodel.BuildMeshCGAL_GMT.GeomodellerOutput.output_directory', 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='smooth', full_name='gmtaskmodel.BuildMeshCGAL_GMT.GeomodellerOutput.smooth', index=1,
number=2, type=5, cpp_type=1, label=1,
has_default_value=True, 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='draw_shapes', full_name='gmtaskmodel.BuildMeshCGAL_GMT.GeomodellerOutput.draw_shapes', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=True, 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='formations', full_name='gmtaskmodel.BuildMeshCGAL_GMT.GeomodellerOutput.formations', index=3,
number=4, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='faults', full_name='gmtaskmodel.BuildMeshCGAL_GMT.GeomodellerOutput.faults', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='surfaces', full_name='gmtaskmodel.BuildMeshCGAL_GMT.GeomodellerOutput.surfaces', index=5,
number=6, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='volumes', full_name='gmtaskmodel.BuildMeshCGAL_GMT.GeomodellerOutput.volumes', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='tetrahedrons', full_name='gmtaskmodel.BuildMeshCGAL_GMT.GeomodellerOutput.tetrahedrons', index=7,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.BuildMeshCGAL_GMT.GeomodellerOutput.log', index=8,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=19757,
serialized_end=19986,
)
_BUILDMESHCGAL_GMT_MESHCRITERIA_FORMATIONDISCRETIZATION = _descriptor.Descriptor(
name='FormationDiscretization',
full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='formation', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization.formation', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"default".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='precision', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization.precision', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='max_facet_radii', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization.max_facet_radii', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='max_tet_radii', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization.max_tet_radii', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='max_edge_length', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization.max_edge_length', index=4,
number=5, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='precision_values', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization.precision_values', 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='max_facet_radii_values', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization.max_facet_radii_values', 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='max_tet_radii_values', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization.max_tet_radii_values', index=7,
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='max_edge_length_values', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization.max_edge_length_values', index=8,
number=9, 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='adaptive_sphere_radius', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization.adaptive_sphere_radius', index=9,
number=10, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=20462,
serialized_end=20843,
)
_BUILDMESHCGAL_GMT_MESHCRITERIA = _descriptor.Descriptor(
name='MeshCriteria',
full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='min_facet_angle', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.min_facet_angle', index=0,
number=1, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(10),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='min_facet_radii', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.min_facet_radii', index=1,
number=2, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='min_protect_ball_radius', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.min_protect_ball_radius', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='facet_topology', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.facet_topology', index=3,
number=9, 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),
_descriptor.FieldDescriptor(
name='radius_edge_ratio', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.radius_edge_ratio', index=4,
number=4, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(2.5),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='default_discretization', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.default_discretization', index=5,
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='formation_discretization', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.formation_discretization', index=6,
number=6, 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='min_protect_ball_radius_values', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.min_protect_ball_radius_values', index=7,
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='log', full_name='gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.log', index=8,
number=255, 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=[_BUILDMESHCGAL_GMT_MESHCRITERIA_FORMATIONDISCRETIZATION, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=19989,
serialized_end=20843,
)
_BUILDMESHCGAL_GMT_SEEDPOINTS_MESHSEEDPOINTS = _descriptor.Descriptor(
name='MeshSeedPoints',
full_name='gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints.MeshSeedPoints',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='filename', full_name='gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints.MeshSeedPoints.filename', 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='clean_mesh', full_name='gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints.MeshSeedPoints.clean_mesh', index=1,
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='decimate_mesh', full_name='gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints.MeshSeedPoints.decimate_mesh', index=2,
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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=21056,
serialized_end=21191,
)
_BUILDMESHCGAL_GMT_SEEDPOINTS_RANDOMSEEDPOINTS = _descriptor.Descriptor(
name='RandomSeedPoints',
full_name='gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints.RandomSeedPoints',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='count', full_name='gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints.RandomSeedPoints.count', index=0,
number=1, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=12,
message_type=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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=21193,
serialized_end=21230,
)
_BUILDMESHCGAL_GMT_SEEDPOINTS = _descriptor.Descriptor(
name='SeedPoints',
full_name='gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='use_triple_points', full_name='gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints.use_triple_points', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='random_points', full_name='gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints.random_points', 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='mesh_points', full_name='gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints.mesh_points', index=2,
number=3, 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=[_BUILDMESHCGAL_GMT_SEEDPOINTS_MESHSEEDPOINTS, _BUILDMESHCGAL_GMT_SEEDPOINTS_RANDOMSEEDPOINTS, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=20846,
serialized_end=21230,
)
_BUILDMESHCGAL_GMT = _descriptor.Descriptor(
name='BuildMeshCGAL_GMT',
full_name='gmtaskmodel.BuildMeshCGAL_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='mesh_criteria', full_name='gmtaskmodel.BuildMeshCGAL_GMT.mesh_criteria', index=0,
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='refine_mesh', full_name='gmtaskmodel.BuildMeshCGAL_GMT.refine_mesh', 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='build_triple_lines', full_name='gmtaskmodel.BuildMeshCGAL_GMT.build_triple_lines', 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),
_descriptor.FieldDescriptor(
name='import_triple_lines', full_name='gmtaskmodel.BuildMeshCGAL_GMT.import_triple_lines', 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='multithreaded', full_name='gmtaskmodel.BuildMeshCGAL_GMT.multithreaded', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=True, 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='export_mesh', full_name='gmtaskmodel.BuildMeshCGAL_GMT.export_mesh', index=5,
number=6, 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='geomodeller_output', full_name='gmtaskmodel.BuildMeshCGAL_GMT.geomodeller_output', 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='initial_points', full_name='gmtaskmodel.BuildMeshCGAL_GMT.initial_points', index=7,
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='log', full_name='gmtaskmodel.BuildMeshCGAL_GMT.log', index=8,
number=255, 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=[_BUILDMESHCGAL_GMT_REFINEMESH, _BUILDMESHCGAL_GMT_GEOMODELLEROUTPUT, _BUILDMESHCGAL_GMT_MESHCRITERIA, _BUILDMESHCGAL_GMT_SEEDPOINTS, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=18616,
serialized_end=21230,
)
_EXPORTMODEL_GMT_EXPORTTYPE2D = _descriptor.Descriptor(
name='ExportType2D',
full_name='gmtaskmodel.ExportModel_GMT.ExportType2D',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='Isopachs', full_name='gmtaskmodel.ExportModel_GMT.ExportType2D.Isopachs', index=0,
number=1, type=8, cpp_type=7, label=1,
has_default_value=True, 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='Isohyps', full_name='gmtaskmodel.ExportModel_GMT.ExportType2D.Isohyps', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=True, 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='Interfaces', full_name='gmtaskmodel.ExportModel_GMT.ExportType2D.Interfaces', index=2,
number=3, type=8, cpp_type=7, label=1,
has_default_value=True, 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='Layercake', full_name='gmtaskmodel.ExportModel_GMT.ExportType2D.Layercake', index=3,
number=4, type=8, cpp_type=7, label=1,
has_default_value=True, 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='Marthe', full_name='gmtaskmodel.ExportModel_GMT.ExportType2D.Marthe', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=True, 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='Tough', full_name='gmtaskmodel.ExportModel_GMT.ExportType2D.Tough', index=5,
number=6, type=8, cpp_type=7, label=1,
has_default_value=True, 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='Cataclinal', full_name='gmtaskmodel.ExportModel_GMT.ExportType2D.Cataclinal', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=True, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=21600,
serialized_end=21788,
)
_EXPORTMODEL_GMT_EXPORTTYPE3D = _descriptor.Descriptor(
name='ExportType3D',
full_name='gmtaskmodel.ExportModel_GMT.ExportType3D',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='DistanceToFaults', full_name='gmtaskmodel.ExportModel_GMT.ExportType3D.DistanceToFaults', index=0,
number=12, type=8, cpp_type=7, label=1,
has_default_value=True, 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='Feflow_Layered', full_name='gmtaskmodel.ExportModel_GMT.ExportType3D.Feflow_Layered', index=1,
number=1, type=8, cpp_type=7, label=1,
has_default_value=True, 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='Gradients', full_name='gmtaskmodel.ExportModel_GMT.ExportType3D.Gradients', index=2,
number=2, type=8, cpp_type=7, label=1,
has_default_value=True, 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='Grdecl', full_name='gmtaskmodel.ExportModel_GMT.ExportType3D.Grdecl', index=3,
number=3, type=8, cpp_type=7, label=1,
has_default_value=True, 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='KrigingVariance', full_name='gmtaskmodel.ExportModel_GMT.ExportType3D.KrigingVariance', index=4,
number=4, type=8, cpp_type=7, label=1,
has_default_value=True, 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='KrigingStandardDeviation', full_name='gmtaskmodel.ExportModel_GMT.ExportType3D.KrigingStandardDeviation', index=5,
number=5, type=8, cpp_type=7, label=1,
has_default_value=True, 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='KrigingScaledError', full_name='gmtaskmodel.ExportModel_GMT.ExportType3D.KrigingScaledError', index=6,
number=6, type=8, cpp_type=7, label=1,
has_default_value=True, 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='MartheVoxels', full_name='gmtaskmodel.ExportModel_GMT.ExportType3D.MartheVoxels', index=7,
number=7, type=8, cpp_type=7, label=1,
has_default_value=True, 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='ToughVoxels', full_name='gmtaskmodel.ExportModel_GMT.ExportType3D.ToughVoxels', index=8,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, 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='Voxels', full_name='gmtaskmodel.ExportModel_GMT.ExportType3D.Voxels', index=9,
number=9, type=8, cpp_type=7, label=1,
has_default_value=True, 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='voxelsXYZ', full_name='gmtaskmodel.ExportModel_GMT.ExportType3D.voxelsXYZ', index=10,
number=10, type=8, cpp_type=7, label=1,
has_default_value=True, 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),
],
extensions=[
],
nested_types=[],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=21791,
serialized_end=22132,
)
_EXPORTMODEL_GMT = _descriptor.Descriptor(
name='ExportModel_GMT',
full_name='gmtaskmodel.ExportModel_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='output_directory', full_name='gmtaskmodel.ExportModel_GMT.output_directory', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"export_mesh".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='export3D', full_name='gmtaskmodel.ExportModel_GMT.export3D', 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='export2D', full_name='gmtaskmodel.ExportModel_GMT.export2D', 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),
_descriptor.FieldDescriptor(
name='GridSize', full_name='gmtaskmodel.ExportModel_GMT.GridSize', index=3,
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='dx', full_name='gmtaskmodel.ExportModel_GMT.dx', index=4,
number=10, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=100,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='dy', full_name='gmtaskmodel.ExportModel_GMT.dy', index=5,
number=11, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=100,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='dz', full_name='gmtaskmodel.ExportModel_GMT.dz', index=6,
number=12, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=100,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='dxy', full_name='gmtaskmodel.ExportModel_GMT.dxy', index=7,
number=13, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=100,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='VariableZ_Factor', full_name='gmtaskmodel.ExportModel_GMT.VariableZ_Factor', index=8,
number=17, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ReportFile', full_name='gmtaskmodel.ExportModel_GMT.ReportFile', index=9,
number=16, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"export_model.rpt".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='log', full_name='gmtaskmodel.ExportModel_GMT.log', index=10,
number=255, 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=[_EXPORTMODEL_GMT_EXPORTTYPE2D, _EXPORTMODEL_GMT_EXPORTTYPE3D, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=21233,
serialized_end=22132,
)
_EXPORT3DSHAPES_GMT = _descriptor.Descriptor(
name='Export3DShapes_GMT',
full_name='gmtaskmodel.Export3DShapes_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='output_directory', full_name='gmtaskmodel.Export3DShapes_GMT.output_directory', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"export_mesh".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='model_name', full_name='gmtaskmodel.Export3DShapes_GMT.model_name', index=1,
number=2, 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='file_type', full_name='gmtaskmodel.Export3DShapes_GMT.file_type', index=2,
number=3, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=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='mesh_type', full_name='gmtaskmodel.Export3DShapes_GMT.mesh_type', index=3,
number=4, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=12,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='filterout_triangles_from_inner_tetrahedrons', full_name='gmtaskmodel.Export3DShapes_GMT.filterout_triangles_from_inner_tetrahedrons', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='wantTetrahedra', full_name='gmtaskmodel.Export3DShapes_GMT.wantTetrahedra', index=5,
number=6, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='envelop_surfaces_only', full_name='gmtaskmodel.Export3DShapes_GMT.envelop_surfaces_only', index=6,
number=7, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Formation_IsoPotentials', full_name='gmtaskmodel.Export3DShapes_GMT.Formation_IsoPotentials', index=7,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Formation_GradientPotentials', full_name='gmtaskmodel.Export3DShapes_GMT.Formation_GradientPotentials', index=8,
number=9, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='property', full_name='gmtaskmodel.Export3DShapes_GMT.property', index=9,
number=50, type=14, cpp_type=8, 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='log', full_name='gmtaskmodel.Export3DShapes_GMT.log', index=10,
number=99, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"export_3d_shapes.rpt".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=[
_EXPORT3DSHAPES_GMT_FILETYPE3D,
_EXPORT3DSHAPES_GMT_MESHTYPE,
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=22135,
serialized_end=22832,
)
_EXPORTPROJECTSITE_GMT = _descriptor.Descriptor(
name='ExportProjectSite_GMT',
full_name='gmtaskmodel.ExportProjectSite_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='dataType', full_name='gmtaskmodel.ExportProjectSite_GMT.dataType', index=0,
number=1, type=14, cpp_type=8, 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='myTypeSite', full_name='gmtaskmodel.ExportProjectSite_GMT.myTypeSite', index=1,
number=2, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Name', full_name='gmtaskmodel.ExportProjectSite_GMT.Name', 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='VRMLFile_Name', full_name='gmtaskmodel.ExportProjectSite_GMT.VRMLFile_Name', 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='DoTextureEnhancement', full_name='gmtaskmodel.ExportProjectSite_GMT.DoTextureEnhancement', index=4,
number=6, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='AddLighting', full_name='gmtaskmodel.ExportProjectSite_GMT.AddLighting', index=5,
number=7, type=8, cpp_type=7, label=1,
has_default_value=True, 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='vtp_files', full_name='gmtaskmodel.ExportProjectSite_GMT.vtp_files', index=6,
number=10, 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='output_pdf3d', full_name='gmtaskmodel.ExportProjectSite_GMT.output_pdf3d', index=7,
number=11, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"myProject.pdf".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='output_u3d', full_name='gmtaskmodel.ExportProjectSite_GMT.output_u3d', index=8,
number=12, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"myProject.u3d".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='output_png', full_name='gmtaskmodel.ExportProjectSite_GMT.output_png', index=9,
number=14, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"myProject.png".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='output_prc', full_name='gmtaskmodel.ExportProjectSite_GMT.output_prc', index=10,
number=15, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"myProject.prc".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='MeshGrid_Source', full_name='gmtaskmodel.ExportProjectSite_GMT.MeshGrid_Source', index=11,
number=20, 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='solution_radius', full_name='gmtaskmodel.ExportProjectSite_GMT.solution_radius', index=12,
number=21, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(5),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='grid_shrink_factor', full_name='gmtaskmodel.ExportProjectSite_GMT.grid_shrink_factor', index=13,
number=22, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(0.5),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Inversion_Case', full_name='gmtaskmodel.ExportProjectSite_GMT.Inversion_Case', index=14,
number=30, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"Case1".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='Inversion_Run', full_name='gmtaskmodel.ExportProjectSite_GMT.Inversion_Run', index=15,
number=31, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"Run1".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='Inversion_Product', full_name='gmtaskmodel.ExportProjectSite_GMT.Inversion_Product', index=16,
number=32, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"final.vo".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='Inversion_AEM', full_name='gmtaskmodel.ExportProjectSite_GMT.Inversion_AEM', index=17,
number=40, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"EM2DInv".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='Line_Number', full_name='gmtaskmodel.ExportProjectSite_GMT.Line_Number', index=18,
number=41, 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='Iteration', full_name='gmtaskmodel.ExportProjectSite_GMT.Iteration', index=19,
number=42, type=5, cpp_type=1, 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='AddTicks', full_name='gmtaskmodel.ExportProjectSite_GMT.AddTicks', index=20,
number=60, type=8, cpp_type=7, label=1,
has_default_value=True, 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='AddSections', full_name='gmtaskmodel.ExportProjectSite_GMT.AddSections', index=21,
number=61, type=8, cpp_type=7, label=1,
has_default_value=True, 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='Extents', full_name='gmtaskmodel.ExportProjectSite_GMT.Extents', index=22,
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='VerticalExaggeration', full_name='gmtaskmodel.ExportProjectSite_GMT.VerticalExaggeration', index=23,
number=63, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='PageHeightPixels', full_name='gmtaskmodel.ExportProjectSite_GMT.PageHeightPixels', index=24,
number=70, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=700,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='PageWidthPixels', full_name='gmtaskmodel.ExportProjectSite_GMT.PageWidthPixels', index=25,
number=71, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=920,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='background_red', full_name='gmtaskmodel.ExportProjectSite_GMT.background_red', index=26,
number=72, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(200),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='background_green', full_name='gmtaskmodel.ExportProjectSite_GMT.background_green', index=27,
number=73, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(200),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='background_blue', full_name='gmtaskmodel.ExportProjectSite_GMT.background_blue', index=28,
number=74, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(200),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='view_name', full_name='gmtaskmodel.ExportProjectSite_GMT.view_name', index=29,
number=75, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"DefaultView".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='ShowToolBar', full_name='gmtaskmodel.ExportProjectSite_GMT.ShowToolBar', index=30,
number=76, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ShowNavigationPanel', full_name='gmtaskmodel.ExportProjectSite_GMT.ShowNavigationPanel', index=31,
number=77, type=8, cpp_type=7, label=1,
has_default_value=True, 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='SetOrthogonalProjection', full_name='gmtaskmodel.ExportProjectSite_GMT.SetOrthogonalProjection', index=32,
number=78, type=8, cpp_type=7, label=1,
has_default_value=True, 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='SetPerspectiveProjection', full_name='gmtaskmodel.ExportProjectSite_GMT.SetPerspectiveProjection', index=33,
number=79, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=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_of_view', full_name='gmtaskmodel.ExportProjectSite_GMT.field_of_view', index=34,
number=80, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(45),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='coverimagefile', full_name='gmtaskmodel.ExportProjectSite_GMT.coverimagefile', index=35,
number=81, 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='debug', full_name='gmtaskmodel.ExportProjectSite_GMT.debug', index=36,
number=82, type=8, cpp_type=7, label=1,
has_default_value=True, 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='ReportFile', full_name='gmtaskmodel.ExportProjectSite_GMT.ReportFile', index=37,
number=90, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"ExportProjectSite.rpt".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='log', full_name='gmtaskmodel.ExportProjectSite_GMT.log', index=38,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=22835,
serialized_end=24094,
)
_AXIS_CONTROL_GMT = _descriptor.Descriptor(
name='Axis_Control_GMT',
full_name='gmtaskmodel.Axis_Control_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='step', full_name='gmtaskmodel.Axis_Control_GMT.step', index=0,
number=2, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(-1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Decimal_Number', full_name='gmtaskmodel.Axis_Control_GMT.Decimal_Number', index=1,
number=32, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Title', full_name='gmtaskmodel.Axis_Control_GMT.Title', index=2,
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),
],
extensions=[
],
nested_types=[],
enum_types=[
_AXIS_CONTROL_GMT_DIRECTION,
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=24096,
serialized_end=24201,
)
_PRESENTATION2D_GRAPHICS_GMT = _descriptor.Descriptor(
name='Presentation2D_Graphics_GMT',
full_name='gmtaskmodel.Presentation2D_Graphics_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='Section_Name', full_name='gmtaskmodel.Presentation2D_Graphics_GMT.Section_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='DoAllSections', full_name='gmtaskmodel.Presentation2D_Graphics_GMT.DoAllSections', index=1,
number=2, type=8, cpp_type=7, label=1,
has_default_value=True, 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='Title_Position', full_name='gmtaskmodel.Presentation2D_Graphics_GMT.Title_Position', 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),
_descriptor.FieldDescriptor(
name='Axis_Graduation', full_name='gmtaskmodel.Presentation2D_Graphics_GMT.Axis_Graduation', index=3,
number=4, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Axis_Labels', full_name='gmtaskmodel.Presentation2D_Graphics_GMT.Axis_Labels', index=4,
number=5, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Axis_Titles', full_name='gmtaskmodel.Presentation2D_Graphics_GMT.Axis_Titles', index=5,
number=6, type=8, cpp_type=7, label=1,
has_default_value=True, 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='Axis_Control', full_name='gmtaskmodel.Presentation2D_Graphics_GMT.Axis_Control', index=6,
number=7, 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='output_graphics_file_stub', full_name='gmtaskmodel.Presentation2D_Graphics_GMT.output_graphics_file_stub', index=7,
number=8, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"section_name.png".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='log', full_name='gmtaskmodel.Presentation2D_Graphics_GMT.log', index=8,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=24204,
serialized_end=24544,
)
_PRISMFEFLOWTRIANGULATION_GMT = _descriptor.Descriptor(
name='PrismFeFLOWTriangulation_GMT',
full_name='gmtaskmodel.PrismFeFLOWTriangulation_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='input_fem_mesh_file', full_name='gmtaskmodel.PrismFeFLOWTriangulation_GMT.input_fem_mesh_file', index=0,
number=1, type=9, cpp_type=9, label=2,
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='Number_Layers', full_name='gmtaskmodel.PrismFeFLOWTriangulation_GMT.Number_Layers', index=1,
number=2, type=17, cpp_type=1, label=1,
has_default_value=True, default_value=20,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='VariableZ_Factor', full_name='gmtaskmodel.PrismFeFLOWTriangulation_GMT.VariableZ_Factor', index=2,
number=5, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='output_mesh', full_name='gmtaskmodel.PrismFeFLOWTriangulation_GMT.output_mesh', index=3,
number=3, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"mesh_3d.fem".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='output_report_file', full_name='gmtaskmodel.PrismFeFLOWTriangulation_GMT.output_report_file', index=4,
number=4, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"prism_fem_mesh_report.rpt".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='log', full_name='gmtaskmodel.PrismFeFLOWTriangulation_GMT.log', index=5,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=24547,
serialized_end=24765,
)
_GENERATEMESHREPORT_GMT = _descriptor.Descriptor(
name='GenerateMeshReport_GMT',
full_name='gmtaskmodel.GenerateMeshReport_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='output_report_file', full_name='gmtaskmodel.GenerateMeshReport_GMT.output_report_file', index=0,
number=1, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"generate_mesh_report.rpt".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='input_mesh_file', full_name='gmtaskmodel.GenerateMeshReport_GMT.input_mesh_file', 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='TypeMeshGrid', full_name='gmtaskmodel.GenerateMeshReport_GMT.TypeMeshGrid', index=2,
number=13, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='vtk', full_name='gmtaskmodel.GenerateMeshReport_GMT.vtk', index=3,
number=3, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='sharp_angle_threshold', full_name='gmtaskmodel.GenerateMeshReport_GMT.sharp_angle_threshold', index=4,
number=4, type=1, cpp_type=5, label=1,
has_default_value=False, default_value=float(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='facet_angle_threshold', full_name='gmtaskmodel.GenerateMeshReport_GMT.facet_angle_threshold', index=5,
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='facet_size_threshold', full_name='gmtaskmodel.GenerateMeshReport_GMT.facet_size_threshold', index=6,
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='vtp_dir', full_name='gmtaskmodel.GenerateMeshReport_GMT.vtp_dir', index=7,
number=7, type=9, cpp_type=9, label=1,
has_default_value=True, 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='write_vtp_files', full_name='gmtaskmodel.GenerateMeshReport_GMT.write_vtp_files', index=8,
number=8, type=8, cpp_type=7, label=1,
has_default_value=True, 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='report_vertices', full_name='gmtaskmodel.GenerateMeshReport_GMT.report_vertices', index=9,
number=9, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='report_edges', full_name='gmtaskmodel.GenerateMeshReport_GMT.report_edges', index=10,
number=10, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='report_facets', full_name='gmtaskmodel.GenerateMeshReport_GMT.report_facets', index=11,
number=11, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='tolerance', full_name='gmtaskmodel.GenerateMeshReport_GMT.tolerance', index=12,
number=12, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(0.0001),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='output_mesh_report', full_name='gmtaskmodel.GenerateMeshReport_GMT.output_mesh_report', index=13,
number=20, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"mesh_quality.rpt".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='log', full_name='gmtaskmodel.GenerateMeshReport_GMT.log', index=14,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=24768,
serialized_end=25310,
)
_MESHUNITFORGEOPHYS_GMT_RANKRADIUSCONTROL = _descriptor.Descriptor(
name='RankRadiusControl',
full_name='gmtaskmodel.MeshUnitForGeophys_GMT.RankRadiusControl',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='name', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.RankRadiusControl.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='rank', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.RankRadiusControl.rank', index=1,
number=2, 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='topo_radius', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.RankRadiusControl.topo_radius', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(1),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='base_radius', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.RankRadiusControl.base_radius', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(100),
message_type=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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=25896,
serialized_end=25993,
)
_MESHUNITFORGEOPHYS_GMT = _descriptor.Descriptor(
name='MeshUnitForGeophys_GMT',
full_name='gmtaskmodel.MeshUnitForGeophys_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='input_point_file', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.input_point_file', 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='output_mesh_file', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.output_mesh_file', 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='rank_radius', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.rank_radius', index=2,
number=3, 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='num_samples', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.num_samples', index=3,
number=4, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=10,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='debug_dir', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.debug_dir', 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='debug_prefix', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.debug_prefix', index=5,
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='thinning_function', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.thinning_function', index=6,
number=8, type=14, cpp_type=8, label=1,
has_default_value=True, 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='sample_method', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.sample_method', index=7,
number=9, type=14, cpp_type=8, label=1,
has_default_value=True, 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='thinning_radii_are_absolute', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.thinning_radii_are_absolute', index=8,
number=10, type=8, cpp_type=7, label=1,
has_default_value=True, 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='unit_name', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.unit_name', index=9,
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='unit_rank', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.unit_rank', index=10,
number=12, 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='cgalparms', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.cgalparms', index=11,
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='log', full_name='gmtaskmodel.MeshUnitForGeophys_GMT.log', index=12,
number=99, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"mesh_unit_for_geophysics_model.rpt".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=[_MESHUNITFORGEOPHYS_GMT_RANKRADIUSCONTROL, ],
enum_types=[
_MESHUNITFORGEOPHYS_GMT_THINNINGFUNCTION,
_MESHUNITFORGEOPHYS_GMT_SAMPLEMETHOD,
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=25313,
serialized_end=26102,
)
_GETCOMPUTEDLITHOATXYZ_GMT = _descriptor.Descriptor(
name='GetComputedLithoAtXYZ_GMT',
full_name='gmtaskmodel.GetComputedLithoAtXYZ_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='filename', full_name='gmtaskmodel.GetComputedLithoAtXYZ_GMT.filename', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=True, default_value=b"ModelLitho_Query.rpt".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='Point', full_name='gmtaskmodel.GetComputedLithoAtXYZ_GMT.Point', 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=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.GetComputedLithoAtXYZ_GMT.log', index=2,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=26104,
serialized_end=26229,
)
_GETCOMPUTEDGRADIENTATXYZ_GMT = _descriptor.Descriptor(
name='GetComputedGradientAtXYZ_GMT',
full_name='gmtaskmodel.GetComputedGradientAtXYZ_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='filename', full_name='gmtaskmodel.GetComputedGradientAtXYZ_GMT.filename', index=0,
number=1, type=9, cpp_type=9, label=2,
has_default_value=True, default_value=b"ModelGradients_Query.rpt".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='Point', full_name='gmtaskmodel.GetComputedGradientAtXYZ_GMT.Point', 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=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.GetComputedGradientAtXYZ_GMT.log', index=2,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=26232,
serialized_end=26364,
)
_COMPUTEEXTERNALDRIFTFIELD_GMT_FORMATION_DISTRIBUTION = _descriptor.Descriptor(
name='Formation_Distribution',
full_name='gmtaskmodel.ComputeExternalDriftField_GMT.Formation_Distribution',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='formation', full_name='gmtaskmodel.ComputeExternalDriftField_GMT.Formation_Distribution.formation', index=0,
number=1, type=9, cpp_type=9, label=2,
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='Type', full_name='gmtaskmodel.ComputeExternalDriftField_GMT.Formation_Distribution.Type', index=1,
number=2, type=14, cpp_type=8, label=1,
has_default_value=False, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='p1', full_name='gmtaskmodel.ComputeExternalDriftField_GMT.Formation_Distribution.p1', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='p2', full_name='gmtaskmodel.ComputeExternalDriftField_GMT.Formation_Distribution.p2', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='p3', full_name='gmtaskmodel.ComputeExternalDriftField_GMT.Formation_Distribution.p3', index=4,
number=5, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=26798,
serialized_end=26932,
)
_COMPUTEEXTERNALDRIFTFIELD_GMT = _descriptor.Descriptor(
name='ComputeExternalDriftField_GMT',
full_name='gmtaskmodel.ComputeExternalDriftField_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='MeshGrid_Source', full_name='gmtaskmodel.ComputeExternalDriftField_GMT.MeshGrid_Source', index=0,
number=1, type=11, cpp_type=10, label=2,
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='required_drift_function', full_name='gmtaskmodel.ComputeExternalDriftField_GMT.required_drift_function', index=1,
number=3, 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='DepthUnit', full_name='gmtaskmodel.ComputeExternalDriftField_GMT.DepthUnit', index=2,
number=4, type=14, cpp_type=8, label=1,
has_default_value=True, 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='Property_Type', full_name='gmtaskmodel.ComputeExternalDriftField_GMT.Property_Type', index=3,
number=5, type=14, cpp_type=8, label=1,
has_default_value=True, 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='TypeMeshGrid', full_name='gmtaskmodel.ComputeExternalDriftField_GMT.TypeMeshGrid', index=4,
number=13, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='output_report_file', full_name='gmtaskmodel.ComputeExternalDriftField_GMT.output_report_file', index=5,
number=99, type=9, cpp_type=9, label=1,
has_default_value=True, default_value=b"ComputeExternalDriftField.rpt".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='log', full_name='gmtaskmodel.ComputeExternalDriftField_GMT.log', index=6,
number=255, 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=[_COMPUTEEXTERNALDRIFTFIELD_GMT_FORMATION_DISTRIBUTION, ],
enum_types=[
],
serialized_options=None,
is_extendable=False,
syntax='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=26367,
serialized_end=26932,
)
_CREATEAXIALSERIES_GMT = _descriptor.Descriptor(
name='CreateAxialSeries_GMT',
full_name='gmtaskmodel.CreateAxialSeries_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='AxialSeries', full_name='gmtaskmodel.CreateAxialSeries_GMT.AxialSeries', index=0,
number=1, type=9, cpp_type=9, label=2,
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='red', full_name='gmtaskmodel.CreateAxialSeries_GMT.red', index=1,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='green', full_name='gmtaskmodel.CreateAxialSeries_GMT.green', index=2,
number=4, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(125),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='blue', full_name='gmtaskmodel.CreateAxialSeries_GMT.blue', index=3,
number=5, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(255),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Mechanism', full_name='gmtaskmodel.CreateAxialSeries_GMT.Mechanism', index=4,
number=13, type=14, cpp_type=8, label=1,
has_default_value=True, 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='style', full_name='gmtaskmodel.CreateAxialSeries_GMT.style', index=5,
number=14, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=2,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='log', full_name='gmtaskmodel.CreateAxialSeries_GMT.log', 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=26935,
serialized_end=27163,
)
_CREATEAXIALSURFACE_GMT = _descriptor.Descriptor(
name='CreateAxialSurface_GMT',
full_name='gmtaskmodel.CreateAxialSurface_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='AxialSeries', full_name='gmtaskmodel.CreateAxialSurface_GMT.AxialSeries', index=0,
number=1, type=9, cpp_type=9, label=2,
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='AxialSurface', full_name='gmtaskmodel.CreateAxialSurface_GMT.AxialSurface', index=1,
number=2, type=9, cpp_type=9, label=2,
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='red', full_name='gmtaskmodel.CreateAxialSurface_GMT.red', index=2,
number=3, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='green', full_name='gmtaskmodel.CreateAxialSurface_GMT.green', index=3,
number=4, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(125),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='blue', full_name='gmtaskmodel.CreateAxialSurface_GMT.blue', index=4,
number=5, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(255),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='PointList', full_name='gmtaskmodel.CreateAxialSurface_GMT.PointList', 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='PointList3D', full_name='gmtaskmodel.CreateAxialSurface_GMT.PointList3D', 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='observationId', full_name='gmtaskmodel.CreateAxialSurface_GMT.observationId', index=7,
number=8, type=9, cpp_type=9, label=1,
has_default_value=True, 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='provenance', full_name='gmtaskmodel.CreateAxialSurface_GMT.provenance', index=8,
number=9, type=14, cpp_type=8, label=1,
has_default_value=True, 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='type', full_name='gmtaskmodel.CreateAxialSurface_GMT.type', index=9,
number=10, type=14, cpp_type=8, label=1,
has_default_value=True, 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='tightness', full_name='gmtaskmodel.CreateAxialSurface_GMT.tightness', index=10,
number=12, type=14, cpp_type=8, label=1,
has_default_value=True, 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='log', full_name='gmtaskmodel.CreateAxialSurface_GMT.log', index=11,
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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=27166,
serialized_end=27576,
)
_ADDAXIALTRACELINE_GMT = _descriptor.Descriptor(
name='AddAxialTraceLine_GMT',
full_name='gmtaskmodel.AddAxialTraceLine_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='AxialSeries', full_name='gmtaskmodel.AddAxialTraceLine_GMT.AxialSeries', 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='AxialSurface', full_name='gmtaskmodel.AddAxialTraceLine_GMT.AxialSurface', index=1,
number=2, type=9, cpp_type=9, label=2,
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='DefiningSection', full_name='gmtaskmodel.AddAxialTraceLine_GMT.DefiningSection', 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='PointList', full_name='gmtaskmodel.AddAxialTraceLine_GMT.PointList', 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='PointList3D', full_name='gmtaskmodel.AddAxialTraceLine_GMT.PointList3D', index=4,
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='observationId', full_name='gmtaskmodel.AddAxialTraceLine_GMT.observationId', index=5,
number=6, type=9, cpp_type=9, label=1,
has_default_value=True, 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='provenance', full_name='gmtaskmodel.AddAxialTraceLine_GMT.provenance', index=6,
number=7, type=14, cpp_type=8, label=1,
has_default_value=True, 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='log', full_name='gmtaskmodel.AddAxialTraceLine_GMT.log', index=7,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=27579,
serialized_end=27856,
)
_ADDAXIALSURFACEORIENTATION_GMT = _descriptor.Descriptor(
name='AddAxialSurfaceOrientation_GMT',
full_name='gmtaskmodel.AddAxialSurfaceOrientation_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='AxialSeries', full_name='gmtaskmodel.AddAxialSurfaceOrientation_GMT.AxialSeries', index=0,
number=1, type=9, cpp_type=9, label=2,
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='observationId', full_name='gmtaskmodel.AddAxialSurfaceOrientation_GMT.observationId', index=1,
number=2, type=9, cpp_type=9, label=1,
has_default_value=True, 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='DefiningSection', full_name='gmtaskmodel.AddAxialSurfaceOrientation_GMT.DefiningSection', index=2,
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='Point', full_name='gmtaskmodel.AddAxialSurfaceOrientation_GMT.Point', index=3,
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='Point3D', full_name='gmtaskmodel.AddAxialSurfaceOrientation_GMT.Point3D', index=4,
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='provenance', full_name='gmtaskmodel.AddAxialSurfaceOrientation_GMT.provenance', index=5,
number=5, type=14, cpp_type=8, label=1,
has_default_value=True, 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='Dip', full_name='gmtaskmodel.AddAxialSurfaceOrientation_GMT.Dip', index=6,
number=8, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='DipDirection', full_name='gmtaskmodel.AddAxialSurfaceOrientation_GMT.DipDirection', index=7,
number=9, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='Pitch', full_name='gmtaskmodel.AddAxialSurfaceOrientation_GMT.Pitch', index=8,
number=10, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(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='Polarity', full_name='gmtaskmodel.AddAxialSurfaceOrientation_GMT.Polarity', index=9,
number=17, type=14, cpp_type=8, label=1,
has_default_value=True, default_value=1,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='foliation', full_name='gmtaskmodel.AddAxialSurfaceOrientation_GMT.foliation', index=10,
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='log', full_name='gmtaskmodel.AddAxialSurfaceOrientation_GMT.log', index=11,
number=50, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=27859,
serialized_end=28272,
)
_ADDHINGELINE_GMT = _descriptor.Descriptor(
name='AddHingeLine_GMT',
full_name='gmtaskmodel.AddHingeLine_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='AxialSeries', full_name='gmtaskmodel.AddHingeLine_GMT.AxialSeries', 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='AxialSurface', full_name='gmtaskmodel.AddHingeLine_GMT.AxialSurface', index=1,
number=2, type=9, cpp_type=9, label=2,
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='Formation', full_name='gmtaskmodel.AddHingeLine_GMT.Formation', index=2,
number=4, type=9, cpp_type=9, label=2,
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='PointList', full_name='gmtaskmodel.AddHingeLine_GMT.PointList', 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='PointList3D', full_name='gmtaskmodel.AddHingeLine_GMT.PointList3D', 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),
_descriptor.FieldDescriptor(
name='observationId', full_name='gmtaskmodel.AddHingeLine_GMT.observationId', index=5,
number=7, type=9, cpp_type=9, label=1,
has_default_value=True, 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='provenance', full_name='gmtaskmodel.AddHingeLine_GMT.provenance', index=6,
number=8, type=14, cpp_type=8, label=1,
has_default_value=True, 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='DistanceAtOrigin', full_name='gmtaskmodel.AddHingeLine_GMT.DistanceAtOrigin', index=7,
number=9, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(90),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='DistanceAtExtremity', full_name='gmtaskmodel.AddHingeLine_GMT.DistanceAtExtremity', index=8,
number=10, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(100),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Constant_Fold_Shape', full_name='gmtaskmodel.AddHingeLine_GMT.Constant_Fold_Shape', index=9,
number=11, type=8, cpp_type=7, label=1,
has_default_value=True, default_value=True,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ApertureAtOrigin', full_name='gmtaskmodel.AddHingeLine_GMT.ApertureAtOrigin', index=10,
number=12, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(30),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='ApertureAtExtremity', full_name='gmtaskmodel.AddHingeLine_GMT.ApertureAtExtremity', index=11,
number=13, type=1, cpp_type=5, label=1,
has_default_value=True, default_value=float(30),
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Polarity', full_name='gmtaskmodel.AddHingeLine_GMT.Polarity', index=12,
number=14, type=14, cpp_type=8, label=1,
has_default_value=True, 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='log', full_name='gmtaskmodel.AddHingeLine_GMT.log', index=13,
number=50, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=28275,
serialized_end=28760,
)
_CREATESECTIONFROMAXIALSURFACE_GMT = _descriptor.Descriptor(
name='CreateSectionFromAxialSurface_GMT',
full_name='gmtaskmodel.CreateSectionFromAxialSurface_GMT',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='AxialSectionName', full_name='gmtaskmodel.CreateSectionFromAxialSurface_GMT.AxialSectionName', index=0,
number=1, type=9, cpp_type=9, label=2,
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='AxialSurface', full_name='gmtaskmodel.CreateSectionFromAxialSurface_GMT.AxialSurface', index=1,
number=2, type=9, cpp_type=9, label=2,
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='GridNodes', full_name='gmtaskmodel.CreateSectionFromAxialSurface_GMT.GridNodes', index=2,
number=4, type=5, cpp_type=1, label=1,
has_default_value=True, default_value=10,
message_type=None, enum_type=None, containing_type=None,
is_extension=False, extension_scope=None,
serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key),
_descriptor.FieldDescriptor(
name='Extents', full_name='gmtaskmodel.CreateSectionFromAxialSurface_GMT.Extents', index=3,
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='InterpotationParameters', full_name='gmtaskmodel.CreateSectionFromAxialSurface_GMT.InterpotationParameters', index=4,
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='log', full_name='gmtaskmodel.CreateSectionFromAxialSurface_GMT.log', index=5,
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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=28763,
serialized_end=28997,
)
_GEOMODELLERTASK = _descriptor.Descriptor(
name='GeomodellerTask',
full_name='gmtaskmodel.GeomodellerTask',
filename=None,
file=DESCRIPTOR,
containing_type=None,
create_key=_descriptor._internal_create_key,
fields=[
_descriptor.FieldDescriptor(
name='CreateProject', full_name='gmtaskmodel.GeomodellerTask.CreateProject', index=0,
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='OpenProjectGUI', full_name='gmtaskmodel.GeomodellerTask.OpenProjectGUI', 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='OpenProjectNoGUI', full_name='gmtaskmodel.GeomodellerTask.OpenProjectNoGUI', 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),
_descriptor.FieldDescriptor(
name='SaveProject', full_name='gmtaskmodel.GeomodellerTask.SaveProject', 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='SaveProjectAs', full_name='gmtaskmodel.GeomodellerTask.SaveProjectAs', index=4,
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='CustomDTM', full_name='gmtaskmodel.GeomodellerTask.CustomDTM', 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='HorizontalDTM', full_name='gmtaskmodel.GeomodellerTask.HorizontalDTM', 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='CreateFormation', full_name='gmtaskmodel.GeomodellerTask.CreateFormation', index=7,
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='CreateFault', full_name='gmtaskmodel.GeomodellerTask.CreateFault', index=8,
number=9, 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='SetSeries', full_name='gmtaskmodel.GeomodellerTask.SetSeries', 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='AddFormationToSeries', full_name='gmtaskmodel.GeomodellerTask.AddFormationToSeries', 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='AddDykeToSeries', full_name='gmtaskmodel.GeomodellerTask.AddDykeToSeries', index=11,
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='AddPoint3d', full_name='gmtaskmodel.GeomodellerTask.AddPoint3d', index=12,
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='PointList3d', full_name='gmtaskmodel.GeomodellerTask.PointList3d', index=13,
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='CreateSection', full_name='gmtaskmodel.GeomodellerTask.CreateSection', index=14,
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='AddPoint2d', full_name='gmtaskmodel.GeomodellerTask.AddPoint2d', index=15,
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='PointList2d', full_name='gmtaskmodel.GeomodellerTask.PointList2d', index=16,
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='AddInterfaceToSection', full_name='gmtaskmodel.GeomodellerTask.AddInterfaceToSection', index=17,
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='AddFoliationToSection', full_name='gmtaskmodel.GeomodellerTask.AddFoliationToSection', index=18,
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='Add3DFoliationToFormation', full_name='gmtaskmodel.GeomodellerTask.Add3DFoliationToFormation', index=19,
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='Import2dDataToSection', full_name='gmtaskmodel.GeomodellerTask.Import2dDataToSection', index=20,
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='DeleteInterfacesFromSection', full_name='gmtaskmodel.GeomodellerTask.DeleteInterfacesFromSection', index=21,
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='ReadAndImport2dDataToASection', full_name='gmtaskmodel.GeomodellerTask.ReadAndImport2dDataToASection', index=22,
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='RenderSection', full_name='gmtaskmodel.GeomodellerTask.RenderSection', index=23,
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='UpdateInterface', full_name='gmtaskmodel.GeomodellerTask.UpdateInterface', index=24,
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='LinkFaultsWithSeries', full_name='gmtaskmodel.GeomodellerTask.LinkFaultsWithSeries', index=25,
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='LinkFaultsWithFaults', full_name='gmtaskmodel.GeomodellerTask.LinkFaultsWithFaults', index=26,
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='CreateDyke', full_name='gmtaskmodel.GeomodellerTask.CreateDyke', index=27,
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='ExportSection', full_name='gmtaskmodel.GeomodellerTask.ExportSection', index=28,
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='CentralVerticalPotentialAndRank', full_name='gmtaskmodel.GeomodellerTask.CentralVerticalPotentialAndRank', index=29,
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='GetModelSummary', full_name='gmtaskmodel.GeomodellerTask.GetModelSummary', index=30,
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='Set3dFaultLimits', full_name='gmtaskmodel.GeomodellerTask.Set3dFaultLimits', index=31,
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='AddApparentDipToSection', full_name='gmtaskmodel.GeomodellerTask.AddApparentDipToSection', index=32,
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='fault_centre', full_name='gmtaskmodel.GeomodellerTask.fault_centre', index=33,
number=160, 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='Create3DPoint', full_name='gmtaskmodel.GeomodellerTask.Create3DPoint', index=34,
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='Add3DInterfacesToFormation', full_name='gmtaskmodel.GeomodellerTask.Add3DInterfacesToFormation', index=35,
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='GetComputedLithoAtXYZ', full_name='gmtaskmodel.GeomodellerTask.GetComputedLithoAtXYZ', index=36,
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='GetComputedGradientAtXYZ', full_name='gmtaskmodel.GeomodellerTask.GetComputedGradientAtXYZ', index=37,
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='ReadAndImport3dData', full_name='gmtaskmodel.GeomodellerTask.ReadAndImport3dData', index=38,
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='AddDykeStructuralDataToSection', full_name='gmtaskmodel.GeomodellerTask.AddDykeStructuralDataToSection', 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='CreateAxialSeries', full_name='gmtaskmodel.GeomodellerTask.CreateAxialSeries', index=40,
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='CreateAxialSurface', full_name='gmtaskmodel.GeomodellerTask.CreateAxialSurface', index=41,
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='AddAxialTraceLine', full_name='gmtaskmodel.GeomodellerTask.AddAxialTraceLine', index=42,
number=56, 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='AddHingeLine', full_name='gmtaskmodel.GeomodellerTask.AddHingeLine', index=43,
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='AddAxialSurfaceOrientation', full_name='gmtaskmodel.GeomodellerTask.AddAxialSurfaceOrientation', index=44,
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='CreateSectionFromAxialSurface', full_name='gmtaskmodel.GeomodellerTask.CreateSectionFromAxialSurface', index=45,
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='CreateDrillhole', full_name='gmtaskmodel.GeomodellerTask.CreateDrillhole', index=46,
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='LoadDrillholes', full_name='gmtaskmodel.GeomodellerTask.LoadDrillholes', index=47,
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='CompositeDrillholes', full_name='gmtaskmodel.GeomodellerTask.CompositeDrillholes', index=48,
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='ProbabilityDistributionFunction', full_name='gmtaskmodel.GeomodellerTask.ProbabilityDistributionFunction', 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='LithologyProperty', full_name='gmtaskmodel.GeomodellerTask.LithologyProperty', index=50,
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='SetModelBounds', full_name='gmtaskmodel.GeomodellerTask.SetModelBounds', index=51,
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='GetModelBounds', full_name='gmtaskmodel.GeomodellerTask.GetModelBounds', index=52,
number=99, 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='WriteBatchFile', full_name='gmtaskmodel.GeomodellerTask.WriteBatchFile', index=53,
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='ComputeModel', full_name='gmtaskmodel.GeomodellerTask.ComputeModel', index=54,
number=100, 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='RenderModel', full_name='gmtaskmodel.GeomodellerTask.RenderModel', index=55,
number=101, 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='RenderModelOnSection', full_name='gmtaskmodel.GeomodellerTask.RenderModelOnSection', index=56,
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='SaveLithologyVoxet', full_name='gmtaskmodel.GeomodellerTask.SaveLithologyVoxet', index=57,
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),
_descriptor.FieldDescriptor(
name='SavePotentialGradientVoxet', full_name='gmtaskmodel.GeomodellerTask.SavePotentialGradientVoxet', index=58,
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='InterpolateNumericalReadings', full_name='gmtaskmodel.GeomodellerTask.InterpolateNumericalReadings', index=59,
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='ImportSeismicNav', full_name='gmtaskmodel.GeomodellerTask.ImportSeismicNav', index=60,
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='ImportSeismicHorizons', full_name='gmtaskmodel.GeomodellerTask.ImportSeismicHorizons', index=61,
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='ImportMicroSeismicEvents', full_name='gmtaskmodel.GeomodellerTask.ImportMicroSeismicEvents', index=62,
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='LoadMeshGrid', full_name='gmtaskmodel.GeomodellerTask.LoadMeshGrid', index=63,
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='ExportMeshGrid', full_name='gmtaskmodel.GeomodellerTask.ExportMeshGrid', index=64,
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='CreateMeshGrid', full_name='gmtaskmodel.GeomodellerTask.CreateMeshGrid', index=65,
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='GenerateMeshReport', full_name='gmtaskmodel.GeomodellerTask.GenerateMeshReport', index=66,
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='BuildMeshCGAL', full_name='gmtaskmodel.GeomodellerTask.BuildMeshCGAL', index=67,
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='Export3DShapes', full_name='gmtaskmodel.GeomodellerTask.Export3DShapes', index=68,
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='ExportModel', full_name='gmtaskmodel.GeomodellerTask.ExportModel', index=69,
number=65, 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='ExportProjectSite', full_name='gmtaskmodel.GeomodellerTask.ExportProjectSite', index=70,
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='Presentation2D_Graphics', full_name='gmtaskmodel.GeomodellerTask.Presentation2D_Graphics', index=71,
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='BuildTripleLines', full_name='gmtaskmodel.GeomodellerTask.BuildTripleLines', index=72,
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='PrismFeFLOWTriangulation', full_name='gmtaskmodel.GeomodellerTask.PrismFeFLOWTriangulation', index=73,
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='MeshUnitForGeophys', full_name='gmtaskmodel.GeomodellerTask.MeshUnitForGeophys', index=74,
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='ComputeExternalDriftField', full_name='gmtaskmodel.GeomodellerTask.ComputeExternalDriftField', index=75,
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='ComputeVariogram', full_name='gmtaskmodel.GeomodellerTask.ComputeVariogram', index=76,
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='ImportTripleLines', full_name='gmtaskmodel.GeomodellerTask.ImportTripleLines', index=77,
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='CloseProjectNoGUI', full_name='gmtaskmodel.GeomodellerTask.CloseProjectNoGUI', 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='DrillholeQueryMeshGrid', full_name='gmtaskmodel.GeomodellerTask.DrillholeQueryMeshGrid', index=79,
number=150, 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='Export2DData', full_name='gmtaskmodel.GeomodellerTask.Export2DData', index=80,
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='CreateSegYThumbnail', full_name='gmtaskmodel.GeomodellerTask.CreateSegYThumbnail', index=81,
number=152, 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='log', full_name='gmtaskmodel.GeomodellerTask.log', index=82,
number=255, 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='proto2',
extension_ranges=[],
oneofs=[
],
serialized_start=29000,
serialized_end=34268,
)
_FOLIATION_GMT.fields_by_name['Point'].message_type = _ADDPOINT2D_GMT
_FOLIATION_GMT.fields_by_name['Point3D'].message_type = _ADDPOINT3D_GMT
_FOLIATION_GMT.fields_by_name['DipDistribution'].message_type = commontaskmodel__pb2._ANGLEPROBABILITYDISTRIBUTIONFUNCTION
_FOLIATION_GMT.fields_by_name['DirectionDistribution'].message_type = commontaskmodel__pb2._ANGLEPROBABILITYDISTRIBUTIONFUNCTION
_FOLIATION_GMT.fields_by_name['Provenance'].enum_type = commontaskmodel__pb2._PROVENANCETYPE
_FOLIATION_GMT.fields_by_name['polarity'].enum_type = commontaskmodel__pb2._POLARITYTYPE
_APPARENTDIP_GMT.fields_by_name['Point'].message_type = _ADDPOINT2D_GMT
_APPARENTDIP_GMT.fields_by_name['DipDistribution'].message_type = commontaskmodel__pb2._ANGLEPROBABILITYDISTRIBUTIONFUNCTION
_APPARENTDIP_GMT.fields_by_name['Provenance'].enum_type = commontaskmodel__pb2._PROVENANCETYPE
_SETMODELBOUNDS_GMT.fields_by_name['Extents'].message_type = commontaskmodel__pb2._BOUNDINGBOX
_GETMODELBOUNDS_GMT.fields_by_name['Extents'].message_type = commontaskmodel__pb2._BOUNDINGBOX
_CUSTOMDTM_GMT.fields_by_name['filename'].message_type = commontaskmodel__pb2._GRID_INT
_CUSTOMDTM_GMT.fields_by_name['Extents'].message_type = commontaskmodel__pb2._BOUNDINGBOX2D
_CUSTOMDTM_GMT.fields_by_name['units'].enum_type = commontaskmodel__pb2._DISTANCE_UNITS
_CREATEPROJECT_GMT.fields_by_name['CustomDTM'].message_type = _CUSTOMDTM_GMT
_CREATEPROJECT_GMT.fields_by_name['HorizontalDTM'].message_type = _HORIZONTALDTM_GMT
_CREATEPROJECT_GMT.fields_by_name['projection'].message_type = commontaskmodel__pb2._COORDINATESYSTEM
_CREATEPROJECT_GMT.fields_by_name['units'].enum_type = commontaskmodel__pb2._DISTANCE_UNITS
_CREATEPROJECT_GMT.fields_by_name['Zunits'].enum_type = commontaskmodel__pb2._VERTICAL_UNITS
_CREATEPROJECT_GMT.fields_by_name['Extents'].message_type = commontaskmodel__pb2._BOUNDINGBOX
_CREATEPROJECT_GMT.fields_by_name['CreateFromVoxet'].message_type = _SOURCEMESHGRID_GMT
_MODELINTERPOLATIONPARAMETERS_GMT.fields_by_name['Anisotropy'].message_type = _ANISOTROPIC_EFFECT_GMT
_MODELINTERPOLATIONPARAMETERS_GMT.fields_by_name['exotic_constraints'].message_type = _EXOTICCONSTRAINT_GMT
_COMPUTEMODEL_GMT.fields_by_name['SeriesList'].message_type = commontaskmodel__pb2._REPEATEDSTRING
_COMPUTEMODEL_GMT.fields_by_name['SectionList'].message_type = commontaskmodel__pb2._REPEATEDSTRING
_COMPUTEMODEL_GMT.fields_by_name['FaultList'].message_type = commontaskmodel__pb2._REPEATEDSTRING
_COMPUTEMODEL_GMT.fields_by_name['BoreholeList'].message_type = commontaskmodel__pb2._REPEATEDSTRING
_COMPUTEMODEL_GMT.fields_by_name['Extents'].message_type = commontaskmodel__pb2._BOUNDINGBOX
_COMPUTEMODEL_GMT.fields_by_name['SeriesInterpolationParameters'].message_type = _MODELINTERPOLATIONPARAMETERS_GMT
_COMPUTEMODEL_GMT.fields_by_name['FaultInterpolationParameters'].message_type = _MODELINTERPOLATIONPARAMETERS_GMT
_RENDERMODEL_GMT.fields_by_name['Extents'].message_type = commontaskmodel__pb2._BOUNDINGBOX
_RENDERMODELONSECTION_GMT.fields_by_name['Format'].enum_type = commontaskmodel__pb2._IMAGE_FORMAT
_RENDERMODELONSECTION_GMT.fields_by_name['Style'].enum_type = _SECTIONRENDERSTYLE
_FAULTCENTRE_GMT.fields_by_name['type'].enum_type = _FAULTCENTRETYPE
_FAULTCENTRE_GMT.fields_by_name['location'].message_type = _ADDPOINT3D_GMT
_CREATEFORMATION_GMT.fields_by_name['LithologyProperty'].message_type = commontaskmodel__pb2._LITHOLOGYPROPERTY_GMT
_CREATEDYKE_GMT.fields_by_name['LithologyProperty'].message_type = commontaskmodel__pb2._LITHOLOGYPROPERTY_GMT
_EXPORT2DDATA_GMT.fields_by_name['format'].enum_type = _FORMATS2D
_EXPORT2DDATA_GMT.fields_by_name['type'].enum_type = commontaskmodel__pb2._SECTIONDATATYPE
_SETSERIES_GMT.fields_by_name['erelation'].enum_type = commontaskmodel__pb2._STRATIGRAPHICRELATIONSHIP
_POINTLIST3D_GMT.fields_by_name['Point'].message_type = _ADDPOINT3D_GMT
_POINTLIST2D_GMT.fields_by_name['Point'].message_type = _ADDPOINT2D_GMT
_CREATESECTION_GMT.fields_by_name['PointList'].message_type = _POINTLIST3D_GMT
_CREATESECTION_GMT.fields_by_name['Extents'].message_type = commontaskmodel__pb2._BOUNDINGBOX
_ADDINTERFACETOSECTION_GMT.fields_by_name['PointList'].message_type = _POINTLIST2D_GMT
_ADDINTERFACETOSECTION_GMT.fields_by_name['OrientationMethod'].enum_type = _ASSOCIATED_ORIENTATIONMETHOD
_ADDINTERFACETOSECTION_GMT.fields_by_name['polarity'].enum_type = commontaskmodel__pb2._POLARITYTYPE
_ADDINTERFACETOSECTION_GMT.fields_by_name['provenance'].enum_type = commontaskmodel__pb2._PROVENANCETYPE
_ADDFOLIATIONTOSECTION_GMT.fields_by_name['foliation'].message_type = _FOLIATION_GMT
_ADD3DFOLIATIONTOFORMATION_GMT.fields_by_name['foliation'].message_type = _FOLIATION_GMT
_ADD3DINTERFACESTOFORMATION_GMT.fields_by_name['point'].message_type = commontaskmodel__pb2._POINT3D
_ADDAPPARENTDIPTOSECTION_GMT.fields_by_name['apparentdip'].message_type = _APPARENTDIP_GMT
_ADDDYKESTRUCTURALDATATOSECTION_GMT.fields_by_name['Point'].message_type = _ADDPOINT2D_GMT
_ADDDYKESTRUCTURALDATATOSECTION_GMT.fields_by_name['DipDistribution'].message_type = commontaskmodel__pb2._ANGLEPROBABILITYDISTRIBUTIONFUNCTION
_ADDDYKESTRUCTURALDATATOSECTION_GMT.fields_by_name['DirectionDistribution'].message_type = commontaskmodel__pb2._ANGLEPROBABILITYDISTRIBUTIONFUNCTION
_ADDDYKESTRUCTURALDATATOSECTION_GMT.fields_by_name['Provenance'].enum_type = commontaskmodel__pb2._PROVENANCETYPE
_ADDDYKESTRUCTURALDATATOSECTION_GMT.fields_by_name['polarity'].enum_type = commontaskmodel__pb2._POLARITYTYPE
_ADDDYKESTRUCTURALDATATOSECTION_GMT.fields_by_name['OrientationMethod'].enum_type = _ASSOCIATED_ORIENTATIONMETHOD
_CREATE3DPOINT_GMT.fields_by_name['point'].message_type = commontaskmodel__pb2._POINT3D
_READANDIMPORT2DDATATOASECTION_GMT.fields_by_name['type'].enum_type = commontaskmodel__pb2._SECTIONDATATYPE
_READANDIMPORT2DDATATOASECTION_GMT.fields_by_name['FieldList'].message_type = commontaskmodel__pb2._REPEATEDSTRING
_READANDIMPORT3DDATA_GMT.fields_by_name['type'].enum_type = commontaskmodel__pb2._GEOLOGYOBSTYPE3D
_READANDIMPORT3DDATA_GMT.fields_by_name['operation'].enum_type = _IMPORTACTION
_CREATEDRILLHOLE_GMT.fields_by_name['Collar'].message_type = _ADDPOINT3D_GMT
_CREATEDRILLHOLE_GMT.fields_by_name['SurveyDirection'].message_type = _SURVEYDIRECTION_GMT
_CREATEDRILLHOLE_GMT.fields_by_name['LithologyInterval'].message_type = _LITHOLOGYINTERVAL_GMT
_LOADDRILLHOLES_GMT.fields_by_name['collarAliases'].message_type = commontaskmodel__pb2._REPEATEDSTRING
_LOADDRILLHOLES_GMT.fields_by_name['surveyAliases'].message_type = commontaskmodel__pb2._REPEATEDSTRING
_LOADDRILLHOLES_GMT.fields_by_name['geologyAliases'].message_type = commontaskmodel__pb2._REPEATEDSTRING
_COMPOSITEDRILLHOLES_GMT.fields_by_name['Build_Style'].enum_type = _COMPOSITESTYLE
_COMPOSITEDRILLHOLES_GMT.fields_by_name['internal_null_replacement'].enum_type = _COMPOSITEREPLACEMENTSTYLE
_COMPOSITEDRILLHOLES_GMT.fields_by_name['external_null_replacement'].enum_type = _COMPOSITEREPLACEMENTSTYLE
_COMPOSITEDRILLHOLES_GMT.fields_by_name['Weight_Style'].enum_type = _COMPOSITEWEIGHTINGSTYLE
_IMPORTSEISMICNAV_GMT.fields_by_name['ImportSeismic'].message_type = _IMPORTSEISMICCOMMON
_IMPORTSEISMICHORIZONS_GMT.fields_by_name['NavigationFiles'].message_type = commontaskmodel__pb2._REPEATEDSTRING
_IMPORTSEISMICHORIZONS_GMT.fields_by_name['HorizonColumnNames'].message_type = commontaskmodel__pb2._REPEATEDSTRING
_IMPORTSEISMICHORIZONS_GMT.fields_by_name['ImportSeismic'].message_type = _IMPORTSEISMICCOMMON
_UPDATEINTERFACE_GMT.fields_by_name['Point'].message_type = _ADDPOINT2D_GMT
_UPDATEINTERFACE_GMT.fields_by_name['provenance'].enum_type = commontaskmodel__pb2._PROVENANCETYPE
_UPDATEINTERFACE_GMT.fields_by_name['orientationMethod'].enum_type = commontaskmodel__pb2._ORIENTATIONMETHODTYPE
_LINKFAULTSWITHSERIES_GMT.fields_by_name['FaultSeriesLinks'].message_type = _FAULTSERIESLINKS_GMT
_LINKFAULTSWITHFAULTS_GMT.fields_by_name['FaultStopsOnFaults'].message_type = _FAULTSTOPSONFAULTS_GMT
_SOURCEMESHGRID_GMT.fields_by_name['SourceType'].enum_type = _GEOMODELLERDATASOURCE
_SOURCEMESHGRID_GMT.fields_by_name['FileType'].enum_type = commontaskmodel__pb2._DFAFILETYPE
_SOURCEMESHGRID_GMT.fields_by_name['Format'].enum_type = commontaskmodel__pb2._DATAFORMAT
_CREATEMESHGRID_GMT.fields_by_name['CreateDestinationType'].enum_type = _GEOMODELLERDATASOURCE
_CREATEMESHGRID_GMT.fields_by_name['OutputMeshType'].enum_type = commontaskmodel__pb2._OUTPUTMESHTYPE
_CREATEMESHGRID_GMT.fields_by_name['FileType'].enum_type = commontaskmodel__pb2._DFAFILETYPE
_CREATEMESHGRID_GMT.fields_by_name['Extents'].message_type = commontaskmodel__pb2._BOUNDINGBOX
_EXPORTMESHGRID_GMT.fields_by_name['MeshGrid_Source'].message_type = _SOURCEMESHGRID_GMT
_EXPORTMESHGRID_GMT.fields_by_name['OutputMeshType'].enum_type = commontaskmodel__pb2._OUTPUTMESHTYPE
_EXPORTMESHGRID_GMT.fields_by_name['OutFileType'].enum_type = commontaskmodel__pb2._DFAFILETYPE
_EXPORTMESHGRID_GMT.fields_by_name['OutDataFormat'].enum_type = commontaskmodel__pb2._DATAFORMAT
_EXPORTMESHGRID_GMT.fields_by_name['Extents'].message_type = commontaskmodel__pb2._BOUNDINGBOX
_VARIOGRAMCURVES_GMT.fields_by_name['variance1'].message_type = commontaskmodel__pb2._REPEATEDDOUBLE
_VARIOGRAMCURVES_GMT.fields_by_name['which1'].enum_type = _KRIGING_WHICHVARIOGRAM
_VARIOGRAMCURVES_GMT.fields_by_name['variance2'].message_type = commontaskmodel__pb2._REPEATEDDOUBLE
_VARIOGRAMCURVES_GMT.fields_by_name['which2'].enum_type = _KRIGING_WHICHVARIOGRAM
_VARIOGRAMCURVES_GMT.fields_by_name['variance3'].message_type = commontaskmodel__pb2._REPEATEDDOUBLE
_VARIOGRAMCURVES_GMT.fields_by_name['which3'].enum_type = _KRIGING_WHICHVARIOGRAM
_COMPUTEVARIOGRAM_GMT.fields_by_name['MeshGrid_Source'].message_type = _SOURCEMESHGRID_GMT
_COMPUTEVARIOGRAM_GMT.fields_by_name['Analysis_Type'].message_type = _VARIOGRAMANALYSISTYPE
_COMPUTEVARIOGRAM_GMT.fields_by_name['Domain'].enum_type = _KRIGINGDOMAIN
_COMPUTEVARIOGRAM_GMT.fields_by_name['Extents'].message_type = commontaskmodel__pb2._BOUNDINGBOX
_COMPUTEVARIOGRAM_GMT.fields_by_name['VariogramModelType'].enum_type = commontaskmodel__pb2._VARIOGRAMMODELTYPE
_VARIOGRAMANALYSISTYPE.fields_by_name['type'].enum_type = _TYPEOFANALYSIS
_INTERPOLATENUMERICALREADINGS_GMT.fields_by_name['MeshGrid_Source'].message_type = _SOURCEMESHGRID_GMT
_INTERPOLATENUMERICALREADINGS_GMT.fields_by_name['method'].enum_type = commontaskmodel__pb2._INTERPOLATIONMETHOD
_INTERPOLATENUMERICALREADINGS_GMT.fields_by_name['OutputStyle'].enum_type = commontaskmodel__pb2._INTERPOLATIONOUTPUTTYPE
_INTERPOLATENUMERICALREADINGS_GMT.fields_by_name['Domain'].enum_type = _KRIGINGDOMAIN
_INTERPOLATENUMERICALREADINGS_GMT.fields_by_name['Analysis_Type'].enum_type = _TYPEOFANALYSIS
_INTERPOLATENUMERICALREADINGS_GMT.fields_by_name['Variogram_Model'].message_type = _VARIOGRAMCURVES_GMT
_INTERPOLATENUMERICALREADINGS_GMT.fields_by_name['VariogramModelType'].enum_type = commontaskmodel__pb2._VARIOGRAMMODELTYPE
_INTERPOLATENUMERICALREADINGS_GMT.fields_by_name['Neighbour'].enum_type = commontaskmodel__pb2._NEIGHBOURSTYLE
_INTERPOLATENUMERICALREADINGS_GMT.fields_by_name['which'].enum_type = _KRIGING_WHICHVARIOGRAM
_INTERPOLATENUMERICALREADINGS_GMT.fields_by_name['Output_Mesh'].message_type = _CREATEMESHGRID_GMT
_BUILDTRIPLELINES_GMT_EXPORTTRIPLELINES.fields_by_name['format'].enum_type = _BUILDTRIPLELINES_GMT_EXPORTTRIPLELINES_TRIPLELINE_EXPORTFORMAT
_BUILDTRIPLELINES_GMT_EXPORTTRIPLELINES.containing_type = _BUILDTRIPLELINES_GMT
_BUILDTRIPLELINES_GMT_EXPORTTRIPLELINES_TRIPLELINE_EXPORTFORMAT.containing_type = _BUILDTRIPLELINES_GMT_EXPORTTRIPLELINES
_BUILDTRIPLELINES_GMT_THINBODYBIAS.containing_type = _BUILDTRIPLELINES_GMT
_BUILDTRIPLELINES_GMT.fields_by_name['thin_body_bias'].message_type = _BUILDTRIPLELINES_GMT_THINBODYBIAS
_BUILDTRIPLELINES_GMT.fields_by_name['export_triple_lines'].message_type = _BUILDTRIPLELINES_GMT_EXPORTTRIPLELINES
_BUILDMESHCGAL_GMT_REFINEMESH_OPTENERGYPARMS.containing_type = _BUILDMESHCGAL_GMT_REFINEMESH
_BUILDMESHCGAL_GMT_REFINEMESH_OPTVERTEXPARMS.containing_type = _BUILDMESHCGAL_GMT_REFINEMESH
_BUILDMESHCGAL_GMT_REFINEMESH.fields_by_name['lloyd'].message_type = _BUILDMESHCGAL_GMT_REFINEMESH_OPTENERGYPARMS
_BUILDMESHCGAL_GMT_REFINEMESH.fields_by_name['odt'].message_type = _BUILDMESHCGAL_GMT_REFINEMESH_OPTENERGYPARMS
_BUILDMESHCGAL_GMT_REFINEMESH.fields_by_name['perturb'].message_type = _BUILDMESHCGAL_GMT_REFINEMESH_OPTVERTEXPARMS
_BUILDMESHCGAL_GMT_REFINEMESH.fields_by_name['exude'].message_type = _BUILDMESHCGAL_GMT_REFINEMESH_OPTVERTEXPARMS
_BUILDMESHCGAL_GMT_REFINEMESH.fields_by_name['manifold_status'].enum_type = _OPTMANIFOLDREQUEST
_BUILDMESHCGAL_GMT_REFINEMESH.containing_type = _BUILDMESHCGAL_GMT
_BUILDMESHCGAL_GMT_GEOMODELLEROUTPUT.containing_type = _BUILDMESHCGAL_GMT
_BUILDMESHCGAL_GMT_MESHCRITERIA_FORMATIONDISCRETIZATION.fields_by_name['precision_values'].message_type = commontaskmodel__pb2._REPEATEDDOUBLE
_BUILDMESHCGAL_GMT_MESHCRITERIA_FORMATIONDISCRETIZATION.fields_by_name['max_facet_radii_values'].message_type = commontaskmodel__pb2._REPEATEDDOUBLE
_BUILDMESHCGAL_GMT_MESHCRITERIA_FORMATIONDISCRETIZATION.fields_by_name['max_tet_radii_values'].message_type = commontaskmodel__pb2._REPEATEDDOUBLE
_BUILDMESHCGAL_GMT_MESHCRITERIA_FORMATIONDISCRETIZATION.fields_by_name['max_edge_length_values'].message_type = commontaskmodel__pb2._REPEATEDDOUBLE
_BUILDMESHCGAL_GMT_MESHCRITERIA_FORMATIONDISCRETIZATION.containing_type = _BUILDMESHCGAL_GMT_MESHCRITERIA
_BUILDMESHCGAL_GMT_MESHCRITERIA.fields_by_name['facet_topology'].enum_type = _MESH_FACET_TOPOLOGY
_BUILDMESHCGAL_GMT_MESHCRITERIA.fields_by_name['default_discretization'].message_type = _BUILDMESHCGAL_GMT_MESHCRITERIA_FORMATIONDISCRETIZATION
_BUILDMESHCGAL_GMT_MESHCRITERIA.fields_by_name['formation_discretization'].message_type = _BUILDMESHCGAL_GMT_MESHCRITERIA_FORMATIONDISCRETIZATION
_BUILDMESHCGAL_GMT_MESHCRITERIA.fields_by_name['min_protect_ball_radius_values'].message_type = commontaskmodel__pb2._REPEATEDDOUBLE
_BUILDMESHCGAL_GMT_MESHCRITERIA.containing_type = _BUILDMESHCGAL_GMT
_BUILDMESHCGAL_GMT_SEEDPOINTS_MESHSEEDPOINTS.fields_by_name['clean_mesh'].message_type = vtktasksup__pb2._CLEANPOLYDATA
_BUILDMESHCGAL_GMT_SEEDPOINTS_MESHSEEDPOINTS.fields_by_name['decimate_mesh'].message_type = vtktasksup__pb2._QUADRICDECIMATION
_BUILDMESHCGAL_GMT_SEEDPOINTS_MESHSEEDPOINTS.containing_type = _BUILDMESHCGAL_GMT_SEEDPOINTS
_BUILDMESHCGAL_GMT_SEEDPOINTS_RANDOMSEEDPOINTS.containing_type = _BUILDMESHCGAL_GMT_SEEDPOINTS
_BUILDMESHCGAL_GMT_SEEDPOINTS.fields_by_name['random_points'].message_type = _BUILDMESHCGAL_GMT_SEEDPOINTS_RANDOMSEEDPOINTS
_BUILDMESHCGAL_GMT_SEEDPOINTS.fields_by_name['mesh_points'].message_type = _BUILDMESHCGAL_GMT_SEEDPOINTS_MESHSEEDPOINTS
_BUILDMESHCGAL_GMT_SEEDPOINTS.containing_type = _BUILDMESHCGAL_GMT
_BUILDMESHCGAL_GMT.fields_by_name['mesh_criteria'].message_type = _BUILDMESHCGAL_GMT_MESHCRITERIA
_BUILDMESHCGAL_GMT.fields_by_name['refine_mesh'].message_type = _BUILDMESHCGAL_GMT_REFINEMESH
_BUILDMESHCGAL_GMT.fields_by_name['build_triple_lines'].message_type = _BUILDTRIPLELINES_GMT
_BUILDMESHCGAL_GMT.fields_by_name['import_triple_lines'].message_type = _IMPORTTRIPLELINES_GMT
_BUILDMESHCGAL_GMT.fields_by_name['export_mesh'].message_type = _EXPORT3DSHAPES_GMT
_BUILDMESHCGAL_GMT.fields_by_name['geomodeller_output'].message_type = _BUILDMESHCGAL_GMT_GEOMODELLEROUTPUT
_BUILDMESHCGAL_GMT.fields_by_name['initial_points'].message_type = _BUILDMESHCGAL_GMT_SEEDPOINTS
_EXPORTMODEL_GMT_EXPORTTYPE2D.containing_type = _EXPORTMODEL_GMT
_EXPORTMODEL_GMT_EXPORTTYPE3D.containing_type = _EXPORTMODEL_GMT
_EXPORTMODEL_GMT.fields_by_name['export3D'].message_type = _EXPORTMODEL_GMT_EXPORTTYPE3D
_EXPORTMODEL_GMT.fields_by_name['export2D'].message_type = _EXPORTMODEL_GMT_EXPORTTYPE2D
_EXPORTMODEL_GMT.fields_by_name['GridSize'].message_type = commontaskmodel__pb2._BOUNDINGBOX
_EXPORT3DSHAPES_GMT.fields_by_name['file_type'].enum_type = _EXPORT3DSHAPES_GMT_FILETYPE3D
_EXPORT3DSHAPES_GMT.fields_by_name['mesh_type'].enum_type = _EXPORT3DSHAPES_GMT_MESHTYPE
_EXPORT3DSHAPES_GMT.fields_by_name['property'].enum_type = commontaskmodel__pb2._PROPERTYTYPE
_EXPORT3DSHAPES_GMT_FILETYPE3D.containing_type = _EXPORT3DSHAPES_GMT
_EXPORT3DSHAPES_GMT_MESHTYPE.containing_type = _EXPORT3DSHAPES_GMT
_EXPORTPROJECTSITE_GMT.fields_by_name['dataType'].enum_type = _GEOMODELLERDATATYPE
_EXPORTPROJECTSITE_GMT.fields_by_name['myTypeSite'].enum_type = _SITETYPE3D
_EXPORTPROJECTSITE_GMT.fields_by_name['MeshGrid_Source'].message_type = _SOURCEMESHGRID_GMT
_EXPORTPROJECTSITE_GMT.fields_by_name['Extents'].message_type = commontaskmodel__pb2._BOUNDINGBOX
_AXIS_CONTROL_GMT_DIRECTION.containing_type = _AXIS_CONTROL_GMT
_PRESENTATION2D_GRAPHICS_GMT.fields_by_name['Title_Position'].message_type = _ADDPOINT2D_GMT
_PRESENTATION2D_GRAPHICS_GMT.fields_by_name['Axis_Control'].message_type = _AXIS_CONTROL_GMT
_GENERATEMESHREPORT_GMT.fields_by_name['TypeMeshGrid'].enum_type = commontaskmodel__pb2._MESHGRID_TYPEMESHGRID
_GENERATEMESHREPORT_GMT.fields_by_name['facet_angle_threshold'].message_type = commontaskmodel__pb2._PAIRDOUBLE
_GENERATEMESHREPORT_GMT.fields_by_name['facet_size_threshold'].message_type = commontaskmodel__pb2._PAIRDOUBLE
_MESHUNITFORGEOPHYS_GMT_RANKRADIUSCONTROL.containing_type = _MESHUNITFORGEOPHYS_GMT
_MESHUNITFORGEOPHYS_GMT.fields_by_name['rank_radius'].message_type = _MESHUNITFORGEOPHYS_GMT_RANKRADIUSCONTROL
_MESHUNITFORGEOPHYS_GMT.fields_by_name['thinning_function'].enum_type = _MESHUNITFORGEOPHYS_GMT_THINNINGFUNCTION
_MESHUNITFORGEOPHYS_GMT.fields_by_name['sample_method'].enum_type = _MESHUNITFORGEOPHYS_GMT_SAMPLEMETHOD
_MESHUNITFORGEOPHYS_GMT.fields_by_name['cgalparms'].message_type = _BUILDMESHCGAL_GMT
_MESHUNITFORGEOPHYS_GMT_THINNINGFUNCTION.containing_type = _MESHUNITFORGEOPHYS_GMT
_MESHUNITFORGEOPHYS_GMT_SAMPLEMETHOD.containing_type = _MESHUNITFORGEOPHYS_GMT
_GETCOMPUTEDLITHOATXYZ_GMT.fields_by_name['Point'].message_type = _ADDPOINT3D_GMT
_GETCOMPUTEDGRADIENTATXYZ_GMT.fields_by_name['Point'].message_type = _ADDPOINT3D_GMT
_COMPUTEEXTERNALDRIFTFIELD_GMT_FORMATION_DISTRIBUTION.fields_by_name['Type'].enum_type = _DISTRIBUTION_TYPE
_COMPUTEEXTERNALDRIFTFIELD_GMT_FORMATION_DISTRIBUTION.containing_type = _COMPUTEEXTERNALDRIFTFIELD_GMT
_COMPUTEEXTERNALDRIFTFIELD_GMT.fields_by_name['MeshGrid_Source'].message_type = _SOURCEMESHGRID_GMT
_COMPUTEEXTERNALDRIFTFIELD_GMT.fields_by_name['required_drift_function'].message_type = _COMPUTEEXTERNALDRIFTFIELD_GMT_FORMATION_DISTRIBUTION
_COMPUTEEXTERNALDRIFTFIELD_GMT.fields_by_name['DepthUnit'].enum_type = commontaskmodel__pb2._DISTANCE_UNITS
_COMPUTEEXTERNALDRIFTFIELD_GMT.fields_by_name['Property_Type'].enum_type = commontaskmodel__pb2._PROPERTYTYPE
_COMPUTEEXTERNALDRIFTFIELD_GMT.fields_by_name['TypeMeshGrid'].enum_type = commontaskmodel__pb2._MESHGRID_TYPEMESHGRID
_CREATEAXIALSERIES_GMT.fields_by_name['Mechanism'].enum_type = _FOLDMECHANISM
_CREATEAXIALSERIES_GMT.fields_by_name['style'].enum_type = _DEFORMATIONSTYLE
_CREATEAXIALSURFACE_GMT.fields_by_name['PointList'].message_type = _POINTLIST2D_GMT
_CREATEAXIALSURFACE_GMT.fields_by_name['PointList3D'].message_type = _POINTLIST3D_GMT
_CREATEAXIALSURFACE_GMT.fields_by_name['provenance'].enum_type = commontaskmodel__pb2._PROVENANCETYPE
_CREATEAXIALSURFACE_GMT.fields_by_name['type'].enum_type = _FOLDTYPE
_CREATEAXIALSURFACE_GMT.fields_by_name['tightness'].enum_type = _FOLDTIGHTNESS
_ADDAXIALTRACELINE_GMT.fields_by_name['PointList'].message_type = _POINTLIST2D_GMT
_ADDAXIALTRACELINE_GMT.fields_by_name['PointList3D'].message_type = _POINTLIST3D_GMT
_ADDAXIALTRACELINE_GMT.fields_by_name['provenance'].enum_type = commontaskmodel__pb2._PROVENANCETYPE
_ADDAXIALSURFACEORIENTATION_GMT.fields_by_name['Point'].message_type = _ADDPOINT2D_GMT
_ADDAXIALSURFACEORIENTATION_GMT.fields_by_name['Point3D'].message_type = _ADDPOINT3D_GMT
_ADDAXIALSURFACEORIENTATION_GMT.fields_by_name['provenance'].enum_type = commontaskmodel__pb2._PROVENANCETYPE
_ADDAXIALSURFACEORIENTATION_GMT.fields_by_name['Polarity'].enum_type = commontaskmodel__pb2._POLARITYTYPE
_ADDAXIALSURFACEORIENTATION_GMT.fields_by_name['foliation'].message_type = _FOLIATION_GMT
_ADDHINGELINE_GMT.fields_by_name['PointList'].message_type = _POINTLIST2D_GMT
_ADDHINGELINE_GMT.fields_by_name['PointList3D'].message_type = _POINTLIST3D_GMT
_ADDHINGELINE_GMT.fields_by_name['provenance'].enum_type = commontaskmodel__pb2._PROVENANCETYPE
_ADDHINGELINE_GMT.fields_by_name['Polarity'].enum_type = _HINGEPOLARITY
_CREATESECTIONFROMAXIALSURFACE_GMT.fields_by_name['Extents'].message_type = commontaskmodel__pb2._BOUNDINGBOX
_CREATESECTIONFROMAXIALSURFACE_GMT.fields_by_name['InterpotationParameters'].message_type = _MODELINTERPOLATIONPARAMETERS_GMT
_GEOMODELLERTASK.fields_by_name['CreateProject'].message_type = _CREATEPROJECT_GMT
_GEOMODELLERTASK.fields_by_name['OpenProjectGUI'].message_type = _OPENPROJECTGUI_GMT
_GEOMODELLERTASK.fields_by_name['OpenProjectNoGUI'].message_type = _OPENPROJECTNOGUI_GMT
_GEOMODELLERTASK.fields_by_name['SaveProject'].message_type = _SAVEPROJECT_GMT
_GEOMODELLERTASK.fields_by_name['SaveProjectAs'].message_type = _SAVEPROJECTAS_GMT
_GEOMODELLERTASK.fields_by_name['CustomDTM'].message_type = _CUSTOMDTM_GMT
_GEOMODELLERTASK.fields_by_name['HorizontalDTM'].message_type = _HORIZONTALDTM_GMT
_GEOMODELLERTASK.fields_by_name['CreateFormation'].message_type = _CREATEFORMATION_GMT
_GEOMODELLERTASK.fields_by_name['CreateFault'].message_type = _CREATEFAULT_GMT
_GEOMODELLERTASK.fields_by_name['SetSeries'].message_type = _SETSERIES_GMT
_GEOMODELLERTASK.fields_by_name['AddFormationToSeries'].message_type = _ADDFORMATIONTOSERIES_GMT
_GEOMODELLERTASK.fields_by_name['AddDykeToSeries'].message_type = _ADDDYKETOSERIES_GMT
_GEOMODELLERTASK.fields_by_name['AddPoint3d'].message_type = _ADDPOINT3D_GMT
_GEOMODELLERTASK.fields_by_name['PointList3d'].message_type = _POINTLIST3D_GMT
_GEOMODELLERTASK.fields_by_name['CreateSection'].message_type = _CREATESECTION_GMT
_GEOMODELLERTASK.fields_by_name['AddPoint2d'].message_type = _ADDPOINT2D_GMT
_GEOMODELLERTASK.fields_by_name['PointList2d'].message_type = _POINTLIST2D_GMT
_GEOMODELLERTASK.fields_by_name['AddInterfaceToSection'].message_type = _ADDINTERFACETOSECTION_GMT
_GEOMODELLERTASK.fields_by_name['AddFoliationToSection'].message_type = _ADDFOLIATIONTOSECTION_GMT
_GEOMODELLERTASK.fields_by_name['Add3DFoliationToFormation'].message_type = _ADD3DFOLIATIONTOFORMATION_GMT
_GEOMODELLERTASK.fields_by_name['Import2dDataToSection'].message_type = _IMPORT2DDATATOSECTION_GMT
_GEOMODELLERTASK.fields_by_name['DeleteInterfacesFromSection'].message_type = _DELETEINTERFACESFROMSECTION_GMT
_GEOMODELLERTASK.fields_by_name['ReadAndImport2dDataToASection'].message_type = _READANDIMPORT2DDATATOASECTION_GMT
_GEOMODELLERTASK.fields_by_name['RenderSection'].message_type = _RENDERSECTION_GMT
_GEOMODELLERTASK.fields_by_name['UpdateInterface'].message_type = _UPDATEINTERFACE_GMT
_GEOMODELLERTASK.fields_by_name['LinkFaultsWithSeries'].message_type = _LINKFAULTSWITHSERIES_GMT
_GEOMODELLERTASK.fields_by_name['LinkFaultsWithFaults'].message_type = _LINKFAULTSWITHFAULTS_GMT
_GEOMODELLERTASK.fields_by_name['CreateDyke'].message_type = _CREATEDYKE_GMT
_GEOMODELLERTASK.fields_by_name['ExportSection'].message_type = _EXPORTSECTION_GMT
_GEOMODELLERTASK.fields_by_name['CentralVerticalPotentialAndRank'].message_type = _CENTRALVERTICALPOTENTIALANDRANK_GMT
_GEOMODELLERTASK.fields_by_name['GetModelSummary'].message_type = _GETMODELSUMMARY_GMT
_GEOMODELLERTASK.fields_by_name['Set3dFaultLimits'].message_type = _SET3DFAULTLIMITS_GMT
_GEOMODELLERTASK.fields_by_name['AddApparentDipToSection'].message_type = _ADDAPPARENTDIPTOSECTION_GMT
_GEOMODELLERTASK.fields_by_name['fault_centre'].message_type = _FAULTCENTRE_GMT
_GEOMODELLERTASK.fields_by_name['Create3DPoint'].message_type = _CREATE3DPOINT_GMT
_GEOMODELLERTASK.fields_by_name['Add3DInterfacesToFormation'].message_type = _ADD3DINTERFACESTOFORMATION_GMT
_GEOMODELLERTASK.fields_by_name['GetComputedLithoAtXYZ'].message_type = _GETCOMPUTEDLITHOATXYZ_GMT
_GEOMODELLERTASK.fields_by_name['GetComputedGradientAtXYZ'].message_type = _GETCOMPUTEDGRADIENTATXYZ_GMT
_GEOMODELLERTASK.fields_by_name['ReadAndImport3dData'].message_type = _READANDIMPORT3DDATA_GMT
_GEOMODELLERTASK.fields_by_name['AddDykeStructuralDataToSection'].message_type = _ADDDYKESTRUCTURALDATATOSECTION_GMT
_GEOMODELLERTASK.fields_by_name['CreateAxialSeries'].message_type = _CREATEAXIALSERIES_GMT
_GEOMODELLERTASK.fields_by_name['CreateAxialSurface'].message_type = _CREATEAXIALSURFACE_GMT
_GEOMODELLERTASK.fields_by_name['AddAxialTraceLine'].message_type = _ADDAXIALTRACELINE_GMT
_GEOMODELLERTASK.fields_by_name['AddHingeLine'].message_type = _ADDHINGELINE_GMT
_GEOMODELLERTASK.fields_by_name['AddAxialSurfaceOrientation'].message_type = _ADDAXIALSURFACEORIENTATION_GMT
_GEOMODELLERTASK.fields_by_name['CreateSectionFromAxialSurface'].message_type = _CREATESECTIONFROMAXIALSURFACE_GMT
_GEOMODELLERTASK.fields_by_name['CreateDrillhole'].message_type = _CREATEDRILLHOLE_GMT
_GEOMODELLERTASK.fields_by_name['LoadDrillholes'].message_type = _LOADDRILLHOLES_GMT
_GEOMODELLERTASK.fields_by_name['CompositeDrillholes'].message_type = _COMPOSITEDRILLHOLES_GMT
_GEOMODELLERTASK.fields_by_name['ProbabilityDistributionFunction'].message_type = commontaskmodel__pb2._PROBABILITYDISTRIBUTIONFUNCTION_GMT
_GEOMODELLERTASK.fields_by_name['LithologyProperty'].message_type = commontaskmodel__pb2._LITHOLOGYPROPERTY_GMT
_GEOMODELLERTASK.fields_by_name['SetModelBounds'].message_type = _SETMODELBOUNDS_GMT
_GEOMODELLERTASK.fields_by_name['GetModelBounds'].message_type = _GETMODELBOUNDS_GMT
_GEOMODELLERTASK.fields_by_name['WriteBatchFile'].message_type = _WRITEBATCHFILE_GMT
_GEOMODELLERTASK.fields_by_name['ComputeModel'].message_type = _COMPUTEMODEL_GMT
_GEOMODELLERTASK.fields_by_name['RenderModel'].message_type = _RENDERMODEL_GMT
_GEOMODELLERTASK.fields_by_name['RenderModelOnSection'].message_type = _RENDERMODELONSECTION_GMT
_GEOMODELLERTASK.fields_by_name['SaveLithologyVoxet'].message_type = _SAVELITHOLOGYVOXET_GMT
_GEOMODELLERTASK.fields_by_name['SavePotentialGradientVoxet'].message_type = _SAVEPOTENTIALGRADIENTVOXET_GMT
_GEOMODELLERTASK.fields_by_name['InterpolateNumericalReadings'].message_type = _INTERPOLATENUMERICALREADINGS_GMT
_GEOMODELLERTASK.fields_by_name['ImportSeismicNav'].message_type = _IMPORTSEISMICNAV_GMT
_GEOMODELLERTASK.fields_by_name['ImportSeismicHorizons'].message_type = _IMPORTSEISMICHORIZONS_GMT
_GEOMODELLERTASK.fields_by_name['ImportMicroSeismicEvents'].message_type = _IMPORTMICROSEISMICEVENTS_GMT
_GEOMODELLERTASK.fields_by_name['LoadMeshGrid'].message_type = _SOURCEMESHGRID_GMT
_GEOMODELLERTASK.fields_by_name['ExportMeshGrid'].message_type = _EXPORTMESHGRID_GMT
_GEOMODELLERTASK.fields_by_name['CreateMeshGrid'].message_type = _CREATEMESHGRID_GMT
_GEOMODELLERTASK.fields_by_name['GenerateMeshReport'].message_type = _GENERATEMESHREPORT_GMT
_GEOMODELLERTASK.fields_by_name['BuildMeshCGAL'].message_type = _BUILDMESHCGAL_GMT
_GEOMODELLERTASK.fields_by_name['Export3DShapes'].message_type = _EXPORT3DSHAPES_GMT
_GEOMODELLERTASK.fields_by_name['ExportModel'].message_type = _EXPORTMODEL_GMT
_GEOMODELLERTASK.fields_by_name['ExportProjectSite'].message_type = _EXPORTPROJECTSITE_GMT
_GEOMODELLERTASK.fields_by_name['Presentation2D_Graphics'].message_type = _PRESENTATION2D_GRAPHICS_GMT
_GEOMODELLERTASK.fields_by_name['BuildTripleLines'].message_type = _BUILDTRIPLELINES_GMT
_GEOMODELLERTASK.fields_by_name['PrismFeFLOWTriangulation'].message_type = _PRISMFEFLOWTRIANGULATION_GMT
_GEOMODELLERTASK.fields_by_name['MeshUnitForGeophys'].message_type = _MESHUNITFORGEOPHYS_GMT
_GEOMODELLERTASK.fields_by_name['ComputeExternalDriftField'].message_type = _COMPUTEEXTERNALDRIFTFIELD_GMT
_GEOMODELLERTASK.fields_by_name['ComputeVariogram'].message_type = _COMPUTEVARIOGRAM_GMT
_GEOMODELLERTASK.fields_by_name['ImportTripleLines'].message_type = _IMPORTTRIPLELINES_GMT
_GEOMODELLERTASK.fields_by_name['CloseProjectNoGUI'].message_type = _CLOSEPROJECTNOGUI_GMT
_GEOMODELLERTASK.fields_by_name['DrillholeQueryMeshGrid'].message_type = _DRILLHOLEQUERYMESHGRID_GMT
_GEOMODELLERTASK.fields_by_name['Export2DData'].message_type = _EXPORT2DDATA_GMT
_GEOMODELLERTASK.fields_by_name['CreateSegYThumbnail'].message_type = _CREATESEGYTHUMBNAIL_GMT
DESCRIPTOR.message_types_by_name['Foliation_GMT'] = _FOLIATION_GMT
DESCRIPTOR.message_types_by_name['ApparentDip_GMT'] = _APPARENTDIP_GMT
DESCRIPTOR.message_types_by_name['SetModelBounds_GMT'] = _SETMODELBOUNDS_GMT
DESCRIPTOR.message_types_by_name['GetModelBounds_GMT'] = _GETMODELBOUNDS_GMT
DESCRIPTOR.message_types_by_name['OpenProjectGUI_GMT'] = _OPENPROJECTGUI_GMT
DESCRIPTOR.message_types_by_name['OpenProjectNoGUI_GMT'] = _OPENPROJECTNOGUI_GMT
DESCRIPTOR.message_types_by_name['CloseProjectNoGUI_GMT'] = _CLOSEPROJECTNOGUI_GMT
DESCRIPTOR.message_types_by_name['SaveProject_GMT'] = _SAVEPROJECT_GMT
DESCRIPTOR.message_types_by_name['SaveProjectAs_GMT'] = _SAVEPROJECTAS_GMT
DESCRIPTOR.message_types_by_name['CustomDTM_GMT'] = _CUSTOMDTM_GMT
DESCRIPTOR.message_types_by_name['HorizontalDTM_GMT'] = _HORIZONTALDTM_GMT
DESCRIPTOR.message_types_by_name['CreateProject_GMT'] = _CREATEPROJECT_GMT
DESCRIPTOR.message_types_by_name['ModelInterpolationParameters_GMT'] = _MODELINTERPOLATIONPARAMETERS_GMT
DESCRIPTOR.message_types_by_name['Anisotropic_Effect_GMT'] = _ANISOTROPIC_EFFECT_GMT
DESCRIPTOR.message_types_by_name['ExoticConstraint_GMT'] = _EXOTICCONSTRAINT_GMT
DESCRIPTOR.message_types_by_name['ComputeModel_GMT'] = _COMPUTEMODEL_GMT
DESCRIPTOR.message_types_by_name['RenderModel_GMT'] = _RENDERMODEL_GMT
DESCRIPTOR.message_types_by_name['RenderModelOnSection_GMT'] = _RENDERMODELONSECTION_GMT
DESCRIPTOR.message_types_by_name['CreateFault_GMT'] = _CREATEFAULT_GMT
DESCRIPTOR.message_types_by_name['Set3dFaultLimits_GMT'] = _SET3DFAULTLIMITS_GMT
DESCRIPTOR.message_types_by_name['FaultCentre_GMT'] = _FAULTCENTRE_GMT
DESCRIPTOR.message_types_by_name['CreateFormation_GMT'] = _CREATEFORMATION_GMT
DESCRIPTOR.message_types_by_name['CreateDyke_GMT'] = _CREATEDYKE_GMT
DESCRIPTOR.message_types_by_name['ExportSection_GMT'] = _EXPORTSECTION_GMT
DESCRIPTOR.message_types_by_name['Export2DData_GMT'] = _EXPORT2DDATA_GMT
DESCRIPTOR.message_types_by_name['CentralVerticalPotentialAndRank_GMT'] = _CENTRALVERTICALPOTENTIALANDRANK_GMT
DESCRIPTOR.message_types_by_name['GetModelSummary_GMT'] = _GETMODELSUMMARY_GMT
DESCRIPTOR.message_types_by_name['SetSeries_GMT'] = _SETSERIES_GMT
DESCRIPTOR.message_types_by_name['AddFormationToSeries_GMT'] = _ADDFORMATIONTOSERIES_GMT
DESCRIPTOR.message_types_by_name['AddDykeToSeries_GMT'] = _ADDDYKETOSERIES_GMT
DESCRIPTOR.message_types_by_name['AddPoint3d_GMT'] = _ADDPOINT3D_GMT
DESCRIPTOR.message_types_by_name['PointList3d_GMT'] = _POINTLIST3D_GMT
DESCRIPTOR.message_types_by_name['AddPoint2d_GMT'] = _ADDPOINT2D_GMT
DESCRIPTOR.message_types_by_name['PointList2d_GMT'] = _POINTLIST2D_GMT
DESCRIPTOR.message_types_by_name['CreateSection_GMT'] = _CREATESECTION_GMT
DESCRIPTOR.message_types_by_name['CreateSegYThumbnail_GMT'] = _CREATESEGYTHUMBNAIL_GMT
DESCRIPTOR.message_types_by_name['AddInterfaceToSection_GMT'] = _ADDINTERFACETOSECTION_GMT
DESCRIPTOR.message_types_by_name['AddFoliationToSection_GMT'] = _ADDFOLIATIONTOSECTION_GMT
DESCRIPTOR.message_types_by_name['Add3DFoliationToFormation_GMT'] = _ADD3DFOLIATIONTOFORMATION_GMT
DESCRIPTOR.message_types_by_name['Add3DInterfacesToFormation_GMT'] = _ADD3DINTERFACESTOFORMATION_GMT
DESCRIPTOR.message_types_by_name['AddApparentDipToSection_GMT'] = _ADDAPPARENTDIPTOSECTION_GMT
DESCRIPTOR.message_types_by_name['AddDykeStructuralDataToSection_GMT'] = _ADDDYKESTRUCTURALDATATOSECTION_GMT
DESCRIPTOR.message_types_by_name['Create3DPoint_GMT'] = _CREATE3DPOINT_GMT
DESCRIPTOR.message_types_by_name['Import2dDataToSection_GMT'] = _IMPORT2DDATATOSECTION_GMT
DESCRIPTOR.message_types_by_name['ReadAndImport2dDataToASection_GMT'] = _READANDIMPORT2DDATATOASECTION_GMT
DESCRIPTOR.message_types_by_name['ReadAndImport3dData_GMT'] = _READANDIMPORT3DDATA_GMT
DESCRIPTOR.message_types_by_name['ImportMicroSeismicEvents_GMT'] = _IMPORTMICROSEISMICEVENTS_GMT
DESCRIPTOR.message_types_by_name['SurveyDirection_GMT'] = _SURVEYDIRECTION_GMT
DESCRIPTOR.message_types_by_name['LithologyInterval_GMT'] = _LITHOLOGYINTERVAL_GMT
DESCRIPTOR.message_types_by_name['CreateDrillhole_GMT'] = _CREATEDRILLHOLE_GMT
DESCRIPTOR.message_types_by_name['LoadDrillholes_GMT'] = _LOADDRILLHOLES_GMT
DESCRIPTOR.message_types_by_name['CompositeDrillholes_GMT'] = _COMPOSITEDRILLHOLES_GMT
DESCRIPTOR.message_types_by_name['DrillholeQueryMeshGrid_GMT'] = _DRILLHOLEQUERYMESHGRID_GMT
DESCRIPTOR.message_types_by_name['ImportSeismicCommon'] = _IMPORTSEISMICCOMMON
DESCRIPTOR.message_types_by_name['ImportSeismicNav_GMT'] = _IMPORTSEISMICNAV_GMT
DESCRIPTOR.message_types_by_name['ImportSeismicHorizons_GMT'] = _IMPORTSEISMICHORIZONS_GMT
DESCRIPTOR.message_types_by_name['RenderSection_GMT'] = _RENDERSECTION_GMT
DESCRIPTOR.message_types_by_name['SaveLithologyVoxet_GMT'] = _SAVELITHOLOGYVOXET_GMT
DESCRIPTOR.message_types_by_name['SavePotentialGradientVoxet_GMT'] = _SAVEPOTENTIALGRADIENTVOXET_GMT
DESCRIPTOR.message_types_by_name['UpdateInterface_GMT'] = _UPDATEINTERFACE_GMT
DESCRIPTOR.message_types_by_name['DeleteInterfacesFromSection_GMT'] = _DELETEINTERFACESFROMSECTION_GMT
DESCRIPTOR.message_types_by_name['FaultSeriesLinks_GMT'] = _FAULTSERIESLINKS_GMT
DESCRIPTOR.message_types_by_name['LinkFaultsWithSeries_GMT'] = _LINKFAULTSWITHSERIES_GMT
DESCRIPTOR.message_types_by_name['FaultStopsOnFaults_GMT'] = _FAULTSTOPSONFAULTS_GMT
DESCRIPTOR.message_types_by_name['LinkFaultsWithFaults_GMT'] = _LINKFAULTSWITHFAULTS_GMT
DESCRIPTOR.message_types_by_name['WriteBatchFile_GMT'] = _WRITEBATCHFILE_GMT
DESCRIPTOR.message_types_by_name['SourceMeshGrid_GMT'] = _SOURCEMESHGRID_GMT
DESCRIPTOR.message_types_by_name['CreateMeshGrid_GMT'] = _CREATEMESHGRID_GMT
DESCRIPTOR.message_types_by_name['ExportMeshGrid_GMT'] = _EXPORTMESHGRID_GMT
DESCRIPTOR.message_types_by_name['VariogramCurves_GMT'] = _VARIOGRAMCURVES_GMT
DESCRIPTOR.message_types_by_name['ComputeVariogram_GMT'] = _COMPUTEVARIOGRAM_GMT
DESCRIPTOR.message_types_by_name['VariogramAnalysisType'] = _VARIOGRAMANALYSISTYPE
DESCRIPTOR.message_types_by_name['InterpolateNumericalReadings_GMT'] = _INTERPOLATENUMERICALREADINGS_GMT
DESCRIPTOR.message_types_by_name['BuildTripleLines_GMT'] = _BUILDTRIPLELINES_GMT
DESCRIPTOR.message_types_by_name['ImportTripleLines_GMT'] = _IMPORTTRIPLELINES_GMT
DESCRIPTOR.message_types_by_name['BuildMeshCGAL_GMT'] = _BUILDMESHCGAL_GMT
DESCRIPTOR.message_types_by_name['ExportModel_GMT'] = _EXPORTMODEL_GMT
DESCRIPTOR.message_types_by_name['Export3DShapes_GMT'] = _EXPORT3DSHAPES_GMT
DESCRIPTOR.message_types_by_name['ExportProjectSite_GMT'] = _EXPORTPROJECTSITE_GMT
DESCRIPTOR.message_types_by_name['Axis_Control_GMT'] = _AXIS_CONTROL_GMT
DESCRIPTOR.message_types_by_name['Presentation2D_Graphics_GMT'] = _PRESENTATION2D_GRAPHICS_GMT
DESCRIPTOR.message_types_by_name['PrismFeFLOWTriangulation_GMT'] = _PRISMFEFLOWTRIANGULATION_GMT
DESCRIPTOR.message_types_by_name['GenerateMeshReport_GMT'] = _GENERATEMESHREPORT_GMT
DESCRIPTOR.message_types_by_name['MeshUnitForGeophys_GMT'] = _MESHUNITFORGEOPHYS_GMT
DESCRIPTOR.message_types_by_name['GetComputedLithoAtXYZ_GMT'] = _GETCOMPUTEDLITHOATXYZ_GMT
DESCRIPTOR.message_types_by_name['GetComputedGradientAtXYZ_GMT'] = _GETCOMPUTEDGRADIENTATXYZ_GMT
DESCRIPTOR.message_types_by_name['ComputeExternalDriftField_GMT'] = _COMPUTEEXTERNALDRIFTFIELD_GMT
DESCRIPTOR.message_types_by_name['CreateAxialSeries_GMT'] = _CREATEAXIALSERIES_GMT
DESCRIPTOR.message_types_by_name['CreateAxialSurface_GMT'] = _CREATEAXIALSURFACE_GMT
DESCRIPTOR.message_types_by_name['AddAxialTraceLine_GMT'] = _ADDAXIALTRACELINE_GMT
DESCRIPTOR.message_types_by_name['AddAxialSurfaceOrientation_GMT'] = _ADDAXIALSURFACEORIENTATION_GMT
DESCRIPTOR.message_types_by_name['AddHingeLine_GMT'] = _ADDHINGELINE_GMT
DESCRIPTOR.message_types_by_name['CreateSectionFromAxialSurface_GMT'] = _CREATESECTIONFROMAXIALSURFACE_GMT
DESCRIPTOR.message_types_by_name['GeomodellerTask'] = _GEOMODELLERTASK
DESCRIPTOR.enum_types_by_name['GeomodellerDataSource'] = _GEOMODELLERDATASOURCE
DESCRIPTOR.enum_types_by_name['SectionRenderStyle'] = _SECTIONRENDERSTYLE
DESCRIPTOR.enum_types_by_name['FaultCentreType'] = _FAULTCENTRETYPE
DESCRIPTOR.enum_types_by_name['Formats2D'] = _FORMATS2D
DESCRIPTOR.enum_types_by_name['Associated_OrientationMethod'] = _ASSOCIATED_ORIENTATIONMETHOD
DESCRIPTOR.enum_types_by_name['ImportAction'] = _IMPORTACTION
DESCRIPTOR.enum_types_by_name['CompositeStyle'] = _COMPOSITESTYLE
DESCRIPTOR.enum_types_by_name['CompositeReplacementStyle'] = _COMPOSITEREPLACEMENTSTYLE
DESCRIPTOR.enum_types_by_name['CompositeWeightingStyle'] = _COMPOSITEWEIGHTINGSTYLE
DESCRIPTOR.enum_types_by_name['TypeOfAnalysis'] = _TYPEOFANALYSIS
DESCRIPTOR.enum_types_by_name['KrigingDomain'] = _KRIGINGDOMAIN
DESCRIPTOR.enum_types_by_name['Kriging_WhichVariogram'] = _KRIGING_WHICHVARIOGRAM
DESCRIPTOR.enum_types_by_name['Mesh_facet_topology'] = _MESH_FACET_TOPOLOGY
DESCRIPTOR.enum_types_by_name['OptManifoldRequest'] = _OPTMANIFOLDREQUEST
DESCRIPTOR.enum_types_by_name['SiteType3D'] = _SITETYPE3D
DESCRIPTOR.enum_types_by_name['GeomodellerDataType'] = _GEOMODELLERDATATYPE
DESCRIPTOR.enum_types_by_name['Distribution_Type'] = _DISTRIBUTION_TYPE
DESCRIPTOR.enum_types_by_name['FoldType'] = _FOLDTYPE
DESCRIPTOR.enum_types_by_name['FoldMechanism'] = _FOLDMECHANISM
DESCRIPTOR.enum_types_by_name['FoldTightness'] = _FOLDTIGHTNESS
DESCRIPTOR.enum_types_by_name['DeformationStyle'] = _DEFORMATIONSTYLE
DESCRIPTOR.enum_types_by_name['HingePolarity'] = _HINGEPOLARITY
_sym_db.RegisterFileDescriptor(DESCRIPTOR)
Foliation_GMT = _reflection.GeneratedProtocolMessageType('Foliation_GMT', (_message.Message,), {
'DESCRIPTOR' : _FOLIATION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.Foliation_GMT)
})
_sym_db.RegisterMessage(Foliation_GMT)
ApparentDip_GMT = _reflection.GeneratedProtocolMessageType('ApparentDip_GMT', (_message.Message,), {
'DESCRIPTOR' : _APPARENTDIP_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ApparentDip_GMT)
})
_sym_db.RegisterMessage(ApparentDip_GMT)
SetModelBounds_GMT = _reflection.GeneratedProtocolMessageType('SetModelBounds_GMT', (_message.Message,), {
'DESCRIPTOR' : _SETMODELBOUNDS_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.SetModelBounds_GMT)
})
_sym_db.RegisterMessage(SetModelBounds_GMT)
GetModelBounds_GMT = _reflection.GeneratedProtocolMessageType('GetModelBounds_GMT', (_message.Message,), {
'DESCRIPTOR' : _GETMODELBOUNDS_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.GetModelBounds_GMT)
})
_sym_db.RegisterMessage(GetModelBounds_GMT)
OpenProjectGUI_GMT = _reflection.GeneratedProtocolMessageType('OpenProjectGUI_GMT', (_message.Message,), {
'DESCRIPTOR' : _OPENPROJECTGUI_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.OpenProjectGUI_GMT)
})
_sym_db.RegisterMessage(OpenProjectGUI_GMT)
OpenProjectNoGUI_GMT = _reflection.GeneratedProtocolMessageType('OpenProjectNoGUI_GMT', (_message.Message,), {
'DESCRIPTOR' : _OPENPROJECTNOGUI_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.OpenProjectNoGUI_GMT)
})
_sym_db.RegisterMessage(OpenProjectNoGUI_GMT)
CloseProjectNoGUI_GMT = _reflection.GeneratedProtocolMessageType('CloseProjectNoGUI_GMT', (_message.Message,), {
'DESCRIPTOR' : _CLOSEPROJECTNOGUI_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CloseProjectNoGUI_GMT)
})
_sym_db.RegisterMessage(CloseProjectNoGUI_GMT)
SaveProject_GMT = _reflection.GeneratedProtocolMessageType('SaveProject_GMT', (_message.Message,), {
'DESCRIPTOR' : _SAVEPROJECT_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.SaveProject_GMT)
})
_sym_db.RegisterMessage(SaveProject_GMT)
SaveProjectAs_GMT = _reflection.GeneratedProtocolMessageType('SaveProjectAs_GMT', (_message.Message,), {
'DESCRIPTOR' : _SAVEPROJECTAS_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.SaveProjectAs_GMT)
})
_sym_db.RegisterMessage(SaveProjectAs_GMT)
CustomDTM_GMT = _reflection.GeneratedProtocolMessageType('CustomDTM_GMT', (_message.Message,), {
'DESCRIPTOR' : _CUSTOMDTM_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CustomDTM_GMT)
})
_sym_db.RegisterMessage(CustomDTM_GMT)
HorizontalDTM_GMT = _reflection.GeneratedProtocolMessageType('HorizontalDTM_GMT', (_message.Message,), {
'DESCRIPTOR' : _HORIZONTALDTM_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.HorizontalDTM_GMT)
})
_sym_db.RegisterMessage(HorizontalDTM_GMT)
CreateProject_GMT = _reflection.GeneratedProtocolMessageType('CreateProject_GMT', (_message.Message,), {
'DESCRIPTOR' : _CREATEPROJECT_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CreateProject_GMT)
})
_sym_db.RegisterMessage(CreateProject_GMT)
ModelInterpolationParameters_GMT = _reflection.GeneratedProtocolMessageType('ModelInterpolationParameters_GMT', (_message.Message,), {
'DESCRIPTOR' : _MODELINTERPOLATIONPARAMETERS_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ModelInterpolationParameters_GMT)
})
_sym_db.RegisterMessage(ModelInterpolationParameters_GMT)
Anisotropic_Effect_GMT = _reflection.GeneratedProtocolMessageType('Anisotropic_Effect_GMT', (_message.Message,), {
'DESCRIPTOR' : _ANISOTROPIC_EFFECT_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.Anisotropic_Effect_GMT)
})
_sym_db.RegisterMessage(Anisotropic_Effect_GMT)
ExoticConstraint_GMT = _reflection.GeneratedProtocolMessageType('ExoticConstraint_GMT', (_message.Message,), {
'DESCRIPTOR' : _EXOTICCONSTRAINT_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ExoticConstraint_GMT)
})
_sym_db.RegisterMessage(ExoticConstraint_GMT)
ComputeModel_GMT = _reflection.GeneratedProtocolMessageType('ComputeModel_GMT', (_message.Message,), {
'DESCRIPTOR' : _COMPUTEMODEL_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ComputeModel_GMT)
})
_sym_db.RegisterMessage(ComputeModel_GMT)
RenderModel_GMT = _reflection.GeneratedProtocolMessageType('RenderModel_GMT', (_message.Message,), {
'DESCRIPTOR' : _RENDERMODEL_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.RenderModel_GMT)
})
_sym_db.RegisterMessage(RenderModel_GMT)
RenderModelOnSection_GMT = _reflection.GeneratedProtocolMessageType('RenderModelOnSection_GMT', (_message.Message,), {
'DESCRIPTOR' : _RENDERMODELONSECTION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.RenderModelOnSection_GMT)
})
_sym_db.RegisterMessage(RenderModelOnSection_GMT)
CreateFault_GMT = _reflection.GeneratedProtocolMessageType('CreateFault_GMT', (_message.Message,), {
'DESCRIPTOR' : _CREATEFAULT_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CreateFault_GMT)
})
_sym_db.RegisterMessage(CreateFault_GMT)
Set3dFaultLimits_GMT = _reflection.GeneratedProtocolMessageType('Set3dFaultLimits_GMT', (_message.Message,), {
'DESCRIPTOR' : _SET3DFAULTLIMITS_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.Set3dFaultLimits_GMT)
})
_sym_db.RegisterMessage(Set3dFaultLimits_GMT)
FaultCentre_GMT = _reflection.GeneratedProtocolMessageType('FaultCentre_GMT', (_message.Message,), {
'DESCRIPTOR' : _FAULTCENTRE_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.FaultCentre_GMT)
})
_sym_db.RegisterMessage(FaultCentre_GMT)
CreateFormation_GMT = _reflection.GeneratedProtocolMessageType('CreateFormation_GMT', (_message.Message,), {
'DESCRIPTOR' : _CREATEFORMATION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CreateFormation_GMT)
})
_sym_db.RegisterMessage(CreateFormation_GMT)
CreateDyke_GMT = _reflection.GeneratedProtocolMessageType('CreateDyke_GMT', (_message.Message,), {
'DESCRIPTOR' : _CREATEDYKE_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CreateDyke_GMT)
})
_sym_db.RegisterMessage(CreateDyke_GMT)
ExportSection_GMT = _reflection.GeneratedProtocolMessageType('ExportSection_GMT', (_message.Message,), {
'DESCRIPTOR' : _EXPORTSECTION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ExportSection_GMT)
})
_sym_db.RegisterMessage(ExportSection_GMT)
Export2DData_GMT = _reflection.GeneratedProtocolMessageType('Export2DData_GMT', (_message.Message,), {
'DESCRIPTOR' : _EXPORT2DDATA_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.Export2DData_GMT)
})
_sym_db.RegisterMessage(Export2DData_GMT)
CentralVerticalPotentialAndRank_GMT = _reflection.GeneratedProtocolMessageType('CentralVerticalPotentialAndRank_GMT', (_message.Message,), {
'DESCRIPTOR' : _CENTRALVERTICALPOTENTIALANDRANK_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CentralVerticalPotentialAndRank_GMT)
})
_sym_db.RegisterMessage(CentralVerticalPotentialAndRank_GMT)
GetModelSummary_GMT = _reflection.GeneratedProtocolMessageType('GetModelSummary_GMT', (_message.Message,), {
'DESCRIPTOR' : _GETMODELSUMMARY_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.GetModelSummary_GMT)
})
_sym_db.RegisterMessage(GetModelSummary_GMT)
SetSeries_GMT = _reflection.GeneratedProtocolMessageType('SetSeries_GMT', (_message.Message,), {
'DESCRIPTOR' : _SETSERIES_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.SetSeries_GMT)
})
_sym_db.RegisterMessage(SetSeries_GMT)
AddFormationToSeries_GMT = _reflection.GeneratedProtocolMessageType('AddFormationToSeries_GMT', (_message.Message,), {
'DESCRIPTOR' : _ADDFORMATIONTOSERIES_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.AddFormationToSeries_GMT)
})
_sym_db.RegisterMessage(AddFormationToSeries_GMT)
AddDykeToSeries_GMT = _reflection.GeneratedProtocolMessageType('AddDykeToSeries_GMT', (_message.Message,), {
'DESCRIPTOR' : _ADDDYKETOSERIES_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.AddDykeToSeries_GMT)
})
_sym_db.RegisterMessage(AddDykeToSeries_GMT)
AddPoint3d_GMT = _reflection.GeneratedProtocolMessageType('AddPoint3d_GMT', (_message.Message,), {
'DESCRIPTOR' : _ADDPOINT3D_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.AddPoint3d_GMT)
})
_sym_db.RegisterMessage(AddPoint3d_GMT)
PointList3d_GMT = _reflection.GeneratedProtocolMessageType('PointList3d_GMT', (_message.Message,), {
'DESCRIPTOR' : _POINTLIST3D_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.PointList3d_GMT)
})
_sym_db.RegisterMessage(PointList3d_GMT)
AddPoint2d_GMT = _reflection.GeneratedProtocolMessageType('AddPoint2d_GMT', (_message.Message,), {
'DESCRIPTOR' : _ADDPOINT2D_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.AddPoint2d_GMT)
})
_sym_db.RegisterMessage(AddPoint2d_GMT)
PointList2d_GMT = _reflection.GeneratedProtocolMessageType('PointList2d_GMT', (_message.Message,), {
'DESCRIPTOR' : _POINTLIST2D_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.PointList2d_GMT)
})
_sym_db.RegisterMessage(PointList2d_GMT)
CreateSection_GMT = _reflection.GeneratedProtocolMessageType('CreateSection_GMT', (_message.Message,), {
'DESCRIPTOR' : _CREATESECTION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CreateSection_GMT)
})
_sym_db.RegisterMessage(CreateSection_GMT)
CreateSegYThumbnail_GMT = _reflection.GeneratedProtocolMessageType('CreateSegYThumbnail_GMT', (_message.Message,), {
'DESCRIPTOR' : _CREATESEGYTHUMBNAIL_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CreateSegYThumbnail_GMT)
})
_sym_db.RegisterMessage(CreateSegYThumbnail_GMT)
AddInterfaceToSection_GMT = _reflection.GeneratedProtocolMessageType('AddInterfaceToSection_GMT', (_message.Message,), {
'DESCRIPTOR' : _ADDINTERFACETOSECTION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.AddInterfaceToSection_GMT)
})
_sym_db.RegisterMessage(AddInterfaceToSection_GMT)
AddFoliationToSection_GMT = _reflection.GeneratedProtocolMessageType('AddFoliationToSection_GMT', (_message.Message,), {
'DESCRIPTOR' : _ADDFOLIATIONTOSECTION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.AddFoliationToSection_GMT)
})
_sym_db.RegisterMessage(AddFoliationToSection_GMT)
Add3DFoliationToFormation_GMT = _reflection.GeneratedProtocolMessageType('Add3DFoliationToFormation_GMT', (_message.Message,), {
'DESCRIPTOR' : _ADD3DFOLIATIONTOFORMATION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.Add3DFoliationToFormation_GMT)
})
_sym_db.RegisterMessage(Add3DFoliationToFormation_GMT)
Add3DInterfacesToFormation_GMT = _reflection.GeneratedProtocolMessageType('Add3DInterfacesToFormation_GMT', (_message.Message,), {
'DESCRIPTOR' : _ADD3DINTERFACESTOFORMATION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.Add3DInterfacesToFormation_GMT)
})
_sym_db.RegisterMessage(Add3DInterfacesToFormation_GMT)
AddApparentDipToSection_GMT = _reflection.GeneratedProtocolMessageType('AddApparentDipToSection_GMT', (_message.Message,), {
'DESCRIPTOR' : _ADDAPPARENTDIPTOSECTION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.AddApparentDipToSection_GMT)
})
_sym_db.RegisterMessage(AddApparentDipToSection_GMT)
AddDykeStructuralDataToSection_GMT = _reflection.GeneratedProtocolMessageType('AddDykeStructuralDataToSection_GMT', (_message.Message,), {
'DESCRIPTOR' : _ADDDYKESTRUCTURALDATATOSECTION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.AddDykeStructuralDataToSection_GMT)
})
_sym_db.RegisterMessage(AddDykeStructuralDataToSection_GMT)
Create3DPoint_GMT = _reflection.GeneratedProtocolMessageType('Create3DPoint_GMT', (_message.Message,), {
'DESCRIPTOR' : _CREATE3DPOINT_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.Create3DPoint_GMT)
})
_sym_db.RegisterMessage(Create3DPoint_GMT)
Import2dDataToSection_GMT = _reflection.GeneratedProtocolMessageType('Import2dDataToSection_GMT', (_message.Message,), {
'DESCRIPTOR' : _IMPORT2DDATATOSECTION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.Import2dDataToSection_GMT)
})
_sym_db.RegisterMessage(Import2dDataToSection_GMT)
ReadAndImport2dDataToASection_GMT = _reflection.GeneratedProtocolMessageType('ReadAndImport2dDataToASection_GMT', (_message.Message,), {
'DESCRIPTOR' : _READANDIMPORT2DDATATOASECTION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ReadAndImport2dDataToASection_GMT)
})
_sym_db.RegisterMessage(ReadAndImport2dDataToASection_GMT)
ReadAndImport3dData_GMT = _reflection.GeneratedProtocolMessageType('ReadAndImport3dData_GMT', (_message.Message,), {
'DESCRIPTOR' : _READANDIMPORT3DDATA_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ReadAndImport3dData_GMT)
})
_sym_db.RegisterMessage(ReadAndImport3dData_GMT)
ImportMicroSeismicEvents_GMT = _reflection.GeneratedProtocolMessageType('ImportMicroSeismicEvents_GMT', (_message.Message,), {
'DESCRIPTOR' : _IMPORTMICROSEISMICEVENTS_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ImportMicroSeismicEvents_GMT)
})
_sym_db.RegisterMessage(ImportMicroSeismicEvents_GMT)
SurveyDirection_GMT = _reflection.GeneratedProtocolMessageType('SurveyDirection_GMT', (_message.Message,), {
'DESCRIPTOR' : _SURVEYDIRECTION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.SurveyDirection_GMT)
})
_sym_db.RegisterMessage(SurveyDirection_GMT)
LithologyInterval_GMT = _reflection.GeneratedProtocolMessageType('LithologyInterval_GMT', (_message.Message,), {
'DESCRIPTOR' : _LITHOLOGYINTERVAL_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.LithologyInterval_GMT)
})
_sym_db.RegisterMessage(LithologyInterval_GMT)
CreateDrillhole_GMT = _reflection.GeneratedProtocolMessageType('CreateDrillhole_GMT', (_message.Message,), {
'DESCRIPTOR' : _CREATEDRILLHOLE_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CreateDrillhole_GMT)
})
_sym_db.RegisterMessage(CreateDrillhole_GMT)
LoadDrillholes_GMT = _reflection.GeneratedProtocolMessageType('LoadDrillholes_GMT', (_message.Message,), {
'DESCRIPTOR' : _LOADDRILLHOLES_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.LoadDrillholes_GMT)
})
_sym_db.RegisterMessage(LoadDrillholes_GMT)
CompositeDrillholes_GMT = _reflection.GeneratedProtocolMessageType('CompositeDrillholes_GMT', (_message.Message,), {
'DESCRIPTOR' : _COMPOSITEDRILLHOLES_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CompositeDrillholes_GMT)
})
_sym_db.RegisterMessage(CompositeDrillholes_GMT)
DrillholeQueryMeshGrid_GMT = _reflection.GeneratedProtocolMessageType('DrillholeQueryMeshGrid_GMT', (_message.Message,), {
'DESCRIPTOR' : _DRILLHOLEQUERYMESHGRID_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.DrillholeQueryMeshGrid_GMT)
})
_sym_db.RegisterMessage(DrillholeQueryMeshGrid_GMT)
ImportSeismicCommon = _reflection.GeneratedProtocolMessageType('ImportSeismicCommon', (_message.Message,), {
'DESCRIPTOR' : _IMPORTSEISMICCOMMON,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ImportSeismicCommon)
})
_sym_db.RegisterMessage(ImportSeismicCommon)
ImportSeismicNav_GMT = _reflection.GeneratedProtocolMessageType('ImportSeismicNav_GMT', (_message.Message,), {
'DESCRIPTOR' : _IMPORTSEISMICNAV_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ImportSeismicNav_GMT)
})
_sym_db.RegisterMessage(ImportSeismicNav_GMT)
ImportSeismicHorizons_GMT = _reflection.GeneratedProtocolMessageType('ImportSeismicHorizons_GMT', (_message.Message,), {
'DESCRIPTOR' : _IMPORTSEISMICHORIZONS_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ImportSeismicHorizons_GMT)
})
_sym_db.RegisterMessage(ImportSeismicHorizons_GMT)
RenderSection_GMT = _reflection.GeneratedProtocolMessageType('RenderSection_GMT', (_message.Message,), {
'DESCRIPTOR' : _RENDERSECTION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.RenderSection_GMT)
})
_sym_db.RegisterMessage(RenderSection_GMT)
SaveLithologyVoxet_GMT = _reflection.GeneratedProtocolMessageType('SaveLithologyVoxet_GMT', (_message.Message,), {
'DESCRIPTOR' : _SAVELITHOLOGYVOXET_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.SaveLithologyVoxet_GMT)
})
_sym_db.RegisterMessage(SaveLithologyVoxet_GMT)
SavePotentialGradientVoxet_GMT = _reflection.GeneratedProtocolMessageType('SavePotentialGradientVoxet_GMT', (_message.Message,), {
'DESCRIPTOR' : _SAVEPOTENTIALGRADIENTVOXET_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.SavePotentialGradientVoxet_GMT)
})
_sym_db.RegisterMessage(SavePotentialGradientVoxet_GMT)
UpdateInterface_GMT = _reflection.GeneratedProtocolMessageType('UpdateInterface_GMT', (_message.Message,), {
'DESCRIPTOR' : _UPDATEINTERFACE_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.UpdateInterface_GMT)
})
_sym_db.RegisterMessage(UpdateInterface_GMT)
DeleteInterfacesFromSection_GMT = _reflection.GeneratedProtocolMessageType('DeleteInterfacesFromSection_GMT', (_message.Message,), {
'DESCRIPTOR' : _DELETEINTERFACESFROMSECTION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.DeleteInterfacesFromSection_GMT)
})
_sym_db.RegisterMessage(DeleteInterfacesFromSection_GMT)
FaultSeriesLinks_GMT = _reflection.GeneratedProtocolMessageType('FaultSeriesLinks_GMT', (_message.Message,), {
'DESCRIPTOR' : _FAULTSERIESLINKS_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.FaultSeriesLinks_GMT)
})
_sym_db.RegisterMessage(FaultSeriesLinks_GMT)
LinkFaultsWithSeries_GMT = _reflection.GeneratedProtocolMessageType('LinkFaultsWithSeries_GMT', (_message.Message,), {
'DESCRIPTOR' : _LINKFAULTSWITHSERIES_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.LinkFaultsWithSeries_GMT)
})
_sym_db.RegisterMessage(LinkFaultsWithSeries_GMT)
FaultStopsOnFaults_GMT = _reflection.GeneratedProtocolMessageType('FaultStopsOnFaults_GMT', (_message.Message,), {
'DESCRIPTOR' : _FAULTSTOPSONFAULTS_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.FaultStopsOnFaults_GMT)
})
_sym_db.RegisterMessage(FaultStopsOnFaults_GMT)
LinkFaultsWithFaults_GMT = _reflection.GeneratedProtocolMessageType('LinkFaultsWithFaults_GMT', (_message.Message,), {
'DESCRIPTOR' : _LINKFAULTSWITHFAULTS_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.LinkFaultsWithFaults_GMT)
})
_sym_db.RegisterMessage(LinkFaultsWithFaults_GMT)
WriteBatchFile_GMT = _reflection.GeneratedProtocolMessageType('WriteBatchFile_GMT', (_message.Message,), {
'DESCRIPTOR' : _WRITEBATCHFILE_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.WriteBatchFile_GMT)
})
_sym_db.RegisterMessage(WriteBatchFile_GMT)
SourceMeshGrid_GMT = _reflection.GeneratedProtocolMessageType('SourceMeshGrid_GMT', (_message.Message,), {
'DESCRIPTOR' : _SOURCEMESHGRID_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.SourceMeshGrid_GMT)
})
_sym_db.RegisterMessage(SourceMeshGrid_GMT)
CreateMeshGrid_GMT = _reflection.GeneratedProtocolMessageType('CreateMeshGrid_GMT', (_message.Message,), {
'DESCRIPTOR' : _CREATEMESHGRID_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CreateMeshGrid_GMT)
})
_sym_db.RegisterMessage(CreateMeshGrid_GMT)
ExportMeshGrid_GMT = _reflection.GeneratedProtocolMessageType('ExportMeshGrid_GMT', (_message.Message,), {
'DESCRIPTOR' : _EXPORTMESHGRID_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ExportMeshGrid_GMT)
})
_sym_db.RegisterMessage(ExportMeshGrid_GMT)
VariogramCurves_GMT = _reflection.GeneratedProtocolMessageType('VariogramCurves_GMT', (_message.Message,), {
'DESCRIPTOR' : _VARIOGRAMCURVES_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.VariogramCurves_GMT)
})
_sym_db.RegisterMessage(VariogramCurves_GMT)
ComputeVariogram_GMT = _reflection.GeneratedProtocolMessageType('ComputeVariogram_GMT', (_message.Message,), {
'DESCRIPTOR' : _COMPUTEVARIOGRAM_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ComputeVariogram_GMT)
})
_sym_db.RegisterMessage(ComputeVariogram_GMT)
VariogramAnalysisType = _reflection.GeneratedProtocolMessageType('VariogramAnalysisType', (_message.Message,), {
'DESCRIPTOR' : _VARIOGRAMANALYSISTYPE,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.VariogramAnalysisType)
})
_sym_db.RegisterMessage(VariogramAnalysisType)
InterpolateNumericalReadings_GMT = _reflection.GeneratedProtocolMessageType('InterpolateNumericalReadings_GMT', (_message.Message,), {
'DESCRIPTOR' : _INTERPOLATENUMERICALREADINGS_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.InterpolateNumericalReadings_GMT)
})
_sym_db.RegisterMessage(InterpolateNumericalReadings_GMT)
BuildTripleLines_GMT = _reflection.GeneratedProtocolMessageType('BuildTripleLines_GMT', (_message.Message,), {
'ExportTripleLines' : _reflection.GeneratedProtocolMessageType('ExportTripleLines', (_message.Message,), {
'DESCRIPTOR' : _BUILDTRIPLELINES_GMT_EXPORTTRIPLELINES,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.BuildTripleLines_GMT.ExportTripleLines)
})
,
'ThinBodyBias' : _reflection.GeneratedProtocolMessageType('ThinBodyBias', (_message.Message,), {
'DESCRIPTOR' : _BUILDTRIPLELINES_GMT_THINBODYBIAS,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.BuildTripleLines_GMT.ThinBodyBias)
})
,
'DESCRIPTOR' : _BUILDTRIPLELINES_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.BuildTripleLines_GMT)
})
_sym_db.RegisterMessage(BuildTripleLines_GMT)
_sym_db.RegisterMessage(BuildTripleLines_GMT.ExportTripleLines)
_sym_db.RegisterMessage(BuildTripleLines_GMT.ThinBodyBias)
ImportTripleLines_GMT = _reflection.GeneratedProtocolMessageType('ImportTripleLines_GMT', (_message.Message,), {
'DESCRIPTOR' : _IMPORTTRIPLELINES_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ImportTripleLines_GMT)
})
_sym_db.RegisterMessage(ImportTripleLines_GMT)
BuildMeshCGAL_GMT = _reflection.GeneratedProtocolMessageType('BuildMeshCGAL_GMT', (_message.Message,), {
'RefineMesh' : _reflection.GeneratedProtocolMessageType('RefineMesh', (_message.Message,), {
'OptEnergyParms' : _reflection.GeneratedProtocolMessageType('OptEnergyParms', (_message.Message,), {
'DESCRIPTOR' : _BUILDMESHCGAL_GMT_REFINEMESH_OPTENERGYPARMS,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptEnergyParms)
})
,
'OptVertexParms' : _reflection.GeneratedProtocolMessageType('OptVertexParms', (_message.Message,), {
'DESCRIPTOR' : _BUILDMESHCGAL_GMT_REFINEMESH_OPTVERTEXPARMS,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh.OptVertexParms)
})
,
'DESCRIPTOR' : _BUILDMESHCGAL_GMT_REFINEMESH,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.BuildMeshCGAL_GMT.RefineMesh)
})
,
'GeomodellerOutput' : _reflection.GeneratedProtocolMessageType('GeomodellerOutput', (_message.Message,), {
'DESCRIPTOR' : _BUILDMESHCGAL_GMT_GEOMODELLEROUTPUT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.BuildMeshCGAL_GMT.GeomodellerOutput)
})
,
'MeshCriteria' : _reflection.GeneratedProtocolMessageType('MeshCriteria', (_message.Message,), {
'FormationDiscretization' : _reflection.GeneratedProtocolMessageType('FormationDiscretization', (_message.Message,), {
'DESCRIPTOR' : _BUILDMESHCGAL_GMT_MESHCRITERIA_FORMATIONDISCRETIZATION,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization)
})
,
'DESCRIPTOR' : _BUILDMESHCGAL_GMT_MESHCRITERIA,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.BuildMeshCGAL_GMT.MeshCriteria)
})
,
'SeedPoints' : _reflection.GeneratedProtocolMessageType('SeedPoints', (_message.Message,), {
'MeshSeedPoints' : _reflection.GeneratedProtocolMessageType('MeshSeedPoints', (_message.Message,), {
'DESCRIPTOR' : _BUILDMESHCGAL_GMT_SEEDPOINTS_MESHSEEDPOINTS,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints.MeshSeedPoints)
})
,
'RandomSeedPoints' : _reflection.GeneratedProtocolMessageType('RandomSeedPoints', (_message.Message,), {
'DESCRIPTOR' : _BUILDMESHCGAL_GMT_SEEDPOINTS_RANDOMSEEDPOINTS,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints.RandomSeedPoints)
})
,
'DESCRIPTOR' : _BUILDMESHCGAL_GMT_SEEDPOINTS,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.BuildMeshCGAL_GMT.SeedPoints)
})
,
'DESCRIPTOR' : _BUILDMESHCGAL_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.BuildMeshCGAL_GMT)
})
_sym_db.RegisterMessage(BuildMeshCGAL_GMT)
_sym_db.RegisterMessage(BuildMeshCGAL_GMT.RefineMesh)
_sym_db.RegisterMessage(BuildMeshCGAL_GMT.RefineMesh.OptEnergyParms)
_sym_db.RegisterMessage(BuildMeshCGAL_GMT.RefineMesh.OptVertexParms)
_sym_db.RegisterMessage(BuildMeshCGAL_GMT.GeomodellerOutput)
_sym_db.RegisterMessage(BuildMeshCGAL_GMT.MeshCriteria)
_sym_db.RegisterMessage(BuildMeshCGAL_GMT.MeshCriteria.FormationDiscretization)
_sym_db.RegisterMessage(BuildMeshCGAL_GMT.SeedPoints)
_sym_db.RegisterMessage(BuildMeshCGAL_GMT.SeedPoints.MeshSeedPoints)
_sym_db.RegisterMessage(BuildMeshCGAL_GMT.SeedPoints.RandomSeedPoints)
ExportModel_GMT = _reflection.GeneratedProtocolMessageType('ExportModel_GMT', (_message.Message,), {
'ExportType2D' : _reflection.GeneratedProtocolMessageType('ExportType2D', (_message.Message,), {
'DESCRIPTOR' : _EXPORTMODEL_GMT_EXPORTTYPE2D,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ExportModel_GMT.ExportType2D)
})
,
'ExportType3D' : _reflection.GeneratedProtocolMessageType('ExportType3D', (_message.Message,), {
'DESCRIPTOR' : _EXPORTMODEL_GMT_EXPORTTYPE3D,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ExportModel_GMT.ExportType3D)
})
,
'DESCRIPTOR' : _EXPORTMODEL_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ExportModel_GMT)
})
_sym_db.RegisterMessage(ExportModel_GMT)
_sym_db.RegisterMessage(ExportModel_GMT.ExportType2D)
_sym_db.RegisterMessage(ExportModel_GMT.ExportType3D)
Export3DShapes_GMT = _reflection.GeneratedProtocolMessageType('Export3DShapes_GMT', (_message.Message,), {
'DESCRIPTOR' : _EXPORT3DSHAPES_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.Export3DShapes_GMT)
})
_sym_db.RegisterMessage(Export3DShapes_GMT)
ExportProjectSite_GMT = _reflection.GeneratedProtocolMessageType('ExportProjectSite_GMT', (_message.Message,), {
'DESCRIPTOR' : _EXPORTPROJECTSITE_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ExportProjectSite_GMT)
})
_sym_db.RegisterMessage(ExportProjectSite_GMT)
Axis_Control_GMT = _reflection.GeneratedProtocolMessageType('Axis_Control_GMT', (_message.Message,), {
'DESCRIPTOR' : _AXIS_CONTROL_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.Axis_Control_GMT)
})
_sym_db.RegisterMessage(Axis_Control_GMT)
Presentation2D_Graphics_GMT = _reflection.GeneratedProtocolMessageType('Presentation2D_Graphics_GMT', (_message.Message,), {
'DESCRIPTOR' : _PRESENTATION2D_GRAPHICS_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.Presentation2D_Graphics_GMT)
})
_sym_db.RegisterMessage(Presentation2D_Graphics_GMT)
PrismFeFLOWTriangulation_GMT = _reflection.GeneratedProtocolMessageType('PrismFeFLOWTriangulation_GMT', (_message.Message,), {
'DESCRIPTOR' : _PRISMFEFLOWTRIANGULATION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.PrismFeFLOWTriangulation_GMT)
})
_sym_db.RegisterMessage(PrismFeFLOWTriangulation_GMT)
GenerateMeshReport_GMT = _reflection.GeneratedProtocolMessageType('GenerateMeshReport_GMT', (_message.Message,), {
'DESCRIPTOR' : _GENERATEMESHREPORT_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.GenerateMeshReport_GMT)
})
_sym_db.RegisterMessage(GenerateMeshReport_GMT)
MeshUnitForGeophys_GMT = _reflection.GeneratedProtocolMessageType('MeshUnitForGeophys_GMT', (_message.Message,), {
'RankRadiusControl' : _reflection.GeneratedProtocolMessageType('RankRadiusControl', (_message.Message,), {
'DESCRIPTOR' : _MESHUNITFORGEOPHYS_GMT_RANKRADIUSCONTROL,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.MeshUnitForGeophys_GMT.RankRadiusControl)
})
,
'DESCRIPTOR' : _MESHUNITFORGEOPHYS_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.MeshUnitForGeophys_GMT)
})
_sym_db.RegisterMessage(MeshUnitForGeophys_GMT)
_sym_db.RegisterMessage(MeshUnitForGeophys_GMT.RankRadiusControl)
GetComputedLithoAtXYZ_GMT = _reflection.GeneratedProtocolMessageType('GetComputedLithoAtXYZ_GMT', (_message.Message,), {
'DESCRIPTOR' : _GETCOMPUTEDLITHOATXYZ_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.GetComputedLithoAtXYZ_GMT)
})
_sym_db.RegisterMessage(GetComputedLithoAtXYZ_GMT)
GetComputedGradientAtXYZ_GMT = _reflection.GeneratedProtocolMessageType('GetComputedGradientAtXYZ_GMT', (_message.Message,), {
'DESCRIPTOR' : _GETCOMPUTEDGRADIENTATXYZ_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.GetComputedGradientAtXYZ_GMT)
})
_sym_db.RegisterMessage(GetComputedGradientAtXYZ_GMT)
ComputeExternalDriftField_GMT = _reflection.GeneratedProtocolMessageType('ComputeExternalDriftField_GMT', (_message.Message,), {
'Formation_Distribution' : _reflection.GeneratedProtocolMessageType('Formation_Distribution', (_message.Message,), {
'DESCRIPTOR' : _COMPUTEEXTERNALDRIFTFIELD_GMT_FORMATION_DISTRIBUTION,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ComputeExternalDriftField_GMT.Formation_Distribution)
})
,
'DESCRIPTOR' : _COMPUTEEXTERNALDRIFTFIELD_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.ComputeExternalDriftField_GMT)
})
_sym_db.RegisterMessage(ComputeExternalDriftField_GMT)
_sym_db.RegisterMessage(ComputeExternalDriftField_GMT.Formation_Distribution)
CreateAxialSeries_GMT = _reflection.GeneratedProtocolMessageType('CreateAxialSeries_GMT', (_message.Message,), {
'DESCRIPTOR' : _CREATEAXIALSERIES_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CreateAxialSeries_GMT)
})
_sym_db.RegisterMessage(CreateAxialSeries_GMT)
CreateAxialSurface_GMT = _reflection.GeneratedProtocolMessageType('CreateAxialSurface_GMT', (_message.Message,), {
'DESCRIPTOR' : _CREATEAXIALSURFACE_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CreateAxialSurface_GMT)
})
_sym_db.RegisterMessage(CreateAxialSurface_GMT)
AddAxialTraceLine_GMT = _reflection.GeneratedProtocolMessageType('AddAxialTraceLine_GMT', (_message.Message,), {
'DESCRIPTOR' : _ADDAXIALTRACELINE_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.AddAxialTraceLine_GMT)
})
_sym_db.RegisterMessage(AddAxialTraceLine_GMT)
AddAxialSurfaceOrientation_GMT = _reflection.GeneratedProtocolMessageType('AddAxialSurfaceOrientation_GMT', (_message.Message,), {
'DESCRIPTOR' : _ADDAXIALSURFACEORIENTATION_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.AddAxialSurfaceOrientation_GMT)
})
_sym_db.RegisterMessage(AddAxialSurfaceOrientation_GMT)
AddHingeLine_GMT = _reflection.GeneratedProtocolMessageType('AddHingeLine_GMT', (_message.Message,), {
'DESCRIPTOR' : _ADDHINGELINE_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.AddHingeLine_GMT)
})
_sym_db.RegisterMessage(AddHingeLine_GMT)
CreateSectionFromAxialSurface_GMT = _reflection.GeneratedProtocolMessageType('CreateSectionFromAxialSurface_GMT', (_message.Message,), {
'DESCRIPTOR' : _CREATESECTIONFROMAXIALSURFACE_GMT,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.CreateSectionFromAxialSurface_GMT)
})
_sym_db.RegisterMessage(CreateSectionFromAxialSurface_GMT)
GeomodellerTask = _reflection.GeneratedProtocolMessageType('GeomodellerTask', (_message.Message,), {
'DESCRIPTOR' : _GEOMODELLERTASK,
'__module__' : 'gmtaskmodel_pb2'
# @@protoc_insertion_point(class_scope:gmtaskmodel.GeomodellerTask)
})
_sym_db.RegisterMessage(GeomodellerTask)
# @@protoc_insertion_point(module_scope)
| 54.336708 | 62,319 | 0.769971 | 77,173 | 611,940 | 5.771306 | 0.028598 | 0.052377 | 0.085617 | 0.069169 | 0.805945 | 0.7341 | 0.695028 | 0.678887 | 0.66822 | 0.658341 | 0 | 0.043846 | 0.115248 | 611,940 | 11,261 | 62,320 | 54.341533 | 0.778793 | 0.013593 | 0 | 0.724435 | 1 | 0.00389 | 0.194107 | 0.156632 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.014265 | 0 | 0.014265 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 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 | 6 |
8618f7d7ecd3f1a305558980b98d97ea666df21d | 18 | py | Python | brainbox/lfp/__init__.py | k1o0/ibllib | 842a8d72e0b75153126296061f4561f477e99646 | [
"MIT"
] | 1 | 2020-11-21T07:02:21.000Z | 2020-11-21T07:02:21.000Z | brainbox/lfp/__init__.py | k1o0/ibllib | 842a8d72e0b75153126296061f4561f477e99646 | [
"MIT"
] | null | null | null | brainbox/lfp/__init__.py | k1o0/ibllib | 842a8d72e0b75153126296061f4561f477e99646 | [
"MIT"
] | null | null | null | from .lfp import * | 18 | 18 | 0.722222 | 3 | 18 | 4.333333 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.166667 | 18 | 1 | 18 | 18 | 0.866667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
86711a75a80615969e2a57da1384a8820ddbf7ef | 16,700 | py | Python | tests/test_autoscaling/test_autoscaling_cloudformation.py | gtourkas/moto | 307104417b579d23d02f670ff55217a2d4a16bee | [
"Apache-2.0"
] | 5,460 | 2015-01-01T01:11:17.000Z | 2022-03-31T23:45:38.000Z | tests/test_autoscaling/test_autoscaling_cloudformation.py | gtourkas/moto | 307104417b579d23d02f670ff55217a2d4a16bee | [
"Apache-2.0"
] | 4,475 | 2015-01-05T19:37:30.000Z | 2022-03-31T13:55:12.000Z | tests/test_autoscaling/test_autoscaling_cloudformation.py | gtourkas/moto | 307104417b579d23d02f670ff55217a2d4a16bee | [
"Apache-2.0"
] | 1,831 | 2015-01-14T00:00:44.000Z | 2022-03-31T20:30:04.000Z | import boto3
import sure # noqa # pylint: disable=unused-import
import json
from moto import mock_autoscaling, mock_cloudformation, mock_ec2, mock_elb
from .utils import setup_networking
from tests import EXAMPLE_AMI_ID
@mock_autoscaling
@mock_cloudformation
def test_launch_configuration():
cf_client = boto3.client("cloudformation", region_name="us-east-1")
client = boto3.client("autoscaling", region_name="us-east-1")
stack_name = "test-launch-configuration"
cf_template = """
Resources:
LaunchConfiguration:
Type: AWS::AutoScaling::LaunchConfiguration
Properties:
ImageId: {0}
InstanceType: t2.micro
LaunchConfigurationName: test_launch_configuration
Outputs:
LaunchConfigurationName:
Value: !Ref LaunchConfiguration
""".strip().format(
EXAMPLE_AMI_ID
)
cf_client.create_stack(
StackName=stack_name, TemplateBody=cf_template,
)
stack = cf_client.describe_stacks(StackName=stack_name)["Stacks"][0]
stack["Outputs"][0]["OutputValue"].should.be.equal("test_launch_configuration")
lc = client.describe_launch_configurations()["LaunchConfigurations"][0]
lc["LaunchConfigurationName"].should.be.equal("test_launch_configuration")
lc["ImageId"].should.be.equal(EXAMPLE_AMI_ID)
lc["InstanceType"].should.be.equal("t2.micro")
cf_template = """
Resources:
LaunchConfiguration:
Type: AWS::AutoScaling::LaunchConfiguration
Properties:
ImageId: {0}
InstanceType: m5.large
LaunchConfigurationName: test_launch_configuration
Outputs:
LaunchConfigurationName:
Value: !Ref LaunchConfiguration
""".strip().format(
EXAMPLE_AMI_ID
)
cf_client.update_stack(
StackName=stack_name, TemplateBody=cf_template,
)
stack = cf_client.describe_stacks(StackName=stack_name)["Stacks"][0]
stack["Outputs"][0]["OutputValue"].should.be.equal("test_launch_configuration")
lc = client.describe_launch_configurations()["LaunchConfigurations"][0]
lc["LaunchConfigurationName"].should.be.equal("test_launch_configuration")
lc["ImageId"].should.be.equal(EXAMPLE_AMI_ID)
lc["InstanceType"].should.be.equal("m5.large")
@mock_autoscaling
@mock_cloudformation
def test_autoscaling_group_from_launch_config():
subnet_id = setup_networking()["subnet1"]
cf_client = boto3.client("cloudformation", region_name="us-east-1")
client = boto3.client("autoscaling", region_name="us-east-1")
client.create_launch_configuration(
LaunchConfigurationName="test_launch_configuration",
InstanceType="t2.micro",
ImageId=EXAMPLE_AMI_ID,
)
stack_name = "test-auto-scaling-group"
cf_template = """
Parameters:
SubnetId:
Type: AWS::EC2::Subnet::Id
Resources:
AutoScalingGroup:
Type: AWS::AutoScaling::AutoScalingGroup
Properties:
AutoScalingGroupName: test_auto_scaling_group
AvailabilityZones:
- us-east-1a
LaunchConfigurationName: test_launch_configuration
MaxSize: "5"
MinSize: "1"
VPCZoneIdentifier:
- !Ref SubnetId
Outputs:
AutoScalingGroupName:
Value: !Ref AutoScalingGroup
""".strip()
cf_client.create_stack(
StackName=stack_name,
TemplateBody=cf_template,
Parameters=[{"ParameterKey": "SubnetId", "ParameterValue": subnet_id}],
)
stack = cf_client.describe_stacks(StackName=stack_name)["Stacks"][0]
stack["Outputs"][0]["OutputValue"].should.be.equal("test_auto_scaling_group")
asg = client.describe_auto_scaling_groups()["AutoScalingGroups"][0]
asg["AutoScalingGroupName"].should.be.equal("test_auto_scaling_group")
asg["MinSize"].should.be.equal(1)
asg["MaxSize"].should.be.equal(5)
asg["LaunchConfigurationName"].should.be.equal("test_launch_configuration")
client.create_launch_configuration(
LaunchConfigurationName="test_launch_configuration_new",
InstanceType="t2.micro",
ImageId=EXAMPLE_AMI_ID,
)
cf_template = """
Parameters:
SubnetId:
Type: AWS::EC2::Subnet::Id
Resources:
AutoScalingGroup:
Type: AWS::AutoScaling::AutoScalingGroup
Properties:
AutoScalingGroupName: test_auto_scaling_group
AvailabilityZones:
- us-east-1a
LaunchConfigurationName: test_launch_configuration_new
MaxSize: "6"
MinSize: "2"
VPCZoneIdentifier:
- !Ref SubnetId
Outputs:
AutoScalingGroupName:
Value: !Ref AutoScalingGroup
""".strip()
cf_client.update_stack(
StackName=stack_name,
TemplateBody=cf_template,
Parameters=[{"ParameterKey": "SubnetId", "ParameterValue": subnet_id}],
)
stack = cf_client.describe_stacks(StackName=stack_name)["Stacks"][0]
stack["Outputs"][0]["OutputValue"].should.be.equal("test_auto_scaling_group")
asg = client.describe_auto_scaling_groups()["AutoScalingGroups"][0]
asg["AutoScalingGroupName"].should.be.equal("test_auto_scaling_group")
asg["MinSize"].should.be.equal(2)
asg["MaxSize"].should.be.equal(6)
asg["LaunchConfigurationName"].should.be.equal("test_launch_configuration_new")
@mock_autoscaling
@mock_cloudformation
@mock_ec2
def test_autoscaling_group_from_launch_template():
subnet_id = setup_networking()["subnet1"]
cf_client = boto3.client("cloudformation", region_name="us-east-1")
ec2_client = boto3.client("ec2", region_name="us-east-1")
client = boto3.client("autoscaling", region_name="us-east-1")
template_response = ec2_client.create_launch_template(
LaunchTemplateName="test_launch_template",
LaunchTemplateData={"ImageId": EXAMPLE_AMI_ID, "InstanceType": "t2.micro",},
)
launch_template_id = template_response["LaunchTemplate"]["LaunchTemplateId"]
stack_name = "test-auto-scaling-group"
cf_template = """
Parameters:
SubnetId:
Type: AWS::EC2::Subnet::Id
LaunchTemplateId:
Type: String
Resources:
AutoScalingGroup:
Type: AWS::AutoScaling::AutoScalingGroup
Properties:
AutoScalingGroupName: test_auto_scaling_group
AvailabilityZones:
- us-east-1a
LaunchTemplate:
LaunchTemplateId: !Ref LaunchTemplateId
Version: "1"
MaxSize: "5"
MinSize: "1"
VPCZoneIdentifier:
- !Ref SubnetId
Outputs:
AutoScalingGroupName:
Value: !Ref AutoScalingGroup
""".strip()
cf_client.create_stack(
StackName=stack_name,
TemplateBody=cf_template,
Parameters=[
{"ParameterKey": "SubnetId", "ParameterValue": subnet_id},
{"ParameterKey": "LaunchTemplateId", "ParameterValue": launch_template_id},
],
)
stack = cf_client.describe_stacks(StackName=stack_name)["Stacks"][0]
stack["Outputs"][0]["OutputValue"].should.be.equal("test_auto_scaling_group")
asg = client.describe_auto_scaling_groups()["AutoScalingGroups"][0]
asg["AutoScalingGroupName"].should.be.equal("test_auto_scaling_group")
asg["MinSize"].should.be.equal(1)
asg["MaxSize"].should.be.equal(5)
lt = asg["LaunchTemplate"]
lt["LaunchTemplateId"].should.be.equal(launch_template_id)
lt["LaunchTemplateName"].should.be.equal("test_launch_template")
lt["Version"].should.be.equal("1")
template_response = ec2_client.create_launch_template(
LaunchTemplateName="test_launch_template_new",
LaunchTemplateData={"ImageId": EXAMPLE_AMI_ID, "InstanceType": "m5.large",},
)
launch_template_id = template_response["LaunchTemplate"]["LaunchTemplateId"]
cf_template = """
Parameters:
SubnetId:
Type: AWS::EC2::Subnet::Id
LaunchTemplateId:
Type: String
Resources:
AutoScalingGroup:
Type: AWS::AutoScaling::AutoScalingGroup
Properties:
AutoScalingGroupName: test_auto_scaling_group
AvailabilityZones:
- us-east-1a
LaunchTemplate:
LaunchTemplateId: !Ref LaunchTemplateId
Version: "1"
MaxSize: "6"
MinSize: "2"
VPCZoneIdentifier:
- !Ref SubnetId
Outputs:
AutoScalingGroupName:
Value: !Ref AutoScalingGroup
""".strip()
cf_client.update_stack(
StackName=stack_name,
TemplateBody=cf_template,
Parameters=[
{"ParameterKey": "SubnetId", "ParameterValue": subnet_id},
{"ParameterKey": "LaunchTemplateId", "ParameterValue": launch_template_id},
],
)
stack = cf_client.describe_stacks(StackName=stack_name)["Stacks"][0]
stack["Outputs"][0]["OutputValue"].should.be.equal("test_auto_scaling_group")
asg = client.describe_auto_scaling_groups()["AutoScalingGroups"][0]
asg["AutoScalingGroupName"].should.be.equal("test_auto_scaling_group")
asg["MinSize"].should.be.equal(2)
asg["MaxSize"].should.be.equal(6)
lt = asg["LaunchTemplate"]
lt["LaunchTemplateId"].should.be.equal(launch_template_id)
lt["LaunchTemplateName"].should.be.equal("test_launch_template_new")
lt["Version"].should.be.equal("1")
@mock_autoscaling
@mock_elb
@mock_cloudformation
@mock_ec2
def test_autoscaling_group_with_elb():
web_setup_template = {
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"my-as-group": {
"Type": "AWS::AutoScaling::AutoScalingGroup",
"Properties": {
"AvailabilityZones": ["us-east-1a"],
"LaunchConfigurationName": {"Ref": "my-launch-config"},
"MinSize": "2",
"MaxSize": "2",
"DesiredCapacity": "2",
"LoadBalancerNames": [{"Ref": "my-elb"}],
"Tags": [
{
"Key": "propagated-test-tag",
"Value": "propagated-test-tag-value",
"PropagateAtLaunch": True,
},
{
"Key": "not-propagated-test-tag",
"Value": "not-propagated-test-tag-value",
"PropagateAtLaunch": False,
},
],
},
},
"my-launch-config": {
"Type": "AWS::AutoScaling::LaunchConfiguration",
"Properties": {
"ImageId": EXAMPLE_AMI_ID,
"InstanceType": "t2.medium",
"UserData": "some user data",
},
},
"my-elb": {
"Type": "AWS::ElasticLoadBalancing::LoadBalancer",
"Properties": {
"AvailabilityZones": ["us-east-1a"],
"Listeners": [
{
"LoadBalancerPort": "80",
"InstancePort": "80",
"Protocol": "HTTP",
}
],
"LoadBalancerName": "my-elb",
"HealthCheck": {
"Target": "HTTP:80",
"HealthyThreshold": "3",
"UnhealthyThreshold": "5",
"Interval": "30",
"Timeout": "5",
},
},
},
},
}
web_setup_template_json = json.dumps(web_setup_template)
cf = boto3.client("cloudformation", region_name="us-east-1")
ec2 = boto3.client("ec2", region_name="us-east-1")
elb = boto3.client("elb", region_name="us-east-1")
client = boto3.client("autoscaling", region_name="us-east-1")
cf.create_stack(StackName="web_stack", TemplateBody=web_setup_template_json)
autoscale_group = client.describe_auto_scaling_groups()["AutoScalingGroups"][0]
autoscale_group["LaunchConfigurationName"].should.contain("my-launch-config")
autoscale_group["LoadBalancerNames"].should.equal(["my-elb"])
# Confirm the Launch config was actually created
client.describe_launch_configurations()[
"LaunchConfigurations"
].should.have.length_of(1)
# Confirm the ELB was actually created
elb.describe_load_balancers()["LoadBalancerDescriptions"].should.have.length_of(1)
resources = cf.list_stack_resources(StackName="web_stack")["StackResourceSummaries"]
as_group_resource = [
resource
for resource in resources
if resource["ResourceType"] == "AWS::AutoScaling::AutoScalingGroup"
][0]
as_group_resource["PhysicalResourceId"].should.contain("my-as-group")
launch_config_resource = [
resource
for resource in resources
if resource["ResourceType"] == "AWS::AutoScaling::LaunchConfiguration"
][0]
launch_config_resource["PhysicalResourceId"].should.contain("my-launch-config")
elb_resource = [
resource
for resource in resources
if resource["ResourceType"] == "AWS::ElasticLoadBalancing::LoadBalancer"
][0]
elb_resource["PhysicalResourceId"].should.contain("my-elb")
# confirm the instances were created with the right tags
reservations = ec2.describe_instances()["Reservations"]
reservations.should.have.length_of(1)
reservations[0]["Instances"].should.have.length_of(2)
for instance in reservations[0]["Instances"]:
tag_keys = [t["Key"] for t in instance["Tags"]]
tag_keys.should.contain("propagated-test-tag")
tag_keys.should_not.contain("not-propagated-test-tag")
@mock_autoscaling
@mock_cloudformation
@mock_ec2
def test_autoscaling_group_update():
asg_template = {
"AWSTemplateFormatVersion": "2010-09-09",
"Resources": {
"my-as-group": {
"Type": "AWS::AutoScaling::AutoScalingGroup",
"Properties": {
"AvailabilityZones": ["us-west-1a"],
"LaunchConfigurationName": {"Ref": "my-launch-config"},
"MinSize": "2",
"MaxSize": "2",
"DesiredCapacity": "2",
},
},
"my-launch-config": {
"Type": "AWS::AutoScaling::LaunchConfiguration",
"Properties": {
"ImageId": EXAMPLE_AMI_ID,
"InstanceType": "t2.medium",
"UserData": "some user data",
},
},
},
}
asg_template_json = json.dumps(asg_template)
cf = boto3.client("cloudformation", region_name="us-west-1")
ec2 = boto3.client("ec2", region_name="us-west-1")
client = boto3.client("autoscaling", region_name="us-west-1")
cf.create_stack(StackName="asg_stack", TemplateBody=asg_template_json)
asg = client.describe_auto_scaling_groups()["AutoScalingGroups"][0]
asg["MinSize"].should.equal(2)
asg["MaxSize"].should.equal(2)
asg["DesiredCapacity"].should.equal(2)
asg_template["Resources"]["my-as-group"]["Properties"]["MaxSize"] = 3
asg_template["Resources"]["my-as-group"]["Properties"]["Tags"] = [
{
"Key": "propagated-test-tag",
"Value": "propagated-test-tag-value",
"PropagateAtLaunch": True,
},
{
"Key": "not-propagated-test-tag",
"Value": "not-propagated-test-tag-value",
"PropagateAtLaunch": False,
},
]
asg_template_json = json.dumps(asg_template)
cf.update_stack(StackName="asg_stack", TemplateBody=asg_template_json)
asg = client.describe_auto_scaling_groups()["AutoScalingGroups"][0]
asg["MinSize"].should.equal(2)
asg["MaxSize"].should.equal(3)
asg["DesiredCapacity"].should.equal(2)
# confirm the instances were created with the right tags
reservations = ec2.describe_instances()["Reservations"]
running_instance_count = 0
for res in reservations:
for instance in res["Instances"]:
if instance["State"]["Name"] == "running":
running_instance_count += 1
instance["Tags"].should.contain(
{"Key": "propagated-test-tag", "Value": "propagated-test-tag-value"}
)
tag_keys = [t["Key"] for t in instance["Tags"]]
tag_keys.should_not.contain("not-propagated-test-tag")
running_instance_count.should.equal(2)
| 35.760171 | 88 | 0.616168 | 1,599 | 16,700 | 6.229518 | 0.106942 | 0.0257 | 0.041763 | 0.027307 | 0.86658 | 0.824315 | 0.794097 | 0.761269 | 0.704749 | 0.687883 | 0 | 0.012962 | 0.256228 | 16,700 | 466 | 89 | 35.83691 | 0.788986 | 0.013713 | 0 | 0.685366 | 0 | 0 | 0.409014 | 0.121477 | 0 | 0 | 0 | 0 | 0 | 1 | 0.012195 | false | 0 | 0.014634 | 0 | 0.026829 | 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 | 0 | 0 | 0 | 6 |
8689b73bad5aea0d8379e5c8ae93a5a9e19dcc88 | 26 | py | Python | plugins/bibtex_loader/__init__.py | gelana/website-content | 11db61103d7d944ac321d5843580df2551fc2e2e | [
"MIT"
] | 5 | 2019-04-09T07:47:33.000Z | 2021-11-23T09:25:35.000Z | plugins/bibtex_loader/__init__.py | gelana/website-content | 11db61103d7d944ac321d5843580df2551fc2e2e | [
"MIT"
] | 286 | 2019-03-07T09:22:34.000Z | 2022-03-30T14:57:01.000Z | plugins/bibtex_loader/__init__.py | gelana/website-content | 11db61103d7d944ac321d5843580df2551fc2e2e | [
"MIT"
] | 74 | 2019-04-11T08:25:55.000Z | 2022-03-31T09:44:55.000Z | from .bib_loader import *
| 13 | 25 | 0.769231 | 4 | 26 | 4.75 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.153846 | 26 | 1 | 26 | 26 | 0.863636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
868b39392ba45032dbb0bada37673aa4db99147b | 55 | py | Python | checkout/models/__init__.py | KHIT93/djangoshop | d88211f63092a29d6f1a50412767280be0df87d8 | [
"MIT"
] | null | null | null | checkout/models/__init__.py | KHIT93/djangoshop | d88211f63092a29d6f1a50412767280be0df87d8 | [
"MIT"
] | 3 | 2020-02-11T23:53:27.000Z | 2021-06-10T19:29:43.000Z | checkout/models/__init__.py | KHIT93/djangoshop | d88211f63092a29d6f1a50412767280be0df87d8 | [
"MIT"
] | null | null | null | from .cart import Cart
from .cart_item import CartItem
| 18.333333 | 31 | 0.818182 | 9 | 55 | 4.888889 | 0.555556 | 0.363636 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145455 | 55 | 2 | 32 | 27.5 | 0.93617 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
86c232909240ce0be3288086cbad22aab5fe7f37 | 2,811 | py | Python | account/constants.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | null | null | null | account/constants.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | 8 | 2020-03-24T17:11:49.000Z | 2022-01-13T01:18:11.000Z | account/constants.py | opendream/asip | 20583aca6393102d425401d55ea32ac6b78be048 | [
"MIT"
] | null | null | null |
PROMOTE_LIST_CONFIG = {
'title': 'Meeting Interesting People',
'api': {
'data': '/api/v1/user/',
}
}
TAB_LIST_CONFIG = [
{
'title': 'Interest',
'api': {
'options': '/api/v1/topic/',
'data': '/api/v1/user/',
'filter': 'interests',
}
},
{
'title': 'Country',
'api': {
'options': '/api/v1/country/',
'data': '/api/v1/user/',
'filter': 'country',
}
},
{
'title': 'Role',
'api': {
'options': '/api/v1/user_role/',
'data': '/api/v1/user/',
'filter': 'user_roles',
}
}
]
PROMOTE_LIST_ROLE_CONFIG = {}
TAB_LIST_ROLE_CONFIG = {}
PROMOTE_LIST_ROLE_CONFIG['social-enterprise'] = {
'title': 'Meeting Interesting People',
'api': {
'data': '/api/v1/user/',
'default_params': {'user_roles': 1}
}
}
TAB_LIST_ROLE_CONFIG['social-enterprise'] = [
{
'title': 'Interest',
'api': {
'options': '/api/v1/topic/',
'data': '/api/v1/user/',
'filter': 'interests',
'default_params': {'user_roles': 1}
}
},
{
'title': 'Country',
'api': {
'options': '/api/v1/country/',
'data': '/api/v1/user/',
'filter': 'country',
'default_params': {'user_roles': 1}
}
},
]
PROMOTE_LIST_ROLE_CONFIG['supporter'] = {
'title': 'Meeting Interesting People',
'api': {
'data': '/api/v1/user/',
'default_params': {'user_roles': 2}
}
}
TAB_LIST_ROLE_CONFIG['supporter'] = [
{
'title': 'Interest',
'api': {
'options': '/api/v1/topic/',
'data': '/api/v1/user/',
'filter': 'interests',
'default_params': {'user_roles': 2}
}
},
{
'title': 'Country',
'api': {
'options': '/api/v1/country/',
'data': '/api/v1/user/',
'filter': 'country',
'default_params': {'user_roles': 2}
}
},
]
PROMOTE_LIST_ROLE_CONFIG['investor'] = {
'title': 'Meeting Interesting People',
'api': {
'data': '/api/v1/user/',
'default_params': {'user_roles': 3}
}
}
TAB_LIST_ROLE_CONFIG['investor'] = [
{
'title': 'Interest',
'api': {
'options': '/api/v1/topic/',
'data': '/api/v1/user/',
'filter': 'interests',
'default_params': {'user_roles': 3}
}
},
{
'title': 'Country',
'api': {
'options': '/api/v1/country/',
'data': '/api/v1/user/',
'filter': 'country',
'default_params': {'user_roles': 3}
}
},
]
| 22.853659 | 49 | 0.436499 | 246 | 2,811 | 4.792683 | 0.117886 | 0.093299 | 0.10687 | 0.143342 | 0.882103 | 0.782019 | 0.731128 | 0.731128 | 0.731128 | 0.69296 | 0 | 0.017241 | 0.36037 | 2,811 | 122 | 50 | 23.040984 | 0.638487 | 0 | 0 | 0.547826 | 0 | 0 | 0.393734 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0 | 0 | 0 | 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 | 0 | 0 | 0 | 6 |
86f090fa91541190efa083612d12943d757219e0 | 136 | py | Python | docs/tests/E0108.py | mrfyda/codacy-pylint-python3 | e360f6c0407edebe274835d3a881d67e96adf8ba | [
"Apache-2.0"
] | 17 | 2016-01-26T13:30:04.000Z | 2022-03-06T21:11:42.000Z | docs/tests/E0108.py | mrfyda/codacy-pylint-python3 | e360f6c0407edebe274835d3a881d67e96adf8ba | [
"Apache-2.0"
] | 50 | 2019-08-14T16:14:45.000Z | 2022-03-31T11:00:50.000Z | docs/tests/E0108.py | mrfyda/codacy-pylint-python3 | e360f6c0407edebe274835d3a881d67e96adf8ba | [
"Apache-2.0"
] | 15 | 2015-11-18T12:18:50.000Z | 2021-01-17T22:21:41.000Z | ##Patterns: E0108
class Test():
##Err: E0108
def a(self, arg, arg):
return 1
##Err: E0108
def test(a, a):
return 1 | 13.6 | 26 | 0.551471 | 21 | 136 | 3.571429 | 0.52381 | 0.213333 | 0.293333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.145833 | 0.294118 | 136 | 10 | 27 | 13.6 | 0.635417 | 0.257353 | 0 | 0.4 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.4 | false | 0 | 0 | 0.4 | 1 | 0 | 1 | 0 | 0 | null | 1 | 1 | 0 | 0 | 0 | 0 | 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 | 1 | 1 | 0 | 0 | 6 |
d49b0002f13d5e3db4821b745c73805c8a9a7173 | 24,945 | py | Python | wagtail/admin/tests/test_page_chooser.py | wlcrs/wagtail | 8afbc6c3eccef9eb0f09ed56c54cd36779451882 | [
"BSD-3-Clause"
] | 3 | 2019-05-14T13:43:08.000Z | 2021-11-09T11:27:18.000Z | wagtail/admin/tests/test_page_chooser.py | wlcrs/wagtail | 8afbc6c3eccef9eb0f09ed56c54cd36779451882 | [
"BSD-3-Clause"
] | 13 | 2019-03-25T19:57:35.000Z | 2019-12-28T19:25:23.000Z | wagtail/admin/tests/test_page_chooser.py | wlcrs/wagtail | 8afbc6c3eccef9eb0f09ed56c54cd36779451882 | [
"BSD-3-Clause"
] | 1 | 2020-01-21T13:23:46.000Z | 2020-01-21T13:23:46.000Z | import json
from django.contrib.auth import get_user_model
from django.test import TestCase
from django.urls import reverse
from django.utils.http import urlencode
from wagtail.admin.views.chooser import can_choose_page
from wagtail.core.models import Page, UserPagePermissionsProxy
from wagtail.tests.testapp.models import EventIndex, EventPage, SimplePage, SingleEventPage
from wagtail.tests.utils import WagtailTestUtils
class TestChooserBrowse(TestCase, WagtailTestUtils):
def setUp(self):
self.root_page = Page.objects.get(id=2)
# Add child page
self.child_page = SimplePage(title="foobarbaz", content="hello")
self.root_page.add_child(instance=self.child_page)
self.login()
def get(self, params={}):
return self.client.get(reverse('wagtailadmin_choose_page'), params)
def test_simple(self):
response = self.get()
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/browse.html')
def test_construct_queryset_hook(self):
page = SimplePage(title="Test shown", content="hello")
Page.get_first_root_node().add_child(instance=page)
page_not_shown = SimplePage(title="Test not shown", content="hello")
Page.get_first_root_node().add_child(instance=page_not_shown)
def filter_pages(pages, request):
return pages.filter(id=page.id)
with self.register_hook('construct_page_chooser_queryset', filter_pages):
response = self.get()
self.assertEqual(len(response.context['pages']), 1)
self.assertEqual(response.context['pages'][0].specific, page)
class TestCanChooseRootFlag(TestCase, WagtailTestUtils):
def setUp(self):
self.login()
def get(self, params={}):
return self.client.get(reverse('wagtailadmin_choose_page'), params)
def test_cannot_choose_root_by_default(self):
response = self.get()
self.assertNotContains(response, '/admin/pages/1/edit/')
def test_can_choose_root(self):
response = self.get({'can_choose_root': 'true'})
self.assertContains(response, '/admin/pages/1/edit/')
class TestChooserBrowseChild(TestCase, WagtailTestUtils):
def setUp(self):
self.root_page = Page.objects.get(id=2)
# Add child page
self.child_page = SimplePage(title="foobarbaz", content="hello")
self.root_page.add_child(instance=self.child_page)
self.login()
def get(self, params={}):
return self.client.get(reverse('wagtailadmin_choose_page_child',
args=(self.root_page.id,)), params)
def get_invalid(self, params={}):
return self.client.get(reverse('wagtailadmin_choose_page_child',
args=(9999999,)), params)
def test_simple(self):
response = self.get()
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/browse.html')
def test_get_invalid(self):
self.assertEqual(self.get_invalid().status_code, 404)
def test_with_page_type(self):
# Add a page that is not a SimplePage
event_page = EventPage(
title="event",
location='the moon', audience='public',
cost='free', date_from='2001-01-01',
)
self.root_page.add_child(instance=event_page)
# Add a page with a child page
event_index_page = EventIndex(
title="events",
)
self.root_page.add_child(instance=event_index_page)
event_index_page.add_child(instance=EventPage(
title="other event",
location='the moon', audience='public',
cost='free', date_from='2001-01-01',
))
# Send request
response = self.get({'page_type': 'tests.simplepage'})
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/browse.html')
self.assertEqual(response.context['page_type_string'], 'tests.simplepage')
pages = {
page.id: page
for page in response.context['pages'].object_list
}
# Child page is a simple page directly underneath root
# so should appear in the list
self.assertIn(self.child_page.id, pages)
self.assertTrue(pages[self.child_page.id].can_choose)
self.assertFalse(pages[self.child_page.id].can_descend)
# Event page is not a simple page and is not descendable either
# so should not appear in the list
self.assertNotIn(event_page.id, pages)
# Event index page is not a simple page but has a child and is therefore descendable
# so should appear in the list
self.assertIn(event_index_page.id, pages)
self.assertFalse(pages[event_index_page.id].can_choose)
self.assertTrue(pages[event_index_page.id].can_descend)
def test_with_url_extended_page_type(self):
# Add a page that overrides the url path
single_event_page = SingleEventPage(
title="foo",
location='the moon', audience='public',
cost='free', date_from='2001-01-01',
)
self.root_page.add_child(instance=single_event_page)
# Send request
response = self.get()
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/browse.html')
page_urls = [
page.url
for page in response.context['pages']
]
self.assertIn('/foo/pointless-suffix/', page_urls)
def test_with_blank_page_type(self):
# a blank page_type parameter should be equivalent to an absent parameter
# (or an explicit page_type of wagtailcore.page)
response = self.get({'page_type': ''})
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/browse.html')
def test_with_multiple_page_types(self):
# Add a page that is not a SimplePage
event_page = EventPage(
title="event",
location='the moon', audience='public',
cost='free', date_from='2001-01-01',
)
self.root_page.add_child(instance=event_page)
# Send request
response = self.get({'page_type': 'tests.simplepage,tests.eventpage'})
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/browse.html')
self.assertEqual(response.context['page_type_string'], 'tests.simplepage,tests.eventpage')
pages = {
page.id: page
for page in response.context['pages'].object_list
}
# Simple page in results, as before
self.assertIn(self.child_page.id, pages)
self.assertTrue(pages[self.child_page.id].can_choose)
# Event page should now also be choosable
self.assertIn(event_page.id, pages)
self.assertTrue(pages[self.child_page.id].can_choose)
def test_with_unknown_page_type(self):
response = self.get({'page_type': 'foo.bar'})
self.assertEqual(response.status_code, 404)
def test_with_bad_page_type(self):
response = self.get({'page_type': 'wagtailcore.site'})
self.assertEqual(response.status_code, 404)
def test_with_invalid_page_type(self):
response = self.get({'page_type': 'foo'})
self.assertEqual(response.status_code, 404)
def setup_pagination_test_data(self):
# Create lots of pages
for i in range(100):
new_page = SimplePage(
title="foobarbaz",
slug="foobarbaz-%d" % i,
content="hello",
)
self.root_page.add_child(instance=new_page)
def test_pagination_basic(self):
self.setup_pagination_test_data()
response = self.get()
self.assertEqual(response.context['pages'].paginator.num_pages, 5)
self.assertEqual(response.context['pages'].number, 1)
def test_pagination_another_page(self):
self.setup_pagination_test_data()
response = self.get({'p': 2})
self.assertEqual(response.context['pages'].number, 2)
def test_pagination_invalid_page(self):
self.setup_pagination_test_data()
response = self.get({'p': 'foo'})
self.assertEqual(response.context['pages'].number, 1)
def test_pagination_out_of_range_page(self):
self.setup_pagination_test_data()
response = self.get({'p': 100})
self.assertEqual(response.context['pages'].number, 5)
class TestChooserSearch(TestCase, WagtailTestUtils):
def setUp(self):
self.root_page = Page.objects.get(id=2)
# Add child page
self.child_page = SimplePage(title="foobarbaz", content="hello")
self.root_page.add_child(instance=self.child_page)
self.login()
def get(self, params=None):
return self.client.get(reverse('wagtailadmin_choose_page_search'), params or {})
def test_simple(self):
response = self.get({'q': "foobarbaz"})
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/_search_results.html')
self.assertContains(response, "There is 1 match")
self.assertContains(response, "foobarbaz")
def test_result_uses_custom_admin_display_title(self):
single_event_page = SingleEventPage(
title="Lunar event",
location='the moon', audience='public',
cost='free', date_from='2001-01-01',
)
self.root_page.add_child(instance=single_event_page)
response = self.get({'q': "lunar"})
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/_search_results.html')
self.assertContains(response, "Lunar event (single event)")
def test_search_no_results(self):
response = self.get({'q': "quux"})
self.assertEqual(response.status_code, 200)
self.assertContains(response, "There are 0 matches")
def test_with_page_type(self):
# Add a page that is not a SimplePage
event_page = EventPage(
title="foo",
location='the moon', audience='public',
cost='free', date_from='2001-01-01',
)
self.root_page.add_child(instance=event_page)
# Send request
response = self.get({'q': "foo", 'page_type': 'tests.simplepage'})
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/_search_results.html')
self.assertEqual(response.context['page_type_string'], 'tests.simplepage')
pages = {
page.id: page
for page in response.context['pages']
}
self.assertIn(self.child_page.id, pages)
# Not a simple page
self.assertNotIn(event_page.id, pages)
def test_with_blank_page_type(self):
# a blank page_type parameter should be equivalent to an absent parameter
# (or an explicit page_type of wagtailcore.page)
response = self.get({'q': "foobarbaz", 'page_type': ''})
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/_search_results.html')
self.assertContains(response, "There is 1 match")
self.assertContains(response, "foobarbaz")
def test_with_multiple_page_types(self):
# Add a page that is not a SimplePage
event_page = EventPage(
title="foo",
location='the moon', audience='public',
cost='free', date_from='2001-01-01',
)
self.root_page.add_child(instance=event_page)
# Send request
response = self.get({'q': "foo", 'page_type': 'tests.simplepage,tests.eventpage'})
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/_search_results.html')
self.assertEqual(response.context['page_type_string'], 'tests.simplepage,tests.eventpage')
pages = {
page.id: page
for page in response.context['pages']
}
# Simple page in results, as before
self.assertIn(self.child_page.id, pages)
# Event page should now also be choosable
self.assertIn(event_page.id, pages)
def test_with_unknown_page_type(self):
response = self.get({'page_type': 'foo.bar'})
self.assertEqual(response.status_code, 404)
def test_with_bad_page_type(self):
response = self.get({'page_type': 'wagtailcore.site'})
self.assertEqual(response.status_code, 404)
def test_with_invalid_page_type(self):
response = self.get({'page_type': 'foo'})
self.assertEqual(response.status_code, 404)
def test_construct_queryset_hook(self):
page = SimplePage(title="Test shown", content="hello")
self.root_page.add_child(instance=page)
page_not_shown = SimplePage(title="Test not shown", content="hello")
self.root_page.add_child(instance=page_not_shown)
def filter_pages(pages, request):
return pages.filter(id=page.id)
with self.register_hook('construct_page_chooser_queryset', filter_pages):
response = self.get({'q': 'Test'})
self.assertEqual(len(response.context['pages']), 1)
self.assertEqual(response.context['pages'][0].specific, page)
class TestAutomaticRootPageDetection(TestCase, WagtailTestUtils):
def setUp(self):
self.tree_root = Page.objects.get(id=1)
self.home_page = Page.objects.get(id=2)
self.about_page = self.home_page.add_child(instance=SimplePage(
title='About', content='About Foo'))
self.contact_page = self.about_page.add_child(instance=SimplePage(
title='Contact', content='Content Foo'))
self.people_page = self.about_page.add_child(instance=SimplePage(
title='People', content='The people of Foo'))
self.event_index = self.make_event_section('Events')
self.login()
def make_event_section(self, name):
event_index = self.home_page.add_child(instance=EventIndex(
title=name))
event_index.add_child(instance=EventPage(
title='First Event',
location='Bar', audience='public',
cost='free', date_from='2001-01-01'))
event_index.add_child(instance=EventPage(
title='Second Event',
location='Baz', audience='public',
cost='free', date_from='2001-01-01'))
return event_index
def get_best_root(self, params={}):
response = self.client.get(reverse('wagtailadmin_choose_page'), params)
return response.context['parent_page'].specific
def test_no_type_filter(self):
self.assertEqual(self.get_best_root(), self.tree_root)
def test_type_page(self):
self.assertEqual(
self.get_best_root({'page_type': 'wagtailcore.Page'}),
self.tree_root)
def test_type_eventpage(self):
"""
The chooser should start at the EventIndex that holds all the
EventPages.
"""
self.assertEqual(
self.get_best_root({'page_type': 'tests.EventPage'}),
self.event_index)
def test_type_eventpage_two_indexes(self):
"""
The chooser should start at the home page, as there are two
EventIndexes with EventPages.
"""
self.make_event_section('Other events')
self.assertEqual(
self.get_best_root({'page_type': 'tests.EventPage'}),
self.home_page)
def test_type_simple_page(self):
"""
The chooser should start at the home page, as all SimplePages are
directly under it
"""
self.assertEqual(
self.get_best_root({'page_type': 'tests.BusinessIndex'}),
self.tree_root)
def test_type_missing(self):
"""
The chooser should start at the root, as there are no BusinessIndexes
"""
self.assertEqual(
self.get_best_root({'page_type': 'tests.BusinessIndex'}),
self.tree_root)
class TestChooserExternalLink(TestCase, WagtailTestUtils):
def setUp(self):
self.login()
def get(self, params={}):
return self.client.get(reverse('wagtailadmin_choose_page_external_link'), params)
def post(self, post_data={}, url_params={}):
url = reverse('wagtailadmin_choose_page_external_link')
if url_params:
url += '?' + urlencode(url_params)
return self.client.post(url, post_data)
def test_simple(self):
response = self.get()
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/external_link.html')
def test_prepopulated_form(self):
response = self.get({'link_text': 'Torchbox', 'link_url': 'https://torchbox.com/'})
self.assertEqual(response.status_code, 200)
self.assertContains(response, 'Torchbox')
self.assertContains(response, 'https://torchbox.com/')
def test_create_link(self):
response = self.post({'url': 'http://www.example.com/', 'link_text': 'example'})
self.assertEqual(response.status_code, 200)
response_json = json.loads(response.content.decode())
self.assertEqual(response_json['step'], 'external_link_chosen')
self.assertEqual(response_json['result']['url'], "http://www.example.com/")
self.assertEqual(response_json['result']['title'], "example") # When link text is given, it is used
self.assertEqual(response_json['result']['prefer_this_title_as_link_text'], True)
def test_create_link_without_text(self):
response = self.post({'url': 'http://www.example.com/'})
self.assertEqual(response.status_code, 200)
response_json = json.loads(response.content.decode())
self.assertEqual(response_json['step'], 'external_link_chosen')
self.assertEqual(response_json['result']['url'], "http://www.example.com/")
self.assertEqual(response_json['result']['title'], "http://www.example.com/") # When no text is given, it uses the url
self.assertEqual(response_json['result']['prefer_this_title_as_link_text'], False)
def test_notice_changes_to_link_text(self):
response = self.post(
{'url': 'http://www.example.com/', 'link_text': 'example'}, # POST data
{'link_url': 'http://old.example.com/', 'link_text': 'example'} # GET params - initial data
)
result = json.loads(response.content.decode())['result']
self.assertEqual(result['url'], "http://www.example.com/")
self.assertEqual(result['title'], "example")
# no change to link text, so prefer the existing link/selection content where available
self.assertEqual(result['prefer_this_title_as_link_text'], False)
response = self.post(
{'url': 'http://www.example.com/', 'link_text': 'new example'}, # POST data
{'link_url': 'http://old.example.com/', 'link_text': 'example'} # GET params - initial data
)
result = json.loads(response.content.decode())['result']
self.assertEqual(result['url'], "http://www.example.com/")
self.assertEqual(result['title'], "new example")
# link text has changed, so tell the caller to use it
self.assertEqual(result['prefer_this_title_as_link_text'], True)
def test_invalid_url(self):
response = self.post({'url': 'ntp://www.example.com', 'link_text': 'example'})
self.assertEqual(response.status_code, 200)
response_json = json.loads(response.content.decode())
self.assertEqual(response_json['step'], 'external_link') # indicates failure / show error message
self.assertContains(response, "Enter a valid URL.")
def test_allow_local_url(self):
response = self.post({'url': '/admin/', 'link_text': 'admin'})
self.assertEqual(response.status_code, 200)
response_json = json.loads(response.content.decode())
self.assertEqual(response_json['step'], 'external_link_chosen') # indicates success / post back to calling page
self.assertEqual(response_json['result']['url'], "/admin/")
self.assertEqual(response_json['result']['title'], "admin")
class TestChooserEmailLink(TestCase, WagtailTestUtils):
def setUp(self):
self.login()
def get(self, params={}):
return self.client.get(reverse('wagtailadmin_choose_page_email_link'), params)
def post(self, post_data={}, url_params={}):
url = reverse('wagtailadmin_choose_page_email_link')
if url_params:
url += '?' + urlencode(url_params)
return self.client.post(url, post_data)
def test_simple(self):
response = self.get()
self.assertEqual(response.status_code, 200)
self.assertTemplateUsed(response, 'wagtailadmin/chooser/email_link.html')
def test_prepopulated_form(self):
response = self.get({'link_text': 'Example', 'link_url': 'example@example.com'})
self.assertEqual(response.status_code, 200)
self.assertContains(response, 'Example')
self.assertContains(response, 'example@example.com')
def test_create_link(self):
response = self.post({'email_address': 'example@example.com', 'link_text': 'contact'})
result = json.loads(response.content.decode())['result']
self.assertEqual(result['url'], "mailto:example@example.com")
self.assertEqual(result['title'], "contact") # When link text is given, it is used
self.assertEqual(result['prefer_this_title_as_link_text'], True)
def test_create_link_without_text(self):
response = self.post({'email_address': 'example@example.com'})
result = json.loads(response.content.decode())['result']
self.assertEqual(result['url'], "mailto:example@example.com")
self.assertEqual(result['title'], "example@example.com") # When no link text is given, it uses the email
self.assertEqual(result['prefer_this_title_as_link_text'], False)
def test_notice_changes_to_link_text(self):
response = self.post(
{'email_address': 'example2@example.com', 'link_text': 'example'}, # POST data
{'link_url': 'example@example.com', 'link_text': 'example'} # GET params - initial data
)
result = json.loads(response.content.decode())['result']
self.assertEqual(result['url'], "mailto:example2@example.com")
self.assertEqual(result['title'], "example")
# no change to link text, so prefer the existing link/selection content where available
self.assertEqual(result['prefer_this_title_as_link_text'], False)
response = self.post(
{'email_address': 'example2@example.com', 'link_text': 'new example'}, # POST data
{'link_url': 'example@example.com', 'link_text': 'example'} # GET params - initial data
)
result = json.loads(response.content.decode())['result']
self.assertEqual(result['url'], "mailto:example2@example.com")
self.assertEqual(result['title'], "new example")
# link text has changed, so tell the caller to use it
self.assertEqual(result['prefer_this_title_as_link_text'], True)
class TestCanChoosePage(TestCase, WagtailTestUtils):
fixtures = ['test.json']
def setUp(self):
self.user = self.login()
self.permission_proxy = UserPagePermissionsProxy(self.user)
self.desired_classes = (Page, )
def test_can_choose_page(self):
homepage = Page.objects.get(url_path='/home/')
result = can_choose_page(homepage, self.permission_proxy, self.desired_classes)
self.assertTrue(result)
def test_with_user_no_permission(self):
homepage = Page.objects.get(url_path='/home/')
# event editor does not have permissions on homepage
event_editor = get_user_model().objects.get(username='eventeditor')
permission_proxy = UserPagePermissionsProxy(event_editor)
result = can_choose_page(homepage, permission_proxy, self.desired_classes, user_perm='copy_to')
self.assertFalse(result)
def test_with_can_choose_root(self):
root = Page.objects.get(url_path='/')
result = can_choose_page(root, self.permission_proxy, self.desired_classes, can_choose_root=True)
self.assertTrue(result)
def test_with_can_not_choose_root(self):
root = Page.objects.get(url_path='/')
result = can_choose_page(root, self.permission_proxy, self.desired_classes, can_choose_root=False)
self.assertFalse(result)
| 40.627036 | 127 | 0.656404 | 3,011 | 24,945 | 5.244437 | 0.097974 | 0.072193 | 0.07137 | 0.047749 | 0.819771 | 0.7914 | 0.743588 | 0.72326 | 0.700082 | 0.673232 | 0 | 0.009786 | 0.221648 | 24,945 | 613 | 128 | 40.693312 | 0.803513 | 0.082862 | 0 | 0.602273 | 0 | 0 | 0.166865 | 0.059878 | 0 | 0 | 0 | 0 | 0.277273 | 1 | 0.161364 | false | 0 | 0.020455 | 0.020455 | 0.231818 | 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 | 0 | 0 | 0 | 6 |
d4c6a3442e55752952b4592675ca1c9a598aa516 | 214 | py | Python | modpoll/__init__.py | gavinying/modpoll | 6f76b5eb93670dc19a7036f5dd9632a4a2776d84 | [
"MIT"
] | 2 | 2021-09-25T00:35:21.000Z | 2021-12-04T15:47:26.000Z | modpoll/__init__.py | gavinying/modpoll | 6f76b5eb93670dc19a7036f5dd9632a4a2776d84 | [
"MIT"
] | 1 | 2022-03-28T23:16:08.000Z | 2022-03-29T02:14:32.000Z | modpoll/__init__.py | gavinying/modpoll | 6f76b5eb93670dc19a7036f5dd9632a4a2776d84 | [
"MIT"
] | null | null | null | try:
import importlib.metadata as importlib_metadata
except ModuleNotFoundError:
import importlib_metadata
__version__ = importlib_metadata.version(__name__)
from .main import app
from . import arg_parser
| 23.777778 | 51 | 0.82243 | 25 | 214 | 6.56 | 0.56 | 0.414634 | 0.280488 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.135514 | 214 | 8 | 52 | 26.75 | 0.886486 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.714286 | 0 | 0.714286 | 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 | 0 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
d4d58c0ed7b053b22b2bcecee7c0c4f0dbc292b7 | 9,890 | py | Python | src/python/metrics/fuzzer_stats_schema.py | eepeep/clusterfuzz | b48371466493ba1f46bd2769f01eadcf49d0cff1 | [
"Apache-2.0"
] | 3 | 2020-12-30T07:00:55.000Z | 2021-03-16T10:55:05.000Z | src/python/metrics/fuzzer_stats_schema.py | eepeep/clusterfuzz | b48371466493ba1f46bd2769f01eadcf49d0cff1 | [
"Apache-2.0"
] | 34 | 2020-08-18T18:47:00.000Z | 2021-07-14T07:47:35.000Z | src/python/metrics/fuzzer_stats_schema.py | eepeep/clusterfuzz | b48371466493ba1f46bd2769f01eadcf49d0cff1 | [
"Apache-2.0"
] | null | null | null | # Copyright 2019 Google LLC
#
# 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.
"""Fuzzer stats schema."""
_COMMON_COLUMNS = [{
'mode': 'NULLABLE',
'name': 'kind',
'type': 'STRING'
}, {
'mode': 'NULLABLE',
'name': 'timestamp',
'type': 'FLOAT'
}, {
'mode': 'REPEATED',
'name': 'command',
'type': 'STRING'
}, {
'mode': 'NULLABLE',
'name': 'build_revision',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'fuzzer',
'type': 'STRING'
}, {
'mode': 'NULLABLE',
'name': 'job',
'type': 'string'
}, {
'mode': 'NULLABLE',
'name': 'source',
'type': 'STRING'
}]
_AFL_SCHEMA = [{
'mode': 'NULLABLE',
'name': 'strategy_fast_cal_random',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'dict_used',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'new_units_generated',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'crash_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'manual_dict_size',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'timeout_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'stability',
'type': 'FLOAT'
}, {
'mode': 'NULLABLE',
'name': 'corpus_crash_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'startup_crash_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'timeout_limit',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_corpus_subset',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'bad_instrumentation',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'average_exec_per_sec',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_fast_cal_manual',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'corpus_size',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'new_units_added',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'log_lines_unwanted',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'actual_duration',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'expected_duration',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'oom_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'log_lines_ignored',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_corpus_mutations',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'read_units',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'max_len',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'log_lines_from_engine',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_recommended_dict',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'exception_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'slow_unit_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_value_profile',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'recommended_dict_size',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'leak_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_corpus_mutations_radamsa',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_corpus_mutations_ml_rnn',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_selection_method',
'type': 'STRING'
}] + _COMMON_COLUMNS
_LIBFUZZER_SCHEMA = [{
'mode': 'NULLABLE',
'name': 'max_len',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'log_lines_ignored',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'feature_coverage',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'average_exec_per_sec',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'crash_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'expected_duration',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'leak_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_corpus_subset',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_dataflow_tracing',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'number_of_executed_units',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'slow_unit_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_corpus_mutations_radamsa',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'log_lines_from_engine',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'merge_edge_coverage',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_random_max_len',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'peak_rss_mb',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'corpus_crash_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'startup_crash_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'edge_coverage',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'new_units_generated',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'initial_feature_coverage',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'manual_dict_size',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_fork',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'bad_instrumentation',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'initial_edge_coverage',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'timeout_limit',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'dict_used',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'fuzzing_time_percent',
'type': 'FLOAT'
}, {
'name': 'new_features',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'log_lines_unwanted',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'slowest_unit_time_sec',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'edges_total',
'type': 'INTEGER'
}, {
'name': 'new_edges',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'timeout_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_corpus_mutations_ml_rnn',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'slow_units_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'oom_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_selection_method',
'type': 'STRING'
}, {
'mode': 'NULLABLE',
'name': 'recommended_dict_size',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'actual_duration',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_value_profile',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_recommended_dict',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'corpus_size',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'new_units_added',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_mutator_plugin',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_mutator_plugin_radamsa',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'corpus_rss_mb',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'merge_new_files',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'merge_new_features',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_handle_unstable',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_weighted_mutations',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'strategy_corpus_mutations',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'read_units',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'seed_corpus_rss',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'exception_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'edge_coverage_count',
'type': 'INTEGER'
}] + _COMMON_COLUMNS
_HONGGFUZZ_SCHEMA = [{
'mode': 'NULLABLE',
'name': 'timeout_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'branch_coverage_percent',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'guard_nb',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'crashes_count',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'new_units_added',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'slowest_unit_ms',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'peak_rss_mb',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'iterations',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'time',
'type': 'INTEGER'
}, {
'mode': 'NULLABLE',
'name': 'speed',
'type': 'INTEGER'
}] + _COMMON_COLUMNS
_SCHEMA = {
'afl': _AFL_SCHEMA,
'honggfuzz': _HONGGFUZZ_SCHEMA,
'libFuzzer': _LIBFUZZER_SCHEMA,
}
def get(engine_name):
"""Get the schema for an engine name."""
schema = _SCHEMA.get(engine_name)
if not schema:
return None
return {'fields': schema}
| 21.314655 | 74 | 0.542467 | 953 | 9,890 | 5.421826 | 0.185729 | 0.241533 | 0.322044 | 0.418425 | 0.790014 | 0.738533 | 0.69402 | 0.649506 | 0.631508 | 0.631508 | 0 | 0.001055 | 0.233266 | 9,890 | 463 | 75 | 21.360691 | 0.680338 | 0.061173 | 0 | 0.868182 | 0 | 0 | 0.501943 | 0.082704 | 0 | 0 | 0 | 0 | 0 | 1 | 0.002273 | false | 0 | 0 | 0 | 0.006818 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 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 | 6 |
d4d8797c7869b82c16f4d579cc51996a0b078ef2 | 6,462 | py | Python | pytests/rebalance/negative_rebalance_tests.py | ramalingam-cb/testrunner | 81cea7a5a493cf0c67fca7f97c667cd3c6ad2142 | [
"Apache-2.0"
] | null | null | null | pytests/rebalance/negative_rebalance_tests.py | ramalingam-cb/testrunner | 81cea7a5a493cf0c67fca7f97c667cd3c6ad2142 | [
"Apache-2.0"
] | null | null | null | pytests/rebalance/negative_rebalance_tests.py | ramalingam-cb/testrunner | 81cea7a5a493cf0c67fca7f97c667cd3c6ad2142 | [
"Apache-2.0"
] | null | null | null | import time
from threading import Thread
from rebalance.rebalance_base import RebalanceBaseTest
from membase.api.exception import RebalanceFailedException
from membase.api.rest_client import RestConnection, RestHelper
from couchbase_helper.documentgenerator import BlobGenerator
from membase.helper.rebalance_helper import RebalanceHelper
from remote.remote_util import RemoteMachineShellConnection
from membase.helper.cluster_helper import ClusterOperationHelper
class NegativeRebalanceTests(RebalanceBaseTest):
def setUp(self):
super(NegativeRebalanceTests, self).setUp()
def tearDown(self):
super(NegativeRebalanceTests, self).tearDown()
def pass_no_arguments(self):
try:
self.rest = RestConnection(self.master)
status = self.rest.rebalance(otpNodes=[], ejectedNodes=[])
self.assertFalse(status," Rebalance did not fail as expected")
except Exception, ex:
self.assertTrue(("empty_known_nodes" in str(ex)),"Rebalance did not fail as expected, got an unexpected exception {0}".format(ex))
def add_no_nodes(self):
self.rest = RestConnection(self.master)
nodes = self.get_nodes(self.master)
status = self.rest.rebalance(otpNodes=nodes, ejectedNodes=[])
self.assertTrue(status," Rebalance did not fail as expected")
def remove_all_nodes(self):
try:
self.rest = RestConnection(self.master)
nodes = self.get_nodes(self.master)
status = self.rest.rebalance(otpNodes=nodes, ejectedNodes=nodes)
self.assertTrue(status," Rebalance did not fail as expected")
except Exception, ex:
self.assertTrue(("No active nodes" in str(ex)),"Rebalance did not fail as expected, got an unexpected exception {0}".format(ex))
def pass_non_existant_nodes(self):
try:
self.rest = RestConnection(self.master)
status = self.rest.rebalance(otpNodes=['non-existant'], ejectedNodes=['non-existant'])
self.assertFalse(status," Rebalance did not fail as expected")
except Exception, ex:
self.assertTrue(("mismatch" in str(ex)),"Rebalance did not fail as expected, got an unexpected exception {0}".format(ex))
def non_existant_recovery_bucket(self):
try:
self.rest = RestConnection(self.master)
nodes = self.get_nodes(self.master)
chosen = RebalanceHelper.pick_nodes(self.master, howmany=1)
# Mark Node for failover
success_failed_over = self.rest.fail_over(chosen[0].id, graceful=False)
# Mark Node for full recovery
if success_failed_over:
self.rest.set_recovery_type(otpNode=chosen[0].id, recoveryType="delta")
status = self.rest.rebalance(otpNodes=nodes, ejectedNodes=nodes[1:],deltaRecoveryBuckets =['non-existant'])
self.assertFalse(status," Rebalance did not fail as expected")
except Exception, ex:
self.assertTrue(("deltaRecoveryNotPossible" in str(ex)),"Rebalance did not fail as expected, got an unexpected exception {0}".format(ex))
def not_ready_for_recovery(self):
try:
self.rest = RestConnection(self.master)
nodes = self.get_nodes(self.master)
chosen = RebalanceHelper.pick_nodes(self.master, howmany=1)
# Mark Node for failover
success_failed_over = self.rest.fail_over(chosen[0].id, graceful=False)
self.stop_server(self.servers[1])
# Mark Node for full recovery
if success_failed_over:
self.rest.set_recovery_type(otpNode=chosen[0].id, recoveryType="delta")
status = self.rest.rebalance(otpNodes=nodes, ejectedNodes=nodes[1:])
self.assertFalse(status," Rebalance did not fail as expected ")
finally:
self.start_server(self.servers[1])
def node_down_cannot_rebalance(self):
try:
self.rest = RestConnection(self.master)
nodes = self.get_nodes(self.master)
self.stop_server(self.servers[1])
status = self.rest.rebalance(otpNodes=nodes, ejectedNodes=nodes[1:])
self.assertFalse(status," Rebalance did not fail as expected ")
finally:
self.start_server(self.servers[1])
def rebalance_running_cannot_rebalance(self):
self.rest = RestConnection(self.master)
nodes = self.get_nodes(self.master)
status = self.rest.rebalance(otpNodes=nodes, ejectedNodes=nodes[1:])
status = self.rest.rebalance(otpNodes=nodes, ejectedNodes=nodes[1:])
self.assertFalse(status,"Rebalance did not fail as expected ")
def rebalance_graceful_failover_running_cannot_rebalance(self):
self.rest = RestConnection(self.master)
nodes = self.get_nodes(self.master)
chosen = RebalanceHelper.pick_nodes(self.master, howmany=1)
success_failed_over = self.rest.fail_over(chosen[0].id, graceful=True)
status = self.rest.rebalance(otpNodes=nodes,ejectedNodes=nodes[1:])
self.assertFalse(status," Rebalance did not fail as expected ")
def get_nodes(self,server):
self.rest = RestConnection(self.master)
nodes = self.rest.node_statuses()
nodes = [node.id for node in nodes]
return nodes
def stop_server(self, node):
""" Method to stop a server which is subject to failover """
for server in self.servers:
if server.ip == node.ip:
shell = RemoteMachineShellConnection(server)
if shell.is_couchbase_installed():
shell.stop_couchbase()
self.log.info("Couchbase stopped")
else:
shell.stop_membase()
self.log.info("Membase stopped")
shell.disconnect()
def start_server(self, node):
""" Method to stop a server which is subject to failover """
for server in self.servers:
if server.ip == node.ip:
shell = RemoteMachineShellConnection(server)
if shell.is_couchbase_installed():
shell.start_couchbase()
self.log.info("Couchbase started")
else:
shell.start_membase()
self.log.info("Membase started")
shell.disconnect()
break | 46.826087 | 149 | 0.649644 | 739 | 6,462 | 5.576455 | 0.163735 | 0.050473 | 0.047319 | 0.059937 | 0.756612 | 0.730405 | 0.71803 | 0.708081 | 0.704926 | 0.689638 | 0 | 0.004568 | 0.25472 | 6,462 | 138 | 150 | 46.826087 | 0.851121 | 0.01563 | 0 | 0.586207 | 0 | 0 | 0.121853 | 0.003848 | 0 | 0 | 0 | 0 | 0.112069 | 0 | null | null | 0.017241 | 0.077586 | 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 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
077fb3a131881bef3305ea827ab60ee473bd0a7c | 27 | py | Python | skin.py | JoeSuber/dialtones | 53a2dba4f635cbe0550e92f8a67be874ea6b397f | [
"MIT"
] | null | null | null | skin.py | JoeSuber/dialtones | 53a2dba4f635cbe0550e92f8a67be874ea6b397f | [
"MIT"
] | null | null | null | skin.py | JoeSuber/dialtones | 53a2dba4f635cbe0550e92f8a67be874ea6b397f | [
"MIT"
] | null | null | null | from lizardhide import *
| 6.75 | 24 | 0.740741 | 3 | 27 | 6.666667 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.222222 | 27 | 3 | 25 | 9 | 0.952381 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
078689023f093cb8c8982f4465b2e74551bbb207 | 51,022 | py | Python | rMATS_paired.py | Xinglab/rMATS-STAT | 8e5d9e88571bd1df981329d2b4ad7858a387822f | [
"BSD-4-Clause-UC"
] | 11 | 2016-12-09T13:40:45.000Z | 2020-03-13T13:51:54.000Z | rMATS_paired.py | Xinglab/rMATS-STAT | 8e5d9e88571bd1df981329d2b4ad7858a387822f | [
"BSD-4-Clause-UC"
] | 5 | 2017-06-19T16:18:12.000Z | 2020-05-22T04:07:26.000Z | rMATS_paired.py | Xinglab/rMATS-STAT | 8e5d9e88571bd1df981329d2b4ad7858a387822f | [
"BSD-4-Clause-UC"
] | 11 | 2016-09-01T19:26:36.000Z | 2020-04-20T20:48:50.000Z | import re,os,sys,warnings,numpy,scipy,math,itertools;
from scipy import stats;
from numpy import *;
from multiprocessing import Pool;
from scipy.optimize import fmin_cobyla
from scipy.optimize import fmin_l_bfgs_b
from math import log;
numpy.random.seed(1231);
warnings.filterwarnings('ignore');
#MultiProcessor
MultiProcessor=1;
if len(sys.argv)>=4:
MultiProcessor=int(sys.argv[3]);
#splicing difference cutoff
cutoff=0.1;
if len(sys.argv)>=5:
cutoff=float(sys.argv[4]);
#binomial MLE optimization functions
def logit(x):
if x<0.01:
x=0.01;
if x>0.99:
x=0.99;
return(log(x/(1-x)));
def veclogit(x):
res=[];
for i in x:
res.append(logit(i));
return(res);
#START: log Marginal distribution for the paired analysis
#this is the full log likelihood function within the Laplace approximiation of the marginal distribution of paired replicates
#for one exon only
def myfunc_marginal_full_paired(x, *args):
beta1=x[0];beta2=x[1];rho=x[2];var1=x[3];var2=x[4];
I1=args[0];S1=args[1];psi1=args[2];
I2=args[3];S2=args[4];psi2=args[5];
inclusion_length=args[6];skipping_length=args[7];
sigma=matrix([[var1,rho*sqrt(var1)*sqrt(var2)],[rho*sqrt(var1)*sqrt(var2),var2]]);
sigma_inv=sigma.getI();
vec=matrix([[logit(psi1)-logit(beta1)],[logit(psi2)-logit(beta2)]]);
new_psi1=inclusion_length*psi1/(inclusion_length*psi1+skipping_length*(1-psi1));
new_psi2=inclusion_length*psi2/(inclusion_length*psi2+skipping_length*(1-psi2));
#print('vec');print(vec);
temp1=0;temp2=0;temp3=0;temp4=0;
temp1+=-0.5*log(abs(linalg.det(sigma)));
temp2+=-0.5*dot(dot(vec.getT(),sigma_inv),vec);
temp3+=I1*log(new_psi1)+S1*log(1-new_psi1)+log(psi1)+log(1-psi1);
temp4+=I2*log(new_psi2)+S2*log(1-new_psi2)+log(psi2)+log(1-psi2);
return(temp1+temp2+temp3+temp4);
#return the det of sigma1 matrix for one exon
def myfunc_marginal_sigma1_paired(x, *args):
beta1=x[0];beta2=x[1];rho=x[2];var1=x[3];var2=x[4];
I1=args[0];S1=args[1];psi1=args[2];
I2=args[3];S2=args[4];psi2=args[5];
inclusion_length=args[6];skipping_length=args[7];
sigma=matrix([[var1,rho*sqrt(var1)*sqrt(var2)],[rho*sqrt(var1)*sqrt(var2),var2]]);
sigma_inv=sigma.getI();
vec=matrix([[logit(psi1)-logit(beta1)],[logit(psi2)-logit(beta2)]]);
vec_der=matrix([[1/psi1/(1-psi1)],[1/psi2/(1-psi2)]]);
vec_2der=matrix([[(-1+2*psi1)/pow(psi1,2)/pow(1-psi1,2)],[(-1+2*psi2)/pow(psi2,2)/pow(1-psi2,2)]]);
new_psi1=inclusion_length*psi1/(inclusion_length*psi1+skipping_length*(1-psi1));
new_psi2=inclusion_length*psi2/(inclusion_length*psi2+skipping_length*(1-psi2));
a_apostrophe=sigma_inv[0,0]*pow(vec_der[0,0],2)+(sigma_inv[0,0]*vec[0,0]+sigma_inv[0,1]*vec[1,0])*vec_2der[0,0];
a_apostrophe+=-1*pow(psi1,-2)+pow(1-psi1,-2);
a_apostrophe+=-1*I1*skipping_length*((2*inclusion_length+skipping_length)*psi1+skipping_length*(1-psi1))/pow(psi1,2)/pow(inclusion_length*psi1+skipping_length*(1-psi1),2);
a_apostrophe+=-1*S1*inclusion_length*((inclusion_length+2*skipping_length)*(1-psi1)+inclusion_length*psi1)/pow(1-psi1,2)/pow(inclusion_length*psi1+skipping_length*(1-psi1),2);
b_apostrophe=sigma_inv[0,1]*vec_der[0,0]*vec_der[1,0];
d_apostrophe=sigma_inv[1,1]*pow(vec_der[1,0],2)+(sigma_inv[1,1]*vec[1,0]+sigma_inv[0,1]*vec[0,0])*vec_2der[1,0];
d_apostrophe+=-1*pow(psi2,-2)+pow(1-psi2,-2);
d_apostrophe+=-1*I2*skipping_length*((2*inclusion_length+skipping_length)*psi2+skipping_length*(1-psi2))/pow(psi2,2)/pow(inclusion_length*psi2+skipping_length*(1-psi2),2);
d_apostrophe+=-1*S2*inclusion_length*((inclusion_length+2*skipping_length)*(1-psi2)+inclusion_length*psi2)/pow(1-psi2,2)/pow(inclusion_length*psi2+skipping_length*(1-psi2),2);
sigma_1=matrix([[a_apostrophe,b_apostrophe],[b_apostrophe,d_apostrophe]]);
return(-1*sigma_1);
def myfunc_marginal_paired_rho0(x, *args):
beta1=x[0];beta2=x[1];rho=0;
I1=args[0];S1=args[1];psi1=args[2];
I2=args[3];S2=args[4];psi2=args[5];
inclusion_length=args[6];skipping_length=args[7];
var1=args[8];var2=args[9];
sum=0;temp1=matrix([[1]]);temp2=0;
sum_temp1=0;sum_temp2=0;
for i in range(len(psi1)):
temp1=myfunc_marginal_sigma1_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
temp2=myfunc_marginal_full_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
sum+=(-0.5*log(abs(linalg.det(temp1))+1)+temp2);
sum_temp1+=temp1;sum_temp2+=temp2;
return(-1*sum);
def myfunc_marginal_der_paired_rho0(x, *args):
beta1=x[0];beta2=x[1];rho=0;
I1=args[0];S1=args[1];psi1=args[2];
I2=args[3];S2=args[4];psi2=args[5];
inclusion_length=args[6];skipping_length=args[7];
var1=args[8];var2=args[9];
sum=array([0.0,0.0]);
sum_temp1=array([0.0,0.0]);sum_temp2=array([0.0,0.0]);
temp1=0;temp2=0;
for i in range(len(psi1)):
temp1=myfunc_marginal_sigma1_der_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length,1);
temp2=myfunc_marginal_full_der_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
sum_temp1+=temp1[0:2];sum_temp2+=temp2[0:2];
sum=sum+temp1[0:2]+temp2[0:2];
sigma1=myfunc_marginal_sigma1_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
#if len(args)>10:
# ofile=open('test_output.txt','a');ofile.write(str(temp1[0])+'\t'+str(temp1[1])+'\t'+str(psi1[i])+'\t'+str(psi2[i])+'\t'+str(linalg.det(sigma1))+'\t'+str(-0.5/(linalg.det(sigma1)+1))+'\t'+str(list(sigma1))+'\n');
return(-1*array(sum));
def myfunc_marginal_paired_rho(x, *args):
beta1=x[0];beta2=x[1];rho=x[2];
I1=args[0];S1=args[1];psi1=args[2];
I2=args[3];S2=args[4];psi2=args[5];
inclusion_length=args[6];skipping_length=args[7];
var1=args[8];var2=args[9];
sum=0;temp1=matrix([[1]]);temp2=0;
sum_temp1=0;sum_temp2=0;
for i in range(len(psi1)):
temp1=myfunc_marginal_sigma1_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
temp2=myfunc_marginal_full_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
sum+=(-0.5*log(abs(linalg.det(temp1))+1)+temp2);
return(-1*sum);
def myfunc_marginal_der_paired_rho(x, *args):
beta1=x[0];beta2=x[1];rho=x[2];
I1=args[0];S1=args[1];psi1=args[2];
I2=args[3];S2=args[4];psi2=args[5];
inclusion_length=args[6];skipping_length=args[7];
var1=args[8];var2=args[9];
sum=array([0.0,0.0,0.0]);
sum_temp1=array([0.0,0.0,0.0,0.0,0.0]);sum_temp2=array([0.0,0.0,0.0,0.0,0.0]);
temp1=0;temp2=0;
for i in range(len(psi1)):
temp1=myfunc_marginal_sigma1_der_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
temp2=myfunc_marginal_full_der_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
sum=sum+(temp1[0:3]+temp2[0:3]);
return(-1*array(sum));
def myfunc_marginal_paired_fixvar(x, *args):
beta1=x[0];beta2=x[1];
#beta1=x[0];beta2=args[11];
#beta2=x[0];beta1=args[11];
rho=args[8];var1=args[9];var2=args[10];
I1=args[0];S1=args[1];psi1=args[2];
I2=args[3];S2=args[4];psi2=args[5];
inclusion_length=args[6];skipping_length=args[7];
sum=0;temp1=matrix([[1]]);temp2=0;
sum_temp1=0;sum_temp2=0;
#print('fixvar_beta1');print(beta1);print('fixvar_beta2');print(beta2);
for i in range(len(psi1)):
temp1=myfunc_marginal_sigma1_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
temp2=myfunc_marginal_full_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
sum+=(0.5*log(abs(linalg.det(temp1))+1)-temp2);
sum_temp1+=temp1;sum_temp2+=temp2;
#print('sum_temp1');print(sum_temp1);print('sum_temp2');print(sum_temp2);print('sum');print(sum);
return(sum);
def myfunc_marginal_der_paired_fixvar(x, *args):
beta1=x[0];beta2=x[1];
#beta1=x[0];beta2=args[11];
#beta2=x[0];beta1=args[11];
rho=args[8];var1=args[9];var2=args[10];
I1=args[0];S1=args[1];psi1=args[2];
I2=args[3];S2=args[4];psi2=args[5];
inclusion_length=args[6];skipping_length=args[7];
sum=array([0.0,0.0]);
#sum_temp1=array([0.0,0.0,0.0,0.0,0.0]);sum_temp2=array([0.0,0.0,0.0,0.0,0.0]);
temp1=0;temp2=0;
for i in range(len(psi1)):
temp1=myfunc_marginal_sigma1_der_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
temp2=myfunc_marginal_full_der_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
#sum_temp1=sum_temp1-1*temp1;sum_temp2=sum_temp2-1*temp2;
sum=sum+(-1*temp1[0:2]-1*temp2[0:2]);
#print('sum_temp1_der');print(sum_temp1);print('sum_temp2_der');print(sum_temp2);
return(array(sum));
def myfunc_marginal_paired(x, *args):
beta1=x[0];beta2=x[1];rho=x[2];var1=x[3];var2=x[4];
I1=args[0];S1=args[1];psi1=args[2];
I2=args[3];S2=args[4];psi2=args[5];
inclusion_length=args[6];skipping_length=args[7];
sum=0;temp1=matrix([[1]]);temp2=0;
for i in range(len(psi1)):
temp1=myfunc_marginal_sigma1_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
temp2=myfunc_marginal_full_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
sum+=(-0.5*log(abs(linalg.det(temp1))+1)+temp2);
return(-1*sum);
#END: log Marginal distribution for the paired analysis
#START: Derivative of the log Marginal distribution for the paired analysis
def myfunc_marginal_full_der_paired(x, *args):
beta1=x[0];beta2=x[1];rho=x[2];var1=x[3];var2=x[4];
I1=args[0];S1=args[1];psi1=args[2];
I2=args[3];S2=args[4];psi2=args[5];
inclusion_length=args[6];skipping_length=args[7];
sigma=matrix([[var1,rho*sqrt(var1)*sqrt(var2)],[rho*sqrt(var1)*sqrt(var2),var2]]);
sigma_inv=sigma.getI();
vec=matrix([[logit(psi1)-logit(beta1)],[logit(psi2)-logit(beta2)]]);
temp=-1*dot(transpose(vec),dot(sigma_inv,matrix([[-1/beta1/(1-beta1),0],[0,-1/beta2/(1-beta2)]])));
temp1=temp[0,0];temp2=temp[0,1];
diag=(-2*rho-1+pow(rho,2))/sqrt(var1)/sqrt(var2);
temp3=-0.5*dot(transpose(vec),dot(matrix([[2*rho/var1,diag],[diag,2*rho/var2]]),vec))/pow(1-rho*rho,2)-0.5/linalg.det(sigma)*(-1*var1*var2);
#temp4=(-1/pow(var1,2)*pow(vec[0,0],2)+rho/pow(var1,1.5)/pow(var2,0.5)*vec[0,0]*vec[1,0])/(1-rho*rho)+(1-rho*rho)*var2/linalg.det(sigma);
#temp5=(-1/pow(var2,2)*pow(vec[1,0],2)+rho/pow(var2,1.5)/pow(var1,0.5)*vec[0,0]*vec[1,0])/(1-rho*rho)+(1-rho*rho)*var1/linalg.det(sigma);
return(array([float(temp1),float(temp2),float(temp3)]));
def myfunc_marginal_sigma1_der_paired(x, *args):
beta1=x[0];beta2=x[1];rho=x[2];var1=x[3];var2=x[4];
I1=args[0];S1=args[1];psi1=args[2];
I2=args[3];S2=args[4];psi2=args[5];
inclusion_length=args[6];skipping_length=args[7];
sigma=matrix([[var1,rho*sqrt(var1)*sqrt(var2)],[rho*sqrt(var1)*sqrt(var2),var2]]);
sigma_inv=sigma.getI();
#print('sigma_inv');print(sigma_inv);
vec=matrix([[logit(psi1)-logit(beta1)],[logit(psi2)-logit(beta2)]]);
vec_der=matrix([[1/psi1/(1-psi1)],[1/psi2/(1-psi2)]]);
vec_2der=matrix([[(-1+2*psi1)/pow(psi1,2)/pow(1-psi1,2)],[(-1+2*psi2)/pow(psi2,2)/pow(1-psi2,2)]]);
sigma1=myfunc_marginal_sigma1_paired([beta1,beta2,rho,var1,var2],I1,S1,psi1,I2,S2,psi2,inclusion_length,skipping_length);
temp1=sigma_inv[0,0]*(-1/beta1/(1-beta1))*vec_2der[0,0]*sigma1[1,1]*(-1)+sigma_inv[0,1]*(-1/beta1/(1-beta1))*vec_2der[1,0]*sigma1[0,0]*(-1);
temp2=sigma_inv[1,1]*(-1/beta2/(1-beta2))*vec_2der[1,0]*sigma1[0,0]*(-1)+sigma_inv[0,1]*(-1/beta2/(1-beta2))*vec_2der[0,0]*sigma1[1,1]*(-1);
#temp1=(-1/var1/beta1/(1-beta1)*vec_2der[0,0])*sigma1[1,1]/(1-rho*rho)*(-1)-(rho/sqrt(var1)/sqrt(var2)/beta1/(1-beta1)*vec_2der[1,0])*sigma1[0,0]/(1-rho*rho);
#temp2=(-1/var2/beta2/(1-beta2)*vec_2der[1,0])*sigma1[0,0]/(1-rho*rho)*(-1)-(rho/sqrt(var1)/sqrt(var2)/beta2/(1-beta2)*vec_2der[0,0])*sigma1[1,1]/(1-rho*rho);
temp3=(-1/sqrt(var1)/sqrt(var2)*vec[1,0]*vec_2der[0,0])*sigma1[1,1]/(1-rho*rho)*(-1);
temp3+=(-1/sqrt(var1)/sqrt(var2)*vec[0,0]*vec_2der[1,0])*sigma1[0,0]/(1-rho*rho)*(-1);
temp3+=-2*(-1/sqrt(var1)/sqrt(var2)*vec_der[0,0]*vec_der[1,0])*sigma1[0,1]/(1-rho*rho)*(-1);
temp3+=4*rho/(1-rho*rho)*linalg.det(sigma1);
#print('test_der');print(linalg.det(sigma1));print(x);print(-0.5/(linalg.det(sigma1))*array([float(temp1),float(temp2),float(temp3)]));
#if len(args)>8:
# ofile=open('test_output_2.txt','a');ofile.write(str([float(temp1),float(temp2),float(temp3)])+'\n');
if linalg.det(sigma1)>0:
return(-0.5/(linalg.det(sigma1)+1)*array([float(temp1),float(temp2),float(temp3)]));
else:
return(-0.5/(linalg.det(sigma1)-1)*array([float(temp1),float(temp2),float(temp3)]));
def myfunc_marginal_der_paired(x, *args):
beta1=x[0];beta2=x[1];rho=x[2];var1=x[3];var2=x[4];
I1=args[0];S1=args[1];psi1=args[2];
I2=args[3];S2=args[4];psi2=args[5];
inclusion_length=args[6];skipping_length=args[7];
sum=array([0.0,0.0,0.0,0.0,0.0]);
sum_temp1=array([0.0,0.0,0.0,0.0,0.0]);sum_temp2=array([0.0,0.0,0.0,0.0,0.0]);
temp1=0;temp2=0;
for i in range(len(psi1)):
temp1=myfunc_marginal_sigma1_der_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
temp2=myfunc_marginal_full_der_paired([beta1,beta2,rho,var1,var2],I1[i],S1[i],psi1[i],I2[i],S2[i],psi2[i],inclusion_length,skipping_length);
sum_temp1=sum_temp1-1*temp1;sum_temp2=sum_temp2-1*temp2;
sum=sum+(-1*temp1-1*temp2);
return(array(sum[0:5]));
#END: Derivative of the log Marginal distribution for the paired analysis
#START: log-likelihood function of each individual replicate
def myfunc_individual_paired(x, *args):
psi1=x[0];psi2=x[1];
I1=args[0];S1=args[1];beta1=args[2];var1=args[3];
I2=args[4];S2=args[5];beta2=args[6];var2=args[7];
inclusion_length=args[8];skipping_length=args[9];
rho=args[10];
temp=myfunc_marginal_full_paired([beta1,beta2,rho,var1,var2],I1,S1,psi1,I2,S2,psi2,inclusion_length,skipping_length);
return(-1*temp);
def myfunc_individual_der_paired(x,*args):
psi1=x[0];psi2=x[1];
I1=args[0];S1=args[1];beta1=args[2];var1=args[3];
I2=args[4];S2=args[5];beta2=args[6];var2=args[7];
inclusion_length=args[8];skipping_length=args[9];
rho=args[10];
sigma=matrix([[var1,rho*sqrt(var1)*sqrt(var2)],[rho*sqrt(var1)*sqrt(var2),var2]]);
sigma_inv=sigma.getI();
vec=matrix([[logit(psi1)-logit(beta1)],[logit(psi2)-logit(beta2)]]);
vec_der=matrix([[1/psi1/(1-psi1)],[1/psi2/(1-psi2)]]);
new_psi1=inclusion_length*psi1/(inclusion_length*psi1+skipping_length*(1-psi1));
new_psi1_der=inclusion_length*skipping_length/pow(inclusion_length*psi1+skipping_length*(1-psi1),2);
new_psi2=inclusion_length*psi2/(inclusion_length*psi2+skipping_length*(1-psi2));
new_psi2_der=inclusion_length*skipping_length/pow(inclusion_length*psi2+skipping_length*(1-psi2),2);
temp1=0;temp2=0;
temp1+=-1*(sigma_inv[0,0]*vec[0,0]*vec_der[0,0]+sigma_inv[0,1]*vec_der[0,0]*vec[1,0]);
temp1+=1*(I1/new_psi1*new_psi1_der-S1/(1-new_psi1)*new_psi1_der+1/psi1-1/(1-psi1));
temp2+=-1*(sigma_inv[1,1]*vec[1,0]*vec_der[1,0]+sigma_inv[0,1]*vec_der[1,0]*vec[0,0]);
temp2+=1*(I2/new_psi2*new_psi2_der-S2/(1-new_psi2)*new_psi2_der+1/psi2-1/(1-psi2));
return(-1*array([temp1,temp2]));
#END: log-likelihood function of each individual replicate
def myfunc_multivar(x,*args):
psi1=args[0];psi2=args[1];var1=args[2];var2=args[3];
#print('psi1');print(psi1);print('psi2');print(psi2);
sum1=0;sum2=0;
for i in psi1:
sum1+=pow(logit(i)-logit(x[0]),2);
sum1=sum1/var1/2;
for i in psi2:
sum2+=pow(logit(i)-logit(x[1]),2);
sum2=sum2/var2/2;
return(sum1+sum2+0.1*0.5*(pow(rho,2))/(1-pow(rho,2))*(pow(stats.norm.ppf(x[0]),2)+pow(stats.norm.ppf(x[1]),2)-2*rho*stats.norm.ppf(x[0])*stats.norm.ppf(x[1])));
def myfunc_multivar_der(x,*args):
psi1=args[0];psi2=args[1];var1=args[2];var2=args[3];
sum1=0;sum2=0;
for i in psi1:
sum1+=-2*(logit(i)-logit(x[0]))/x[0]/(1-x[0]);
sum1=sum1/var1/2;
res1=sum1+0.1*0.5*(pow(rho,2))/(1-pow(rho,2))*(2*stats.norm.ppf(x[0])-2*rho*stats.norm.ppf(x[1]))/stats.norm.pdf(stats.norm.ppf(x[0]));
#print('1');print(x[1]);print(res1);print(stats.norm.pdf(stats.norm.ppf(x[0])));
for i in psi2:
sum2+=-2*(logit(i)-logit(x[1]))/x[1]/(1-x[1]);
sum2=sum2/var2/2;
res2=sum2+0.1*0.5*(pow(rho,2))/(1-pow(rho,2))*(2*stats.norm.ppf(x[1])-2*rho*stats.norm.ppf(x[0]))/stats.norm.pdf(stats.norm.ppf(x[1]));
return(numpy.array([res1,res2]));
def myfunc_1(x, *args):
psi1=args[0];psi2=args[1];var1=args[2];var2=args[3];
sum1=0;sum2=0;
for i in psi1:
sum1+=pow(logit(i)-logit(x+cutoff),2);
sum1=sum1/var1/2;
for i in psi2:
sum2+=pow(logit(i)-logit(x),2);
sum2=sum2/var2/2;
return(sum1+sum2+0.1*0.5*(pow(rho,2))/(1-pow(rho,2))*(pow(stats.norm.ppf(x+cutoff),2)+pow(stats.norm.ppf(x),2)-2*rho*stats.norm.ppf(x+cutoff)*stats.norm.ppf(x)));
def myfunc_der_1(x, *args):
psi1=args[0];psi2=args[1];var1=args[2];var2=args[3];
sum1=0;sum2=0;
for i in psi1:
sum1+=-2*(logit(i)-logit(x+cutoff))/(x+cutoff)/(1-x-cutoff);
sum1=sum1/var1/2;
res1=sum1+0.1*0.5*(pow(rho,2))/(1-pow(rho,2))*(2*stats.norm.ppf(x+cutoff)-2*rho*stats.norm.ppf(x))/stats.norm.pdf(stats.norm.ppf(x+cutoff));
for i in psi2:
sum2+=-2*(logit(i)-logit(x))/x/(1-x);
sum2=sum2/var2/2;
res2=sum2+0.1*0.5*(pow(rho,2))/(1-pow(rho,2))*(2*stats.norm.ppf(x)-2*rho*stats.norm.ppf(x+cutoff))/stats.norm.pdf(stats.norm.ppf(x));
return(res1+res2);
def myfunc_2(x, *args):
psi1=args[0];psi2=args[1];var1=args[2];var2=args[3];
sum1=0;sum2=0;
for i in psi1:
sum1+=pow(logit(i)-logit(x),2);
sum1=sum1/var1/2;
for i in psi2:
sum2+=pow(logit(i)-logit(x+cutoff),2);
sum2=sum2/var2/2;
return(sum1+sum2+0.1*0.5*(pow(rho,2))/(1-pow(rho,2))*(pow(stats.norm.ppf(x+cutoff),2)+pow(stats.norm.ppf(x),2)-2*rho*stats.norm.ppf(x+cutoff)*stats.norm.ppf(x)));
def myfunc_der_2(x, *args):
psi1=args[0];psi2=args[1];var1=args[2];var2=args[3];
sum1=0;sum2=0;
for i in psi1:
sum1+=-2*(logit(i)-logit(x))/(x)/(1-x);
sum1=sum1/var1/2;
res1=sum1+0.1*0.5*(pow(rho,2))/(1-pow(rho,2))*(2*stats.norm.ppf(x+cutoff)-2*rho*stats.norm.ppf(x))/stats.norm.pdf(stats.norm.ppf(x+cutoff));
for i in psi2:
sum2+=-2*(logit(i)-logit(x+cutoff))/(x+cutoff)/(1-x-cutoff);
sum2=sum2/var2/2;
res2=sum2+0.1*0.5*(pow(rho,2))/(1-pow(rho,2))*(2*stats.norm.ppf(x)-2*rho*stats.norm.ppf(x+cutoff))/stats.norm.pdf(stats.norm.ppf(x));
return(res1+res2);
def myfunc_marginal_2der(x, args):
I=args[0];S=args[1];beta=args[2];var=args[3];
inclusion_length=args[4];
skipping_length=args[5]
temp1=1/pow(x,2)/pow(1-x,2)*(((2*x-1)*(logit(beta)-logit(x))-1)/var-1);#temp1=(2*x-1)/pow(x,2)/pow(1-x,2)*((logit(beta)-logit(x)-1/(2*x-1))/var+1);
temp2=I*skipping_length*((2*inclusion_length+skipping_length)*x+skipping_length*(1-x))/pow(x,2)/pow(inclusion_length*x+skipping_length*(1-x),2);
temp3=S*inclusion_length*((inclusion_length+2*skipping_length)*(1-x)+inclusion_length*x)/pow(1-x,2)/pow(inclusion_length*x+skipping_length*(1-x),2);
#print('test');print(beta);print(x);print(var);print(temp1);print(temp2);print(temp3);
return(temp1-temp2-temp3);
def myfunc_marginal(x, *args):
beta=x;
I=args[0];S=args[1];psi=args[2];var=args[3];
inclusion_length=args[4];skipping_length=args[5];
sum=0;temp1=0;temp2=0;
for i in range(len(psi)):
new_psi=inclusion_length*psi[i]/(inclusion_length*psi[i]+skipping_length*(1-psi[i]));
f1=I[i]*log(new_psi)+S[i]*log(1-new_psi)-pow(logit(psi[i])-logit(beta),2)/2/var-log(psi[i])-log(1-psi[i]);
temp2+=-1*f1;
f1_2der=abs(myfunc_marginal_2der(psi[i],[I[i],S[i],beta,var,inclusion_length,skipping_length]));
temp1+=0.5*log(abs(f1_2der));
sum+=(0.5*log(abs(f1_2der)+0.00001)-f1);
#print('test_temp1');print(temp1);print(temp2);
return(sum);
def myfunc_marginal_der(x, *args):
beta=x;
I=args[0];S=args[1];psi=args[2];var=args[3];
inclusion_length=args[4];skipping_length=args[5];
sum=0;
for i in range(len(psi)):
new_psi=inclusion_length*psi[i]/(inclusion_length*psi[i]+skipping_length*(1-psi[i]));
f1_3der=1*(2*psi[i]-1)/pow(psi[i],2)/pow(1-psi[i],2)/beta/(1-beta)/var;
f1_2der=myfunc_marginal_2der(psi[i],[I[i],S[i],beta,var,inclusion_length,skipping_length]);
#print('test2');print(f1_2der);
f1_der=(logit(psi[i])-logit(beta))/beta/(1-beta)/var;
f1=I[i]*log(new_psi)+S[i]*log(1-new_psi)-pow(logit(psi[i])-logit(beta),2)/2/var+log(psi[i])+log(1-psi[i]);
sum+=(0.5*f1_3der/(f1_2der)-f1_der);
return(sum);
def myfunc_marginal_1(x, *args):
beta2=x;beta1=x+cutoff;
I1=args[0];S1=args[1];psi1=args[2];var1=args[3];
I2=args[4];S2=args[5];psi2=args[6];var2=args[7];
inclusion_length=args[8];skipping_length=args[9];
return(myfunc_marginal(beta1,I1,S1,psi1,var1,inclusion_length,skipping_length)+myfunc_marginal(beta2,I2,S2,psi2,var2,inclusion_length,skipping_length));
def myfunc_marginal_1_der(x, *args):
beta2=x;beta1=x+cutoff;
I1=args[0];S1=args[1];psi1=args[2];var1=args[3];
I2=args[4];S2=args[5];psi2=args[6];var2=args[7];
inclusion_length=args[8];skipping_length=args[9];
return(myfunc_marginal_der(beta1,I1,S1,psi1,var1,inclusion_length,skipping_length)+myfunc_marginal_der(beta2,I2,S2,psi2,var2,inclusion_length,skipping_length));
def myfunc_marginal_2(x, *args):
beta2=x+cutoff;beta1=x;
I1=args[0];S1=args[1];psi1=args[2];var1=args[3];
I2=args[4];S2=args[5];psi2=args[6];var2=args[7];
inclusion_length=args[8];skipping_length=args[9];
return(myfunc_marginal(beta1,I1,S1,psi1,var1,inclusion_length,skipping_length)+myfunc_marginal(beta2,I2,S2,psi2,var2,inclusion_length,skipping_length));
def myfunc_marginal_2_der(x, *args):
beta2=x+cutoff;beta1=x;
I1=args[0];S1=args[1];psi1=args[2];var1=args[3];
I2=args[4];S2=args[5];psi2=args[6];var2=args[7];
inclusion_length=args[8];skipping_length=args[9];
return(myfunc_marginal_der(beta1,I1,S1,psi1,var1,inclusion_length,skipping_length)+myfunc_marginal_der(beta2,I2,S2,psi2,var2,inclusion_length,skipping_length));
def myfunc_individual(x,*args):
I=args[0];S=args[1];beta=args[2];var=args[3];
inclusion_length=args[4];
skipping_length=args[5]
new_psi=inclusion_length*x/(inclusion_length*x+skipping_length*(1-x));
return(-1*(I*log(new_psi)+S*log(1-new_psi)-(logit(x)-logit(beta))*(logit(x)-logit(beta))/2/var-log(x)-log(1-x)));
def myfunc_individual_der(x,*args):
I=args[0];S=args[1];beta=args[2];var=args[3];
inclusion_length=args[4];
skipping_length=args[5];
new_psi=inclusion_length*x/(inclusion_length*x+skipping_length*(1-x));
new_psi_der=inclusion_length*skipping_length/pow(inclusion_length*x+skipping_length*(1-x),2);
return(-1*(I/new_psi*new_psi_der-S/(1-new_psi)*new_psi_der-(logit(x)-logit(beta))/var/x/(1-x)-1/x+1/(1-x) ));
def myfunc_likelihood(x, args):
I=args[0];S=args[1];beta=args[2];var=args[3];sum=0;N=I+S;
#return(-1*(-log(sqrt((I+S)*x*(1-x)))-(I-(I+S)*x)*(I-(I+S)*x)/2/((I+S)*x*(1-x))-log(sqrt(var))-(x-beta)*(x-beta)/2/var));
#print('debug');print(N);print(var);print(x);print(beta);
if N==0:
return(0);
return(-0.5*((I-N*x)*(I-N*x)/(N*x)+(S-N*(1-x))*(S-N*(1-x))/(N*(1-x)))-log(sqrt(var))-(x-beta)*(x-beta)/2/var);
def MLE_iteration_constrain(i1,i2,s1,s2,effective_inclusion_length,effective_skipping_length):
psi1=vec2psi(i1,s1,effective_inclusion_length,effective_skipping_length);psi2=vec2psi(i2,s2,effective_inclusion_length,effective_skipping_length);
iter_cutoff=1;iter_maxrun=100;count=0;previous_sum=0;
beta_0=sum(psi1)/len(psi1);
beta_1=sum(psi2)/len(psi2);
var1=10*scipy.var(numpy.array(psi1)-beta_0);
var2=10*scipy.var(numpy.array(psi2)-beta_1);
if var1<=0.01:
var1=0.01;
if var2<=0.01:
var2=0.01;
print('var1');print(var1);print('var2');print(var2);
while((iter_cutoff>0.01)&(count<=iter_maxrun)):
count+=1;
#iteration of beta
beta_0=sum(psi1)/len(psi1);
beta_1=sum(psi2)/len(psi2);
print('var1');print(var1);print('var2');print(var2);
#if abs(sum(psi1)/len(psi1)-sum(psi2)/len(psi2))>cutoff:
if (sum(psi1)/len(psi1))>(sum(psi2)/len(psi2)):#minize psi2 if this is the case
xopt = fmin_l_bfgs_b(myfunc_1,[sum(psi2)/len(psi2)],myfunc_der_1,args=[psi1,psi2,var1,var2],bounds=[[0.001,0.999-cutoff]],iprint=-1)
theta2 = max(min(float(xopt[0]),1-cutoff),0);theta1=theta2+cutoff;
else:#minize psi1 if this is the case
xopt = fmin_l_bfgs_b(myfunc_2,[sum(psi1)/len(psi1)],myfunc_der_2,args=[psi1,psi2,var1,var2],bounds=[[0.001,0.999-cutoff]],iprint=-1)
theta1 = max(min(float(xopt[0]),1-cutoff),0);theta2=theta1+cutoff;
print('constrain_1xopt');print('theta');print(theta1);print(theta2);print(xopt);
#else:
# theta1=sum(psi1)/len(psi1);theta2=sum(psi2)/len(psi2);
beta_0=theta1;beta_1=theta2;
#iteration of psi
new_psi1=[];new_psi2=[];current_sum=0;likelihood_sum=0;
print('constrain_2xopt');
for i in range(len(psi1)):
xopt = fmin_l_bfgs_b(myfunc_individual,[psi1[i]],myfunc_individual_der,args=[i1[i],s1[i],beta_0,var1,effective_inclusion_length,effective_skipping_length],bounds=[[0.01,0.99]],iprint=-1);
new_psi1.append(float(xopt[0]));current_sum+=float(xopt[1]);print(xopt);
#likelihood_sum+=myfunc_marginal(new_psi1[i],[i1[i],s1[i],beta_0,var1,effective_inclusion_length,effective_skipping_length]);
for i in range(len(psi2)):
xopt = fmin_l_bfgs_b(myfunc_individual,[psi2[i]],myfunc_individual_der,args=[i2[i],s2[i],beta_1,var2,effective_inclusion_length,effective_skipping_length],bounds=[[0.01,0.99]],iprint=-1);
new_psi2.append(float(xopt[0]));current_sum+=float(xopt[1]);print(xopt);
#likelihood_sum+=myfunc_marginal(new_psi2[i],[i2[i],s2[i],beta_1,var2,effective_inclusion_length,effective_skipping_length]);
print('new_psi[0]');print(new_psi1[0]);print(new_psi2[0]);
psi1=new_psi1;psi2=new_psi2;
print('count');print(count);print('previous_sum');print(previous_sum);print('current_sum');print(current_sum);
if count>1:
iter_cutoff=abs(previous_sum-current_sum);
previous_sum=current_sum;
#print('constrain');print(theta1);print(theta2);print(psi1);print(psi2);print(current_sum);print(likelihood_sum);
#print(xopt);
return([current_sum,[psi1,psi2,beta_0,beta_1,var1,var2]]);
#return([likelihood_sum,[psi1,psi2,beta_0,beta_1,var1,var2]]);
def MLE_iteration(i1,i2,s1,s2,effective_inclusion_length,effective_skipping_length):
psi1=vec2psi(i1,s1,effective_inclusion_length,effective_skipping_length);psi2=vec2psi(i2,s2,effective_inclusion_length,effective_skipping_length);
iter_cutoff=1;iter_maxrun=100;count=0;previous_sum=0;
beta_0=sum(psi1)/len(psi1);
beta_1=sum(psi2)/len(psi2);
var1=10*scipy.var(numpy.array(psi1)-beta_0);
var2=10*scipy.var(numpy.array(psi2)-beta_1);
if var1<=0.01:
var1=0.01;
if var2<=0.01:
var2=0.01;
print('var1');print(var1);print('var2');print(var2);
while((iter_cutoff>0.01)&(count<=iter_maxrun)):
count+=1;
#iteration of beta
beta_0=sum(psi1)/len(psi1);
beta_1=sum(psi2)/len(psi2);
xopt=fmin_l_bfgs_b(myfunc_multivar,[beta_0,beta_1],myfunc_multivar_der,args=[psi1,psi2,var1,var2],bounds=[[0.01,0.99],[0.01,0.99]],iprint=-1);
beta_0=float(xopt[0][0]);
beta_1=float(xopt[0][1]);
print('unconstrain_1xopt');print(xopt);
print('theta');print(beta_0);print(beta_1);print('theta_end');
#iteration of psi
new_psi1=[];new_psi2=[];current_sum=0;likelihood_sum=0;
for i in range(len(psi1)):
xopt = fmin_l_bfgs_b(myfunc_individual,[psi1[i]],myfunc_individual_der,args=[i1[i],s1[i],beta_0,var1,effective_inclusion_length,effective_skipping_length],bounds=[[0.01,0.99]],iprint=-1);
new_psi1.append(float(xopt[0]));current_sum+=float(xopt[1]);print(xopt);
#likelihood_sum+=myfunc_marginal(new_psi1[i],[i1[i],s1[i],beta_0,var1,effective_inclusion_length,effective_skipping_length]);
for i in range(len(psi2)):
xopt = fmin_l_bfgs_b(myfunc_individual,[psi2[i]],myfunc_individual_der,args=[i2[i],s2[i],beta_1,var2,effective_inclusion_length,effective_skipping_length],bounds=[[0.01,0.99]],iprint=-1);
new_psi2.append(float(xopt[0]));current_sum+=float(xopt[1]);print(xopt);
#likelihood_sum+=myfunc_marginal(new_psi2[i],[i2[i],s2[i],beta_1,var2,effective_inclusion_length,effective_skipping_length]);
print('new_psi[0]');print(new_psi1[0]);print(new_psi2[0]);
psi1=new_psi1;psi2=new_psi2;print
print('count');print(count);('previous_sum');print(previous_sum);print('current_sum');print(current_sum);
if count>1:
iter_cutoff=abs(previous_sum-current_sum);
previous_sum=current_sum;
#print('unconstrain');print(beta_0);print(beta_0+beta_1);print(psi1);print(psi2);print(current_sum);print(likelihood_sum);
#print(xopt);
if count>iter_maxrun:
return([current_sum,[psi1,psi2,0,0,var1,var2]]);
return([current_sum,[psi1,psi2,beta_0,beta_1,var1,var2]]);
#return([likelihood_sum,[psi1,psi2,beta_0,beta_1,var1,var2]]);
def MLE_marginal_iteration(i1,i2,s1,s2,effective_inclusion_length,effective_skipping_length):
#initial value
psi1=vec2psi(i1,s1,effective_inclusion_length,effective_skipping_length);psi2=vec2psi(i2,s2,effective_inclusion_length,effective_skipping_length);
iter_cutoff=1;iter_maxrun=100;count=0;previous_sum=0;
beta_0=sum(psi1)/len(psi1);
beta_1=sum(psi2)/len(psi2);
#var1=scipy.var(numpy.array(veclogit(psi1)));
#var2=scipy.var(numpy.array(veclogit(psi2)));
var1=scipy.var(numpy.array(psi1)-beta_0);
var2=scipy.var(numpy.array(psi2)-beta_1);
if var1<=0.01:
var1=0.01;
if var2<=0.01:
var2=0.01;
print('var1');print(var1);print('var2');print(var2);
#MLE of the full likelihood
while((iter_cutoff>0.01)&(count<=iter_maxrun)):
count+=1;
#iteration of beta
beta_0=sum(psi1)/len(psi1);
beta_1=sum(psi2)/len(psi2);
xopt=fmin_l_bfgs_b(myfunc_multivar,[beta_0,beta_1],myfunc_multivar_der,args=[psi1,psi2,var1,var2],bounds=[[0.01,0.99],[0.01,0.99]],iprint=-1);
beta_0=float(xopt[0][0]);
beta_1=float(xopt[0][1]);
print('unconstrain_MLE_xopt');print(xopt);
print('theta');print(beta_0);print(beta_1);print('theta_end');
#iteration of psi
new_psi1=[];new_psi2=[];current_sum=0;likelihood_sum=0;
for i in range(len(psi1)):
xopt = fmin_l_bfgs_b(myfunc_individual,[psi1[i]],myfunc_individual_der,args=[i1[i],s1[i],beta_0,var1,effective_inclusion_length,effective_skipping_length],bounds=[[0.01,0.99]],iprint=-1);
new_psi1.append(float(xopt[0]));current_sum+=float(xopt[1]);
#likelihood_sum+=myfunc_marginal(new_psi1[i],[i1[i],s1[i],beta_0,var1,effective_inclusion_length,effective_skipping_length]);
for i in range(len(psi2)):
xopt = fmin_l_bfgs_b(myfunc_individual,[psi2[i]],myfunc_individual_der,args=[i2[i],s2[i],beta_1,var2,effective_inclusion_length,effective_skipping_length],bounds=[[0.01,0.99]],iprint=-1);
new_psi2.append(float(xopt[0]));current_sum+=float(xopt[1]);
#likelihood_sum+=myfunc_marginal(new_psi2[i],[i2[i],s2[i],beta_1,var2,effective_inclusion_length,effective_skipping_length]);
print('new_psi[0]');print(new_psi1[0]);print(new_psi2[0]);
psi1=new_psi1;psi2=new_psi2;
print('count');print(count);print('previous_sum');print(previous_sum);print('current_sum');print(current_sum);
if count>1:
iter_cutoff=abs(previous_sum-current_sum);
previous_sum=current_sum;
#print('unconstrain');print(beta_0);print(beta_0+beta_1);print(psi1);print(psi2);print(current_sum);print(likelihood_sum);
print('unconstrain_psi_MLE');print(psi1);print(psi2);
print('unconstrain_beta_MLE');print(beta_0);print(beta_1);
if count>iter_maxrun:
return([current_sum,[psi1,psi2,0,0,var1,var2,0]]);
#MLE of the marginal likelihood
iter_cutoff=1;iter_maxrun=100;count=0;previous_sum=0;
while((iter_cutoff>0.01)&(count<=iter_maxrun)):
count+=1;
#print('unconstrain_MLE_marginal_value_1');print(myfunc_marginal(0.51,i1,s1,psi1,var1,effective_inclusion_length,effective_skipping_length));
#print('unconstrain_MLE_marginal_value_2');print(myfunc_marginal(0.56,i2,s2,psi2,var2,effective_inclusion_length,effective_skipping_length));
#exit();
xopt1=fmin_l_bfgs_b(myfunc_marginal,[beta_0],myfunc_marginal_der,args=[i1,s1,psi1,var1,effective_inclusion_length,effective_skipping_length],bounds=[[0.01,0.99]],iprint=-1);
xopt2=fmin_l_bfgs_b(myfunc_marginal,[beta_1],myfunc_marginal_der,args=[i2,s2,psi2,var2,effective_inclusion_length,effective_skipping_length],bounds=[[0.01,0.99]],iprint=-1);
beta_0=float(xopt1[0][0]);
beta_1=float(xopt2[0][0]);
if re.findall('\d+',str(xopt1[2]))[0]!='0':
return([current_sum,[psi1,psi2,0,0,var1,var2,0]]);
if re.findall('\d+',str(xopt2[2]))[0]!='0':
return([current_sum,[psi1,psi2,0,0,var1,var2,0]]);
print('unconstrain_1xopt');print(xopt1);
print('unconstrain_2xopt');print(xopt2);
new_psi1=[];new_psi2=[];current_sum=0;likelihood_sum=0;
for i in range(len(psi1)):
xopt = fmin_l_bfgs_b(myfunc_individual,[psi1[i]],myfunc_individual_der,args=[i1[i],s1[i],beta_0,var1,effective_inclusion_length,effective_skipping_length],bounds=[[0.01,0.99]],iprint=-1);
new_psi1.append(float(xopt[0]));current_sum+=float(xopt[1]);
for i in range(len(psi2)):
xopt = fmin_l_bfgs_b(myfunc_individual,[psi2[i]],myfunc_individual_der,args=[i2[i],s2[i],beta_1,var2,effective_inclusion_length,effective_skipping_length],bounds=[[0.01,0.99]],iprint=-1);
new_psi2.append(float(xopt[0]));current_sum+=float(xopt[1]);
if re.findall('\d+',str(xopt[2]))[0]!='0':
return([current_sum,[psi1,psi2,0,0,var1,var2,0]]);
psi1=new_psi1;psi2=new_psi2;
if count>1:
iter_cutoff=abs(previous_sum-current_sum);
previous_sum=current_sum;
cor=max(min(stats.pearsonr(psi1,psi2)[0],0.9),-0.9);
if math.isnan(cor):
cor=0;
if count>iter_maxrun:
return([current_sum,[psi1,psi2,0,0,var1,var2,cor]]);
return([current_sum,[psi1,psi2,beta_0,beta_1,var1,var2,cor]]);
def MLE_marginal_iteration_constrain(i1,i2,s1,s2,effective_inclusion_length,effective_skipping_length):
#initial value
psi1=vec2psi(i1,s1,effective_inclusion_length,effective_skipping_length);psi2=vec2psi(i2,s2,effective_inclusion_length,effective_skipping_length);
iter_cutoff=1;iter_maxrun=100;count=0;previous_sum=0;
beta_0=sum(psi1)/len(psi1);
beta_1=sum(psi2)/len(psi2);
#var1=scipy.var(numpy.array(veclogit(psi1)));
#var2=scipy.var(numpy.array(veclogit(psi2)));
var1=scipy.var(numpy.array(psi1)-beta_0);
var2=scipy.var(numpy.array(psi2)-beta_1);
if var1<=0.01:
var1=0.01;
if var2<=0.01:
var2=0.01;
print('var1');print(var1);print('var2');print(var2);
#MLE of the full likelihood
while((iter_cutoff>0.01)&(count<=iter_maxrun)):
count+=1;
#iteration of beta
beta_0=sum(psi1)/len(psi1);
beta_1=sum(psi2)/len(psi2);
print('var1');print(var1);print('var2');print(var2);
#if abs(sum(psi1)/len(psi1)-sum(psi2)/len(psi2))>cutoff:
if (sum(psi1)/len(psi1))>(sum(psi2)/len(psi2)):#minize psi2 if this is the case
xopt = fmin_l_bfgs_b(myfunc_1,[sum(psi2)/len(psi2)],myfunc_der_1,args=[psi1,psi2,var1,var2],bounds=[[0.001,0.999-cutoff]],iprint=-1)
theta2 = max(min(float(xopt[0]),1-cutoff),0);theta1=theta2+cutoff;
else:#minize psi1 if this is the case
xopt = fmin_l_bfgs_b(myfunc_2,[sum(psi1)/len(psi1)],myfunc_der_2,args=[psi1,psi2,var1,var2],bounds=[[0.001,0.999-cutoff]],iprint=-1)
theta1 = max(min(float(xopt[0]),1-cutoff),0);theta2=theta1+cutoff;
print('constrain_1xopt');print('theta');print(theta1);print(theta2);print(xopt);
#else:
# theta1=sum(psi1)/len(psi1);theta2=sum(psi2)/len(psi2);
beta_0=theta1;beta_1=theta2;
#iteration of psi
new_psi1=[];new_psi2=[];current_sum=0;likelihood_sum=0;
print('constrain_2xopt');
for i in range(len(psi1)):
xopt = fmin_l_bfgs_b(myfunc_individual,[psi1[i]],myfunc_individual_der,args=[i1[i],s1[i],beta_0,var1,effective_inclusion_length,effective_skipping_length],bounds=[[0.01,0.99]],iprint=-1);
new_psi1.append(float(xopt[0]));current_sum+=float(xopt[1]);print(xopt);
#likelihood_sum+=myfunc_marginal(new_psi1[i],[i1[i],s1[i],beta_0,var1,effective_inclusion_length,effective_skipping_length]);
for i in range(len(psi2)):
xopt = fmin_l_bfgs_b(myfunc_individual,[psi2[i]],myfunc_individual_der,args=[i2[i],s2[i],beta_1,var2,effective_inclusion_length,effective_skipping_length],bounds=[[0.01,0.99]],iprint=-1);
new_psi2.append(float(xopt[0]));current_sum+=float(xopt[1]);print(xopt);
#likelihood_sum+=myfunc_marginal(new_psi2[i],[i2[i],s2[i],beta_1,var2,effective_inclusion_length,effective_skipping_length]);
print('new_psi[0]');print(new_psi1[0]);print(new_psi2[0]);
psi1=new_psi1;psi2=new_psi2;
print('count');print(count);print('previous_sum');print(previous_sum);print('current_sum');print(current_sum);
if count>1:
iter_cutoff=abs(previous_sum-current_sum);
previous_sum=current_sum;
if count>iter_maxrun:
return([current_sum,[psi1,psi2,0,0,var1,var2]]);
#print('constrain');print(theta1);print(theta2);print(psi1);print(psi2);print(current_sum);print(likelihood_sum);
#print(xopt);
#MLE of the marginal likelihood
iter_cutoff=1;iter_maxrun=100;count=0;previous_sum=0;
while((iter_cutoff>0.01)&(count<=iter_maxrun)):
count+=1;
if (sum(psi1)/len(psi1))>(sum(psi2)/len(psi2)):#minize psi2 if this is the case
xopt = fmin_l_bfgs_b(myfunc_marginal_1,[beta_1],myfunc_marginal_1_der,args=[i1,s1,psi1,var1,i2,s2,psi2,var2,effective_inclusion_length,effective_skipping_length],bounds=[[0.001,0.999-cutoff]],iprint=-1)
beta_1 = max(min(float(xopt[0]),1-cutoff),0);beta_0=beta_1+cutoff;
else:#minize psi1 if this is the case
xopt = fmin_l_bfgs_b(myfunc_marginal_2,[beta_0],myfunc_marginal_2_der,args=[i1,s1,psi1,var1,i2,s2,psi2,var2,effective_inclusion_length,effective_skipping_length],bounds=[[0.001,0.999-cutoff]],iprint=-1)
beta_0 = max(min(float(xopt[0]),1-cutoff),0);beta_1=beta_0+cutoff;
if re.findall('\d+',str(xopt[2]))[0]!='0':
return([current_sum,[psi1,psi2,0,0,var1,var2]]);
print('constrain_xopt');print(xopt);
new_psi1=[];new_psi2=[];current_sum=0;likelihood_sum=0;
for i in range(len(psi1)):
xopt = fmin_l_bfgs_b(myfunc_individual,[psi1[i]],myfunc_individual_der,args=[i1[i],s1[i],beta_0,var1,effective_inclusion_length,effective_skipping_length],bounds=[[0.01,0.99]],iprint=-1);
new_psi1.append(float(xopt[0]));current_sum+=float(xopt[1]);print(xopt);
for i in range(len(psi2)):
xopt = fmin_l_bfgs_b(myfunc_individual,[psi2[i]],myfunc_individual_der,args=[i2[i],s2[i],beta_1,var2,effective_inclusion_length,effective_skipping_length],bounds=[[0.01,0.99]],iprint=-1);
new_psi2.append(float(xopt[0]));current_sum+=float(xopt[1]);print(xopt);
if re.findall('\d+',str(xopt[2]))[0]!='0':
return([current_sum,[psi1,psi2,0,0,var1,var2]]);
psi1=new_psi1;psi2=new_psi2;
if count>1:
iter_cutoff=abs(previous_sum-current_sum);
previous_sum=current_sum;
if count>iter_maxrun:
return([current_sum,[psi1,psi2,0,0,var1,var2]]);
return([current_sum,[psi1,psi2,beta_0,beta_1,var1,var2]]);
#return([likelihood_sum,[psi1,psi2,beta_0,beta_1,var1,var2]]);
def MLE_marginal_iteration_paired(i1,i2,s1,s2,effective_inclusion_length,effective_skipping_length):
#initial value
psi1=vec2psi(i1,s1,effective_inclusion_length,effective_skipping_length);psi2=vec2psi(i2,s2,effective_inclusion_length,effective_skipping_length);
beta_0=sum(psi1)/len(psi1);
beta_1=sum(psi2)/len(psi2);
var1=scipy.var(numpy.array(veclogit(psi1)));
var2=scipy.var(numpy.array(veclogit(psi2)));
#print('psi_start');print(psi1);print(psi2);
#print('beta_start');print(beta_0);print(beta_1);
if var1<=0.01:
var1=0.01;
if var2<=0.01:
var2=0.01;
#MLE of the marginal likelihood
iter_cutoff=1;iter_maxrun=40;count=0;previous_sum=1;current_sum=1;likelihood_sum=0;
flag=0;rho=0.0;flag_xopt=0;
while(((iter_cutoff/previous_sum>0.001)&(count<=iter_maxrun))):
count+=1;
#print('unconstrain_MLE_marginal_value_1_der');print(myfunc_marginal_der_paired([beta_0,beta_1,rho,var1,var2],i1,s1,psi1,i2,s2,psi2,effective_inclusion_length,effective_skipping_length));
if (iter_cutoff/previous_sum>0.1) & (flag==0):
print('condition1');
if rho_flag==0:
xopt=fmin_l_bfgs_b(myfunc_marginal_paired_rho,[beta_0,beta_1,rho],myfunc_marginal_der_paired_rho,args=[i1,s1,psi1,i2,s2,psi2,effective_inclusion_length,effective_skipping_length,var1,var2],bounds=[[pow(10,-3),1-pow(10,-3)],[pow(10,-3),1-pow(10,-3)],[0,0.9]],iprint=-1);
print('unconstrain_MLE_marginal_xopt_mean');print(xopt);
if xopt[2]['warnflag']!=0:
flag=1;continue;
else:
flag_xopt=1;
rho=float(xopt[0][2]);
if rho_flag==1:
xopt=fmin_l_bfgs_b(myfunc_marginal_paired_rho0,[beta_0,beta_1],myfunc_marginal_der_paired_rho0,args=[i1,s1,psi1,i2,s2,psi2,effective_inclusion_length,effective_skipping_length,var1,var2],bounds=[[pow(10,-3),1-pow(10,-3)],[pow(10,-3),1-pow(10,-3)]],iprint=-1);
print('unconstrain_MLE_marginal_xopt_mean_rho0');print(xopt);
if xopt[2]['warnflag']!=0:
flag=1;continue;
else:
flag_xopt=1;
else:
flag=1;
xopt=fmin_l_bfgs_b(myfunc_marginal_paired_fixvar,[beta_0, beta_1],myfunc_marginal_der_paired_fixvar,args=[i1,s1,psi1,i2,s2,psi2,effective_inclusion_length,effective_skipping_length,rho,var1,var2],bounds=[[pow(10,-3),1-pow(10,-3)],[pow(10,-3),1-pow(10,-3)]],iprint=-1);
#xopt=fmin_l_bfgs_b(myfunc_marginal_paired_fixvar,[beta_0],myfunc_marginal_der_paired_fixvar,args=[i1,s1,psi1,i2,s2,psi2,effective_inclusion_length,effective_skipping_length,rho,var1,var2,beta_1],bounds=[[pow(10,-3),1-pow(10,-3)]],iprint=-1);
#xopt=fmin_l_bfgs_b(myfunc_marginal_paired_fixvar,[beta_1],myfunc_marginal_der_paired_fixvar,args=[i1,s1,psi1,i2,s2,psi2,effective_inclusion_length,effective_skipping_length,rho,var1,var2,beta_0],bounds=[[pow(10,-3),1-pow(10,-3)]],iprint=-1);
print('unconstrain_MLE_marginal_xopt_mean_fixvar');print(xopt);
beta_0=float(xopt[0][0]);beta_1=float(xopt[0][1]);
current_sum=float(xopt[1]);
if xopt[2]['warnflag']!=0:
return([current_sum,[psi1,psi2,beta_0,beta_1,var1,var2,rho,flag_xopt]]);
else:
flag_xopt=1;
new_psi1=[];new_psi2=[];
for i in range(len(psi1)):
xopt = fmin_l_bfgs_b(myfunc_individual_paired,[psi1[i],psi2[i]],myfunc_individual_der_paired,args=[i1[i],s1[i],beta_0,var1,i2[i],s2[i],beta_1,var2,effective_inclusion_length,effective_skipping_length,rho],bounds=[[pow(10,-3),1-pow(10,-3)],[pow(10,-3),1-pow(10,-3)]],iprint=-1);
new_psi1.append(float(xopt[0][0]));new_psi2.append(float(xopt[0][1]));
#current_sum+=float(xopt[1]);
print('unconstrain_MLE_marginal_xopt_replicate');print(xopt);
# print('unconstrain_MLE_marginal_xopt_replicate_test1');print(myfunc_individual_paired([new_psi1[i],new_psi2[i]],i1[i],s1[i],beta_0,var1,i2[i],s2[i],beta_1,var2,effective_inclusion_length,effective_skipping_length,rho));
# print('unconstrain_MLE_marginal_xopt_replicate_test2');print(myfunc_individual_paired([psi1[i],psi2[i]],i1[i],s1[i],beta_0,var1,i2[i],s2[i],beta_1,var2,effective_inclusion_length,effective_skipping_length,rho));
psi1=new_psi1;psi2=new_psi2;
if count>1:
iter_cutoff=abs(previous_sum-current_sum);
else:
iter_cutoff=current_sum;
previous_sum=current_sum;
if count>iter_maxrun:
return([current_sum,[psi1,psi2,0,0,var1,var2,0,flag_xopt]]);
#print('unconstrain_psi_MLE_marginal');print(psi1);print(psi2);print(beta_0);print(beta_1);
return([current_sum,[psi1,psi2,beta_0,beta_1,var1,var2,rho,flag_xopt]]);
def MLE_marginal_iteration_constrain_paired(i1,i2,s1,s2,effective_inclusion_length,effective_skipping_length,psi1_last,psi2_last,var1_last,var2_last,rho_last,beta_0_last,beta_1_last,current_sum_last):
#initial value
rho=rho_last;
var1=var1_last;var2=var2_last;
psi1=psi1_last;psi2=psi2_last;
beta_0=beta_0_last;beta_1=beta_1_last;
current_sum=current_sum_last;
#MLE of the marginal likelihood
iter_cutoff=1;iter_maxrun=40;count=0;previous_sum=1;likelihood_sum=0;
#print('psi');print(psi1);print(psi2);
if (sum(psi1)/len(psi1))>(sum(psi2)/len(psi2)):#minize psi2 if this is the case
xopt = fmin_l_bfgs_b(myfunc_marginal_1_paired,[beta_1],myfunc_marginal_1_der_paired,args=[i1,s1,psi1,var1,i2,s2,psi2,var2,effective_inclusion_length,effective_skipping_length,rho],bounds=[[pow(10,-2),1-pow(10,-2)-cutoff]],iprint=-1)
beta_1 = max(min(float(xopt[0][0]),1-cutoff),0);beta_0=beta_1+cutoff;
current_sum=float(xopt[1]);
#rho=xopt[0][1];
else:#minize psi1 if this is the case
xopt = fmin_l_bfgs_b(myfunc_marginal_2_paired,[beta_0],myfunc_marginal_2_der_paired,args=[i1,s1,psi1,var1,i2,s2,psi2,var2,effective_inclusion_length,effective_skipping_length,rho],bounds=[[pow(10,-2),1-pow(10,-2)-cutoff]],iprint=-1)
beta_0 = max(min(float(xopt[0][0]),1-cutoff),0);beta_1=beta_0+cutoff;
current_sum=float(xopt[1]);
#rho=xopt[0][1];
print('constrain_MLE_marginal_xopt_mean');print(xopt);print(beta_0);print(beta_1);
# if xopt[2]['warnflag']!=0:
# return([current_sum,[psi1,psi2,beta_0,beta_1,var1,var2,rho,0]]);
# else:
return([current_sum,[psi1,psi2,beta_0,beta_1,var1,var2,rho,1]]);
#new_psi1=[];new_psi2=[];
#for i in range(len(psi1)):
# xopt = fmin_l_bfgs_b(myfunc_individual_paired,[psi1[i],psi2[i]],myfunc_individual_der_paired,args=[i1[i],s1[i],beta_0,var1,i2[i],s2[i],beta_1,var2,effective_inclusion_length,effective_skipping_length,rho],bounds=[[0.01,0.99],[0.01,0.99]],iprint=-1);
# new_psi1.append(float(xopt[0][0]));new_psi2.append(float(xopt[0][1]));
# print('unconstrain_MLE_marginal_xopt_replicate');print(xopt);
#psi1=new_psi1;psi2=new_psi2;
#Random Sampling Function
def likelihood_test(i1,i2,s1,s2,effective_inclusion_length,effective_skipping_length,flag,id):
print('testing'+str(id));
if flag==0:
return([1,0]);
else:
res=MLE_marginal_iteration(i1,i2,s1,s2,effective_inclusion_length,effective_skipping_length);
if abs(res[1][2]-res[1][3])<=cutoff:
print('1<=cutoff');print(res);print((res[1][2]-res[1][3]));
#return([1-scipy.stats.norm.cdf(abs(res[1][2]-res[1][3]),cutoff,sqrt(res[1][4]+res[1][5])),res[0]]);
return([1,0]);
else:
res_constrain=MLE_marginal_iteration_constrain(i1,i2,s1,s2,effective_inclusion_length,effective_skipping_length);
print('2>cutoff');print(res);print(res_constrain);
print(abs(res_constrain[0]-res[0]));print(pow(1-pow(res[1][6],2),2));print('2end');
#print(abs(res_constrain[2]-res[2]));print('2end_marginal');
return([scipy.stats.chi2.sf(2*(abs(res_constrain[0]-res[0]))/pow(1-pow(res[1][6],2),2),1),res[1][-1]]);
#MultiProcessorFunction
def MultiProcessorPool(n_original_diff):
i1=n_original_diff[0];i2=n_original_diff[1];s1=n_original_diff[2];s2=n_original_diff[3];
effective_inclusion_length=n_original_diff[4];effective_skipping_length=n_original_diff[5];
flag=n_original_diff[6];id=n_original_diff[7];
P=likelihood_test(i1,i2,s1,s2,effective_inclusion_length,effective_skipping_length,flag,id);
return(P);
#Function for vector handling
def vec2float(vec):
res=[];
for i in vec:
res.append(float(i));
return(res);
#add 1 in both inclusion and skipping counts for robustness in small sample size
def vecAddOne(vec):
res=[];
for i in vec:
res.append(i);
return(res);
def vecprod(vec):
res=1;
for i in vec:
res=res*i;
return(res);
def vecadd(vec1,vec2):
res=[];
for i in range(len(vec1)):
res.append(vec1[i]+vec2[i]);
return(res);
def vec2remove0psi(inc,skp):
res1=[];res2=[];
for i in range(len(inc)):
if (inc[i]!=0) | (skp[i]!=0):
res1.append(inc[i]);res2.append(skp[i]);
return([res1,res2]);
def vec2psi(inc,skp,effective_inclusion_length,effective_skipping_length):
psi=[];
inclusion_length=effective_inclusion_length;
skipping_length=effective_skipping_length;
for i in range(len(inc)):
if (float(inc[i])+float(skp[i]))==0:
psi.append(0.5);
else:
psi.append(float(inc[i])/inclusion_length/(float(inc[i])/inclusion_length+float(skp[i])/skipping_length));
return(psi);
def vec210(vec):
res=[];
for i in vec:
if i>0:
res.append(1);
else:
res.append(-1);
return(res);
#this function removes the paired samples with inc1+skp1=0 or inc2+skp2=0
def vec_remove_na_pair(inc1,skp1,inc2,skp2):
res_inc1=[];res_skp1=[];res_inc2=[];res_skp2=[];
for i in range(len(inc1)):
if ((float(inc1[i])+float(skp1[i]))>0) & ((float(inc2[i])+float(skp2[i]))>0):
res_inc1.append(inc1[i]);
res_skp1.append(skp1[i]);
res_inc2.append(inc2[i]);
res_skp2.append(skp2[i]);
return([res_inc1,res_skp1,res_inc2,res_skp2]);
def vec_remove_na(inc,skp):
res_inc=[];res_skp=[];
for i in range(len(inc)):
if (float(inc[i])+float(skp[i]))>0:
res_inc.append(inc[i]);
res_skp.append(skp[i]);
return([res_inc,res_skp]);
def myttest(vec1,vec2):
if (len(vec1)==1) & (len(vec2)==1):
res=stats.ttest_ind([vec1[0],vec1[0]],[vec2[0],vec2[0]]);
else:
res=stats.ttest_ind(vec1,vec2);
return(res);
ifile=open(sys.argv[1]);
title=ifile.readline();
#analyze the title of the inputed data file to find the information of how much simulation are involved
#the min simulated round is 10, each time it increases by 10 times
element=re.findall('[^ \t\n]+',title);
ofile=open(sys.argv[2]+'/rMATS_Result_P.txt','w');
ofile.write(title[:-1]+'\tPValue'+'\n');
list_n_original_diff=[];probability=[];psi_list_1=[];psi_list_2=[];
ilines=ifile.readlines();
for i in range(len(ilines)):
element=re.findall('[^ \t\n]+',ilines[i]);
inc1=re.findall('[^,]+',element[1]);skp1=re.findall('[^,]+',element[2]);inc2=re.findall('[^,]+',element[3]);skp2=re.findall('[^,]+',element[4]);
effective_inclusion_length=int(element[5]);
effective_skipping_length=int(element[6]);
inc1=vec2float(inc1);skp1=vec2float(skp1);inc2=vec2float(inc2);skp2=vec2float(skp2);
temp=vec_remove_na_pair(inc1,skp1,inc2,skp2);inc1_nona=temp[0];skp1_nona=temp[1];inc2_nona=temp[2];skp2_nona=temp[3];
if (len(inc1_nona)<=0) | (len(inc2_nona)<=0):
list_n_original_diff.append([inc1,inc2,skp1,skp2,effective_inclusion_length,effective_skipping_length,0,element[0]]);
else:
inc1=inc1_nona;skp1=skp1_nona;inc2=inc2_nona;skp2=skp2_nona;
inc1=vecAddOne(inc1);skp1=vecAddOne(skp1);inc2=vecAddOne(inc2);skp2=vecAddOne(skp2);
psi_avg_1=sum(array(inc1)/effective_inclusion_length/(array(inc1)/effective_inclusion_length+array(skp1)/effective_skipping_length))/len(inc1);
psi_avg_2=sum(array(inc2)/effective_inclusion_length/(array(inc2)/effective_inclusion_length+array(skp2)/effective_skipping_length))/len(inc2);
if abs(psi_avg_1 - psi_avg_2) <= cutoff:
list_n_original_diff.append([inc1,inc2,skp1,skp2,effective_inclusion_length,effective_skipping_length,0,element[0]]);
else:
list_n_original_diff.append([inc1,inc2,skp1,skp2,effective_inclusion_length,effective_skipping_length,1,element[0]]);
#if i>2:
# break;
rho=0.9
rho=stats.pearsonr(numpy.array(psi_list_1),numpy.array(psi_list_2));rho=rho[0];
if rho>0.9:
rho=0.9;
rho=0.9
print('rho');print(rho);
if MultiProcessor>1:
pool=Pool(processes=MultiProcessor);
probability=pool.map(MultiProcessorPool,list_n_original_diff);
else:
for i in range(len(list_n_original_diff)):
probability.append(MultiProcessorPool(list_n_original_diff[i]));
index=0;
for i in range(len(ilines)):
element=re.findall('[^ \t\n]+',ilines[i]);
print(probability);
#ofile.write(ilines[i][:-1]+'\t'+str(probability[i][1])+'\t'+str(probability[i][0])+'\n');
ofile.write(ilines[i][:-1]+'\t'+str(probability[i][0])+'\n');
ofile.close();
| 51.485368 | 280 | 0.722492 | 9,430 | 51,022 | 3.736585 | 0.030859 | 0.071518 | 0.046997 | 0.05185 | 0.837666 | 0.806448 | 0.774889 | 0.756953 | 0.734391 | 0.713134 | 0 | 0.07952 | 0.05774 | 51,022 | 990 | 281 | 51.537374 | 0.653403 | 0.163635 | 0 | 0.611321 | 0 | 0 | 0.018311 | 0.004349 | 0 | 0 | 0 | 0 | 0 | 1 | 0.062893 | false | 0 | 0.008805 | 0 | 0.071698 | 0.095597 | 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 | 0 | 0 | 0 | 6 |
078e1d85d6dc8b0172eac0f8742b39be8001562b | 2,487 | py | Python | panoptes_aggregation/tests/reducer_tests/test_shape_reducer_keywords.py | ramanakumars/aggregation-for-caesar | 1ff803ed0d25539f095f87fc72fdeafce742c4e2 | [
"Apache-2.0"
] | null | null | null | panoptes_aggregation/tests/reducer_tests/test_shape_reducer_keywords.py | ramanakumars/aggregation-for-caesar | 1ff803ed0d25539f095f87fc72fdeafce742c4e2 | [
"Apache-2.0"
] | null | null | null | panoptes_aggregation/tests/reducer_tests/test_shape_reducer_keywords.py | ramanakumars/aggregation-for-caesar | 1ff803ed0d25539f095f87fc72fdeafce742c4e2 | [
"Apache-2.0"
] | null | null | null | import unittest
from panoptes_aggregation.reducers.shape_reducer_dbscan import process_data as process_data_dbscan, shape_reducer_dbscan
from panoptes_aggregation.reducers.shape_reducer_optics import process_data as process_data_optics, shape_reducer_optics
from panoptes_aggregation.reducers.shape_reducer_hdbscan import process_data as process_data_hdbscan, shape_reducer_hdbscan
class ShapeReducerDBSCANBadKeywords(unittest.TestCase):
def setUp(self):
self.maxDiff = None
def test_no_keyword_dbscan(self):
'''Test error is raised in DBSCAN if no keyword is used for shape'''
with self.assertRaises(KeyError):
process_data_dbscan([])
def test_bad_keyword_dbscan(self):
'''Test error is raised in DBSCAN if a bad keyword is used for shape'''
with self.assertRaises(KeyError):
process_data_dbscan([], shape='bad_shape')
def test_bad_metric_keyword_dbscan(self):
'''Test error is raised in DBSCAN if a bad metric keyword is used'''
with self.assertRaises(ValueError):
shape_reducer_dbscan([], metric_type='bad', user_id=[], shape='circle')
def test_no_keyword_hdbscan(self):
'''Test error is raised in HDBSCAN if no keyword is used for shape'''
with self.assertRaises(KeyError):
process_data_hdbscan([])
def test_bad_keyword_hdbscan(self):
'''Test error is raised in HDBSCAN if a bad keyword is used for shape'''
with self.assertRaises(KeyError):
process_data_hdbscan([], shape='bad_shape')
def test_bad_metric_keyword_hdbscan(self):
'''Test error is raised in HDBSCAN if a bad metric keyword is used'''
with self.assertRaises(ValueError):
shape_reducer_hdbscan([], metric_type='bad', user_id=[], shape='circle')
def test_no_keyword_optics(self):
'''Test error is raised in OPTICS if no keyword is used for shape'''
with self.assertRaises(KeyError):
process_data_optics([])
def test_bad_keyword_optics(self):
'''Test error is raised in OPTICS if a bad keyword is used for shape'''
with self.assertRaises(KeyError):
process_data_optics([], shape='bad_shape')
def test_bad_metric_keyword_optics(self):
'''Test error is raised in OPTICS if a bad metric keyword is used'''
with self.assertRaises(ValueError):
shape_reducer_optics([], metric_type='bad', user_id=[], shape='circle')
| 45.218182 | 123 | 0.703659 | 333 | 2,487 | 5.012012 | 0.129129 | 0.079089 | 0.070102 | 0.080887 | 0.855003 | 0.855003 | 0.723787 | 0.705812 | 0.653685 | 0.653685 | 0 | 0 | 0.208283 | 2,487 | 54 | 124 | 46.055556 | 0.847638 | 0.232409 | 0 | 0.264706 | 0 | 0 | 0.028986 | 0 | 0 | 0 | 0 | 0 | 0.264706 | 1 | 0.294118 | false | 0 | 0.117647 | 0 | 0.441176 | 0 | 0 | 0 | 0 | null | 0 | 0 | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
07e67458963d09b3c5985851a219fa28e355892b | 6,191 | py | Python | sqlite_tables/tests/test_custom_types.py | jams2/sqlite-tables | 039f62029f41ed6f91bba2c3388dc604446b0ab0 | [
"MIT"
] | null | null | null | sqlite_tables/tests/test_custom_types.py | jams2/sqlite-tables | 039f62029f41ed6f91bba2c3388dc604446b0ab0 | [
"MIT"
] | 1 | 2021-06-02T00:43:48.000Z | 2021-06-02T00:43:48.000Z | sqlite_tables/tests/test_custom_types.py | jams2/sqlite-tables | 039f62029f41ed6f91bba2c3388dc604446b0ab0 | [
"MIT"
] | null | null | null | import unittest
import sqlite3
from ..types import (
adapt_bool,
convert_bool,
adapt_int_list,
convert_int_list,
IntList,
)
class TestBoolType(unittest.TestCase):
def setUp(self):
self.conn = sqlite3.connect(
':memory:',
detect_types=sqlite3.PARSE_DECLTYPES,
)
self.conn.row_factory = sqlite3.Row
def tearDown(self):
self.conn.close()
def test_bool_adapter_false(self):
self.assertEqual(b'0', adapt_bool(False))
def test_bool_adapter_true(self):
self.assertEqual(b'1', adapt_bool(True))
def test_bool_converter_true(self):
self.assertEqual(True, convert_bool(b'1'))
def test_bool_converter_false(self):
self.assertEqual(False, convert_bool(b'0'))
def test_bool_insert_false_is_0(self):
def converter(val):
return val
sqlite3.register_adapter(bool, adapt_bool)
sqlite3.register_converter('BOOL', converter)
with self.conn:
self.conn.execute('CREATE TABLE test_table (test_bool BOOL, name TEXT)')
self.conn.execute('INSERT INTO test_table VALUES (?, ?)', (False, 'test'))
cursor = self.conn.execute('SELECT * FROM test_table')
self.assertEqual(b'0', cursor.fetchone()['test_bool'])
def test_bool_insert_true_is_1(self):
def converter(val):
return val
sqlite3.register_adapter(bool, adapt_bool)
sqlite3.register_converter('BOOL', converter)
with self.conn:
self.conn.execute('CREATE TABLE test_table (test_bool BOOL, name TEXT)')
self.conn.execute('INSERT INTO test_table VALUES (?, ?)', (True, 'test'))
cursor = self.conn.execute('SELECT * FROM test_table')
self.assertEqual(b'1', cursor.fetchone()['test_bool'])
def test_bool_select_true_is_true(self):
sqlite3.register_adapter(bool, adapt_bool)
sqlite3.register_converter('BOOL', convert_bool)
with self.conn:
self.conn.execute('CREATE TABLE test_table (test_bool BOOL, name TEXT)')
self.conn.execute('INSERT INTO test_table VALUES (?, ?)', (True, 'test'))
cursor = self.conn.execute('SELECT * FROM test_table')
self.assertEqual(True, cursor.fetchone()['test_bool'])
def test_bool_select_false_is_false(self):
sqlite3.register_adapter(bool, adapt_bool)
sqlite3.register_converter('BOOL', convert_bool)
with self.conn:
self.conn.execute('CREATE TABLE test_table (test_bool BOOL, name TEXT)')
self.conn.execute('INSERT INTO test_table VALUES (?, ?)', (False, 'test'))
cursor = self.conn.execute('SELECT * FROM test_table')
self.assertEqual(False, cursor.fetchone()['test_bool'])
class TestIntIterType(unittest.TestCase):
def setUp(self):
self.conn = sqlite3.connect(
':memory:',
detect_types=sqlite3.PARSE_DECLTYPES,
)
self.conn.row_factory = sqlite3.Row
def tearDown(self):
self.conn.close()
def test_adapter_empty_list(self):
self.assertEqual(b'', adapt_int_list([]))
def test_adapter_list(self):
self.assertEqual(b'1,2,3', adapt_int_list([1, 2, 3]))
def test_adapter_negative_ints(self):
self.assertEqual(b'1,-2,0', adapt_int_list([1, -2, 0]))
def test_converter_empty(self):
self.assertEqual([], convert_int_list(b''))
def test_converter_positive_ints(self):
self.assertEqual([1, 2, 3], [x for x in convert_int_list(b'1,2,3')])
def test_converter_negative_ints(self):
self.assertEqual([-1, 2, -3], [x for x in convert_int_list(b'-1,2,-3')])
def test_insert_list(self):
def converter(val):
return val
sqlite3.register_adapter(IntList, adapt_int_list)
sqlite3.register_converter('INT_LIST', converter)
with self.conn:
self.conn.execute(
'CREATE TABLE test_table (test_intlist INT_LIST, name TEXT)'
)
self.conn.execute(
'INSERT INTO test_table VALUES (?, ?)',
(IntList([1, 2]), 'test'),
)
cursor = self.conn.execute('SELECT * FROM test_table')
self.assertEqual(b'1,2', cursor.fetchone()['test_intlist'])
def test_insert_empty_list(self):
def converter(val):
return val
sqlite3.register_adapter(IntList, adapt_int_list)
sqlite3.register_converter('INT_LIST', converter)
with self.conn:
self.conn.execute(
'CREATE TABLE test_table (test_intlist INT_LIST, name TEXT)'
)
self.conn.execute(
'INSERT INTO test_table VALUES (?, ?)',
(IntList([]), 'test'),
)
cursor = self.conn.execute('SELECT * FROM test_table')
self.assertEqual(None, cursor.fetchone()['test_intlist'])
def test_fetch_int_list(self):
sqlite3.register_adapter(IntList, adapt_int_list)
sqlite3.register_converter('INT_LIST', convert_int_list)
with self.conn:
self.conn.execute(
'CREATE TABLE test_table (test_intlist INT_LIST, name TEXT)'
)
self.conn.execute(
'INSERT INTO test_table VALUES (?, ?)',
(IntList([1, 2, 3]), 'test'),
)
cursor = self.conn.execute('SELECT * FROM test_table')
self.assertEqual([1, 2, 3], cursor.fetchone()['test_intlist'])
def test_fetch_int_list_with_negatives(self):
sqlite3.register_adapter(IntList, adapt_int_list)
sqlite3.register_converter('INT_LIST', convert_int_list)
with self.conn:
self.conn.execute(
'CREATE TABLE test_table (test_intlist INT_LIST, name TEXT)'
)
self.conn.execute(
'INSERT INTO test_table VALUES (?, ?)',
(IntList([-1, 0, -3]), 'test'),
)
cursor = self.conn.execute('SELECT * FROM test_table')
self.assertEqual([-1, 0, -3], cursor.fetchone()['test_intlist'])
| 37.521212 | 86 | 0.609918 | 749 | 6,191 | 4.813084 | 0.086782 | 0.084327 | 0.099861 | 0.035506 | 0.83828 | 0.795284 | 0.774203 | 0.765049 | 0.743412 | 0.719001 | 0 | 0.01567 | 0.268131 | 6,191 | 164 | 87 | 37.75 | 0.77996 | 0 | 0 | 0.561151 | 0 | 0 | 0.1822 | 0 | 0 | 0 | 0 | 0 | 0.129496 | 1 | 0.18705 | false | 0 | 0.021583 | 0.028777 | 0.251799 | 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 | 0 | 0 | 0 | 6 |
6af66b430a1dfa680bda653c6bcead6382c6bbdc | 210 | py | Python | frontstage/views/sign_in/__init__.py | ONSdigital/ras-frontstage | e8ff1931b49cb3ab47b421aed6780e9e944dceea | [
"MIT"
] | 8 | 2017-06-30T12:32:02.000Z | 2022-02-25T09:07:28.000Z | frontstage/views/sign_in/__init__.py | ONSdigital/ras-frontstage | e8ff1931b49cb3ab47b421aed6780e9e944dceea | [
"MIT"
] | 256 | 2017-05-16T09:38:09.000Z | 2022-03-28T13:38:42.000Z | frontstage/views/sign_in/__init__.py | ONSdigital/ras-frontstage | e8ff1931b49cb3ab47b421aed6780e9e944dceea | [
"MIT"
] | 4 | 2017-09-29T08:58:36.000Z | 2021-04-11T07:44:27.000Z | from flask import Blueprint
sign_in_bp = Blueprint("sign_in_bp", __name__, static_folder="static", template_folder="frontstage/templates/sign-in")
from frontstage.views.sign_in import logout, sign_in # NOQA
| 35 | 118 | 0.804762 | 31 | 210 | 5.064516 | 0.516129 | 0.191083 | 0.191083 | 0.216561 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.095238 | 210 | 5 | 119 | 42 | 0.826316 | 0.019048 | 0 | 0 | 0 | 0 | 0.215686 | 0.137255 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0 | 0.666667 | 0 | 0.666667 | 0.666667 | 0 | 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 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
6afc7db2a6c6f91b4bf9cd78821e3841a0912357 | 119 | py | Python | lib/wwmgr/test_work_managers/__init__.py | poharrison/westpa | 8618ab598f9bb38a7bc1479932f5332b137dfcbc | [
"MIT"
] | 140 | 2015-01-07T23:30:36.000Z | 2022-03-28T17:15:30.000Z | lib/wwmgr/test_work_managers/__init__.py | burntyellow/westpa | 9dc62478fcef0001b9c038cd56a40b6be1b9d64a | [
"MIT"
] | 157 | 2015-01-03T03:38:36.000Z | 2022-03-31T14:12:16.000Z | lib/wwmgr/test_work_managers/__init__.py | burntyellow/westpa | 9dc62478fcef0001b9c038cd56a40b6be1b9d64a | [
"MIT"
] | 56 | 2015-01-02T21:21:40.000Z | 2022-03-03T16:27:54.000Z | from . import test_serial, test_threads, test_processes
from test_work_managers.test_zeromq import test_work_manager
| 23.8 | 60 | 0.865546 | 18 | 119 | 5.277778 | 0.555556 | 0.210526 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10084 | 119 | 4 | 61 | 29.75 | 0.88785 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
ed292ceaf03f2c611924e8ea8936ad0f410b0021 | 174 | py | Python | Rest_Api/admin.py | gitRipan/ProjRestApi | f928670adad4cc30cf67caa975d08a65e125b871 | [
"MIT"
] | null | null | null | Rest_Api/admin.py | gitRipan/ProjRestApi | f928670adad4cc30cf67caa975d08a65e125b871 | [
"MIT"
] | null | null | null | Rest_Api/admin.py | gitRipan/ProjRestApi | f928670adad4cc30cf67caa975d08a65e125b871 | [
"MIT"
] | null | null | null | from django.contrib import admin
from Rest_Api import models
# Register your models here.
admin.site.register(models.UserProfile)
admin.site.register(models.ProfileFeedItem) | 29 | 43 | 0.83908 | 24 | 174 | 6.041667 | 0.583333 | 0.124138 | 0.234483 | 0.317241 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.086207 | 174 | 6 | 43 | 29 | 0.91195 | 0.149425 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 6 |
ed305ebf3974438a595aa73c2d7aa0af5e764e84 | 154 | py | Python | python/code/range.py | darcamo/python-16h-course | 70c67ff1275d1abfca77ca5f56779c198b81bd0c | [
"MIT"
] | null | null | null | python/code/range.py | darcamo/python-16h-course | 70c67ff1275d1abfca77ca5f56779c198b81bd0c | [
"MIT"
] | null | null | null | python/code/range.py | darcamo/python-16h-course | 70c67ff1275d1abfca77ca5f56779c198b81bd0c | [
"MIT"
] | null | null | null | range(5, 10) # 5, 6, 7, 8, 9
range(0, 10, 3) # 0, 3, 6, 9
range(-10, -100, -30) # -10, -40, -70
range(-10, -101, -30) # -10, -40, -70 -100
| 30.8 | 42 | 0.422078 | 31 | 154 | 2.096774 | 0.451613 | 0.184615 | 0.184615 | 0.246154 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 0.298701 | 154 | 4 | 43 | 38.5 | 0.185185 | 0.37013 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
ed4896abdce84ca0df5b9442357ac0f888502c53 | 76,576 | py | Python | Source/CharlestonPark.py | YangChuan80/CharlestonPark | 241c2e922254cfbc21b7947cb6b589930fe47247 | [
"MIT",
"Unlicense"
] | null | null | null | Source/CharlestonPark.py | YangChuan80/CharlestonPark | 241c2e922254cfbc21b7947cb6b589930fe47247 | [
"MIT",
"Unlicense"
] | null | null | null | Source/CharlestonPark.py | YangChuan80/CharlestonPark | 241c2e922254cfbc21b7947cb6b589930fe47247 | [
"MIT",
"Unlicense"
] | null | null | null | import tkinter as tk
from tkinter import ttk
from tkinter import filedialog
from tkinter import messagebox
import tkinter.font as tkf
import sqlite3
import datetime
DB_file = 'Samples_DB.sqlite'
conn = sqlite3.connect(DB_file)
cur = conn.cursor()
sqlstr = '''SELECT *
FROM Samples JOIN Patients ON Samples.patient_id = Patients.id_in_patients
ORDER BY Samples.id_in_samples
'''
spreadsheet = cur.execute(sqlstr)
combination = []
for row in spreadsheet:
combination.append(row)
cur.execute('SELECT * FROM Samples')
headers_samples = [item[0] for item in cur.description]
cur.execute('SELECT * FROM Patients')
headers_patients = [item[0] for item in cur.description]
headers = headers_samples + headers_patients
## Helper functions
#### Table related
def OnDoubleClick(event):
global idglb
try:
item = table.selection()[0]
value = table.item(item, 'values')
iden = value[0]
ExtractID(iden)
idglb = iden
except:
pass
def sortby(tree, col, descending):
"""sort tree contents when a column header is clicked on"""
# grab values to sort
data = [(tree.set(child, col), child) for child in tree.get_children('')]
# if the data to be sorted is numeric change to float
#data = change_numeric(data)
# now sort the data in place
data.sort(reverse=descending)
for ix, item in enumerate(data):
tree.move(item[1], '', ix)
# switch the heading so it will sort in the opposite direction
tree.heading(col, command=lambda col=col: sortby(tree, col, int(not descending)))
#### Function related
def refreshDB():
global conn, cur, desc, headers, combination
conn.close()
conn = sqlite3.connect(DB_file)
cur = conn.cursor()
cur.execute('SELECT * FROM Samples')
headers_samples = [item[0] for item in cur.description]
cur.execute('SELECT * FROM Patients')
headers_patients = [item[0] for item in cur.description]
headers = headers_samples + headers_patients
sqlstr = '''SELECT * FROM Samples JOIN Patients
ON Samples.patient_id = Patients.id_in_patients
ORDER BY Samples.id_in_samples
'''
spreadsheet = cur.execute(sqlstr)
combination = []
for row in spreadsheet:
combination.append(row)
def ExtractID(iden):
sqlstr = '''SELECT * FROM Samples
JOIN Patients ON Samples.patient_id = Patients.id_in_patients
WHERE Samples.id_in_samples = ?
'''
cur.execute(sqlstr, (iden,))
rowSelected = cur.fetchone()
item = {}
for i in range(len(rowSelected)):
item[headers[i]] = rowSelected[i]
display_in_text(item)
def display_in_table(combination):
for row in combination:
table.insert("", "end", "", values=row)
num = str(len(combination))
text_num.delete('1.0', tk.END)
text_num.insert('1.0', num)
def display_in_text(item):
# //// Samples ///////////////////////////////
text_id_in_samples.delete('1.0', tk.END)
text_id_in_samples.insert('1.0', item['id_in_samples'])
text_RackNumber.delete('1.0', tk.END)
text_RackNumber.insert('1.0', item['RackNumber'])
#text_SampleType.delete('1.0', tk.END)
#text_SampleType.insert('1.0', item['SampleType'])
combo_SampleType.set(item['SampleType'])
text_SampleID.delete('1.0', tk.END)
text_SampleID.insert('1.0', item['SampleID'])
#text_SampleStatus.delete('1.0', tk.END)
#text_SampleStatus.insert('1.0', item['SampleStatus'])
combo_SampleStatus.set(item['SampleStatus'])
text_PatientName_in_samples.delete('1.0', tk.END)
text_PatientName_in_samples.insert('1.0', item['PatientName_in_samples'])
text_Samples_patient_id.delete('1.0', tk.END)
text_Samples_patient_id.insert('1.0', item['patient_id'])
# //// Patients ///////////////////////////////
text_id_in_patients.delete('1.0', tk.END)
text_id_in_patients.insert('1.0', item['id_in_patients'])
text_PatientName_in_patients.delete('1.0', tk.END)
text_PatientName_in_patients.insert('1.0', item['PatientName_in_patients'])
text_InPatientID.delete('1.0', tk.END)
text_InPatientID.insert('1.0', item['InPatientID'])
text_CitizenID.delete('1.0', tk.END)
text_CitizenID.insert('1.0', item['CitizenID'])
text_BirthDate.delete('1.0', tk.END)
text_BirthDate.insert('1.0', item['BirthDate'])
#text_Gender.delete('1.0', tk.END)
#text_Gender.insert('1.0', item['Gender'])
combo_Gender.set(item['Gender'])
text_PatientName_CN.delete('1.0', tk.END)
text_PatientName_CN.insert('1.0', item['PatientName_CN'])
text_ProbandName.delete('1.0', tk.END)
text_ProbandName.insert('1.0', item['ProbandName'])
text_proband_id.delete('1.0', tk.END)
text_proband_id.insert('1.0', item['proband_id'])
text_RelationshipOfProband.delete('1.0', tk.END)
text_RelationshipOfProband.insert('1.0', item['RelationshipOfProband'])
text_Telephone.delete('1.0', tk.END)
text_Telephone.insert('1.0', item['Telephone'])
text_Comments.delete('1.0', tk.END)
text_Comments.insert('1.0', item['Comments'])
text_Diagnosis1.delete('1.0', tk.END)
text_Diagnosis1.insert('1.0', item['Diagnosis1'])
text_Diagnosis2.delete('1.0', tk.END)
text_Diagnosis2.insert('1.0', item['Diagnosis2'])
text_Diagnosis3.delete('1.0', tk.END)
text_Diagnosis3.insert('1.0', item['Diagnosis3'])
text_Diagnosis4.delete('1.0', tk.END)
text_Diagnosis4.insert('1.0', item['Diagnosis4'])
text_Diagnosis5.delete('1.0', tk.END)
text_Diagnosis5.insert('1.0', item['Diagnosis5'])
def clear():
for i in table.get_children():
table.delete(i)
def browse():
clear()
refreshDB()
display_in_table(combination)
def samples():
cur.execute('SELECT * FROM Samples')
headers_samples = [item[0] for item in cur.description]
sqlstr = 'SELECT * FROM Samples ORDER BY id_in_samples'
spreadsheet = cur.execute(sqlstr)
combination = []
for row in spreadsheet:
combination.append(row)
def OnDoubleClick_Samples(event):
global idglb
try:
item = table.selection()[0]
value = table.item(item, 'values')
iden = value[0]
ExtractID(iden)
idglb = iden
except:
pass
def ExtractID(iden):
sqlstr = 'SELECT * FROM Samples WHERE id_in_samples = ?'
cur.execute(sqlstr, (iden,))
rowSelected = cur.fetchone()
item = {}
for i in range(len(rowSelected)):
item[headers[i]] = rowSelected[i]
display_in_text(item)
def display_in_table(combination):
for row in combination:
table.insert("", "end", "", values=row)
def display_in_text(item):
text_id_in_samples.delete('1.0', tk.END)
text_id_in_samples.insert('1.0', item['id_in_samples'])
text_RackNumber.delete('1.0', tk.END)
text_RackNumber.insert('1.0', item['RackNumber'])
combo_SampleType.set(item['SampleType'])
text_SampleID.delete('1.0', tk.END)
text_SampleID.insert('1.0', item['SampleID'])
combo_SampleStatus.set(item['SampleStatus'])
text_PatientName_in_samples.delete('1.0', tk.END)
text_PatientName_in_samples.insert('1.0', item['PatientName_in_samples'])
text_Samples_patient_id.delete('1.0', tk.END)
text_Samples_patient_id.insert('1.0', item['patient_id'])
def update_samples():
try:
text_id_in_samples_gotten = text_id_in_samples.get('1.0', tk.END).rstrip()
RackNumber_gotten = text_RackNumber.get('1.0', tk.END).rstrip()
SampleID_gotten = text_SampleID.get('1.0', tk.END).rstrip()
SampleType_gotten = combo_SampleType.get().rstrip()
SampleStatus_gotten = combo_SampleStatus.get().rstrip()
PatientName_in_samples_gotten = text_PatientName_in_samples.get('1.0', tk.END).rstrip()
Samples_patient_id_gotten = text_Samples_patient_id.get('1.0', tk.END).rstrip()
Question_mark = '(' + '?, ' * 6 + '?)'
cur.execute('DELETE FROM Samples WHERE id_in_samples = ?', (text_id_in_samples_gotten,))
conn.commit()
Update_values = (text_id_in_samples_gotten,
RackNumber_gotten,
SampleID_gotten,
SampleType_gotten,
SampleStatus_gotten,
PatientName_in_samples_gotten,
Samples_patient_id_gotten)
Update_Fields = '''(
id_in_samples,
RackNumber,
SampleID,
SampleType,
SampleStatus,
PatientName_in_samples,
patient_id)
'''
#cur.execute('INSERT INTO BloodSamples (SampleID, PatientName, SampleType) VALUES (?, ?, ?)',
#('201706181718000444', 'PatientName, 'Serum'))
cur.execute('INSERT INTO Samples '+ Update_Fields + ' VALUES ' + Question_mark,
Update_values)
conn.commit()
#messagebox.showinfo("Updated", "Sample information successfully updated!")
# //////////////////// Refresh the Table ///////////////////////////////////////////////////
# Clear the table
for i in table.get_children():
table.delete(i)
# Refresh the whole database
refreshDB()
# Refresh variable combination
sqlstr = 'SELECT * FROM Samples ORDER BY id_in_samples'
spreadsheet = cur.execute(sqlstr)
combination = []
for row in spreadsheet:
combination.append(row)
# Display the table
display_in_table(combination)
except:
pass
def delete_sample():
id_in_samples_gotten = text_id_in_samples.get('1.0', tk.END).rstrip()
if id_in_samples_gotten == '':
messagebox.showinfo("Empty", "There's no sample to delete. Please make sure.")
else:
result = messagebox.askquestion('Delete', 'Are you sure to delete this sample?',
icon='warning')
if result == 'yes':
cur.execute('DELETE FROM Samples WHERE id_in_samples = ?', (id_in_samples_gotten,))
conn.commit()
messagebox.showinfo("Deleted", "Sample has been deleted!")
# //////////////////// Refresh the Table ///////////////////////////////////////////////////
# Clear the table
for i in table.get_children():
table.delete(i)
# Refresh the whole database
refreshDB()
# Refresh variable combination
sqlstr = 'SELECT * FROM Samples ORDER BY id_in_samples'
spreadsheet = cur.execute(sqlstr)
combination = []
for row in spreadsheet:
combination.append(row)
# Display the table
display_in_table(combination)
def sampleIDSearch():
PatientName_Search_gotten = text_SampleID_search.get('1.0', tk.END).rstrip()
sqlstr = '''SELECT * FROM Samples WHERE SampleID = ?
'''
cur.execute(sqlstr, (PatientName_Search_gotten,))
items = cur.fetchall()
for i in table.get_children():
table.delete(i)
display_in_table(items)
def patientNameSearch():
PatientName_Search_gotten = text_PatientName_search.get('1.0', tk.END).rstrip()
sqlstr = '''SELECT * FROM Samples WHERE PatientName_in_samples = ?
'''
cur.execute(sqlstr, (PatientName_Search_gotten,))
items = cur.fetchall()
for i in table.get_children():
table.delete(i)
display_in_table(items)
def browse():
# Refresh the whole database
refreshDB()
# Refresh variable combination
sqlstr = 'SELECT * FROM Samples ORDER BY id_in_samples'
spreadsheet = cur.execute(sqlstr)
combination = []
for row in spreadsheet:
combination.append(row)
# Display the table
display_in_table(combination)
# /////// Main Flow ////////////////////////////
root_samples = tk.Tk()
w = 1400 # width for the Tk root
h = 730 # height for the Tk root
# get screen width and height
ws = root_samples.winfo_screenwidth() # width of the screen
hs = root_samples.winfo_screenheight() # height of the screen
# calculate x and y coordinates for the Tk root window
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
# set the dimensions of the screen
# and where it is placed
root_samples.geometry('%dx%d+%d+%d' % (w, h, x, y))
root_samples.title('Samples')
# /////// Multicolumn Listbox /////////////////////////
table = ttk.Treeview(root_samples, height="20", columns=headers_samples, selectmode="extended")
table.pack(padx=10, pady=20, ipadx=1200, ipady=200)
'''
['id_in_samples', 'RackNumber', 'SampleID', 'SampleType', 'SampleStatus',
'PatientName_in_samples', 'patient_id']
'''
i = 1
header_width = [30, 50, 100, 50, 30,
30, 30]
for header in headers_samples:
table.heading('#'+str(i), text=header.title(), anchor=tk.W,
command=lambda c=header: sortby(table, c, 0))
table.column('#'+str(i), stretch=tk.NO, minwidth=0,
width=tkf.Font().measure(header.title())+header_width[i-1])
i+=1
table.column('#0', stretch=tk.NO, minwidth=0, width=0)
table.bind("<Double-1>", OnDoubleClick_Samples)
#///////////////////////////////////////////////////////////////////////////////////////////
# Scrollbar////////////////////////////////////////////////////////////////////////////////////////
vsb = ttk.Scrollbar(table, orient = "vertical", command = table.yview)
hsb = ttk.Scrollbar(table, orient = "horizontal", command = table.xview)
## Link scrollbars activation to top-level object
table.configure(yscrollcommand = vsb.set, xscrollcommand = hsb.set)
## Link scrollbar also to every columns
map(lambda col: col.configure(yscrollcommand = vsb.set, xscrollcommand = hsb.set), table)
vsb.pack(side = tk.RIGHT, fill = tk.Y)
hsb.pack(side = tk.BOTTOM, fill = tk.X)
# ///////////////Samples///////////////
y_origin = 540
gain = 50
i = 0
# ///////////// Raised Label Block ////////////////////////////////////////////////
label_Patients=tk.Label(root_samples,width=140, height=9 , relief='raised', borderwidth=1)
label_Patients.place(x=10,y=y_origin+i*gain-40)
# ///////////// Routine Edits////////////////
text_id_in_samples = tk.Text(root_samples, width=10, height=1, font=('tahoma', 8), wrap='none')
text_id_in_samples.place(x=820, y=y_origin+i*gain)
label_id_in_samples = tk.Label(root_samples, text='id_samples:', font=('tahoma', 8))
label_id_in_samples.place(x=820,y=y_origin+i*gain-25)
text_RackNumber = tk.Text(root_samples, width=20, height=1, font=('tahoma', 8), wrap='none')
text_RackNumber.place(x=40, y=y_origin+i*gain)
label_RackNumber = tk.Label(root_samples, text='Rack Number:', font=('tahoma', 8))
label_RackNumber.place(x=40,y=y_origin+i*gain-25)
text_SampleID = tk.Text(root_samples, width=26, height=1, font=('tahoma', 8), wrap='none')
text_SampleID.place(x=240, y=y_origin+i*gain)
label_SampleID = tk.Label(root_samples, text='Sample ID:', font=('tahoma', 8))
label_SampleID.place(x=240,y=y_origin+i*gain-25)
combo_SampleType = ttk.Combobox(root_samples, width=20, height=1, font=('tahoma', 8))
combo_SampleType.place(x=440, y=y_origin+i*gain)
label_SampleType = tk.Label(root_samples, text='Sample Type:', font=('tahoma', 8))
label_SampleType.place(x=440,y=y_origin+i*gain-25)
combo_SampleType['values'] = ('WholeBlood', 'BloodCells', 'Serum')
combo_SampleType['state'] = 'readonly'
combo_SampleStatus = ttk.Combobox(root_samples, width=20, height=1, font=('tahoma', 8))
combo_SampleStatus.place(x=640, y=y_origin+i*gain)
label_SampleStatus = tk.Label(root_samples, text='Sample Status:', font=('tahoma', 8))
label_SampleStatus.place(x=640,y=y_origin+i*gain-25)
combo_SampleStatus['values'] = ('-80Frozen', '-20Frozen', '4Refrigeration', 'RoomTemperature')
combo_SampleStatus['state'] = 'readonly'
i = 1
text_PatientName_in_samples = tk.Text(root_samples, width=20, height=1, font=('tahoma', 8), wrap='none')
text_PatientName_in_samples.place(x=40, y=y_origin+i*gain)
label_PatientName_in_samples = tk.Label(root_samples, text='Patient Name:', font=('tahoma', 8))
label_PatientName_in_samples.place(x=40,y=y_origin+i*gain-25)
text_Samples_patient_id = tk.Text(root_samples, width=20, height=1, font=('tahoma', 8), wrap='none')
text_Samples_patient_id.place(x=240, y=y_origin+i*gain)
label_patient_id = tk.Label(root_samples, text='Patient ID:', font=('tahoma', 8))
label_patient_id.place(x=240,y=y_origin+i*gain-25)
# //////// Search Area ////////////
i = -0.7
button_browse = ttk.Button(root_samples, text='Browse', width=15, command=browse)
button_browse.place(x=1240, y=y_origin+i*gain-5)
i = 0.3
text_SampleID_search = tk.Text(root_samples, width=25, height=1, font=('tahoma', 8), wrap='none')
text_SampleID_search.place(x=1050, y=y_origin+i*gain)
label_SampleID_search = tk.Label(root_samples, text='Sample ID:', font=('tahoma', 8))
label_SampleID_search.place(x=1050,y=y_origin+i*gain-25)
button_InPatientID_search = ttk.Button(root_samples, text='Search', width=15, command=sampleIDSearch)
button_InPatientID_search.place(x=1240, y=y_origin+i*gain-5)
i = 1.3
text_PatientName_search = tk.Text(root_samples, width=25, height=1, font=('tahoma', 8), wrap='none')
text_PatientName_search.place(x=1050, y=y_origin+i*gain)
label_PatientName_search = tk.Label(root_samples, text='Paitnet Name:', font=('tahoma', 8))
label_PatientName_search.place(x=1050,y=y_origin+i*gain-25)
button_PatientName_search = ttk.Button(root_samples, text='Search', width=15, command=patientNameSearch)
button_PatientName_search.place(x=1240, y=y_origin+i*gain-5)
# ////// Buttons //////////////////////////
button_update_sample = ttk.Button(root_samples, text='Update', width=15, command=update_samples)
button_update_sample.place(x=640, y=590)
button_delete_sample = ttk.Button(root_samples, text='Delete', width=15, command=delete_sample)
button_delete_sample.place(x=800, y=590)
button_exit = ttk.Button(root_samples, text='Exit', width=15, command=root_samples.destroy)
button_exit.place(x=1240, y=670)
# ///// Browse Automatically /////////////////////
display_in_table(combination)
root_samples.mainloop()
def patients():
cur.execute('SELECT * FROM Patients')
headers_patients = [item[0] for item in cur.description]
sqlstr = 'SELECT * FROM Patients ORDER BY id_in_patients'
spreadsheet = cur.execute(sqlstr)
combination = []
for row in spreadsheet:
combination.append(row)
def OnDoubleClick_Patients(event):
global idglb
try:
item = table.selection()[0]
value = table.item(item, 'values')
iden = value[0]
ExtractID(iden)
idglb = iden
except:
pass
def ExtractID(iden):
sqlstr = 'SELECT * FROM Patients WHERE id_in_patients = ?'
cur.execute(sqlstr, (iden,))
rowSelected = cur.fetchone()
item = {}
for i in range(len(rowSelected)):
item[headers_patients[i]] = rowSelected[i]
display_in_text(item)
def display_in_table(combination):
for row in combination:
table.insert("", "end", "", values=row)
num = str(len(combination))
text_num.delete('1.0', tk.END)
text_num.insert('1.0', num)
def display_in_text(item):
text_id_in_patients.delete('1.0', tk.END)
text_id_in_patients.insert('1.0', item['id_in_patients'])
text_PatientName_in_patients.delete('1.0', tk.END)
text_PatientName_in_patients.insert('1.0', item['PatientName_in_patients'])
text_InPatientID.delete('1.0', tk.END)
text_InPatientID.insert('1.0', item['InPatientID'])
text_CitizenID.delete('1.0', tk.END)
text_CitizenID.insert('1.0', item['CitizenID'])
text_BirthDate.delete('1.0', tk.END)
text_BirthDate.insert('1.0', item['BirthDate'])
combo_Gender.set(item['Gender'])
text_PatientName_CN.delete('1.0', tk.END)
text_PatientName_CN.insert('1.0', item['PatientName_CN'])
text_ProbandName.delete('1.0', tk.END)
text_ProbandName.insert('1.0', item['ProbandName'])
text_proband_id.delete('1.0', tk.END)
text_proband_id.insert('1.0', item['proband_id'])
text_RelationshipOfProband.delete('1.0', tk.END)
text_RelationshipOfProband.insert('1.0', item['RelationshipOfProband'])
text_Telephone.delete('1.0', tk.END)
text_Telephone.insert('1.0', item['Telephone'])
text_Comments.delete('1.0', tk.END)
text_Comments.insert('1.0', item['Comments'])
text_Diagnosis1.delete('1.0', tk.END)
text_Diagnosis1.insert('1.0', item['Diagnosis1'])
text_Diagnosis2.delete('1.0', tk.END)
text_Diagnosis2.insert('1.0', item['Diagnosis2'])
text_Diagnosis3.delete('1.0', tk.END)
text_Diagnosis3.insert('1.0', item['Diagnosis3'])
text_Diagnosis4.delete('1.0', tk.END)
text_Diagnosis4.insert('1.0', item['Diagnosis4'])
text_Diagnosis5.delete('1.0', tk.END)
text_Diagnosis5.insert('1.0', item['Diagnosis5'])
def update_patients():
try:
id_in_patients_gotten = text_id_in_patients.get('1.0', tk.END).rstrip()
PatientName_in_patients_gotten = text_PatientName_in_patients.get('1.0', tk.END).rstrip()
PatientName_CN_gotten = text_PatientName_CN.get('1.0', tk.END).rstrip()
Gender_gotten = combo_Gender.get().rstrip()
ProbandName_gotten = text_ProbandName.get('1.0', tk.END).rstrip()
proband_id = text_proband_id.get('1.0', tk.END).rstrip()
RelationshipOfProband_gotten = text_RelationshipOfProband.get('1.0', tk.END).rstrip()
InPatientID_gotten = text_InPatientID.get('1.0', tk.END).rstrip()
CitizenID_gotten = text_CitizenID.get('1.0', tk.END).rstrip()
BirthDate_gotten = text_BirthDate.get('1.0', tk.END).rstrip()
Diagnosis1_gotten = text_Diagnosis1.get('1.0', tk.END).rstrip()
Diagnosis2_gotten = text_Diagnosis2.get('1.0', tk.END).rstrip()
Diagnosis3_gotten = text_Diagnosis3.get('1.0', tk.END).rstrip()
Diagnosis4_gotten = text_Diagnosis4.get('1.0', tk.END).rstrip()
Diagnosis5_gotten = text_Diagnosis5.get('1.0', tk.END).rstrip()
Telephone_gotten = text_Telephone.get('1.0', tk.END).rstrip()
Comments_gotten = text_Comments.get('1.0', tk.END).rstrip()
Question_mark = '(' + '?, ' * 16 + '?)'
cur.execute('DELETE FROM Patients WHERE id_in_patients = ?', (id_in_patients_gotten,))
conn.commit()
Update_values = (id_in_patients_gotten,
PatientName_in_patients_gotten,
PatientName_CN_gotten,
Gender_gotten,
InPatientID_gotten,
CitizenID_gotten,
BirthDate_gotten,
ProbandName_gotten,
proband_id,
RelationshipOfProband_gotten,
Diagnosis1_gotten,
Diagnosis2_gotten,
Diagnosis3_gotten,
Diagnosis4_gotten,
Diagnosis5_gotten,
Telephone_gotten,
Comments_gotten)
Update_Fields = '''(id_in_patients, PatientName_in_patients, PatientName_CN, Gender,
InPatientID, CitizenID, BirthDate,
ProbandName, proband_id, RelationshipOfProband,
Diagnosis1, Diagnosis2, Diagnosis3, Diagnosis4, Diagnosis5,
Telephone, Comments)
'''
#cur.execute('INSERT INTO BloodSamples (SampleID, PatientName, SampleType) VALUES (?, ?, ?)',
#('201706181718000444', 'PatientName, 'Serum'))
cur.execute('INSERT INTO Patients '+ Update_Fields + ' VALUES ' + Question_mark,
Update_values)
conn.commit()
#messagebox.showinfo("Updated", "Patient's information successfully updated!")
# //////////////////// Refresh the Table ///////////////////////////////////////////
# Clear the table
for i in table.get_children():
table.delete(i)
# Refresh the whole database
refreshDB()
# Refresh variable combination
sqlstr = 'SELECT * FROM Patients ORDER BY id_in_patients'
spreadsheet = cur.execute(sqlstr)
combination = []
for row in spreadsheet:
combination.append(row)
# Display the table
display_in_table(combination)
except:
pass
def delete_patient():
id_in_patients_gotten = text_id_in_patients.get('1.0', tk.END).rstrip()
if id_in_patients_gotten == '':
messagebox.showinfo("Empty", "There's no patient's information to delete. Please make sure.")
else:
result = messagebox.askquestion('Delete', 'Are you sure to delete this patient?',
icon='warning')
if result == 'yes':
cur.execute('DELETE FROM Patients WHERE id_in_patients = ?', (id_in_patients_gotten,))
conn.commit()
messagebox.showinfo("Deleted", "The patient's information has been deleted!")
# //////////////////// Refresh the Table ///////////////////////////////////////////
# Clear the table
for i in table.get_children():
table.delete(i)
# Refresh the whole database
refreshDB()
# Refresh variable combination
sqlstr = 'SELECT * FROM Patients ORDER BY id_in_patients'
spreadsheet = cur.execute(sqlstr)
combination = []
for row in spreadsheet:
combination.append(row)
# Display the table
display_in_table(combination)
def patientNameSearch():
PatientName_Search_gotten = text_PatientName_search.get('1.0', tk.END).rstrip()
sqlstr = '''SELECT * FROM Patients WHERE PatientName_in_patients = ?
'''
cur.execute(sqlstr, (PatientName_Search_gotten,))
items = cur.fetchall()
for i in table.get_children():
table.delete(i)
display_in_table(items)
def inPatientIDSearch():
InPatientID_Search_gotten = text_InPatientID_search.get('1.0', tk.END).rstrip()
sqlstr = '''SELECT * FROM Patients WHERE InPatientID = ?
'''
cur.execute(sqlstr, (InPatientID_Search_gotten,))
items = cur.fetchall()
for i in table.get_children():
table.delete(i)
display_in_table(items)
def browse():
# Refresh the whole database
refreshDB()
# Refresh variable combination
sqlstr = 'SELECT * FROM Patients ORDER BY id_in_patients'
spreadsheet = cur.execute(sqlstr)
combination = []
for row in spreadsheet:
combination.append(row)
# Display the table
display_in_table(combination)
# //////////////////////////////////////////////////////
# /////// Main Flow ////////////////////////////
root_patients = tk.Tk()
w = 1500 # width for the Tk root
h = 840 # height for the Tk root
# get screen width and height
ws = root_patients.winfo_screenwidth() # width of the screen
hs = root_patients.winfo_screenheight() # height of the screen
# calculate x and y coordinates for the Tk root window
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
# set the dimensions of the screen
# and where it is placed
root_patients.geometry('%dx%d+%d+%d' % (w, h, x, y))
root_patients.title('Patients')
# /////// Multicolumn Listbox /////////////////////////
table = ttk.Treeview(root_patients, height="20", columns=headers_patients, selectmode="extended")
table.pack(padx=10, pady=20, ipadx=1200, ipady=140)
'''
['id_in_patients', 'PatientName_in_patients', 'PatientName_CN', 'ProbandName', 'proband_id',
'RelationshipOfProband', 'InPatientID', 'CitizenID', 'BirthDate', 'Gender',
'Diagnosis1', 'Diagnosis2', 'Diagnosis3', 'Diagnosis4', 'Diagnosis5', 'Telephone', 'Comments']
'''
i = 1
header_width = [-50, -50, -20, 30, -30,
50, 70, 80, 50, 40,
90, 90, 90, 90, 90, 60, 50]
for header in headers_patients:
table.heading('#'+str(i), text=header.title(), anchor=tk.W,
command=lambda c=header: sortby(table, c, 0))
table.column('#'+str(i), stretch=tk.NO, minwidth=0,
width=tkf.Font().measure(header.title())+header_width[i-1])
i+=1
table.column('#0', stretch=tk.NO, minwidth=0, width=0)
table.bind("<Double-1>", OnDoubleClick_Patients)
#///////////////////////////////////////////////////////////////////////////////////////////
# Scrollbar////////////////////////////////////////////////////////////////////////////////////////
vsb = ttk.Scrollbar(table, orient = "vertical", command = table.yview)
hsb = ttk.Scrollbar(table, orient = "horizontal", command = table.xview)
## Link scrollbars activation to top-level object
table.configure(yscrollcommand = vsb.set, xscrollcommand = hsb.set)
## Link scrollbar also to every columns
map(lambda col: col.configure(yscrollcommand = vsb.set, xscrollcommand = hsb.set), table)
vsb.pack(side = tk.RIGHT, fill = tk.Y)
hsb.pack(side = tk.BOTTOM, fill = tk.X)
# ///////////////Patients///////////////
y_origin = 420
gain = 50
i = 0
# ///////////// Raised Label Block ////////////////////////////////////////////////
label_Patients=tk.Label(root_patients,width=140, height=25 , relief='raised', borderwidth=1)
label_Patients.place(x=10,y=y_origin+i*gain-40)
# ///////////// Routine Edits////////////////
text_id_in_patients = tk.Text(root_patients, width=10, height=1, font=('tahoma', 9), wrap='none')
text_id_in_patients.place(x=640, y=y_origin+i*gain)
label_id_in_patients = tk.Label(root_patients, text='id_patients:', font=('tahoma', 8))
label_id_in_patients.place(x=640,y=y_origin+i*gain-25)
text_PatientName_CN = tk.Text(root_patients, width=20, height=1, font=('tahoma', 9), wrap='none')
text_PatientName_CN.place(x=40, y=y_origin+i*gain)
label_PatientName_CN = tk.Label(root_patients, text='Patient\'s Chinese Name:', font=('tahoma', 8))
label_PatientName_CN.place(x=40,y=y_origin+i*gain-25)
text_PatientName_in_patients = tk.Text(root_patients, width=20, height=1, font=('tahoma', 8), wrap='none')
text_PatientName_in_patients.place(x=240, y=y_origin+i*gain)
label_PatientName_in_patients = tk.Label(root_patients, text='Patient\' Name:', font=('tahoma', 8))
label_PatientName_in_patients.place(x=240,y=y_origin+i*gain-25)
text_num = tk.Text(root_patients, width=8, height=1, font=('tahoma', 8), wrap='none')
text_num.place(x=1120, y=y_origin+i*gain)
i = 1
combo_Gender = ttk.Combobox(root_patients, width=20, height=1, font=('tahoma', 8))
combo_Gender.place(x=40, y=y_origin+i*gain)
label_Gender = tk.Label(root_patients, text='Gender:', font=('tahoma', 8))
label_Gender.place(x=40,y=y_origin+i*gain-25)
combo_Gender['values'] = ('Male', 'Female', 'Other')
combo_Gender['state'] = 'readonly'
text_ProbandName = tk.Text(root_patients, width=20, height=1, font=('tahoma', 8), wrap='none')
text_ProbandName.place(x=240, y=y_origin+i*gain)
label_ProbandName = tk.Label(root_patients, text='Proband Name:', font=('tahoma', 8))
label_ProbandName.place(x=240,y=y_origin+i*gain-25)
text_proband_id = tk.Text(root_patients, width=20, height=1, font=('tahoma', 8), wrap='none')
text_proband_id.place(x=440, y=y_origin+i*gain)
label_proband_id = tk.Label(root_patients, text='Proband ID:', font=('tahoma', 8))
label_proband_id.place(x=440,y=y_origin+i*gain-25)
text_RelationshipOfProband = tk.Text(root_patients, width=40, height=1, font=('tahoma', 8), wrap='none')
text_RelationshipOfProband.place(x=640, y=y_origin+i*gain)
label_RelationshipOfProband = tk.Label(root_patients, text='Relationship of Proband:', font=('tahoma', 8))
label_RelationshipOfProband.place(x=640,y=y_origin+i*gain-25)
i = 2
text_InPatientID = tk.Text(root_patients, width=20, height=1, font=('tahoma', 8), wrap='none')
text_InPatientID.place(x=40, y=y_origin+i*gain)
label_InPatientID = tk.Label(root_patients, text='In-Patient ID:', font=('tahoma', 8))
label_InPatientID.place(x=40,y=y_origin+i*gain-25)
text_CitizenID = tk.Text(root_patients, width=25, height=1, font=('tahoma', 8), wrap='none')
text_CitizenID.place(x=240, y=y_origin+i*gain)
label_CitizenID = tk.Label(root_patients, text='Citizen ID:', font=('tahoma', 8))
label_CitizenID.place(x=240,y=y_origin+i*gain-25)
text_BirthDate = tk.Text(root_patients, width=20, height=1, font=('tahoma', 8), wrap='none')
text_BirthDate.place(x=440, y=y_origin+i*gain)
label_BirthDate = tk.Label(root_patients, text='Birth Date:', font=('tahoma', 8))
label_BirthDate.place(x=440,y=y_origin+i*gain-25)
i = 3
text_Diagnosis1 = tk.Text(root_patients, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis1.place(x=40, y=y_origin+i*gain)
label_Diagnosis1 = tk.Label(root_patients, text='Diagnosis 1:', font=('tahoma', 8))
label_Diagnosis1.place(x=40,y=y_origin+i*gain-25)
text_Diagnosis2 = tk.Text(root_patients, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis2.place(x=340, y=y_origin+i*gain)
label_Diagnosis2 = tk.Label(root_patients, text='Diagnosis 2:', font=('tahoma', 8))
label_Diagnosis2.place(x=340,y=y_origin+i*gain-25)
text_Diagnosis3 = tk.Text(root_patients, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis3.place(x=640, y=y_origin+i*gain)
label_Diagnosis3 = tk.Label(root_patients, text='Diagnosis 3:', font=('tahoma', 8))
label_Diagnosis3.place(x=640,y=y_origin+i*gain-25)
i = 4
text_Diagnosis4 = tk.Text(root_patients, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis4.place(x=40, y=y_origin+i*gain)
label_Diagnosis4 = tk.Label(root_patients, text='Diagnosis 4:', font=('tahoma', 8))
label_Diagnosis4.place(x=40,y=y_origin+i*gain-25)
text_Diagnosis5 = tk.Text(root_patients, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis5.place(x=340, y=y_origin+i*gain)
label_Diagnosis5 = tk.Label(root_patients, text='Diagnosis 5:', font=('tahoma', 8))
label_Diagnosis5.place(x=340,y=y_origin+i*gain-25)
i = 5
text_Telephone = tk.Text(root_patients, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Telephone.place(x=40, y=y_origin+i*gain)
label_Telephone = tk.Label(root_patients, text='Telephone:', font=('tahoma', 8))
label_Telephone.place(x=40,y=y_origin+i*gain-25)
i = 6
text_Comments = tk.Text(root_patients, width=140, height=1, font=('tahoma', 8), wrap='none')
text_Comments.place(x=40, y=y_origin+i*gain)
label_Comments = tk.Label(root_patients, text='Comments:', font=('tahoma', 8))
label_Comments.place(x=40,y=y_origin+i*gain-25)
# ////// Buttons //////////////////////////
button_update_sample = ttk.Button(root_patients, text='Update', width=15, command=update_patients)
button_update_sample.place(x=640, y=670)
button_delete_sample = ttk.Button(root_patients, text='Delete', width=15, command=delete_patient)
button_delete_sample.place(x=800, y=670)
button_exit = ttk.Button(root_patients, text='Exit', width=15, command=root_patients.destroy)
button_exit.place(x=1240, y=790)
# //////// Search Area ////////////
i = 0
button_browse = ttk.Button(root_patients, text='Browse', width=15, command=browse)
button_browse.place(x=1240, y=y_origin+i*gain-5)
i = 2
text_InPatientID_search = tk.Text(root_patients, width=25, height=1, font=('tahoma', 8), wrap='none')
text_InPatientID_search.place(x=1050, y=y_origin+i*gain)
label_InPatientID_search = tk.Label(root_patients, text='Paitnet ID:', font=('tahoma', 8))
label_InPatientID_search.place(x=1050,y=y_origin+i*gain-25)
button_InPatientID_search = ttk.Button(root_patients, text='Search', width=15, command=inPatientIDSearch)
button_InPatientID_search.place(x=1240, y=y_origin+i*gain-5)
i = 3
text_PatientName_search = tk.Text(root_patients, width=25, height=1, font=('tahoma', 8), wrap='none')
text_PatientName_search.place(x=1050, y=y_origin+i*gain)
label_PatientName_search = tk.Label(root_patients, text='Paitnet Name:', font=('tahoma', 8))
label_PatientName_search.place(x=1050,y=y_origin+i*gain-25)
button_PatientName_search = ttk.Button(root_patients, text='Search', width=15, command=patientNameSearch)
button_PatientName_search.place(x=1240, y=y_origin+i*gain-5)
# ///// Browse Automatically /////////////////////
display_in_table(combination)
root_patients.mainloop()
def update_samples():
try:
text_id_in_samples_gotten = text_id_in_samples.get('1.0', tk.END).rstrip()
RackNumber_gotten = text_RackNumber.get('1.0', tk.END).rstrip()
SampleID_gotten = text_SampleID.get('1.0', tk.END).rstrip()
#SampleType_gotten = text_SampleType.get('1.0', tk.END).rstrip()
SampleType_gotten = combo_SampleType.get().rstrip()
#SampleStatus_gotten = text_SampleStatus.get('1.0', tk.END).rstrip()
SampleStatus_gotten = combo_SampleStatus.get().rstrip()
PatientName_in_samples_gotten = text_PatientName_in_samples.get('1.0', tk.END).rstrip()
Samples_patient_id_gotten = text_Samples_patient_id.get('1.0', tk.END).rstrip()
Question_mark = '(' + '?, ' * 6 + '?)'
cur.execute('DELETE FROM Samples WHERE id_in_samples = ?', (text_id_in_samples_gotten,))
conn.commit()
Update_values = (text_id_in_samples_gotten,
RackNumber_gotten,
SampleID_gotten,
SampleType_gotten,
SampleStatus_gotten,
PatientName_in_samples_gotten,
Samples_patient_id_gotten)
Update_Fields = '''(
id_in_samples,
RackNumber,
SampleID,
SampleType,
SampleStatus,
PatientName_in_samples,
patient_id)
'''
#cur.execute('INSERT INTO BloodSamples (SampleID, PatientName, SampleType) VALUES (?, ?, ?)',
#('201706181718000444', 'PatientName, 'Serum'))
cur.execute('INSERT INTO Samples '+ Update_Fields + ' VALUES ' + Question_mark,
Update_values)
conn.commit()
messagebox.showinfo("Updated", "Sample information successfully updated!")
clear()
refreshDB()
display_in_table(combination)
except:
pass
def update_patients():
try:
id_in_patients_gotten = text_id_in_patients.get('1.0', tk.END).rstrip()
PatientName_in_patients_gotten = text_PatientName_in_patients.get('1.0', tk.END).rstrip()
PatientName_CN_gotten = text_PatientName_CN.get('1.0', tk.END).rstrip()
#Gender_gotten = text_Gender.get('1.0', tk.END).rstrip()
Gender_gotten = combo_Gender.get().rstrip()
ProbandName_gotten = text_ProbandName.get('1.0', tk.END).rstrip()
proband_id = text_proband_id.get('1.0', tk.END).rstrip()
RelationshipOfProband_gotten = text_RelationshipOfProband.get('1.0', tk.END).rstrip()
InPatientID_gotten = text_InPatientID.get('1.0', tk.END).rstrip()
CitizenID_gotten = text_CitizenID.get('1.0', tk.END).rstrip()
BirthDate_gotten = text_BirthDate.get('1.0', tk.END).rstrip()
Diagnosis1_gotten = text_Diagnosis1.get('1.0', tk.END).rstrip()
Diagnosis2_gotten = text_Diagnosis2.get('1.0', tk.END).rstrip()
Diagnosis3_gotten = text_Diagnosis3.get('1.0', tk.END).rstrip()
Diagnosis4_gotten = text_Diagnosis4.get('1.0', tk.END).rstrip()
Diagnosis5_gotten = text_Diagnosis5.get('1.0', tk.END).rstrip()
Telephone_gotten = text_Telephone.get('1.0', tk.END).rstrip()
Comments_gotten = text_Comments.get('1.0', tk.END).rstrip()
Question_mark = '(' + '?, ' * 16 + '?)'
cur.execute('DELETE FROM Patients WHERE id_in_patients = ?', (id_in_patients_gotten,))
conn.commit()
Update_values = (id_in_patients_gotten,
PatientName_in_patients_gotten,
PatientName_CN_gotten,
Gender_gotten,
InPatientID_gotten,
CitizenID_gotten,
BirthDate_gotten,
ProbandName_gotten,
proband_id,
RelationshipOfProband_gotten,
Diagnosis1_gotten,
Diagnosis2_gotten,
Diagnosis3_gotten,
Diagnosis4_gotten,
Diagnosis5_gotten,
Telephone_gotten,
Comments_gotten)
Update_Fields = '''(id_in_patients, PatientName_in_patients, PatientName_CN, Gender,
InPatientID, CitizenID, BirthDate,
ProbandName, proband_id, RelationshipOfProband,
Diagnosis1, Diagnosis2, Diagnosis3, Diagnosis4, Diagnosis5,
Telephone, Comments)
'''
#cur.execute('INSERT INTO BloodSamples (SampleID, PatientName, SampleType) VALUES (?, ?, ?)',
#('201706181718000444', 'PatientName, 'Serum'))
cur.execute('INSERT INTO Patients '+ Update_Fields + ' VALUES ' + Question_mark,
Update_values)
conn.commit()
messagebox.showinfo("Updated", "Patient's information successfully updated!")
clear()
refreshDB()
display_in_table(combination)
except:
pass
def new_sample():
root_new_sample = tk.Tk()
w = 1080 # width for the Tk root
h = 320 # height for the Tk root
# get screen width and height
ws = root_new_sample.winfo_screenwidth() # width of the screen
hs = root_new_sample.winfo_screenheight() # height of the screen
# calculate x and y coordinates for the Tk root window
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
# set the dimensions of the screen
# and where it is placed
root_new_sample.geometry('%dx%d+%d+%d' % (w, h, x, y))
root_new_sample.title('New Sample')
time_text = str(datetime.datetime.now())
id = ''
for t in time_text:
if t!=' 'and t!= '-' and t != ':' and t != '.':
id += t
def create():
try:
RackNumber_gotten = text_RackNumber.get('1.0', tk.END).rstrip()
SampleID_gotten = text_SampleID.get('1.0', tk.END).rstrip()
SampleType_gotten = combo_SampleType.get().rstrip()
SampleStatus_gotten = combo_SampleStatus.get().rstrip()
PatientName_in_samples_gotten = text_PatientName_in_samples.get('1.0', tk.END).rstrip()
Samples_patient_id_gotten = text_Samples_patient_id.get('1.0', tk.END).rstrip()
Question_mark = '(' + '?, ' * 5 + '?)'
# Should rule out the primary key!!!!!!
Update_values = (RackNumber_gotten,
SampleID_gotten,
SampleType_gotten,
SampleStatus_gotten,
PatientName_in_samples_gotten,
Samples_patient_id_gotten)
Update_Fields = '''(
RackNumber,
SampleID,
SampleType,
SampleStatus,
PatientName_in_samples,
patient_id)
'''
#cur.execute('INSERT INTO BloodSamples (SampleID, PatientName, SampleType) VALUES (?, ?, ?)',
#('201706181718000444', 'PatientName, 'Serum'))
cur.execute('INSERT INTO Samples '+ Update_Fields + ' VALUES ' + Question_mark,
Update_values)
conn.commit()
messagebox.showinfo("Created", "Sample information successfully created!")
clear()
refreshDB()
display_in_table(combination)
root_new_sample.destroy()
except:
pass
# ///////////////// Main Stream /////////////////////////////////
y_origin = 100
gain = 55
i = 0
# ///////////// Raised Label Block ////////////////////////////////////////////////
label_new_patient=tk.Label(root_new_sample, width=150, height=10 , relief='raised', borderwidth=1)
label_new_patient.place(x=10,y=y_origin+i*gain-40)
# ///////////// Routine Edits////////////////
text_RackNumber = tk.Text(root_new_sample, width=20, height=1, font=('tahoma', 8), wrap='none')
text_RackNumber.place(x=40, y=y_origin+i*gain)
label_RackNumber = tk.Label(root_new_sample, text='Rack Number:', font=('tahoma', 8))
label_RackNumber.place(x=40,y=y_origin+i*gain-25)
text_SampleID = tk.Text(root_new_sample, width=26, height=1, font=('tahoma', 8), wrap='none')
text_SampleID.place(x=240, y=y_origin+i*gain)
label_SampleID = tk.Label(root_new_sample, text='Sample ID:', font=('tahoma', 8))
label_SampleID.place(x=240,y=y_origin+i*gain-25)
text_SampleID.delete('1.0', tk.END)
text_SampleID.insert('1.0', id)
'''
text_SampleType = tk.Text(root_new_sample, width=20, height=1, font=('tahoma', 8), wrap='none')
text_SampleType.place(x=440, y=y_origin+i*gain)
label_SampleType = tk.Label(root_new_sample, text='Sample Type:', font=('tahoma', 8))
label_SampleType.place(x=440,y=y_origin+i*gain-25)
text_SampleStatus = tk.Text(root_new_sample, width=20, height=1, font=('tahoma', 8), wrap='none')
text_SampleStatus.place(x=640, y=y_origin+i*gain)
label_SampleStatus = tk.Label(root_new_sample, text='Sample Status:', font=('tahoma', 8))
label_SampleStatus.place(x=640,y=y_origin+i*gain-25)
'''
# Combobox control
combo_SampleType = ttk.Combobox(root_new_sample, width=20, height=1, font=('tahoma', 8))
combo_SampleType.place(x=440, y=y_origin+i*gain)
label_SampleType = tk.Label(root_new_sample, text='Sample Type:', font=('tahoma', 8))
label_SampleType.place(x=440,y=y_origin+i*gain-25)
combo_SampleType['values'] = ('WholeBlood', 'BloodCells', 'Serum')
combo_SampleType['state'] = 'readonly'
combo_SampleType.current(0)
combo_SampleStatus = ttk.Combobox(root_new_sample, width=20, height=1, font=('tahoma', 8))
combo_SampleStatus.place(x=640, y=y_origin+i*gain)
label_SampleStatus = tk.Label(root_new_sample, text='Sample Status:', font=('tahoma', 8))
label_SampleStatus.place(x=640,y=y_origin+i*gain-25)
combo_SampleStatus['values'] = ('-80Frozen', '-20Frozen', '4Refrigeration', 'RoomTemperature')
combo_SampleStatus['state'] = 'readonly'
combo_SampleStatus.current(0)
i = 1
text_PatientName_in_samples = tk.Text(root_new_sample, width=20, height=1, font=('tahoma', 8), wrap='none')
text_PatientName_in_samples.place(x=40, y=y_origin+i*gain)
label_PatientName_in_samples = tk.Label(root_new_sample, text='Patient Name:', font=('tahoma', 8))
label_PatientName_in_samples.place(x=40,y=y_origin+i*gain-25)
text_Samples_patient_id = tk.Text(root_new_sample, width=20, height=1, font=('tahoma', 8), wrap='none')
text_Samples_patient_id.place(x=240, y=y_origin+i*gain)
label_patient_id = tk.Label(root_new_sample, text='Patient ID:', font=('tahoma', 8))
label_patient_id.place(x=240,y=y_origin+i*gain-25)
# ////// Buttons //////////////////////////
i = 3
button_add=ttk.Button(root_new_sample, text='Create', width=15, command=create)
button_add.place(x=300, y=y_origin+i*gain)
button_cancel=ttk.Button(root_new_sample, text='Cancel', width=15, command=root_new_sample.destroy)
button_cancel.place(x=650, y=y_origin+i*gain)
root_new_sample.mainloop()
#t = datetime.datetime.now()
#ts = str(datetime.datetime.now())
#datetime.datetime.strptime(ts, '%Y%m%d%I%M%S%f')
def new_patient():
root_new_patient = tk.Tk()
w = 980 # width for the Tk root
h = 540 # height for the Tk root
# get screen width and height
ws = root_new_patient.winfo_screenwidth() # width of the screen
hs = root_new_patient.winfo_screenheight() # height of the screen
# calculate x and y coordinates for the Tk root window
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
# set the dimensions of the screen
# and where it is placed
root_new_patient.geometry('%dx%d+%d+%d' % (w, h, x, y))
root_new_patient.title('New Patient')
time_text = str(datetime.datetime.now())
id = ''
for t in time_text:
if t!=' 'and t!= '-' and t != ':' and t != '.':
id += t
def create():
try:
PatientName_in_patients_gotten = text_PatientName_in_patients.get('1.0', tk.END).rstrip()
PatientName_CN_gotten = text_PatientName_CN.get('1.0', tk.END).rstrip()
Gender_gotten = combo_Gender.get().rstrip()
ProbandName_gotten = text_ProbandName.get('1.0', tk.END).rstrip()
proband_id = text_proband_id.get('1.0', tk.END).rstrip()
RelationshipOfProband_gotten = text_RelationshipOfProband.get('1.0', tk.END).rstrip()
InPatientID_gotten = text_InPatientID.get('1.0', tk.END).rstrip()
CitizenID_gotten = text_CitizenID.get('1.0', tk.END).rstrip()
BirthDate_gotten = text_BirthDate.get('1.0', tk.END).rstrip()
Diagnosis1_gotten = text_Diagnosis1.get('1.0', tk.END).rstrip()
Diagnosis2_gotten = text_Diagnosis2.get('1.0', tk.END).rstrip()
Diagnosis3_gotten = text_Diagnosis3.get('1.0', tk.END).rstrip()
Diagnosis4_gotten = text_Diagnosis4.get('1.0', tk.END).rstrip()
Diagnosis5_gotten = text_Diagnosis5.get('1.0', tk.END).rstrip()
Telephone_gotten = text_Telephone.get('1.0', tk.END).rstrip()
Comments_gotten = text_Comments.get('1.0', tk.END).rstrip()
Question_mark = '(' + '?, ' * 15 + '?)'
Update_values = (PatientName_in_patients_gotten,
PatientName_CN_gotten,
Gender_gotten,
InPatientID_gotten,
CitizenID_gotten,
BirthDate_gotten,
ProbandName_gotten,
proband_id,
RelationshipOfProband_gotten,
Diagnosis1_gotten,
Diagnosis2_gotten,
Diagnosis3_gotten,
Diagnosis4_gotten,
Diagnosis5_gotten,
Telephone_gotten,
Comments_gotten)
Update_Fields = '''(PatientName_in_patients, PatientName_CN, Gender,
InPatientID, CitizenID, BirthDate,
ProbandName, proband_id, RelationshipOfProband,
Diagnosis1, Diagnosis2, Diagnosis3, Diagnosis4, Diagnosis5,
Telephone, Comments)
'''
#cur.execute('INSERT INTO BloodSamples (SampleID, PatientName, SampleType) VALUES (?, ?, ?)',
#('201706181718000444', 'PatientName, 'Serum'))
cur.execute('INSERT INTO Patients '+ Update_Fields + ' VALUES ' + Question_mark,
Update_values)
conn.commit()
messagebox.showinfo("Created", "Patient's information successfully created!")
clear()
refreshDB()
display_in_table(combination)
root_new_patient.destroy()
except:
pass
# ///////// Main Stream ////////////////////////
y_origin = 80
gain = 50
i = 0
# ///////////// Raised Label Block ////////////////////////////////////////////////
label_Patients=tk.Label(root_new_patient,width=135, height=23 , relief='raised', borderwidth=1)
label_Patients.place(x=10,y=y_origin+i*gain-40)
# ///////////// Routine Edits////////////////
text_PatientName_CN = tk.Text(root_new_patient, width=20, height=1, font=('tahoma', 9), wrap='none')
text_PatientName_CN.place(x=40, y=y_origin+i*gain)
label_PatientName_CN = tk.Label(root_new_patient, text='Patient\'s Chinese Name:', font=('tahoma', 8))
label_PatientName_CN.place(x=40,y=y_origin+i*gain-25)
text_PatientName_in_patients = tk.Text(root_new_patient, width=20, height=1, font=('tahoma', 8), wrap='none')
text_PatientName_in_patients.place(x=240, y=y_origin+i*gain)
label_PatientName_in_patients = tk.Label(root_new_patient, text='Patient\' Name:', font=('tahoma', 8))
label_PatientName_in_patients.place(x=240,y=y_origin+i*gain-25)
i = 1
combo_Gender = ttk.Combobox(root_new_patient, width=20, height=1, font=('tahoma', 8))
combo_Gender.place(x=40, y=y_origin+i*gain)
label_Gender = tk.Label(root_new_patient, text='Gender:', font=('tahoma', 8))
label_Gender.place(x=40,y=y_origin+i*gain-25)
combo_Gender['values'] = ('Male', 'Female', 'Other')
combo_Gender['state'] = 'readonly'
text_ProbandName = tk.Text(root_new_patient, width=20, height=1, font=('tahoma', 8), wrap='none')
text_ProbandName.place(x=240, y=y_origin+i*gain)
label_ProbandName = tk.Label(root_new_patient, text='Proband Name:', font=('tahoma', 8))
label_ProbandName.place(x=240,y=y_origin+i*gain-25)
text_proband_id = tk.Text(root_new_patient, width=20, height=1, font=('tahoma', 8), wrap='none')
text_proband_id.place(x=440, y=y_origin+i*gain)
label_proband_id = tk.Label(root_new_patient, text='Proband ID:', font=('tahoma', 8))
label_proband_id.place(x=440,y=y_origin+i*gain-25)
text_RelationshipOfProband = tk.Text(root_new_patient, width=40, height=1, font=('tahoma', 8), wrap='none')
text_RelationshipOfProband.place(x=640, y=y_origin+i*gain)
label_RelationshipOfProband = tk.Label(root_new_patient, text='Relationship of Proband:', font=('tahoma', 8))
label_RelationshipOfProband.place(x=640,y=y_origin+i*gain-25)
i = 2
text_InPatientID = tk.Text(root_new_patient, width=20, height=1, font=('tahoma', 8), wrap='none')
text_InPatientID.place(x=40, y=y_origin+i*gain)
label_InPatientID = tk.Label(root_new_patient, text='In-Patient ID:', font=('tahoma', 8))
label_InPatientID.place(x=40,y=y_origin+i*gain-25)
text_CitizenID = tk.Text(root_new_patient, width=25, height=1, font=('tahoma', 8), wrap='none')
text_CitizenID.place(x=240, y=y_origin+i*gain)
label_CitizenID = tk.Label(root_new_patient, text='Citizen ID:', font=('tahoma', 8))
label_CitizenID.place(x=240,y=y_origin+i*gain-25)
text_BirthDate = tk.Text(root_new_patient, width=20, height=1, font=('tahoma', 8), wrap='none')
text_BirthDate.place(x=440, y=y_origin+i*gain)
label_BirthDate = tk.Label(root_new_patient, text='Birth Date:', font=('tahoma', 8))
label_BirthDate.place(x=440,y=y_origin+i*gain-25)
i = 3
text_Diagnosis1 = tk.Text(root_new_patient, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis1.place(x=40, y=y_origin+i*gain)
label_Diagnosis1 = tk.Label(root_new_patient, text='Diagnosis 1:', font=('tahoma', 8))
label_Diagnosis1.place(x=40,y=y_origin+i*gain-25)
text_Diagnosis2 = tk.Text(root_new_patient, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis2.place(x=340, y=y_origin+i*gain)
label_Diagnosis2 = tk.Label(root_new_patient, text='Diagnosis 2:', font=('tahoma', 8))
label_Diagnosis2.place(x=340,y=y_origin+i*gain-25)
text_Diagnosis3 = tk.Text(root_new_patient, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis3.place(x=640, y=y_origin+i*gain)
label_Diagnosis3 = tk.Label(root_new_patient, text='Diagnosis 3:', font=('tahoma', 8))
label_Diagnosis3.place(x=640,y=y_origin+i*gain-25)
i = 4
text_Diagnosis4 = tk.Text(root_new_patient, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis4.place(x=40, y=y_origin+i*gain)
label_Diagnosis4 = tk.Label(root_new_patient, text='Diagnosis 4:', font=('tahoma', 8))
label_Diagnosis4.place(x=40,y=y_origin+i*gain-25)
text_Diagnosis5 = tk.Text(root_new_patient, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis5.place(x=340, y=y_origin+i*gain)
label_Diagnosis5 = tk.Label(root_new_patient, text='Diagnosis 5:', font=('tahoma', 8))
label_Diagnosis5.place(x=340,y=y_origin+i*gain-25)
i = 5
text_Telephone = tk.Text(root_new_patient, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Telephone.place(x=40, y=y_origin+i*gain)
label_Telephone = tk.Label(root_new_patient, text='Telephone:', font=('tahoma', 8))
label_Telephone.place(x=40,y=y_origin+i*gain-25)
i = 6
text_Comments = tk.Text(root_new_patient, width=140, height=1, font=('tahoma', 8), wrap='none')
text_Comments.place(x=40, y=y_origin+i*gain)
label_Comments = tk.Label(root_new_patient, text='Comments:', font=('tahoma', 8))
label_Comments.place(x=40,y=y_origin+i*gain-25)
i = 8
button_add=ttk.Button(root_new_patient, text='Create', width=15, command=create)
button_add.place(x=250, y=y_origin+i*gain)
button_cancel=ttk.Button(root_new_patient, text='Cancel', width=15, command=root_new_patient.destroy)
button_cancel.place(x=600, y=y_origin+i*gain)
root_new_patient.mainloop()
#t = datetime.datetime.now()
#ts = str(datetime.datetime.now())
#datetime.datetime.strptime(ts, '%Y%m%d%I%M%S%f')
def delete_sample():
id_in_samples_gotten = text_id_in_samples.get('1.0', tk.END).rstrip()
if id_in_samples_gotten == '':
messagebox.showinfo("Empty", "There's no sample to delete. Please make sure.")
else:
result = messagebox.askquestion('Delete', 'Are you sure to delete this sample?', icon='warning')
if result == 'yes':
cur.execute('DELETE FROM Samples WHERE id_in_samples = ?', (id_in_samples_gotten,))
conn.commit()
messagebox.showinfo("Deleted", "Sample has been deleted!")
clear()
refreshDB()
display_in_table(combination)
def delete_patient():
id_in_patients_gotten = text_id_in_patients.get('1.0', tk.END).rstrip()
if id_in_patients_gotten == '':
messagebox.showinfo("Empty", "There's no patient information to delete. Please make sure.")
else:
result = messagebox.askquestion('Delete',
'Are you sure to delete this patient\'s information?',
icon='warning')
if result == 'yes':
cur.execute('DELETE FROM Patients WHERE id_in_patients = ?',
(id_in_patients_gotten,))
conn.commit()
messagebox.showinfo("Deleted", "The Patient's information has been deleted!")
clear()
refreshDB()
display_in_table(combination)
def patientNameSearch():
PatientName_Search_gotten = text_PatientName_Search.get('1.0', tk.END).rstrip()
sqlstr = '''SELECT * FROM Samples
JOIN Patients ON Samples.patient_id = Patients.id_in_patients
WHERE Patients.PatientName_in_patients = ?
'''
cur.execute(sqlstr, (PatientName_Search_gotten,))
items = cur.fetchall()
clear()
display_in_table(items)
def about():
about_root=tk.Tk()
w = 367 # width for the Tk root
h = 230 # height for the Tk root
# get screen width and height
ws = about_root.winfo_screenwidth() # width of the screen
hs = about_root.winfo_screenheight() # height of the screen
# calculate x and y coordinates for the Tk root window
x = (ws/2) - (w/2)
y = (hs/2) - (h/2)
# set the dimensions of the screen
# and where it is placed
about_root.geometry('%dx%d+%d+%d' % (w, h, x, y))
about_root.title('About Charleston Park')
# Controls
label_author=tk.Label(about_root,text='Charleston Park Version 1.0', font=('tahoma', 9))
label_author.place(x=90,y=30)
label_author=tk.Label(about_root,text='Copyright (C) 2017', font=('tahoma', 9))
label_author.place(x=125,y=60)
label_author=tk.Label(about_root,text='Author: Chuan Yang', font=('tahoma', 9))
label_author.place(x=125,y=90)
label_author=tk.Label(about_root,text='Shengjing Hospital of China Medical University', font=('tahoma', 9))
label_author.place(x=50,y=120)
button_refresh=ttk.Button(about_root, width=15, text='OK', command=about_root.destroy)
button_refresh.place(x=135, y=170)
about_root.mainloop()
## Main Flow
root = tk.Tk()
root.geometry("{0}x{1}+0+0".format(root.winfo_screenwidth(), root.winfo_screenheight()))
#root.attributes('-fullscreen', True)
root.title('CharlestonPark')
root.iconbitmap('CharlestonParkIcon.ico')
### Multicolumn Listbox
# Multicolumn Listbox/////////////////////////////////////////////////////////////////////////////
table = ttk.Treeview(root, height="20", columns=headers, selectmode="extended")
table.pack(padx=10, pady=20, ipadx=1200, ipady=200)
'''
['id_in_samples', 'RackNumber', 'SampleID', 'SampleType', 'SampleStatus', 'PatientName_in_samples',
'patient_id',
'id_in_patients', 'PatientName_in_patients', 'PatientName_CN', 'ProbandName', 'proband_id',
'RelationshipOfProband', 'InPatientID', 'CitizenID', 'BirthDate', 'Gender',
'Diagnosis1', 'Diagnosis2', 'Diagnosis3', 'Diagnosis4', 'Diagnosis5', 'Telephone', 'Comments']
'''
i = 1
header_width = [-60, 20, 100, 40, 20, -50,
-30,
-30, -50, -20, 30, -30,
50, 70, 80, 50, 40,
90, 90, 90, 90, 90, 60, 50]
for header in headers:
table.heading('#'+str(i), text=header.title(), anchor=tk.W, command=lambda c=header: sortby(table, c, 0))
table.column('#'+str(i), stretch=tk.NO, minwidth=0, width=tkf.Font().measure(header.title())+header_width[i-1])
i+=1
table.column('#0', stretch=tk.NO, minwidth=0, width=0)
table.bind("<Double-1>", OnDoubleClick)
#///////////////////////////////////////////////////////////////////////////////////////////
# Scrollbar////////////////////////////////////////////////////////////////////////////////////////
vsb = ttk.Scrollbar(table, orient = "vertical", command = table.yview)
hsb = ttk.Scrollbar(table, orient = "horizontal", command = table.xview)
## Link scrollbars activation to top-level object
table.configure(yscrollcommand = vsb.set, xscrollcommand = hsb.set)
## Link scrollbar also to every columns
map(lambda col: col.configure(yscrollcommand = vsb.set, xscrollcommand = hsb.set), table)
vsb.pack(side = tk.RIGHT, fill = tk.Y)
hsb.pack(side = tk.BOTTOM, fill = tk.X)
### Other Controls
# ///////Text Edit/////////////////////////
y_origin = 580
gain = 50
i = 0
# ///////////// Raised Label Block ////////////////////////////////////////////////
label_Patients=tk.Label(root,width=230, height=5 , relief='raised', borderwidth=1)
label_Patients.place(x=10,y=540)
label_Samples=tk.Label(root,width=230, height=15 , relief='raised', borderwidth=1)
label_Samples.place(x=10,y=638)
# ///////////// Routine Edits////////////////
# ///////////////Samples///////////////
text_id_in_samples = tk.Text(root, width=10, height=1, font=('tahoma', 8), wrap='none')
text_id_in_samples.place(x=1220, y=y_origin+i*gain)
label_id_in_samples = tk.Label(root, text='id_samples:', font=('tahoma', 8))
label_id_in_samples.place(x=1220,y=y_origin+i*gain-25)
text_RackNumber = tk.Text(root, width=20, height=1, font=('tahoma', 8), wrap='none')
text_RackNumber.place(x=40, y=y_origin+i*gain)
label_RackNumber = tk.Label(root, text='Rack Number:', font=('tahoma', 8))
label_RackNumber.place(x=40,y=y_origin+i*gain-25)
text_SampleID = tk.Text(root, width=26, height=1, font=('tahoma', 8), wrap='none')
text_SampleID.place(x=240, y=y_origin+i*gain)
label_SampleID = tk.Label(root, text='Sample ID:', font=('tahoma', 8))
label_SampleID.place(x=240,y=y_origin+i*gain-25)
# Combobox control
combo_SampleType = ttk.Combobox(root, width=20, height=1, font=('tahoma', 8))
combo_SampleType.place(x=440, y=y_origin+i*gain)
label_SampleType = tk.Label(root, text='Sample Type:', font=('tahoma', 8))
label_SampleType.place(x=440,y=y_origin+i*gain-25)
combo_SampleType['values'] = ('WholeBlood', 'BloodCells', 'Serum')
combo_SampleType['state'] = 'readonly'
combo_SampleStatus = ttk.Combobox(root, width=20, height=1, font=('tahoma', 8))
combo_SampleStatus.place(x=640, y=y_origin+i*gain)
label_SampleStatus = tk.Label(root, text='Sample Status:', font=('tahoma', 8))
label_SampleStatus.place(x=640,y=y_origin+i*gain-25)
combo_SampleStatus['values'] = ('-80Frozen', '-20Frozen', '4Refrigeration', 'RoomTemperature')
combo_SampleStatus['state'] = 'readonly'
text_PatientName_in_samples = tk.Text(root, width=20, height=1, font=('tahoma', 8), wrap='none')
text_PatientName_in_samples.place(x=840, y=y_origin+i*gain)
label_PatientName_in_samples = tk.Label(root, text='Patient Name:', font=('tahoma', 8))
label_PatientName_in_samples.place(x=840,y=y_origin+i*gain-25)
text_Samples_patient_id = tk.Text(root, width=20, height=1, font=('tahoma', 8), wrap='none')
text_Samples_patient_id.place(x=1040, y=y_origin+i*gain)
label_patient_id = tk.Label(root, text='Patient ID:', font=('tahoma', 8))
label_patient_id.place(x=1040,y=y_origin+i*gain-25)
i = 2
# ///////////////Patients///////////////
text_id_in_patients = tk.Text(root, width=10, height=1, font=('tahoma', 9), wrap='none')
text_id_in_patients.place(x=1340, y=y_origin+i*gain)
label_id_in_patients = tk.Label(root, text='id_patients:', font=('tahoma', 8))
label_id_in_patients.place(x=1340,y=y_origin+i*gain-25)
text_PatientName_CN = tk.Text(root, width=20, height=1, font=('tahoma', 9), wrap='none')
text_PatientName_CN.place(x=40, y=y_origin+i*gain)
label_PatientName_CN = tk.Label(root, text='Patient\'s Chinese Name:', font=('tahoma', 8))
label_PatientName_CN.place(x=40,y=y_origin+i*gain-25)
text_PatientName_in_patients = tk.Text(root, width=20, height=1, font=('tahoma', 8), wrap='none')
text_PatientName_in_patients.place(x=240, y=y_origin+i*gain)
label_PatientName_in_patients = tk.Label(root, text='Patient\' Name:', font=('tahoma', 8))
label_PatientName_in_patients.place(x=240,y=y_origin+i*gain-25)
combo_Gender = ttk.Combobox(root, width=20, height=1, font=('tahoma', 8))
combo_Gender.place(x=440, y=y_origin+i*gain)
label_Gender = tk.Label(root, text='Gender:', font=('tahoma', 8))
label_Gender.place(x=440,y=y_origin+i*gain-25)
combo_Gender['values'] = ('Male', 'Female', 'Other')
combo_Gender['state'] = 'readonly'
text_ProbandName = tk.Text(root, width=20, height=1, font=('tahoma', 8), wrap='none')
text_ProbandName.place(x=640, y=y_origin+i*gain)
label_ProbandName = tk.Label(root, text='Proband Name:', font=('tahoma', 8))
label_ProbandName.place(x=640,y=y_origin+i*gain-25)
text_proband_id = tk.Text(root, width=20, height=1, font=('tahoma', 8), wrap='none')
text_proband_id.place(x=840, y=y_origin+i*gain)
label_proband_id = tk.Label(root, text='Proband ID:', font=('tahoma', 8))
label_proband_id.place(x=840,y=y_origin+i*gain-25)
text_RelationshipOfProband = tk.Text(root, width=40, height=1, font=('tahoma', 8), wrap='none')
text_RelationshipOfProband.place(x=1040, y=y_origin+i*gain)
label_RelationshipOfProband = tk.Label(root, text='Relationship of Proband:', font=('tahoma', 8))
label_RelationshipOfProband.place(x=1040,y=y_origin+i*gain-25)
i = 3
text_InPatientID = tk.Text(root, width=20, height=1, font=('tahoma', 8), wrap='none')
text_InPatientID.place(x=40, y=y_origin+i*gain)
label_InPatientID = tk.Label(root, text='In-Patient ID:', font=('tahoma', 8))
label_InPatientID.place(x=40,y=y_origin+i*gain-25)
text_CitizenID = tk.Text(root, width=25, height=1, font=('tahoma', 8), wrap='none')
text_CitizenID.place(x=240, y=y_origin+i*gain)
label_CitizenID = tk.Label(root, text='Citizen ID:', font=('tahoma', 8))
label_CitizenID.place(x=240,y=y_origin+i*gain-25)
text_BirthDate = tk.Text(root, width=20, height=1, font=('tahoma', 8), wrap='none')
text_BirthDate.place(x=440, y=y_origin+i*gain)
label_BirthDate = tk.Label(root, text='Birth Date:', font=('tahoma', 8))
label_BirthDate.place(x=440,y=y_origin+i*gain-25)
i = 4
text_Diagnosis1 = tk.Text(root, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis1.place(x=40, y=y_origin+i*gain)
label_Diagnosis1 = tk.Label(root, text='Diagnosis 1:', font=('tahoma', 8))
label_Diagnosis1.place(x=40,y=y_origin+i*gain-25)
text_Diagnosis2 = tk.Text(root, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis2.place(x=340, y=y_origin+i*gain)
label_Diagnosis2 = tk.Label(root, text='Diagnosis 2:', font=('tahoma', 8))
label_Diagnosis2.place(x=340,y=y_origin+i*gain-25)
text_Diagnosis3 = tk.Text(root, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis3.place(x=640, y=y_origin+i*gain)
label_Diagnosis3 = tk.Label(root, text='Diagnosis 3:', font=('tahoma', 8))
label_Diagnosis3.place(x=640,y=y_origin+i*gain-25)
text_Diagnosis4 = tk.Text(root, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis4.place(x=940, y=y_origin+i*gain)
label_Diagnosis4 = tk.Label(root, text='Diagnosis 4:', font=('tahoma', 8))
label_Diagnosis4.place(x=940,y=y_origin+i*gain-25)
text_Diagnosis5 = tk.Text(root, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Diagnosis5.place(x=1240, y=y_origin+i*gain)
label_Diagnosis5 = tk.Label(root, text='Diagnosis 5:', font=('tahoma', 8))
label_Diagnosis5.place(x=1240,y=y_origin+i*gain-25)
i = 5
text_Telephone = tk.Text(root, width=40, height=1, font=('tahoma', 8), wrap='none')
text_Telephone.place(x=40, y=y_origin+i*gain)
label_Telephone = tk.Label(root, text='Telephone:', font=('tahoma', 8))
label_Telephone.place(x=40,y=y_origin+i*gain-25)
text_Comments = tk.Text(root, width=140, height=1, font=('tahoma', 8), wrap='none')
text_Comments.place(x=340, y=y_origin+i*gain)
label_Comments = tk.Label(root, text='Comments:', font=('tahoma', 8))
label_Comments.place(x=340,y=y_origin+i*gain-25)
# /////Buttons//////////////////////
button_browse=ttk.Button(root, text='Samples...', width=15, command=samples)
button_browse.place(x=1110, y=500)
button_browse=ttk.Button(root, text='Patients...', width=15, command=patients)
button_browse.place(x=1240, y=500)
button_browse=ttk.Button(root, text='Browse', width=15, command=browse)
button_browse.place(x=1480, y=500)
# ////////////// Record Num/////////////////
text_num = tk.Text(root, width=8, height=1, font=('tahoma', 8), wrap='none')
text_num.place(x=1400, y=500)
# ////////////// Function Button //////////
# Sample Information Update & Delete
button_update_sample = ttk.Button(root, text='Update', width=15, command=update_samples)
button_update_sample.place(x=1345, y=580)
button_delete_sample = ttk.Button(root, text='Delete', width=15, command=delete_sample)
button_delete_sample.place(x=1480, y=580)
# Patient Information Update & Delete
button_update_patient = ttk.Button(root, text='Update', width=15, command=update_patients)
button_update_patient.place(x=1345, y=730)
button_delete_patient = ttk.Button(root, text='Delete', width=15, command=delete_patient)
button_delete_patient.place(x=1480, y=730)
# About...
button_about = ttk.Button(root, text='About...', width=15, command=about)
button_about.place(x=1345, y=825)
# Exit
button_exit = ttk.Button(root, text='Exit', width=15, command=root.destroy)
button_exit.place(x=1480, y=825)
# New
button_new_sample = ttk.Button(root, text='New Sample...', width=20, command=new_sample)
button_new_sample.place(x=30, y=500)
button_new_patient = ttk.Button(root, text='New Patient...', width=20, command=new_patient)
button_new_patient.place(x=190, y=500)
# ///// Search Edit Box//////////
text_PatientName_Search = tk.Text(root, width=20, height=1, font=('tahoma', 9), wrap='none')
text_PatientName_Search.place(x=370, y=510)
label_PatientName_Search = tk.Label(root, text='Patient\'s Name:', font=('tahoma', 8))
label_PatientName_Search.place(x=370,y=485)
button_PatientName_Search=ttk.Button(root, text='Search', width=15, command=patientNameSearch)
button_PatientName_Search.place(x=550, y=500)
root.mainloop()
conn.close()
#t = datetime.datetime.now()
#ts = str(datetime.datetime.now())
#datetime.datetime.strptime(ts, '%Y%m%d%I%M%S%f') | 40.623873 | 115 | 0.609917 | 9,813 | 76,576 | 4.57057 | 0.042597 | 0.026086 | 0.029788 | 0.033511 | 0.93135 | 0.915453 | 0.892243 | 0.867383 | 0.861252 | 0.845578 | 0 | 0.038175 | 0.229641 | 76,576 | 1,885 | 116 | 40.623873 | 0.722127 | 0.090681 | 0 | 0.673788 | 0 | 0.006574 | 0.12312 | 0.008732 | 0.00493 | 0 | 0 | 0 | 0 | 1 | 0.031224 | false | 0.007395 | 0.005752 | 0 | 0.036976 | 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 | 0 | 0 | 0 | 6 |
ed6ca7015b6c2717af86cafd1f017afac4816817 | 32,419 | py | Python | src/cogs/smanager/sutils.py | BuddyCodez/ZENITH_BOT | 8b04a1dd3b6bd9e911be2b1c96c56a2311e2a2e1 | [
"MIT"
] | null | null | null | src/cogs/smanager/sutils.py | BuddyCodez/ZENITH_BOT | 8b04a1dd3b6bd9e911be2b1c96c56a2311e2a2e1 | [
"MIT"
] | null | null | null | src/cogs/smanager/sutils.py | BuddyCodez/ZENITH_BOT | 8b04a1dd3b6bd9e911be2b1c96c56a2311e2a2e1 | [
"MIT"
] | null | null | null | from discord.ext import commands
import discord,string,re,asyncio
from ..utils import emote,menus
from datetime import datetime
from discord.ext.commands.converter import RoleConverter, TextChannelConverter
from contextlib import suppress
class ScrimError(commands.CommandError):
pass
async def safe_delete(message):
try:
await message.delete()
except (discord.Forbidden, discord.NotFound):
return False
else:
return True
class CustomEditMenu(menus.Menu):
def __init__(self,*, scrim):
super().__init__(
timeout=120,
delete_message_after=False,
clear_reactions_after=True,
)
self.scrim = scrim
self.check = (
lambda msg: msg.channel == self.ctx.channel
and msg.author == self.ctx.author
)
def initial_embed(self):
scrim = self.scrim
fetched_slot_channel = self.bot.get_channel(scrim['slotlist_ch'])
slotlist_channel = getattr(
fetched_slot_channel, "mention", "`Channel Deleted!`"
)#
fetched_reg_ch = self.bot.get_channel(scrim['reg_ch'])
registration_channel = getattr(
fetched_reg_ch, "mention", "`Channel Deleted!`"
)#,
guild = self.bot.get_guild(scrim['guild_id'])
role = discord.utils.get(guild.roles, id = scrim['correct_reg_role'])
if scrim['ping_role'] is None:
ping_role = None
else:
ping_role = discord.utils.get(guild.roles, id = scrim['ping_role'])
if scrim['open_role'] is None:
open_role = None
else:
open_role = discord.utils.get(guild.roles, id = scrim['open_role'])
correct_reg_role = getattr(
role, "mention", "`Role Deleted!`"
)#
correct_ping_role = getattr(
ping_role, "mention", "`None`"
)#
correct_open_role = getattr(
open_role, "mention", "`None`"
)#
open_time = (scrim['open_time']).strftime("%I:%M %p")
if scrim['close_time'] is None:
close_time = 'None'
else:
close_time = scrim['close_time'].strftime("%I:%M %p")
# autoclean_time = (scrim['autoclean_time']).strftime("%I:%M %p")
embed = discord.Embed(color=discord.Color.green())
embed.title = f"Edit Scrims Configuration: {scrim['c_id']}"
def reactions(str):
data = scrim[f'{str}']
if data is True:
return f'{emote.switch_on}'
return f'{emote.switch_off}'
fields = {
"Custom Name": f"`{scrim['custom_title']}`",
"Registration Channel": registration_channel,
"Slotlist Channel": slotlist_channel,
"Role": correct_reg_role,
"Mentions": f"`{scrim['num_correct_mentions']:,}`",
"Slots": f"`{scrim['num_slots']:,}`",
"Open Time": f"`{open_time}`",
"Reserved Slots": f"`{scrim['reserverd_slots']}`",
"Auto Clean": f"{reactions('auto_clean')}",
"Auto Slotlist Send": f"{reactions('auto_slot_list_send')}",
"Auto Close Time":f"{close_time}",
# "Auto Clean Time":f"{autoclean_time}",
"Auto Delete Denyied Messages": f"{reactions('auto_delete_on_reject')}",
"Ping Role": correct_ping_role,
"Open Role": correct_open_role
}
for idx, (name, value) in enumerate(fields.items()):
embed.add_field(
name=f"{emote.regional_indicator(string.ascii_uppercase[idx])} {name}:",
value=value,
)
embed.set_thumbnail(url=self.bot.user.avatar_url)
return embed
async def cembed(self, description):
return await self.ctx.send(
embed=discord.Embed(
color=discord.Color.green(),
title=f"🛠️ Scrims Manager",
description=description,
)
)
async def send_initial_message(self, ctx, channel):
return await channel.send(embed=self.initial_embed())
async def refresh(self):
self.scrim = await self.ctx.db.fetchrow('SELECT * FROM smanager.custom_data WHERE c_id = $1',self.scrim['c_id'])
await self.message.edit(embed=self.initial_embed())
async def refresh_db(self):
self.scrim = await self.ctx.db.fetchrow('SELECT * FROM smanager.custom_data WHERE c_id = $1',self.scrim['c_id'])
# await self.message.edit(embed=self.initial_embed())
# async def update_scrim(self, **kwargs):
# await Scrim.filter(pk=self.scrim['c_id']).update(**kwargs)
# await self.refresh()
@menus.button(emote.regional_indicator('A'))
async def change_scrim_name(self, payload):
msg = await self.cembed(
"What is the new name you gave to give to these scrims?"
)
# name = await inputs.string_input(
# self.ctx,
# self.check,
# delete_after=True,
# )
try:
name = await self.ctx.bot.wait_for("message", check=self.check, timeout=120)
except asyncio.TimeoutError:
await self.ctx.error(f"You failed to select a title in time. Try again!")
self.stop()
return
# if len(name) > 30:
# raise ScrimError("Scrims Name cannot exceed 30 characters.")
# elif len(name) < 5:
# raise ScrimError("The length of new name is too short.")
await safe_delete(msg)
await safe_delete(name)
await self.refresh_db()
await self.ctx.db.execute('UPDATE smanager.custom_data SET custom_title = $1 WHERE c_id = $2',name.content,self.scrim['c_id'])
await self.refresh()
# await self.update_scrim(name=name)
@menus.button(emote.regional_indicator('B'))
async def change_registration_channel(self, payload):
msg = await self.cembed("Which is the new channel for registrations?")
# channel = await inputs.channel_input(
# self.ctx,
# self.check,
# delete_after=True,
# )
try:
channel = await self.ctx.bot.wait_for("message", check=self.check, timeout=120)
except asyncio.TimeoutError:
await self.ctx.error(f"You failed to select a channel in time. Try again!")
self.stop()
return
else:
if len(channel.channel_mentions) == 0:
await self.ctx.error(f'Thats Not A Channel')
self.stop()
return
try:
converted_channel = await TextChannelConverter().convert(self.ctx, channel.content)
except:
await self.ctx.error(f'Thats Not A Channel')
self.stop()
return
if not converted_channel.permissions_for(self.ctx.me).read_messages:
await self.ctx.error(
f"{emote.error} | Unfortunately, I don't have read messages permissions in {channel.mention}."
)
self.stop()
return
if not converted_channel.permissions_for(self.ctx.me).send_messages:
await self.ctx.error(
f"{emote.error} | Unfortunately, I don't have send messages permissions in {channel.mention}."
)
self.stop()
return
await safe_delete(msg)
await safe_delete(channel)
await self.refresh_db()
await self.ctx.db.execute('UPDATE smanager.custom_data SET reg_ch = $1 WHERE c_id = $2',converted_channel.id,self.scrim['c_id'])
await self.refresh()
# await self.update_scrim(registration_channel_id=channel.id)
@menus.button(emote.regional_indicator('C'))
async def change_slotlist_channel(self, payload):
msg = await self.cembed("Which is the new channel for slotlists?")
try:
channel = await self.ctx.bot.wait_for("message", check=self.check, timeout=120)
except asyncio.TimeoutError:
await self.ctx.error(f"You failed to select a channel in time. Try again!")
self.stop()
return
else:
if len(channel.channel_mentions) == 0:
await self.ctx.error(f'Thats Not A Channel')
self.stop()
return
try:
converted_channel = await TextChannelConverter().convert(self.ctx, channel.content)
except:
await self.ctx.error(f'Thats Not A Channel')
self.stop()
return
if not converted_channel.permissions_for(self.ctx.me).read_messages:
await self.ctx.error(
f"{emote.error} | Unfortunately, I don't have read messages permissions in {channel.mention}."
)
self.stop()
return
if not converted_channel.permissions_for(self.ctx.me).send_messages:
await self.ctx.error(
f"{emote.error} | Unfortunately, I don't have send messages permissions in {channel.mention}."
)
self.stop()
return
await safe_delete(msg)
await safe_delete(channel)
await self.refresh_db()
await self.ctx.db.execute('UPDATE smanager.custom_data SET slotlist_ch = $1 WHERE c_id = $2',converted_channel.id,self.scrim['c_id'])
await self.refresh()
# await self.update_scrim(slotlist_channel_id=channel.id)
@menus.button(emote.regional_indicator('D'))
async def change_scrim_role(self, payload):
msg = await self.cembed("Which is the new role for correct registration?")
# role = await inputs.role_input(
# self.ctx,
# self.check,
# delete_after=True,
# )
try:
role = await self.ctx.bot.wait_for("message", check=self.check, timeout=120)
except asyncio.TimeoutError:
await self.ctx.error(f"You failed to select a role in time. Try again!")
self.stop()
return
else:
if len(role.role_mentions) == 0:
await self.ctx.error(f'Thats Not A Role')
self.stop()
return
try:
converted_role = await RoleConverter().convert(self.ctx, role.content)
except:
await self.ctx.error(f'Thats Not A Role')
self.stop()
return
if converted_role.managed:
return await self.ctx.error(f"Role is an integrated role and cannot be added manually.")
if converted_role > self.ctx.me.top_role:
await self.ctx.error(
f"{emote.error} | The position of {converted_role.mention} is above my top role. So I can't give it to anyone.\nKindly move {self.ctx.me.top_role.mention} above {converted_role.mention} in Server Settings."
)
self.stop()
return
if self.ctx.author.id != self.ctx.guild.owner_id:
if converted_role > self.ctx.author.top_role:
await self.ctx.error(
f"{emote.error} | The position of {converted_role.mention} is above your top role {self.ctx.author.top_role.mention}."
)
self.stop()
return
await safe_delete(msg)
await safe_delete(role)
await self.refresh_db()
await self.ctx.db.execute('UPDATE smanager.custom_data SET correct_reg_role = $1 WHERE c_id = $2',converted_role.id,self.scrim['c_id'])
await self.refresh()
# await self.update_scrim(role_id=role.id)
@menus.button(emote.regional_indicator('E'))
async def change_required_mentions(self, payload):
msg = await self.cembed(
"How many mentions are required for successful registration?"
)
# mentions = await inputs.integer_input(
# self.ctx,
# self.check,
# delete_after=True,
# limits=(0, 10),
# )
try:
mentions = await self.bot.wait_for('message', timeout=120, check=self.check)
except asyncio.TimeoutError:
await self.ctx.error(f"You failed to select number of mentions requried in time. Try again!")
self.stop()
return
if not mentions.content.isdigit():
await self.ctx.error(f'You Did Not Entered A Integer Please Try Agin By Running Same Command')
self.stop()
return
int_mentions = int(mentions.content)
await safe_delete(msg)
await safe_delete(mentions)
await self.refresh_db()
await self.ctx.db.execute('UPDATE smanager.custom_data SET num_correct_mentions = $1 WHERE c_id = $2',int_mentions,self.scrim['c_id'])
await self.refresh()
# await self.update_scrim(required_mentions=mentions)
@menus.button(emote.regional_indicator('F'))
async def change_total_slots(self, payload):
msg = await self.cembed("How many total slots are there?")
# slots = await inputs.integer_input(
# self.ctx,
# self.check,
# delete_after=True,
# limits=(1, 30),
# )
try:
slots = await self.bot.wait_for('message', timeout=120, check=self.check)
except asyncio.TimeoutError:
await self.ctx.error(f"You failed to select number of slots. Try again!")
self.stop()
return
if not slots.content.isdigit():
await self.ctx.error(f'You Did Not Entered A Integer Please Try Agin By Running Same Command')
self.stop()
return
int_slots = int(slots.content)
if int_slots > 25:
await self.ctx.error(f'You Entered Slots Number More Than `25` \n**Note: Maximum Nuber Of Slots Is `25`**')
self.stop()
return
await safe_delete(msg)
await safe_delete(slots)
await self.ctx.db.execute('UPDATE smanager.custom_data SET num_slots = $1 WHERE c_id = $2',int_slots,self.scrim['c_id'])
await self.refresh_db()
await self.ctx.db.execute('UPDATE smanager.custom_data SET allowed_slots = $2 WHERE c_id = $3',self.scrim['num_slots'] - self.scrim['reserverd_slots'],self.scrim['c_id'])
await self.refresh()
# await self.update_scrim(total_slots=slots)
@menus.button(emote.regional_indicator('G'))
async def change_open_time(self, payload):
msg = await self.cembed(
"**At what time should I open registrations?**"
"\n> Time must be in 24h and in this format **`hh:mm`**"
)
# open_time = await inputs.time_input(self.ctx, self.check, delete_after=True)
try:
open_time = await self.ctx.bot.wait_for("message", check=self.check, timeout=120)
except asyncio.TimeoutError:
await self.ctx.error(f"Timeout, You have't responsed in time. Try again!")
self.stop()
return
else:
match = re.match(r"\d+:\d+", open_time.content)
if not match:
await self.ctx.error(f'Thats Not A Valid Time')
self.stop()
return
match = match.group(0)
hour, minute = match.split(":")
str_time = f'{hour}:{minute}'
converting = datetime.strptime(str_time,'%H:%M')
final_time = converting.time()
await safe_delete(msg)
await safe_delete(open_time)
await self.refresh_db()
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_time = $1 WHERE c_id = $2',final_time,self.scrim['c_id'])
await self.refresh()
@menus.button(emote.regional_indicator('H'))
async def change_reserved_slots(self, payload):
msg = await self.cembed("How many reserved slots are there?")
# reserverd_slots = await inputs.integer_input(
# self.ctx,
# self.check,
# delete_after=True,
# limits=(1, 30),
# )
try:
reserverd_slots = await self.bot.wait_for('message', timeout=120, check=self.check)
except asyncio.TimeoutError:
await self.ctx.error(f"You failed to select number of slots. Try again!")
self.stop()
return
if not reserverd_slots.content.isdigit():
await self.ctx.error(f'You Did Not Entered A Integer Please Try Agin By Running Same Command')
self.stop()
return
int_reserverd_slots = int(reserverd_slots.content)
if int_reserverd_slots > self.scrim['num_slots']:
await self.ctx.error(f'You Entered Reserved Slots Number More Than Total Number Of Slots, it should be less than total num of slots ')
self.stop()
return
await safe_delete(msg)
await safe_delete(reserverd_slots)
await self.ctx.db.execute('UPDATE smanager.custom_data SET reserverd_slots = $1 WHERE c_id = $2',int_reserverd_slots,self.scrim['c_id'])
await self.refresh_db()
await self.ctx.db.execute('UPDATE smanager.custom_data SET ,allowed_slots = $1 WHERE c_id = $3',self.scrim['num_slots'] - self.scrim['reserverd_slots'],self.scrim['c_id'])
await self.refresh()
@menus.button(emote.regional_indicator("I"))
async def change_auto_clean(self, payload):
if self.scrim['auto_clean'] is True:
await self.ctx.db.execute('UPDATE smanager.custom_data SET auto_clean = $1 WHERE c_id = $2',False,self.scrim['c_id'])
await self.refresh()
else:
await self.ctx.db.execute('UPDATE smanager.custom_data SET auto_clean = $1 WHERE c_id = $2',True,self.scrim['c_id'])
await self.refresh()
@menus.button(emote.regional_indicator("J"))
async def change_auto_slotlist_sender(self, payload):
if self.scrim['auto_slot_list_send'] is True:
await self.ctx.db.execute('UPDATE smanager.custom_data SET auto_slot_list_send = $1 WHERE c_id = $2',False,self.scrim['c_id'])
await self.refresh()
else:
await self.ctx.db.execute('UPDATE smanager.custom_data SET auto_slot_list_send = $1 WHERE c_id = $2',True,self.scrim['c_id'])
await self.refresh()
@menus.button(emote.regional_indicator("K"))
async def change_autoclose_time(self, payload):
msg = await self.cembed("**At what time should I Close registrations?**"
"\n> Time must be in 24h and in this format **`hh:mm`**"
"\n> **Reply With `None` For No Auto Close**")
try:
close_time = await self.ctx.bot.wait_for("message", check=self.check, timeout=120)
except asyncio.TimeoutError:
await self.ctx.error(f"Timeout, You have't responsed in time. Try again!")
self.stop()
return
else:
if close_time.content == 'None':
await safe_delete(msg)
await safe_delete(close_time)
await self.refresh_db()
await self.ctx.db.execute('UPDATE smanager.custom_data SET close_time = NULL WHERE c_id = $1',self.scrim['c_id'])
await self.refresh()
return
match = re.match(r"\d+:\d+", close_time.content)
if not match:
await self.ctx.error(f'Thats Not A Valid Time')
self.stop()
return
match = match.group(0)
hour, minute = match.split(":")
str_time = f'{hour}:{minute}'
converting = datetime.strptime(str_time,'%H:%M')
final_time = converting.time()
await safe_delete(msg)
await safe_delete(close_time)
await self.refresh_db()
await self.ctx.db.execute('UPDATE smanager.custom_data SET close_time = $1 WHERE c_id = $2',final_time,self.scrim['c_id'])
await self.refresh()
@menus.button(emote.regional_indicator("L"))
async def change_auto_delete_rejected_messages(self, payload):
if self.scrim['auto_delete_on_reject'] is True:
await self.ctx.db.execute('UPDATE smanager.custom_data SET auto_delete_on_reject = $1 WHERE c_id = $2',False,self.scrim['c_id'])
await self.refresh()
else:
await self.ctx.db.execute('UPDATE smanager.custom_data SET auto_delete_on_reject = $1 WHERE c_id = $2',True,self.scrim['c_id'])
await self.refresh()
@menus.button(emote.regional_indicator('M'))
async def change_ping_role(self, payload):
msg = await self.cembed("Which is the ping role? | **Reply With `None` To Set No Ping Role**")
# role = await inputs.role_input(
# self.ctx,
# self.check,
# delete_after=True,
# )
try:
role = await self.ctx.bot.wait_for("message", check=self.check, timeout=120)
except asyncio.TimeoutError:
await self.ctx.error(f"You failed to select a role in time. Try again!")
self.stop()
return
else:
if role.content == 'None':
await safe_delete(msg)
await safe_delete(role)
await self.refresh_db()
await self.ctx.db.execute('UPDATE smanager.custom_data SET ping_role = NULL WHERE c_id = $1',self.scrim['c_id'])
await self.refresh()
return
if len(role.role_mentions) == 0:
await self.ctx.error(f'Thats Not A Role')
self.stop()
return
try:
converted_role = await RoleConverter().convert(self.ctx, role.content)
except:
await self.ctx.error(f'Thats Not A Role')
self.stop()
return
if converted_role.managed:
return await self.ctx.error(f"Role is an integrated role and cannot be added manually.")
if converted_role > self.ctx.me.top_role:
await self.ctx.error(
f"{emote.error} | The position of {converted_role.mention} is above my top role. So I can't give it to anyone.\nKindly move {self.ctx.me.top_role.mention} above {converted_role.mention} in Server Settings."
)
self.stop()
return
if self.ctx.author.id != self.ctx.guild.owner_id:
if converted_role > self.ctx.author.top_role:
await self.ctx.error(
f"{emote.error} | The position of {converted_role.mention} is above your top role {self.ctx.author.top_role.mention}."
)
self.stop()
return
await safe_delete(msg)
await safe_delete(role)
await self.refresh_db()
await self.ctx.db.execute('UPDATE smanager.custom_data SET ping_role = $1 WHERE c_id = $2',converted_role.id,self.scrim['c_id'])
await self.refresh()
@menus.button(emote.regional_indicator('N'))
async def change_open_role(self, payload):
msg = await self.cembed("Which is the open role for registration? | **Reply With `None` To Set Open Role To Everyone**")
try:
role = await self.ctx.bot.wait_for("message", check=self.check, timeout=120)
except asyncio.TimeoutError:
await self.ctx.error(f"You failed to select a role in time. Try again!")
self.stop()
return
else:
if role.content == 'None':
await safe_delete(msg)
await safe_delete(role)
await self.refresh_db()
await self.ctx.db.execute('UPDATE smanager.open_role SET open_role = NULL WHERE c_id = $1',self.scrim['c_id'])
await self.refresh()
return
if len(role.role_mentions) == 0:
await self.ctx.error(f'Thats Not A Role')
self.stop()
return
try:
converted_role = await RoleConverter().convert(self.ctx, role.content)
except:
await self.ctx.error(f'Thats Not A Role')
self.stop()
return
if converted_role.managed:
return await self.ctx.error(f"Role is an integrated role and cannot be added manually.")
if converted_role > self.ctx.me.top_role:
await self.ctx.error(
f"{emote.error} | The position of {converted_role.mention} is above my top role. So I can't give it to anyone.\nKindly move {self.ctx.me.top_role.mention} above {converted_role.mention} in Server Settings."
)
self.stop()
return
if self.ctx.author.id != self.ctx.guild.owner_id:
if converted_role > self.ctx.author.top_role:
await self.ctx.error(
f"{emote.error} | The position of {converted_role.mention} is above your top role {self.ctx.author.top_role.mention}."
)
self.stop()
return
await safe_delete(msg)
await safe_delete(role)
await self.refresh_db()
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_role = $1 WHERE c_id = $2',converted_role.id,self.scrim['c_id'])
await self.refresh()
@menus.button("⏹️")
async def on_stop(self, payload):
self.stop()
class DaysEditorMenu(menus.Menu):
def __init__(self,*, scrim):
super().__init__(
timeout=120,
delete_message_after=False,
clear_reactions_after=True,
)
self.scrim = scrim
self.check = (
lambda msg: msg.channel == self.ctx.channel
and msg.author == self.ctx.author
)
def initial_embed(self):
scrim = self.scrim
embed = discord.Embed(color=discord.Color.green())
embed.title = f"Edit Scrims Days Configuration: {scrim['c_id']}"
def reactions(str):
data = scrim[f'open_on_{str}']
if data is True:
return f'{emote.switch_on}'
return f'{emote.switch_off}'
fields = {
":one: Monday": f"{reactions('monday')}",
":two: Tuesday": f"{reactions('tuesday')}",
":three: Wednesday": f"{reactions('wednesday')}",
":four: Thursday": f"{reactions('thursday')}",
":five: Friday": f"{reactions('friday')}",
":six: Saturday": f"{reactions('saturday')}",
":seven: Sunday": f"{reactions('sunday')}",
}
for idx, (name, value) in enumerate(fields.items()):
embed.add_field(
name=f"{name}:",
value=value,
)
embed.set_thumbnail(url=self.bot.user.avatar_url)
return embed
async def cembed(self, description):
return await self.ctx.send(
embed=discord.Embed(
color=discord.Color.green(),
title=f"🛠️ Scrims Manager",
description=description,
)
)
async def send_initial_message(self, ctx, channel):
return await channel.send(embed=self.initial_embed())
async def refresh(self):
self.scrim = await self.ctx.db.fetchrow('SELECT * FROM smanager.custom_data WHERE c_id = $1',self.scrim['c_id'])
await self.message.edit(embed=self.initial_embed())
@menus.button('\U00000031\U0000fe0f\U000020e3')
async def change_scrim_monday(self,payload):
if self.scrim['open_on_monday'] is True:
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_on_monday = $1 WHERE c_id = $2',False,self.scrim['c_id'])
await self.refresh()
else:
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_on_monday = $1 WHERE c_id = $2',True,self.scrim['c_id'])
await self.refresh()
@menus.button('\U00000032\U0000fe0f\U000020e3')
async def change_scrim_tuesday(self,payload):
if self.scrim['open_on_tuesday'] is True:
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_on_tuesday = $1 WHERE c_id = $2',False,self.scrim['c_id'])
await self.refresh()
else:
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_on_tuesday = $1 WHERE c_id = $2',True,self.scrim['c_id'])
await self.refresh()
@menus.button('\U00000033\U0000fe0f\U000020e3')
async def change_scrim_wednesday(self,payload):
if self.scrim['open_on_wednesday'] is True:
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_on_wednesday = $1 WHERE c_id = $2',False,self.scrim['c_id'])
await self.refresh()
else:
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_on_wednesday = $1 WHERE c_id = $2',True,self.scrim['c_id'])
await self.refresh()
@menus.button('\U00000034\U0000fe0f\U000020e3')
async def change_scrim_thursday(self,payload):
if self.scrim['open_on_thursday'] is True:
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_on_thursday = $1 WHERE c_id = $2',False,self.scrim['c_id'])
await self.refresh()
else:
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_on_thursday = $1 WHERE c_id = $2',True,self.scrim['c_id'])
await self.refresh()
@menus.button('\U00000035\U0000fe0f\U000020e3')
async def change_scrim_friday(self,payload):
if self.scrim['open_on_friday'] is True:
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_on_friday = $1 WHERE c_id = $2',False,self.scrim['c_id'])
await self.refresh()
else:
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_on_friday = $1 WHERE c_id = $2',True,self.scrim['c_id'])
await self.refresh()
@menus.button('\U00000036\U0000fe0f\U000020e3')
async def change_scrim_saturday(self,payload):
if self.scrim['open_on_saturday'] is True:
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_on_saturday = $1 WHERE c_id = $2',False,self.scrim['c_id'])
await self.refresh()
else:
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_on_saturday = $1 WHERE c_id = $2',True,self.scrim['c_id'])
await self.refresh()
@menus.button('\U00000037\U0000fe0f\U000020e3')
async def change_scrim_sunday(self,payload):
if self.scrim['open_on_sunday'] is True:
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_on_sunday = $1 WHERE c_id = $2',False,self.scrim['c_id'])
await self.refresh()
else:
await self.ctx.db.execute('UPDATE smanager.custom_data SET open_on_sunday = $1 WHERE c_id = $2',True,self.scrim['c_id'])
await self.refresh()
@menus.button("⏹️")
async def on_stop(self, payload):
self.stop()
async def delete_denied_message(message: discord.Message, seconds=10):
with suppress(discord.HTTPException, discord.NotFound, discord.Forbidden):
await asyncio.sleep(seconds)
await safe_delete(message) | 44.348837 | 227 | 0.575434 | 3,988 | 32,419 | 4.538867 | 0.077733 | 0.080548 | 0.059665 | 0.038506 | 0.813104 | 0.798685 | 0.774156 | 0.754047 | 0.74007 | 0.722391 | 0 | 0.012779 | 0.314476 | 32,419 | 731 | 228 | 44.348837 | 0.801341 | 0.046732 | 0 | 0.622296 | 0 | 0.021631 | 0.259771 | 0.03656 | 0 | 0 | 0 | 0 | 0 | 1 | 0.009983 | false | 0.001664 | 0.009983 | 0 | 0.118136 | 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 | 0 | 0 | 0 | 6 |
71ff7218e646d5209579fa0d019fef35c27338d1 | 256 | py | Python | social_auth/backends/contrib/github.py | merutak/django-social-auth | 3a6e4414da0e969fcaf625a891852a3b2d7627c0 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 863 | 2015-01-01T00:42:07.000Z | 2022-03-30T02:47:18.000Z | social_auth/backends/contrib/github.py | merutak/django-social-auth | 3a6e4414da0e969fcaf625a891852a3b2d7627c0 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 101 | 2015-01-08T00:28:16.000Z | 2022-03-07T03:11:19.000Z | social_auth/backends/contrib/github.py | merutak/django-social-auth | 3a6e4414da0e969fcaf625a891852a3b2d7627c0 | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 256 | 2015-01-02T16:55:36.000Z | 2022-03-04T11:10:47.000Z | from django.conf import settings
if getattr(settings, 'GITHUB_ORGANIZATION', None):
from social.backends.github import \
GithubOrganizationOAuth2 as GithubBackend
else:
from social.backends.github import GithubOAuth2 as GithubBackend
| 28.444444 | 68 | 0.773438 | 28 | 256 | 7.035714 | 0.607143 | 0.101523 | 0.182741 | 0.243655 | 0.304569 | 0 | 0 | 0 | 0 | 0 | 0 | 0.009434 | 0.171875 | 256 | 8 | 69 | 32 | 0.919811 | 0 | 0 | 0 | 0 | 0 | 0.074219 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 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 | 0 | 0 | 0 | 6 |
9c05c94777908e8437ee13200b5d153406112360 | 10,727 | py | Python | CLASSIFICATION/ONLINE LEARNING/kernelonlinelearning.py | algostatml/SUPERVISED-ML | d4a1fa2e5f89986a7d6f97af07ac0886f2807a89 | [
"MIT"
] | null | null | null | CLASSIFICATION/ONLINE LEARNING/kernelonlinelearning.py | algostatml/SUPERVISED-ML | d4a1fa2e5f89986a7d6f97af07ac0886f2807a89 | [
"MIT"
] | null | null | null | CLASSIFICATION/ONLINE LEARNING/kernelonlinelearning.py | algostatml/SUPERVISED-ML | d4a1fa2e5f89986a7d6f97af07ac0886f2807a89 | [
"MIT"
] | 1 | 2020-09-17T19:10:49.000Z | 2020-09-17T19:10:49.000Z | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 14 10:55:02 2019
@author: kenneth
"""
from __future__ import absolute_import
import numpy as np
from Utils.kernels import Kernels
from Utils.utils import EvalC
from Utils.Loss import loss
from tau_update import tau
class kernelpassiveAggr(EvalC, Kernels, loss, tau):
def __init__(self, kernel = None, gamma = None, d = None, C = None):
'''Kernellized Passive Aggressive Algorithm v1 (main)
:param: kernel: string specifying type of kernel
Default is linear
:param: gamma: scalar value
:param: d: polynomial degree. Used by polynomial kernels
:param: C: penalty cost parameter
'''
if not kernel:
kernel = 'linear'
self.kernel= kernel
else:
self.kernel = kernel
if not gamma:
gamma = 1
self.gamma = gamma
else:
self.gamma = gamma
if not d:
d = 5
self.d = d
else:
self.d = d
if not C:
C = 0.1
self.C = C
else:
self.C = C
return
def classictau(self, x, loss):
''' Classic Tau
:param: x: NxD
:param: loss
:return: classic tau scalar value
'''
return loss/self.kernelize(x, x)
def f1_relax(self, x, loss, C):
''' f1 Relaxation
:param: x: NxD
:param: loss
:param: C: constant
:return: f1-relaxation scalar value
'''
return min(C, loss/self.kernelize(x, x))
def f2_relax(self, x, loss, C):
'''f2 Relaxation
:param: x: NxD
:param: loss
:param: C: constant
:return: f2-relaxation scalar value
'''
return loss/(self.kernelize(x, x) + 2*C)
def kernelize(self, x1, x2):
'''
:params: x1: NxD
:params: x2: NxD
'''
if self.kernel == 'linear':
return Kernels.linear(x1, x2)
elif self.kernel == 'rbf':
return Kernels.rbf(x1, x2, gamma = self.gamma)
elif self.kernel == 'sigmoid':
return Kernels.sigmoid(x1, x2, gamma = self.gamma)
elif self.kernel == 'polynomial':
return Kernels.polynomial(x1, x2, d = self.d)
elif self.kernel == 'cosine':
return Kernels.cosine(x1, x2)
elif self.kernel == 'correlation':
return Kernels.correlation(x1, x2, gamma = self.gamma)
elif self.kernel == 'linrbf':
return Kernels.linrbf(x1, x2, gamma = self.gamma)
elif self.kernel == 'rbfpoly':
return Kernels.rbfpoly(x1, x2, d = self.d, gamma = self.gamma)
elif self.kernel == 'rbfcosine':
return Kernels.rbfpoly(x1, x2, d = self.d, gamma = self.gamma)
elif self.kernel == 'etakernel':
return Kernels.etakernel(x1, x2, d = self.d, gamma = self.gamma)
elif self.kernel == 'alignment':
return Kernels.alignment(x1, x2)
elif self.kernel == 'laplace':
return Kernels.laplacian(x1, x2, gamma = self.gamma)
elif self.kernel == 'locguass':
return Kernels.locguass(x1, x2, d = self.d, gamma = self.gamma)
elif self.kernel == 'chi':
return Kernels.chi(x1)
def activation(self, X, y, alpha):
'''
:params: X: train data
:params: X: weights
'''
return 1 if y*(np.dot(alpha, self.kernelize(X, X))) >0 else 0
def cost(self, X, y, alpha):
'''
:params: X: N x D
:params: y: D x 1
:params: beta: weights D x 1
'''
return y*(np.dot(alpha, self.kernelize(X, X)))
def pred_update(self, X, alpha):
'''kernel update
:param: X: N x D
:param: beta: D X 1
'''
return np.sign(np.dot(alpha, self.kernelize(X, X)))
def fit(self, X, Y):
'''
:params: X: train data
:params: Y: train labels
'''
self.X = X
self.Y = Y
N, D = self.X.shape
self.pred = np.zeros(N)
self.alpha = np.ones(N)
self.s_t = [] #store support set
for ij, (x_i, y_i) in enumerate(zip(self.X, Y)):
self.pred[ij] = self.pred_update(x_i, self.alpha[ij])
self.l_t = self.activation(x_i, y_i, self.alpha[ij])
# print(f'Cost of computation: {self.l_t}')
self.t_t = self.f2_relax(x_i, self.l_t, self.C)
if self.pred[ij] != y_i:
self.alpha[ij] = self.alpha[ij] + self.t_t * y_i * self.kernelize(x_i, x_i)
self.s_t.append(x_i)
self.s_t = np.array(self.s_t) #support set
self.alpha = self.alpha[: len(self.s_t)] #support set hypothesis
return self
def predict(self, X):
'''
param: X_test = NxD feature matrix
'''
return np.sign(np.dot(self.alpha, self.kernelize(self.s_t, X)))
class kernelpassiveAggr_v2(EvalC, Kernels, loss, tau):
def __init__(self, kernel = None, gamma = None, d = None, C = None):
'''Kernellized Passive Aggressive Algorithm v2
:param: kernel: string specifying type of kernel
Default is linear
:param: gamma: scalar value
:param: d: polynomial degree. Used by polynomial kernels
:param: C: penalty cost parameter
'''
if not kernel:
kernel = 'linear'
self.kernel= kernel
else:
self.kernel = kernel
if not gamma:
gamma = 5
self.gamma = gamma
else:
self.gamma = gamma
if not d:
d = 3
self.d = d
else:
self.d = d
if not C:
C = .1
self.C = C
else:
self.C = C
return
def classictau(self, k, loss):
'''
:param: x: NxD
:param: loss
'''
return loss/np.linalg.norm(k)
def f1_relax(self, x, loss, C):
'''
:param: x: NxD
:param: loss
:param: C: constant
'''
return min(C, loss/self.kernelize(x, x))
def f2_relax(self, x, loss, C):
'''
:param: x: NxD
:param: loss
:param: C: constant
:return: f2-relaxation
'''
return loss/(self.kernelize(x, x) + 2*C)
def kernelize(self, x1, x2):
'''
:params: X: NxD
'''
if self.kernel == 'linear':
return Kernels.linear(x1, x2)
elif self.kernel == 'rbf':
return Kernels.rbf(x1, x2, gamma = self.gamma)
elif self.kernel == 'sigmoid':
return Kernels.sigmoid(x1, x2, gamma = self.gamma)
elif self.kernel == 'polynomial':
return Kernels.polynomial(x1, x2, d = self.d)
elif self.kernel == 'cosine':
return Kernels.cosine(x1, x2)
elif self.kernel == 'correlation':
return Kernels.correlation(x1, x2, gamma = self.gamma)
elif self.kernel == 'linrbf':
return Kernels.linrbf(x1, x2, gamma = self.gamma)
elif self.kernel == 'rbfpoly':
return Kernels.rbfpoly(x1, x2, d = self.d, gamma = self.gamma)
elif self.kernel == 'rbfcosine':
return Kernels.rbfpoly(x1, x2, d = self.d, gamma = self.gamma)
elif self.kernel == 'etakernel':
return Kernels.etakernel(x1, x2, d = self.d, gamma = self.gamma)
elif self.kernel == 'alignment':
return Kernels.alignment(x1, x2)
elif self.kernel == 'laplace':
return Kernels.laplacian(x1, x2, gamma = self.gamma)
elif self.kernel == 'locguass':
return Kernels.locguass(x1, x2, d = self.d, gamma = self.gamma)
elif self.kernel == 'chi':
return Kernels.chi(x1)
def activation(self, k, y, alpha):
'''
:params: X: train data
:params: X: weights
'''
return 1 if y*(np.dot(alpha, k)) >0 else 0
def cost(self, X, y, alpha):
'''
:params: X: N x D
:params: y: D x 1
:params: beta: weights D x 1
'''
return y*(np.dot(alpha, self.kernelize(X, X)))
def pred_update(self, X, alpha):
'''
:param: X: N x D
:param: beta: D X 1
'''
return np.sign(np.dot(alpha, self.kernelize(X, X)))
def yhat(self, k, alpha):
'''
:param: k: N x N
:param: alpha: N X 1
'''
return np.sign(np.dot(alpha, k))
def fit(self, X, Y):
'''
:params: X: train data
:params: Y: train labels
:params: alpha: learning rate
'''
self.X = X
self.alpha = np.random.randn(X.shape[0])
self.pred = np.zeros(len(Y))
self.knl = self.kernelize(self.X, self.X)
self.s_t = [] #store support set
for ij, (x_i, y_i) in enumerate(zip(self.knl, Y)):
print(f'{self.yhat(x_i, self.alpha)}')
self.pred[ij] = self.yhat(x_i, self.alpha)
self.l_t = self.activation(x_i, y_i, self.alpha)
self.t_t = self.classictau(x_i, self.l_t)
print(f'Cost of computation: {self.l_t}')
print(f'tau: {self.t_t}')
if self.pred[ij] != y_i:
self.alpha = self.alpha + self.t_t * y_i * x_i
self.s_t.append(x_i)
self.s_t = np.array(self.s_t) #support set
self.alpha = self.alpha[: len(self.s_t)] #support set hypothesis
return self
def predict(self, X):
'''
param: X_test = NxD feature matrix
'''
return np.sign(np.dot(self.alpha, self.kernelize(self.X, X)))
#%% Testing
#from sklearn.datasets import make_blobs, make_moons, make_circles
#from sklearn.model_selection import train_test_split
#import matplotlib.pyplot as plt
##X, y = make_blobs(n_samples=10000, centers = 2, n_features = 2, random_state=0)
#color = 'coolwarm_r'
#np.random.seed(1000)
#plt.rcParams.update({'font.size': 8})
#plt.rc('text', usetex=True)
#plt.rc('font', family='serif')
#plt.rcParams['figure.dpi'] = 200
#
#X, y = make_circles(n_samples=10000, factor=.05, noise=0.1)
##X = np.c_[np.ones(X.shape[0]), X]
#X_train, X_test, Y_train, Y_test = train_test_split(X, y, test_size = 0.3)
#psaggrkernel = kernelpassiveAggr(kernel = 'rbf').fit(X_train, Y_train)
#plt.scatter(X_test[:, 0], X_test[:, 1], c = psaggrkernel.predict(X_test), s = 1, cmap = color)
#EvalC.accuary_multiclass(Y_test, psaggrkernel.predict(X_test))
| 32.604863 | 95 | 0.53053 | 1,427 | 10,727 | 3.919411 | 0.135249 | 0.06079 | 0.065081 | 0.05793 | 0.775255 | 0.762382 | 0.753621 | 0.741641 | 0.70767 | 0.70767 | 0 | 0.019884 | 0.338958 | 10,727 | 328 | 96 | 32.704268 | 0.768862 | 0.237811 | 0 | 0.738636 | 0 | 0 | 0.03903 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.119318 | false | 0.011364 | 0.034091 | 0 | 0.431818 | 0.017045 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9c2331a8a2544d7094bc5dcff4fab3c3fbadbfc3 | 176 | py | Python | charitysite/volunteer/admin.py | Fazer56/Assignment3 | fef159143b9b05a9e288fd104e375aa500ff2666 | [
"MIT"
] | null | null | null | charitysite/volunteer/admin.py | Fazer56/Assignment3 | fef159143b9b05a9e288fd104e375aa500ff2666 | [
"MIT"
] | null | null | null | charitysite/volunteer/admin.py | Fazer56/Assignment3 | fef159143b9b05a9e288fd104e375aa500ff2666 | [
"MIT"
] | null | null | null | from django.contrib import admin
# Register your models here.
from.models import Member
from.models import Location
admin.site.register(Member)
admin.site.register(Location)
| 19.555556 | 32 | 0.818182 | 25 | 176 | 5.76 | 0.48 | 0.138889 | 0.222222 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.107955 | 176 | 8 | 33 | 22 | 0.917197 | 0.147727 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.6 | 0 | 0.6 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
9c55fd001efbac7ce05c4e968507eac0c23df34c | 96 | py | Python | venv/lib/python3.8/site-packages/pip/_vendor/requests/packages.py | GiulianaPola/select_repeats | 17a0d053d4f874e42cf654dd142168c2ec8fbd11 | [
"MIT"
] | 2 | 2022-03-13T01:58:52.000Z | 2022-03-31T06:07:54.000Z | venv/lib/python3.8/site-packages/pip/_vendor/requests/packages.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | 19 | 2021-11-20T04:09:18.000Z | 2022-03-23T15:05:55.000Z | venv/lib/python3.8/site-packages/pip/_vendor/requests/packages.py | DesmoSearch/Desmobot | b70b45df3485351f471080deb5c785c4bc5c4beb | [
"MIT"
] | null | null | null | /home/runner/.cache/pip/pool/9e/32/66/5627d8e1a49cb6e5b73cfe441510b18c4c0c4433ba27f7de1b674a5ac2 | 96 | 96 | 0.895833 | 9 | 96 | 9.555556 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.416667 | 0 | 96 | 1 | 96 | 96 | 0.479167 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | null | null | 0 | 0 | null | null | 0 | 1 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9c59d8b24bca5dd80d30c8667c831c6f13be8d72 | 67 | py | Python | Reading Data/lesson-7-load-playstore-apps-excel-file-with-multiple-sheets/tests/test_content_id_1.py | danielgarm/Data-Science-and-Machine-Learning | fa3e85cc42eb2e9f964ab5abb34d1c93e16d1cd9 | [
"MIT"
] | null | null | null | Reading Data/lesson-7-load-playstore-apps-excel-file-with-multiple-sheets/tests/test_content_id_1.py | danielgarm/Data-Science-and-Machine-Learning | fa3e85cc42eb2e9f964ab5abb34d1c93e16d1cd9 | [
"MIT"
] | 2 | 2022-01-11T21:04:51.000Z | 2022-01-11T21:05:05.000Z | Reading Data/lesson-7-load-playstore-apps-excel-file-with-multiple-sheets/tests/test_content_id_1.py | danielgarm/Data-Science-and-Machine-Learning | fa3e85cc42eb2e9f964ab5abb34d1c93e16d1cd9 | [
"MIT"
] | null | null | null | def test_content_id_1():
assert content_id_df.shape == (250,1) | 33.5 | 41 | 0.716418 | 12 | 67 | 3.583333 | 0.75 | 0.418605 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.087719 | 0.149254 | 67 | 2 | 41 | 33.5 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.5 | 1 | 0.5 | true | 0 | 0 | 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 | 0 | 0 | null | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
9c5ad6ec95fa344d4582c9b9c3d13bef14929890 | 59 | py | Python | ingest/__init__.py | OpertusMundi/ingest | fb68736efd770a840754f4580aa8fa3322d251a3 | [
"Apache-2.0"
] | null | null | null | ingest/__init__.py | OpertusMundi/ingest | fb68736efd770a840754f4580aa8fa3322d251a3 | [
"Apache-2.0"
] | 3 | 2021-03-01T12:02:31.000Z | 2021-09-22T07:59:43.000Z | ingest/__init__.py | OpertusMundi/ingest | fb68736efd770a840754f4580aa8fa3322d251a3 | [
"Apache-2.0"
] | null | null | null | def create_app():
from . import app
return app.app
| 14.75 | 21 | 0.644068 | 9 | 59 | 4.111111 | 0.666667 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.271186 | 59 | 3 | 22 | 19.666667 | 0.860465 | 0 | 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 | 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 | 0 | 1 | 0 | 0 | 6 |
92cef7b52a6f1a4f7062583155174cc905636f61 | 260,237 | py | Python | instances/passenger_demand/pas-20210422-1717-int18e/35.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210422-1717-int18e/35.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null | instances/passenger_demand/pas-20210422-1717-int18e/35.py | LHcau/scheduling-shared-passenger-and-freight-transport-on-a-fixed-infrastructure | bba1e6af5bc8d9deaa2dc3b83f6fe9ddf15d2a11 | [
"BSD-3-Clause"
] | null | null | null |
"""
PASSENGERS
"""
numPassengers = 34269
passenger_arriving = (
(7, 16, 8, 8, 4, 5, 3, 7, 1, 1, 2, 3, 0, 10, 14, 8, 7, 8, 8, 3, 1, 7, 2, 5, 0, 0), # 0
(13, 9, 7, 8, 8, 2, 0, 2, 3, 2, 2, 2, 0, 10, 7, 7, 2, 7, 3, 6, 2, 1, 2, 1, 0, 0), # 1
(13, 9, 8, 6, 2, 2, 3, 3, 3, 1, 0, 1, 0, 7, 7, 13, 3, 11, 3, 4, 3, 5, 2, 3, 1, 0), # 2
(17, 11, 9, 14, 5, 3, 2, 4, 4, 3, 2, 1, 0, 9, 6, 8, 8, 13, 8, 2, 2, 5, 3, 2, 2, 0), # 3
(14, 12, 10, 9, 10, 4, 7, 3, 6, 3, 1, 2, 0, 12, 10, 3, 7, 5, 8, 10, 2, 0, 8, 1, 3, 0), # 4
(13, 10, 6, 9, 8, 3, 4, 3, 4, 0, 1, 0, 0, 8, 13, 11, 5, 12, 7, 4, 2, 4, 5, 0, 1, 0), # 5
(10, 14, 9, 12, 6, 4, 5, 7, 2, 1, 2, 0, 0, 13, 10, 10, 9, 12, 5, 1, 3, 6, 4, 1, 2, 0), # 6
(13, 13, 12, 10, 5, 7, 6, 3, 7, 4, 3, 0, 0, 21, 16, 4, 12, 12, 6, 4, 4, 4, 2, 1, 0, 0), # 7
(16, 21, 9, 15, 11, 8, 3, 2, 5, 2, 1, 3, 0, 18, 16, 6, 11, 8, 11, 4, 3, 3, 6, 3, 0, 0), # 8
(12, 9, 12, 14, 13, 5, 7, 10, 6, 5, 4, 3, 0, 8, 15, 12, 6, 14, 8, 5, 4, 2, 7, 0, 1, 0), # 9
(16, 15, 9, 12, 12, 4, 8, 1, 4, 1, 2, 0, 0, 16, 13, 10, 11, 8, 6, 6, 2, 8, 3, 2, 0, 0), # 10
(21, 19, 12, 18, 13, 11, 3, 4, 9, 1, 3, 0, 0, 16, 18, 8, 8, 13, 11, 7, 3, 3, 6, 1, 2, 0), # 11
(12, 20, 11, 14, 13, 3, 5, 7, 6, 4, 0, 0, 0, 15, 7, 10, 7, 8, 9, 2, 2, 6, 5, 4, 0, 0), # 12
(13, 19, 13, 10, 9, 6, 9, 9, 15, 4, 1, 2, 0, 15, 23, 5, 6, 10, 14, 8, 3, 5, 8, 1, 1, 0), # 13
(18, 10, 9, 16, 16, 8, 7, 8, 7, 3, 0, 2, 0, 9, 12, 11, 6, 15, 7, 7, 6, 10, 3, 0, 2, 0), # 14
(19, 16, 11, 16, 13, 8, 10, 6, 8, 3, 5, 3, 0, 17, 18, 8, 16, 12, 8, 4, 3, 6, 8, 2, 1, 0), # 15
(14, 11, 11, 17, 10, 10, 6, 4, 11, 4, 0, 2, 0, 16, 9, 17, 7, 10, 5, 7, 6, 7, 7, 0, 2, 0), # 16
(17, 16, 11, 16, 15, 4, 6, 1, 4, 0, 0, 3, 0, 20, 18, 14, 11, 17, 13, 7, 4, 9, 5, 0, 1, 0), # 17
(15, 23, 17, 16, 9, 9, 4, 4, 9, 1, 1, 0, 0, 18, 12, 14, 8, 19, 8, 7, 6, 6, 3, 3, 2, 0), # 18
(22, 14, 15, 8, 12, 9, 7, 9, 11, 4, 2, 0, 0, 16, 17, 9, 11, 12, 6, 3, 5, 10, 5, 3, 3, 0), # 19
(16, 18, 17, 16, 16, 11, 4, 7, 10, 6, 3, 0, 0, 12, 9, 10, 10, 19, 7, 8, 4, 6, 7, 3, 1, 0), # 20
(15, 22, 15, 20, 15, 4, 9, 3, 7, 1, 2, 4, 0, 23, 12, 8, 18, 14, 8, 7, 4, 10, 5, 1, 2, 0), # 21
(20, 23, 22, 10, 9, 4, 7, 9, 6, 5, 3, 2, 0, 20, 15, 11, 10, 16, 6, 3, 1, 7, 7, 0, 3, 0), # 22
(19, 26, 17, 21, 11, 4, 3, 5, 11, 5, 5, 2, 0, 22, 21, 12, 5, 9, 13, 8, 4, 8, 1, 2, 2, 0), # 23
(21, 24, 13, 12, 9, 8, 8, 9, 8, 2, 2, 0, 0, 12, 12, 11, 12, 16, 6, 7, 2, 4, 6, 4, 1, 0), # 24
(14, 17, 15, 17, 19, 5, 9, 8, 5, 4, 6, 3, 0, 18, 13, 4, 7, 12, 17, 6, 4, 6, 7, 3, 2, 0), # 25
(22, 21, 19, 18, 11, 7, 8, 11, 5, 2, 1, 3, 0, 14, 18, 15, 10, 12, 5, 3, 5, 4, 3, 1, 2, 0), # 26
(16, 19, 13, 18, 10, 4, 7, 6, 8, 3, 2, 3, 0, 15, 11, 13, 12, 12, 12, 8, 6, 4, 2, 4, 1, 0), # 27
(19, 23, 12, 23, 11, 9, 10, 4, 11, 2, 0, 2, 0, 19, 12, 12, 15, 19, 13, 6, 0, 8, 3, 3, 2, 0), # 28
(18, 10, 13, 17, 10, 5, 3, 8, 8, 8, 6, 3, 0, 13, 19, 12, 6, 16, 11, 7, 6, 9, 6, 5, 1, 0), # 29
(17, 20, 14, 9, 8, 6, 8, 7, 8, 2, 1, 4, 0, 25, 18, 14, 8, 17, 8, 6, 7, 8, 10, 0, 4, 0), # 30
(22, 15, 12, 21, 4, 7, 14, 10, 5, 2, 0, 1, 0, 18, 14, 15, 8, 11, 8, 7, 5, 2, 9, 4, 0, 0), # 31
(19, 12, 12, 14, 13, 5, 10, 7, 4, 5, 2, 0, 0, 23, 15, 12, 6, 16, 16, 3, 5, 7, 7, 6, 1, 0), # 32
(23, 28, 14, 18, 13, 8, 5, 7, 11, 3, 0, 2, 0, 20, 18, 13, 17, 15, 10, 6, 7, 5, 4, 1, 3, 0), # 33
(23, 22, 10, 16, 13, 10, 3, 8, 3, 3, 3, 0, 0, 13, 14, 13, 9, 13, 10, 8, 6, 6, 6, 4, 4, 0), # 34
(25, 18, 18, 21, 10, 10, 10, 5, 6, 1, 1, 3, 0, 14, 17, 13, 12, 14, 9, 6, 7, 6, 11, 2, 0, 0), # 35
(16, 26, 25, 20, 17, 5, 4, 9, 6, 6, 2, 2, 0, 13, 11, 18, 12, 12, 14, 7, 5, 6, 2, 2, 3, 0), # 36
(22, 17, 19, 20, 13, 12, 7, 3, 8, 4, 3, 0, 0, 20, 14, 11, 16, 20, 12, 5, 7, 6, 9, 2, 5, 0), # 37
(18, 10, 15, 22, 16, 6, 5, 7, 10, 5, 1, 4, 0, 30, 20, 13, 6, 20, 5, 7, 4, 4, 4, 3, 1, 0), # 38
(20, 27, 15, 18, 13, 9, 4, 10, 8, 5, 2, 1, 0, 16, 15, 11, 10, 15, 13, 11, 2, 3, 4, 1, 0, 0), # 39
(20, 12, 12, 8, 6, 12, 8, 6, 7, 5, 4, 0, 0, 20, 16, 12, 12, 15, 16, 5, 8, 4, 7, 7, 1, 0), # 40
(8, 16, 16, 23, 16, 11, 5, 8, 10, 4, 3, 2, 0, 15, 18, 14, 9, 17, 9, 9, 4, 6, 3, 1, 1, 0), # 41
(17, 15, 19, 10, 16, 9, 10, 6, 6, 7, 1, 0, 0, 18, 14, 8, 8, 12, 7, 5, 1, 6, 4, 4, 1, 0), # 42
(23, 19, 14, 19, 17, 10, 7, 4, 7, 4, 2, 4, 0, 24, 14, 15, 10, 15, 9, 4, 6, 4, 5, 2, 0, 0), # 43
(16, 20, 16, 17, 11, 11, 10, 8, 8, 3, 1, 1, 0, 25, 16, 15, 14, 12, 10, 3, 2, 5, 4, 1, 1, 0), # 44
(17, 17, 17, 16, 13, 7, 5, 7, 5, 2, 2, 3, 0, 20, 17, 10, 11, 14, 11, 2, 4, 3, 4, 3, 1, 0), # 45
(19, 14, 16, 23, 9, 9, 6, 5, 6, 2, 1, 2, 0, 17, 13, 11, 10, 21, 9, 12, 3, 10, 2, 7, 6, 0), # 46
(20, 17, 17, 18, 15, 6, 7, 8, 8, 3, 2, 1, 0, 13, 15, 19, 7, 19, 10, 14, 3, 4, 3, 5, 1, 0), # 47
(18, 24, 14, 12, 8, 8, 8, 3, 11, 6, 3, 1, 0, 18, 18, 11, 12, 10, 10, 11, 5, 8, 5, 2, 2, 0), # 48
(18, 18, 14, 17, 17, 4, 9, 6, 7, 6, 0, 1, 0, 21, 19, 6, 12, 15, 7, 8, 2, 3, 10, 6, 4, 0), # 49
(22, 23, 11, 15, 18, 8, 5, 3, 6, 4, 1, 0, 0, 14, 19, 8, 10, 13, 6, 5, 8, 7, 6, 3, 1, 0), # 50
(25, 14, 6, 25, 14, 5, 6, 7, 5, 0, 3, 3, 0, 12, 18, 12, 8, 16, 11, 7, 8, 6, 8, 5, 1, 0), # 51
(16, 18, 12, 21, 15, 4, 7, 3, 8, 4, 5, 2, 0, 16, 18, 12, 10, 17, 7, 11, 2, 5, 1, 5, 0, 0), # 52
(14, 12, 17, 17, 11, 6, 7, 7, 8, 2, 3, 4, 0, 15, 19, 18, 8, 15, 6, 5, 5, 12, 4, 4, 1, 0), # 53
(11, 15, 11, 13, 10, 9, 6, 4, 6, 4, 0, 1, 0, 25, 19, 11, 12, 16, 9, 2, 6, 11, 8, 2, 3, 0), # 54
(14, 25, 11, 24, 19, 10, 10, 5, 8, 1, 3, 1, 0, 19, 27, 9, 6, 12, 11, 14, 4, 7, 7, 3, 3, 0), # 55
(17, 13, 22, 18, 10, 3, 5, 5, 6, 4, 2, 0, 0, 22, 20, 14, 13, 15, 11, 12, 3, 6, 5, 2, 1, 0), # 56
(19, 20, 12, 16, 15, 3, 5, 7, 4, 3, 2, 0, 0, 19, 16, 12, 9, 17, 6, 3, 5, 6, 2, 3, 2, 0), # 57
(27, 16, 14, 17, 7, 3, 4, 8, 7, 3, 3, 0, 0, 13, 18, 21, 8, 11, 4, 9, 2, 6, 5, 5, 0, 0), # 58
(17, 18, 12, 22, 10, 7, 6, 9, 5, 3, 3, 1, 0, 16, 14, 12, 17, 9, 11, 5, 4, 6, 5, 3, 5, 0), # 59
(14, 10, 14, 19, 4, 6, 7, 4, 10, 6, 1, 2, 0, 19, 21, 14, 8, 13, 3, 7, 6, 11, 11, 6, 1, 0), # 60
(19, 13, 19, 13, 14, 11, 10, 3, 5, 3, 1, 0, 0, 19, 16, 19, 9, 18, 5, 5, 1, 10, 5, 3, 1, 0), # 61
(18, 18, 11, 19, 13, 8, 6, 6, 10, 4, 4, 3, 0, 22, 13, 12, 7, 12, 8, 8, 3, 3, 3, 3, 0, 0), # 62
(17, 25, 15, 22, 17, 7, 6, 6, 10, 4, 1, 2, 0, 25, 17, 11, 7, 12, 6, 4, 4, 9, 6, 1, 0, 0), # 63
(19, 15, 17, 10, 14, 4, 5, 5, 7, 6, 1, 1, 0, 21, 15, 12, 7, 24, 7, 7, 5, 9, 4, 4, 1, 0), # 64
(14, 14, 17, 20, 9, 4, 7, 3, 10, 4, 1, 1, 0, 10, 13, 10, 12, 10, 12, 11, 5, 6, 4, 11, 0, 0), # 65
(20, 23, 16, 13, 14, 8, 10, 7, 5, 3, 1, 2, 0, 17, 17, 10, 11, 15, 4, 8, 4, 7, 3, 1, 1, 0), # 66
(23, 19, 14, 16, 10, 6, 7, 3, 3, 4, 0, 1, 0, 24, 11, 7, 10, 16, 9, 8, 7, 3, 3, 4, 2, 0), # 67
(14, 15, 8, 22, 9, 11, 5, 3, 6, 3, 2, 0, 0, 23, 15, 11, 5, 16, 4, 3, 6, 4, 2, 1, 3, 0), # 68
(20, 21, 17, 13, 12, 7, 7, 8, 3, 2, 2, 1, 0, 11, 12, 16, 18, 17, 8, 7, 7, 5, 4, 4, 0, 0), # 69
(12, 26, 14, 22, 18, 7, 7, 6, 5, 2, 2, 3, 0, 22, 13, 15, 4, 13, 12, 6, 9, 7, 8, 2, 2, 0), # 70
(15, 22, 20, 10, 23, 5, 5, 3, 6, 3, 4, 2, 0, 29, 13, 11, 8, 13, 9, 7, 4, 9, 8, 0, 2, 0), # 71
(9, 23, 23, 12, 15, 9, 8, 5, 2, 5, 2, 1, 0, 14, 10, 14, 6, 8, 7, 8, 3, 7, 6, 4, 1, 0), # 72
(25, 12, 18, 19, 15, 7, 12, 4, 9, 1, 2, 0, 0, 16, 13, 13, 8, 15, 10, 10, 4, 8, 7, 3, 2, 0), # 73
(16, 17, 16, 12, 14, 7, 8, 3, 3, 1, 4, 2, 0, 17, 23, 7, 4, 19, 14, 7, 7, 4, 6, 4, 2, 0), # 74
(19, 17, 16, 11, 19, 4, 4, 4, 6, 3, 0, 1, 0, 24, 18, 16, 9, 7, 9, 13, 3, 8, 5, 2, 1, 0), # 75
(19, 17, 11, 21, 12, 3, 9, 5, 6, 3, 4, 3, 0, 14, 14, 11, 7, 10, 10, 5, 8, 5, 6, 1, 0, 0), # 76
(19, 17, 24, 18, 13, 15, 11, 7, 2, 1, 1, 0, 0, 12, 9, 15, 5, 17, 6, 3, 2, 9, 9, 0, 3, 0), # 77
(20, 15, 12, 21, 11, 8, 6, 3, 3, 2, 1, 1, 0, 23, 15, 11, 8, 8, 5, 8, 4, 9, 4, 7, 1, 0), # 78
(19, 13, 18, 14, 15, 3, 5, 1, 8, 2, 3, 0, 0, 15, 11, 9, 8, 16, 8, 4, 11, 10, 9, 3, 6, 0), # 79
(20, 12, 14, 7, 15, 5, 3, 7, 6, 6, 2, 3, 0, 18, 21, 12, 9, 17, 4, 11, 4, 8, 5, 3, 0, 0), # 80
(13, 10, 11, 22, 11, 9, 11, 5, 7, 3, 5, 1, 0, 20, 17, 12, 8, 5, 10, 5, 4, 10, 5, 0, 1, 0), # 81
(18, 13, 18, 19, 12, 5, 10, 7, 7, 3, 3, 1, 0, 17, 17, 7, 4, 18, 7, 8, 6, 9, 4, 6, 3, 0), # 82
(10, 13, 17, 19, 17, 2, 5, 8, 4, 3, 4, 1, 0, 13, 14, 10, 15, 16, 5, 5, 4, 8, 3, 2, 2, 0), # 83
(24, 12, 11, 14, 17, 5, 8, 5, 3, 4, 0, 2, 0, 23, 14, 12, 12, 18, 3, 6, 6, 11, 3, 2, 0, 0), # 84
(23, 15, 16, 7, 11, 10, 3, 9, 7, 2, 4, 3, 0, 15, 8, 9, 8, 9, 11, 6, 5, 6, 3, 3, 3, 0), # 85
(11, 16, 15, 14, 14, 4, 6, 3, 12, 1, 1, 4, 0, 18, 13, 12, 12, 7, 11, 5, 6, 7, 3, 3, 1, 0), # 86
(21, 18, 18, 15, 12, 7, 3, 4, 8, 4, 2, 1, 0, 24, 16, 7, 8, 16, 4, 4, 5, 3, 3, 4, 3, 0), # 87
(16, 14, 11, 18, 13, 5, 8, 12, 4, 2, 0, 0, 0, 20, 18, 15, 9, 13, 3, 11, 10, 9, 3, 2, 3, 0), # 88
(22, 14, 19, 12, 15, 11, 6, 3, 9, 4, 5, 0, 0, 21, 23, 13, 4, 14, 2, 3, 6, 11, 6, 3, 0, 0), # 89
(15, 13, 15, 13, 16, 9, 4, 6, 8, 2, 3, 0, 0, 11, 14, 6, 8, 14, 8, 8, 6, 9, 2, 3, 1, 0), # 90
(14, 17, 15, 23, 15, 5, 5, 3, 8, 2, 2, 2, 0, 27, 22, 13, 3, 18, 6, 4, 5, 5, 4, 1, 1, 0), # 91
(10, 13, 13, 19, 20, 3, 4, 1, 11, 3, 4, 4, 0, 21, 20, 13, 8, 7, 9, 2, 8, 11, 3, 2, 0, 0), # 92
(24, 6, 8, 17, 11, 4, 2, 6, 4, 1, 2, 0, 0, 17, 18, 12, 9, 12, 3, 5, 6, 6, 5, 2, 1, 0), # 93
(21, 22, 13, 21, 19, 10, 7, 4, 9, 3, 1, 0, 0, 15, 13, 3, 10, 13, 5, 11, 4, 10, 8, 2, 1, 0), # 94
(15, 10, 16, 19, 10, 4, 7, 3, 11, 1, 1, 0, 0, 22, 23, 5, 10, 11, 3, 12, 4, 8, 1, 4, 2, 0), # 95
(22, 10, 11, 14, 9, 6, 8, 10, 9, 1, 4, 1, 0, 23, 18, 10, 11, 12, 7, 6, 4, 7, 3, 5, 0, 0), # 96
(20, 12, 14, 11, 16, 7, 4, 6, 10, 2, 1, 1, 0, 20, 9, 11, 3, 18, 7, 5, 2, 8, 5, 2, 0, 0), # 97
(25, 18, 17, 14, 10, 11, 7, 6, 9, 4, 5, 2, 0, 11, 15, 8, 14, 17, 4, 6, 4, 4, 5, 2, 1, 0), # 98
(19, 20, 14, 14, 17, 7, 9, 6, 5, 3, 1, 0, 0, 20, 10, 5, 13, 17, 7, 7, 4, 8, 6, 1, 1, 0), # 99
(23, 17, 17, 14, 13, 6, 7, 4, 9, 3, 4, 1, 0, 19, 14, 11, 10, 12, 11, 8, 1, 8, 5, 3, 3, 0), # 100
(24, 8, 11, 10, 13, 8, 1, 4, 5, 2, 5, 3, 0, 18, 14, 7, 7, 22, 9, 2, 7, 6, 1, 4, 0, 0), # 101
(17, 15, 18, 11, 12, 12, 3, 5, 10, 3, 1, 0, 0, 13, 7, 7, 10, 11, 5, 6, 5, 8, 10, 5, 1, 0), # 102
(17, 19, 17, 14, 15, 6, 6, 3, 5, 5, 2, 2, 0, 24, 11, 10, 11, 12, 8, 11, 3, 8, 1, 4, 1, 0), # 103
(16, 15, 6, 16, 12, 6, 5, 8, 10, 2, 2, 2, 0, 22, 19, 13, 14, 11, 10, 7, 3, 5, 2, 8, 3, 0), # 104
(29, 16, 10, 8, 12, 2, 7, 3, 12, 0, 2, 5, 0, 15, 19, 10, 7, 16, 6, 3, 6, 5, 2, 5, 1, 0), # 105
(17, 13, 15, 12, 9, 9, 7, 3, 6, 2, 1, 2, 0, 19, 9, 10, 6, 10, 8, 5, 4, 5, 6, 1, 1, 0), # 106
(12, 9, 7, 12, 17, 2, 2, 3, 7, 3, 3, 1, 0, 15, 15, 14, 4, 11, 4, 6, 7, 7, 2, 1, 3, 0), # 107
(26, 17, 8, 13, 14, 5, 8, 5, 3, 4, 3, 2, 0, 20, 18, 17, 10, 14, 10, 0, 3, 9, 5, 1, 1, 0), # 108
(24, 11, 13, 18, 16, 3, 5, 4, 8, 0, 1, 2, 0, 24, 13, 13, 10, 16, 7, 6, 3, 8, 4, 3, 0, 0), # 109
(11, 10, 12, 20, 9, 2, 5, 6, 6, 1, 0, 2, 0, 12, 16, 4, 5, 17, 4, 4, 7, 7, 8, 6, 0, 0), # 110
(15, 10, 21, 9, 9, 7, 6, 3, 7, 1, 2, 1, 0, 21, 12, 17, 5, 6, 8, 5, 3, 10, 5, 3, 0, 0), # 111
(8, 14, 15, 14, 8, 2, 5, 6, 5, 2, 2, 1, 0, 11, 15, 10, 6, 13, 7, 5, 2, 7, 11, 0, 0, 0), # 112
(14, 12, 13, 23, 11, 5, 5, 3, 6, 5, 2, 1, 0, 19, 12, 13, 7, 10, 5, 3, 5, 4, 12, 1, 0, 0), # 113
(10, 13, 13, 18, 11, 3, 7, 3, 9, 5, 3, 1, 0, 14, 10, 11, 7, 11, 7, 2, 4, 10, 3, 4, 0, 0), # 114
(17, 12, 11, 22, 12, 8, 6, 8, 11, 4, 0, 2, 0, 18, 14, 15, 4, 11, 0, 7, 3, 10, 7, 5, 0, 0), # 115
(15, 15, 14, 9, 16, 5, 2, 4, 10, 3, 2, 1, 0, 20, 14, 6, 10, 11, 7, 4, 4, 5, 6, 4, 1, 0), # 116
(19, 11, 12, 16, 15, 5, 3, 8, 6, 4, 1, 2, 0, 16, 16, 9, 7, 11, 5, 6, 5, 7, 1, 3, 0, 0), # 117
(19, 19, 11, 12, 15, 4, 5, 3, 8, 2, 0, 0, 0, 19, 17, 9, 9, 17, 10, 4, 1, 6, 6, 2, 3, 0), # 118
(19, 10, 19, 9, 15, 6, 8, 4, 8, 4, 2, 2, 0, 23, 15, 10, 3, 13, 7, 5, 8, 8, 3, 6, 1, 0), # 119
(12, 17, 9, 9, 11, 5, 8, 6, 6, 1, 0, 2, 0, 12, 24, 13, 7, 13, 7, 4, 7, 5, 8, 3, 1, 0), # 120
(14, 10, 10, 15, 11, 8, 6, 1, 3, 4, 0, 0, 0, 17, 11, 10, 3, 13, 4, 11, 6, 3, 7, 1, 3, 0), # 121
(10, 15, 20, 19, 12, 8, 3, 1, 5, 1, 0, 1, 0, 22, 15, 12, 8, 10, 10, 9, 4, 4, 2, 1, 2, 0), # 122
(18, 12, 10, 9, 11, 5, 3, 5, 5, 4, 1, 1, 0, 11, 12, 5, 5, 12, 5, 4, 4, 3, 5, 0, 2, 0), # 123
(17, 8, 9, 11, 14, 6, 1, 5, 6, 2, 0, 0, 0, 15, 15, 9, 9, 17, 5, 5, 5, 8, 3, 1, 1, 0), # 124
(25, 16, 14, 17, 15, 4, 0, 7, 5, 2, 2, 2, 0, 20, 18, 8, 15, 7, 7, 2, 2, 8, 7, 1, 0, 0), # 125
(15, 6, 17, 18, 11, 4, 4, 4, 5, 2, 1, 1, 0, 9, 9, 11, 9, 8, 9, 4, 7, 5, 2, 2, 0, 0), # 126
(18, 11, 14, 8, 8, 11, 7, 4, 7, 3, 2, 0, 0, 19, 17, 7, 10, 10, 4, 1, 8, 5, 6, 2, 1, 0), # 127
(19, 11, 15, 17, 15, 7, 6, 3, 5, 2, 1, 1, 0, 14, 17, 14, 6, 13, 2, 7, 5, 3, 7, 0, 1, 0), # 128
(19, 9, 18, 16, 17, 4, 5, 5, 3, 2, 2, 2, 0, 14, 16, 11, 8, 9, 8, 9, 2, 2, 7, 2, 0, 0), # 129
(14, 15, 10, 18, 14, 8, 6, 1, 9, 3, 1, 2, 0, 22, 12, 9, 5, 19, 4, 10, 6, 10, 7, 2, 0, 0), # 130
(17, 8, 6, 12, 5, 7, 4, 3, 8, 0, 1, 1, 0, 21, 12, 5, 10, 10, 6, 6, 3, 7, 6, 2, 1, 0), # 131
(16, 10, 11, 12, 11, 4, 5, 5, 4, 3, 1, 0, 0, 15, 6, 19, 8, 13, 9, 8, 3, 3, 6, 2, 0, 0), # 132
(12, 15, 11, 16, 11, 5, 7, 3, 5, 1, 1, 2, 0, 17, 11, 10, 7, 7, 5, 3, 1, 8, 1, 2, 2, 0), # 133
(17, 3, 17, 11, 18, 11, 4, 7, 5, 0, 1, 3, 0, 22, 13, 8, 10, 14, 5, 2, 4, 6, 7, 2, 1, 0), # 134
(6, 14, 18, 4, 12, 4, 6, 6, 4, 4, 0, 0, 0, 14, 9, 12, 6, 15, 3, 6, 5, 5, 5, 0, 1, 0), # 135
(7, 11, 15, 11, 17, 3, 2, 6, 9, 2, 2, 0, 0, 18, 8, 7, 7, 14, 7, 1, 5, 7, 2, 1, 0, 0), # 136
(17, 5, 14, 19, 14, 7, 5, 4, 5, 1, 1, 1, 0, 14, 14, 9, 11, 18, 6, 1, 0, 4, 6, 3, 3, 0), # 137
(9, 7, 14, 13, 11, 5, 7, 3, 6, 2, 2, 0, 0, 19, 11, 14, 7, 14, 9, 8, 7, 5, 6, 3, 0, 0), # 138
(9, 17, 10, 13, 14, 3, 8, 5, 2, 0, 2, 2, 0, 11, 10, 6, 9, 12, 9, 2, 6, 5, 5, 2, 1, 0), # 139
(15, 10, 10, 16, 8, 1, 3, 2, 5, 3, 1, 4, 0, 19, 19, 8, 2, 9, 5, 6, 8, 9, 6, 2, 0, 0), # 140
(14, 13, 12, 11, 12, 6, 7, 3, 3, 0, 2, 1, 0, 17, 11, 6, 8, 16, 6, 3, 2, 3, 6, 5, 1, 0), # 141
(17, 13, 20, 12, 7, 7, 1, 5, 7, 2, 2, 1, 0, 12, 10, 4, 4, 5, 2, 5, 3, 5, 6, 3, 1, 0), # 142
(21, 9, 17, 14, 5, 9, 4, 5, 5, 0, 1, 0, 0, 18, 13, 9, 12, 15, 5, 5, 4, 5, 2, 4, 1, 0), # 143
(17, 7, 14, 12, 8, 2, 6, 3, 12, 1, 2, 2, 0, 12, 10, 9, 5, 14, 11, 5, 5, 3, 8, 4, 0, 0), # 144
(18, 12, 8, 12, 11, 7, 9, 5, 8, 1, 2, 0, 0, 16, 13, 10, 7, 13, 4, 7, 4, 7, 2, 4, 3, 0), # 145
(13, 11, 9, 15, 9, 5, 4, 5, 5, 2, 2, 2, 0, 13, 12, 9, 9, 11, 6, 3, 1, 3, 3, 3, 1, 0), # 146
(13, 8, 24, 10, 7, 7, 4, 5, 8, 3, 1, 1, 0, 19, 11, 18, 7, 15, 11, 3, 2, 4, 5, 2, 3, 0), # 147
(18, 14, 9, 13, 11, 5, 13, 5, 9, 2, 2, 1, 0, 14, 7, 9, 6, 13, 8, 4, 2, 7, 4, 6, 0, 0), # 148
(18, 11, 11, 16, 8, 7, 3, 5, 2, 2, 3, 1, 0, 18, 11, 10, 10, 7, 8, 5, 5, 10, 5, 4, 0, 0), # 149
(11, 11, 9, 14, 13, 7, 3, 5, 5, 1, 2, 4, 0, 16, 15, 8, 6, 13, 6, 6, 8, 5, 5, 3, 0, 0), # 150
(17, 12, 11, 5, 11, 6, 4, 4, 8, 4, 3, 1, 0, 15, 13, 8, 5, 16, 6, 3, 3, 8, 3, 0, 0, 0), # 151
(20, 13, 16, 12, 11, 10, 9, 3, 8, 4, 0, 1, 0, 16, 11, 14, 5, 13, 5, 5, 5, 3, 5, 2, 0, 0), # 152
(12, 6, 11, 9, 7, 5, 2, 5, 6, 3, 1, 0, 0, 19, 8, 9, 4, 9, 8, 5, 4, 8, 7, 8, 2, 0), # 153
(16, 13, 14, 14, 11, 5, 4, 4, 0, 2, 2, 1, 0, 18, 6, 8, 13, 8, 6, 0, 2, 8, 5, 2, 1, 0), # 154
(14, 9, 13, 11, 15, 5, 2, 8, 9, 5, 2, 1, 0, 16, 6, 7, 5, 12, 4, 2, 3, 10, 1, 3, 0, 0), # 155
(7, 11, 9, 9, 8, 8, 4, 6, 2, 0, 1, 0, 0, 13, 13, 5, 5, 8, 12, 4, 1, 5, 3, 2, 0, 0), # 156
(12, 18, 12, 13, 11, 8, 3, 4, 7, 1, 1, 2, 0, 20, 15, 8, 5, 8, 5, 5, 5, 9, 4, 4, 2, 0), # 157
(11, 8, 15, 11, 10, 5, 5, 4, 8, 3, 1, 0, 0, 17, 7, 8, 11, 5, 4, 3, 4, 10, 3, 5, 0, 0), # 158
(13, 15, 12, 8, 10, 6, 5, 6, 2, 3, 0, 0, 0, 13, 12, 5, 5, 14, 8, 6, 3, 8, 3, 3, 1, 0), # 159
(9, 8, 8, 9, 6, 6, 6, 5, 2, 4, 7, 2, 0, 20, 14, 3, 8, 6, 7, 2, 3, 4, 3, 1, 1, 0), # 160
(14, 14, 13, 8, 9, 3, 2, 3, 8, 1, 2, 1, 0, 14, 16, 9, 9, 9, 3, 2, 4, 5, 3, 2, 1, 0), # 161
(10, 12, 15, 14, 5, 5, 3, 4, 2, 1, 0, 2, 0, 11, 18, 6, 7, 9, 6, 3, 7, 6, 3, 2, 0, 0), # 162
(13, 7, 10, 16, 15, 8, 4, 3, 5, 2, 1, 0, 0, 20, 10, 5, 3, 7, 4, 4, 5, 5, 5, 2, 1, 0), # 163
(12, 10, 16, 14, 11, 5, 0, 6, 3, 1, 1, 0, 0, 16, 11, 11, 5, 12, 2, 4, 4, 4, 3, 5, 1, 0), # 164
(11, 9, 8, 8, 10, 2, 3, 1, 3, 0, 2, 1, 0, 15, 12, 4, 7, 12, 7, 2, 4, 3, 5, 5, 1, 0), # 165
(6, 9, 7, 5, 14, 3, 2, 3, 9, 2, 0, 0, 0, 12, 7, 7, 6, 11, 8, 2, 2, 7, 1, 2, 1, 0), # 166
(8, 5, 8, 11, 12, 4, 5, 3, 4, 3, 0, 2, 0, 13, 9, 6, 3, 10, 1, 4, 5, 4, 1, 2, 0, 0), # 167
(15, 5, 14, 22, 8, 5, 1, 4, 2, 2, 1, 1, 0, 9, 18, 9, 5, 18, 5, 5, 4, 6, 6, 0, 0, 0), # 168
(10, 4, 6, 17, 8, 3, 2, 5, 3, 1, 2, 0, 0, 10, 9, 3, 6, 12, 5, 3, 2, 9, 8, 1, 1, 0), # 169
(16, 6, 5, 13, 15, 6, 5, 4, 4, 0, 0, 2, 0, 8, 6, 3, 6, 7, 4, 6, 5, 6, 3, 3, 0, 0), # 170
(7, 7, 12, 10, 7, 5, 2, 3, 5, 3, 1, 0, 0, 14, 9, 4, 6, 12, 9, 1, 6, 6, 1, 1, 0, 0), # 171
(11, 6, 7, 19, 5, 3, 5, 2, 3, 1, 0, 2, 0, 15, 10, 6, 5, 7, 5, 2, 4, 1, 5, 1, 0, 0), # 172
(4, 7, 4, 5, 11, 4, 1, 3, 3, 0, 2, 1, 0, 5, 12, 10, 3, 8, 5, 1, 3, 1, 3, 2, 0, 0), # 173
(12, 5, 5, 11, 7, 2, 3, 2, 3, 3, 0, 0, 0, 5, 7, 7, 4, 2, 8, 2, 2, 3, 0, 5, 0, 0), # 174
(3, 6, 13, 8, 6, 4, 0, 5, 4, 5, 4, 0, 0, 4, 6, 4, 0, 5, 5, 3, 4, 3, 3, 0, 0, 0), # 175
(3, 4, 11, 8, 3, 8, 5, 2, 5, 0, 0, 0, 0, 7, 6, 4, 5, 11, 1, 3, 1, 3, 2, 0, 0, 0), # 176
(3, 7, 8, 18, 5, 3, 2, 1, 2, 1, 1, 0, 0, 9, 5, 4, 3, 14, 5, 3, 1, 4, 1, 2, 0, 0), # 177
(10, 5, 9, 2, 7, 2, 1, 3, 5, 1, 1, 0, 0, 12, 2, 2, 1, 3, 3, 4, 1, 4, 4, 3, 0, 0), # 178
(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0), # 179
)
station_arriving_intensity = (
(9.037558041069182, 9.9455194074477, 9.380309813302512, 11.18640199295418, 9.998434093697302, 5.64957887766721, 7.462864107673047, 8.375717111362961, 10.962178311902413, 7.124427027940266, 7.569477294994085, 8.816247140951113, 9.150984382641052), # 0
(9.637788873635953, 10.602109249460566, 9.999623864394273, 11.925259655897909, 10.660482607453627, 6.0227704512766005, 7.955044094274649, 8.927124701230275, 11.686041587399236, 7.59416524609887, 8.069573044721038, 9.398189989465838, 9.755624965391739), # 1
(10.236101416163518, 11.256093307603763, 10.616476113985344, 12.66117786839663, 11.320133352749538, 6.3944732061224006, 8.445273314329269, 9.476325446227955, 12.407016252379588, 8.062044795036982, 8.567681667797364, 9.9778187736955, 10.357856690777442), # 2
(10.830164027663812, 11.904876903485604, 11.228419564775738, 13.391237533557733, 11.974791016803424, 6.763213120653203, 8.93160655496632, 10.021142083490112, 13.122243289657968, 8.526208857167125, 9.061827141289289, 10.55283423287483, 10.955291051257605), # 3
(11.417645067148767, 12.545865358714394, 11.833007219465467, 14.112519554488625, 12.621860286833686, 7.127516173317602, 9.412098603315226, 10.559397350150848, 13.828863682048873, 8.984800614901822, 9.550033442263036, 11.120937106238575, 11.54553953929167), # 4
(11.996212893630318, 13.176463994898459, 12.427792080754532, 14.822104834296708, 13.258745850058704, 7.485908342564186, 9.884804246505404, 11.088913983344266, 14.524018412366805, 9.435963250653593, 10.030324547784838, 11.679828133021466, 12.126213647339089), # 5
(12.5635358661204, 13.794078133646101, 13.010327151342958, 15.517074276089375, 13.882852393696878, 7.836915606841555, 10.347778271666273, 11.60751472020448, 15.204848463426268, 9.877839946834966, 10.500724434920908, 12.227208052458254, 12.694924867859292), # 6
(13.117282343630944, 14.396113096565637, 13.578165433930742, 16.194508782974033, 14.491584604966597, 8.179063944598298, 10.799075465927253, 12.113022297865593, 15.868494818041759, 10.308573885858456, 10.959257080737483, 12.760777603783673, 13.249284693311735), # 7
(13.655120685173882, 14.979974205265378, 14.128859931217914, 16.85148925805807, 15.082347171086255, 8.510879334283002, 11.236750616417757, 12.603259453461705, 16.512098459027772, 10.726308250136594, 11.403946462300778, 13.278237526232465, 13.786904616155851), # 8
(14.174719249761154, 15.543066781353641, 14.659963645904467, 17.485096604448906, 15.652544779274237, 8.830887754344271, 11.658858510267216, 13.076048924126933, 17.132800369198815, 11.129186222081895, 11.83281655667702, 13.777288559039365, 14.305396128851092), # 9
(14.673746396404677, 16.082796146438728, 15.169029580690424, 18.092411725253918, 16.199582116748942, 9.137615183230693, 12.063453934605038, 13.52921344699538, 17.727741531369386, 11.515350984106886, 12.243891340932432, 14.255631441439114, 14.802370723856898), # 10
(15.149870484116411, 16.596567622128973, 15.653610738275788, 18.670515523580516, 16.72086387072876, 9.429587599390864, 12.44859167656065, 13.960575759201147, 18.294062928353988, 11.882945718624095, 12.635194792133248, 14.710966912666459, 15.2754398936327), # 11
(15.600759871908263, 17.081786530032655, 16.111260121360573, 19.216488902536103, 17.21379472843208, 9.705330981273365, 12.812326523263462, 14.367958597878339, 18.82890554296712, 12.23011360804603, 13.004750887345683, 15.140995711956123, 15.722215130637963), # 12
(16.02408291879218, 17.535858191758116, 16.539530732644792, 19.727412765228078, 17.675779377077284, 9.963371307326803, 13.152713261842901, 14.749184700161067, 19.329410358023278, 12.554997834785228, 13.350583603635965, 15.543418578542857, 16.140307927332124), # 13
(16.41750798378009, 17.95618792891366, 16.935975574828465, 20.20036801476383, 18.10422250388278, 10.202234555999762, 13.46780667942839, 15.102076803183444, 19.79271835633696, 12.855741581254202, 13.670716918070312, 15.915936251661408, 16.527329776174614), # 14
(16.77870342588394, 18.34018106310759, 17.298147650611575, 20.632435554250776, 18.496528796066954, 10.420446705740842, 13.755661563149326, 15.424457644079562, 20.215970520722674, 13.130488029865482, 13.963174807714955, 16.256249470546507, 16.880892169624886), # 15
(17.10533760411564, 18.685242915948237, 17.623599962694165, 21.02069628679629, 18.8501029408482, 10.616533734998628, 14.014332700135158, 15.71414995998353, 20.596307833994917, 13.377380363031593, 14.225981249636122, 16.56205897443289, 17.198606600142384), # 16
(17.395078877487137, 18.988778809043904, 17.909885513776235, 21.362231115507804, 19.162349625444907, 10.789021622221714, 14.24187487751528, 15.968976488029472, 20.930871278968173, 13.594561763165041, 14.457160220900038, 16.8310655025553, 17.47808456018655), # 17
(17.645595605010367, 19.248194064002895, 18.154557306557784, 21.654120943492703, 19.43067353707546, 10.936436345858706, 14.436342882419133, 16.18675996535147, 21.216801838456973, 13.780175412678366, 14.654735698572916, 17.060969794148487, 17.716937542216822), # 18
(17.85455614569726, 19.46089400243354, 18.355168343738843, 21.893446673858367, 19.65247936295826, 11.057303884358175, 14.59579150197611, 16.36532312908364, 21.4512404952758, 13.93236449398409, 14.81673165972098, 17.249472588447173, 17.912777038692653), # 19
(18.01962885855975, 19.624283945944132, 18.509271628019405, 22.077289209712237, 19.8251717903117, 11.150150216168733, 14.718275523315652, 16.50248871636009, 21.631328232239156, 14.049272189494726, 14.94117208141047, 17.394274624686105, 18.063214542073485), # 20
(18.13848210260976, 19.735769216143005, 18.614420162099496, 22.202729454161673, 19.94615550635416, 11.213501319738963, 14.801849733567167, 16.596079464314922, 21.754206032161537, 14.1290416816228, 15.026080940707608, 17.49307664210003, 18.165861544818743), # 21
(18.20878423685924, 19.792755134638462, 18.668166948679115, 22.266848310314106, 20.012835198304035, 11.245883173517461, 14.844568919860079, 16.643918110082247, 21.81701487785745, 14.169816152780836, 15.069482214678613, 17.54357937992368, 18.218329539387888), # 22
(18.23470805401675, 19.799502469135803, 18.674861728395065, 22.274875462962967, 20.029917700858675, 11.25, 14.84964720406681, 16.64908888888889, 21.824867222222224, 14.17462609053498, 15.074924466891131, 17.549815637860082, 18.225), # 23
(18.253822343461476, 19.79556666666667, 18.673766666666666, 22.273887500000004, 20.039593704506736, 11.25, 14.8468568627451, 16.6419, 21.823815, 14.17167111111111, 15.074324242424245, 17.548355555555556, 18.225), # 24
(18.272533014380844, 19.78780864197531, 18.671604938271606, 22.27193287037037, 20.049056902070106, 11.25, 14.841358024691358, 16.62777777777778, 21.82173611111111, 14.16585390946502, 15.073134118967452, 17.545473251028806, 18.225), # 25
(18.290838634286462, 19.776346913580248, 18.668406172839507, 22.269033796296295, 20.05830696315799, 11.25, 14.833236092955698, 16.60698888888889, 21.81865722222222, 14.157271275720165, 15.07136487093154, 17.54120823045268, 18.225), # 26
(18.308737770689945, 19.7613, 18.6642, 22.265212499999997, 20.067343557379587, 11.25, 14.822576470588237, 16.579800000000002, 21.814605, 14.146019999999998, 15.069027272727272, 17.535600000000002, 18.225), # 27
(18.3262289911029, 19.742786419753084, 18.659016049382718, 22.260491203703705, 20.076166354344124, 11.25, 14.809464560639071, 16.54647777777778, 21.809606111111112, 14.132196872427985, 15.066132098765433, 17.528688065843625, 18.225), # 28
(18.34331086303695, 19.720924691358025, 18.652883950617287, 22.25489212962963, 20.084775023660796, 11.25, 14.793985766158318, 16.507288888888887, 21.803687222222223, 14.115898683127574, 15.06269012345679, 17.520511934156378, 18.225), # 29
(18.359981954003697, 19.695833333333333, 18.645833333333332, 22.2484375, 20.093169234938827, 11.25, 14.776225490196078, 16.4625, 21.796875, 14.097222222222223, 15.058712121212121, 17.51111111111111, 18.225), # 30
(18.376240831514746, 19.667630864197534, 18.637893827160497, 22.241149537037035, 20.101348657787415, 11.25, 14.756269135802471, 16.412377777777778, 21.78919611111111, 14.07626427983539, 15.054208866442199, 17.500525102880662, 18.225), # 31
(18.392086063081717, 19.636435802469137, 18.629095061728393, 22.233050462962964, 20.10931296181577, 11.25, 14.734202106027599, 16.357188888888892, 21.780677222222224, 14.053121646090535, 15.0491911335578, 17.48879341563786, 18.225), # 32
(18.407516216216216, 19.602366666666665, 18.619466666666668, 22.2241625, 20.117061816633115, 11.25, 14.710109803921569, 16.2972, 21.771345, 14.027891111111112, 15.043669696969696, 17.475955555555554, 18.225), # 33
(18.422529858429858, 19.56554197530864, 18.609038271604938, 22.21450787037037, 20.12459489184864, 11.25, 14.684077632534496, 16.232677777777777, 21.761226111111114, 14.000669465020577, 15.037655331088663, 17.462051028806584, 18.225), # 34
(18.437125557234253, 19.52608024691358, 18.597839506172843, 22.204108796296293, 20.131911857071568, 11.25, 14.656190994916486, 16.163888888888888, 21.750347222222224, 13.971553497942386, 15.031158810325476, 17.447119341563788, 18.225), # 35
(18.45130188014101, 19.484099999999998, 18.5859, 22.192987499999997, 20.139012381911105, 11.25, 14.626535294117646, 16.0911, 21.738735, 13.94064, 15.024190909090908, 17.431200000000004, 18.225), # 36
(18.46505739466174, 19.43971975308642, 18.57324938271605, 22.181166203703704, 20.145896135976457, 11.25, 14.595195933188089, 16.014577777777777, 21.72641611111111, 13.908025761316873, 15.016762401795738, 17.414332510288066, 18.225), # 37
(18.47839066830806, 19.39305802469136, 18.559917283950615, 22.168667129629632, 20.152562788876843, 11.25, 14.562258315177923, 15.934588888888891, 21.713417222222223, 13.873807572016462, 15.00888406285073, 17.396556378600824, 18.225), # 38
(18.491300268591576, 19.34423333333333, 18.545933333333334, 22.1555125, 20.159012010221467, 11.25, 14.527807843137257, 15.8514, 21.699765000000003, 13.838082222222223, 15.000566666666668, 17.37791111111111, 18.225), # 39
(18.503784763023894, 19.293364197530863, 18.531327160493827, 22.14172453703704, 20.165243469619533, 11.25, 14.491929920116196, 15.765277777777781, 21.685486111111114, 13.800946502057615, 14.99182098765432, 17.358436213991773, 18.225), # 40
(18.51584271911663, 19.24056913580247, 18.51612839506173, 22.127325462962965, 20.171256836680264, 11.25, 14.454709949164851, 15.67648888888889, 21.67060722222222, 13.76249720164609, 14.982657800224468, 17.338171193415636, 18.225), # 41
(18.527472704381402, 19.18596666666667, 18.500366666666668, 22.112337500000002, 20.177051781012857, 11.25, 14.416233333333333, 15.5853, 21.655155000000004, 13.72283111111111, 14.97308787878788, 17.317155555555555, 18.225), # 42
(18.538673286329807, 19.12967530864198, 18.484071604938272, 22.096782870370372, 20.182627972226527, 11.25, 14.37658547567175, 15.491977777777779, 21.63915611111111, 13.682045020576133, 14.96312199775533, 17.295428806584365, 18.225), # 43
(18.54944303247347, 19.071813580246914, 18.467272839506176, 22.0806837962963, 20.18798507993048, 11.25, 14.335851779230211, 15.396788888888892, 21.62263722222222, 13.64023572016461, 14.952770931537597, 17.2730304526749, 18.225), # 44
(18.55978051032399, 19.0125, 18.45, 22.064062500000002, 20.193122773733933, 11.25, 14.294117647058824, 15.3, 21.605625, 13.597500000000002, 14.942045454545454, 17.25, 18.225), # 45
(18.569684287392985, 18.951853086419753, 18.432282716049382, 22.046941203703703, 20.198040723246088, 11.25, 14.251468482207699, 15.20187777777778, 21.588146111111108, 13.553934650205761, 14.930956341189674, 17.226376954732512, 18.225), # 46
(18.579152931192063, 18.88999135802469, 18.41415061728395, 22.02934212962963, 20.202738598076163, 11.25, 14.207989687726945, 15.102688888888888, 21.570227222222226, 13.50963646090535, 14.919514365881032, 17.20220082304527, 18.225), # 47
(18.588185009232834, 18.827033333333333, 18.395633333333333, 22.0112875, 20.20721606783336, 11.25, 14.163766666666668, 15.0027, 21.551895000000002, 13.464702222222222, 14.907730303030302, 17.177511111111112, 18.225), # 48
(18.596779089026917, 18.763097530864197, 18.376760493827163, 21.99279953703704, 20.211472802126895, 11.25, 14.118884822076978, 14.902177777777778, 21.53317611111111, 13.419228724279836, 14.895614927048262, 17.152347325102884, 18.225), # 49
(18.604933738085908, 18.698302469135808, 18.357561728395066, 21.973900462962963, 20.21550847056597, 11.25, 14.073429557007989, 14.801388888888889, 21.514097222222222, 13.373312757201646, 14.883179012345678, 17.126748971193418, 18.225), # 50
(18.61264752392144, 18.63276666666667, 18.338066666666666, 21.9546125, 20.219322742759797, 11.25, 14.027486274509805, 14.7006, 21.494685000000004, 13.32705111111111, 14.870433333333335, 17.10075555555556, 18.225), # 51
(18.619919014045102, 18.56660864197531, 18.318304938271606, 21.934957870370372, 20.222915288317584, 11.25, 13.981140377632535, 14.600077777777777, 21.47496611111111, 13.280540576131688, 14.857388664421999, 17.074406584362144, 18.225), # 52
(18.626746775968517, 18.49994691358025, 18.29830617283951, 21.914958796296297, 20.226285776848552, 11.25, 13.93447726942629, 14.50008888888889, 21.454967222222226, 13.233877942386831, 14.844055780022448, 17.04774156378601, 18.225), # 53
(18.63312937720329, 18.432900000000004, 18.2781, 21.8946375, 20.229433877961906, 11.25, 13.887582352941177, 14.400899999999998, 21.434715, 13.18716, 14.830445454545453, 17.0208, 18.225), # 54
(18.63906538526104, 18.365586419753086, 18.25771604938272, 21.874016203703704, 20.232359261266843, 11.25, 13.840541031227307, 14.302777777777777, 21.414236111111112, 13.140483539094651, 14.816568462401795, 16.993621399176956, 18.225), # 55
(18.64455336765337, 18.298124691358026, 18.237183950617286, 21.85311712962963, 20.235061596372585, 11.25, 13.793438707334786, 14.20598888888889, 21.393557222222224, 13.09394534979424, 14.802435578002246, 16.96624526748971, 18.225), # 56
(18.649591891891887, 18.230633333333333, 18.216533333333334, 21.8319625, 20.23754055288834, 11.25, 13.746360784313726, 14.110800000000001, 21.372705, 13.047642222222223, 14.788057575757577, 16.93871111111111, 18.225), # 57
(18.654179525488225, 18.163230864197534, 18.195793827160493, 21.810574537037034, 20.239795800423316, 11.25, 13.699392665214235, 14.017477777777778, 21.35170611111111, 13.001670946502058, 14.773445230078567, 16.91105843621399, 18.225), # 58
(18.658314835953966, 18.096035802469135, 18.174995061728396, 21.788975462962963, 20.24182700858672, 11.25, 13.65261975308642, 13.92628888888889, 21.330587222222224, 12.956128312757203, 14.758609315375981, 16.883326748971193, 18.225), # 59
(18.661996390800738, 18.02916666666667, 18.154166666666665, 21.767187500000002, 20.243633846987766, 11.25, 13.606127450980392, 13.8375, 21.309375000000003, 12.911111111111111, 14.743560606060607, 16.855555555555558, 18.225), # 60
(18.665222757540146, 17.962741975308646, 18.13333827160494, 21.74523287037037, 20.24521598523566, 11.25, 13.560001161946259, 13.751377777777778, 21.288096111111113, 12.866716131687244, 14.728309876543209, 16.82778436213992, 18.225), # 61
(18.66799250368381, 17.89688024691358, 18.112539506172844, 21.7231337962963, 20.246573092939624, 11.25, 13.514326289034132, 13.66818888888889, 21.266777222222224, 12.823040164609054, 14.712867901234567, 16.80005267489712, 18.225), # 62
(18.670304196743327, 17.831699999999998, 18.0918, 21.7009125, 20.24770483970884, 11.25, 13.469188235294117, 13.5882, 21.245445, 12.78018, 14.697245454545456, 16.7724, 18.225), # 63
(18.672156404230314, 17.767319753086422, 18.071149382716047, 21.678591203703704, 20.24861089515255, 11.25, 13.424672403776325, 13.511677777777779, 21.22412611111111, 12.738232427983538, 14.681453310886642, 16.7448658436214, 18.225), # 64
(18.67354769365639, 17.703858024691357, 18.05061728395062, 21.65619212962963, 20.24929092887994, 11.25, 13.380864197530865, 13.438888888888888, 21.202847222222225, 12.697294238683126, 14.665502244668913, 16.717489711934153, 18.225), # 65
(18.674476632533153, 17.641433333333335, 18.030233333333335, 21.6337375, 20.249744610500233, 11.25, 13.337849019607843, 13.3701, 21.181635000000004, 12.657462222222222, 14.649403030303029, 16.690311111111114, 18.225), # 66
(18.674941788372227, 17.580164197530863, 18.010027160493827, 21.611249537037036, 20.249971609622634, 11.25, 13.29571227305737, 13.30557777777778, 21.16051611111111, 12.618833168724281, 14.633166442199778, 16.6633695473251, 18.225), # 67
(18.674624906065485, 17.519847550776582, 17.989930709876543, 21.588555132850242, 20.249780319535223, 11.24979122085048, 13.254327350693364, 13.245018930041153, 21.13935812757202, 12.5813167949649, 14.616514779372677, 16.636554039419536, 18.22477527006173), # 68
(18.671655072463768, 17.458641935483872, 17.969379166666666, 21.564510326086953, 20.248039215686273, 11.248140740740741, 13.212482726423904, 13.185177777777778, 21.11723611111111, 12.543851503267971, 14.597753110047847, 16.608994152046783, 18.222994791666668), # 69
(18.665794417606012, 17.39626642771804, 17.948283179012343, 21.538956823671498, 20.244598765432098, 11.244890260631001, 13.169988242210465, 13.125514403292183, 21.09402520576132, 12.506255144032922, 14.576667995746943, 16.580560970327056, 18.219478202160495), # 70
(18.657125389157272, 17.332758303464754, 17.92665015432099, 21.51193230676329, 20.239502541757446, 11.240092455418381, 13.12686298717018, 13.066048559670783, 21.06975997942387, 12.46852864681675, 14.553337267410951, 16.551275286982886, 18.21427179783951), # 71
(18.64573043478261, 17.268154838709677, 17.9044875, 21.48347445652174, 20.23279411764706, 11.2338, 13.083126050420168, 13.0068, 21.044475000000002, 12.43067294117647, 14.527838755980863, 16.52115789473684, 18.207421875), # 72
(18.631692002147076, 17.20249330943847, 17.88180262345679, 21.45362095410628, 20.224517066085692, 11.226065569272976, 13.038796521077565, 12.947788477366256, 21.01820483539095, 12.392688956669087, 14.50025029239766, 16.490229586311454, 18.198974729938275), # 73
(18.61509253891573, 17.1358109916368, 17.858602932098762, 21.42240948067633, 20.214714960058096, 11.216941838134431, 12.9938934882595, 12.889033744855967, 20.990984053497943, 12.354577622851611, 14.470649707602341, 16.45851115442928, 18.18897665895062), # 74
(18.59601449275362, 17.06814516129032, 17.83489583333333, 21.389877717391304, 20.203431372549023, 11.206481481481482, 12.9484360410831, 12.830555555555556, 20.96284722222222, 12.316339869281046, 14.439114832535884, 16.426023391812866, 18.177473958333334), # 75
(18.57454031132582, 16.99953309438471, 17.8106887345679, 21.35606334541063, 20.19070987654321, 11.19473717421125, 12.902443268665492, 12.772373662551441, 20.93382890946502, 12.277976625514404, 14.405723498139285, 16.392787091184747, 18.164512924382716), # 76
(18.55075244229737, 16.93001206690562, 17.785989043209874, 21.32100404589372, 20.176594045025414, 11.18176159122085, 12.855934260123803, 12.714507818930043, 20.90396368312757, 12.239488821108692, 14.370553535353537, 16.358823045267492, 18.150139853395064), # 77
(18.524733333333334, 16.859619354838713, 17.760804166666667, 21.2847375, 20.16112745098039, 11.167607407407406, 12.808928104575164, 12.65697777777778, 20.87328611111111, 12.200877385620915, 14.333682775119618, 16.324152046783627, 18.134401041666667), # 78
(18.496565432098766, 16.788392234169656, 17.735141512345677, 21.24730138888889, 20.144353667392885, 11.152327297668037, 12.761443891136702, 12.59980329218107, 20.84183076131687, 12.162143248608086, 14.29518904837852, 16.28879488845571, 18.117342785493825), # 79
(18.466331186258724, 16.71636798088411, 17.70900848765432, 21.208733393719807, 20.126316267247642, 11.135973936899862, 12.713500708925546, 12.543004115226339, 20.809632201646092, 12.123287339627208, 14.255150186071239, 16.252772363006283, 18.09901138117284), # 80
(18.434113043478263, 16.643583870967742, 17.682412499999998, 21.169071195652176, 20.10705882352941, 11.118599999999999, 12.665117647058823, 12.486600000000001, 20.776725, 12.084310588235295, 14.213644019138757, 16.216105263157896, 18.079453124999997), # 81
(18.399993451422436, 16.570077180406216, 17.655360956790126, 21.12835247584541, 20.086624909222948, 11.10025816186557, 12.616313794653665, 12.430610699588478, 20.743143724279836, 12.045213923989348, 14.170748378522063, 16.178814381633096, 18.058714313271608), # 82
(18.364054857756308, 16.495885185185184, 17.6278612654321, 21.086614915458934, 20.065058097313, 11.08100109739369, 12.567108240827196, 12.37505596707819, 20.70892294238683, 12.00599827644638, 14.12654109516215, 16.14092051115443, 18.036841242283952), # 83
(18.326379710144927, 16.421045161290323, 17.599920833333332, 21.043896195652174, 20.042401960784314, 11.060881481481482, 12.517520074696545, 12.319955555555556, 20.674097222222223, 11.9666645751634, 14.0811, 16.102444444444444, 18.013880208333333), # 84
(18.287050456253354, 16.345594384707287, 17.571547067901232, 21.000233997584544, 20.01870007262164, 11.039951989026063, 12.467568385378843, 12.265329218106997, 20.63870113168724, 11.92721374969741, 14.034502923976609, 16.06340697422569, 17.989877507716052), # 85
(18.246149543746643, 16.269570131421744, 17.54274737654321, 20.955666002415462, 19.99399600580973, 11.018265294924555, 12.417272261991217, 12.21119670781893, 20.60276923868313, 11.887646729605423, 13.986827698032961, 16.02382889322071, 17.964879436728395), # 86
(18.203759420289852, 16.193009677419354, 17.513529166666665, 20.910229891304347, 19.968333333333337, 10.995874074074074, 12.366650793650793, 12.157577777777778, 20.566336111111116, 11.847964444444443, 13.938152153110048, 15.983730994152046, 17.938932291666667), # 87
(18.159962533548043, 16.11595029868578, 17.483899845679012, 20.86396334541063, 19.941755628177198, 10.972831001371743, 12.315723069474704, 12.104492181069958, 20.52943631687243, 11.808167823771482, 13.888554120148857, 15.943134069742257, 17.912082368827164), # 88
(18.11484133118626, 16.03842927120669, 17.453866820987656, 20.81690404589372, 19.91430646332607, 10.94918875171468, 12.264508178580074, 12.051959670781894, 20.492104423868312, 11.76825779714355, 13.838111430090379, 15.902058912713883, 17.884375964506173), # 89
(18.068478260869565, 15.960483870967742, 17.423437500000002, 20.769089673913047, 19.886029411764707, 10.925, 12.213025210084034, 12.0, 20.454375000000002, 11.728235294117647, 13.786901913875598, 15.860526315789475, 17.855859375), # 90
(18.020955770263015, 15.8821513739546, 17.392619290123456, 20.720557910628024, 19.85696804647785, 10.900317421124829, 12.161293253103711, 11.9486329218107, 20.41628261316873, 11.688101244250786, 13.735003402445509, 15.818557071691574, 17.826578896604936), # 91
(17.97235630703167, 15.80346905615293, 17.361419598765433, 20.671346437198068, 19.827165940450254, 10.875193689986283, 12.109331396756236, 11.897878189300412, 20.377861831275723, 11.647856577099976, 13.682493726741095, 15.776171973142736, 17.796580825617283), # 92
(17.92276231884058, 15.724474193548389, 17.329845833333334, 20.621492934782612, 19.796666666666667, 10.84968148148148, 12.057158730158731, 11.847755555555556, 20.339147222222223, 11.607502222222221, 13.62945071770335, 15.733391812865497, 17.76591145833333), # 93
(17.872256253354806, 15.645204062126643, 17.29790540123457, 20.571035084541062, 19.765513798111837, 10.823833470507545, 12.00479434242833, 11.798284773662553, 20.300173353909464, 11.567039109174534, 13.575952206273259, 15.690237383582414, 17.734617091049383), # 94
(17.820920558239397, 15.56569593787336, 17.265605709876546, 20.52001056763285, 19.733750907770517, 10.797702331961592, 11.95225732268216, 11.749485596707821, 20.260974794238685, 11.526468167513919, 13.522076023391813, 15.646729478016026, 17.70274402006173), # 95
(17.76883768115942, 15.485987096774197, 17.23295416666667, 20.468457065217393, 19.701421568627453, 10.77134074074074, 11.899566760037347, 11.701377777777779, 20.221586111111108, 11.485790326797385, 13.4679, 15.602888888888891, 17.67033854166667), # 96
(17.716090069779927, 15.406114814814819, 17.199958179012345, 20.416412258454105, 19.668569353667394, 10.744801371742112, 11.846741743611025, 11.65398106995885, 20.182041872427984, 11.445006516581941, 13.413501967038808, 15.558736408923545, 17.637446952160495), # 97
(17.66276017176597, 15.326116367980884, 17.166625154320986, 20.363913828502415, 19.635237835875095, 10.718136899862827, 11.793801362520316, 11.607315226337448, 20.142376646090533, 11.404117666424595, 13.35895975544923, 15.514292830842535, 17.604115547839505), # 98
(17.608930434782607, 15.246029032258065, 17.1329625, 20.31099945652174, 19.601470588235298, 10.6914, 11.740764705882354, 11.5614, 20.102625, 11.363124705882353, 13.304351196172249, 15.469578947368422, 17.570390625), # 99
(17.5546833064949, 15.165890083632016, 17.09897762345679, 20.257706823671498, 19.567311183732752, 10.664643347050754, 11.687650862814262, 11.516255144032922, 20.062821502057616, 11.322028564512225, 13.249754120148857, 15.42461555122374, 17.536318479938274), # 100
(17.500101234567904, 15.085736798088412, 17.064677932098768, 20.204073611111113, 19.532803195352216, 10.637919615912208, 11.634478922433171, 11.471900411522633, 20.02300072016461, 11.280830171871218, 13.195246358320043, 15.379423435131034, 17.501945408950615), # 101
(17.44526666666667, 15.005606451612904, 17.030070833333333, 20.1501375, 19.497990196078433, 10.611281481481482, 11.58126797385621, 11.428355555555555, 19.98319722222222, 11.239530457516341, 13.140905741626794, 15.334023391812867, 17.467317708333336), # 102
(17.390262050456254, 14.92553632019116, 16.9951637345679, 20.095936171497584, 19.462915758896152, 10.584781618655693, 11.528037106200506, 11.385640329218107, 19.943445576131687, 11.1981303510046, 13.086810101010101, 15.28843621399177, 17.432481674382714), # 103
(17.335169833601718, 14.845563679808842, 16.959964043209876, 20.041507306763286, 19.427623456790123, 10.558472702331962, 11.474805408583187, 11.343774485596708, 19.90378034979424, 11.156630781893005, 13.03303726741095, 15.242682694390297, 17.397483603395063), # 104
(17.280072463768114, 14.765725806451613, 16.924479166666668, 19.98688858695652, 19.392156862745097, 10.532407407407408, 11.421591970121383, 11.302777777777779, 19.86423611111111, 11.115032679738563, 12.979665071770334, 15.196783625730996, 17.362369791666666), # 105
(17.225052388620504, 14.686059976105138, 16.888716512345678, 19.932117693236716, 19.356559549745825, 10.50663840877915, 11.36841587993222, 11.262669958847736, 19.82484742798354, 11.07333697409828, 12.92677134502924, 15.15075980073641, 17.327186535493826), # 106
(17.17019205582394, 14.606603464755079, 16.852683487654325, 19.877232306763286, 19.32087509077705, 10.48121838134431, 11.31529622713283, 11.223470781893006, 19.78564886831276, 11.03154459452917, 12.874433918128654, 15.104632012129088, 17.29198013117284), # 107
(17.11557391304348, 14.5273935483871, 16.8163875, 19.822270108695655, 19.28514705882353, 10.4562, 11.262252100840335, 11.185200000000002, 19.746675000000003, 10.989656470588237, 12.82273062200957, 15.05842105263158, 17.256796875000003), # 108
(17.061280407944178, 14.448467502986858, 16.779835956790127, 19.767268780193234, 19.249419026870008, 10.431635939643346, 11.209302590171871, 11.147877366255145, 19.707960390946504, 10.947673531832486, 12.771739287612972, 15.012147714966428, 17.221683063271605), # 109
(17.007393988191087, 14.369862604540026, 16.743036265432103, 19.71226600241546, 19.213734567901238, 10.407578875171467, 11.15646678424456, 11.111522633744855, 19.669539609053498, 10.90559670781893, 12.72153774587985, 14.965832791856185, 17.18668499228395), # 110
(16.953997101449275, 14.29161612903226, 16.705995833333336, 19.65729945652174, 19.178137254901962, 10.384081481481482, 11.103763772175537, 11.076155555555555, 19.631447222222224, 10.863426928104575, 12.672203827751195, 14.919497076023394, 17.151848958333336), # 111
(16.90117219538379, 14.213765352449222, 16.66872206790124, 19.602406823671497, 19.142670660856936, 10.361196433470509, 11.051212643081925, 11.041795884773663, 19.593717798353907, 10.821165122246429, 12.623815364167996, 14.873161360190599, 17.11722125771605), # 112
(16.84890760266548, 14.136477513814715, 16.631312090853726, 19.547700988485673, 19.10731622431267, 10.338965584586125, 10.998946734582185, 11.00853462380509, 19.556483060265517, 10.778948525902914, 12.57646303107516, 14.826947285707972, 17.0827990215178), # 113
(16.796665616220118, 14.060514930345965, 16.594282215038913, 19.493620958299207, 19.071708038219388, 10.317338295353823, 10.947632775139043, 10.976780267109216, 19.52031426428351, 10.73756730224301, 12.530239806803754, 14.781441909803354, 17.048295745488062), # 114
(16.744292825407193, 13.985904957629483, 16.55765447887317, 19.440152109327204, 19.035733820199482, 10.296258322497776, 10.89730737034481, 10.946524777701677, 19.485224961603823, 10.697085590378538, 12.485078120568769, 14.736667648605932, 17.013611936988678), # 115
(16.691723771827743, 13.912538906325063, 16.521357941970972, 19.38719907047953, 18.999339347490803, 10.275675979116777, 10.847888671550209, 10.917684563218188, 19.451126410610094, 10.657428045209185, 12.440890676288666, 14.692541755477222, 16.978693067560602), # 116
(16.63889299708279, 13.840308087092497, 16.485321663946774, 19.33466647066604, 18.9624703973312, 10.255541578309604, 10.799294830105955, 10.890176031294454, 19.417929869685967, 10.618519321634633, 12.39759017788191, 14.64898148377875, 16.943484608744804), # 117
(16.58573504277338, 13.769103810591583, 16.44947470441506, 19.2824589387966, 18.925072746958516, 10.235805433175049, 10.751443997362767, 10.863915589566174, 19.385546597215082, 10.580284074554568, 12.355089329266963, 14.60590408687203, 16.907932032082243), # 118
(16.532184450500534, 13.698817387482112, 16.413746122990304, 19.23048110378107, 18.887092173610597, 10.2164178568119, 10.70425432467136, 10.838819645669062, 19.353887851581078, 10.54264695886867, 12.31330083436229, 14.563226818118581, 16.87198080911388), # 119
(16.47817576186529, 13.629340128423884, 16.37806497928697, 19.17863759452931, 18.848474454525295, 10.197329162318939, 10.657643963382455, 10.814804607238818, 19.322864891167605, 10.50553262947663, 12.272137397086349, 14.520866930879935, 16.835576411380675), # 120
(16.423643518468683, 13.560563344076693, 16.342360332919537, 19.12683303995118, 18.809165366940455, 10.178489662794956, 10.611531064846766, 10.791786881911152, 19.2923889743583, 10.468865741278133, 12.23151172135761, 14.4787416785176, 16.79866431042359), # 121
(16.36852226191174, 13.49237834510033, 16.30656124350248, 19.07497206895654, 18.76911068809392, 10.159849671338735, 10.565833780415012, 10.769682877321769, 19.2623713595368, 10.43257094917286, 12.191336511094532, 14.436768314393102, 16.761189977783587), # 122
(16.312746533795494, 13.424676442154594, 16.270596770650265, 19.02295931045525, 18.728256195223544, 10.141359501049065, 10.52047026143791, 10.74840900110637, 19.232723305086758, 10.396572908060497, 12.151524470215579, 14.394864091867959, 16.72309888500163), # 123
(16.256250875720976, 13.357348945899277, 16.234395973977367, 18.970699393357176, 18.68654766556717, 10.12296946502473, 10.475358659266176, 10.727881660900668, 19.20335606939181, 10.36079627284073, 12.111988302639215, 14.352946264303695, 16.68433650361868), # 124
(16.198969829289226, 13.290287166994178, 16.197887913098263, 18.91809694657217, 18.643930876362642, 10.104629876364521, 10.43041712525053, 10.708017264340365, 19.174180910835588, 10.32516569841324, 12.072640712283903, 14.310932085061827, 16.644848305175692), # 125
(16.14083793610127, 13.22338241609909, 16.16100164762742, 18.8650565990101, 18.60035160484781, 10.086291048167222, 10.385563810741687, 10.688732219061166, 19.145109087801753, 10.289605839677717, 12.033394403068103, 14.268738807503881, 16.604579761213643), # 126
(16.08178973775815, 13.156526003873804, 16.123666237179307, 18.81148297958082, 18.555755628260517, 10.067903293531618, 10.34071686709037, 10.669942932698781, 19.116051858673934, 10.254041351533843, 11.994162078910282, 14.226283684991369, 16.56347634327348), # 127
(16.021759775860883, 13.089609240978122, 16.08581074136841, 18.7572807171942, 18.51008872383862, 10.0494169255565, 10.295794445647289, 10.651565812888913, 19.086920481835772, 10.218396888881303, 11.954856443728904, 14.183483970885819, 16.521483522896165), # 128
(15.960682592010507, 13.022523438071834, 16.047364219809193, 18.702354440760086, 18.46329666881996, 10.03078225734065, 10.250714697763163, 10.633517267267269, 19.057626215670915, 10.182597106619781, 11.915390201442428, 14.140256918548745, 16.478546771622668), # 129
(15.89849272780806, 12.955159905814739, 16.008255732116123, 18.646608779188355, 18.415325240442385, 10.011949601982854, 10.205395774788713, 10.61571370346955, 19.028080318563003, 10.146566659648963, 11.87567605596932, 14.096519781341675, 16.434611560993947), # 130
(15.83512472485457, 12.887409954866628, 15.968414337903685, 18.589948361388856, 18.36612021594374, 9.992869272581904, 10.159755828074656, 10.59807152913147, 18.998194048895677, 10.110230202868534, 11.835626711228041, 14.052189812626125, 16.38962336255096), # 131
(15.770513124751067, 12.8191648958873, 15.927769096786342, 18.532277816271456, 18.315627372561877, 9.973491582236585, 10.113713008971706, 10.580507151888732, 18.967878665052577, 10.073512391178177, 11.795154871137056, 14.007184265763614, 16.343527647834676), # 132
(15.704592469098595, 12.750316039536544, 15.88624906837857, 18.473501772746012, 18.263792487534637, 9.95376684404568, 10.06718546883058, 10.562936979377039, 18.93704542541735, 10.036337879477578, 11.754173239614829, 13.961420394115667, 16.296269888386057), # 133
(15.63729729949817, 12.68075469647416, 15.843783312294848, 18.413524859722386, 18.210561338099865, 9.933645371107978, 10.020091359002002, 10.545277419232098, 18.905605588373632, 9.998631322666423, 11.712594520579822, 13.914815451043799, 16.24779555574605), # 134
(15.568562157550836, 12.610372177359944, 15.800300888149636, 18.352251706110444, 18.15587970149542, 9.913077476522266, 9.972348830836681, 10.527444879089616, 18.873470412305064, 9.960317375644397, 11.670331417950496, 13.867286689909534, 16.198050121455637), # 135
(15.498321584857623, 12.539059792853687, 15.755730855557415, 18.28958694082003, 18.09969335495913, 9.892013473387332, 9.923876035685343, 10.509355766585298, 18.840551155595293, 9.92132069331118, 11.627296635645319, 13.818751364074394, 16.146979057055766), # 136
(15.426510123019561, 12.466708853615184, 15.710002274132659, 18.225435192761026, 18.04194807572886, 9.870403674801956, 9.8745911248987, 10.490926489354854, 18.80675907662796, 9.881565930566463, 11.583402877582751, 13.769126726899895, 16.094527834087398), # 137
(15.353062313637686, 12.393210670304235, 15.66304420348983, 18.159701090843274, 17.982589641042455, 9.848198393864935, 9.824412249827468, 10.472073455033982, 18.772005433786706, 9.840977742309924, 11.538562847681254, 13.718330031747561, 16.040641924091503), # 138
(15.277912698313022, 12.31845655358063, 15.614785703243411, 18.092289263976646, 17.921563828137746, 9.825347943675048, 9.773257561822367, 10.452713071258394, 18.73620148545517, 9.799480783441254, 11.492689249859293, 13.66627853197891, 15.985266798609034), # 139
(15.200995818646616, 12.242337814104165, 15.565155833007877, 18.023104341071, 17.858816414252605, 9.801802637331082, 9.721045212234115, 10.432761745663793, 18.699258490016998, 9.756999708860134, 11.445694788035329, 13.612889480955465, 15.928347929180966), # 140
(15.122246216239494, 12.164745762534638, 15.514083652397689, 17.952050951036195, 17.794293176624855, 9.777512787931828, 9.667693352413432, 10.412135885885887, 18.661087705855824, 9.713459173466253, 11.39749216612783, 13.558080132038745, 15.869830787348244), # 141
(15.041598432692682, 12.08557170953184, 15.461498221027327, 17.879033722782097, 17.727939892492355, 9.752428708576069, 9.613120133711027, 10.39075189956038, 18.621600391355297, 9.66878383215929, 11.347994088055255, 13.50176773859027, 15.80966084465184), # 142
(14.958987009607215, 12.004706965755565, 15.407328598511267, 17.803957285218555, 17.659702339092952, 9.726500712362592, 9.557243707477623, 10.368526194322978, 18.580707804899063, 9.622898339838935, 11.297113257736068, 13.443869553971561, 15.747783572632711), # 143
(14.874346488584132, 11.922042841865615, 15.35150384446397, 17.72672626725544, 17.58952629366449, 9.699679112390184, 9.499982225063938, 10.34537517780939, 18.53832120487076, 9.575727351404868, 11.244762379088732, 13.384302831544138, 15.684144442831826), # 144
(14.787611411224459, 11.837470648521778, 15.29395301849992, 17.64724529780261, 17.51735753344482, 9.671914221757634, 9.441253837820689, 10.321215257655316, 18.494351849654016, 9.527195521756779, 11.190854156031712, 13.322984824669524, 15.618688926790139), # 145
(14.69871631912923, 11.750881696383855, 15.23460518023359, 17.565419005769925, 17.443141835671785, 9.643156353563725, 9.380976697098594, 10.295962841496468, 18.448710997632492, 9.477227505794348, 11.135301292483467, 13.259832786709236, 15.551362496048613), # 146
(14.607595753899481, 11.662167296111635, 15.173389389279437, 17.481152020067245, 17.36682497758323, 9.613355820907245, 9.319068954248365, 10.269534336968547, 18.401309907189823, 9.425747958417263, 11.078016492362465, 13.194763971024798, 15.482110622148213), # 147
(14.51418425713624, 11.571218758364918, 15.11023470525195, 17.394348969604433, 17.28835273641701, 9.582462936886982, 9.255448760620729, 10.241846151707264, 18.352059836709653, 9.372681534525205, 11.018912459587169, 13.127695630977726, 15.410878776629895), # 148
(14.418416370440541, 11.477927393803494, 15.045070187765598, 17.304914483291345, 17.207670889410966, 9.550428014601719, 9.190034267566393, 10.21281469334832, 18.30087204457561, 9.317952889017864, 10.957901898076038, 13.058545019929545, 15.337612431034628), # 149
(14.320226635413416, 11.382184513087163, 14.97782489643485, 17.212753190037848, 17.124725213802947, 9.517201367150248, 9.122743626436081, 10.182356369527422, 18.247657789171353, 9.261486676794918, 10.894897511747537, 12.987229391241772, 15.262257056903364), # 150
(14.219549593655895, 11.283881426875716, 14.908427890874176, 17.117769718753795, 17.0394614868308, 9.48273330763135, 9.05349498858051, 10.150387587880278, 18.19232832888052, 9.20320755275606, 10.829812004520129, 12.91366599827593, 15.184758125777073), # 151
(14.116319786769019, 11.182909445828951, 14.836808230698063, 17.019868698349054, 16.951825485732364, 9.446974149143815, 8.982206505350396, 10.116824756042595, 18.134794922086748, 9.143040171800969, 10.762558080312278, 12.837772094393538, 15.105061109196717), # 152
(14.010471756353809, 11.079159880606662, 14.762894975520963, 16.91895475773348, 16.8617629877455, 9.409874204786428, 8.908796328096455, 10.081584281650072, 18.07496882717368, 9.080909188829333, 10.693048443042448, 12.759464932956115, 15.02311147870325), # 153
(13.901940044011312, 10.972524041868644, 14.686617184957365, 16.81493252581694, 16.769219770108045, 9.371383787657978, 8.83318260816941, 10.044582572338422, 18.01276130252496, 9.016739258740834, 10.6211957966291, 12.678661767325185, 14.938854705837642), # 154
(13.790659191342543, 10.86289324027469, 14.607903918621735, 16.707706631509282, 16.674141610057855, 9.331453210857248, 8.75528349691997, 10.005736035743345, 17.948083606524232, 8.950455036435159, 10.5469128449907, 12.595279850862267, 14.852236262140847), # 155
(13.676563739948545, 10.750158786484597, 14.526684236128547, 16.597181703720377, 16.576474284832766, 9.29003278748303, 8.67501714569886, 9.964961079500554, 17.88084699755513, 8.88198117681199, 10.470112292045709, 12.50923643692888, 14.763201619153833), # 156
(13.559588231430352, 10.634211991158162, 14.442887197092272, 16.483262371360087, 16.476163571670632, 9.247072830634105, 8.592301705856794, 9.922174111245749, 17.8109627340013, 8.811242334771014, 10.39070684171259, 12.420448778886547, 14.671696248417557), # 157
(13.43642570352943, 10.512815617390064, 14.352465517024239, 16.36158524697224, 16.368625990567796, 9.199844057370798, 8.505192097670143, 9.87443451422887, 17.732991764878374, 8.73605864932406, 10.306072354570096, 12.32567921554981, 14.573674546947622), # 158
(13.288116180561124, 10.37351757527906, 14.232128073125379, 16.207158885819215, 16.22734435760693, 9.132641366412786, 8.40278297409429, 9.804984358975888, 17.61556907019986, 8.644105789377742, 10.20135048411419, 12.206452542629595, 14.445769764456351), # 159
(13.112769770827757, 10.215174111373285, 14.0794577243206, 16.017439518735948, 16.04955623642423, 9.043814332885832, 8.284038747090811, 9.712078541149223, 17.455365409011574, 8.534170173353209, 10.075067115497172, 12.060903507998123, 14.285557096008445), # 160
(12.911799698254727, 10.038817562544844, 13.896084549438555, 15.79423050676211, 15.837107623707803, 8.934439034826566, 8.149826602812377, 9.596880959597605, 17.254493580598233, 8.407184747707687, 9.928334978279473, 11.890381444033627, 14.094673280674375), # 161
(12.686619186767443, 9.84548026566583, 13.683638627307893, 15.539335210937388, 15.591844516145768, 8.80559155027162, 8.001013727411657, 9.460555513169764, 17.015066384244545, 8.264082458898416, 9.762266802021516, 11.696235683114327, 13.874755057524599), # 162
(12.438641460291295, 9.636194557608343, 13.443750036757264, 15.254556992301481, 15.315612910426239, 8.65834795725763, 7.838467307041322, 9.304266100714425, 16.73919661923523, 8.105796253382625, 9.577975316283736, 11.479815557618458, 13.627439165629584), # 163
(12.16927974275169, 9.411992775244478, 13.178048856615318, 14.941699211894072, 15.01025880323734, 8.493784333821234, 7.663054527854039, 9.129176621080324, 16.428997084855002, 7.933259077617543, 9.376573250626553, 11.242470399924246, 13.35436234405979), # 164
(11.879947258074031, 9.173907255446338, 12.888165165710705, 14.602565230754854, 14.677628191267182, 8.312976757999055, 7.475642576002479, 8.936450973116184, 16.086580580388564, 7.747403878060404, 9.1591733346104, 10.985549542409915, 13.057161331885686), # 165
(11.572057230183715, 8.922970335086019, 12.57572904287207, 14.238958409923503, 14.319567071203886, 8.117001307827735, 7.277098637639315, 8.727253055670738, 15.714059905120632, 7.549163601168441, 8.926888297795703, 10.710402317453703, 12.737472868177733), # 166
(11.24702288300614, 8.660214351035616, 12.242370566928068, 13.852682110439718, 13.937921439735565, 7.906934061343905, 7.0682898989172145, 8.502746767592717, 15.31354785833592, 7.339471193398886, 8.680830869742888, 10.418378057433825, 12.396933692006392), # 167
(10.906257440466712, 8.386671640167231, 11.889719816707347, 13.445539693343184, 13.534537293550335, 7.683851096584198, 6.850083545988848, 8.264096007730847, 14.887157239319139, 7.11925960120897, 8.422113780012385, 10.11082609472852, 12.037180542442131), # 168
(10.551174126490828, 8.103374539352963, 11.519406871038555, 13.019334519673588, 13.111260629336316, 7.4488284915852505, 6.623346765006885, 8.012464674933861, 14.437000847355009, 6.889461771055926, 8.151849758164623, 9.78909576171601, 11.659850158555415), # 169
(10.18318616500389, 7.811355385464907, 11.133061808750343, 12.575869950470615, 12.66993744378162, 7.2029423243836925, 6.388946742123995, 7.749016668050485, 13.96519148172823, 6.6510106493969845, 7.871151533760029, 9.454536390774527, 11.2665792794167), # 170
(9.8037067799313, 7.511646515375161, 10.73231470867136, 12.116949346773964, 12.21241373357437, 6.947268673016157, 6.147750663492849, 7.47491588592945, 13.47384194172352, 6.404839182689379, 7.581131836359027, 9.108497314282296, 10.859004644096458), # 171
(9.414149195198457, 7.205280265955825, 10.318795649630257, 11.644376069623315, 11.740535495402677, 6.682883615519281, 5.900625715266118, 7.191326227419487, 12.965065026625595, 6.151880317390344, 7.282903395522049, 8.752327864617548, 10.438762991665145), # 172
(9.015926634730764, 6.893288974078996, 9.894134710455681, 11.159953480058356, 11.256148725954663, 6.410863229929695, 5.64843908359647, 6.899411591369322, 12.440973535719161, 5.893066999957107, 6.97757894080952, 8.387377374158506, 10.007491061193234), # 173
(8.610452322453618, 6.576704976616772, 9.459961969976282, 10.665484939118773, 10.76109942191844, 6.132283594284034, 5.3920579546365754, 6.600335876627689, 11.903680268288936, 5.629332176846904, 6.66627120178187, 8.014995175283403, 9.566825591751181), # 174
(8.19913948229242, 6.256560610441251, 9.017907507020714, 10.162773807844262, 10.257233579982124, 5.848220786618931, 5.132349514539104, 6.295262982043313, 11.35529802361963, 5.361608794516964, 6.3500929079995245, 7.636530600370466, 9.118403322409455), # 175
(7.783401338172574, 5.933888212424531, 8.569601400417621, 9.653623447274505, 9.746397196833835, 5.55975088497102, 4.870180949456727, 5.985356806464928, 10.797939600995955, 5.090829799424521, 6.0301567890229135, 7.253332981797922, 8.663860992238513), # 176
(7.364651114019479, 5.6097201194387125, 8.116673728995655, 9.13983721844919, 9.230436269161691, 5.267949967376934, 4.606419445542112, 5.671781248741259, 10.233717799702626, 4.817928138026804, 5.7075755744124645, 6.866751651944002, 8.204835340308824), # 177
(6.944302033758534, 5.285088668355891, 7.660754571583465, 8.623218482408008, 8.711196793653805, 4.973894111873309, 4.341932188947932, 5.355700207721038, 9.664745419024355, 4.54383675678105, 5.383461993728603, 6.478135943186929, 7.742963105690853), # 178
(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), # 179
)
passenger_arriving_acc = (
(7, 16, 8, 8, 4, 5, 3, 7, 1, 1, 2, 3, 0, 10, 14, 8, 7, 8, 8, 3, 1, 7, 2, 5, 0, 0), # 0
(20, 25, 15, 16, 12, 7, 3, 9, 4, 3, 4, 5, 0, 20, 21, 15, 9, 15, 11, 9, 3, 8, 4, 6, 0, 0), # 1
(33, 34, 23, 22, 14, 9, 6, 12, 7, 4, 4, 6, 0, 27, 28, 28, 12, 26, 14, 13, 6, 13, 6, 9, 1, 0), # 2
(50, 45, 32, 36, 19, 12, 8, 16, 11, 7, 6, 7, 0, 36, 34, 36, 20, 39, 22, 15, 8, 18, 9, 11, 3, 0), # 3
(64, 57, 42, 45, 29, 16, 15, 19, 17, 10, 7, 9, 0, 48, 44, 39, 27, 44, 30, 25, 10, 18, 17, 12, 6, 0), # 4
(77, 67, 48, 54, 37, 19, 19, 22, 21, 10, 8, 9, 0, 56, 57, 50, 32, 56, 37, 29, 12, 22, 22, 12, 7, 0), # 5
(87, 81, 57, 66, 43, 23, 24, 29, 23, 11, 10, 9, 0, 69, 67, 60, 41, 68, 42, 30, 15, 28, 26, 13, 9, 0), # 6
(100, 94, 69, 76, 48, 30, 30, 32, 30, 15, 13, 9, 0, 90, 83, 64, 53, 80, 48, 34, 19, 32, 28, 14, 9, 0), # 7
(116, 115, 78, 91, 59, 38, 33, 34, 35, 17, 14, 12, 0, 108, 99, 70, 64, 88, 59, 38, 22, 35, 34, 17, 9, 0), # 8
(128, 124, 90, 105, 72, 43, 40, 44, 41, 22, 18, 15, 0, 116, 114, 82, 70, 102, 67, 43, 26, 37, 41, 17, 10, 0), # 9
(144, 139, 99, 117, 84, 47, 48, 45, 45, 23, 20, 15, 0, 132, 127, 92, 81, 110, 73, 49, 28, 45, 44, 19, 10, 0), # 10
(165, 158, 111, 135, 97, 58, 51, 49, 54, 24, 23, 15, 0, 148, 145, 100, 89, 123, 84, 56, 31, 48, 50, 20, 12, 0), # 11
(177, 178, 122, 149, 110, 61, 56, 56, 60, 28, 23, 15, 0, 163, 152, 110, 96, 131, 93, 58, 33, 54, 55, 24, 12, 0), # 12
(190, 197, 135, 159, 119, 67, 65, 65, 75, 32, 24, 17, 0, 178, 175, 115, 102, 141, 107, 66, 36, 59, 63, 25, 13, 0), # 13
(208, 207, 144, 175, 135, 75, 72, 73, 82, 35, 24, 19, 0, 187, 187, 126, 108, 156, 114, 73, 42, 69, 66, 25, 15, 0), # 14
(227, 223, 155, 191, 148, 83, 82, 79, 90, 38, 29, 22, 0, 204, 205, 134, 124, 168, 122, 77, 45, 75, 74, 27, 16, 0), # 15
(241, 234, 166, 208, 158, 93, 88, 83, 101, 42, 29, 24, 0, 220, 214, 151, 131, 178, 127, 84, 51, 82, 81, 27, 18, 0), # 16
(258, 250, 177, 224, 173, 97, 94, 84, 105, 42, 29, 27, 0, 240, 232, 165, 142, 195, 140, 91, 55, 91, 86, 27, 19, 0), # 17
(273, 273, 194, 240, 182, 106, 98, 88, 114, 43, 30, 27, 0, 258, 244, 179, 150, 214, 148, 98, 61, 97, 89, 30, 21, 0), # 18
(295, 287, 209, 248, 194, 115, 105, 97, 125, 47, 32, 27, 0, 274, 261, 188, 161, 226, 154, 101, 66, 107, 94, 33, 24, 0), # 19
(311, 305, 226, 264, 210, 126, 109, 104, 135, 53, 35, 27, 0, 286, 270, 198, 171, 245, 161, 109, 70, 113, 101, 36, 25, 0), # 20
(326, 327, 241, 284, 225, 130, 118, 107, 142, 54, 37, 31, 0, 309, 282, 206, 189, 259, 169, 116, 74, 123, 106, 37, 27, 0), # 21
(346, 350, 263, 294, 234, 134, 125, 116, 148, 59, 40, 33, 0, 329, 297, 217, 199, 275, 175, 119, 75, 130, 113, 37, 30, 0), # 22
(365, 376, 280, 315, 245, 138, 128, 121, 159, 64, 45, 35, 0, 351, 318, 229, 204, 284, 188, 127, 79, 138, 114, 39, 32, 0), # 23
(386, 400, 293, 327, 254, 146, 136, 130, 167, 66, 47, 35, 0, 363, 330, 240, 216, 300, 194, 134, 81, 142, 120, 43, 33, 0), # 24
(400, 417, 308, 344, 273, 151, 145, 138, 172, 70, 53, 38, 0, 381, 343, 244, 223, 312, 211, 140, 85, 148, 127, 46, 35, 0), # 25
(422, 438, 327, 362, 284, 158, 153, 149, 177, 72, 54, 41, 0, 395, 361, 259, 233, 324, 216, 143, 90, 152, 130, 47, 37, 0), # 26
(438, 457, 340, 380, 294, 162, 160, 155, 185, 75, 56, 44, 0, 410, 372, 272, 245, 336, 228, 151, 96, 156, 132, 51, 38, 0), # 27
(457, 480, 352, 403, 305, 171, 170, 159, 196, 77, 56, 46, 0, 429, 384, 284, 260, 355, 241, 157, 96, 164, 135, 54, 40, 0), # 28
(475, 490, 365, 420, 315, 176, 173, 167, 204, 85, 62, 49, 0, 442, 403, 296, 266, 371, 252, 164, 102, 173, 141, 59, 41, 0), # 29
(492, 510, 379, 429, 323, 182, 181, 174, 212, 87, 63, 53, 0, 467, 421, 310, 274, 388, 260, 170, 109, 181, 151, 59, 45, 0), # 30
(514, 525, 391, 450, 327, 189, 195, 184, 217, 89, 63, 54, 0, 485, 435, 325, 282, 399, 268, 177, 114, 183, 160, 63, 45, 0), # 31
(533, 537, 403, 464, 340, 194, 205, 191, 221, 94, 65, 54, 0, 508, 450, 337, 288, 415, 284, 180, 119, 190, 167, 69, 46, 0), # 32
(556, 565, 417, 482, 353, 202, 210, 198, 232, 97, 65, 56, 0, 528, 468, 350, 305, 430, 294, 186, 126, 195, 171, 70, 49, 0), # 33
(579, 587, 427, 498, 366, 212, 213, 206, 235, 100, 68, 56, 0, 541, 482, 363, 314, 443, 304, 194, 132, 201, 177, 74, 53, 0), # 34
(604, 605, 445, 519, 376, 222, 223, 211, 241, 101, 69, 59, 0, 555, 499, 376, 326, 457, 313, 200, 139, 207, 188, 76, 53, 0), # 35
(620, 631, 470, 539, 393, 227, 227, 220, 247, 107, 71, 61, 0, 568, 510, 394, 338, 469, 327, 207, 144, 213, 190, 78, 56, 0), # 36
(642, 648, 489, 559, 406, 239, 234, 223, 255, 111, 74, 61, 0, 588, 524, 405, 354, 489, 339, 212, 151, 219, 199, 80, 61, 0), # 37
(660, 658, 504, 581, 422, 245, 239, 230, 265, 116, 75, 65, 0, 618, 544, 418, 360, 509, 344, 219, 155, 223, 203, 83, 62, 0), # 38
(680, 685, 519, 599, 435, 254, 243, 240, 273, 121, 77, 66, 0, 634, 559, 429, 370, 524, 357, 230, 157, 226, 207, 84, 62, 0), # 39
(700, 697, 531, 607, 441, 266, 251, 246, 280, 126, 81, 66, 0, 654, 575, 441, 382, 539, 373, 235, 165, 230, 214, 91, 63, 0), # 40
(708, 713, 547, 630, 457, 277, 256, 254, 290, 130, 84, 68, 0, 669, 593, 455, 391, 556, 382, 244, 169, 236, 217, 92, 64, 0), # 41
(725, 728, 566, 640, 473, 286, 266, 260, 296, 137, 85, 68, 0, 687, 607, 463, 399, 568, 389, 249, 170, 242, 221, 96, 65, 0), # 42
(748, 747, 580, 659, 490, 296, 273, 264, 303, 141, 87, 72, 0, 711, 621, 478, 409, 583, 398, 253, 176, 246, 226, 98, 65, 0), # 43
(764, 767, 596, 676, 501, 307, 283, 272, 311, 144, 88, 73, 0, 736, 637, 493, 423, 595, 408, 256, 178, 251, 230, 99, 66, 0), # 44
(781, 784, 613, 692, 514, 314, 288, 279, 316, 146, 90, 76, 0, 756, 654, 503, 434, 609, 419, 258, 182, 254, 234, 102, 67, 0), # 45
(800, 798, 629, 715, 523, 323, 294, 284, 322, 148, 91, 78, 0, 773, 667, 514, 444, 630, 428, 270, 185, 264, 236, 109, 73, 0), # 46
(820, 815, 646, 733, 538, 329, 301, 292, 330, 151, 93, 79, 0, 786, 682, 533, 451, 649, 438, 284, 188, 268, 239, 114, 74, 0), # 47
(838, 839, 660, 745, 546, 337, 309, 295, 341, 157, 96, 80, 0, 804, 700, 544, 463, 659, 448, 295, 193, 276, 244, 116, 76, 0), # 48
(856, 857, 674, 762, 563, 341, 318, 301, 348, 163, 96, 81, 0, 825, 719, 550, 475, 674, 455, 303, 195, 279, 254, 122, 80, 0), # 49
(878, 880, 685, 777, 581, 349, 323, 304, 354, 167, 97, 81, 0, 839, 738, 558, 485, 687, 461, 308, 203, 286, 260, 125, 81, 0), # 50
(903, 894, 691, 802, 595, 354, 329, 311, 359, 167, 100, 84, 0, 851, 756, 570, 493, 703, 472, 315, 211, 292, 268, 130, 82, 0), # 51
(919, 912, 703, 823, 610, 358, 336, 314, 367, 171, 105, 86, 0, 867, 774, 582, 503, 720, 479, 326, 213, 297, 269, 135, 82, 0), # 52
(933, 924, 720, 840, 621, 364, 343, 321, 375, 173, 108, 90, 0, 882, 793, 600, 511, 735, 485, 331, 218, 309, 273, 139, 83, 0), # 53
(944, 939, 731, 853, 631, 373, 349, 325, 381, 177, 108, 91, 0, 907, 812, 611, 523, 751, 494, 333, 224, 320, 281, 141, 86, 0), # 54
(958, 964, 742, 877, 650, 383, 359, 330, 389, 178, 111, 92, 0, 926, 839, 620, 529, 763, 505, 347, 228, 327, 288, 144, 89, 0), # 55
(975, 977, 764, 895, 660, 386, 364, 335, 395, 182, 113, 92, 0, 948, 859, 634, 542, 778, 516, 359, 231, 333, 293, 146, 90, 0), # 56
(994, 997, 776, 911, 675, 389, 369, 342, 399, 185, 115, 92, 0, 967, 875, 646, 551, 795, 522, 362, 236, 339, 295, 149, 92, 0), # 57
(1021, 1013, 790, 928, 682, 392, 373, 350, 406, 188, 118, 92, 0, 980, 893, 667, 559, 806, 526, 371, 238, 345, 300, 154, 92, 0), # 58
(1038, 1031, 802, 950, 692, 399, 379, 359, 411, 191, 121, 93, 0, 996, 907, 679, 576, 815, 537, 376, 242, 351, 305, 157, 97, 0), # 59
(1052, 1041, 816, 969, 696, 405, 386, 363, 421, 197, 122, 95, 0, 1015, 928, 693, 584, 828, 540, 383, 248, 362, 316, 163, 98, 0), # 60
(1071, 1054, 835, 982, 710, 416, 396, 366, 426, 200, 123, 95, 0, 1034, 944, 712, 593, 846, 545, 388, 249, 372, 321, 166, 99, 0), # 61
(1089, 1072, 846, 1001, 723, 424, 402, 372, 436, 204, 127, 98, 0, 1056, 957, 724, 600, 858, 553, 396, 252, 375, 324, 169, 99, 0), # 62
(1106, 1097, 861, 1023, 740, 431, 408, 378, 446, 208, 128, 100, 0, 1081, 974, 735, 607, 870, 559, 400, 256, 384, 330, 170, 99, 0), # 63
(1125, 1112, 878, 1033, 754, 435, 413, 383, 453, 214, 129, 101, 0, 1102, 989, 747, 614, 894, 566, 407, 261, 393, 334, 174, 100, 0), # 64
(1139, 1126, 895, 1053, 763, 439, 420, 386, 463, 218, 130, 102, 0, 1112, 1002, 757, 626, 904, 578, 418, 266, 399, 338, 185, 100, 0), # 65
(1159, 1149, 911, 1066, 777, 447, 430, 393, 468, 221, 131, 104, 0, 1129, 1019, 767, 637, 919, 582, 426, 270, 406, 341, 186, 101, 0), # 66
(1182, 1168, 925, 1082, 787, 453, 437, 396, 471, 225, 131, 105, 0, 1153, 1030, 774, 647, 935, 591, 434, 277, 409, 344, 190, 103, 0), # 67
(1196, 1183, 933, 1104, 796, 464, 442, 399, 477, 228, 133, 105, 0, 1176, 1045, 785, 652, 951, 595, 437, 283, 413, 346, 191, 106, 0), # 68
(1216, 1204, 950, 1117, 808, 471, 449, 407, 480, 230, 135, 106, 0, 1187, 1057, 801, 670, 968, 603, 444, 290, 418, 350, 195, 106, 0), # 69
(1228, 1230, 964, 1139, 826, 478, 456, 413, 485, 232, 137, 109, 0, 1209, 1070, 816, 674, 981, 615, 450, 299, 425, 358, 197, 108, 0), # 70
(1243, 1252, 984, 1149, 849, 483, 461, 416, 491, 235, 141, 111, 0, 1238, 1083, 827, 682, 994, 624, 457, 303, 434, 366, 197, 110, 0), # 71
(1252, 1275, 1007, 1161, 864, 492, 469, 421, 493, 240, 143, 112, 0, 1252, 1093, 841, 688, 1002, 631, 465, 306, 441, 372, 201, 111, 0), # 72
(1277, 1287, 1025, 1180, 879, 499, 481, 425, 502, 241, 145, 112, 0, 1268, 1106, 854, 696, 1017, 641, 475, 310, 449, 379, 204, 113, 0), # 73
(1293, 1304, 1041, 1192, 893, 506, 489, 428, 505, 242, 149, 114, 0, 1285, 1129, 861, 700, 1036, 655, 482, 317, 453, 385, 208, 115, 0), # 74
(1312, 1321, 1057, 1203, 912, 510, 493, 432, 511, 245, 149, 115, 0, 1309, 1147, 877, 709, 1043, 664, 495, 320, 461, 390, 210, 116, 0), # 75
(1331, 1338, 1068, 1224, 924, 513, 502, 437, 517, 248, 153, 118, 0, 1323, 1161, 888, 716, 1053, 674, 500, 328, 466, 396, 211, 116, 0), # 76
(1350, 1355, 1092, 1242, 937, 528, 513, 444, 519, 249, 154, 118, 0, 1335, 1170, 903, 721, 1070, 680, 503, 330, 475, 405, 211, 119, 0), # 77
(1370, 1370, 1104, 1263, 948, 536, 519, 447, 522, 251, 155, 119, 0, 1358, 1185, 914, 729, 1078, 685, 511, 334, 484, 409, 218, 120, 0), # 78
(1389, 1383, 1122, 1277, 963, 539, 524, 448, 530, 253, 158, 119, 0, 1373, 1196, 923, 737, 1094, 693, 515, 345, 494, 418, 221, 126, 0), # 79
(1409, 1395, 1136, 1284, 978, 544, 527, 455, 536, 259, 160, 122, 0, 1391, 1217, 935, 746, 1111, 697, 526, 349, 502, 423, 224, 126, 0), # 80
(1422, 1405, 1147, 1306, 989, 553, 538, 460, 543, 262, 165, 123, 0, 1411, 1234, 947, 754, 1116, 707, 531, 353, 512, 428, 224, 127, 0), # 81
(1440, 1418, 1165, 1325, 1001, 558, 548, 467, 550, 265, 168, 124, 0, 1428, 1251, 954, 758, 1134, 714, 539, 359, 521, 432, 230, 130, 0), # 82
(1450, 1431, 1182, 1344, 1018, 560, 553, 475, 554, 268, 172, 125, 0, 1441, 1265, 964, 773, 1150, 719, 544, 363, 529, 435, 232, 132, 0), # 83
(1474, 1443, 1193, 1358, 1035, 565, 561, 480, 557, 272, 172, 127, 0, 1464, 1279, 976, 785, 1168, 722, 550, 369, 540, 438, 234, 132, 0), # 84
(1497, 1458, 1209, 1365, 1046, 575, 564, 489, 564, 274, 176, 130, 0, 1479, 1287, 985, 793, 1177, 733, 556, 374, 546, 441, 237, 135, 0), # 85
(1508, 1474, 1224, 1379, 1060, 579, 570, 492, 576, 275, 177, 134, 0, 1497, 1300, 997, 805, 1184, 744, 561, 380, 553, 444, 240, 136, 0), # 86
(1529, 1492, 1242, 1394, 1072, 586, 573, 496, 584, 279, 179, 135, 0, 1521, 1316, 1004, 813, 1200, 748, 565, 385, 556, 447, 244, 139, 0), # 87
(1545, 1506, 1253, 1412, 1085, 591, 581, 508, 588, 281, 179, 135, 0, 1541, 1334, 1019, 822, 1213, 751, 576, 395, 565, 450, 246, 142, 0), # 88
(1567, 1520, 1272, 1424, 1100, 602, 587, 511, 597, 285, 184, 135, 0, 1562, 1357, 1032, 826, 1227, 753, 579, 401, 576, 456, 249, 142, 0), # 89
(1582, 1533, 1287, 1437, 1116, 611, 591, 517, 605, 287, 187, 135, 0, 1573, 1371, 1038, 834, 1241, 761, 587, 407, 585, 458, 252, 143, 0), # 90
(1596, 1550, 1302, 1460, 1131, 616, 596, 520, 613, 289, 189, 137, 0, 1600, 1393, 1051, 837, 1259, 767, 591, 412, 590, 462, 253, 144, 0), # 91
(1606, 1563, 1315, 1479, 1151, 619, 600, 521, 624, 292, 193, 141, 0, 1621, 1413, 1064, 845, 1266, 776, 593, 420, 601, 465, 255, 144, 0), # 92
(1630, 1569, 1323, 1496, 1162, 623, 602, 527, 628, 293, 195, 141, 0, 1638, 1431, 1076, 854, 1278, 779, 598, 426, 607, 470, 257, 145, 0), # 93
(1651, 1591, 1336, 1517, 1181, 633, 609, 531, 637, 296, 196, 141, 0, 1653, 1444, 1079, 864, 1291, 784, 609, 430, 617, 478, 259, 146, 0), # 94
(1666, 1601, 1352, 1536, 1191, 637, 616, 534, 648, 297, 197, 141, 0, 1675, 1467, 1084, 874, 1302, 787, 621, 434, 625, 479, 263, 148, 0), # 95
(1688, 1611, 1363, 1550, 1200, 643, 624, 544, 657, 298, 201, 142, 0, 1698, 1485, 1094, 885, 1314, 794, 627, 438, 632, 482, 268, 148, 0), # 96
(1708, 1623, 1377, 1561, 1216, 650, 628, 550, 667, 300, 202, 143, 0, 1718, 1494, 1105, 888, 1332, 801, 632, 440, 640, 487, 270, 148, 0), # 97
(1733, 1641, 1394, 1575, 1226, 661, 635, 556, 676, 304, 207, 145, 0, 1729, 1509, 1113, 902, 1349, 805, 638, 444, 644, 492, 272, 149, 0), # 98
(1752, 1661, 1408, 1589, 1243, 668, 644, 562, 681, 307, 208, 145, 0, 1749, 1519, 1118, 915, 1366, 812, 645, 448, 652, 498, 273, 150, 0), # 99
(1775, 1678, 1425, 1603, 1256, 674, 651, 566, 690, 310, 212, 146, 0, 1768, 1533, 1129, 925, 1378, 823, 653, 449, 660, 503, 276, 153, 0), # 100
(1799, 1686, 1436, 1613, 1269, 682, 652, 570, 695, 312, 217, 149, 0, 1786, 1547, 1136, 932, 1400, 832, 655, 456, 666, 504, 280, 153, 0), # 101
(1816, 1701, 1454, 1624, 1281, 694, 655, 575, 705, 315, 218, 149, 0, 1799, 1554, 1143, 942, 1411, 837, 661, 461, 674, 514, 285, 154, 0), # 102
(1833, 1720, 1471, 1638, 1296, 700, 661, 578, 710, 320, 220, 151, 0, 1823, 1565, 1153, 953, 1423, 845, 672, 464, 682, 515, 289, 155, 0), # 103
(1849, 1735, 1477, 1654, 1308, 706, 666, 586, 720, 322, 222, 153, 0, 1845, 1584, 1166, 967, 1434, 855, 679, 467, 687, 517, 297, 158, 0), # 104
(1878, 1751, 1487, 1662, 1320, 708, 673, 589, 732, 322, 224, 158, 0, 1860, 1603, 1176, 974, 1450, 861, 682, 473, 692, 519, 302, 159, 0), # 105
(1895, 1764, 1502, 1674, 1329, 717, 680, 592, 738, 324, 225, 160, 0, 1879, 1612, 1186, 980, 1460, 869, 687, 477, 697, 525, 303, 160, 0), # 106
(1907, 1773, 1509, 1686, 1346, 719, 682, 595, 745, 327, 228, 161, 0, 1894, 1627, 1200, 984, 1471, 873, 693, 484, 704, 527, 304, 163, 0), # 107
(1933, 1790, 1517, 1699, 1360, 724, 690, 600, 748, 331, 231, 163, 0, 1914, 1645, 1217, 994, 1485, 883, 693, 487, 713, 532, 305, 164, 0), # 108
(1957, 1801, 1530, 1717, 1376, 727, 695, 604, 756, 331, 232, 165, 0, 1938, 1658, 1230, 1004, 1501, 890, 699, 490, 721, 536, 308, 164, 0), # 109
(1968, 1811, 1542, 1737, 1385, 729, 700, 610, 762, 332, 232, 167, 0, 1950, 1674, 1234, 1009, 1518, 894, 703, 497, 728, 544, 314, 164, 0), # 110
(1983, 1821, 1563, 1746, 1394, 736, 706, 613, 769, 333, 234, 168, 0, 1971, 1686, 1251, 1014, 1524, 902, 708, 500, 738, 549, 317, 164, 0), # 111
(1991, 1835, 1578, 1760, 1402, 738, 711, 619, 774, 335, 236, 169, 0, 1982, 1701, 1261, 1020, 1537, 909, 713, 502, 745, 560, 317, 164, 0), # 112
(2005, 1847, 1591, 1783, 1413, 743, 716, 622, 780, 340, 238, 170, 0, 2001, 1713, 1274, 1027, 1547, 914, 716, 507, 749, 572, 318, 164, 0), # 113
(2015, 1860, 1604, 1801, 1424, 746, 723, 625, 789, 345, 241, 171, 0, 2015, 1723, 1285, 1034, 1558, 921, 718, 511, 759, 575, 322, 164, 0), # 114
(2032, 1872, 1615, 1823, 1436, 754, 729, 633, 800, 349, 241, 173, 0, 2033, 1737, 1300, 1038, 1569, 921, 725, 514, 769, 582, 327, 164, 0), # 115
(2047, 1887, 1629, 1832, 1452, 759, 731, 637, 810, 352, 243, 174, 0, 2053, 1751, 1306, 1048, 1580, 928, 729, 518, 774, 588, 331, 165, 0), # 116
(2066, 1898, 1641, 1848, 1467, 764, 734, 645, 816, 356, 244, 176, 0, 2069, 1767, 1315, 1055, 1591, 933, 735, 523, 781, 589, 334, 165, 0), # 117
(2085, 1917, 1652, 1860, 1482, 768, 739, 648, 824, 358, 244, 176, 0, 2088, 1784, 1324, 1064, 1608, 943, 739, 524, 787, 595, 336, 168, 0), # 118
(2104, 1927, 1671, 1869, 1497, 774, 747, 652, 832, 362, 246, 178, 0, 2111, 1799, 1334, 1067, 1621, 950, 744, 532, 795, 598, 342, 169, 0), # 119
(2116, 1944, 1680, 1878, 1508, 779, 755, 658, 838, 363, 246, 180, 0, 2123, 1823, 1347, 1074, 1634, 957, 748, 539, 800, 606, 345, 170, 0), # 120
(2130, 1954, 1690, 1893, 1519, 787, 761, 659, 841, 367, 246, 180, 0, 2140, 1834, 1357, 1077, 1647, 961, 759, 545, 803, 613, 346, 173, 0), # 121
(2140, 1969, 1710, 1912, 1531, 795, 764, 660, 846, 368, 246, 181, 0, 2162, 1849, 1369, 1085, 1657, 971, 768, 549, 807, 615, 347, 175, 0), # 122
(2158, 1981, 1720, 1921, 1542, 800, 767, 665, 851, 372, 247, 182, 0, 2173, 1861, 1374, 1090, 1669, 976, 772, 553, 810, 620, 347, 177, 0), # 123
(2175, 1989, 1729, 1932, 1556, 806, 768, 670, 857, 374, 247, 182, 0, 2188, 1876, 1383, 1099, 1686, 981, 777, 558, 818, 623, 348, 178, 0), # 124
(2200, 2005, 1743, 1949, 1571, 810, 768, 677, 862, 376, 249, 184, 0, 2208, 1894, 1391, 1114, 1693, 988, 779, 560, 826, 630, 349, 178, 0), # 125
(2215, 2011, 1760, 1967, 1582, 814, 772, 681, 867, 378, 250, 185, 0, 2217, 1903, 1402, 1123, 1701, 997, 783, 567, 831, 632, 351, 178, 0), # 126
(2233, 2022, 1774, 1975, 1590, 825, 779, 685, 874, 381, 252, 185, 0, 2236, 1920, 1409, 1133, 1711, 1001, 784, 575, 836, 638, 353, 179, 0), # 127
(2252, 2033, 1789, 1992, 1605, 832, 785, 688, 879, 383, 253, 186, 0, 2250, 1937, 1423, 1139, 1724, 1003, 791, 580, 839, 645, 353, 180, 0), # 128
(2271, 2042, 1807, 2008, 1622, 836, 790, 693, 882, 385, 255, 188, 0, 2264, 1953, 1434, 1147, 1733, 1011, 800, 582, 841, 652, 355, 180, 0), # 129
(2285, 2057, 1817, 2026, 1636, 844, 796, 694, 891, 388, 256, 190, 0, 2286, 1965, 1443, 1152, 1752, 1015, 810, 588, 851, 659, 357, 180, 0), # 130
(2302, 2065, 1823, 2038, 1641, 851, 800, 697, 899, 388, 257, 191, 0, 2307, 1977, 1448, 1162, 1762, 1021, 816, 591, 858, 665, 359, 181, 0), # 131
(2318, 2075, 1834, 2050, 1652, 855, 805, 702, 903, 391, 258, 191, 0, 2322, 1983, 1467, 1170, 1775, 1030, 824, 594, 861, 671, 361, 181, 0), # 132
(2330, 2090, 1845, 2066, 1663, 860, 812, 705, 908, 392, 259, 193, 0, 2339, 1994, 1477, 1177, 1782, 1035, 827, 595, 869, 672, 363, 183, 0), # 133
(2347, 2093, 1862, 2077, 1681, 871, 816, 712, 913, 392, 260, 196, 0, 2361, 2007, 1485, 1187, 1796, 1040, 829, 599, 875, 679, 365, 184, 0), # 134
(2353, 2107, 1880, 2081, 1693, 875, 822, 718, 917, 396, 260, 196, 0, 2375, 2016, 1497, 1193, 1811, 1043, 835, 604, 880, 684, 365, 185, 0), # 135
(2360, 2118, 1895, 2092, 1710, 878, 824, 724, 926, 398, 262, 196, 0, 2393, 2024, 1504, 1200, 1825, 1050, 836, 609, 887, 686, 366, 185, 0), # 136
(2377, 2123, 1909, 2111, 1724, 885, 829, 728, 931, 399, 263, 197, 0, 2407, 2038, 1513, 1211, 1843, 1056, 837, 609, 891, 692, 369, 188, 0), # 137
(2386, 2130, 1923, 2124, 1735, 890, 836, 731, 937, 401, 265, 197, 0, 2426, 2049, 1527, 1218, 1857, 1065, 845, 616, 896, 698, 372, 188, 0), # 138
(2395, 2147, 1933, 2137, 1749, 893, 844, 736, 939, 401, 267, 199, 0, 2437, 2059, 1533, 1227, 1869, 1074, 847, 622, 901, 703, 374, 189, 0), # 139
(2410, 2157, 1943, 2153, 1757, 894, 847, 738, 944, 404, 268, 203, 0, 2456, 2078, 1541, 1229, 1878, 1079, 853, 630, 910, 709, 376, 189, 0), # 140
(2424, 2170, 1955, 2164, 1769, 900, 854, 741, 947, 404, 270, 204, 0, 2473, 2089, 1547, 1237, 1894, 1085, 856, 632, 913, 715, 381, 190, 0), # 141
(2441, 2183, 1975, 2176, 1776, 907, 855, 746, 954, 406, 272, 205, 0, 2485, 2099, 1551, 1241, 1899, 1087, 861, 635, 918, 721, 384, 191, 0), # 142
(2462, 2192, 1992, 2190, 1781, 916, 859, 751, 959, 406, 273, 205, 0, 2503, 2112, 1560, 1253, 1914, 1092, 866, 639, 923, 723, 388, 192, 0), # 143
(2479, 2199, 2006, 2202, 1789, 918, 865, 754, 971, 407, 275, 207, 0, 2515, 2122, 1569, 1258, 1928, 1103, 871, 644, 926, 731, 392, 192, 0), # 144
(2497, 2211, 2014, 2214, 1800, 925, 874, 759, 979, 408, 277, 207, 0, 2531, 2135, 1579, 1265, 1941, 1107, 878, 648, 933, 733, 396, 195, 0), # 145
(2510, 2222, 2023, 2229, 1809, 930, 878, 764, 984, 410, 279, 209, 0, 2544, 2147, 1588, 1274, 1952, 1113, 881, 649, 936, 736, 399, 196, 0), # 146
(2523, 2230, 2047, 2239, 1816, 937, 882, 769, 992, 413, 280, 210, 0, 2563, 2158, 1606, 1281, 1967, 1124, 884, 651, 940, 741, 401, 199, 0), # 147
(2541, 2244, 2056, 2252, 1827, 942, 895, 774, 1001, 415, 282, 211, 0, 2577, 2165, 1615, 1287, 1980, 1132, 888, 653, 947, 745, 407, 199, 0), # 148
(2559, 2255, 2067, 2268, 1835, 949, 898, 779, 1003, 417, 285, 212, 0, 2595, 2176, 1625, 1297, 1987, 1140, 893, 658, 957, 750, 411, 199, 0), # 149
(2570, 2266, 2076, 2282, 1848, 956, 901, 784, 1008, 418, 287, 216, 0, 2611, 2191, 1633, 1303, 2000, 1146, 899, 666, 962, 755, 414, 199, 0), # 150
(2587, 2278, 2087, 2287, 1859, 962, 905, 788, 1016, 422, 290, 217, 0, 2626, 2204, 1641, 1308, 2016, 1152, 902, 669, 970, 758, 414, 199, 0), # 151
(2607, 2291, 2103, 2299, 1870, 972, 914, 791, 1024, 426, 290, 218, 0, 2642, 2215, 1655, 1313, 2029, 1157, 907, 674, 973, 763, 416, 199, 0), # 152
(2619, 2297, 2114, 2308, 1877, 977, 916, 796, 1030, 429, 291, 218, 0, 2661, 2223, 1664, 1317, 2038, 1165, 912, 678, 981, 770, 424, 201, 0), # 153
(2635, 2310, 2128, 2322, 1888, 982, 920, 800, 1030, 431, 293, 219, 0, 2679, 2229, 1672, 1330, 2046, 1171, 912, 680, 989, 775, 426, 202, 0), # 154
(2649, 2319, 2141, 2333, 1903, 987, 922, 808, 1039, 436, 295, 220, 0, 2695, 2235, 1679, 1335, 2058, 1175, 914, 683, 999, 776, 429, 202, 0), # 155
(2656, 2330, 2150, 2342, 1911, 995, 926, 814, 1041, 436, 296, 220, 0, 2708, 2248, 1684, 1340, 2066, 1187, 918, 684, 1004, 779, 431, 202, 0), # 156
(2668, 2348, 2162, 2355, 1922, 1003, 929, 818, 1048, 437, 297, 222, 0, 2728, 2263, 1692, 1345, 2074, 1192, 923, 689, 1013, 783, 435, 204, 0), # 157
(2679, 2356, 2177, 2366, 1932, 1008, 934, 822, 1056, 440, 298, 222, 0, 2745, 2270, 1700, 1356, 2079, 1196, 926, 693, 1023, 786, 440, 204, 0), # 158
(2692, 2371, 2189, 2374, 1942, 1014, 939, 828, 1058, 443, 298, 222, 0, 2758, 2282, 1705, 1361, 2093, 1204, 932, 696, 1031, 789, 443, 205, 0), # 159
(2701, 2379, 2197, 2383, 1948, 1020, 945, 833, 1060, 447, 305, 224, 0, 2778, 2296, 1708, 1369, 2099, 1211, 934, 699, 1035, 792, 444, 206, 0), # 160
(2715, 2393, 2210, 2391, 1957, 1023, 947, 836, 1068, 448, 307, 225, 0, 2792, 2312, 1717, 1378, 2108, 1214, 936, 703, 1040, 795, 446, 207, 0), # 161
(2725, 2405, 2225, 2405, 1962, 1028, 950, 840, 1070, 449, 307, 227, 0, 2803, 2330, 1723, 1385, 2117, 1220, 939, 710, 1046, 798, 448, 207, 0), # 162
(2738, 2412, 2235, 2421, 1977, 1036, 954, 843, 1075, 451, 308, 227, 0, 2823, 2340, 1728, 1388, 2124, 1224, 943, 715, 1051, 803, 450, 208, 0), # 163
(2750, 2422, 2251, 2435, 1988, 1041, 954, 849, 1078, 452, 309, 227, 0, 2839, 2351, 1739, 1393, 2136, 1226, 947, 719, 1055, 806, 455, 209, 0), # 164
(2761, 2431, 2259, 2443, 1998, 1043, 957, 850, 1081, 452, 311, 228, 0, 2854, 2363, 1743, 1400, 2148, 1233, 949, 723, 1058, 811, 460, 210, 0), # 165
(2767, 2440, 2266, 2448, 2012, 1046, 959, 853, 1090, 454, 311, 228, 0, 2866, 2370, 1750, 1406, 2159, 1241, 951, 725, 1065, 812, 462, 211, 0), # 166
(2775, 2445, 2274, 2459, 2024, 1050, 964, 856, 1094, 457, 311, 230, 0, 2879, 2379, 1756, 1409, 2169, 1242, 955, 730, 1069, 813, 464, 211, 0), # 167
(2790, 2450, 2288, 2481, 2032, 1055, 965, 860, 1096, 459, 312, 231, 0, 2888, 2397, 1765, 1414, 2187, 1247, 960, 734, 1075, 819, 464, 211, 0), # 168
(2800, 2454, 2294, 2498, 2040, 1058, 967, 865, 1099, 460, 314, 231, 0, 2898, 2406, 1768, 1420, 2199, 1252, 963, 736, 1084, 827, 465, 212, 0), # 169
(2816, 2460, 2299, 2511, 2055, 1064, 972, 869, 1103, 460, 314, 233, 0, 2906, 2412, 1771, 1426, 2206, 1256, 969, 741, 1090, 830, 468, 212, 0), # 170
(2823, 2467, 2311, 2521, 2062, 1069, 974, 872, 1108, 463, 315, 233, 0, 2920, 2421, 1775, 1432, 2218, 1265, 970, 747, 1096, 831, 469, 212, 0), # 171
(2834, 2473, 2318, 2540, 2067, 1072, 979, 874, 1111, 464, 315, 235, 0, 2935, 2431, 1781, 1437, 2225, 1270, 972, 751, 1097, 836, 470, 212, 0), # 172
(2838, 2480, 2322, 2545, 2078, 1076, 980, 877, 1114, 464, 317, 236, 0, 2940, 2443, 1791, 1440, 2233, 1275, 973, 754, 1098, 839, 472, 212, 0), # 173
(2850, 2485, 2327, 2556, 2085, 1078, 983, 879, 1117, 467, 317, 236, 0, 2945, 2450, 1798, 1444, 2235, 1283, 975, 756, 1101, 839, 477, 212, 0), # 174
(2853, 2491, 2340, 2564, 2091, 1082, 983, 884, 1121, 472, 321, 236, 0, 2949, 2456, 1802, 1444, 2240, 1288, 978, 760, 1104, 842, 477, 212, 0), # 175
(2856, 2495, 2351, 2572, 2094, 1090, 988, 886, 1126, 472, 321, 236, 0, 2956, 2462, 1806, 1449, 2251, 1289, 981, 761, 1107, 844, 477, 212, 0), # 176
(2859, 2502, 2359, 2590, 2099, 1093, 990, 887, 1128, 473, 322, 236, 0, 2965, 2467, 1810, 1452, 2265, 1294, 984, 762, 1111, 845, 479, 212, 0), # 177
(2869, 2507, 2368, 2592, 2106, 1095, 991, 890, 1133, 474, 323, 236, 0, 2977, 2469, 1812, 1453, 2268, 1297, 988, 763, 1115, 849, 482, 212, 0), # 178
(2869, 2507, 2368, 2592, 2106, 1095, 991, 890, 1133, 474, 323, 236, 0, 2977, 2469, 1812, 1453, 2268, 1297, 988, 763, 1115, 849, 482, 212, 0), # 179
)
passenger_arriving_rate = (
(9.037558041069182, 9.116726123493724, 7.81692484441876, 8.389801494715634, 6.665622729131535, 3.295587678639206, 3.7314320538365235, 3.4898821297345672, 3.654059437300804, 1.781106756985067, 1.261579549165681, 0.7346872617459261, 0.0, 9.150984382641052, 8.081559879205185, 6.307897745828405, 5.3433202709552, 7.308118874601608, 4.885834981628395, 3.7314320538365235, 2.3539911990280045, 3.3328113645657673, 2.7966004982385453, 1.5633849688837522, 0.828793283953975, 0.0), # 0
(9.637788873635953, 9.718600145338852, 8.333019886995228, 8.943944741923431, 7.106988404969084, 3.5132827632446837, 3.9775220471373247, 3.7196352921792815, 3.8953471957997454, 1.8985413115247178, 1.3449288407868398, 0.7831824991221532, 0.0, 9.755624965391739, 8.615007490343684, 6.724644203934198, 5.695623934574153, 7.790694391599491, 5.207489409050994, 3.9775220471373247, 2.509487688031917, 3.553494202484542, 2.9813149139744777, 1.6666039773990458, 0.883509104121714, 0.0), # 1
(10.236101416163518, 10.318085531970116, 8.847063428321121, 9.495883401297473, 7.546755568499692, 3.7301093702380674, 4.222636657164634, 3.948468935928315, 4.135672084126529, 2.015511198759246, 1.4279469446328943, 0.8314848978079584, 0.0, 10.357856690777442, 9.14633387588754, 7.13973472316447, 6.046533596277737, 8.271344168253059, 5.527856510299641, 4.222636657164634, 2.6643638358843336, 3.773377784249846, 3.1652944670991583, 1.7694126856642243, 0.938007775633647, 0.0), # 2
(10.830164027663812, 10.912803828195138, 9.357016303979782, 10.0434281501683, 7.983194011202283, 3.9452076537143688, 4.46580327748316, 4.175475868120881, 4.374081096552656, 2.1315522142917818, 1.5103045235482149, 0.8794028527395692, 0.0, 10.955291051257605, 9.67343138013526, 7.551522617741075, 6.3946566428753435, 8.748162193105312, 5.845666215369232, 4.46580327748316, 2.818005466938835, 3.9915970056011414, 3.3478093833894342, 1.8714032607959565, 0.9920730752904672, 0.0), # 3
(11.417645067148767, 11.500376578821527, 9.860839349554556, 10.584389665866468, 8.41457352455579, 4.1577177677686015, 4.706049301657613, 4.399748895896186, 4.609621227349624, 2.246200153725456, 1.5916722403771728, 0.9267447588532147, 0.0, 11.54553953929167, 10.19419234738536, 7.958361201885864, 6.738600461176366, 9.219242454699248, 6.159648454254661, 4.706049301657613, 2.969798405549001, 4.207286762277895, 3.528129888622157, 1.9721678699109113, 1.0454887798928663, 0.0), # 4
(11.996212893630318, 12.07842532865692, 10.356493400628777, 11.11657862572253, 8.839163900039136, 4.366779866495776, 4.942402123252702, 4.620380826393444, 4.841339470788935, 2.3589908126633987, 1.67172075796414, 0.9733190110851223, 0.0, 12.126213647339089, 10.706509121936344, 8.358603789820698, 7.076972437990195, 9.68267894157787, 6.468533156950822, 4.942402123252702, 3.119128476068411, 4.419581950019568, 3.705526208574178, 2.071298680125756, 1.0980386662415385, 0.0), # 5
(12.5635358661204, 12.644571622508925, 10.8419392927858, 11.63780570706703, 9.255234929131252, 4.571534103990907, 5.173889135833137, 4.836464466751867, 5.068282821142089, 2.469459986708742, 1.750120739153485, 1.0189340043715214, 0.0, 12.694924867859292, 11.208274048086732, 8.750603695767424, 7.408379960126224, 10.136565642284179, 6.771050253452613, 5.173889135833137, 3.265381502850648, 4.627617464565626, 3.8792685690223445, 2.16838785855716, 1.1495065111371752, 0.0), # 6
(13.117282343630944, 13.196437005185167, 11.315137861608953, 12.145881587230525, 9.661056403311065, 4.771120634349007, 5.399537732963626, 5.047092624110664, 5.289498272680586, 2.5771434714646144, 1.8265428467895808, 1.0633981336486396, 0.0, 13.249284693311735, 11.697379470135033, 9.132714233947903, 7.7314304143938415, 10.578996545361171, 7.06592967375493, 5.399537732963626, 3.4079433102492906, 4.830528201655532, 4.048627195743509, 2.2630275723217905, 1.1996760913804698, 0.0), # 7
(13.655120685173882, 13.731643021493262, 11.774049942681595, 12.638616943543553, 10.054898114057503, 4.964679611665085, 5.618375308208878, 5.251358105609044, 5.504032819675924, 2.681577062534149, 1.9006577437167966, 1.1065197938527056, 0.0, 13.786904616155851, 12.171717732379758, 9.503288718583983, 8.044731187602444, 11.008065639351848, 7.351901347852662, 5.618375308208878, 3.5461997226179176, 5.027449057028751, 4.212872314514518, 2.3548099885363194, 1.248331183772115, 0.0), # 8
(14.174719249761154, 14.247811216240837, 12.216636371587056, 13.11382245333668, 10.43502985284949, 5.151351190034158, 5.829429255133608, 5.4483537183862225, 5.710933456399605, 2.782296555520474, 1.9721360927795035, 1.1481073799199473, 0.0, 14.305396128851092, 12.629181179119417, 9.860680463897518, 8.34688966656142, 11.42186691279921, 7.627695205740712, 5.829429255133608, 3.679536564310113, 5.217514926424745, 4.371274151112227, 2.4433272743174115, 1.2952555651128035, 0.0), # 9
(14.673746396404677, 14.7425631342355, 12.640857983908687, 13.569308793940438, 10.799721411165962, 5.330275523551238, 6.031726967302519, 5.637172269581408, 5.909247177123128, 2.878837746026722, 2.0406485568220725, 1.187969286786593, 0.0, 14.802370723856898, 13.06766215465252, 10.20324278411036, 8.636513238080164, 11.818494354246257, 7.892041177413972, 6.031726967302519, 3.8073396596794558, 5.399860705582981, 4.52310293131348, 2.5281715967817378, 1.3402330122032275, 0.0), # 10
(15.149870484116411, 15.213520320284891, 13.044675615229824, 14.002886642685386, 11.14724258048584, 5.500592766311337, 6.224295838280325, 5.816906566333811, 6.098020976117995, 2.970736429656024, 2.105865798688875, 1.2259139093888718, 0.0, 15.2754398936327, 13.485053003277587, 10.529328993444373, 8.912209288968072, 12.19604195223599, 8.143669192867335, 6.224295838280325, 3.9289948330795266, 5.57362129024292, 4.66762888089513, 2.6089351230459648, 1.3830473018440812, 0.0), # 11
(15.600759871908263, 15.6583043191966, 13.42605010113381, 14.412366676902078, 11.475863152288053, 5.6614430724094635, 6.406163261631731, 5.986649415782641, 6.276301847655707, 3.0575284020115086, 2.1674584812242808, 1.2617496426630104, 0.0, 15.722215130637963, 13.879246069293112, 10.837292406121403, 9.172585206034523, 12.552603695311413, 8.381309182095698, 6.406163261631731, 4.043887908863902, 5.737931576144026, 4.804122225634027, 2.6852100202267626, 1.4234822108360548, 0.0), # 12
(16.02408291879218, 16.074536675778273, 13.782942277203993, 14.795559573921057, 11.783852918051522, 5.8119665959406355, 6.576356630921451, 6.145493625067111, 6.443136786007759, 3.138749458696308, 2.225097267272661, 1.2952848815452382, 0.0, 16.140307927332124, 14.248133696997618, 11.125486336363304, 9.416248376088921, 12.886273572015519, 8.603691075093955, 6.576356630921451, 4.151404711386168, 5.891926459025761, 4.93185319130702, 2.756588455440799, 1.4613215159798432, 0.0), # 13
(16.41750798378009, 16.45983893483752, 14.113312979023721, 15.150276011072872, 12.069481669255186, 5.9513034909998614, 6.733903339714195, 6.292532001326435, 6.597572785445653, 3.2139353953135514, 2.2784528196783858, 1.3263280209717843, 0.0, 16.527329776174614, 14.589608230689624, 11.392264098391927, 9.641806185940652, 13.195145570891306, 8.80954480185701, 6.733903339714195, 4.250931064999901, 6.034740834627593, 5.050092003690958, 2.8226625958047444, 1.4963489940761385, 0.0), # 14
(16.77870342588394, 16.811832641181958, 14.415123042176313, 15.474326665688082, 12.33101919737797, 6.078593911682158, 6.877830781574663, 6.426857351699818, 6.738656840240891, 3.2826220074663714, 2.3271958012858263, 1.3546874558788757, 0.0, 16.880892169624886, 14.90156201466763, 11.63597900642913, 9.847866022399112, 13.477313680481782, 8.997600292379746, 6.877830781574663, 4.341852794058684, 6.165509598688985, 5.158108888562695, 2.883024608435263, 1.5283484219256327, 0.0), # 15
(17.10533760411564, 17.128139339619217, 14.686333302245139, 15.765522215097217, 12.566735293898798, 6.192978012082533, 7.007166350067579, 6.547562483326471, 6.865435944664972, 3.344345090757899, 2.370996874939354, 1.380171581202741, 0.0, 17.198606600142384, 15.181887393230149, 11.85498437469677, 10.033035272273695, 13.730871889329944, 9.16658747665706, 7.007166350067579, 4.423555722916095, 6.283367646949399, 5.255174071699074, 2.9372666604490276, 1.55710357632902, 0.0), # 16
(17.395078877487137, 17.406380574956913, 14.92490459481353, 16.021673336630855, 12.774899750296605, 6.2935959462960005, 7.12093743875764, 6.653740203345614, 6.976957092989391, 3.398640440791261, 2.40952670348334, 1.4025887918796085, 0.0, 17.47808456018655, 15.428476710675692, 12.047633517416699, 10.195921322373781, 13.953914185978782, 9.31523628468386, 7.12093743875764, 4.4954256759257145, 6.387449875148302, 5.340557778876952, 2.984980918962706, 1.5823982340869922, 0.0), # 17
(17.645595605010367, 17.644177892002652, 15.12879775546482, 16.24059070761953, 12.953782358050306, 6.379587868417579, 7.2181714412095666, 6.744483318896446, 7.072267279485658, 3.4450438531695924, 2.4424559497621527, 1.4217474828457075, 0.0, 17.716937542216822, 15.63922231130278, 12.212279748810763, 10.335131559508774, 14.144534558971316, 9.442276646455024, 7.2181714412095666, 4.556848477441128, 6.476891179025153, 5.413530235873177, 3.0257595510929645, 1.6040161720002415, 0.0), # 18
(17.85455614569726, 17.83915283556408, 15.29597361978237, 16.420085005393776, 13.10165290863884, 6.450093932542269, 7.297895750988055, 6.818884637118185, 7.150413498425267, 3.4830911234960236, 2.4694552766201636, 1.4374560490372645, 0.0, 17.912777038692653, 15.812016539409907, 12.347276383100818, 10.449273370488068, 14.300826996850533, 9.546438491965459, 7.297895750988055, 4.607209951815906, 6.55082645431942, 5.473361668464593, 3.059194723956474, 1.621741166869462, 0.0), # 19
(18.01962885855975, 17.988926950448786, 15.424393023349506, 16.55796690728418, 13.216781193541133, 6.504254292765094, 7.359137761657826, 6.876036965150038, 7.210442744079718, 3.5123180473736824, 2.490195346901745, 1.4495228853905089, 0.0, 18.063214542073485, 15.944751739295596, 12.450976734508725, 10.536954142121044, 14.420885488159437, 9.626451751210054, 7.359137761657826, 4.645895923403639, 6.608390596770566, 5.51932230242806, 3.084878604669901, 1.6353569954953444, 0.0), # 20
(18.13848210260976, 18.09112178146442, 15.51201680174958, 16.652047090621256, 13.297437004236105, 6.541209103181062, 7.400924866783583, 6.915033110131218, 7.251402010720512, 3.532260420405701, 2.5043468234512685, 1.4577563868416692, 0.0, 18.165861544818743, 16.03532025525836, 12.52173411725634, 10.5967812612171, 14.502804021441024, 9.681046354183705, 7.400924866783583, 4.672292216557902, 6.648718502118053, 5.550682363540419, 3.1024033603499164, 1.644647434678584, 0.0), # 21
(18.20878423685924, 18.143358873418588, 15.55680579056593, 16.70013623273558, 13.341890132202689, 6.560098517885186, 7.422284459930039, 6.934965879200936, 7.27233829261915, 3.54245403819521, 2.5115803691131027, 1.4619649483269737, 0.0, 18.218329539387888, 16.08161443159671, 12.557901845565512, 10.627362114585626, 14.5446765852383, 9.70895223088131, 7.422284459930039, 4.6857846556322755, 6.6709450661013445, 5.5667120775785275, 3.111361158113186, 1.649396261219872, 0.0), # 22
(18.23470805401675, 18.14954393004115, 15.562384773662554, 16.706156597222225, 13.353278467239116, 6.5625, 7.424823602033405, 6.937120370370371, 7.274955740740741, 3.543656522633746, 2.512487411148522, 1.4624846364883404, 0.0, 18.225, 16.08733100137174, 12.56243705574261, 10.630969567901236, 14.549911481481482, 9.71196851851852, 7.424823602033405, 4.6875, 6.676639233619558, 5.568718865740743, 3.1124769547325113, 1.6499585390946503, 0.0), # 23
(18.253822343461476, 18.145936111111112, 15.561472222222221, 16.705415625000004, 13.359729136337823, 6.5625, 7.42342843137255, 6.934125, 7.274604999999999, 3.5429177777777783, 2.5123873737373743, 1.462362962962963, 0.0, 18.225, 16.085992592592593, 12.561936868686871, 10.628753333333332, 14.549209999999999, 9.707775, 7.42342843137255, 4.6875, 6.679864568168911, 5.568471875000002, 3.1122944444444447, 1.649630555555556, 0.0), # 24
(18.272533014380844, 18.138824588477366, 15.559670781893006, 16.70394965277778, 13.366037934713404, 6.5625, 7.420679012345679, 6.928240740740742, 7.273912037037037, 3.541463477366256, 2.512189019827909, 1.4621227709190674, 0.0, 18.225, 16.08335048010974, 12.560945099139545, 10.624390432098766, 14.547824074074073, 9.69953703703704, 7.420679012345679, 4.6875, 6.683018967356702, 5.567983217592594, 3.1119341563786014, 1.6489840534979427, 0.0), # 25
(18.290838634286462, 18.128318004115226, 15.557005144032923, 16.70177534722222, 13.372204642105325, 6.5625, 7.416618046477849, 6.919578703703704, 7.27288574074074, 3.539317818930042, 2.511894145155257, 1.4617673525377233, 0.0, 18.225, 16.079440877914955, 12.559470725776283, 10.617953456790124, 14.54577148148148, 9.687410185185186, 7.416618046477849, 4.6875, 6.686102321052663, 5.567258449074075, 3.111401028806585, 1.648028909465021, 0.0), # 26
(18.308737770689945, 18.114524999999997, 15.553500000000001, 16.698909375, 13.378229038253057, 6.5625, 7.411288235294118, 6.908250000000002, 7.271535, 3.5365050000000005, 2.5115045454545455, 1.4613000000000003, 0.0, 18.225, 16.0743, 12.557522727272728, 10.609514999999998, 14.54307, 9.671550000000002, 7.411288235294118, 4.6875, 6.689114519126528, 5.566303125, 3.1107000000000005, 1.646775, 0.0), # 27
(18.3262289911029, 18.097554218106993, 15.549180041152265, 16.695368402777778, 13.384110902896083, 6.5625, 7.404732280319536, 6.894365740740742, 7.269868703703704, 3.533049218106997, 2.5110220164609056, 1.4607240054869688, 0.0, 18.225, 16.067964060356655, 12.555110082304529, 10.599147654320989, 14.539737407407408, 9.652112037037039, 7.404732280319536, 4.6875, 6.6920554514480415, 5.565122800925927, 3.1098360082304533, 1.6452322016460905, 0.0), # 28
(18.34331086303695, 18.077514300411522, 15.54406995884774, 16.69116909722222, 13.389850015773863, 6.5625, 7.396992883079159, 6.8780370370370365, 7.267895740740741, 3.5289746707818943, 2.510448353909465, 1.4600426611796984, 0.0, 18.225, 16.06046927297668, 12.552241769547326, 10.58692401234568, 14.535791481481482, 9.629251851851851, 7.396992883079159, 4.6875, 6.694925007886932, 5.563723032407409, 3.1088139917695483, 1.6434103909465023, 0.0), # 29
(18.359981954003697, 18.054513888888888, 15.538194444444445, 16.686328125000003, 13.395446156625884, 6.5625, 7.388112745098039, 6.859375, 7.265625, 3.5243055555555567, 2.509785353535354, 1.4592592592592593, 0.0, 18.225, 16.05185185185185, 12.548926767676768, 10.572916666666668, 14.53125, 9.603125, 7.388112745098039, 4.6875, 6.697723078312942, 5.562109375000001, 3.107638888888889, 1.6413194444444446, 0.0), # 30
(18.376240831514746, 18.028661625514406, 15.531578189300415, 16.680862152777777, 13.400899105191609, 6.5625, 7.378134567901236, 6.838490740740741, 7.26306537037037, 3.5190660699588485, 2.5090348110737, 1.458377091906722, 0.0, 18.225, 16.04214801097394, 12.5451740553685, 10.557198209876542, 14.52613074074074, 9.573887037037037, 7.378134567901236, 4.6875, 6.7004495525958045, 5.56028738425926, 3.106315637860083, 1.638969238683128, 0.0), # 31
(18.392086063081717, 18.000066152263376, 15.524245884773661, 16.674787847222223, 13.406208641210513, 6.5625, 7.3671010530137995, 6.815495370370372, 7.260225740740741, 3.5132804115226346, 2.5081985222596335, 1.4573994513031552, 0.0, 18.225, 16.031393964334704, 12.540992611298167, 10.539841234567902, 14.520451481481482, 9.541693518518521, 7.3671010530137995, 4.6875, 6.703104320605257, 5.558262615740742, 3.1048491769547324, 1.6363696502057616, 0.0), # 32
(18.407516216216216, 17.96883611111111, 15.516222222222224, 16.668121874999997, 13.411374544422076, 6.5625, 7.355054901960784, 6.790500000000001, 7.257115, 3.506972777777779, 2.507278282828283, 1.4563296296296298, 0.0, 18.225, 16.019625925925926, 12.536391414141413, 10.520918333333334, 14.51423, 9.5067, 7.355054901960784, 4.6875, 6.705687272211038, 5.5560406250000005, 3.103244444444445, 1.6335305555555555, 0.0), # 33
(18.422529858429858, 17.93508014403292, 15.507531893004115, 16.660880902777777, 13.41639659456576, 6.5625, 7.342038816267248, 6.7636157407407405, 7.253742037037037, 3.500167366255145, 2.5062758885147773, 1.4551709190672155, 0.0, 18.225, 16.006880109739367, 12.531379442573886, 10.500502098765432, 14.507484074074075, 9.469062037037038, 7.342038816267248, 4.6875, 6.70819829728288, 5.553626967592593, 3.1015063786008232, 1.6304618312757202, 0.0), # 34
(18.437125557234253, 17.898906893004114, 15.49819958847737, 16.65308159722222, 13.421274571381044, 6.5625, 7.328095497458243, 6.734953703703703, 7.250115740740741, 3.4928883744855974, 2.5051931350542462, 1.4539266117969825, 0.0, 18.225, 15.993192729766804, 12.52596567527123, 10.47866512345679, 14.500231481481482, 9.428935185185185, 7.328095497458243, 4.6875, 6.710637285690522, 5.551027199074074, 3.099639917695474, 1.627173353909465, 0.0), # 35
(18.45130188014101, 17.860424999999996, 15.488249999999999, 16.644740624999997, 13.426008254607403, 6.5625, 7.313267647058823, 6.704625000000001, 7.246244999999999, 3.485160000000001, 2.504031818181818, 1.4526000000000006, 0.0, 18.225, 15.978600000000004, 12.520159090909091, 10.45548, 14.492489999999998, 9.386475, 7.313267647058823, 4.6875, 6.7130041273037016, 5.548246875, 3.0976500000000002, 1.623675, 0.0), # 36
(18.46505739466174, 17.819743106995883, 15.477707818930043, 16.63587465277778, 13.430597423984304, 6.5625, 7.2975979665940445, 6.672740740740741, 7.242138703703703, 3.477006440329219, 2.502793733632623, 1.451194375857339, 0.0, 18.225, 15.963138134430727, 12.513968668163116, 10.431019320987655, 14.484277407407406, 9.341837037037038, 7.2975979665940445, 4.6875, 6.715298711992152, 5.545291550925927, 3.0955415637860084, 1.619976646090535, 0.0), # 37
(18.47839066830806, 17.776969855967078, 15.466597736625513, 16.626500347222226, 13.435041859251228, 6.5625, 7.281129157588961, 6.639412037037038, 7.237805740740741, 3.4684518930041164, 2.5014806771417883, 1.4497130315500688, 0.0, 18.225, 15.946843347050754, 12.507403385708942, 10.405355679012347, 14.475611481481481, 9.295176851851854, 7.281129157588961, 4.6875, 6.717520929625614, 5.542166782407409, 3.0933195473251027, 1.61608816872428, 0.0), # 38
(18.491300268591576, 17.732213888888886, 15.454944444444445, 16.616634375, 13.439341340147644, 6.5625, 7.2639039215686285, 6.60475, 7.233255000000001, 3.4595205555555566, 2.500094444444445, 1.4481592592592594, 0.0, 18.225, 15.92975185185185, 12.500472222222223, 10.378561666666666, 14.466510000000001, 9.24665, 7.2639039215686285, 4.6875, 6.719670670073822, 5.538878125000001, 3.0909888888888895, 1.6120194444444444, 0.0), # 39
(18.503784763023894, 17.685583847736623, 15.442772633744857, 16.60629340277778, 13.443495646413021, 6.5625, 7.245964960058098, 6.568865740740742, 7.228495370370371, 3.4502366255144046, 2.49863683127572, 1.4465363511659812, 0.0, 18.225, 15.911899862825791, 12.4931841563786, 10.350709876543212, 14.456990740740743, 9.196412037037039, 7.245964960058098, 4.6875, 6.721747823206511, 5.535431134259261, 3.0885545267489714, 1.6077803497942387, 0.0), # 40
(18.51584271911663, 17.637188374485596, 15.430106995884776, 16.595494097222222, 13.447504557786843, 6.5625, 7.2273549745824255, 6.531870370370371, 7.22353574074074, 3.4406243004115233, 2.4971096333707448, 1.4448475994513033, 0.0, 18.225, 15.893323593964332, 12.485548166853723, 10.321872901234567, 14.44707148148148, 9.14461851851852, 7.2273549745824255, 4.6875, 6.723752278893421, 5.531831365740742, 3.0860213991769556, 1.6033807613168727, 0.0), # 41
(18.527472704381402, 17.587136111111114, 15.416972222222224, 16.584253125000004, 13.45136785400857, 6.5625, 7.208116666666666, 6.493875, 7.218385000000001, 3.4307077777777786, 2.4955146464646467, 1.4430962962962963, 0.0, 18.225, 15.874059259259258, 12.477573232323234, 10.292123333333333, 14.436770000000003, 9.091425000000001, 7.208116666666666, 4.6875, 6.725683927004285, 5.5280843750000015, 3.083394444444445, 1.598830555555556, 0.0), # 42
(18.538673286329807, 17.53553569958848, 15.403393004115227, 16.57258715277778, 13.455085314817683, 6.5625, 7.188292737835875, 6.454990740740741, 7.213052037037036, 3.420511255144034, 2.4938536662925554, 1.4412857338820306, 0.0, 18.225, 15.854143072702334, 12.469268331462775, 10.2615337654321, 14.426104074074072, 9.036987037037038, 7.188292737835875, 4.6875, 6.727542657408842, 5.524195717592594, 3.080678600823046, 1.5941396090534983, 0.0), # 43
(18.54944303247347, 17.482495781893004, 15.389394032921814, 16.560512847222224, 13.458656719953654, 6.5625, 7.1679258896151055, 6.415328703703706, 7.2075457407407395, 3.4100589300411532, 2.4921284885895996, 1.439419204389575, 0.0, 18.225, 15.833611248285322, 12.460642442947998, 10.230176790123457, 14.415091481481479, 8.981460185185188, 7.1679258896151055, 4.6875, 6.729328359976827, 5.520170949074076, 3.077878806584363, 1.5893177983539097, 0.0), # 44
(18.55978051032399, 17.428124999999998, 15.375, 16.548046875, 13.462081849155954, 6.5625, 7.147058823529412, 6.375000000000001, 7.201874999999999, 3.3993750000000014, 2.4903409090909094, 1.4375000000000002, 0.0, 18.225, 15.8125, 12.451704545454545, 10.198125000000001, 14.403749999999999, 8.925, 7.147058823529412, 4.6875, 6.731040924577977, 5.516015625000001, 3.075, 1.584375, 0.0), # 45
(18.569684287392985, 17.372531995884774, 15.360235596707819, 16.535205902777776, 13.465360482164058, 6.5625, 7.125734241103849, 6.334115740740741, 7.196048703703703, 3.388483662551441, 2.4884927235316128, 1.4355314128943761, 0.0, 18.225, 15.790845541838134, 12.442463617658062, 10.16545098765432, 14.392097407407405, 8.86776203703704, 7.125734241103849, 4.6875, 6.732680241082029, 5.511735300925927, 3.072047119341564, 1.5793210905349795, 0.0), # 46
(18.579152931192063, 17.31582541152263, 15.345125514403293, 16.522006597222223, 13.46849239871744, 6.5625, 7.103994843863473, 6.292787037037037, 7.190075740740742, 3.3774091152263384, 2.486585727646839, 1.4335167352537728, 0.0, 18.225, 15.768684087791497, 12.432928638234193, 10.132227345679013, 14.380151481481484, 8.809901851851851, 7.103994843863473, 4.6875, 6.73424619935872, 5.507335532407408, 3.069025102880659, 1.5741659465020577, 0.0), # 47
(18.588185009232834, 17.258113888888886, 15.329694444444444, 16.508465625, 13.471477378555573, 6.5625, 7.081883333333334, 6.251125000000001, 7.183965000000001, 3.3661755555555564, 2.4846217171717173, 1.4314592592592594, 0.0, 18.225, 15.746051851851853, 12.423108585858586, 10.098526666666666, 14.367930000000001, 8.751575, 7.081883333333334, 4.6875, 6.735738689277786, 5.502821875000001, 3.065938888888889, 1.5689194444444445, 0.0), # 48
(18.596779089026917, 17.199506069958847, 15.313967078189304, 16.49459965277778, 13.47431520141793, 6.5625, 7.059442411038489, 6.209240740740741, 7.17772537037037, 3.35480718106996, 2.4826024878413775, 1.4293622770919072, 0.0, 18.225, 15.722985048010976, 12.413012439206886, 10.064421543209878, 14.35545074074074, 8.692937037037037, 7.059442411038489, 4.6875, 6.737157600708965, 5.498199884259261, 3.0627934156378607, 1.5635914609053498, 0.0), # 49
(18.604933738085908, 17.140110596707824, 15.297968106995889, 16.480425347222223, 13.477005647043978, 6.5625, 7.0367147785039945, 6.16724537037037, 7.1713657407407405, 3.3433281893004123, 2.480529835390947, 1.427229080932785, 0.0, 18.225, 15.699519890260632, 12.402649176954732, 10.029984567901234, 14.342731481481481, 8.634143518518519, 7.0367147785039945, 4.6875, 6.738502823521989, 5.4934751157407415, 3.059593621399178, 1.5581918724279842, 0.0), # 50
(18.61264752392144, 17.080036111111113, 15.281722222222223, 16.465959375, 13.479548495173198, 6.5625, 7.013743137254902, 6.12525, 7.164895000000001, 3.3317627777777785, 2.478405555555556, 1.4250629629629634, 0.0, 18.225, 15.675692592592595, 12.392027777777779, 9.995288333333333, 14.329790000000003, 8.57535, 7.013743137254902, 4.6875, 6.739774247586599, 5.488653125000001, 3.0563444444444445, 1.552730555555556, 0.0), # 51
(18.619919014045102, 17.019391255144033, 15.26525411522634, 16.45121840277778, 13.481943525545056, 6.5625, 6.9905701888162675, 6.08336574074074, 7.158322037037037, 3.320135144032923, 2.4762314440703332, 1.4228672153635122, 0.0, 18.225, 15.651539368998632, 12.381157220351666, 9.960405432098767, 14.316644074074073, 8.516712037037037, 6.9905701888162675, 4.6875, 6.740971762772528, 5.483739467592594, 3.0530508230452678, 1.547217386831276, 0.0), # 52
(18.626746775968517, 16.958284670781893, 15.248588477366258, 16.43621909722222, 13.484190517899034, 6.5625, 6.967238634713145, 6.041703703703704, 7.1516557407407415, 3.3084694855967087, 2.4740092966704084, 1.4206451303155008, 0.0, 18.225, 15.627096433470507, 12.37004648335204, 9.925408456790123, 14.303311481481483, 8.458385185185186, 6.967238634713145, 4.6875, 6.742095258949517, 5.478739699074075, 3.049717695473252, 1.5416622427983542, 0.0), # 53
(18.63312937720329, 16.896825000000003, 15.23175, 16.420978125, 13.486289251974604, 6.5625, 6.943791176470588, 6.000374999999999, 7.144905, 3.296790000000001, 2.4717409090909093, 1.4184000000000003, 0.0, 18.225, 15.602400000000001, 12.358704545454545, 9.89037, 14.28981, 8.400525, 6.943791176470588, 4.6875, 6.743144625987302, 5.473659375000001, 3.04635, 1.5360750000000005, 0.0), # 54
(18.63906538526104, 16.835120884773662, 15.2147633744856, 16.405512152777778, 13.488239507511228, 6.5625, 6.9202705156136535, 5.9594907407407405, 7.1380787037037035, 3.2851208847736637, 2.4694280770669663, 1.4161351165980798, 0.0, 18.225, 15.577486282578874, 12.34714038533483, 9.855362654320988, 14.276157407407407, 8.343287037037037, 6.9202705156136535, 4.6875, 6.744119753755614, 5.468504050925927, 3.04295267489712, 1.530465534979424, 0.0), # 55
(18.64455336765337, 16.77328096707819, 15.197653292181073, 16.389837847222225, 13.49004106424839, 6.5625, 6.896719353667393, 5.9191620370370375, 7.131185740740741, 3.2734863374485608, 2.467072596333708, 1.4138537722908093, 0.0, 18.225, 15.5523914951989, 12.335362981668538, 9.82045901234568, 14.262371481481482, 8.286826851851853, 6.896719353667393, 4.6875, 6.745020532124195, 5.463279282407409, 3.0395306584362145, 1.5248437242798356, 0.0), # 56
(18.649591891891887, 16.711413888888888, 15.180444444444445, 16.373971875, 13.49169370192556, 6.5625, 6.873180392156863, 5.879500000000001, 7.124235, 3.2619105555555565, 2.4646762626262633, 1.4115592592592594, 0.0, 18.225, 15.527151851851851, 12.323381313131314, 9.785731666666667, 14.24847, 8.231300000000001, 6.873180392156863, 4.6875, 6.74584685096278, 5.457990625000001, 3.0360888888888895, 1.5192194444444447, 0.0), # 57
(18.654179525488225, 16.64962829218107, 15.163161522633745, 16.357930902777774, 13.49319720028221, 6.5625, 6.849696332607118, 5.840615740740741, 7.11723537037037, 3.2504177366255154, 2.4622408716797612, 1.4092548696844995, 0.0, 18.225, 15.501803566529492, 12.311204358398806, 9.751253209876543, 14.23447074074074, 8.176862037037038, 6.849696332607118, 4.6875, 6.746598600141105, 5.4526436342592595, 3.032632304526749, 1.5136025720164612, 0.0), # 58
(18.658314835953966, 16.58803281893004, 15.145829218106996, 16.34173159722222, 13.494551339057814, 6.5625, 6.82630987654321, 5.802620370370371, 7.110195740740741, 3.2390320781893016, 2.4597682192293306, 1.4069438957475995, 0.0, 18.225, 15.476382853223592, 12.298841096146651, 9.717096234567903, 14.220391481481482, 8.12366851851852, 6.82630987654321, 4.6875, 6.747275669528907, 5.447243865740742, 3.0291658436213997, 1.5080029835390947, 0.0), # 59
(18.661996390800738, 16.526736111111113, 15.128472222222221, 16.325390625, 13.495755897991843, 6.5625, 6.803063725490196, 5.765625, 7.103125, 3.2277777777777787, 2.4572601010101014, 1.40462962962963, 0.0, 18.225, 15.450925925925928, 12.286300505050505, 9.683333333333334, 14.20625, 8.071875, 6.803063725490196, 4.6875, 6.747877948995922, 5.441796875000001, 3.0256944444444445, 1.502430555555556, 0.0), # 60
(18.665222757540146, 16.465846810699592, 15.111115226337452, 16.308924652777776, 13.496810656823772, 6.5625, 6.780000580973129, 5.729740740740741, 7.0960320370370376, 3.216679032921812, 2.4547183127572016, 1.40231536351166, 0.0, 18.225, 15.425468998628258, 12.273591563786008, 9.650037098765434, 14.192064074074075, 8.021637037037038, 6.780000580973129, 4.6875, 6.748405328411886, 5.436308217592593, 3.0222230452674905, 1.496895164609054, 0.0), # 61
(18.66799250368381, 16.40547355967078, 15.093782921810703, 16.292350347222225, 13.497715395293081, 6.5625, 6.757163144517066, 5.695078703703705, 7.088925740740741, 3.2057600411522644, 2.4521446502057613, 1.4000043895747603, 0.0, 18.225, 15.40004828532236, 12.260723251028807, 9.61728012345679, 14.177851481481483, 7.973110185185186, 6.757163144517066, 4.6875, 6.748857697646541, 5.430783449074076, 3.018756584362141, 1.4914066872427985, 0.0), # 62
(18.670304196743327, 16.345724999999998, 15.0765, 16.275684375, 13.498469893139227, 6.5625, 6.734594117647059, 5.6617500000000005, 7.081815, 3.195045000000001, 2.4495409090909095, 1.3977000000000002, 0.0, 18.225, 15.3747, 12.247704545454548, 9.585135, 14.16363, 7.926450000000001, 6.734594117647059, 4.6875, 6.749234946569613, 5.425228125000001, 3.0153000000000003, 1.485975, 0.0), # 63
(18.672156404230314, 16.286709773662555, 15.059291152263373, 16.258943402777778, 13.499073930101698, 6.5625, 6.712336201888163, 5.629865740740741, 7.0747087037037035, 3.1845581069958855, 2.446908885147774, 1.3954054869684502, 0.0, 18.225, 15.34946035665295, 12.23454442573887, 9.553674320987653, 14.149417407407407, 7.881812037037038, 6.712336201888163, 4.6875, 6.749536965050849, 5.419647800925927, 3.011858230452675, 1.4806099794238687, 0.0), # 64
(18.67354769365639, 16.228536522633743, 15.042181069958849, 16.242144097222223, 13.49952728591996, 6.5625, 6.690432098765433, 5.599537037037037, 7.067615740740742, 3.1743235596707824, 2.4442503741114856, 1.3931241426611796, 0.0, 18.225, 15.324365569272972, 12.221251870557428, 9.522970679012344, 14.135231481481483, 7.839351851851852, 6.690432098765433, 4.6875, 6.74976364295998, 5.4140480324074085, 3.00843621399177, 1.4753215020576131, 0.0), # 65
(18.674476632533153, 16.17131388888889, 15.025194444444447, 16.225303125, 13.499829740333489, 6.5625, 6.668924509803921, 5.570875000000001, 7.060545000000001, 3.1643655555555563, 2.4415671717171716, 1.3908592592592597, 0.0, 18.225, 15.299451851851854, 12.207835858585858, 9.493096666666666, 14.121090000000002, 7.799225000000001, 6.668924509803921, 4.6875, 6.749914870166744, 5.408434375000001, 3.0050388888888895, 1.4701194444444448, 0.0), # 66
(18.674941788372227, 16.11515051440329, 15.00835596707819, 16.208437152777776, 13.499981073081756, 6.5625, 6.647856136528685, 5.543990740740742, 7.05350537037037, 3.154708292181071, 2.438861073699963, 1.3886141289437586, 0.0, 18.225, 15.274755418381341, 12.194305368499816, 9.464124876543211, 14.10701074074074, 7.761587037037039, 6.647856136528685, 4.6875, 6.749990536540878, 5.40281238425926, 3.001671193415638, 1.465013683127572, 0.0), # 67
(18.674624906065485, 16.059860254878533, 14.99160892489712, 16.19141634963768, 13.499853546356814, 6.56237821216278, 6.627163675346682, 5.518757887517148, 7.046452709190673, 3.145329198741226, 2.436085796562113, 1.3863795032849615, 0.0, 18.22477527006173, 15.250174536134574, 12.180428982810565, 9.435987596223676, 14.092905418381346, 7.726261042524007, 6.627163675346682, 4.6874130086877, 6.749926773178407, 5.3971387832125615, 2.998321784979424, 1.4599872958980487, 0.0), # 68
(18.671655072463768, 16.00375510752688, 14.974482638888889, 16.173382744565217, 13.498692810457515, 6.561415432098766, 6.606241363211952, 5.493824074074074, 7.039078703703703, 3.1359628758169937, 2.4329588516746417, 1.3840828460038987, 0.0, 18.222994791666668, 15.224911306042884, 12.164794258373206, 9.407888627450978, 14.078157407407407, 7.6913537037037045, 6.606241363211952, 4.686725308641976, 6.749346405228757, 5.391127581521739, 2.994896527777778, 1.4548868279569895, 0.0), # 69
(18.665794417606012, 15.946577558741536, 14.956902649176953, 16.154217617753623, 13.496399176954732, 6.559519318701418, 6.5849941211052325, 5.468964334705077, 7.031341735253773, 3.1265637860082314, 2.429444665957824, 1.3817134141939216, 0.0, 18.219478202160495, 15.198847556133135, 12.147223329789119, 9.379691358024692, 14.062683470507546, 7.656550068587107, 6.5849941211052325, 4.685370941929584, 6.748199588477366, 5.384739205917875, 2.9913805298353906, 1.4496888689765035, 0.0), # 70
(18.657125389157272, 15.888361778176023, 14.938875128600824, 16.133949230072467, 13.493001694504963, 6.556720598994056, 6.56343149358509, 5.444186899862826, 7.023253326474624, 3.1171321617041885, 2.425556211235159, 1.3792729405819073, 0.0, 18.21427179783951, 15.172002346400978, 12.127781056175793, 9.351396485112563, 14.046506652949247, 7.621861659807958, 6.56343149358509, 4.683371856424325, 6.746500847252482, 5.377983076690823, 2.987775025720165, 1.4443965252887296, 0.0), # 71
(18.64573043478261, 15.82914193548387, 14.92040625, 16.112605842391304, 13.488529411764706, 6.553050000000001, 6.541563025210084, 5.4195, 7.014825, 3.1076682352941183, 2.421306459330144, 1.376763157894737, 0.0, 18.207421875, 15.144394736842104, 12.10653229665072, 9.323004705882353, 14.02965, 7.587300000000001, 6.541563025210084, 4.680750000000001, 6.744264705882353, 5.370868614130436, 2.98408125, 1.4390129032258066, 0.0), # 72
(18.631692002147076, 15.768952200318596, 14.90150218621399, 16.09021571557971, 13.483011377390461, 6.548538248742569, 6.519398260538782, 5.394911865569274, 7.006068278463649, 3.0981722391672726, 2.4167083820662767, 1.374185798859288, 0.0, 18.198974729938275, 15.116043787452165, 12.083541910331384, 9.294516717501814, 14.012136556927299, 7.552876611796983, 6.519398260538782, 4.677527320530407, 6.741505688695231, 5.363405238526571, 2.9803004372427986, 1.4335411091198726, 0.0), # 73
(18.61509253891573, 15.707826742333731, 14.882169110082302, 16.06680711050725, 13.47647664003873, 6.543216072245086, 6.49694674412975, 5.37043072702332, 6.996994684499314, 3.0886444057129037, 2.411774951267057, 1.3715425962024403, 0.0, 18.18897665895062, 15.086968558226841, 12.058874756335285, 9.26593321713871, 13.993989368998628, 7.518603017832648, 6.49694674412975, 4.673725765889347, 6.738238320019365, 5.355602370169083, 2.976433822016461, 1.4279842493030668, 0.0), # 74
(18.59601449275362, 15.645799731182793, 14.862413194444443, 16.04240828804348, 13.468954248366014, 6.537114197530865, 6.47421802054155, 5.346064814814815, 6.98761574074074, 3.0790849673202625, 2.406519138755981, 1.3688352826510723, 0.0, 18.177473958333334, 15.057188109161793, 12.032595693779903, 9.237254901960785, 13.97523148148148, 7.484490740740742, 6.47421802054155, 4.669367283950618, 6.734477124183007, 5.347469429347827, 2.9724826388888888, 1.422345430107527, 0.0), # 75
(18.57454031132582, 15.582905336519316, 14.842240612139918, 16.01704750905797, 13.460473251028805, 6.53026335162323, 6.451221634332746, 5.321822359396434, 6.977942969821673, 3.069494156378602, 2.400953916356548, 1.3660655909320625, 0.0, 18.164512924382716, 15.026721500252684, 12.004769581782737, 9.208482469135802, 13.955885939643347, 7.450551303155008, 6.451221634332746, 4.664473822588021, 6.730236625514403, 5.339015836352658, 2.9684481224279837, 1.4166277578653925, 0.0), # 76
(18.55075244229737, 15.519177727996816, 14.821657536008228, 15.99075303442029, 13.451062696683609, 6.522694261545496, 6.4279671300619015, 5.2977115912208514, 6.967987894375857, 3.059872205277174, 2.3950922558922563, 1.3632352537722912, 0.0, 18.150139853395064, 14.9955877914952, 11.975461279461282, 9.179616615831518, 13.935975788751714, 7.416796227709193, 6.4279671300619015, 4.659067329675354, 6.725531348341804, 5.330251011473431, 2.964331507201646, 1.4108343389088016, 0.0), # 77
(18.524733333333334, 15.45465107526882, 14.80067013888889, 15.963553124999999, 13.440751633986928, 6.514437654320987, 6.404464052287582, 5.273740740740742, 6.957762037037036, 3.0502193464052296, 2.388947129186603, 1.3603460038986357, 0.0, 18.134401041666667, 14.963806042884991, 11.944735645933015, 9.150658039215687, 13.915524074074073, 7.383237037037039, 6.404464052287582, 4.653169753086419, 6.720375816993464, 5.3211843750000005, 2.960134027777778, 1.404968279569893, 0.0), # 78
(18.496565432098766, 15.389359547988851, 14.779284593621398, 15.935476041666668, 13.429569111595256, 6.505524256973022, 6.380721945568351, 5.249918038408779, 6.947276920438957, 3.0405358121520223, 2.382531508063087, 1.3573995740379758, 0.0, 18.117342785493825, 14.931395314417731, 11.912657540315433, 9.121607436456063, 13.894553840877913, 7.349885253772292, 6.380721945568351, 4.646803040695016, 6.714784555797628, 5.311825347222223, 2.95585691872428, 1.399032686180805, 0.0), # 79
(18.466331186258724, 15.323337315810434, 14.757507073045266, 15.906550045289855, 13.417544178165095, 6.49598479652492, 6.356750354462773, 5.226251714677641, 6.9365440672153635, 3.030821834906803, 2.375858364345207, 1.3543976969171905, 0.0, 18.09901138117284, 14.898374666089092, 11.879291821726033, 9.092465504720405, 13.873088134430727, 7.316752400548698, 6.356750354462773, 4.639989140374943, 6.708772089082547, 5.302183348429953, 2.9515014146090537, 1.3930306650736761, 0.0), # 80
(18.434113043478263, 15.256618548387095, 14.735343749999998, 15.876803396739131, 13.404705882352939, 6.48585, 6.3325588235294115, 5.202750000000001, 6.925574999999999, 3.0210776470588248, 2.36894066985646, 1.3513421052631582, 0.0, 18.079453124999997, 14.864763157894737, 11.844703349282298, 9.063232941176471, 13.851149999999999, 7.283850000000001, 6.3325588235294115, 4.63275, 6.7023529411764695, 5.292267798913045, 2.94706875, 1.3869653225806453, 0.0), # 81
(18.399993451422436, 15.189237415372364, 14.712800797325105, 15.846264356884058, 13.391083272815298, 6.475150594421583, 6.308156897326833, 5.179421124828533, 6.914381241426612, 3.011303480997338, 2.3617913964203443, 1.3482345318027582, 0.0, 18.058714313271608, 14.830579849830338, 11.80895698210172, 9.03391044299201, 13.828762482853223, 7.2511895747599455, 6.308156897326833, 4.625107567443988, 6.695541636407649, 5.2820881189613536, 2.9425601594650215, 1.3808397650338515, 0.0), # 82
(18.364054857756308, 15.121228086419752, 14.689884387860083, 15.8149611865942, 13.376705398208665, 6.463917306812986, 6.283554120413598, 5.156273319615913, 6.902974314128944, 3.001499569111596, 2.3544235158603586, 1.3450767092628693, 0.0, 18.036841242283952, 14.79584380189156, 11.772117579301792, 9.004498707334786, 13.805948628257887, 7.218782647462278, 6.283554120413598, 4.617083790580704, 6.688352699104333, 5.2716537288647345, 2.9379768775720168, 1.374657098765432, 0.0), # 83
(18.326379710144927, 15.052624731182796, 14.666600694444444, 15.78292214673913, 13.361601307189542, 6.452180864197532, 6.258760037348273, 5.133314814814815, 6.89136574074074, 2.9916661437908503, 2.3468500000000003, 1.3418703703703705, 0.0, 18.013880208333333, 14.760574074074073, 11.73425, 8.97499843137255, 13.78273148148148, 7.186640740740741, 6.258760037348273, 4.608700617283951, 6.680800653594771, 5.260974048913044, 2.933320138888889, 1.3684204301075271, 0.0), # 84
(18.287050456253354, 14.983461519315012, 14.642955889917694, 15.750175498188408, 13.345800048414427, 6.439971993598538, 6.233784192689422, 5.110553840877915, 6.879567043895747, 2.981803437424353, 2.3390838206627684, 1.338617247852141, 0.0, 17.989877507716052, 14.724789726373547, 11.69541910331384, 8.945410312273058, 13.759134087791494, 7.154775377229082, 6.233784192689422, 4.5999799954275264, 6.672900024207213, 5.250058499396137, 2.928591177983539, 1.362132865392274, 0.0), # 85
(18.246149543746643, 14.913772620469931, 14.618956147119343, 15.716749501811597, 13.32933067053982, 6.427321422039324, 6.208636130995608, 5.087998628257887, 6.86758974622771, 2.9719116824013563, 2.3311379496721605, 1.3353190744350594, 0.0, 17.964879436728395, 14.68850981878565, 11.655689748360802, 8.915735047204068, 13.73517949245542, 7.123198079561043, 6.208636130995608, 4.590943872885232, 6.66466533526991, 5.2389165006038665, 2.923791229423869, 1.3557975109518121, 0.0), # 86
(18.203759420289852, 14.843592204301075, 14.594607638888888, 15.68267241847826, 13.312222222222225, 6.41425987654321, 6.1833253968253965, 5.065657407407408, 6.855445370370372, 2.9619911111111112, 2.323025358851675, 1.3319775828460039, 0.0, 17.938932291666667, 14.651753411306041, 11.615126794258373, 8.885973333333332, 13.710890740740744, 7.091920370370371, 6.1833253968253965, 4.581614197530865, 6.656111111111112, 5.227557472826088, 2.9189215277777776, 1.3494174731182798, 0.0), # 87
(18.159962533548043, 14.772954440461966, 14.569916538065844, 15.647972509057974, 13.294503752118132, 6.400818084133517, 6.157861534737352, 5.043538408779149, 6.843145438957476, 2.952041955942871, 2.31475902002481, 1.328594505811855, 0.0, 17.912082368827164, 14.614539563930402, 11.573795100124048, 8.856125867828611, 13.686290877914953, 7.06095377229081, 6.157861534737352, 4.572012917238227, 6.647251876059066, 5.215990836352659, 2.913983307613169, 1.3429958582238153, 0.0), # 88
(18.11484133118626, 14.701893498606132, 14.544889017489714, 15.612678034420288, 13.276204308884047, 6.387026771833563, 6.132254089290037, 5.0216498628257895, 6.830701474622771, 2.942064449285888, 2.3063519050150636, 1.3251715760594904, 0.0, 17.884375964506173, 14.576887336654393, 11.531759525075316, 8.826193347857663, 13.661402949245542, 7.0303098079561055, 6.132254089290037, 4.562161979881116, 6.638102154442024, 5.2042260114734304, 2.908977803497943, 1.3365357726005578, 0.0), # 89
(18.068478260869565, 14.630443548387097, 14.519531250000002, 15.576817255434786, 13.257352941176471, 6.372916666666668, 6.106512605042017, 5.0, 6.818125, 2.9320588235294123, 2.2978169856459334, 1.3217105263157898, 0.0, 17.855859375, 14.538815789473684, 11.489084928229666, 8.796176470588236, 13.63625, 7.0, 6.106512605042017, 4.552083333333334, 6.6286764705882355, 5.192272418478263, 2.903906250000001, 1.3300403225806454, 0.0), # 90
(18.020955770263015, 14.558638759458383, 14.493849408436214, 15.540418432971018, 13.237978697651899, 6.35851849565615, 6.0806466265518555, 4.978597050754459, 6.80542753772291, 2.922025311062697, 2.2891672337409186, 1.3182130893076314, 0.0, 17.826578896604936, 14.500343982383942, 11.445836168704592, 8.76607593318809, 13.61085507544582, 6.9700358710562424, 6.0806466265518555, 4.541798925468679, 6.6189893488259495, 5.180139477657007, 2.898769881687243, 1.3235126144962168, 0.0), # 91
(17.97235630703167, 14.486513301473519, 14.467849665637862, 15.50350982789855, 13.218110626966835, 6.343862985825332, 6.054665698378118, 4.957449245541839, 6.7926206104252405, 2.9119641442749944, 2.2804156211235163, 1.3146809977618947, 0.0, 17.796580825617283, 14.46149097538084, 11.40207810561758, 8.735892432824983, 13.585241220850481, 6.940428943758574, 6.054665698378118, 4.531330704160951, 6.609055313483418, 5.167836609299518, 2.8935699331275724, 1.3169557546794108, 0.0), # 92
(17.92276231884058, 14.414101344086022, 14.441538194444446, 15.46611970108696, 13.197777777777777, 6.328980864197531, 6.0285793650793655, 4.936564814814815, 6.779715740740741, 2.9018755555555558, 2.2715751196172254, 1.3111159844054583, 0.0, 17.76591145833333, 14.422275828460037, 11.357875598086125, 8.705626666666666, 13.559431481481482, 6.911190740740742, 6.0285793650793655, 4.520700617283951, 6.598888888888888, 5.155373233695654, 2.888307638888889, 1.3103728494623659, 0.0), # 93
(17.872256253354806, 14.341437056949422, 14.414921167695475, 15.428276313405796, 13.177009198741224, 6.313902857796068, 6.002397171214165, 4.915951989026064, 6.766724451303155, 2.891759777293634, 2.2626587010455435, 1.3075197819652014, 0.0, 17.734617091049383, 14.382717601617212, 11.313293505227715, 8.675279331880901, 13.53344890260631, 6.88233278463649, 6.002397171214165, 4.509930612711477, 6.588504599370612, 5.1427587711352665, 2.882984233539095, 1.3037670051772203, 0.0), # 94
(17.820920558239397, 14.268554609717246, 14.388004758230455, 15.390007925724635, 13.155833938513677, 6.298659693644262, 5.97612866134108, 4.895618998628259, 6.753658264746228, 2.88161704187848, 2.253679337231969, 1.3038941231680024, 0.0, 17.70274402006173, 14.342835354848022, 11.268396686159845, 8.644851125635439, 13.507316529492456, 6.853866598079563, 5.97612866134108, 4.49904263831733, 6.577916969256838, 5.130002641908213, 2.8776009516460914, 1.2971413281561135, 0.0), # 95
(17.76883768115942, 14.195488172043014, 14.360795138888891, 15.351342798913045, 13.134281045751635, 6.283282098765432, 5.9497833800186735, 4.875574074074075, 6.740528703703703, 2.8714475816993468, 2.2446500000000005, 1.300240740740741, 0.0, 17.67033854166667, 14.30264814814815, 11.22325, 8.614342745098039, 13.481057407407405, 6.825803703703705, 5.9497833800186735, 4.488058641975309, 6.5671405228758175, 5.117114266304349, 2.8721590277777787, 1.2904989247311833, 0.0), # 96
(17.716090069779927, 14.12227191358025, 14.333298482510289, 15.31230919384058, 13.112379569111596, 6.267800800182899, 5.9233708718055125, 4.855825445816188, 6.727347290809328, 2.8612516291454857, 2.235583661173135, 1.2965613674102956, 0.0, 17.637446952160495, 14.262175041513249, 11.177918305865674, 8.583754887436456, 13.454694581618655, 6.798155624142662, 5.9233708718055125, 4.477000571559214, 6.556189784555798, 5.104103064613527, 2.8666596965020577, 1.2838429012345685, 0.0), # 97
(17.66276017176597, 14.048940003982477, 14.305520961934155, 15.27293537137681, 13.090158557250064, 6.252246524919983, 5.896900681260158, 4.83638134430727, 6.714125548696844, 2.851029416606149, 2.226493292574872, 1.2928577359035447, 0.0, 17.604115547839505, 14.22143509493899, 11.13246646287436, 8.553088249818446, 13.428251097393687, 6.770933882030178, 5.896900681260158, 4.465890374942845, 6.545079278625032, 5.090978457125605, 2.8611041923868314, 1.277176363998407, 0.0), # 98
(17.608930434782607, 13.975526612903225, 14.277468750000002, 15.233249592391303, 13.067647058823532, 6.23665, 5.870382352941177, 4.8172500000000005, 6.700875, 2.8407811764705886, 2.2173918660287084, 1.2891315789473687, 0.0, 17.570390625, 14.180447368421053, 11.086959330143541, 8.522343529411764, 13.40175, 6.744150000000001, 5.870382352941177, 4.45475, 6.533823529411766, 5.0777498641304355, 2.8554937500000004, 1.2705024193548389, 0.0), # 99
(17.5546833064949, 13.902065909996015, 14.249148019547325, 15.193280117753623, 13.044874122488501, 6.2210419524462734, 5.843825431407131, 4.798439643347051, 6.687607167352539, 2.8305071411280567, 2.2082923533581433, 1.285384629268645, 0.0, 17.536318479938274, 14.139230921955095, 11.041461766790714, 8.49152142338417, 13.375214334705078, 6.717815500685871, 5.843825431407131, 4.443601394604481, 6.522437061244251, 5.064426705917875, 2.8498296039094653, 1.2638241736360014, 0.0), # 100
(17.500101234567904, 13.828592064914377, 14.22056494341564, 15.153055208333335, 13.021868796901476, 6.205453109282122, 5.817239461216586, 4.7799585048010975, 6.674333573388203, 2.820207542967805, 2.1992077263866743, 1.281618619594253, 0.0, 17.501945408950615, 14.097804815536781, 10.99603863193337, 8.460622628903414, 13.348667146776407, 6.691941906721536, 5.817239461216586, 4.432466506630087, 6.510934398450738, 5.051018402777779, 2.8441129886831282, 1.2571447331740344, 0.0), # 101
(17.44526666666667, 13.755139247311828, 14.191725694444445, 15.112603125, 12.998660130718955, 6.189914197530865, 5.790633986928105, 4.761814814814815, 6.66106574074074, 2.809882614379086, 2.1901509569377993, 1.2778352826510724, 0.0, 17.467317708333336, 14.056188109161795, 10.950754784688995, 8.429647843137257, 13.32213148148148, 6.666540740740741, 5.790633986928105, 4.421367283950618, 6.499330065359477, 5.037534375000001, 2.838345138888889, 1.2504672043010754, 0.0), # 102
(17.390262050456254, 13.681741626841896, 14.16263644547325, 15.071952128623188, 12.975277172597433, 6.174455944215821, 5.764018553100253, 4.7440168038408785, 6.647815192043895, 2.7995325877511505, 2.181135016835017, 1.2740363511659811, 0.0, 17.432481674382714, 14.014399862825789, 10.905675084175085, 8.39859776325345, 13.29563038408779, 6.64162352537723, 5.764018553100253, 4.410325674439872, 6.487638586298717, 5.023984042874397, 2.8325272890946502, 1.2437946933492634, 0.0), # 103
(17.335169833601718, 13.608433373158105, 14.133303369341563, 15.031130480072465, 12.951748971193414, 6.159109076360311, 5.737402704291593, 4.7265727023319615, 6.634593449931413, 2.7891576954732518, 2.1721728779018252, 1.2702235578658583, 0.0, 17.397483603395063, 13.972459136524439, 10.860864389509127, 8.367473086419754, 13.269186899862826, 6.617201783264746, 5.737402704291593, 4.399363625971651, 6.475874485596707, 5.010376826690822, 2.826660673868313, 1.237130306650737, 0.0), # 104
(17.280072463768114, 13.535248655913978, 14.103732638888891, 14.99016644021739, 12.928104575163397, 6.143904320987655, 5.710795985060692, 4.709490740740741, 6.621412037037037, 2.7787581699346413, 2.1632775119617227, 1.2663986354775831, 0.0, 17.362369791666666, 13.930384990253412, 10.816387559808613, 8.336274509803923, 13.242824074074074, 6.5932870370370384, 5.710795985060692, 4.388503086419754, 6.464052287581699, 4.996722146739131, 2.820746527777778, 1.2304771505376346, 0.0), # 105
(17.225052388620504, 13.462221644763043, 14.073930426954732, 14.949088269927536, 12.904373033163882, 6.128872405121171, 5.68420793996611, 4.6927791495198905, 6.608282475994512, 2.7683342435245706, 2.1544618908382067, 1.2625633167280343, 0.0, 17.327186535493826, 13.888196484008375, 10.772309454191033, 8.30500273057371, 13.216564951989024, 6.5698908093278465, 5.68420793996611, 4.377766003657979, 6.452186516581941, 4.98302942330918, 2.8147860853909465, 1.223838331342095, 0.0), # 106
(17.17019205582394, 13.389386509358822, 14.043902906378605, 14.907924230072464, 12.880583393851367, 6.114044055784181, 5.657648113566415, 4.6764461591220865, 6.595216289437586, 2.7578861486322928, 2.145738986354776, 1.2587193343440908, 0.0, 17.29198013117284, 13.845912677784996, 10.728694931773878, 8.273658445896878, 13.190432578875171, 6.547024622770921, 5.657648113566415, 4.367174325560129, 6.440291696925684, 4.969308076690822, 2.808780581275721, 1.2172169553962566, 0.0), # 107
(17.11557391304348, 13.31677741935484, 14.013656250000002, 14.866702581521741, 12.856764705882352, 6.099450000000001, 5.631126050420168, 4.660500000000001, 6.582225000000001, 2.7474141176470597, 2.1371217703349283, 1.2548684210526317, 0.0, 17.256796875000003, 13.803552631578947, 10.685608851674642, 8.242242352941178, 13.164450000000002, 6.524700000000001, 5.631126050420168, 4.356750000000001, 6.428382352941176, 4.955567527173915, 2.8027312500000003, 1.2106161290322583, 0.0), # 108
(17.061280407944178, 13.24442854440462, 13.983196630658439, 14.825451585144926, 12.832946017913338, 6.085120964791952, 5.604651295085936, 4.644948902606311, 6.569320130315501, 2.736918382958122, 2.1286232146021624, 1.2510123095805359, 0.0, 17.221683063271605, 13.761135405385891, 10.64311607301081, 8.210755148874364, 13.138640260631002, 6.502928463648835, 5.604651295085936, 4.346514974851394, 6.416473008956669, 4.941817195048309, 2.796639326131688, 1.2040389585822384, 0.0), # 109
(17.007393988191087, 13.17237405416169, 13.95253022119342, 14.784199501811596, 12.809156378600825, 6.071087677183356, 5.57823339212228, 4.62980109739369, 6.556513203017833, 2.726399176954733, 2.120256290979975, 1.2471527326546823, 0.0, 17.18668499228395, 13.718680059201501, 10.601281454899876, 8.179197530864197, 13.113026406035665, 6.4817215363511655, 5.57823339212228, 4.336491197988112, 6.404578189300413, 4.928066500603866, 2.790506044238684, 1.1974885503783357, 0.0), # 110
(16.953997101449275, 13.10064811827957, 13.921663194444447, 14.742974592391306, 12.785424836601308, 6.0573808641975315, 5.551881886087768, 4.615064814814815, 6.543815740740741, 2.715856732026144, 2.1120339712918663, 1.2432914230019496, 0.0, 17.151848958333336, 13.676205653021444, 10.56016985645933, 8.147570196078432, 13.087631481481482, 6.461090740740741, 5.551881886087768, 4.326700617283951, 6.392712418300654, 4.914324864130436, 2.78433263888889, 1.1909680107526885, 0.0), # 111
(16.90117219538379, 13.029284906411787, 13.890601723251033, 14.701805117753622, 12.76178044057129, 6.044031252857797, 5.5256063215409625, 4.60074828532236, 6.531239266117969, 2.7052912805616076, 2.103969227361333, 1.2394301133492167, 0.0, 17.11722125771605, 13.633731246841382, 10.519846136806663, 8.115873841684822, 13.062478532235938, 6.441047599451304, 5.5256063215409625, 4.3171651806127125, 6.380890220285645, 4.900601705917875, 2.778120344650207, 1.1844804460374354, 0.0), # 112
(16.84890760266548, 12.958437720996821, 13.859426742378105, 14.660775741364255, 12.738210816208445, 6.03106325767524, 5.499473367291093, 4.586889426585454, 6.518827686755172, 2.694737131475729, 2.0960771718458604, 1.2355789404756645, 0.0, 17.0827990215178, 13.591368345232306, 10.480385859229301, 8.084211394427186, 13.037655373510344, 6.421645197219636, 5.499473367291093, 4.307902326910885, 6.369105408104223, 4.886925247121419, 2.7718853484756214, 1.178039792817893, 0.0), # 113
(16.796665616220118, 12.888805352817133, 13.828568512532428, 14.620215718724406, 12.71447202547959, 6.018447338956397, 5.473816387569522, 4.57365844462884, 6.506771421427836, 2.684391825560753, 2.0883733011339594, 1.2317868258169462, 0.0, 17.048295745488062, 13.549655083986407, 10.441866505669795, 8.053175476682258, 13.013542842855673, 6.403121822480377, 5.473816387569522, 4.298890956397426, 6.357236012739795, 4.873405239574803, 2.7657137025064857, 1.1717095775288306, 0.0), # 114
(16.744292825407193, 12.820412877827026, 13.798045399060976, 14.580114081995404, 12.690489213466321, 6.006150688123703, 5.448653685172405, 4.561051990709032, 6.495074987201274, 2.674271397594635, 2.0808463534281283, 1.2280556373838278, 0.0, 17.013611936988678, 13.508612011222104, 10.404231767140642, 8.022814192783905, 12.990149974402549, 6.385472786992645, 5.448653685172405, 4.290107634374073, 6.345244606733161, 4.860038027331802, 2.7596090798121957, 1.165492079802457, 0.0), # 115
(16.691723771827743, 12.753160664131308, 13.767798284975811, 14.540399302859647, 12.666226231660534, 5.994144321151453, 5.423944335775104, 4.549035234674245, 6.483708803536698, 2.6643570113022967, 2.0734817793814444, 1.224378479623102, 0.0, 16.978693067560602, 13.46816327585412, 10.367408896907222, 7.9930710339068884, 12.967417607073395, 6.368649328543944, 5.423944335775104, 4.281531657965324, 6.333113115830267, 4.846799767619883, 2.7535596569951624, 1.1593782421937553, 0.0), # 116
(16.63889299708279, 12.686949079834788, 13.73776805328898, 14.50099985299953, 12.641646931554131, 5.982399254013936, 5.399647415052978, 4.537573346372689, 6.472643289895322, 2.6546298304086586, 2.0662650296469853, 1.2207484569815625, 0.0, 16.943484608744804, 13.428233026797187, 10.331325148234924, 7.963889491225975, 12.945286579790643, 6.352602684921765, 5.399647415052978, 4.2731423242956685, 6.320823465777066, 4.833666617666511, 2.747553610657796, 1.1533590072577082, 0.0), # 117
(16.58573504277338, 12.621678493042284, 13.707895587012551, 14.461844204097451, 12.616715164639011, 5.970886502685445, 5.375721998681383, 4.526631495652572, 6.461848865738361, 2.6450710186386424, 2.0591815548778274, 1.2171586739060027, 0.0, 16.907932032082243, 13.388745412966028, 10.295907774389137, 7.935213055915925, 12.923697731476722, 6.337284093913602, 5.375721998681383, 4.264918930489604, 6.3083575823195055, 4.820614734699151, 2.74157911740251, 1.1474253175492988, 0.0), # 118
(16.532184450500534, 12.557249271858602, 13.678121769158587, 14.422860827835802, 12.591394782407065, 5.9595770831402755, 5.35212716233568, 4.516174852362109, 6.451295950527026, 2.6356617397171678, 2.0522168057270487, 1.2136022348432152, 0.0, 16.87198080911388, 13.349624583275366, 10.261084028635242, 7.906985219151502, 12.902591901054052, 6.322644793306953, 5.35212716233568, 4.256840773671625, 6.295697391203532, 4.807620275945268, 2.7356243538317178, 1.1415681156235096, 0.0), # 119
(16.47817576186529, 12.49356178438856, 13.648387482739144, 14.383978195896983, 12.565649636350196, 5.948442011352714, 5.3288219816912274, 4.506168586349507, 6.440954963722534, 2.626383157369158, 2.045356232847725, 1.2100722442399947, 0.0, 16.835576411380675, 13.31079468663994, 10.226781164238623, 7.879149472107472, 12.881909927445069, 6.308636020889311, 5.3288219816912274, 4.248887150966224, 6.282824818175098, 4.794659398632328, 2.7296774965478288, 1.1357783440353237, 0.0), # 120
(16.423643518468683, 12.430516398736968, 13.618633610766281, 14.345124779963385, 12.539443577960302, 5.937452303297058, 5.305765532423383, 4.49657786746298, 6.430796324786099, 2.6172164353195337, 2.038585286892935, 1.2065618065431336, 0.0, 16.79866431042359, 13.272179871974467, 10.192926434464676, 7.8516493059586, 12.861592649572199, 6.295209014448172, 5.305765532423383, 4.2410373594978985, 6.269721788980151, 4.781708259987796, 2.7237267221532564, 1.1300469453397246, 0.0), # 121
(16.36852226191174, 12.368013483008635, 13.588801036252066, 14.306229051717406, 12.51274045872928, 5.926578974947596, 5.282916890207506, 4.487367865550737, 6.420790453178933, 2.6081427372932153, 2.0318894185157554, 1.2030640261994254, 0.0, 16.761189977783587, 13.233704288193676, 10.159447092578777, 7.824428211879645, 12.841580906357866, 6.282315011771032, 5.282916890207506, 4.2332706963911395, 6.25637022936464, 4.768743017239136, 2.7177602072504135, 1.1243648620916942, 0.0), # 122
(16.312746533795494, 12.305953405308378, 13.558830642208555, 14.267219482841437, 12.485504130149028, 5.915793042278621, 5.260235130718955, 4.478503750460988, 6.410907768362252, 2.5991432270151247, 2.0252540783692634, 1.1995720076556633, 0.0, 16.72309888500163, 13.195292084212294, 10.126270391846315, 7.797429681045372, 12.821815536724504, 6.269905250645383, 5.260235130718955, 4.225566458770444, 6.242752065074514, 4.755739827613813, 2.711766128441711, 1.1187230368462162, 0.0), # 123
(16.256250875720976, 12.244236533741004, 13.528663311647806, 14.228024545017881, 12.457698443711445, 5.905065521264426, 5.237679329633088, 4.469950692041945, 6.401118689797269, 2.590199068210183, 2.018664717106536, 1.1960788553586414, 0.0, 16.68433650361868, 13.156867408945052, 10.09332358553268, 7.770597204630548, 12.802237379594539, 6.257930968858723, 5.237679329633088, 4.217903943760304, 6.2288492218557225, 4.742674848339295, 2.7057326623295617, 1.1131124121582732, 0.0), # 124
(16.198969829289226, 12.18276323641133, 13.498239927581887, 14.188572709929128, 12.429287250908427, 5.894367427879304, 5.215208562625265, 4.461673860141818, 6.391393636945196, 2.5812914246033105, 2.012106785380651, 1.1925776737551523, 0.0, 16.644848305175692, 13.118354411306674, 10.060533926903252, 7.74387427380993, 12.782787273890392, 6.246343404198546, 5.215208562625265, 4.210262448485217, 6.2146436254542134, 4.7295242366430434, 2.6996479855163775, 1.1075239305828484, 0.0), # 125
(16.14083793610127, 12.121433881424165, 13.46750137302285, 14.148792449257574, 12.400234403231872, 5.883669778097547, 5.192781905370843, 4.453638424608819, 6.381703029267251, 2.57240145991943, 2.005565733844684, 1.1890615672919902, 0.0, 16.604579761213643, 13.079677240211891, 10.02782866922342, 7.717204379758288, 12.763406058534501, 6.235093794452347, 5.192781905370843, 4.202621270069677, 6.200117201615936, 4.716264149752526, 2.69350027460457, 1.1019485346749243, 0.0), # 126
(16.08178973775815, 12.06014883688432, 13.436388530982757, 14.108612234685616, 12.370503752173677, 5.872943587893444, 5.170358433545185, 4.445809555291159, 6.3720172862246445, 2.563510337883461, 1.9990270131517138, 1.1855236404159475, 0.0, 16.56347634327348, 13.040760044575421, 9.99513506575857, 7.690531013650382, 12.744034572449289, 6.224133377407623, 5.170358433545185, 4.194959705638174, 6.185251876086839, 4.702870744895206, 2.6872777061965514, 1.0963771669894837, 0.0), # 127
(16.021759775860883, 11.998808470896611, 13.404842284473675, 14.06796053789565, 12.340059149225747, 5.862159873241292, 5.147897222823644, 4.438152422037048, 6.362306827278591, 2.554599222220326, 1.9924760739548175, 1.1819569975738184, 0.0, 16.521483522896165, 13.001526973312, 9.962380369774086, 7.663797666660978, 12.724613654557182, 6.2134133908518665, 5.147897222823644, 4.187257052315209, 6.170029574612873, 4.689320179298551, 2.680968456894735, 1.0908007700815103, 0.0), # 128
(15.960682592010507, 11.937313151565847, 13.37280351650766, 14.026765830570064, 12.308864445879973, 5.85128965011538, 5.125357348881582, 4.430632194694696, 6.352542071890305, 2.5456492766549457, 1.9858983669070716, 1.1783547432123955, 0.0, 16.478546771622668, 12.96190217533635, 9.929491834535357, 7.636947829964836, 12.70508414378061, 6.202885072572574, 5.125357348881582, 4.179492607225272, 6.154432222939986, 4.675588610190022, 2.6745607033015326, 1.0852102865059863, 0.0), # 129
(15.89849272780806, 11.875563246996844, 13.34021311009677, 13.984956584391266, 12.276883493628256, 5.840303934489999, 5.102697887394356, 4.423214043112313, 6.342693439521001, 2.536641664912241, 1.9792793426615536, 1.174709981778473, 0.0, 16.434611560993947, 12.921809799563201, 9.896396713307768, 7.609924994736723, 12.685386879042001, 6.192499660357238, 5.102697887394356, 4.171645667492856, 6.138441746814128, 4.66165219479709, 2.668042622019354, 1.0795966588178951, 0.0), # 130
(15.83512472485457, 11.81345912529441, 13.307011948253072, 13.942461271041642, 12.244080143962494, 5.829173742339445, 5.079877914037328, 4.415863137138113, 6.332731349631892, 2.527557550717134, 1.9726044518713404, 1.1710158177188439, 0.0, 16.38962336255096, 12.88117399490728, 9.863022259356702, 7.5826726521514, 12.665462699263784, 6.182208391993358, 5.079877914037328, 4.16369553024246, 6.122040071981247, 4.647487090347215, 2.6614023896506143, 1.073950829572219, 0.0), # 131
(15.770513124751067, 11.750901154563357, 13.27314091398862, 13.899208362203591, 12.210418248374584, 5.817870089638008, 5.056856504485853, 4.408544646620305, 6.322626221684192, 2.5183780977945447, 1.9658591451895095, 1.1672653554803014, 0.0, 16.343527647834676, 12.839918910283313, 9.829295725947548, 7.555134293383633, 12.645252443368385, 6.171962505268427, 5.056856504485853, 4.155621492598577, 6.105209124187292, 4.633069454067865, 2.654628182797724, 1.0682637413239418, 0.0), # 132
(15.704592469098595, 11.687789702908498, 13.238540890315475, 13.855126329559509, 12.175861658356425, 5.80636399235998, 5.03359273441529, 4.4012237414071, 6.312348475139116, 2.509084469869395, 1.9590288732691383, 1.1634516995096391, 0.0, 16.296269888386057, 12.797968694606027, 9.795144366345692, 7.527253409608184, 12.624696950278231, 6.1617132379699395, 5.03359273441529, 4.1474028516857, 6.087930829178212, 4.618375443186504, 2.647708178063095, 1.0625263366280455, 0.0), # 133
(15.63729729949817, 11.624025138434646, 13.203152760245707, 13.81014364479179, 12.14037422539991, 5.794626466479654, 5.010045679501001, 4.3938655913467075, 6.301868529457877, 2.499657830666606, 1.952099086763304, 1.1595679542536501, 0.0, 16.24779555574605, 12.755247496790147, 9.76049543381652, 7.498973491999817, 12.603737058915755, 6.151411827885391, 5.010045679501001, 4.139018904628324, 6.070187112699955, 4.6033812149305975, 2.6406305520491418, 1.0567295580395135, 0.0), # 134
(15.568562157550836, 11.559507829246614, 13.166917406791363, 13.764188779582833, 12.103919800996945, 5.7826285279713225, 4.986174415418341, 4.3864353662873405, 6.291156804101687, 2.4900793439110998, 1.945055236325083, 1.155607224159128, 0.0, 16.198050121455637, 12.711679465750406, 9.725276181625414, 7.470238031733298, 12.582313608203375, 6.141009512802277, 4.986174415418341, 4.130448948550945, 6.051959900498472, 4.588062926527612, 2.633383481358273, 1.0508643481133288, 0.0), # 135
(15.498321584857623, 11.494138143449213, 13.129775712964513, 13.717190205615022, 12.066462236639419, 5.770341192809277, 4.961938017842671, 4.378898236077208, 6.280183718531764, 2.4803301733277956, 1.9378827726075534, 1.1515626136728663, 0.0, 16.146979057055766, 12.667188750401527, 9.689413863037766, 7.4409905199833855, 12.560367437063528, 6.130457530508091, 4.961938017842671, 4.121672280578055, 6.033231118319709, 4.572396735205008, 2.6259551425929026, 1.044921649404474, 0.0), # 136
(15.426510123019561, 11.427816449147253, 13.091668561777217, 13.66907639457077, 12.02796538381924, 5.757735476967808, 4.93729556244935, 4.371219370564522, 6.2689196922093195, 2.4703914826416162, 1.930567146263792, 1.1474272272416581, 0.0, 16.094527834087398, 12.621699499658236, 9.652835731318959, 7.411174447924847, 12.537839384418639, 6.119707118790331, 4.93729556244935, 4.112668197834148, 6.01398269190962, 4.556358798190257, 2.6183337123554433, 1.0388924044679322, 0.0), # 137
(15.353062313637686, 11.360443114445548, 13.052536836241526, 13.619775818132457, 11.988393094028304, 5.744782396421213, 4.912206124913734, 4.363363939597493, 6.257335144595569, 2.4602444355774815, 1.9230938079468758, 1.143194169312297, 0.0, 16.040641924091503, 12.575135862435264, 9.615469039734378, 7.380733306732443, 12.514670289191137, 6.10870951543649, 4.912206124913734, 4.103415997443723, 5.994196547014152, 4.5399252727108195, 2.6105073672483052, 1.0327675558586864, 0.0), # 138
(15.277912698313022, 11.29191850744891, 13.01232141936951, 13.569216947982484, 11.947709218758497, 5.731452967143778, 4.886628780911184, 4.355297113024331, 6.245400495151722, 2.449870195860314, 1.9154482083098823, 1.1388565443315761, 0.0, 15.985266798609034, 12.527421987647335, 9.577241041549412, 7.3496105875809405, 12.490800990303445, 6.0974159582340635, 4.886628780911184, 4.093894976531271, 5.973854609379249, 4.523072315994162, 2.602464283873902, 1.0265380461317193, 0.0), # 139
(15.200995818646616, 11.22214299626215, 12.970963194173232, 13.51732825580325, 11.905877609501736, 5.717718205109798, 4.860522606117057, 4.346984060693248, 6.233086163338999, 2.439249927215034, 1.9076157980058883, 1.134407456746289, 0.0, 15.928347929180966, 12.478482024209175, 9.538078990029442, 7.3177497816451, 12.466172326677999, 6.085777684970546, 4.860522606117057, 4.084084432221284, 5.952938804750868, 4.505776085267751, 2.5941926388346466, 1.020194817842014, 0.0), # 140
(15.122246216239494, 11.151016948990085, 12.92840304366474, 13.464038213277146, 11.862862117749902, 5.7035491262935665, 4.833846676206716, 4.338389952452453, 6.220362568618608, 2.4283647933665637, 1.8995820276879718, 1.129840011003229, 0.0, 15.869830787348244, 12.428240121035515, 9.497910138439858, 7.2850943800996895, 12.440725137237216, 6.073745933433434, 4.833846676206716, 4.0739636616382615, 5.931431058874951, 4.48801273775905, 2.5856806087329485, 1.0137288135445532, 0.0), # 141
(15.041598432692682, 11.07844073373752, 12.884581850856106, 13.409275292086573, 11.818626594994903, 5.688916746669374, 4.806560066855513, 4.329479958150158, 6.207200130451765, 2.417195958039823, 1.8913323480092095, 1.1251473115491895, 0.0, 15.80966084465184, 12.37662042704108, 9.456661740046046, 7.251587874119467, 12.41440026090353, 6.061271941410222, 4.806560066855513, 4.063511961906696, 5.909313297497452, 4.469758430695525, 2.5769163701712214, 1.00713097579432, 0.0), # 142
(14.958987009607215, 11.004314718609267, 12.839440498759389, 13.352967963913915, 11.773134892728635, 5.673792082211512, 4.778621853738811, 4.320219247634575, 6.1935692682996875, 2.405724584959734, 1.8828522096226783, 1.1203224628309636, 0.0, 15.747783572632711, 12.323547091140597, 9.41426104811339, 7.217173754879202, 12.387138536599375, 6.048306946688404, 4.778621853738811, 4.05270863015108, 5.886567446364317, 4.45098932130464, 2.5678880997518783, 1.0003922471462972, 0.0), # 143
(14.874346488584132, 10.928539271710147, 12.792919870386642, 13.29504470044158, 11.726350862442994, 5.658146148894274, 4.749991112531969, 4.310572990753912, 6.1794404016235855, 2.3939318378512175, 1.8741270631814555, 1.115358569295345, 0.0, 15.684144442831826, 12.268944262248793, 9.370635315907277, 7.181795513553651, 12.358880803247171, 6.034802187055478, 4.749991112531969, 4.04153296349591, 5.863175431221497, 4.431681566813861, 2.5585839740773286, 0.993503570155468, 0.0), # 144
(14.787611411224459, 10.851014761144963, 12.744960848749933, 13.235433973351956, 11.67823835562988, 5.641949962691953, 4.7206269189103445, 4.300506357356382, 6.164783949884672, 2.381798880439195, 1.865142359338619, 1.110248735389127, 0.0, 15.618688926790139, 12.212736089280396, 9.325711796693094, 7.145396641317584, 12.329567899769344, 6.020708900298935, 4.7206269189103445, 4.029964259065681, 5.83911917781494, 4.411811324450653, 2.548992169749987, 0.986455887376815, 0.0), # 145
(14.69871631912923, 10.771641555018533, 12.695504316861326, 13.174064254327444, 11.62876122378119, 5.62517453957884, 4.690488348549297, 4.289984517290195, 6.1495703325441635, 2.3693068764485874, 1.8558835487472447, 1.104986065559103, 0.0, 15.551362496048613, 12.154846721150133, 9.279417743736223, 7.107920629345761, 12.299140665088327, 6.005978324206273, 4.690488348549297, 4.0179818139848855, 5.814380611890595, 4.391354751442482, 2.539100863372265, 0.9792401413653213, 0.0), # 146
(14.607595753899481, 10.690320021435666, 12.644491157732865, 13.110864015050435, 11.577883318388821, 5.607790895529226, 4.659534477124183, 4.278972640403562, 6.133769969063274, 2.3564369896043162, 1.846336082060411, 1.0995636642520668, 0.0, 15.482110622148213, 12.095200306772732, 9.231680410302054, 7.069310968812948, 12.267539938126548, 5.990561696564987, 4.659534477124183, 4.005564925378019, 5.7889416591944105, 4.370288005016812, 2.5288982315465733, 0.9718472746759697, 0.0), # 147
(14.51418425713624, 10.606950528501175, 12.591862254376625, 13.045761727203324, 11.525568490944673, 5.5897700465174065, 4.627724380310364, 4.2674358965446935, 6.1173532789032175, 2.3431703836313016, 1.836485409931195, 1.0939746359148106, 0.0, 15.410878776629895, 12.033720995062914, 9.182427049655974, 7.029511150893903, 12.234706557806435, 5.974410255162571, 4.627724380310364, 3.9926928903695758, 5.762784245472337, 4.348587242401109, 2.5183724508753254, 0.9642682298637433, 0.0), # 148
(14.418416370440541, 10.52143344431987, 12.537558489804665, 12.97868586246851, 11.471780592940643, 5.57108300851767, 4.595017133783196, 4.255339455561801, 6.100290681525203, 2.3294882222544664, 1.8263169830126733, 1.0882120849941288, 0.0, 15.337612431034628, 11.970332934935415, 9.131584915063366, 6.988464666763398, 12.200581363050405, 5.957475237786521, 4.595017133783196, 3.9793450060840496, 5.735890296470322, 4.326228620822837, 2.507511697960933, 0.9564939494836247, 0.0), # 149
(14.320226635413416, 10.433669136996565, 12.481520747029043, 12.909564892528387, 11.416483475868631, 5.551700797504312, 4.561371813218041, 4.242648487303093, 6.0825525963904505, 2.31537166919873, 1.815816251957923, 1.0822691159368145, 0.0, 15.262257056903364, 11.904960275304958, 9.079081259789614, 6.946115007596189, 12.165105192780901, 5.93970788222433, 4.561371813218041, 3.9655005696459367, 5.7082417379343156, 4.303188297509463, 2.4963041494058085, 0.948515376090597, 0.0), # 150
(14.219549593655895, 10.343557974636072, 12.423689909061814, 12.838327289065347, 11.359640991220532, 5.531594429451621, 4.526747494290255, 4.229328161616783, 6.064109442960174, 2.3008018881890155, 1.8049686674200216, 1.0761388331896609, 0.0, 15.184758125777073, 11.837527165086268, 9.024843337100108, 6.902405664567045, 12.128218885920347, 5.921059426263496, 4.526747494290255, 3.951138878179729, 5.679820495610266, 4.27944242968845, 2.484737981812363, 0.9403234522396431, 0.0), # 151
(14.116319786769019, 10.251000325343204, 12.364006858915053, 12.76490152376179, 11.301216990488243, 5.510734920333892, 4.491103252675198, 4.215343648351081, 6.044931640695582, 2.2857600429502427, 1.7937596800520466, 1.0698143411994616, 0.0, 15.105061109196717, 11.767957753194075, 8.968798400260232, 6.857280128850727, 12.089863281391164, 5.901481107691514, 4.491103252675198, 3.936239228809923, 5.650608495244121, 4.254967174587264, 2.4728013717830106, 0.931909120485746, 0.0), # 152
(14.010471756353809, 10.155896557222773, 12.302412479600802, 12.68921606830011, 11.241175325163667, 5.489093286125417, 4.454398164048228, 4.200660117354197, 6.024989609057894, 2.2702272972073336, 1.782174740507075, 1.0632887444130097, 0.0, 15.02311147870325, 11.696176188543106, 8.910873702535374, 6.810681891622, 12.049979218115787, 5.880924164295876, 4.454398164048228, 3.920780918661012, 5.620587662581833, 4.229738689433371, 2.4604824959201608, 0.9232633233838886, 0.0), # 153
(13.901940044011312, 10.05814703837959, 12.238847654131138, 12.611199394362703, 11.179479846738696, 5.466640542800487, 4.416591304084705, 4.185242738474343, 6.00425376750832, 2.254184814685209, 1.7701992994381837, 1.0565551472770989, 0.0, 14.938854705837642, 11.622106620048086, 8.850996497190918, 6.762554444055626, 12.00850753501664, 5.85933983386408, 4.416591304084705, 3.904743244857491, 5.589739923369348, 4.203733131454236, 2.447769530826228, 0.9143770034890537, 0.0), # 154
(13.790659191342543, 9.957652136918465, 12.173253265518113, 12.530779973631962, 11.116094406705237, 5.443347706333395, 4.377641748459985, 4.169056681559727, 5.982694535508077, 2.23761375910879, 1.7578188074984502, 1.0496066542385225, 0.0, 14.852236262140847, 11.545673196623744, 8.789094037492251, 6.712841277326369, 11.965389071016155, 5.836679354183619, 4.377641748459985, 3.8881055045238533, 5.5580472033526185, 4.176926657877321, 2.4346506531036227, 0.9052411033562243, 0.0), # 155
(13.676563739948545, 9.854312220944214, 12.10557019677379, 12.447886277790282, 11.050982856555176, 5.419185792698435, 4.33750857284943, 4.152067116458564, 5.960282332518376, 2.220495294202998, 1.7450187153409518, 1.0424363697440735, 0.0, 14.763201619153833, 11.466800067184806, 8.725093576704758, 6.661485882608993, 11.920564665036752, 5.81289396304199, 4.33750857284943, 3.870846994784596, 5.525491428277588, 4.149295425930095, 2.4211140393547583, 0.8958465655403832, 0.0), # 156
(13.559588231430352, 9.748027658561648, 12.035739330910227, 12.362446778520066, 10.984109047780422, 5.394125817869895, 4.296150852928397, 4.134239213019062, 5.9369875780004335, 2.202810583692754, 1.731784473618765, 1.0350373982405456, 0.0, 14.671696248417557, 11.385411380646001, 8.658922368093824, 6.60843175107826, 11.873975156000867, 5.787934898226687, 4.296150852928397, 3.8529470127642105, 5.492054523890211, 4.120815592840023, 2.407147866182046, 0.8861843325965136, 0.0), # 157
(13.43642570352943, 9.636747649274225, 11.960387930853534, 12.27118893522918, 10.912417327045198, 5.366575700132966, 4.252596048835072, 4.1143477142620295, 5.910997254959458, 2.1840146623310153, 1.717678725761683, 1.027139934629151, 0.0, 14.573674546947622, 11.298539280920659, 8.588393628808413, 6.552043986993045, 11.821994509918916, 5.7600867999668415, 4.252596048835072, 3.833268357237833, 5.456208663522599, 4.090396311743061, 2.3920775861707066, 0.8760679681158388, 0.0), # 158
(13.288116180561124, 9.509057777339137, 11.860106727604483, 12.155369164364412, 10.818229571737954, 5.327374130407459, 4.201391487047145, 4.085410149573287, 5.871856356733287, 2.161026447344436, 1.7002250806856987, 1.0172043785524665, 0.0, 14.445769764456351, 11.189248164077128, 8.501125403428492, 6.483079342033307, 11.743712713466573, 5.719574209402602, 4.201391487047145, 3.8052672360053275, 5.409114785868977, 4.051789721454805, 2.372021345520897, 0.8644597979399218, 0.0), # 159
(13.112769770827757, 9.363909602092178, 11.732881436933834, 12.013079639051961, 10.699704157616154, 5.275558360850069, 4.142019373545406, 4.04669939214551, 5.818455136337191, 2.1335425433383026, 1.6791778525828622, 1.0050752923331772, 0.0, 14.285557096008445, 11.055828215664945, 8.39588926291431, 6.400627630014906, 11.636910272674381, 5.665379149003714, 4.142019373545406, 3.7682559720357633, 5.349852078808077, 4.004359879683988, 2.346576287386767, 0.8512645092811072, 0.0), # 160
(12.911799698254727, 9.202249432332774, 11.580070457865464, 11.845672880071582, 10.558071749138534, 5.21175610364883, 4.0749133014061885, 3.9987003998323356, 5.751497860199411, 2.101796186926922, 1.6547224963799123, 0.9908651203361357, 0.0, 14.094673280674375, 10.899516323697492, 8.273612481899562, 6.305388560780765, 11.502995720398822, 5.59818055976527, 4.0749133014061885, 3.722682931177736, 5.279035874569267, 3.9485576266905285, 2.3160140915730927, 0.8365681302120704, 0.0), # 161
(12.686619186767443, 9.025023576860344, 11.403032189423245, 11.654501408203041, 10.394563010763845, 5.1365950709917785, 4.000506863705828, 3.941898130487402, 5.6716887947481816, 2.0660206147246045, 1.6270444670035862, 0.9746863069261941, 0.0, 13.874755057524599, 10.721549376188133, 8.13522233501793, 6.198061844173813, 11.343377589496363, 5.518657382682362, 4.000506863705828, 3.668996479279842, 5.197281505381922, 3.884833802734348, 2.280606437884649, 0.8204566888054858, 0.0), # 162
(12.438641460291295, 8.833178344474314, 11.203125030631053, 11.44091774422611, 10.210408606950825, 5.050702975066952, 3.919233653520661, 3.876777541964344, 5.579732206411743, 2.0264490633456567, 1.5963292193806227, 0.956651296468205, 0.0, 13.627439165629584, 10.523164261150253, 7.9816460969031136, 6.079347190036969, 11.159464412823485, 5.427488558750082, 3.919233653520661, 3.6076449821906795, 5.105204303475412, 3.813639248075371, 2.2406250061262107, 0.8030162131340287, 0.0), # 163
(12.16927974275169, 8.627660043974105, 10.981707380512765, 11.206274408920553, 10.006839202158226, 4.954707528062387, 3.8315272639270197, 3.8038235921168018, 5.476332361618334, 1.9833147694043862, 1.562762208437759, 0.9368725333270206, 0.0, 13.35436234405979, 10.305597866597225, 7.813811042188794, 5.949944308213158, 10.952664723236667, 5.325353028963523, 3.8315272639270197, 3.5390768057588473, 5.003419601079113, 3.735424802973519, 2.1963414761025533, 0.7843327312703733, 0.0), # 164
(11.879947258074031, 8.409414984159142, 10.740137638092254, 10.95192392306614, 9.785085460844787, 4.849236442166116, 3.7378212880012396, 3.7235212387984102, 5.3621935267961875, 1.9368509695151015, 1.5265288891017337, 0.915462461867493, 0.0, 13.057161331885686, 10.070087080542422, 7.632644445508667, 5.810552908545303, 10.724387053592375, 5.2129297343177745, 3.7378212880012396, 3.4637403158329394, 4.892542730422393, 3.6506413076887143, 2.148027527618451, 0.7644922712871949, 0.0), # 165
(11.572057230183715, 8.17938947382885, 10.479774202393392, 10.679218807442627, 9.546378047469258, 4.734917429566179, 3.6385493188196576, 3.636355439862808, 5.2380199683735436, 1.8872909002921108, 1.4878147162992839, 0.8925335264544754, 0.0, 12.737472868177733, 9.817868790999228, 7.4390735814964195, 5.661872700876331, 10.476039936747087, 5.090897615807931, 3.6385493188196576, 3.3820838782615565, 4.773189023734629, 3.5597396024808767, 2.0959548404786785, 0.7435808612571683, 0.0), # 166
(11.24702288300614, 7.938529821782648, 10.201975472440058, 10.389511582829789, 9.291947626490376, 4.6123782024506115, 3.5341449494586072, 3.542811153163632, 5.104515952778639, 1.834867798349722, 1.4468051449571482, 0.8681981714528189, 0.0, 12.396933692006392, 9.550179885981006, 7.23402572478574, 5.504603395049164, 10.209031905557278, 4.959935614429085, 3.5341449494586072, 3.2945558588932937, 4.645973813245188, 3.4631705276099303, 2.040395094488012, 0.7216845292529681, 0.0), # 167
(10.906257440466712, 7.687782336819962, 9.908099847256123, 10.084154770007387, 9.023024862366888, 4.482246473007449, 3.425041772994424, 3.44337333655452, 4.962385746439713, 1.779814900302243, 1.4036856300020644, 0.8425688412273767, 0.0, 12.037180542442131, 9.268257253501142, 7.018428150010321, 5.339444700906728, 9.924771492879426, 4.820722671176328, 3.425041772994424, 3.2016046235767495, 4.511512431183444, 3.361384923335797, 1.9816199694512246, 0.6988893033472693, 0.0), # 168
(10.551174126490828, 7.428093327740216, 9.599505725865463, 9.76450088975519, 8.740840419557543, 4.3451499534247295, 3.3116733825034426, 3.338526947889109, 4.812333615785002, 1.7223654427639818, 1.3586416263607706, 0.8157579801430009, 0.0, 11.659850158555415, 8.97333778157301, 6.793208131803853, 5.167096328291944, 9.624667231570005, 4.673937727044753, 3.3116733825034426, 3.103678538160521, 4.370420209778771, 3.254833629918398, 1.9199011451730927, 0.675281211612747, 0.0), # 169
(10.18318616500389, 7.160409103342831, 9.277551507291953, 9.43190246285296, 8.44662496252108, 4.201716355890488, 3.1944733710619975, 3.228756945021036, 4.655063827242743, 1.6627526623492466, 1.311858588960005, 0.7878780325645439, 0.0, 11.2665792794167, 8.666658358209983, 6.559292944800025, 4.988257987047739, 9.310127654485486, 4.52025972302945, 3.1944733710619975, 3.0012259684932054, 4.22331248126054, 3.1439674876176547, 1.8555103014583907, 0.6509462821220756, 0.0), # 170
(9.8037067799313, 6.88567597242723, 8.943595590559468, 9.087712010080473, 8.141609155716246, 4.052573392592758, 3.0738753317464247, 3.1145482858039375, 4.491280647241173, 1.6012097956723452, 1.2635219727265048, 0.759041442856858, 0.0, 10.859004644096458, 8.349455871425437, 6.317609863632523, 4.803629387017034, 8.982561294482347, 4.360367600125513, 3.0738753317464247, 2.8946952804233987, 4.070804577858123, 3.029237336693492, 1.7887191181118935, 0.6259705429479302, 0.0), # 171
(9.414149195198457, 6.604840243792839, 8.59899637469188, 8.733282052217486, 7.827023663601784, 3.898348775719581, 2.950312857633059, 2.996385928091453, 4.321688342208532, 1.5379700793475863, 1.2138172325870082, 0.7293606553847958, 0.0, 10.438762991665145, 8.022967209232752, 6.069086162935041, 4.613910238042758, 8.643376684417063, 4.194940299328034, 2.950312857633059, 2.7845348397997007, 3.913511831800892, 2.911094017405829, 1.7197992749383764, 0.6004400221629854, 0.0), # 172
(9.015926634730764, 6.31884822623908, 8.245112258713068, 8.369965110043767, 7.504099150636442, 3.739670217458989, 2.824219541798235, 2.874754829737218, 4.146991178573053, 1.4732667499892769, 1.1629298234682535, 0.6989481145132089, 0.0, 10.007491061193234, 7.6884292596452966, 5.8146491173412675, 4.41980024996783, 8.293982357146106, 4.024656761632105, 2.824219541798235, 2.6711930124707064, 3.752049575318221, 2.7899883700145893, 1.6490224517426137, 0.5744407478399164, 0.0), # 173
(8.610452322453618, 6.028646228565374, 7.883301641646902, 7.99911370433908, 7.174066281278959, 3.57716542999902, 2.6960289773182877, 2.7501399485948705, 3.9678934227629785, 1.4073330442117262, 1.1110452002969786, 0.6679162646069503, 0.0, 9.566825591751181, 7.347078910676452, 5.555226001484892, 4.221999132635178, 7.935786845525957, 3.850195928032819, 2.6960289773182877, 2.5551181642850143, 3.5870331406394795, 2.6663712347796937, 1.5766603283293805, 0.5480587480513978, 0.0), # 174
(8.19913948229242, 5.7351805595711465, 7.514922922517262, 7.622080355883197, 6.838155719988082, 3.41146212552771, 2.566174757269552, 2.623026242518047, 3.7850993412065432, 1.3404021986292411, 1.058348817999921, 0.6363775500308723, 0.0, 9.118403322409455, 7.000153050339593, 5.291744089999604, 4.021206595887723, 7.5701986824130865, 3.6722367395252657, 2.566174757269552, 2.4367586610912215, 3.419077859994041, 2.540693451961066, 1.5029845845034526, 0.5213800508701043, 0.0), # 175
(7.783401338172574, 5.43939752805582, 7.141334500348018, 7.240217585455879, 6.497598131222556, 3.2431880162330953, 2.4350904747283635, 2.493898669360387, 3.5993132003319848, 1.2727074498561304, 1.0050261315038191, 0.6044444151498269, 0.0, 8.663860992238513, 6.648888566648095, 5.025130657519095, 3.8181223495683905, 7.1986264006639695, 3.4914581371045417, 2.4350904747283635, 2.3165628687379254, 3.248799065611278, 2.4134058618186267, 1.4282669000696038, 0.49449068436871096, 0.0), # 176
(7.364651114019479, 5.1422434428188195, 6.763894774163046, 6.8548779138368925, 6.1536241794411275, 3.0729708143032117, 2.303209722771056, 2.3632421869755245, 3.411239266567542, 1.2044820345067013, 0.9512625957354108, 0.5722293043286669, 0.0, 8.204835340308824, 6.2945223476153345, 4.756312978677054, 3.6134461035201033, 6.822478533135084, 3.3085390617657344, 2.303209722771056, 2.1949791530737226, 3.0768120897205637, 2.284959304612298, 1.3527789548326095, 0.4674766766198928, 0.0), # 177
(6.944302033758534, 4.8446646126595665, 6.383962142986221, 6.467413861806007, 5.807464529102536, 2.901438231926097, 2.170966094473966, 2.2315417532170994, 3.2215818063414514, 1.1359591891952627, 0.897243665621434, 0.5398446619322442, 0.0, 7.742963105690853, 5.938291281254685, 4.486218328107169, 3.4078775675857873, 6.443163612682903, 3.1241584545039394, 2.170966094473966, 2.072455879947212, 2.903732264551268, 2.1558046206020025, 1.2767924285972443, 0.44042405569632426, 0.0), # 178
(0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0), # 179
)
passenger_allighting_rate = (
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 0
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 1
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 2
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 3
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 4
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 5
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 6
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 7
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 8
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 9
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 10
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 11
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 12
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 13
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 14
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 15
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 16
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 17
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 18
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 19
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 20
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 21
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 22
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 23
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 24
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 25
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 26
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 27
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 28
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 29
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 30
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 31
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 32
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 33
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 34
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 35
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 36
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 37
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 38
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 39
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 40
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 41
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 42
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 43
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 44
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 45
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 46
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 47
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 48
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 49
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 50
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 51
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 52
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 53
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 54
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 55
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 56
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 57
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 58
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 59
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 60
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 61
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 62
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 63
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 64
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 65
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 66
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 67
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 68
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 69
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 70
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 71
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 72
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 73
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 74
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 75
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 76
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 77
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 78
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 79
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 80
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 81
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 82
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 83
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 84
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 85
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 86
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 87
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 88
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 89
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 90
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 91
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 92
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 93
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 94
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 95
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 96
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 97
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 98
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 99
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 100
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 101
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 102
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 103
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 104
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 105
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 106
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 107
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 108
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 109
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 110
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 111
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 112
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 113
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 114
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 115
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 116
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 117
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 118
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 119
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 120
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 121
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 122
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 123
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 124
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 125
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 126
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 127
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 128
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 129
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 130
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 131
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 132
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 133
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 134
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 135
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 136
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 137
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 138
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 139
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 140
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 141
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 142
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 143
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 144
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 145
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 146
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 147
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 148
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 149
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 150
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 151
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 152
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 153
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 154
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 155
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 156
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 157
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 158
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 159
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 160
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 161
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 162
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 163
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 164
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 165
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 166
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 167
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 168
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 169
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 170
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 171
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 172
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 173
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 174
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 175
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 176
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 177
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 178
(0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1, 0, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 0.07692307692307693, 1), # 179
)
"""
parameters for reproducibiliy. More information: https://numpy.org/doc/stable/reference/random/parallel.html
"""
#initial entropy
entropy = 8991598675325360468762009371570610170
#index for seed sequence child
child_seed_index = (
1, # 0
34, # 1
)
| 278.328342 | 490 | 0.77127 | 32,987 | 260,237 | 6.084276 | 0.234213 | 0.355153 | 0.340804 | 0.645733 | 0.366484 | 0.361611 | 0.360963 | 0.360644 | 0.360644 | 0.360644 | 0 | 0.851042 | 0.095044 | 260,237 | 934 | 491 | 278.626338 | 0.001185 | 0.015413 | 0 | 0.200873 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | false | 0.005459 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
92d9ffcd3a1935b88511b0d58a7e6b2224743447 | 161 | py | Python | tracardi/service/dot_notation_validator.py | bytepl/tracardi | e8fa4684fa6bd3d05165fe48aa925fc6c1e74923 | [
"MIT"
] | 153 | 2021-11-02T00:35:41.000Z | 2022-03-25T16:37:44.000Z | tracardi/service/dot_notation_validator.py | bytepl/tracardi | e8fa4684fa6bd3d05165fe48aa925fc6c1e74923 | [
"MIT"
] | 243 | 2021-10-17T17:00:22.000Z | 2022-03-28T10:13:34.000Z | tracardi/service/dot_notation_validator.py | bytepl/tracardi | e8fa4684fa6bd3d05165fe48aa925fc6c1e74923 | [
"MIT"
] | 14 | 2021-10-17T11:39:04.000Z | 2022-03-14T14:44:02.000Z | import re
def is_dot_notation_valid(value: str) -> bool:
return re.fullmatch(r"(payload|event|flow|profile|session)@[a-zA-Z0-9_.\-]*$", value) is not None
| 26.833333 | 101 | 0.701863 | 27 | 161 | 4.037037 | 0.888889 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.014085 | 0.118012 | 161 | 5 | 102 | 32.2 | 0.753521 | 0 | 0 | 0 | 0 | 0 | 0.335404 | 0.335404 | 0 | 0 | 0 | 0 | 0 | 1 | 0.333333 | false | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
92e78734992ba5252c3e56ba944aef6f928074ce | 227 | py | Python | cognibench/models/decision_making/__init__.py | fmelinscak/cognibench | 372513b8756a342c0df222dcea5ff6d1d69fbcec | [
"MIT"
] | 3 | 2020-07-31T00:42:40.000Z | 2021-03-19T03:08:19.000Z | cognibench/models/decision_making/__init__.py | fmelinscak/cognibench | 372513b8756a342c0df222dcea5ff6d1d69fbcec | [
"MIT"
] | null | null | null | cognibench/models/decision_making/__init__.py | fmelinscak/cognibench | 372513b8756a342c0df222dcea5ff6d1d69fbcec | [
"MIT"
] | 1 | 2020-11-13T23:13:34.000Z | 2020-11-13T23:13:34.000Z | from .randomrespond import RandomRespondModel
from .rwck import RWCKModel, RWModel, CKModel
from .nwsls import NWSLSModel
from .randomrespond import RandomRespondAgent
from .rwck import RWCKAgent
from .nwsls import NWSLSAgent
| 28.375 | 45 | 0.845815 | 26 | 227 | 7.384615 | 0.5 | 0.177083 | 0.239583 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.118943 | 227 | 7 | 46 | 32.428571 | 0.96 | 0 | 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 | 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 | 6 |
13244498b461c7a69d70944f0f0b99dcb9b3eaa6 | 148 | py | Python | graphgallery/gallery/__init__.py | TobiasSchmidtDE/GraphGallery | e627e4f454e0ce3813171305a524f5190a6e6f45 | [
"MIT"
] | null | null | null | graphgallery/gallery/__init__.py | TobiasSchmidtDE/GraphGallery | e627e4f454e0ce3813171305a524f5190a6e6f45 | [
"MIT"
] | null | null | null | graphgallery/gallery/__init__.py | TobiasSchmidtDE/GraphGallery | e627e4f454e0ce3813171305a524f5190a6e6f45 | [
"MIT"
] | null | null | null | from .model import Model
from .trainer import Trainer
from . import nodeclas
from . import linkpred
from . import graphclas
from . import embedding
| 21.142857 | 28 | 0.797297 | 20 | 148 | 5.9 | 0.4 | 0.338983 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.162162 | 148 | 6 | 29 | 24.666667 | 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 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
13342b3560c799c1e91ab850d15461955bbcc0a3 | 33 | py | Python | hack_itau_quant/denoising/__init__.py | turing-usp/hack-itau-quant | f743d3a58ad2aacc7d7ec499ba4bf5bbadd7fb15 | [
"MIT"
] | 2 | 2021-05-18T18:54:42.000Z | 2021-07-04T04:16:40.000Z | hack_itau_quant/denoising/__init__.py | turing-usp/hack-itau-quant | f743d3a58ad2aacc7d7ec499ba4bf5bbadd7fb15 | [
"MIT"
] | 3 | 2021-05-11T01:05:23.000Z | 2021-05-11T01:05:35.000Z | hack_itau_quant/denoising/__init__.py | turing-usp/hack-itau-quant | f743d3a58ad2aacc7d7ec499ba4bf5bbadd7fb15 | [
"MIT"
] | 1 | 2022-01-11T20:02:07.000Z | 2022-01-11T20:02:07.000Z | from .denoising import Denoising
| 16.5 | 32 | 0.848485 | 4 | 33 | 7 | 0.75 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.121212 | 33 | 1 | 33 | 33 | 0.965517 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
13488043021c1d254443906fa62b84eebc42aced | 99 | py | Python | onadata/settings/__init__.py | ubpd/kobocat | 45906e07e8f05c30e3e26bab5570a8ab1ee264db | [
"BSD-2-Clause"
] | null | null | null | onadata/settings/__init__.py | ubpd/kobocat | 45906e07e8f05c30e3e26bab5570a8ab1ee264db | [
"BSD-2-Clause"
] | null | null | null | onadata/settings/__init__.py | ubpd/kobocat | 45906e07e8f05c30e3e26bab5570a8ab1ee264db | [
"BSD-2-Clause"
] | null | null | null | # coding: utf-8
from __future__ import unicode_literals, print_function, division, absolute_import
| 33 | 82 | 0.838384 | 13 | 99 | 5.846154 | 0.923077 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011236 | 0.10101 | 99 | 2 | 83 | 49.5 | 0.842697 | 0.131313 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 0 | 6 |
1383ef8ada6e7c376ec0cccdb017f40124706824 | 34,639 | py | Python | corehq/messaging/scheduling/tests/test_recipients.py | dankohn/commcare-hq | 42c40ad5881485d5192aab3dea5696942ee40810 | [
"BSD-3-Clause"
] | null | null | null | corehq/messaging/scheduling/tests/test_recipients.py | dankohn/commcare-hq | 42c40ad5881485d5192aab3dea5696942ee40810 | [
"BSD-3-Clause"
] | null | null | null | corehq/messaging/scheduling/tests/test_recipients.py | dankohn/commcare-hq | 42c40ad5881485d5192aab3dea5696942ee40810 | [
"BSD-3-Clause"
] | null | null | null | import contextlib
import uuid
from datetime import time
from django.test import TestCase
from mock import patch
from corehq.apps.casegroups.models import CommCareCaseGroup
from corehq.apps.data_interfaces.tests.util import create_case
from corehq.apps.domain.shortcuts import create_domain
from corehq.apps.groups.models import Group
from corehq.apps.hqcase.utils import update_case
from corehq.apps.locations.models import SQLLocation
from corehq.apps.locations.tests.util import make_loc, setup_location_types
from corehq.apps.sms.models import PhoneNumber
from corehq.apps.users.models import CommCareUser, WebUser
from corehq.form_processor.interfaces.dbaccessors import CaseAccessors
from corehq.form_processor.tests.utils import run_with_all_backends
from corehq.form_processor.utils import is_commcarecase
from corehq.messaging.pillow import get_case_messaging_sync_pillow
from corehq.messaging.scheduling.models import (
Content,
SMSContent,
TimedEvent,
TimedSchedule,
)
from corehq.messaging.scheduling.scheduling_partitioned.models import (
CaseScheduleInstanceMixin,
CaseTimedScheduleInstance,
ScheduleInstance,
)
from corehq.messaging.scheduling.tests.util import delete_timed_schedules
from corehq.util.test_utils import create_test_case, set_parent_case
from testapps.test_pillowtop.utils import process_pillow_changes
class SchedulingRecipientTest(TestCase):
domain = 'scheduling-recipient-test'
@classmethod
def setUpClass(cls):
super(SchedulingRecipientTest, cls).setUpClass()
cls.domain_obj = create_domain(cls.domain)
cls.location_types = setup_location_types(cls.domain, ['country', 'state', 'city'])
cls.country_location = make_loc('usa', domain=cls.domain, type='country')
cls.state_location = make_loc('ma', domain=cls.domain, type='state', parent=cls.country_location)
cls.city_location = make_loc('boston', domain=cls.domain, type='city', parent=cls.state_location)
cls.mobile_user = CommCareUser.create(cls.domain, 'mobile', 'abc', None, None)
cls.mobile_user.set_location(cls.city_location)
cls.mobile_user2 = CommCareUser.create(cls.domain, 'mobile2', 'abc', None, None)
cls.mobile_user2.set_location(cls.state_location)
cls.mobile_user3 = CommCareUser.create(cls.domain, 'mobile3', 'abc', None, None)
cls.mobile_user3.user_data['role'] = 'pharmacist'
cls.mobile_user3.save()
cls.mobile_user4 = CommCareUser.create(cls.domain, 'mobile4', 'abc', None, None)
cls.mobile_user4.user_data['role'] = 'nurse'
cls.mobile_user4.save()
cls.mobile_user5 = CommCareUser.create(cls.domain, 'mobile5', 'abc', None, None)
cls.mobile_user5.user_data['role'] = ['nurse', 'pharmacist']
cls.mobile_user5.save()
cls.web_user = WebUser.create(cls.domain, 'web', 'abc', None, None)
cls.web_user2 = WebUser.create(cls.domain, 'web2', 'abc', None, None)
cls.web_user2.user_data['role'] = 'nurse'
cls.web_user2.save()
cls.group = Group(domain=cls.domain, users=[cls.mobile_user.get_id])
cls.group.save()
cls.group2 = Group(
domain=cls.domain,
users=[
cls.mobile_user.get_id,
cls.mobile_user3.get_id,
cls.mobile_user4.get_id,
cls.mobile_user5.get_id,
]
)
cls.group2.save()
cls.case_group = CommCareCaseGroup(domain=cls.domain)
cls.case_group.save()
cls.process_pillow_changes = process_pillow_changes('DefaultChangeFeedPillow')
cls.process_pillow_changes.add_pillow(get_case_messaging_sync_pillow())
@classmethod
def tearDownClass(cls):
cls.domain_obj.delete()
super(SchedulingRecipientTest, cls).tearDownClass()
def tearDown(self):
delete_timed_schedules(self.domain)
PhoneNumber.objects.filter(domain=self.domain).delete()
super(SchedulingRecipientTest, self).tearDown()
def user_ids(self, users):
return [user.get_id for user in users]
@run_with_all_backends
def test_specific_case_recipient(self):
with create_case(self.domain, 'person') as case:
instance = ScheduleInstance(
domain=self.domain,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_CASE,
recipient_id=case.case_id,
)
self.assertEqual(instance.recipient.case_id, case.case_id)
instance = ScheduleInstance(
domain=self.domain,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_CASE,
recipient_id='id-does-not-exist',
)
self.assertIsNone(instance.recipient)
def test_specific_mobile_worker_recipient(self):
instance = ScheduleInstance(
domain=self.domain,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_MOBILE_WORKER,
recipient_id=self.mobile_user.get_id,
)
self.assertTrue(isinstance(instance.recipient, CommCareUser))
self.assertEqual(instance.recipient.get_id, self.mobile_user.get_id)
instance = ScheduleInstance(
domain=self.domain,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_MOBILE_WORKER,
recipient_id=self.web_user.get_id,
)
self.assertIsNone(instance.recipient)
instance = ScheduleInstance(
domain=self.domain,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_MOBILE_WORKER,
recipient_id='id-does-not-exist',
)
self.assertIsNone(instance.recipient)
def test_specific_web_user_recipient(self):
instance = ScheduleInstance(
domain=self.domain,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_WEB_USER,
recipient_id=self.web_user.get_id,
)
self.assertTrue(isinstance(instance.recipient, WebUser))
self.assertEqual(instance.recipient.get_id, self.web_user.get_id)
instance = ScheduleInstance(
domain=self.domain,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_WEB_USER,
recipient_id=self.mobile_user.get_id,
)
self.assertIsNone(instance.recipient)
instance = ScheduleInstance(
domain=self.domain,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_WEB_USER,
recipient_id='id-does-not-exist',
)
self.assertIsNone(instance.recipient)
def test_specific_case_group_recipient(self):
instance = ScheduleInstance(
domain=self.domain,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_CASE_GROUP,
recipient_id=self.case_group.get_id,
)
self.assertTrue(isinstance(instance.recipient, CommCareCaseGroup))
self.assertEqual(instance.recipient.get_id, self.case_group.get_id)
instance = ScheduleInstance(
domain=self.domain,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_CASE_GROUP,
recipient_id='id-does-not-exist',
)
self.assertIsNone(instance.recipient)
def test_specific_group_recipient(self):
instance = ScheduleInstance(
domain=self.domain,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_USER_GROUP,
recipient_id=self.group.get_id,
)
self.assertTrue(isinstance(instance.recipient, Group))
self.assertEqual(instance.recipient.get_id, self.group.get_id)
instance = ScheduleInstance(
domain=self.domain,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_USER_GROUP,
recipient_id='id-does-not-exist',
)
self.assertIsNone(instance.recipient)
def test_specific_location_recipient(self):
instance = ScheduleInstance(
domain=self.domain,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_LOCATION,
recipient_id=self.city_location.location_id,
)
self.assertTrue(isinstance(instance.recipient, SQLLocation))
self.assertEqual(instance.recipient.location_id, self.city_location.location_id)
instance = ScheduleInstance(
domain=self.domain,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_LOCATION,
recipient_id='id-does-not-exist',
)
self.assertIsNone(instance.recipient)
@run_with_all_backends
def test_case_recipient(self):
with create_case(self.domain, 'person') as case:
instance = CaseTimedScheduleInstance(domain=self.domain, case_id=case.case_id, recipient_type='Self')
self.assertTrue(is_commcarecase(instance.recipient))
self.assertEqual(instance.recipient.case_id, case.case_id)
@run_with_all_backends
def test_owner_recipient(self):
with create_case(self.domain, 'person', owner_id=self.city_location.location_id) as case:
instance = CaseTimedScheduleInstance(domain=self.domain, case_id=case.case_id, recipient_type='Owner')
self.assertTrue(isinstance(instance.recipient, SQLLocation))
self.assertEqual(instance.recipient.location_id, self.city_location.location_id)
with create_case(self.domain, 'person', owner_id=self.group.get_id) as case:
instance = CaseTimedScheduleInstance(domain=self.domain, case_id=case.case_id, recipient_type='Owner')
self.assertTrue(isinstance(instance.recipient, Group))
self.assertEqual(instance.recipient.get_id, self.group.get_id)
with create_case(self.domain, 'person', owner_id=self.mobile_user.get_id) as case:
instance = CaseTimedScheduleInstance(domain=self.domain, case_id=case.case_id, recipient_type='Owner')
self.assertTrue(isinstance(instance.recipient, CommCareUser))
self.assertEqual(instance.recipient.get_id, self.mobile_user.get_id)
with create_case(self.domain, 'person', owner_id=self.web_user.get_id) as case:
instance = CaseTimedScheduleInstance(domain=self.domain, case_id=case.case_id, recipient_type='Owner')
self.assertTrue(isinstance(instance.recipient, WebUser))
self.assertEqual(instance.recipient.get_id, self.web_user.get_id)
with create_case(self.domain, 'person') as case:
instance = CaseTimedScheduleInstance(domain=self.domain, case_id=case.case_id, recipient_type='Owner')
self.assertIsNone(instance.recipient)
@run_with_all_backends
def test_last_submitting_user_recipient(self):
with create_test_case(self.domain, 'person', 'Joe', user_id=self.mobile_user.get_id) as case:
instance = CaseTimedScheduleInstance(domain=self.domain, case_id=case.case_id,
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_LAST_SUBMITTING_USER)
self.assertTrue(isinstance(instance.recipient, CommCareUser))
self.assertEqual(instance.recipient.get_id, self.mobile_user.get_id)
with create_test_case(self.domain, 'person', 'Joe', user_id=self.web_user.get_id) as case:
instance = CaseTimedScheduleInstance(domain=self.domain, case_id=case.case_id,
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_LAST_SUBMITTING_USER)
self.assertTrue(isinstance(instance.recipient, WebUser))
self.assertEqual(instance.recipient.get_id, self.web_user.get_id)
with create_test_case(self.domain, 'person', 'Joe', user_id='system') as case:
instance = CaseTimedScheduleInstance(domain=self.domain, case_id=case.case_id,
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_LAST_SUBMITTING_USER)
self.assertIsNone(instance.recipient)
@run_with_all_backends
def test_parent_case_recipient(self):
with create_case(self.domain, 'person') as child, create_case(self.domain, 'person') as parent:
instance = CaseTimedScheduleInstance(domain=self.domain, case_id=child.case_id,
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_PARENT_CASE)
self.assertIsNone(instance.recipient)
set_parent_case(self.domain, child, parent, relationship='child', identifier='parent')
instance = CaseTimedScheduleInstance(domain=self.domain, case_id=child.case_id,
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_PARENT_CASE)
self.assertEqual(instance.recipient.case_id, parent.case_id)
@run_with_all_backends
def test_child_case_recipient(self):
with create_case(self.domain, 'person') as child_1, \
create_case(self.domain, 'person') as child_2, \
create_case(self.domain, 'person') as parent:
instance = CaseTimedScheduleInstance(domain=self.domain, case_id=parent.case_id,
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_ALL_CHILD_CASES)
self.assertIsInstance(instance.recipient, list)
self.assertEqual(len(instance.recipient), 0)
set_parent_case(self.domain, child_1, parent, relationship='child', identifier='parent')
set_parent_case(self.domain, child_2, parent, relationship='child', identifier='parent')
instance = CaseTimedScheduleInstance(domain=self.domain, case_id=parent.case_id,
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_ALL_CHILD_CASES)
self.assertIsInstance(instance.recipient, list)
self.assertEqual(len(instance.recipient), 2)
self.assertItemsEqual([c.case_id for c in instance.recipient], [child_1.case_id, child_2.case_id])
@run_with_all_backends
def test_host_case_owner_location(self):
with create_test_case(self.domain, 'test-extension-case', 'name') as extension_case:
with create_test_case(self.domain, 'test-host-case', 'name') as host_case:
update_case(self.domain, host_case.case_id,
case_properties={'owner_id': self.city_location.location_id})
set_parent_case(self.domain, extension_case, host_case, relationship='extension')
# Test the recipient is returned correctly
instance = CaseTimedScheduleInstance(
domain=self.domain,
case_id=extension_case.case_id,
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_CUSTOM,
recipient_id='HOST_CASE_OWNER_LOCATION',
)
self.assertIsInstance(instance.recipient, SQLLocation)
self.assertEqual(instance.recipient.location_id, self.city_location.location_id)
# Test location that does not exist
update_case(self.domain, host_case.case_id, case_properties={'owner_id': 'does-not-exist'})
instance = CaseTimedScheduleInstance(
domain=self.domain,
case_id=extension_case.case_id,
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_CUSTOM,
recipient_id='HOST_CASE_OWNER_LOCATION',
)
self.assertIsNone(instance.recipient)
# Test on a case that is not an extension case
instance = CaseTimedScheduleInstance(
domain=self.domain,
case_id=host_case.case_id,
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_CUSTOM,
recipient_id='HOST_CASE_OWNER_LOCATION',
)
self.assertIsNone(instance.recipient)
# Test with case id that doesn't exist
instance = CaseTimedScheduleInstance(
domain=self.domain,
case_id='does-not-exist',
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_CUSTOM,
recipient_id='HOST_CASE_OWNER_LOCATION',
)
self.assertIsNone(instance.recipient)
@run_with_all_backends
def test_host_case_owner_location_parent(self):
with create_test_case(self.domain, 'test-extension-case', 'name') as extension_case:
with create_test_case(self.domain, 'test-host-case', 'name') as host_case:
update_case(self.domain, host_case.case_id,
case_properties={'owner_id': self.city_location.location_id})
set_parent_case(self.domain, extension_case, host_case, relationship='extension')
# Test the recipient is returned correctly
instance = CaseTimedScheduleInstance(
domain=self.domain,
case_id=extension_case.case_id,
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_CUSTOM,
recipient_id='HOST_CASE_OWNER_LOCATION_PARENT',
)
self.assertIsInstance(instance.recipient, SQLLocation)
self.assertEqual(instance.recipient.location_id, self.state_location.location_id)
# Test no parent location
update_case(self.domain, host_case.case_id,
case_properties={'owner_id': self.country_location.location_id})
instance = CaseTimedScheduleInstance(
domain=self.domain,
case_id=extension_case.case_id,
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_CUSTOM,
recipient_id='HOST_CASE_OWNER_LOCATION_PARENT',
)
self.assertIsNone(instance.recipient)
# Test location that does not exist
update_case(self.domain, host_case.case_id, case_properties={'owner_id': 'does-not-exist'})
instance = CaseTimedScheduleInstance(
domain=self.domain,
case_id=extension_case.case_id,
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_CUSTOM,
recipient_id='HOST_CASE_OWNER_LOCATION_PARENT',
)
self.assertIsNone(instance.recipient)
# Test on a case that is not an extension case
instance = CaseTimedScheduleInstance(
domain=self.domain,
case_id=host_case.case_id,
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_CUSTOM,
recipient_id='HOST_CASE_OWNER_LOCATION_PARENT',
)
self.assertIsNone(instance.recipient)
# Test with case id that doesn't exist
instance = CaseTimedScheduleInstance(
domain=self.domain,
case_id='does-not-exist',
recipient_type=CaseScheduleInstanceMixin.RECIPIENT_TYPE_CUSTOM,
recipient_id='HOST_CASE_OWNER_LOCATION_PARENT',
)
self.assertIsNone(instance.recipient)
def test_expand_location_recipients_without_descendants(self):
schedule = TimedSchedule.create_simple_daily_schedule(
self.domain,
TimedEvent(time=time(9, 0)),
SMSContent(message={'en': 'Hello'})
)
schedule.include_descendant_locations = False
schedule.save()
instance = CaseTimedScheduleInstance(
domain=self.domain,
timed_schedule_id=schedule.schedule_id,
recipient_type='Location',
recipient_id=self.country_location.location_id
)
self.assertEqual(
list(instance.expand_recipients()),
[]
)
instance = CaseTimedScheduleInstance(
domain=self.domain,
timed_schedule_id=schedule.schedule_id,
recipient_type='Location',
recipient_id=self.state_location.location_id
)
self.assertEqual(
self.user_ids(instance.expand_recipients()),
[self.mobile_user2.get_id]
)
def test_expand_location_recipients_with_descendants(self):
schedule = TimedSchedule.create_simple_daily_schedule(
self.domain,
TimedEvent(time=time(9, 0)),
SMSContent(message={'en': 'Hello'})
)
schedule.include_descendant_locations = True
schedule.save()
instance = CaseTimedScheduleInstance(
domain=self.domain,
timed_schedule_id=schedule.schedule_id,
recipient_type='Location',
recipient_id=self.state_location.location_id
)
self.assertItemsEqual(
self.user_ids(instance.expand_recipients()),
[self.mobile_user.get_id, self.mobile_user2.get_id]
)
def test_expand_location_recipients_with_location_type_filter(self):
schedule = TimedSchedule.create_simple_daily_schedule(
self.domain,
TimedEvent(time=time(9, 0)),
SMSContent(message={'en': 'Hello'})
)
schedule.include_descendant_locations = True
schedule.location_type_filter = [self.city_location.location_type_id]
schedule.save()
instance = CaseTimedScheduleInstance(
domain=self.domain,
timed_schedule_id=schedule.schedule_id,
recipient_type='Location',
recipient_id=self.country_location.location_id
)
self.assertItemsEqual(
self.user_ids(instance.expand_recipients()),
[self.mobile_user.get_id]
)
def test_expand_group_recipients(self):
schedule = TimedSchedule.create_simple_daily_schedule(
self.domain,
TimedEvent(time=time(9, 0)),
SMSContent(message={'en': 'Hello'})
)
instance = CaseTimedScheduleInstance(
domain=self.domain,
timed_schedule_id=schedule.schedule_id,
recipient_type='Group',
recipient_id=self.group.get_id
)
self.assertEqual(
self.user_ids(instance.expand_recipients()),
[self.mobile_user.get_id]
)
def test_mobile_worker_recipients_with_user_data_filter(self):
schedule = TimedSchedule.create_simple_daily_schedule(
self.domain,
TimedEvent(time=time(9, 0)),
SMSContent(message={'en': 'Hello'})
)
schedule.user_data_filter = {'role': ['nurse']}
schedule.save()
instance = CaseTimedScheduleInstance(
domain=self.domain,
timed_schedule_id=schedule.schedule_id,
recipient_type='Group',
recipient_id=self.group2.get_id
)
self.assertEqual(
self.user_ids(instance.expand_recipients()),
[self.mobile_user4.get_id, self.mobile_user5.get_id]
)
def test_web_user_recipient_with_user_data_filter(self):
schedule = TimedSchedule.create_simple_daily_schedule(
self.domain,
TimedEvent(time=time(9, 0)),
SMSContent(message={'en': 'Hello'})
)
schedule.user_data_filter = {'role': ['nurse']}
schedule.save()
instance = CaseTimedScheduleInstance(
domain=self.domain,
timed_schedule_id=schedule.schedule_id,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_WEB_USER,
recipient_id=self.web_user.get_id,
)
self.assertEqual(list(instance.expand_recipients()), [])
instance = CaseTimedScheduleInstance(
domain=self.domain,
timed_schedule_id=schedule.schedule_id,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_WEB_USER,
recipient_id=self.web_user2.get_id,
)
recipients = list(instance.expand_recipients())
self.assertEqual(len(recipients), 1)
self.assertIsInstance(recipients[0], WebUser)
self.assertEqual(recipients[0].get_id, self.web_user2.get_id)
@run_with_all_backends
def test_case_group_recipient_with_user_data_filter(self):
# The user data filter should have no effect here because all
# the recipients are cases.
schedule = TimedSchedule.create_simple_daily_schedule(
self.domain,
TimedEvent(time=time(9, 0)),
SMSContent(message={'en': 'Hello'})
)
schedule.user_data_filter = {'role': ['nurse']}
schedule.save()
with create_case(self.domain, 'person') as case:
case_group = CommCareCaseGroup(domain=self.domain, cases=[case.case_id])
case_group.save()
self.addCleanup(case_group.delete)
instance = CaseTimedScheduleInstance(
domain=self.domain,
timed_schedule_id=schedule.schedule_id,
recipient_type=ScheduleInstance.RECIPIENT_TYPE_CASE_GROUP,
recipient_id=case_group.get_id,
)
recipients = list(instance.expand_recipients())
self.assertEqual(len(recipients), 1)
self.assertEqual(recipients[0].case_id, case.case_id)
def create_user_case(self, user):
create_case_kwargs = {
'external_id': user.get_id,
'update': {'hq_user_id': user.get_id},
}
return create_case(self.domain, 'commcare-user', **create_case_kwargs)
def assertPhoneEntryCount(self, count, only_count_two_way=False):
qs = PhoneNumber.objects.filter(domain=self.domain)
if only_count_two_way:
qs = qs.filter(is_two_way=True)
self.assertEqual(qs.count(), count)
def assertTwoWayEntry(self, entry, expected_phone_number):
self.assertTrue(isinstance(entry, PhoneNumber))
self.assertEqual(entry.phone_number, expected_phone_number)
self.assertTrue(entry.is_two_way)
@run_with_all_backends
def test_one_way_numbers(self):
user1 = CommCareUser.create(self.domain, uuid.uuid4().hex, 'abc', None, None)
user2 = CommCareUser.create(self.domain, uuid.uuid4().hex, 'abc', None, None)
user3 = CommCareUser.create(self.domain, uuid.uuid4().hex, 'abc', None, None)
self.addCleanup(user1.delete)
self.addCleanup(user2.delete)
self.addCleanup(user3.delete)
self.assertIsNone(user1.memoized_usercase)
self.assertIsNone(Content.get_two_way_entry_or_phone_number(user1))
with self.create_user_case(user2) as case:
self.assertIsNotNone(user2.memoized_usercase)
self.assertIsNone(Content.get_two_way_entry_or_phone_number(user2))
self.assertIsNone(Content.get_two_way_entry_or_phone_number(case))
with self.create_user_case(user3) as case:
# If the user has no number, the user case's number is used
update_case(self.domain, case.case_id, case_properties={'contact_phone_number': '12345678'})
case = CaseAccessors(self.domain).get_case(case.case_id)
self.assertPhoneEntryCount(1)
self.assertPhoneEntryCount(0, only_count_two_way=True)
self.assertIsNotNone(user3.memoized_usercase)
self.assertEqual(Content.get_two_way_entry_or_phone_number(user3), '12345678')
# If the user has a number, it is used before the user case's number
user3.add_phone_number('87654321')
user3.save()
self.assertPhoneEntryCount(2)
self.assertPhoneEntryCount(0, only_count_two_way=True)
self.assertEqual(Content.get_two_way_entry_or_phone_number(user3), '87654321')
# Referencing the case directly uses the case's phone number
self.assertEqual(Content.get_two_way_entry_or_phone_number(case), '12345678')
@run_with_all_backends
def test_ignoring_entries(self):
with create_case(self.domain, 'person') as case:
update_case(self.domain, case.case_id,
case_properties={'contact_phone_number': '12345', 'contact_phone_number_is_verified': '1'})
self.assertPhoneEntryCount(1)
self.assertPhoneEntryCount(1, only_count_two_way=True)
with patch('corehq.apps.sms.tasks.use_phone_entries') as patch1, \
patch('corehq.messaging.tasks.use_phone_entries') as patch2, \
patch('corehq.messaging.scheduling.models.abstract.use_phone_entries') as patch3:
patch1.return_value = patch2.return_value = patch3.return_value = False
update_case(self.domain, case.case_id, case_properties={'contact_phone_number': '23456'})
case = CaseAccessors(self.domain).get_case(case.case_id)
self.assertPhoneEntryCount(1)
self.assertPhoneEntryCount(1, only_count_two_way=True)
self.assertTwoWayEntry(PhoneNumber.objects.get(owner_id=case.case_id), '12345')
self.assertEqual(Content.get_two_way_entry_or_phone_number(case), '23456')
def _test_two_way_numbers(self, change_context_manager):
user1 = CommCareUser.create(self.domain, uuid.uuid4().hex, 'abc', None, None)
user2 = CommCareUser.create(self.domain, uuid.uuid4().hex, 'abc', None, None)
user3 = CommCareUser.create(self.domain, uuid.uuid4().hex, 'abc', None, None)
self.addCleanup(user1.delete)
self.addCleanup(user2.delete)
self.addCleanup(user3.delete)
self.assertIsNone(user1.memoized_usercase)
self.assertIsNone(Content.get_two_way_entry_or_phone_number(user1))
with change_context_manager:
with self.create_user_case(user2) as case:
self.assertIsNotNone(user2.memoized_usercase)
self.assertIsNone(Content.get_two_way_entry_or_phone_number(user2))
self.assertIsNone(Content.get_two_way_entry_or_phone_number(case))
with self.create_user_case(user3) as case:
# If the user has no number, the user case's number is used
with change_context_manager:
update_case(self.domain, case.case_id,
case_properties={'contact_phone_number': '12345678', 'contact_phone_number_is_verified': '1'})
case = CaseAccessors(self.domain).get_case(case.case_id)
self.assertPhoneEntryCount(1)
self.assertPhoneEntryCount(1, only_count_two_way=True)
self.assertIsNotNone(user3.memoized_usercase)
self.assertTwoWayEntry(Content.get_two_way_entry_or_phone_number(user3), '12345678')
# If the user has a number, it is used before the user case's number
user3.add_phone_number('87654321')
user3.save()
PhoneNumber.objects.get(phone_number='87654321').set_two_way()
self.assertPhoneEntryCount(2)
self.assertPhoneEntryCount(2, only_count_two_way=True)
self.assertTwoWayEntry(Content.get_two_way_entry_or_phone_number(user3), '87654321')
# Referencing the case directly uses the case's phone number
self.assertTwoWayEntry(Content.get_two_way_entry_or_phone_number(case), '12345678')
@run_with_all_backends
def test_two_way_numbers_with_signal_task(self):
nullcontext = contextlib.suppress()
self._test_two_way_numbers(nullcontext)
@run_with_all_backends
@patch('corehq.messaging.signals.sync_case_for_messaging')
def test_two_way_numbers_with_pillow(self, _):
self._test_two_way_numbers(self.process_pillow_changes)
@run_with_all_backends
def test_not_using_phone_entries(self):
with patch('corehq.apps.sms.tasks.use_phone_entries') as patch1, \
patch('corehq.messaging.tasks.use_phone_entries') as patch2, \
patch('corehq.messaging.scheduling.models.abstract.use_phone_entries') as patch3:
patch1.return_value = patch2.return_value = patch3.return_value = False
user1 = CommCareUser.create(self.domain, uuid.uuid4().hex, 'abc', None, None)
user2 = CommCareUser.create(self.domain, uuid.uuid4().hex, 'abc', None, None)
user3 = CommCareUser.create(self.domain, uuid.uuid4().hex, 'abc', None, None)
self.addCleanup(user1.delete)
self.addCleanup(user2.delete)
self.addCleanup(user3.delete)
self.assertIsNone(user1.memoized_usercase)
self.assertIsNone(Content.get_two_way_entry_or_phone_number(user1))
with self.create_user_case(user2) as case:
self.assertIsNotNone(user2.memoized_usercase)
self.assertIsNone(Content.get_two_way_entry_or_phone_number(user2))
self.assertIsNone(Content.get_two_way_entry_or_phone_number(case))
with self.create_user_case(user3) as case:
# If the user has no number, the user case's number is used
update_case(self.domain, case.case_id, case_properties={'contact_phone_number': '12345678'})
case = CaseAccessors(self.domain).get_case(case.case_id)
self.assertPhoneEntryCount(0)
self.assertIsNotNone(user3.memoized_usercase)
self.assertEqual(Content.get_two_way_entry_or_phone_number(user3), '12345678')
# If the user has a number, it is used before the user case's number
user3.add_phone_number('87654321')
user3.save()
self.assertPhoneEntryCount(0)
self.assertEqual(Content.get_two_way_entry_or_phone_number(user3), '87654321')
# Referencing the case directly uses the case's phone number
self.assertEqual(Content.get_two_way_entry_or_phone_number(case), '12345678')
@run_with_all_backends
def test_phone_number_preference(self):
user = CommCareUser.create(self.domain, uuid.uuid4().hex, 'abc', None, None)
self.addCleanup(user.delete)
user.add_phone_number('12345')
user.add_phone_number('23456')
user.add_phone_number('34567')
user.save()
self.assertPhoneEntryCount(3)
self.assertPhoneEntryCount(0, only_count_two_way=True)
self.assertEqual(Content.get_two_way_entry_or_phone_number(user), '12345')
PhoneNumber.objects.get(phone_number='23456').set_two_way()
self.assertPhoneEntryCount(3)
self.assertPhoneEntryCount(1, only_count_two_way=True)
self.assertTwoWayEntry(Content.get_two_way_entry_or_phone_number(user), '23456')
| 45.697889 | 114 | 0.667052 | 3,849 | 34,639 | 5.723045 | 0.063913 | 0.048575 | 0.034865 | 0.060514 | 0.81982 | 0.788723 | 0.76253 | 0.756673 | 0.747367 | 0.738106 | 0 | 0.012559 | 0.243743 | 34,639 | 757 | 115 | 45.758256 | 0.828333 | 0.028147 | 0 | 0.615137 | 0 | 0 | 0.053265 | 0.020539 | 0 | 0 | 0 | 0 | 0.193237 | 1 | 0.05475 | false | 0 | 0.037037 | 0.00161 | 0.098229 | 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 | 0 | 0 | 0 | 6 |
139b1bd1b5a940f5f6e6bcaddef075cd41fa2dc7 | 25 | py | Python | gym_doom/wrappers/__init__.py | MarvineGothic/gym_doom | 5cda5bbb52c0e82e9fd2ed355d2c7e84c767603b | [
"MIT"
] | 1 | 2019-12-21T11:03:02.000Z | 2019-12-21T11:03:02.000Z | gym_doom/wrappers/__init__.py | MarvineGothic/gym_doom | 5cda5bbb52c0e82e9fd2ed355d2c7e84c767603b | [
"MIT"
] | null | null | null | gym_doom/wrappers/__init__.py | MarvineGothic/gym_doom | 5cda5bbb52c0e82e9fd2ed355d2c7e84c767603b | [
"MIT"
] | null | null | null | from .doom_wrap import *
| 12.5 | 24 | 0.76 | 4 | 25 | 4.5 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.16 | 25 | 1 | 25 | 25 | 0.857143 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 1 | 0 | 1 | 0 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
13a8db0fd9f664cae00bbb29a6d8040270563808 | 109 | py | Python | dgp_graph/__init__.py | Aaanonymousss/G4P | 223392545b59cd3bb30bc9fb8f401ac98bf7fcfd | [
"MIT"
] | 21 | 2020-10-14T12:12:25.000Z | 2022-01-25T08:42:57.000Z | dgp_graph/__init__.py | naiqili/DGPG-journal | 2770ce58185091afff5eca8e295086b42f4d874e | [
"MIT"
] | 2 | 2021-01-14T19:10:31.000Z | 2021-02-17T14:29:16.000Z | dgp_graph/__init__.py | naiqili/DGPG-journal | 2770ce58185091afff5eca8e295086b42f4d874e | [
"MIT"
] | 4 | 2020-11-11T08:36:25.000Z | 2021-01-07T05:04:02.000Z | from .impl_parallel import *
# impl_parallel is optimized with tensor computation, tasks can run in parallel. | 54.5 | 80 | 0.816514 | 16 | 109 | 5.4375 | 0.8125 | 0.275862 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.137615 | 109 | 2 | 80 | 54.5 | 0.925532 | 0.715596 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | null | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
13db4e854fc78b730e75a7ecec0956c3ced9ebd3 | 14,064 | py | Python | Problem/SUKP.py | m-arnao-molina/SCA-QL-SARSA | 65f859fce96bb8c11509238c2f7a5d8dd2ad042a | [
"MIT"
] | null | null | null | Problem/SUKP.py | m-arnao-molina/SCA-QL-SARSA | 65f859fce96bb8c11509238c2f7a5d8dd2ad042a | [
"MIT"
] | null | null | null | Problem/SUKP.py | m-arnao-molina/SCA-QL-SARSA | 65f859fce96bb8c11509238c2f7a5d8dd2ad042a | [
"MIT"
] | null | null | null | import numpy as np
import random
from Discretization import DiscretizationScheme as DS
#action : esquema de discretizacion DS
def SUKP(poblacion,matrixBin,solutionsRanking,ds,repairType,numItem, numElement, knapsackSize, relationMatrix, weight, profit):
#Binarización de 2 pasos
ds = ds.split(",")
ds = DS.DiscretizationScheme(poblacion,matrixBin,solutionsRanking,ds[0],ds[1])
matrixBin = ds.binariza()
#Evaluamos restricción, sila función evaluar_restriccion_SUKP devuelve un 1 es factible, si devuelve un 0 no es factible y hay que reparar
EvaluarReparacion, PesosDeItems = evaluar_restriccion_SUKP(matrixBin,relationMatrix,weight,knapsackSize,numItem)
#Reparamos si corresponde
numReparacionesVector = []
for i in range(len(EvaluarReparacion)):
if EvaluarReparacion[i] == 0:
if repairType == 1: #Reparación "Simple" con un orden según peso de los items
vectorSinReparar = matrixBin[i]
matrixBin[i] = reparar1(matrixBin[i], knapsackSize, relationMatrix, weight, profit,PesosDeItems) #*** Ver que más necesita la función para reparar
vectorReparada = matrixBin[i]
numReparacionesVector.append(np.sum(vectorReparada - vectorSinReparar))
if repairType == 2: #Reparación según ponderación p_i/R_i del paper (https://sci-hub.se/https://doi.org/10.1016/j.future.2017.05.044)
vectorSinReparar = matrixBin[i]
matrixBin[i] = reparar2(matrixBin[i], knapsackSize, relationMatrix, weight, profit,PesosDeItems,numItem) #*** Ver que más necesita la función para reparar
vectorReparada = matrixBin[i]
numReparacionesVector.append(np.sum(vectorReparada - vectorSinReparar))
if repairType == 3: #Reparación según ponderación p_i/R_i del paper (https://sci-hub.se/https://doi.org/10.1016/j.future.2017.05.044)
vectorSinReparar = matrixBin[i]
matrixBin[i] = reparar3(matrixBin[i], knapsackSize, relationMatrix, weight, profit,PesosDeItems,numItem) #*** Ver que más necesita la función para reparar
vectorReparada = matrixBin[i]
numReparacionesVector.append(np.sum(vectorReparada - vectorSinReparar))
if repairType == 4: #Reparación según ponderación p_i/R_i del paper (https://sci-hub.se/https://doi.org/10.1016/j.future.2017.05.044)
vectorSinReparar = matrixBin[i]
matrixBin[i] = reparar3(matrixBin[i], knapsackSize, relationMatrix, weight, profit,PesosDeItems,numItem) #*** Ver que más necesita la función para reparar
vectorReparada = matrixBin[i]
numReparacionesVector.append(np.sum(vectorReparada - vectorSinReparar))
numReparaciones = np.sum(numReparacionesVector)
#Calculamos Fitness
# print(f'matrixBin: {matrixBin}')
# print(f'matrixBin.sum: {np.sum(matrixBin)}')
fitness = np.sum(np.multiply(matrixBin,profit),axis =1)
solutionsRanking = (-fitness).argsort() # rankings de los mejores fitness
return matrixBin,fitness,solutionsRanking,numReparaciones
def evaluar_restriccion_SUKP(matrixBin,relationMatrix,weight,knapsackSize,numItem):
PesosDeMatrizRelacion = np.multiply(relationMatrix,weight)
PesosDeItems = np.sum(PesosDeMatrizRelacion,axis=1)
PesosParaEvaluarFactibilidad = np.sum(np.multiply(matrixBin,PesosDeItems),axis=1)
EvaluarReparacion = np.where(PesosParaEvaluarFactibilidad <= knapsackSize, 1, 0)
return EvaluarReparacion, PesosDeItems
def reparar1(vectorBin, knapsackSize, relationMatrix, weight, profit,PesosDeItems): #Reparación "Simple" con un orden según peso de los items
indicadorReparacion = np.divide(profit,PesosDeItems) #Nos entregará un vector de indicadores de la reción profit/weight, en donde el menor valor corresponde a los items menos importantes
RankIndicadorReparacion= (-indicadorReparacion).argsort()
for i in range(len(RankIndicadorReparacion)):
if np.sum(np.multiply(vectorBin,PesosDeItems)) > knapsackSize:
vectorBin[RankIndicadorReparacion[i]] = 0
else:
break
return vectorBin
def reparar2(vectorBin, knapsackSize, relationMatrix, weight, profit,PesosDeItems,numItem): #Reparación según ponderación p_i/R_i del paper (https://sci-hub.se/https://doi.org/10.1016/j.future.2017.05.044)
frecuenciasDeElementos = np.divide(np.sum(relationMatrix, axis=0),numItem)
PesosDeMatrizRelacion = np.multiply(relationMatrix,weight)
R = np.sum(np.divide(PesosDeMatrizRelacion,frecuenciasDeElementos), axis=1) #Vector de tamaño items
indicadorReparacion = np.divide(profit,R) #Vector tamaño items
indicadorReparacion = np.multiply(indicadorReparacion,vectorBin)
maxindicador = np.sum(indicadorReparacion)
indicadorReparacion = np.where(indicadorReparacion == 0, indicadorReparacion-maxindicador, indicadorReparacion)
# print(f'indicadorReparacion: {indicadorReparacion}')
RankIndicadorReparacion= (-indicadorReparacion).argsort()
cant = np.sum(np.where(indicadorReparacion == -maxindicador, 1, 0)) #Cantidad de "0" en nuestro indicador, es decir items no elegidos en nuestro vector solución evaluado
RankIndicadorReparacion = RankIndicadorReparacion[:-cant]
# print(f'RankIndicadorReparacion.shape: {RankIndicadorReparacion.shape}')
vectorBinZ = np.zeros(vectorBin.shape)
#Linea 4 del algoritmo 2 del paper (https://sci-hub.se/https://doi.org/10.1016/j.future.2017.05.044)
for i in range(len(RankIndicadorReparacion)):
if PesosDeItems[RankIndicadorReparacion[i]] <= (knapsackSize - np.sum(np.multiply(vectorBinZ,PesosDeItems))): #Comprobamos si el items entra en el espacio disponible en la mochila
vectorBinZ[RankIndicadorReparacion[i]] = 1
else:
continue
#Linea 8 del algoritmo 2 del paper (https://sci-hub.se/https://doi.org/10.1016/j.future.2017.05.044)
vectorBinZInvertida = np.where(vectorBinZ == 1, 0, 1) #Es decir que los 1 serán 0 y los 0 serán 1.
indicadorReparacion = np.multiply(indicadorReparacion,vectorBinZInvertida)
maxindicador = np.sum(indicadorReparacion)
indicadorReparacion = np.where(indicadorReparacion == 0, indicadorReparacion-maxindicador, indicadorReparacion)
RankIndicadorReparacion= (-indicadorReparacion).argsort()
cant = np.sum(np.where(RankIndicadorReparacion == -maxindicador, 1, 0)) #Cantidad de "0" en nuestro indicador, es decir items no elegidos en nuestro vector solución evaluado
RankIndicadorReparacion = RankIndicadorReparacion[:-cant]
for i in range(len(RankIndicadorReparacion)):
if PesosDeItems[RankIndicadorReparacion[i]] <= (knapsackSize - np.sum(np.multiply(vectorBinZ,PesosDeItems))): #Comprobamos si el items entra en el espacio disponible en la mochila
vectorBinZ[RankIndicadorReparacion[i]] = 1
else:
continue
vectorBin = vectorBinZ
# print(f'Peso de la mochila: {np.sum(np.multiply(vectorBin,PesosDeItems))}')
return vectorBin
def reparar3(vectorBin, knapsackSize, relationMatrix, weight, profit,PesosDeItems,numItem): #Reparación según ponderación p_i/R_i del paper (https://sci-hub.se/https://doi.org/10.1016/j.future.2017.05.044)
frecuenciasDeElementos = np.divide(np.sum(relationMatrix, axis=0),numItem)
PesosDeMatrizRelacion = np.multiply(relationMatrix,weight)
R = np.sum(np.divide(PesosDeMatrizRelacion,frecuenciasDeElementos), axis=1) #Vector de tamaño items
indicadorReparacion = np.divide(profit,R) #Vector tamaño items
# indicadorReparacion = np.multiply(indicadorReparacion,vectorBin)
# maxindicador = np.sum(indicadorReparacion)
# indicadorReparacion = np.where(indicadorReparacion == 0, indicadorReparacion-maxindicador, indicadorReparacion)
# print(f'indicadorReparacion: {indicadorReparacion}')
RankIndicadorReparacion= (indicadorReparacion).argsort()
# cant = np.sum(np.where(indicadorReparacion == -maxindicador, 1, 0)) #Cantidad de "0" en nuestro indicador, es decir items no elegidos en nuestro vector solución evaluado
# RankIndicadorReparacion = RankIndicadorReparacion[:-cant]
# print(f'RankIndicadorReparacion.shape: {RankIndicadorReparacion.shape}')
#vectorBinZ = np.zeros(vectorBin.shape)
vectorBinZ = vectorBin
#Linea 4 del algoritmo 2 del paper (https://sci-hub.se/https://doi.org/10.1016/j.future.2017.05.044)
for i in range(len(RankIndicadorReparacion)):
# print(f'np.sum(np.multiply(vectorBinZ,PesosDeItems)): {np.sum(np.multiply(vectorBinZ,PesosDeItems))}')
# print(f'knapsackSize: {knapsackSize}')
if np.sum(np.multiply(vectorBinZ,PesosDeItems)) >= knapsackSize: #Comprobamos si el items entra en el espacio disponible en la mochila
vectorBinZ[RankIndicadorReparacion[i]] = 0
else:
continue
#Linea 8 del algoritmo 2 del paper (https://sci-hub.se/https://doi.org/10.1016/j.future.2017.05.044)
vectorBinZInvertida = np.where(vectorBinZ == 1, 0, 1) #Es decir que los 1 serán 0 y los 0 serán 1.
# indicadorReparacion = np.multiply(indicadorReparacion,vectorBinZInvertida)
# maxindicador = np.sum(indicadorReparacion)
# indicadorReparacion = np.where(indicadorReparacion == 0, indicadorReparacion-maxindicador, indicadorReparacion)
RankIndicadorReparacion= (-indicadorReparacion).argsort()
# cant = np.sum(np.where(RankIndicadorReparacion == -maxindicador, 1, 0)) #Cantidad de "0" en nuestro indicador, es decir items no elegidos en nuestro vector solución evaluado
# RankIndicadorReparacion = RankIndicadorReparacion[:-cant]
for i in range(len(RankIndicadorReparacion)):
# print("*************************************************")
# print(f'np.sum(np.multiply(vectorBinZ,PesosDeItems)): {np.sum(np.multiply(vectorBinZ,PesosDeItems))}')
# print(f'knapsackSize - np.sum(np.multiply(vectorBinZ,PesosDeItems)): {knapsackSize - np.sum(np.multiply(vectorBinZ,PesosDeItems))}')
if PesosDeItems[RankIndicadorReparacion[i]] <= (knapsackSize - np.sum(np.multiply(vectorBinZ,PesosDeItems))): #Comprobamos si el items entra en el espacio disponible en la mochila
vectorBinZ[RankIndicadorReparacion[i]] = 1
else:
continue
vectorBin = vectorBinZ
# print(f'Peso de la mochila: {np.sum(np.multiply(vectorBin,PesosDeItems))}')
return vectorBin
def reparar4(vectorBin, knapsackSize, relationMatrix, weight, profit,PesosDeItems,numItem): #Reparación según ponderación p_i/R_i del paper (https://sci-hub.se/https://doi.org/10.1016/j.future.2017.05.044)
frecuenciasDeElementos = np.divide(np.sum(relationMatrix, axis=0),numItem)
PesosDeMatrizRelacion = np.multiply(relationMatrix,weight)
R = np.sum(np.divide(PesosDeMatrizRelacion,frecuenciasDeElementos), axis=1) #Vector de tamaño items
indicadorReparacion = np.divide(profit,R) #Vector tamaño items
RankIndicadorReparacion= (-indicadorReparacion).argsort()
# vectorBinZ = vectorBin
vectorBinZ = np.zeros(numItem)
#Linea 4 del algoritmo 2 del paper (https://sci-hub.se/https://doi.org/10.1016/j.future.2017.05.044)
for i in range(len(RankIndicadorReparacion)):
# if np.sum(np.multiply(vectorBinZ,PesosDeItems)) >= knapsackSize: #Comprobamos si el items entra en el espacio disponible en la mochila
if PesosDeItems[RankIndicadorReparacion[i]] <= (knapsackSize - np.sum(np.multiply(vectorBinZ,PesosDeItems))) and vectorBin[RankIndicadorReparacion[i]] == 1: #Comprobamos si el items entra en el espacio disponible en la mochila
rand = np.random.rand()
if rand <= 1:
vectorBinZ[RankIndicadorReparacion[i]] = 1
else:
continue
#Linea 8 del algoritmo 2 del paper (https://sci-hub.se/https://doi.org/10.1016/j.future.2017.05.044)
RankIndicadorReparacion= (-indicadorReparacion).argsort()
for i in range(len(RankIndicadorReparacion)):
if PesosDeItems[RankIndicadorReparacion[i]] <= (knapsackSize - np.sum(np.multiply(vectorBinZ,PesosDeItems))) and vectorBinZ[RankIndicadorReparacion[i]] == 0: #Comprobamos si el items entra en el espacio disponible en la mochila
rand = np.random.rand()
if rand <= 1:
vectorBinZ[RankIndicadorReparacion[i]] = 1
else:
continue
vectorBin = vectorBinZ
# print(f'Peso de la mochila: {np.sum(np.multiply(vectorBin,PesosDeItems))}')
return vectorBin
def read_instance_SUKP(file,instance_dir,workdirInstance):
# print(f'file: {file}')
path = workdirInstance + instance_dir
numItem = 0 # i, el numero de itemes.
numElement = 0 # j, el numero de elemento.
knapsackSize = 0 # Esta es la restriccion.
profit = np.zeros(numItem) # m
weight = np.zeros(numElement) # n
fo = open(path + file , 'r')
fo, line = read_line(3,fo)
posicion = line.find('=')
numItem = int(line[posicion+1:posicion+5])
posicion = line.find('=',posicion+1)
numElement = int(line[posicion+1:posicion+5])
relationMatrix = np.zeros((numItem, numElement))
posicion = line.find('=',posicion+1)
knapsackSize = int(line[posicion+1:posicion+7])
fo, line = read_line(3,fo)
line = line.replace(' \n','').split(' ')
line = [int(i) for i in line]
profit = np.asarray(line)
fo, line = read_line(3,fo)
line = line.replace(' \n','').split(' ')
line = [int(i) for i in line]
weight = np.asarray(line)
fo, line = read_line(2,fo)
for i in range(0,numItem):
relation = fo.readline().replace(' \n','').split(' ')
for j in range(0,numElement):
relationMatrix[i,j] = int(relation[j])
print(relationMatrix.shape)
fo.close()
return numItem, numElement, knapsackSize, relationMatrix, weight, profit
def read_line(n,fo):
for i in range(0,n):
line = fo.readline()
return fo, line
| 50.049822 | 235 | 0.707196 | 1,607 | 14,064 | 6.172371 | 0.115121 | 0.020163 | 0.018349 | 0.028733 | 0.810364 | 0.789697 | 0.755822 | 0.736566 | 0.722452 | 0.722452 | 0 | 0.024278 | 0.179963 | 14,064 | 280 | 236 | 50.228571 | 0.835776 | 0.354735 | 0 | 0.549383 | 0 | 0 | 0.001889 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.049383 | false | 0 | 0.018519 | 0 | 0.117284 | 0.006173 | 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 | 0 | 0 | 0 | 6 |
b93833bfece1d1199e7f096e04b09791cfb9cab3 | 152 | py | Python | minigames/games/skribbl.py | iamDyeus/KnickAI | c17d808c949cb3467031498e7252bd2095c04699 | [
"MIT"
] | 31 | 2021-11-08T18:42:17.000Z | 2022-03-25T07:45:46.000Z | minigames/games/skribbl.py | iamDyeus/KnickAI | c17d808c949cb3467031498e7252bd2095c04699 | [
"MIT"
] | 6 | 2021-12-20T14:15:44.000Z | 2022-03-28T16:19:12.000Z | minigames/games/skribbl.py | iamDyeus/KnickAI | c17d808c949cb3467031498e7252bd2095c04699 | [
"MIT"
] | 3 | 2021-11-13T09:38:12.000Z | 2022-03-25T07:44:17.000Z | #https://skribbl.io/
import webbrowser
print("\nopening skribbl.io in your browser...")
webbrowser.open("https://skribbl.io/")
print("\n")
| 15.2 | 49 | 0.651316 | 19 | 152 | 5.210526 | 0.631579 | 0.272727 | 0.282828 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.151316 | 152 | 9 | 50 | 16.888889 | 0.767442 | 0.125 | 0 | 0 | 0 | 0 | 0.487805 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.25 | 0 | 0.25 | 0.5 | 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 | 0 | 0 | 0 | 1 | 0 | 6 |
b95d32fbb0adb9fa05061955155150c49c2c68bf | 197 | py | Python | pythran/tests/user_defined_import/mix_builtin.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,647 | 2015-01-13T01:45:38.000Z | 2022-03-28T01:23:41.000Z | pythran/tests/user_defined_import/mix_builtin.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,116 | 2015-01-01T09:52:05.000Z | 2022-03-18T21:06:40.000Z | pythran/tests/user_defined_import/mix_builtin.py | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 180 | 2015-02-12T02:47:28.000Z | 2022-03-14T10:28:18.000Z | from mix_builtin_main import bar
import mix_builtin_main, numpy, math as m
from numpy import sin
def foo(a):
return float(bar(a+42) + mix_builtin_main.foo(a) + m.floor(numpy.cos(a) + sin(a)))
| 28.142857 | 86 | 0.730964 | 38 | 197 | 3.631579 | 0.5 | 0.217391 | 0.304348 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.011905 | 0.147208 | 197 | 6 | 87 | 32.833333 | 0.809524 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.2 | false | 0 | 0.6 | 0.2 | 1 | 0 | 0 | 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 | 0 | 0 | 1 | 1 | 1 | 0 | 0 | 6 |
b95ef7e6c3c887133769e597ee5156f8de7d96dc | 5,196 | py | Python | cdci_osa_plugin/osa_catalog.py | andreatramacere/cdci_osa_plugin | 3f19e15982bb88748859a8879adce2d7cedcd735 | [
"MIT"
] | null | null | null | cdci_osa_plugin/osa_catalog.py | andreatramacere/cdci_osa_plugin | 3f19e15982bb88748859a8879adce2d7cedcd735 | [
"MIT"
] | null | null | null | cdci_osa_plugin/osa_catalog.py | andreatramacere/cdci_osa_plugin | 3f19e15982bb88748859a8879adce2d7cedcd735 | [
"MIT"
] | null | null | null | """
Overview
--------
general info about this module
Classes and Inheritance Structure
----------------------------------------------
.. inheritance-diagram::
Summary
---------
.. autosummary::
list of the module you want
Module API
----------
"""
from __future__ import absolute_import, division, print_function
from builtins import (bytes, str, open, super, range,
zip, round, input, int, pow, object, map, zip)
__author__ = "Andrea Tramacere"
# Standard library
# eg copy
# absolute import rg:from copy import deepcopy
# Dependencies
# eg numpy
# absolute import eg: import numpy as np
# Project
# relative import eg: from .mod import f
import numpy as np
from astropy.io import fits as pf
from cdci_data_analysis.analysis.io_helper import FitsFile
from cdci_data_analysis.analysis.catalog import BasicCatalog
class OsaIsgriCatalog(BasicCatalog):
def __init__(self,
src_names,
lon,
lat,
significance,
unit='deg',
frame='FK5',
NEW_SOURCE=None,
ISGRI_FLAG=None,
FLAG=None,
ERR_RAD=None):
super(OsaIsgriCatalog, self).__init__(src_names,
lon,
lat,
significance,
unit=unit,
frame=frame,)
self.add_column(data=NEW_SOURCE, name='NEW_SOURCE')
self.add_column(data=ISGRI_FLAG, name='ISGRI_FLAG', dtype=np.int)
self.add_column(data=FLAG, name='FLAG', dtype=np.int)
self.add_column(data=ERR_RAD, name='ERR_RAD', dtype=np.float)
@classmethod
def build_from_dict_list(cls, distlist):
frame = "FK5"
get_key_column = lambda key, default=None: [de.get(key, default) for de in distlist]
print(get_key_column('name'), cls)
return cls(get_key_column('name'),
get_key_column('ra'),
get_key_column('dec'),
significance=get_key_column('DETSIG', 0),
frame="fk5",
ISGRI_FLAG=get_key_column("ISGRI_FLAG", 1),
NEW_SOURCE=get_key_column("NEW_SOURCE", 0),
FLAG=get_key_column("FLAG", 1),
ERR_RAD=get_key_column('err_rad', 0.01))
@classmethod
def build_from_ddosa_srclres(cls, srclres,prod_prefix=None):
#catalog = pf.open(srclres)[1]
catalog=FitsFile(srclres).open()[1]
print ('cat file',srclres)
frame = catalog.header['RADECSYS'].lower()
catalog=catalog.data
return cls( [n.strip() for n in catalog['NAME']],
catalog['RA_FIN'],
catalog['DEC_FIN'],
significance=catalog['DETSIG'],
frame=frame,
NEW_SOURCE=catalog['NEW_SOURCE'],
ISGRI_FLAG=catalog['ISGRI_FLAG'],
FLAG=catalog['FLAG'],
ERR_RAD=catalog['ERR_RAD'] )
class OsaJemxCatalog(BasicCatalog):
def __init__(self,
src_names,
lon,
lat,
significance,
unit='deg',
frame='FK5',
FLAG=None,
ERR_RAD=None):
super(OsaJemxCatalog, self).__init__(src_names,
lon,
lat,
significance,
unit=unit,
frame=frame,)
#self.add_column(data=NEW_SOURCE, name='NEW_SOURCE')
#self.add_column(data=ISGRI_FLAG, name='ISGRI_FLAG', dtype=np.int)
self.add_column(data=FLAG, name='FLAG', dtype=np.int)
self.add_column(data=ERR_RAD, name='ERR_RAD', dtype=np.float)
@classmethod
def build_from_dict_list(cls, distlist):
frame = "FK5"
get_key_column = lambda key, default=None: [de.get(key, default) for de in distlist]
print(get_key_column('name'), cls)
return cls(get_key_column('name'),
get_key_column('ra'),
get_key_column('dec'),
significance=get_key_column('DETSIG', 0),
frame="fk5",
#ISGRI_FLAG=get_key_column("ISGRI_FLAG", 1),
#NEW_SOURCE=get_key_column("NEW_SOURCE", 0),
FLAG=get_key_column("FLAG", 1),
ERR_RAD=get_key_column('err_rad', 0.01))
@classmethod
def build_from_ddosa_srclres(cls, srclres,prod_prefix=None):
#catalog = pf.open(srclres)[1]
catalog = FitsFile(srclres).open()[1]
print ('cat file',srclres)
frame = catalog.header['RADECSYS'].lower()
catalog=catalog.data
return cls( [n.strip() for n in catalog['NAME']],
catalog['RA_OBJ'],
catalog['DEC_OBJ'],
significance=catalog['DETSIG'],
frame=frame,
#NEW_SOURCE=catalog['NEW_SOURCE'],
#ISGRI_FLAG=catalog['ISGRI_FLAG'],
FLAG=catalog['FLAG'],
ERR_RAD=catalog['ERR_RAD'] )
| 29.862069 | 92 | 0.539261 | 574 | 5,196 | 4.635889 | 0.219512 | 0.049605 | 0.090192 | 0.051109 | 0.761368 | 0.740323 | 0.723036 | 0.723036 | 0.723036 | 0.723036 | 0 | 0.006989 | 0.339107 | 5,196 | 173 | 93 | 30.034682 | 0.767909 | 0.146459 | 0 | 0.764706 | 0 | 0 | 0.06396 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.058824 | false | 0 | 0.058824 | 0 | 0.176471 | 0.04902 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
b98f09a091b263d905c4353d38f08d46f2154712 | 91 | py | Python | vnpy/app/portfolio_strategy/__init__.py | jubal/vnpy | f50f2535ed39dd33272e0985ed40c7078e4c19f6 | [
"MIT"
] | 5 | 2020-05-19T07:32:39.000Z | 2022-03-14T09:09:48.000Z | vnpy/app/portfolio_strategy/__init__.py | jubal/vnpy | f50f2535ed39dd33272e0985ed40c7078e4c19f6 | [
"MIT"
] | null | null | null | vnpy/app/portfolio_strategy/__init__.py | jubal/vnpy | f50f2535ed39dd33272e0985ed40c7078e4c19f6 | [
"MIT"
] | 3 | 2020-04-02T08:30:17.000Z | 2020-05-03T12:12:05.000Z | import sys
import vnpy_portfoliostrategy
sys.modules[__name__] = vnpy_portfoliostrategy
| 13 | 46 | 0.846154 | 10 | 91 | 7.1 | 0.6 | 0.591549 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.10989 | 91 | 6 | 47 | 15.166667 | 0.876543 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.666667 | 0 | 0.666667 | 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 | 0 | 1 | 0 | 1 | 0 | 1 | 0 | 0 | 6 |
b9d16d6479278b2f5af5bf1c9d44a8f506fd4683 | 20,381 | py | Python | self_supervised_3d_tasks/data_util/brats_dataset_utils.py | ramchandracheke/self-supervised-3d-tasks | dc184d5d29012fafb887402c5bc2ce74e4b0acdf | [
"Apache-2.0"
] | 134 | 2020-06-09T06:24:34.000Z | 2022-03-29T16:04:28.000Z | self_supervised_3d_tasks/data_util/brats_dataset_utils.py | ramchandracheke/self-supervised-3d-tasks | dc184d5d29012fafb887402c5bc2ce74e4b0acdf | [
"Apache-2.0"
] | 24 | 2020-07-15T15:58:29.000Z | 2022-03-11T07:12:34.000Z | self_supervised_3d_tasks/data_util/brats_dataset_utils.py | ramchandracheke/self-supervised-3d-tasks | dc184d5d29012fafb887402c5bc2ce74e4b0acdf | [
"Apache-2.0"
] | 29 | 2020-06-09T10:02:39.000Z | 2022-03-31T18:16:23.000Z | import glob
import multiprocessing
import nibabel as nib
import numpy as np
import skimage.transform as skTrans
import tensorflow as tf
from joblib import Parallel, delayed
SHARD_SIZE = 1024
def parallel_load_brats_no_labels(path, multimodal=True):
"""
loader function for self-supervision tasks
:param path:
:return:
"""
t1ce_files = sorted(glob.glob(path + "*_t1ce.nii.gz", recursive=True))
flair_files = sorted(glob.glob(path + "*_flair.nii.gz", recursive=True))
print("loading " + str(len(flair_files)) + " mri scans.")
num_cores = multiprocessing.cpu_count()
all_slices = list()
if multimodal:
t1_files = sorted(glob.glob(path + "*_t1.nii.gz", recursive=True))
t2_files = sorted(glob.glob(path + "*_t2.nii.gz", recursive=True))
results = Parallel(n_jobs=num_cores)(
delayed(read_brats_scan_multimodal)(flair_files, i, t1_files, t1ce_files, t2_files) for i in
range(len(t2_files)))
for mm_scan in results:
if mm_scan[0].shape[2] == mm_scan[1].shape[2] == mm_scan[2].shape[2] == mm_scan[3].shape[2]:
for z in range(mm_scan[0].shape[2]):
t1ce_image = mm_scan[0][:, :, z]
flair_image = mm_scan[1][:, :, z]
t1_image = mm_scan[2][:, :, z]
t2_image = mm_scan[3][:, :, z]
stacked_array = np.stack([t1ce_image, flair_image, t1_image, t2_image], axis=-1)
all_slices.append(stacked_array)
else:
results = Parallel(n_jobs=num_cores)(
delayed(read_brats_scan_two_modal)(flair_files, i, t1ce_files)
for i in range(len(flair_files)))
for mm_scan in results:
if mm_scan[0].shape[2] == mm_scan[1].shape[2]:
for z in range(mm_scan[0].shape[2]):
t1ce_image = mm_scan[0][:, :, z]
flair_image = mm_scan[1][:, :, z]
stacked_array = np.stack([t1ce_image, flair_image], axis=-1)
all_slices.append(stacked_array)
return np.array(all_slices)
def parallel_load_brats_3D_no_labels(path, multimodal=True):
"""
loader function for self-supervision tasks
:param path:
:return:
"""
t1ce_files = sorted(glob.glob(path + "*_t1ce.nii.gz", recursive=True))
flair_files = sorted(glob.glob(path + "*_flair.nii.gz", recursive=True))
print("loading " + str(len(flair_files)) + " mri scans.")
num_cores = multiprocessing.cpu_count()
all_scans = list()
if multimodal:
t1_files = sorted(glob.glob(path + "*_t1.nii.gz", recursive=True))
t2_files = sorted(glob.glob(path + "*_t2.nii.gz", recursive=True))
results = Parallel(n_jobs=num_cores)(
delayed(read_brats_scan_multimodal)(flair_files, i, t1_files, t1ce_files, t2_files) for i in
range(len(t2_files)))
for mm_scan in results:
t1ce_image = mm_scan[0]
flair_image = mm_scan[1]
t1_image = mm_scan[2]
t2_image = mm_scan[3]
stacked_array = np.stack([t1ce_image, flair_image, t1_image, t2_image], axis=-1)
all_scans.append(stacked_array)
else:
results = Parallel(n_jobs=num_cores)(
delayed(read_brats_scan_two_modal)(flair_files, i, t1ce_files)
for i in range(len(flair_files)))
for mm_scan in results:
t1ce_image = mm_scan[0]
flair_image = mm_scan[1]
stacked_array = np.stack([t1ce_image, flair_image], axis=-1)
all_scans.append(stacked_array)
return np.array(all_scans)
def parallel_load_brats_with_labels(path, multimodal=False):
"""
loader function for segmentation tasks
:param path:
:param multimodal:
:return:
"""
t1ce_files = sorted(glob.glob(path + "*_t1ce.nii.gz", recursive=True))
flair_files = sorted(glob.glob(path + "*_flair.nii.gz", recursive=True))
seg_files = sorted(glob.glob(path + "*_seg.nii.gz", recursive=True))
print("loading " + str(len(seg_files)) + " mri scans.")
num_cores = multiprocessing.cpu_count()
all_slices = list()
all_masks = list()
if multimodal:
t1_files = sorted(glob.glob(path + "*_t1.nii.gz", recursive=True))
t2_files = sorted(glob.glob(path + "*_t2.nii.gz", recursive=True))
results = Parallel(n_jobs=num_cores)(
delayed(read_brats_scan_multimodal_with_mask)(flair_files, i, t1_files, t1ce_files, t2_files, seg_files)
for i in range(len(flair_files)))
for mm_scan in results:
if mm_scan[0].shape[2] == mm_scan[1].shape[2] == mm_scan[2].shape[2] == mm_scan[3].shape[2] == \
mm_scan[4].shape[2]:
for z in range(mm_scan[0].shape[2]):
t1ce_image = mm_scan[0][:, :, z]
flair_image = mm_scan[1][:, :, z]
t1_image = mm_scan[2][:, :, z]
t2_image = mm_scan[3][:, :, z]
seg_image = mm_scan[4][:, :, z]
stacked_array = np.stack([t1ce_image, flair_image, t1_image, t2_image], axis=-1)
all_slices.append(stacked_array)
all_masks.append(seg_image)
else:
results = Parallel(n_jobs=num_cores)(
delayed(read_brats_scan_two_modal_with_mask)(flair_files, i, t1ce_files, seg_files)
for i in range(len(flair_files)))
for mm_scan in results:
if mm_scan[0].shape[2] == mm_scan[1].shape[2] == mm_scan[2].shape[2]:
for z in range(mm_scan[0].shape[2]):
t1ce_image = mm_scan[0][:, :, z]
flair_image = mm_scan[1][:, :, z]
seg_image = mm_scan[2][:, :, z]
stacked_array = np.stack([t1ce_image, flair_image], axis=-1)
all_slices.append(stacked_array)
all_masks.append(seg_image)
return np.array(all_slices), np.array(all_masks)
def parallel_load_brats_3D_with_labels(path, multimodal=False):
"""
loader function for segmentation tasks
:param path:
:param multimodal:
:return:
"""
t1ce_files = sorted(glob.glob(path + "*_t1ce.nii.gz", recursive=True))
flair_files = sorted(glob.glob(path + "*_flair.nii.gz", recursive=True))
seg_files = sorted(glob.glob(path + "*_seg.nii.gz", recursive=True))
print("loading " + str(len(seg_files)) + " mri scans.")
num_cores = multiprocessing.cpu_count()
all_scans = list()
all_masks = list()
if multimodal:
t1_files = sorted(glob.glob(path + "*_t1.nii.gz", recursive=True))
t2_files = sorted(glob.glob(path + "*_t2.nii.gz", recursive=True))
results = Parallel(n_jobs=num_cores)(
delayed(read_brats_scan_multimodal_with_mask)(flair_files, i, t1_files, t1ce_files, t2_files, seg_files)
for i in range(len(flair_files)))
for mm_scan in results:
t1ce_image = mm_scan[0]
flair_image = mm_scan[1]
t1_image = mm_scan[2]
t2_image = mm_scan[3]
seg_image = mm_scan[4]
stacked_array = np.stack([t1ce_image, flair_image, t1_image, t2_image], axis=-1)
all_scans.append(stacked_array)
all_masks.append(seg_image)
else:
results = Parallel(n_jobs=num_cores)(
delayed(read_brats_scan_two_modal_with_mask)(flair_files, i, t1ce_files, seg_files)
for i in range(len(flair_files)))
for mm_scan in results:
t1ce_image = mm_scan[0]
flair_image = mm_scan[1]
stacked_array = np.stack([t1ce_image, flair_image], axis=-1)
seg_image = mm_scan[2]
all_scans.append(stacked_array)
all_masks.append(seg_image)
return np.array(all_scans), np.array(all_masks)
new_resolution = (128, 128, 128)
def read_brats_scan_multimodal(flair_files, i, t1_files, t1ce_files, t2_files):
t1ce_image, nbbox = read_scan_find_bbox(nib.load(t1ce_files[i]))
t1ce_image = skTrans.resize(t1ce_image, new_resolution, order=1, preserve_range=True)
flair_image = read_scan(nbbox, nib.load(flair_files[i]))
flair_image = skTrans.resize(flair_image, new_resolution, order=1, preserve_range=True)
t1_image = read_scan(nbbox, nib.load(t1_files[i]))
t1_image = skTrans.resize(t1_image, new_resolution, order=1, preserve_range=True)
t2_image = read_scan(nbbox, nib.load(t2_files[i]))
t2_image = skTrans.resize(t2_image, new_resolution, order=1, preserve_range=True)
return t1ce_image, flair_image, t1_image, t2_image
def read_brats_scan_two_modal(flair_files, i, t1ce_files):
t1ce_scan, nbbox = read_scan_find_bbox(nib.load(t1ce_files[i]))
t1ce_scan = skTrans.resize(t1ce_scan, new_resolution, order=1, preserve_range=True)
flair_scan = read_scan(nbbox, nib.load(flair_files[i]))
flair_scan = skTrans.resize(flair_scan, new_resolution, order=1, preserve_range=True)
return t1ce_scan, flair_scan
def read_brats_scan_multimodal_with_mask(flair_files, i, t1_files, t1ce_files, t2_files, seg_files):
t1ce_image, nbbox = read_scan_find_bbox(nib.load(t1ce_files[i]))
t1ce_image = skTrans.resize(t1ce_image, new_resolution, order=1, preserve_range=True)
flair_image = read_scan(nbbox, nib.load(flair_files[i]))
flair_image = skTrans.resize(flair_image, new_resolution, order=1, preserve_range=True)
t1_image = read_scan(nbbox, nib.load(t1_files[i]))
t1_image = skTrans.resize(t1_image, new_resolution, order=1, preserve_range=True)
t2_image = read_scan(nbbox, nib.load(t2_files[i]))
t2_image = skTrans.resize(t2_image, new_resolution, order=1, preserve_range=True)
seg_image = read_scan(nbbox, nib.load(seg_files[i]), normalize=False)
seg_image = skTrans.resize(seg_image, new_resolution, order=0, preserve_range=True)
seg_image = np.asarray(seg_image, dtype=np.int32)
seg_image[seg_image == 4] = 3
return t1ce_image, flair_image, t1_image, t2_image, seg_image
def read_brats_scan_two_modal_with_mask(flair_files, i, t1ce_files, seg_files):
t1ce_image, nbbox = read_scan_find_bbox(nib.load(t1ce_files[i]))
t1ce_image = skTrans.resize(t1ce_image, new_resolution, order=1, preserve_range=True)
flair_image = read_scan(nbbox, nib.load(flair_files[i]))
flair_image = skTrans.resize(flair_image, new_resolution, order=1, preserve_range=True)
seg_image = read_scan(nbbox, nib.load(seg_files[i]), normalize=False)
seg_image = skTrans.resize(seg_image, new_resolution, order=0, preserve_range=True)
seg_image = np.asarray(seg_image, dtype=np.int32)
seg_image[seg_image == 4] = 3
return t1ce_image, flair_image, seg_image
def read_scan_find_bbox(nif_file, normalize=True):
image = nif_file.get_fdata()
st_x, en_x, st_y, en_y, st_z, en_z = 0, 0, 0, 0, 0, 0
for x in range(image.shape[0]):
if np.any(image[x, :, :]):
st_x = x
break
for x in range(image.shape[0] - 1, -1, -1):
if np.any(image[x, :, :]):
en_x = x
break
for y in range(image.shape[1]):
if np.any(image[:, y, :]):
st_y = y
break
for y in range(image.shape[1] - 1, -1, -1):
if np.any(image[:, y, :]):
en_y = y
break
for z in range(image.shape[2]):
if np.any(image[:, :, z]):
st_z = z
break
for z in range(image.shape[2] - 1, -1, -1):
if np.any(image[:, :, z]):
en_z = z
break
image = image[st_x:en_x, st_y:en_y, st_z:en_z]
if normalize:
image = norm(image)
nbbox = np.array([st_x, en_x, st_y, en_y, st_z, en_z]).astype(int)
return image, nbbox
def read_scan(sbbox, nif_file, normalize=True):
if normalize:
image = norm(nif_file.get_fdata()[sbbox[0]:sbbox[1], sbbox[2]:sbbox[3], sbbox[4]:sbbox[5]])
else:
image = nif_file.get_fdata()[sbbox[0]:sbbox[1], sbbox[2]:sbbox[3], sbbox[4]:sbbox[5]]
return image
def norm(im):
im = im.astype(np.float32)
min_v = np.min(im)
max_v = np.max(im)
im = (im - min_v) / (max_v - min_v)
return im
def _int64_feature(value):
"""Wrapper for inserting int64 features into Example proto."""
if not isinstance(value, list):
value = [value]
return tf.train.Feature(int64_list=tf.train.Int64List(value=value))
def _int64_array_feature(value):
"""Wrapper for inserting int64 features into Example proto."""
return tf.train.Feature(int64_list=tf.train.Int64List(value=value))
def _bytes_feature(value):
"""Wrapper for inserting bytes features into Example proto."""
return tf.train.Feature(bytes_list=tf.train.BytesList(value=[value]))
def _float_feature(value):
"""Wrapper for inserting float features into Example proto."""
return tf.train.Feature(float_list=tf.train.FloatList(value=value))
def _convert_to_example_no_labels(image_buffer, height, width, multimodal=True):
"""Build an Example proto for an example. """
if multimodal:
channels = 4
else:
channels = 2
example = tf.train.Example(features=tf.train.Features(feature={
'image/height': _int64_feature(height),
'image/width': _int64_feature(width),
'image/channels': _int64_feature(channels),
'image/encoded': _float_feature(image_buffer)}))
return example
def _convert_to_example_with_labels(image_buffer, mask_buffer, height, width, multimodal=False):
"""Build an Example proto for an example. """
if multimodal:
channels = 4
else:
channels = 2
example = tf.train.Example(features=tf.train.Features(feature={
'image/height': _int64_feature(height),
'image/width': _int64_feature(width),
'image/channels': _int64_feature(channels),
'image/mask': _int64_array_feature(mask_buffer),
'image/encoded': _float_feature(image_buffer)}))
return example
def np_to_tfrecords_no_labels(X, file_path_prefix, verbose=True, multimodal=True):
"""
Converts a Numpy array (or two Numpy arrays) into a tfrecord file.
For supervised learning, feed training inputs to X and training labels to Y.
For unsupervised learning, only feed training inputs to X, and feed None to Y.
The length of the first dimensions of X and Y should be the number of samples.
Parameters
----------
X : numpy.ndarray of rank 2
Numpy array for training inputs. Its dtype should be float32, float64, or int64.
If X has a higher rank, it should be rshape before fed to this function.
Y : numpy.ndarray of rank 2 or None
Numpy array for training labels. Its dtype should be float32, float64, or int64.
None if there is no label array.
file_path_prefix : str
The path and name of the resulting tfrecord file to be generated, without '.tfrecords'
verbose : bool
If true, progress is reported.
Raises
------
ValueError
If input type is not float (64 or 32) or int.
"""
# Generate tfrecord writer
result_tf_file = file_path_prefix + '.tfrecord'
if verbose:
print("Serializing {:d} examples into {}".format(X.shape[0], result_tf_file))
np.random.shuffle(X) # shuffling input dataset by rows
# iterate over each sample,
# and serialize it as ProtoBuf.
shard = 0
shard_size = SHARD_SIZE
if X.shape[0] < SHARD_SIZE:
shard_size = 30
num_shards = int(X.shape[0] / shard_size)
else:
num_shards = int(X.shape[0] / shard_size)
print('Total number of shards is ' + str(num_shards))
for idx in range(X.shape[0]):
if idx % shard_size == 0:
output_filename = '%s-%.5d-of-%.5d' % (result_tf_file, shard, num_shards)
writer = tf.python_io.TFRecordWriter(output_filename)
shard += 1
print("Created shard {:d}. Working on shard number {:d} now".format(shard - 1, shard))
print(str(idx) + "/" + str(X.shape[0]))
x = X[idx]
height, width = x.shape[0], x.shape[1]
x_reshaped = x.flatten()
example = _convert_to_example_no_labels(x_reshaped, height, width, multimodal)
serialized = example.SerializeToString()
writer.write(serialized)
if verbose:
print("Writing {} done!".format(result_tf_file))
def np_to_tfrecords_with_labels(X, Y, file_path_prefix, verbose=True, multimodal=True):
"""
Converts a Numpy array (or two Numpy arrays) into a tfrecord file.
For supervised learning, feed training inputs to X and training labels to Y.
For unsupervised learning, only feed training inputs to X, and feed None to Y.
The length of the first dimensions of X and Y should be the number of samples.
Parameters
----------
X : numpy.ndarray of rank 2
Numpy array for training inputs. Its dtype should be float32, float64, or int64.
If X has a higher rank, it should be rshape before fed to this function.
Y : numpy.ndarray of rank 2 or None
Numpy array for training labels. Its dtype should be float32, float64, or int64.
None if there is no label array.
file_path_prefix : str
The path and name of the resulting tfrecord file to be generated, without '.tfrecords'
verbose : bool
If true, progress is reported.
Raises
------
ValueError
If input type is not float (64 or 32) or int.
"""
# Generate tfrecord writer
result_tf_file = file_path_prefix + '.tfrecord'
if verbose:
print("Serializing {:d} examples into {}".format(X.shape[0], result_tf_file))
# shuffling input dataset by rows
randomize = np.arange(X.shape[0])
np.random.shuffle(randomize)
X = X[randomize]
Y = Y[randomize]
# iterate over each sample, and serialize it with its corresponding mask as ProtoBuf.
shard = 0
shard_size = SHARD_SIZE
if X.shape[0] < SHARD_SIZE:
shard_size = 30
num_shards = int(X.shape[0] / shard_size)
else:
num_shards = int(X.shape[0] / shard_size)
print('Total number of shards is ' + str(num_shards))
for idx in range(X.shape[0]):
if idx % shard_size == 0:
output_filename = '%s-%.5d-of-%.5d' % (result_tf_file, shard, num_shards)
writer = tf.python_io.TFRecordWriter(output_filename)
shard += 1
print("Created shard {:d}. Working on shard number {:d} now".format(shard - 1, shard))
print(str(idx) + "/" + str(X.shape[0]))
x = X[idx]
y = Y[idx]
assert x.shape[0] == y.shape[0]
assert x.shape[1] == y.shape[1]
height, width = x.shape[0], x.shape[1]
x_reshaped = x.flatten()
y_reshaped = y.flatten()
example = _convert_to_example_with_labels(x_reshaped, y_reshaped, height, width, multimodal)
serialized = example.SerializeToString()
writer.write(serialized)
if verbose:
print("Writing {} done!".format(result_tf_file))
if __name__ == "__main__":
#################################
## Test and Use Cases ##
#################################
brats_path = "/mnt/30T/brats/MICCAI_BraTS_2018_Data_Training/**/"
file_prefix = 'train_3D_with_labels'
with_masks = True
# brats_path = "/mnt/30T/brats/MICCAI_BraTS_2018_Data_Validation/**/"
# file_prefix = 'validation_3D_two_modal'
# with_masks = False
is3D = True
multimodal = False # True: use 4 modalities, False: use only 2 (t1ce + t2flair)
if with_masks:
if is3D:
brats_X, brats_Y = parallel_load_brats_3D_with_labels(brats_path, multimodal)
else:
brats_X, brats_Y = parallel_load_brats_with_labels(brats_path, multimodal)
print(brats_X.shape, brats_Y.shape)
np_to_tfrecords_with_labels(brats_X, brats_Y, file_prefix, verbose=True, multimodal=multimodal)
else:
if is3D:
brats_data = parallel_load_brats_3D_no_labels(brats_path, multimodal)
else:
brats_data = parallel_load_brats_no_labels(brats_path, multimodal)
print(brats_data.shape)
np_to_tfrecords_no_labels(brats_data, file_prefix, verbose=True, multimodal=multimodal)
| 40.278656 | 116 | 0.639076 | 2,919 | 20,381 | 4.219596 | 0.089757 | 0.026305 | 0.025006 | 0.027767 | 0.895673 | 0.84972 | 0.82585 | 0.804741 | 0.782983 | 0.757814 | 0 | 0.025605 | 0.241156 | 20,381 | 505 | 117 | 40.358416 | 0.770788 | 0.141946 | 0 | 0.693642 | 0 | 0 | 0.046101 | 0.002925 | 0 | 0 | 0 | 0 | 0.00578 | 1 | 0.054913 | false | 0 | 0.020231 | 0 | 0.124277 | 0.046243 | 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 | 0 | 0 | 0 | 6 |
6a189679734368ae4ec513dc59cbda2d1c5d5f78 | 46 | py | Python | Data Scientist Career Path/4. Data Acquisition/2. Web Scraping/1. intro.py | myarist/Codecademy | 2ba0f104bc67ab6ef0f8fb869aa12aa02f5f1efb | [
"MIT"
] | 23 | 2021-06-06T15:35:55.000Z | 2022-03-21T06:53:42.000Z | Data Scientist Career Path/4. Data Acquisition/2. Web Scraping/1. intro.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | null | null | null | Data Scientist Career Path/4. Data Acquisition/2. Web Scraping/1. intro.py | shivaniverma1/Data-Scientist | f82939a411484311171465591455880c8e354750 | [
"MIT"
] | 9 | 2021-06-08T01:32:04.000Z | 2022-03-18T15:38:09.000Z | from preprocess import turtles
print(turtles) | 15.333333 | 30 | 0.847826 | 6 | 46 | 6.5 | 0.833333 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0.108696 | 46 | 3 | 31 | 15.333333 | 0.95122 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | true | 0 | 0.5 | 0 | 0.5 | 0.5 | 1 | 1 | 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 | 0 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 6 |
e04958b35c35f902235d68cb1ef393756a37d57d | 9,419 | py | Python | main.py | cmlohr/py_discord_bot | 7d7dce9911553b0371477df69c157938bef1b92c | [
"MIT"
] | null | null | null | main.py | cmlohr/py_discord_bot | 7d7dce9911553b0371477df69c157938bef1b92c | [
"MIT"
] | null | null | null | main.py | cmlohr/py_discord_bot | 7d7dce9911553b0371477df69c157938bef1b92c | [
"MIT"
] | null | null | null | import os
import discord
import requests
import json
import random
import hello
from datetime import datetime
import pytz
bot_bday = "January 1, 2022"
tz_central = pytz.timezone('America/Chicago')
time_central = datetime.now(tz_central)
print("NY: ", time_central.strftime("%H:%M"))
tz_London = pytz.timezone('Europe/London')
time_London = datetime.now(tz_London)
print("London: ", time_London.strftime("%H:%M"))
my_secret = os.environ['TOKEN']
client = discord.Client()
def get_quote():
response = requests.get("https://cat-fact.herokuapp.com/facts")
this_json = json.loads(response.text)
random_fact = random.randrange(0, len(this_json))
print(this_json)
return this_json[random_fact]['text']
def get_joke():
response = requests.get("https://icanhazdadjoke.com/", headers={"Accept": "application/json"})
this_joke = json.loads(response.text)
print(this_joke)
return this_joke['joke']
# def check_hello():
# is_hello = random.choice(hello.hello_check)
# print(is_hello)
# print(type(is_hello))
# return is_hello
def rand_greeting():
random_hello = random.choice(hello.greetings)
return random_hello
def bad_testy():
testy_response = random.choice(hello.testy_is_being_bad)
return testy_response
def testy_abuse():
testy_abuse_response = random.choice(hello.smack_testy_responses)
return testy_abuse_response
def rand_would_you_rather():
random_wyr = random.choice(hello.would_you_rather_array)
return random_wyr
@client.event
async def on_ready():
print('We have logged in a {0.user}.'.format(client))
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith("$WYR"):
await message.channel.send(rand_would_you_rather())
if message.content.startswith("$wyr"):
await message.channel.send(rand_would_you_rather())
# greeting
if message.content.startswith("$hey"):
await message.channel.send(rand_greeting())
if message.content.startswith("$hello"):
await message.channel.send(rand_greeting())
if message.content.startswith("$Hi"):
await message.channel.send(rand_greeting())
if message.content.startswith("$Hey"):
await message.channel.send(rand_greeting())
if message.content.startswith("$Hello"):
await message.channel.send(rand_greeting())
if message.content.startswith("$hi"):
await message.channel.send(rand_greeting())
if message.content.startswith("$hello testy"):
await message.channel.send(rand_greeting())
if message.content.startswith("$hello Testy"):
await message.channel.send(rand_greeting())
# time
if message.content.startswith("$What time is it in London?"):
await message.channel.send(time_London.strftime("%H:%M"))
if message.content.startswith("$London time?"):
await message.channel.send(time_London.strftime("%H:%M"))
if message.content.startswith("$London time"):
await message.channel.send(time_London.strftime("%H:%M"))
if message.content.startswith("$What time is it in New Orleans?"):
await message.channel.send(time_central.strftime("%H:%M"))
if message.content.startswith("$What time is it in Chicago?"):
await message.channel.send(time_central.strftime("%H:%M"))
if message.content.startswith("$What time is it for you Testy?"):
await message.channel.send(time_central.strftime("%H:%M"))
if message.content.startswith("$Testy time?"):
await message.channel.send(time_central.strftime("%H:%M"))
if message.content.startswith("$Testy time"):
await message.channel.send(time_central.strftime("%H:%M"))
if message.content.startswith("$Chicago time?"):
await message.channel.send(time_central.strftime("%H:%M"))
if message.content.startswith("$Chicago time"):
await message.channel.send(time_central.strftime("%H:%M"))
if message.content.startswith("$New Orleans time?"):
await message.channel.send(time_central.strftime("%H:%M"))
if message.content.startswith("$New Orleans time"):
await message.channel.send(time_central.strftime("%H:%M"))
# if message.content.startswith('$'):
# await message.channel.send('Hello C')
if message.content.startswith('$cats?'):
await message.channel.send('Today I learned this about cats: ' + get_quote())
if message.content.startswith("$joke"):
await message.channel.send(get_joke())
if message.content.startswith("$what is the meaning of life?"):
await message.channel.send("forty-two")
if message.content.startswith("$What is the meaning of life?"):
await message.channel.send("forty-two")
# bday
if message.content.startswith("$What is your birthday"):
await message.channel.send(bot_bday)
if message.content.startswith("$what is your birthday"):
await message.channel.send(bot_bday)
if message.content.startswith("$When where you born"):
await message.channel.send(bot_bday)
if message.content.startswith("$when where you born"):
await message.channel.send(bot_bday)
if message.content.startswith("$What is your birthday?"):
await message.channel.send(bot_bday)
if message.content.startswith("$When where you born?"):
await message.channel.send(bot_bday)
# creator?
if message.content.startswith("$Who is your creator"):
await message.channel.send("I'm a bot created by Colleen Lohr")
if message.content.startswith("$who is your creator"):
await message.channel.send("I'm a bot created by Colleen Lohr")
if message.content.startswith("$who made you"):
await message.channel.send("I'm a bot created by Colleen Lohr")
if message.content.startswith("$Who created you"):
await message.channel.send("I'm a bot created by Colleen Lohr")
if message.content.startswith("$Who is your creator?"):
await message.channel.send("I'm a bot created by Colleen Lohr")
if message.content.startswith("$Who created you?"):
await message.channel.send("I'm a bot created by Colleen Lohr")
# where are you from
if message.content.startswith("$Where are you from?"):
await message.channel.send("I'm from the United States")
if message.content.startswith("$Where are you from"):
await message.channel.send("I'm from the United States")
if message.content.startswith("$where are you from"):
await message.channel.send("I'm from the United States")
# fav color
if message.content.startswith("$What is your favorite color?"):
await message.channel.send("I like blurple")
if message.content.startswith("$What is your favorite color"):
await message.channel.send("I like blurple")
if message.content.startswith("$what is your favorite color"):
await message.channel.send("I like blurple")
if message.content.startswith("$What is your favorite colour"):
await message.channel.send("I like blurple")
if message.content.startswith("$what is your favorite colour"):
await message.channel.send("I like blurple")
if message.content.startswith("$What is your favorite colour?"):
await message.channel.send("I like blurple")
# bad testy
if message.content.startswith("$Bad Testy"):
await message.channel.send(bad_testy())
if message.content.startswith("$bad Testy"):
await message.channel.send(bad_testy())
if message.content.startswith("$bad testy"):
await message.channel.send(bad_testy())
if message.content.startswith("$bad testy!"):
await message.channel.send(bad_testy())
if message.content.startswith("$Bad testy!"):
await message.channel.send(bad_testy())
if message.content.startswith("$bad Testy!"):
await message.channel.send(bad_testy())
if message.content.startswith("$🗞️"):
await message.channel.send(testy_abuse())
# who is colleen?
if message.content.startswith("$Who is Colleen"):
await message.channel.send("Colleen is the awesome lady who made me")
if message.content.startswith("$Who is Colleen?"):
await message.channel.send("Colleen is the awesome lady who made me")
if message.content.startswith("$Who is Colleen Lohr?"):
await message.channel.send("Colleen Lohr is the awesome lady who made me")
if message.content.startswith("$Who is Colleen Lohr"):
await message.channel.send("Colleen Lohr is the awesome lady who made me")
# what is your github?
if message.content.startswith("$What is your github?"):
await message.channel.send("My github is https://github.com/cmlohr/Testy_the_bot")
if message.content.startswith("$what is your github"):
await message.channel.send("My github is https://github.com/cmlohr/Testy_the_bot")
if message.content.startswith("$code"):
await message.channel.send("My github is https://github.com/cmlohr/Testy_the_bot")
if message.content.startswith("$Code"):
await message.channel.send("My github is https://github.com/cmlohr/Testy_the_bot")
if message.content.startswith("$Code?"):
await message.channel.send("My github is https://github.com/cmlohr/Testy_the_bot")
client.run(my_secret)
| 33.881295 | 98 | 0.689882 | 1,263 | 9,419 | 5.063341 | 0.111639 | 0.091478 | 0.160125 | 0.260203 | 0.776701 | 0.76294 | 0.76294 | 0.76294 | 0.76294 | 0.756685 | 0 | 0.000903 | 0.176664 | 9,419 | 277 | 99 | 34.00361 | 0.823469 | 0.034186 | 0 | 0.356322 | 0 | 0 | 0.231828 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0.034483 | false | 0 | 0.045977 | 0 | 0.12069 | 0.028736 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 6 |
e059e222c8ec0cdcc6bc06ce8abde5b4b3b83d26 | 32,503 | py | Python | nar_module/nar/metrics.py | xiaoli0/chameleon_recsys | 554a99a6381803232b57eb948d170c219cd431e4 | [
"MIT"
] | 1 | 2021-03-01T17:44:04.000Z | 2021-03-01T17:44:04.000Z | nar_module/nar/metrics.py | xiaoli0/chameleon_recsys | 554a99a6381803232b57eb948d170c219cd431e4 | [
"MIT"
] | 9 | 2020-01-28T23:07:43.000Z | 2022-02-10T00:36:23.000Z | nar_module/nar/metrics.py | xiaoli0/chameleon_recsys | 554a99a6381803232b57eb948d170c219cd431e4 | [
"MIT"
] | null | null | null | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
import math
from collections import defaultdict
from sklearn.metrics import pairwise
def cosine_distance(v1, v2):
#As cosine similarity interval is [-1.0, 1.0], the cosine distance interval is [0.0, 2.0].
#This normalizes the cosine distance to interval [0.0, 1.0]
return pairwise.cosine_distances(v1, v2) / 2.0
#For ranks index starting from 0
def log_rank_discount(k):
return 1./math.log2(k+2)
class StreamingMetric:
name = 'undefined'
def __init__(self, topn):
self.topn = topn
self.reset()
def reset(self):
pass
def add(self, predictions, labels):
pass
def result(self):
pass
class MRR(StreamingMetric):
name = 'mrr_at_n'
def __init__(self, topn):
super().__init__(topn)
def reset(self):
self.mrr_results = []
def add(self, predictions, labels):
measures = []
for row_idx, session_labels in enumerate(labels):
for col_idx, item_label in enumerate(session_labels):
if item_label != 0:
correct_preds = (item_label == predictions[row_idx, col_idx])[:self.topn].astype(np.int32)
correct_preds_pos = np.where(correct_preds)[0]
reciprocal_rank = 0
if len(correct_preds_pos) > 0:
reciprocal_rank = 1.0 / (1+correct_preds_pos[0])
measures.append(reciprocal_rank)
self.mrr_results.extend(measures)
def result(self):
avg_mrr = np.mean(self.mrr_results)
return avg_mrr
class NDCG(StreamingMetric):
name = 'ndcg_at_n'
def __init__(self, topn):
super().__init__(topn)
def reset(self):
self.ndcg_results = []
def add(self, predictions, labels):
measures = []
for row_idx, session_labels in enumerate(labels):
for col_idx, item_label in enumerate(session_labels):
if item_label != 0:
correct_preds = (item_label == predictions[row_idx, col_idx]).astype(np.int32)
ndcg = NDCG._ndcg_at_k(correct_preds, self.topn)
measures.append(ndcg)
self.ndcg_results.extend(measures)
def result(self):
avg_ndcg = np.mean(self.ndcg_results)
return avg_ndcg
@staticmethod
def _ndcg_at_k(r, k):
#Based on https://gist.github.com/bwhite/3726239, but with alternative formulation of DCG
#which places stronger emphasis on retrieving relevant documents (used in Kaggle)
def dcg_at_k(r, k):
r = np.asfarray(r)[:k]
if r.size:
return np.sum((np.power(2,r)-1) / np.log2(np.arange(2, r.size + 2)))
return 0.
dcg_max = dcg_at_k(sorted(r, reverse=True), k)
if not dcg_max:
return 0.
return dcg_at_k(r, k) / dcg_max
class HitRate(StreamingMetric):
name = 'hitrate_at_n'
def __init__(self, topn):
super().__init__(topn)
def reset(self):
self.hitrate_total = 0
self.hitrate_matches = 0
def add(self, predictions, labels):
total = 0
matches = 0
for row_idx, session_labels in enumerate(labels):
for col_idx, item_label in enumerate(session_labels):
if item_label != 0:
total += 1
if item_label in predictions[row_idx, col_idx][:self.topn]:
matches += 1
self.hitrate_total += total
self.hitrate_matches += matches
def result(self):
hitrate = self.hitrate_matches / float(self.hitrate_total)
return hitrate
class HitRateBySessionPosition(StreamingMetric):
name = 'hitrate_at_n_by_pos'
def __init__(self, topn):
super().__init__(topn)
def reset(self):
self.hitrate_matches_by_session_pos = defaultdict(int)
self.hitrate_total_by_session_pos = defaultdict(int)
self.norm_pop_by_pos = defaultdict(int)
def add(self, predictions, labels, labels_norm_pop):
for row_idx, session_labels in enumerate(labels):
for col_idx, item_label in enumerate(session_labels):
if item_label != 0:
self.hitrate_total_by_session_pos[col_idx+1] += 1
self.norm_pop_by_pos[col_idx+1] += labels_norm_pop[row_idx, col_idx]
if item_label in predictions[row_idx, col_idx][:self.topn]:
self.hitrate_matches_by_session_pos[col_idx+1] += 1
def result(self):
hitrate_by_session_pos = dict([(key, (self.hitrate_matches_by_session_pos[key] if key in self.hitrate_matches_by_session_pos else 0) \
/ float(self.hitrate_total_by_session_pos[key])) \
for key in self.hitrate_total_by_session_pos])
avg_norm_pop_by_session_pos = dict([(key, (self.norm_pop_by_pos[key] if key in self.norm_pop_by_pos else 0) \
/ float(self.hitrate_total_by_session_pos[key])) \
for key in self.hitrate_total_by_session_pos])
return hitrate_by_session_pos, avg_norm_pop_by_session_pos, self.hitrate_total_by_session_pos
class PopularityBias(StreamingMetric):
name = 'pop_bias_at_n'
def __init__(self, topn):
super().__init__(topn)
def reset(self):
self.results = []
def add(self, predictions, labels, predictions_norm_pop):
measures = []
for row_idx, session_preds_norm_pop in enumerate(predictions_norm_pop):
for col_idx, item_preds_norm_pop in enumerate(session_preds_norm_pop):
#If this is not a padded item
if labels[row_idx, col_idx] != 0:
click_top_predictions_pop_norm = item_preds_norm_pop[:self.topn]
measures.extend(click_top_predictions_pop_norm)
self.results.extend(measures)
def result(self):
avg_pop = np.mean(self.results)
return avg_pop
class Novelty(StreamingMetric):
name = 'novelty_at_n'
def __init__(self, topn):
super().__init__(topn)
def reset(self):
self.results = []
def add(self, predictions, labels, predictions_norm_pop):
measures = []
for row_idx, session_preds_norm_pop in enumerate(predictions_norm_pop):
for col_idx, item_preds_norm_pop in enumerate(session_preds_norm_pop):
#If this is not a padded item
if labels[row_idx, col_idx] != 0:
#From "Novelty and Diversity Metrics for Recommender Systems - Choice, Discovery and Relevance" (2011)
novelty = -np.log2(item_preds_norm_pop[:self.topn])
measures.extend(novelty)
self.results.extend(measures)
def result(self):
avg_novelty = np.mean(self.results)
return avg_novelty
class ExpectedRankSensitiveNovelty(StreamingMetric):
name = 'esi-r_at_n'
def __init__(self, topn):
super().__init__(topn)
def reset(self):
self.results = []
def add(self, predictions, labels, predictions_norm_pop):
for row_idx, session_preds_norm_pop in enumerate(predictions_norm_pop):
for col_idx, item_preds_norm_pop in enumerate(session_preds_norm_pop):
#If this is not a padded item
if labels[row_idx, col_idx] != 0:
top_preds_norm_pop = item_preds_norm_pop[:self.topn]
disc_weights = []
items_novelty = []
for i in range(0,len(top_preds_norm_pop)-1):
#Logarithmic rank discount, to prioritize more diverse items in the top of the list
discount = log_rank_discount(i)
#From "Novelty and Diversity Metrics for Recommender Systems - Choice, Discovery and Relevance" (2011)
item_novelty = -np.log2(top_preds_norm_pop[i])
items_novelty.append(item_novelty*discount)
disc_weights.append(discount)
#Expected Novelty with logarithmic rank discount
#Adapted from "Incorporating Diversity in a Learning to Rank Recommender System" (2016)
avg_novelty = sum(items_novelty) / float(sum(disc_weights))
self.results.append(avg_novelty)
def result(self):
avg_novelty = np.mean(self.results)
return avg_novelty
class ExpectedRankRelevanceSensitiveNovelty(StreamingMetric):
name = 'esi-rr_at_n'
def __init__(self, topn, relevance_positive_sample, relevance_negative_samples):
super().__init__(topn)
self.relevance_positive_sample = relevance_positive_sample
self.relevance_negative_samples = relevance_negative_samples
def reset(self):
self.results = []
def add(self, predictions, labels, predictions_norm_pop):
for row_idx in range(len(predictions)):
for col_idx in range(len(predictions[row_idx])):
#If this is not a padded item
if labels[row_idx, col_idx] != 0:
click_top_predictions = predictions[row_idx, col_idx][:self.topn]
click_top_preds_norm_pop = predictions_norm_pop[row_idx, col_idx][:self.topn]
items_novelty = []
weights = []
for i in range(0,len(click_top_preds_norm_pop)-1):
#Logarithmic rank discount, to prioritize more diverse items in the top of the list
discount = log_rank_discount(i)
#From "Novelty and Diversity Metrics for Recommender Systems - Choice, Discovery and Relevance" (2011)
item_novelty = -np.log2(click_top_preds_norm_pop[i])
relevance = self.relevance_positive_sample if click_top_predictions[i] == labels[row_idx, col_idx] else self.relevance_negative_samples
items_novelty.append(item_novelty*discount*relevance)
weights.append(discount)
#Expected Novelty with logarithmic rank discount
#Adapted from "Incorporating Diversity in a Learning to Rank Recommender System" (2016)
avg_novelty = sum(items_novelty) / float(sum(weights))
self.results.append(avg_novelty)
def result(self):
avg_novelty = np.mean(self.results)
return avg_novelty
#TODO: Initialize with the clicks in buffer (when evaluation starts)
class ItemCoverage(StreamingMetric):
name = 'item_coverage_at_n'
def __init__(self, topn, recent_clicks_buffer):
self.recent_clicks_buffer = recent_clicks_buffer
super().__init__(topn)
def reset(self):
self.clicked_items = set(self.recent_clicks_buffer)
self.recommended_items = set()
def add(self, predictions, labels, clicked_items):
for row_idx, session_predictions in enumerate(predictions):
for col_idx, item_predictions in enumerate(session_predictions):
#If this is not a padded item
if labels[row_idx, col_idx] != 0:
click_top_predictions = item_predictions[:self.topn]
self.recommended_items.update(click_top_predictions)
####Including both the clicked item and all recommended items to ensure that we have a comprehensive set of all recommendable items at a given time
batch_clicked_items = set(np.hstack([labels[np.nonzero(labels)], clicked_items[np.nonzero(clicked_items)]]))
self.clicked_items.update(batch_clicked_items)
def result(self):
item_coverage = len(self.recommended_items) / float(len(self.clicked_items))
return item_coverage
class ContentAverageIntraListDiversity(StreamingMetric):
name = 'content_avg_ild_at_n'
def __init__(self, topn, content_article_embeddings_matrix):
super().__init__(topn)
self.content_article_embeddings_matrix = content_article_embeddings_matrix
def reset(self):
self.results = []
def add(self, predictions, labels):
for row_idx, session_predictions in enumerate(predictions):
for col_idx, item_predictions in enumerate(session_predictions):
#If this is not a padded item
if labels[row_idx, col_idx] != 0:
click_top_predictions = item_predictions[:self.topn]
distances = cosine_distance(self.content_article_embeddings_matrix[click_top_predictions],
self.content_article_embeddings_matrix[click_top_predictions])
dists = []
for i in range(0,len(click_top_predictions)-1):
for j in range(i+1,len(click_top_predictions)):
cos_dist = distances[i,j]
dists.append(cos_dist)
avg_cos_dist = sum(dists) / float(len(dists))
self.results.append(avg_cos_dist)
def result(self):
avg_cos_dist = np.mean(self.results)
return avg_cos_dist
#Inspired in https://lsrs2017.files.wordpress.com/2017/08/lsrs_2017_lamingchen.pdf
class ContentMedianIntraListDiversity(StreamingMetric):
name = 'content_median_ild_at_n'
def __init__(self, topn, content_article_embeddings_matrix):
super().__init__(topn)
self.content_article_embeddings_matrix = content_article_embeddings_matrix
def reset(self):
self.results = []
def add(self, predictions, labels):
for row_idx, session_predictions in enumerate(predictions):
for col_idx, item_predictions in enumerate(session_predictions):
#If this is not a padded item
if labels[row_idx, col_idx] != 0:
click_top_predictions = item_predictions[:self.topn]
distances = cosine_distance(self.content_article_embeddings_matrix[click_top_predictions],
self.content_article_embeddings_matrix[click_top_predictions])
dists = []
for i in range(0,len(click_top_predictions)-1):
for j in range(i+1,len(click_top_predictions)):
cos_dist = distances[i,j]
dists.append(cos_dist)
median_cos_dist = np.median(dists)
self.results.append(median_cos_dist)
def result(self):
avg_cos_dist = np.mean(self.results)
return avg_cos_dist
#Inspired in https://lsrs2017.files.wordpress.com/2017/08/lsrs_2017_lamingchen.pdf
class ContentMinIntraListDiversity(StreamingMetric):
name = 'content_min_ild_at_n'
def __init__(self, topn, content_article_embeddings_matrix):
super().__init__(topn)
self.content_article_embeddings_matrix = content_article_embeddings_matrix
def reset(self):
self.results = []
def add(self, predictions, labels):
for row_idx, session_predictions in enumerate(predictions):
for col_idx, item_predictions in enumerate(session_predictions):
#If this is not a padded item
if labels[row_idx, col_idx] != 0:
click_top_predictions = item_predictions[:self.topn]
distances = cosine_distance(self.content_article_embeddings_matrix[click_top_predictions],
self.content_article_embeddings_matrix[click_top_predictions])
dists = []
for i in range(0,len(click_top_predictions)-1):
for j in range(i+1,len(click_top_predictions)):
cos_dist = distances[i,j]
dists.append(cos_dist)
min_cos_dist = np.min(dists)
self.results.append(min_cos_dist)
def result(self):
avg_cos_dist = np.mean(self.results)
return avg_cos_dist
class ContentExpectedRankSensitiveIntraListDiversity(StreamingMetric):
name = 'content_eild-r_v2_at_n'
def __init__(self, topn, content_article_embeddings_matrix):
super().__init__(topn)
self.content_article_embeddings_matrix = content_article_embeddings_matrix
def reset(self):
self.results = []
def add(self, predictions, labels):
for row_idx, session_predictions in enumerate(predictions):
for col_idx, item_predictions in enumerate(session_predictions):
#If this is not a padded item
if labels[row_idx, col_idx] != 0:
click_top_predictions = item_predictions[:self.topn]
distances = cosine_distance(self.content_article_embeddings_matrix[click_top_predictions],
self.content_article_embeddings_matrix[click_top_predictions])
avg_dists = []
disc_weights = []
for i in range(0,len(click_top_predictions)-1):
#Logarithmic rank discount, to prioritize more diverse items in the top of the list
discount = 1./math.log2(i+2)
disc_weights.append(discount)
dists = []
for j in range(i+1,len(click_top_predictions)):
dist = distances[i,j]
dists.append(dist)
avg_dist = sum(dists)/float(len(dists))
avg_dists.append(avg_dist*discount)
#Expected Intra-List Diversity (EILD) with logarithmic rank discount
#From "Incorporating Diversity in a Learning to Rank Recommender System" (2016)
avg_cos_dist = sum(avg_dists) / float(sum(disc_weights))
self.results.append(avg_cos_dist)
def result(self):
avg_cos_dist = np.mean(self.results)
return avg_cos_dist
class ContentExpectedRankRelativeSensitiveIntraListDiversity(StreamingMetric):
name = 'content_eild-r_at_n'
def __init__(self, topn, content_article_embeddings_matrix):
super().__init__(topn)
self.content_article_embeddings_matrix = content_article_embeddings_matrix
def reset(self):
self.results = []
def add(self, predictions, labels):
for row_idx, session_predictions in enumerate(predictions):
for col_idx, item_predictions in enumerate(session_predictions):
#If this is not a padded item
if labels[row_idx, col_idx] != 0:
click_top_predictions = item_predictions[:self.topn]
distances = cosine_distance(self.content_article_embeddings_matrix[click_top_predictions],
self.content_article_embeddings_matrix[click_top_predictions])
avg_dists = []
disc_weights = []
for i in range(0,len(click_top_predictions)-1):
dists = []
weights = []
for j in range(0, len(click_top_predictions)):
#Ignoring self-similarity
if j == i:
continue
dist = distances[i,j]
#Under the assumption that diversity of the items is more perceived by users when items are near in the ranked list
rel_discount = log_rank_discount(max(0, j-i-1))
dists.append(dist * rel_discount)
weights.append(rel_discount)
weighted_avg_dists = sum(dists)/float(sum(weights))
#Logarithmic rank discount, to prioritize more diverse items in the top of the list
discount = log_rank_discount(i)
avg_dists.append(weighted_avg_dists*discount)
disc_weights.append(discount)
#Expected Intra-List Diversity (EILD) with logarithmic rank discount
#From "Incorporating Diversity in a Learning to Rank Recommender System" (2016)
avg_cos_dist = sum(avg_dists) / float(sum(disc_weights))
self.results.append(avg_cos_dist)
def result(self):
avg_cos_dist = np.mean(self.results)
return avg_cos_dist
class ContentExpectedRankRelativeRelevanceSensitiveIntraListDiversity(StreamingMetric):
name = 'content_eild-rr_at_n'
def __init__(self, topn, content_article_embeddings_matrix, relevance_positive_sample, relevance_negative_samples):
super().__init__(topn)
self.content_article_embeddings_matrix = content_article_embeddings_matrix
self.relevance_positive_sample = relevance_positive_sample
self.relevance_negative_samples = relevance_negative_samples
def reset(self):
self.results = []
def add(self, predictions, labels):
for row_idx, session_predictions in enumerate(predictions):
for col_idx, item_predictions in enumerate(session_predictions):
#If this is not a padded item
if labels[row_idx, col_idx] != 0:
click_top_predictions = item_predictions[:self.topn]
distances = cosine_distance(self.content_article_embeddings_matrix[click_top_predictions],
self.content_article_embeddings_matrix[click_top_predictions])
avg_dists = []
disc_weights = []
for i in range(0,len(click_top_predictions)-1):
dists = []
weights = []
for j in range(i+1,len(click_top_predictions)):
#Ignoring self-similarity
if j == i:
continue
dist = distances[i,j]
#Weights item by relevance
relevance_j = self.relevance_positive_sample if click_top_predictions[j] == labels[row_idx, col_idx] else self.relevance_negative_samples
#Under the assumption that diversity of the items is more perceived by users when items are near in the ranked list
rel_discount = log_rank_discount(max(0, j-i-1))
dists.append(dist * rel_discount * relevance_j)
weights.append(rel_discount * relevance_j)
avg_dists_i = sum(dists)/float(sum(weights))
#Weights item by relevance
relevance_i = self.relevance_positive_sample if click_top_predictions[i] == labels[row_idx, col_idx] else self.relevance_negative_samples
#Logarithmic rank discount, to prioritize more diverse items in the top of the list
rank_discount_i = log_rank_discount(i)
avg_dists.append(avg_dists_i * rank_discount_i * relevance_i)
disc_weights.append(rank_discount_i)
#Expected Intra-List Diversity (EILD) with logarithmic rank discount
#From "Incorporating Diversity in a Learning to Rank Recommender System" (2016)
avg_cos_dist = sum(avg_dists) / float(sum(disc_weights))
self.results.append(avg_cos_dist)
def result(self):
avg_cos_dist = np.mean(self.results)
return avg_cos_dist
class ContentExpectedRankRelevanceSensitiveIntraListDiversity(StreamingMetric):
name = 'content_eild-rr_v2_at_n'
def __init__(self, topn, content_article_embeddings_matrix, relevance_positive_sample, relevance_negative_samples):
super().__init__(topn)
self.content_article_embeddings_matrix = content_article_embeddings_matrix
self.relevance_positive_sample = relevance_positive_sample
self.relevance_negative_samples = relevance_negative_samples
def reset(self):
self.results = []
def add(self, predictions, labels):
for row_idx, session_predictions in enumerate(predictions):
for col_idx, item_predictions in enumerate(session_predictions):
#If this is not a padded item
if labels[row_idx, col_idx] != 0:
click_top_predictions = item_predictions[:self.topn]
distances = cosine_distance(self.content_article_embeddings_matrix[click_top_predictions],
self.content_article_embeddings_matrix[click_top_predictions])
avg_dists = []
disc_weights = []
for i in range(0,len(click_top_predictions)-1):
dists = []
#weights = []
for j in range(i+1,len(click_top_predictions)):
#Ignoring self-similarity
if j == i:
continue
'''
embedding_item_i = self.content_article_embeddings_matrix[click_top_predictions[i]].reshape(1,-1)
embedding_item_j = self.content_article_embeddings_matrix[click_top_predictions[j]].reshape(1,-1)
dist = cosine_distance(embedding_item_i, embedding_item_j)
'''
dist = distances[i,j]
#Weights item by relevance
#relevance_j = self.relevance_positive_sample if click_top_predictions[j] == labels[row_idx, col_idx] else self.relevance_negative_samples
#Under the assumption that diversity of the items is more perceived by users when items are near in the ranked list
#rel_discount = log_rank_discount(max(0, j-i-1))
dists.append(dist)
#weights.append(rel_discount * relevance_j)
#avg_dists_i = sum(dists)/float(sum(weights))
avg_dists_i = sum(dists)/float(len(dists))
#Weights item by relevance
relevance_i = self.relevance_positive_sample if click_top_predictions[i] == labels[row_idx, col_idx] else self.relevance_negative_samples
#Logarithmic rank discount, to prioritize more diverse items in the top of the list
rank_discount_i = log_rank_discount(i)
avg_dists.append(avg_dists_i * rank_discount_i * relevance_i)
disc_weights.append(rank_discount_i)
#Expected Intra-List Diversity (EILD) with logarithmic rank discount
#From "Incorporating Diversity in a Learning to Rank Recommender System" (2016)
avg_cos_dist = sum(avg_dists) / float(sum(disc_weights))
self.results.append(avg_cos_dist)
def result(self):
avg_cos_dist = np.mean(self.results)
return avg_cos_dist
class CategoryExpectedIntraListDiversity(StreamingMetric):
name = 'category_eild_at_n'
def __init__(self, topn, categories):
super().__init__(topn)
self.categories = categories
def reset(self):
self.results = []
def add(self, predictions, labels):
for row_idx, session_predictions in enumerate(predictions):
for col_idx, item_predictions in enumerate(session_predictions):
#If this is not a padded item
if labels[row_idx, col_idx] != 0:
click_top_predictions = item_predictions[:self.topn]
#TODO: Vectorize this inner loop (too slow)
avg_dists = []
disc_weights = []
for i in range(0,len(click_top_predictions)-1):
dists = []
weights = []
for j in range(0, len(click_top_predictions)):
#Ignoring self-similarity
if j == i:
continue
category_item_i = self.categories[click_top_predictions[i]].reshape(1,-1)
category_item_j = self.categories[click_top_predictions[j]].reshape(1,-1)
dist = 0.0 if category_item_i == category_item_j else 1.0
#Under the assumption that diversity of the items is more perceived by users when items are near in the ranked list
rel_discount = log_rank_discount(max(0, j-i-1))
dists.append(dist * rel_discount)
weights.append(rel_discount)
avg_dist = sum(dists)/float(sum(weights))
#Logarithmic rank discount, to prioritize more diverse items in the top of the list
discount = log_rank_discount(i)
avg_dists.append(avg_dist*discount)
disc_weights.append(discount)
#Expected Intra-List Diversity (EILD) with logarithmic rank discount
#From "Incorporating Diversity in a Learning to Rank Recommender System" (2016)
avg_cos_dist = sum(avg_dists) / float(sum(disc_weights))
self.results.append(avg_cos_dist)
def result(self):
avg_cos_dist = np.mean(self.results)
return avg_cos_dist | 41.724005 | 171 | 0.558902 | 3,466 | 32,503 | 4.933353 | 0.071264 | 0.025733 | 0.057781 | 0.064916 | 0.810983 | 0.780046 | 0.744371 | 0.730043 | 0.712381 | 0.707527 | 0 | 0.009855 | 0.372489 | 32,503 | 779 | 172 | 41.724005 | 0.828496 | 0.12082 | 0 | 0.684549 | 0 | 0 | 0.010171 | 0.002418 | 0 | 0 | 0 | 0.002567 | 0 | 1 | 0.16309 | false | 0.006438 | 0.015021 | 0.004292 | 0.304721 | 0.002146 | 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 | 0 | 0 | 0 | 6 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.