input
stringlengths
2.65k
237k
output
stringclasses
1 value
5: 20 'MBD0004D0D1/\\x01Ole' 6: O 114798 'MBD0004D0D1/\\x01Ole10Native' 7: 11312 'Workbook' To get more info about the embedded object, use option -i like this: C:\Demo>oledump.py -s 6 -i Book1-insert-object-calc-rol3.exe.xls String 1: calc-rol3.exe String 2: C:\Demo\ole\CALC-R~1.EXE String 3: C:\Demo\ole\CALC-R~1.E...
import sys import tensorflow as tf from tensorflow.python.ops import variable_scope as vs from cnn import cnn, DynamicMaxPooling jumper = tf.load_op_library('./jumper.so') def batch_slice(batch, start, offset, pad_values=None): bs = tf.shape(batch)[0] max_offset = tf.reduce_max(offset) min_last = tf.redu...
is to use CEMS data to characterize each generator unit. So if CEMS has enough information to describe a generator unit we will over-write the eGRID data. If not, we will use the eGRID data instead. (CEMS data is expected to be more accurate because it has actual hourly performance of the generator units that we can us...
# coding: utf-8 """ SignRequest API API for SignRequest.com OpenAPI spec version: v1 Contact: <EMAIL> Generated by: https://github.com/swagger-api/swagger-codegen.git """ import pprint import re # noqa: F401 import six from signrequest_client.models.required_attachment import RequiredAttachment # noqa: F401...
sender_internal_identification: Optional[pulumi.Input[str]] = None, sender_internal_sub_identification: Optional[pulumi.Input[str]] = None, sender_reverse_routing_address: Optional[pulumi.Input[str]] = None, transaction_set_control_number_lower_bound: Optional[pulumi.Input[int]] = None, transaction_set_control_numb...
cache: %s", new_server) try: del self.server_details_by_id[new_server['server_id']] except KeyError: self.log.debug("Server: %s has already been removed from the cache", new_server['server_id']) def filter_excluded_servers(self): proj_list = set([]) if self.exclude_server_id_rules: # Filter out excluded server...
not None: subclass = getSubclassFromModule_( CurrentSubclassModule_, localTrabalho) if subclass is not None: return subclass(*args_, **kwargs_) if localTrabalho.subclass: return localTrabalho.subclass(*args_, **kwargs_) else: return localTrabalho(*args_, **kwargs_) factory = staticmethod(factory) def get_loca...
ensemble layer by layer. grow_op = training_ops.grow_tree_ensemble( tree_ensemble_handle, stamp_token=0, next_stamp_token=1, learning_rate=0.1, partition_ids=[ handler1_partitions, handler2_partitions, handler3_partitions ], gains=[handler1_gains, handler2_gains, handler3_gains], splits=[handler1_split, handl...
hour=9), datetime(1999, 1, 4, hour=9), datetime(1999, 1, 5, hour=9), datetime(1999, 1, 6, hour=9), datetime(1999, 1, 7, hour=9), datetime(1999, 1, 8, hour=9), datetime(1999, 1, 9, hour=9), datetime(1999, 1, 10, hour=9), datetime(1999, 1, 11, hour=9), datetime(1999, 1, 12, hour=9), datetime(1999, 1, 13, hour=9...
<reponame>Bloomstack/gunicorn # -*- coding: utf-8 - # # This file is part of gunicorn released under the MIT license. # See the NOTICE for more information. import errno import os import random import select import signal import sys import time import traceback from gunicorn.errors import HaltServer, AppImportError fr...
<filename>bci_lib/Stages/FeatureExtraction/FeatureExtraction.py from abc import ABC from bci_lib import * from bci_lib.DataTypes import Stage, Database from typing import Any, Tuple, List import numpy as np import mne from sklearn import decomposition class PSD(Stage): """ DESCRIPTION ----------- ...
[1, 0, 2, 0, 1, 1, 0, 0] sage: [c.phi(2) for c in C] [1, 2, 0, 1, 0, 0, 1, 0] """ highest_weight_crystal = self.parent()._highest_weight_crystal positions, gi = self._gi(i) m=max(gi) if not highest_weight_crystal and i == 0: raise NotImplementedError # I think the M below should still work in this case M =...
<reponame>spacetelescope/pysynphot_DONOTUSE # Licensed under a 3-clause BSD style license - see LICENSE.rst """Test spectrum.py module and related functionalities that are not covered by ``test_spectrum_source.py`` nor ``test_spectrum_bandpass.py``.""" # STDLIB import os import shutil import tempfile # THIRD-PARTY im...
self.tsc.save() utils.create_test_list_membership(self.test_list, self.tsc) upload = utils.create_test(name="file_upload", test_type=models.UPLOAD) upload.calculation_procedure = "import json; result=json.load(FILE)" upload.save() utils.create_test_list_membership(self.test_list, upload) filepath = os.path.join...
cocoDt, "segm") results = {} for i in cocoEval.params.catIds: cocoEval = COCOeval(cocoGt, cocoDt, "segm") cocoEval.params.iouThrs = np.array([.5]) cocoEval.params.catIds = [i] cocoEval.params.areaRngLbl = ["all"] cocoEval.evaluate() cocoEval.accumulate() stat = list(cocoEval.summarize().values()) assert len...
# Copyright 2018-2019, <NAME> and The Tor Project # See LICENSE for licensing information """ Interaction with a Tor relay's ORPort. :class:`~stem.client.Relay` is a wrapper for :class:`~stem.socket.RelaySocket`, much the same way as :class:`~stem.control.Controller` provides higher level functions for :class:`~stem.s...
""" This module supports embedded TeX expressions in matplotlib via dvipng and dvips for the raster and postscript backends. The tex and dvipng/dvips information is cached in ~/.matplotlib/tex.cache for reuse between sessions Requirements: * latex * \*Agg backends: dvipng * PS backend: latex w/ psfrag, dvips, and Gho...
lock) def process(self, ctx, iprot, oprot): args = getReverseCompactContacts_args() args.read(iprot) iprot.readMessageEnd() result = getReverseCompactContacts_result() try: result.success = self._handler([ctx, args.ids]) except TalkException as e: result.e = e except TApplicationException as ex: with self._...
bestX, bestPf ########################### Visualization Methods def plotThresholds(self, conDatNum, xlim=[-.01, .5], **kwargs): """ Function to sample the continuous data and plot the thresholds calculated with the SVD call with a histogram of detex's best estimate of the null space (see getFAS for more detai...
<reponame>vnetcon/curvy<filename>win64-postgresql/pgAdmin 4/web/pgadmin/browser/server_groups/servers/databases/schemas/foreign_tables/__init__.py ########################################################################## # # pgAdmin 4 - PostgreSQL Tools # # Copyright (C) 2013 - 2020, The pgAdmin Development Team # Thi...
import os, sys, time, requests, zipfile, StringIO import h2o_args # from h2o_cmd import runInspect, infoFromSummary import h2o_cmd, h2o_util import h2o_browse as h2b import h2o_print as h2p from h2o_objects import H2O from h2o_test import verboseprint, dump_json, check_sandbox_for_errors, get_sandbox_name, log # pri...
import os import sys from bcbio.rnaseq import (featureCounts, cufflinks, oncofuse, count, dexseq, express, variation, stringtie, sailfish, spikein, pizzly, ericscript, kallisto, salmon) from bcbio.rnaseq.gtf import tx2genefile from bcbio.ngsalign import bowtie2, alignprep from bcbio.variation import joint, multi, var...
# #print(query) # else: # return messageDetail.ReplyToChat("No user information available") # # #print(query) # results = zendesk.search(query=query) # #print(results) # # if str(results).startswith( # "{'results': [], 'facets': None, 'next_page': None, 'previous_page': None, 'count': 0}"): # return messageDe...
import re import en_core_web_sm #English import pt_core_news_sm #Portuguese import ru_core_news_sm #Russian import zh_core_web_sm #Mandarim import ja_core_news_sm #Japanese import es_core_news_sm #Spanish import de_core_news_sm #German import fr_core_news_sm #French import it_core_news_sm #Italian from langdetect impor...
4, 0)], Color: deeppink Polyomino: [(1, 3, 0), (2, 3, 0), (2, 4, 0), (2, 4, 1), (2, 5, 0)], Color: deeppink Polyomino: [(1, 4, 0), (2, 4, 0), (2, 5, 0), (2, 5, 1), (2, 6, 0)], Color: deeppink Polyomino: [(1, 5, 0), (2, 5, 0), (2, 6, 0), (2, 6, 1), (2, 7, 0)], Color: deeppink Polyomino: [(2, 0, 0), (3, 0, 0), (3, 1,...
<gh_stars>0 import shapely from kivy.app import App from kivy.graphics.context_instructions import Scale, Translate, Color, PushMatrix, Rotate, PopMatrix from kivy.graphics.fbo import Fbo from kivy.graphics.gl_instructions import ClearColor, ClearBuffers from kivy.graphics.transformation import Matrix from kivy.graphic...
valid. This must be entered as a sequence of two temperature values. Required. :param coeffs: List of nine coefficients :math:`(a_0, \ldots , a_8)` :param p0: The reference-state pressure, usually 1 atm or 1 bar. If omitted, the default value is used, which is set by the ``standard_pressure`` directive. """ s...
# /usr/bin/env python3.5 # -*- mode: python -*- # ============================================================================= # @@-COPYRIGHT-START-@@ # # Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are...
of the first argument to the function relative to the position of the opening bracket and the number of spaces between the opening bracket and the function name. The two values will to be used to align the other arguments in the subsequent line """ args = parse_args(args) spaces_before_func = 0 subline = curr_li...
dframe_2018['file'].apply(lambda x: int(str(x)[9:11])) dframe_2018['Second'] = dframe_2018['file'].apply(lambda x: int(str(x)[11:13])) base_date = datetime(year=2018, month=1, day=1) dframe_2018['date'] = [base_date + timedelta(days=int(row[0] - 1), hours=int(row[1]), minutes=int(row[2]), seconds=int(row[3]) ) fo...
#!/usr/bin/env python """Script that parses CATME peer evaluation data and plots summary plots and statistics. The CATME Peer evaluation results are provided in a CSV file which contains more than one table and mixed in metadata. The data are separated by double line returns and are as follows: 1. Extraneous metadat...
+= ("_CLI_" + __version__) models = MODELS_MAP[g_param[OptionsDefine.Version]] model = models.CreateAgentGroupRequest() model.from_json_string(json.dumps(args)) start_time = time.time() while True: rsp = client.CreateAgentGroup(model) result = rsp.to_json_string() try: json_obj = json.loads(result) except Typ...
keys: * "brightness": Brightness settings * "contrast": Contrast setting .. versionadded:: 2.0 """ raise NotImplementedError @abstractmethod def set_stem_detector_param(self, name, values, ignore_errors=False): """ Set parameters for STEM detector *name*. The parameters should be given as a dictionary. All...
<filename>BERT/run_pipeline.py<gh_stars>0 import argparse import torch.multiprocessing as mp import math import sys import time import os import psutil import torch import torch.distributed as dist import torch.nn as nn from torch.distributed.nn import RemoteModule from torch.utils.data import DataLoader import torch....
# Copyright 2016 <NAME> # # 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 ...
Tight_Legend_4ShrinkAxesH(fig,ncolumn=4,fontsize=12,numpoints=1): """ Purpose: To put a legend on the right part of the figure. To be used when one figure has 4 subplots and subplots are shrinked in height. Note: The advantage of this method is that you can specify the line as labeled or not as you want (it extracts...
about accidentally picking something we'll regret while new in self.constraints or new in self.variables: new = new_label() mapping[u] = new self.objective.add_variable(vartype, new, lower_bound=lb, upper_bound=ub) # we don't add the constraint yet because we don't want # to modify self.constraints else: new...
# -*- coding: utf-8 -*- # Created on Feb 17, 2013 # Last updated on September 22, 2016 # @author: <NAME> import os import re import _file_utils as utils import inspect import unicodedata from copy import deepcopy from itertools import chain class HierarchyManager: def __init__(self, text_path, header_regex, tag_p...
f_attr, g_attr) else: lm = lambda i, j, alg='encrypt' : \ self.compose(f, g(i, j, alg), alg, f_attr, g_attr) return RijndaelGF.Round_Component_Poly_Constr(lm, self) def add_round_key_poly_constr(self): r""" Return the ``Round_Component_Poly_Constr`` object corresponding to AddRoundKey. EXAMPLES:: sage: fro...
is unbound in the current context. Raises: NameError: If requested `name` is not found among the bound names currently available in `self`. """ py_typecheck.check_type(name, six.string_types) comp = self.active_node while not isinstance(comp.payload, OuterContextPointer): if name == comp.payload.name: return...
<gh_stars>1-10 import requests from .auth import CallHubAuth from ratelimit import limits, sleep_and_retry from .bulk_upload_tools import csv_and_mapping_create from requests.structures import CaseInsensitiveDict import types import math from requests_futures.sessions import FuturesSession from collections import defau...
atom.stereochemistry == "S": central_carbon_stereo_specified = True assert central_carbon_stereo_specified # Populate bond core property fields fractional_bond_orders = [float(val) for val in range(18)] for fbo, bond in zip(fractional_bond_orders, molecule.bonds): bond.fractional_bond_order = fbo # Do a first ...
Processes a removed ticket, with optional reason given. """ if self.current_ticket and self.current_ticket.id == ticket.id: # Post the reason user = await self.fetch_user() await user.send(reason or "Ticket #{} was removed from your queue!".format(ticket.id)) # Deliver next ticket await self.deliver() async d...
<reponame>mederrata/probability # Copyright 2021 The TensorFlow Probability Authors. # # 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 ...
model = keras.models.Model([input_1, input_2], [output1, output2]) model.compile( optimizer="rmsprop", loss="mse", run_eagerly=test_utils.should_run_eagerly(), ) model.train_on_batch( [np.zeros((batch, t, i1)), np.zeros((batch, t, i2, i3))], [np.zeros((batch, t, o21)), np.zeros((batch, t, o22, o23))], ) self....
'kuì', 0x6127: 'kuì', 0x6128: 'què', 0x6129: 'gōng,gòng,hǒng', 0x612A: 'yún', 0x612B: 'sù', 0x612C: 'sù,shuò', 0x612D: 'qí', 0x612E: 'yáo,yào', 0x612F: 'sǒng', 0x6130: 'huàng', 0x6131: 'jí', 0x6132: 'gǔ', 0x6133: 'jù', 0x6134: 'chuàng', 0x6135: 'nì', 0x6136: 'xié', 0x6137: 'kǎi', 0x6138: 'zhěng', 0x6...
<reponame>dschwoerer/samscripts #! /usr/bin/env python # Copyright <NAME>, 2015. www.sovic.org # # Creates a pileup from a given SAM/BAM file, and calls consensus bases (or variants). import os import sys import operator import subprocess def increase_in_dict(dict_counter, value): try: dict_counter[value] += 1 e...
import hashlib import json import os import re import time import uuid from typing import List, Union, Optional from urllib.parse import urljoin from zipfile import ZipFile from requests import Session, get, Response from requests.adapters import HTTPAdapter from requests.cookies import cookiejar_from_dict from urllib...
<gh_stars>1-10 from copy import deepcopy import numpy as np from shapely import geometry, validation from article_separation.image_segmentation.net_post_processing.region_to_page_writer import RegionToPageWriter from python_util.parser.xml.page.page_constants import sSEPARATORREGION, sTEXTREGION from python_util.pars...
SELECT x := ( Issue.number, (Issue.time_spent_log ?? DUMMY).spent_time ) ORDER BY x.0 THEN x.1; ''', [ ['1', 60], ['2', 90], ['3', 30], ['3', 60], ['4', -1], ['5', -1], ['6', -1], ], ) async def test_edgeql_coalesce_object_03(self): await self.assert_query_result( r''' WITH DUMMY := (SELECT LogEntry...
<reponame>AaronFriel/pulumi-aws-native # coding=utf-8 # *** WARNING: this file was generated by the Pulumi SDK Generator. *** # *** Do not edit by hand unless you're certain you know what you are doing! *** import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, ...
<filename>venv/Lib/site-packages/pygments/cmdline.py # -*- coding: utf-8 -*- """ pygments.cmdline ~~~~~~~~~~~~~~~~ Command line interface. :copyright: Copyright 2006-2021 by the Pygments team, see AUTHORS. :license: BSD, see LICENSE for details. """ import os import sys import getopt from textwrap import dedent...
<gh_stars>1-10 #!/usr/bin/env python # -*- coding: utf-8 -*- ############################################################################### # $Id$ # # Project: GDAL/OGR Test Suite # Purpose: Test basic read support for a all datatypes from a TIFF file. # Author: <NAME> <<EMAIL>> # ####################################...
tf.tanh(rewards / 5.0) # Negative rewards are given less weight than positive rewards. clipped_rewards = tf.where(rewards < 0, .3 * squeezed, squeezed) * 5. discounts = tf.to_float(~done) * FLAGS.discounting # Compute V-trace returns and weights. # Note, this is put on the CPU because it's faster than on GPU. It ...
<filename>produce_scenes_audio.py # CLEAR Dataset # >> Scene audio produce # # Author : <NAME> # Year : 2018-2019 # Affiliations: Universite de Sherbrooke - Electrical and Computer Engineering faculty # KTH Stockholm Royal Institute of Technology # IGLU - CHIST-ERA import sys, os, argparse, random from multiprocessin...
is not None: self._categories = self.categories # categories not set -> infer if we need legacy mode or not elif self.n_values is not None and self.n_values != 'auto': msg = ( "Passing 'n_values' is deprecated in version 0.20 and will be " "removed in 0.22. You can use the 'categories' keyword " "instead. 'n_va...
dict[str, PredefinedField]() # A repository of Interaction objects. interactions: dict[str, Interaction] = dict[str, Interaction]() # A repository of InteractionProperty objects. interactionProperties: dict[str, ContactProperty] = dict[str, ContactProperty]() # A repository of ContactControl objects. contac...
one author = self.work.authors.first() if author: # use the last name of the first author author = author.authorized_name.split(',')[0] else: # otherwise, set it to an empty string author = '' # truncate the title to first several words of the title title = ' '.join(self.work.primary_title.split()[:9]) # use ...
>= 2: try: int(self.arguments[1]) except ValueError: core.debug_print('Exception in Cloud command <damage> argument parsing:') if core.config('debug', False) or core.state.get('is_daemon', False): traceback.print_exc(file=sys.stdout) return '<damage> must be a number' return True @handle_exceptions def run(...
for NOLINT raw_lines = clean_lines.raw_lines ParseNolintSuppressions(filename, raw_lines[endlinenum-1], endlinenum-1, error) ParseNolintSuppressions(filename, raw_lines[endlinenum], endlinenum, error) error(filename, endlinenum, 'readability/braces', 4, "You don't need a ; after a }") def CheckEmptyBlockBody(...
<gh_stars>10-100 import socket from collections import OrderedDict from contextlib import suppress, contextmanager from fcntl import LOCK_EX, flock, LOCK_UN from functools import reduce from http.client import HTTPException, BadStatusLine from itertools import chain from os.path import join from os import remove from u...
or # noqa: E501 local_var_params['datacenter_id'] is None): # noqa: E501 raise ApiValueError("Missing the required parameter `datacenter_id` when calling `datacenters_volumes_labels_get`") # noqa: E501 # verify the required parameter 'volume_id' is set if self.api_client.client_side_validation and ('volume_id' not ...
None: pulumi.set(__self__, "path", path) if success_threshold is not None: pulumi.set(__self__, "success_threshold", success_threshold) if timeout is not None: pulumi.set(__self__, "timeout", timeout) @property @pulumi.getter(name="appStartTimeout") def app_start_timeout(self) -> Optional[pulumi.Input[str]]: ...
reverse=True) return sorted_executions @app.route('/workflow/execution/{Id}', cors=True, methods=['GET'], authorizer=authorizer) def get_workflow_execution_by_id(Id): """ Get a workflow execution by id Returns: A dictionary containing the workflow execution. Raises: 200: Workflow executions returned sucessfull...
<reponame>xiaomengyc/SPG import numpy as np import cv2 import os import torch import os import time from torchvision import models, transforms from torch.utils.data import DataLoader from torch.optim import SGD from torch.autograd import Variable idx2catename = {'voc20': ['aeroplane','bicycle','bird','boat','bottle','...
i,j,k : used for looping return: flag : success or error outSmArray : array containing smoothed data outRevArray : revised input data according to type of moving average and window msg : success or error massage reason ********************************************************************************************...
#!/usr/bin/env python from __future__ import print_function from builtins import input from builtins import str import sys import pmagpy.pmag as pmag def main(): """ NAME specimens_results_magic.py DESCRIPTION combines pmag_specimens.txt file with age, location, acceptance criteria and outputs pmag_results tabl...
..., n) The third dimension of ´P´ spans the v-direction control points (0, 1, ..., m) W : ndarray with shape (n+1, m+1) Array containing the weight of the control points The first dimension of ´W´ spans the u-direction control points weights (0, 1, ..., n) The second dimension of ´W´ spans the v-direction contro...
<reponame>summerandwinter/poempythonweb<filename>images.py<gh_stars>0 # coding: utf-8 from datetime import datetime from django.http import HttpResponse from django.http import HttpResponseRedirect from django.http import HttpResponseServerError from django.shortcuts import render from django.urls import reverse from...
when calling `project_project_id_repositories_post`") # noqa: E501 # verify the required parameter 'project_id' is set if ('project_id' not in params or params['project_id'] is None): raise ValueError("Missing the required parameter `project_id` when calling `project_project_id_repositories_post`") # noqa: E501 c...
raise e for ch in self.CHANNEL: for i in lenlist['less'][ch]: replace = np.zeros(info['numOfSamples']) if info['LEN'][ch][i] != 0: replace[:info['LEN'][ch][i]] = self.data[ch][i] self.data[ch][i] = replace # distance offset tend to increase info['up'] = True # list of stations that have distance offset diff...
after processing. There may also be additional results attributes that hold intermediate processing steps results. Each Block references the previous step to get the input data for the current processing step. Each Block has a 'Chain' object that performs the actual scientific algorithms on the data. Chain objects...
import os import sys import re import json import math from difflib import SequenceMatcher import plotly.graph_objects as go import requests import networkx as nx import pandas as pd import numpy as np import scipy import matplotlib import matplotlib.pyplot as plt from ipywidgets import interactive, HBox, VBox import i...
<filename>rsrcfork/api.py import collections import collections.abc import enum import os import struct import typing # The formats of all following structures is as described in the Inside Macintosh book (see module docstring). # Signedness and byte order of the integers is never stated explicitly in IM. # All intege...
options=[]): """ :arg arguments: A string of comma-separated C argument declarations. If *arguments* is specified, then *input_expr* must also be specified. All types used here must be known to PyOpenCL. (see :func:`pyopencl.tools.get_or_register_dtype`). :arg key_expr: An integer-valued C expression returning th...
= vol_meta[kv.VOL_OPTS][kv.ATTACH_AS] else: vinfo[kv.ATTACH_AS] = kv.DEFAULT_ATTACH_AS if kv.ACCESS in vol_meta[kv.VOL_OPTS]: vinfo[kv.ACCESS] = vol_meta[kv.VOL_OPTS][kv.ACCESS] else: vinfo[kv.ACCESS] = kv.DEFAULT_ACCESS return vinfo # Return error, or None for OK def removeVMDK(vmdk_path): logging.info("***...
<reponame>wangyusu/pymatgen """ This module defines input sets for CP2K and is a work in progress. The structure/philosophy of this module is based on the Vasp input sets in Pymatgen. These sets are meant to contain tested parameters that will result in successful, reproducible, consistent calculations without need for...
publisher of the document. Note: Information provided in the FULL view of the article might be more complete. """ # Return information from FULL view, fall back to other views full = chained_get(self._head, ['source', 'publisher', 'publishername']) if full is None: return chained_get(self._json, ['coredata', 'dc...
= int('00221037', 16) RefractiveProcedureOccurred = int('00221039', 16) RefractiveSurgeryTypeCodeSequence = int('00221040', 16) OphthalmicUltrasoundMethodCodeSequence = int('00221044', 16) OphthalmicAxialLengthMeasurementsSequence = int('00221050', 16) IOLPower = int('00221053', 16) PredictedRefractiveError = int...
""" Scattering GUI """ import sys, os import matplotlib.pyplot as plt # Plotting import numpy as np if sys.version_info[0] < 3: import Tkinter as tk else: import tkinter as tk from .. import functions_general as fg from .. import functions_crystallography as fc from .basic_widgets import StringViewer from .basic_w...
<reponame>cjohnson-ctl/platform-client-sdk-python<filename>build/PureCloudPlatformClientV2/models/coaching_appointment_response.py # coding: utf-8 """ Copyright 2016 SmartBear Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. Y...
24.538, 22.591, 24.580, VERTEX, 24.490, 22.409, 24.688, VERTEX, 24.433, 22.238, 24.808, VERTEX, 24.417, 22.200, 24.839, END, BEGIN, LINE_LOOP, VERTEX, 21.088, 24.249, 29.529, VERTEX, 21.225, 24.388, 29.466, VERTEX, 21.373, 24.538, 29.397, VERTEX, 21.521, 24.687, 29.326, VERTEX, 21.674, 24.725, 29.254, VERTEX, 21.850, 2...
35969, 35977, 35983, 35993, 35999, 36007, 36011, 36013, 36017, 36037, 36061, 36067, 36073, 36083, 36097, 36107, 36109, 36131, 36137, 36151, 36161, 36187, 36191, 36209, 36217, 36229, 36241, 36251, 36263, 36269, 36277, 36293, 36299, 36307, 36313, 36319, 36341, 36343, 36353, 36373, 36383, 36389, 36433, 36451, 36457, ...
target translation to source one :param target: str, transform we want to match :param source: str, source transform """ scale_pivot_vector = get_scale_pivot(transform_name=source, world_space=False) rotate_pivot_vector = get_rotate_pivot(transform_name=source, world_space=False) translate_vector = get_translati...
verbosity=True) self._mach_e = mach_solution # Static properties at the entrance: self._T_e = self.isent_flow.stat_temp_from_mach(self.mach_e, self.T_et) self._p_e = self.isent_flow.stat_pressure_from_mach(self.mach_e, self.p_et, self.T_et) self._rho_e = self.p_e / self.T_e / self.fluid.Rg self._rho_et = self....
# -*- coding: utf-8 -*- """ Created on Mon Nov 30 14:53:07 2020 Data of 138 bus test case used on Distribution Expansion Planning Model proposed by Muñoz-Delgado et al. (2014). Reference: <NAME>., <NAME>., & <NAME>. (2014). Joint expansion planning of distributed generation and distribution networks. IEEE Transaction...
from __future__ import print_function import os import random import signal import numpy as np from robolearn.old_utils.sampler import Sampler from robolearn.old_agents import GPSAgent from robolearn.old_algos.gps.gps import GPS from robolearn.old_costs.cost_action import CostAction from robolearn.old_costs.cost_fk ...
env) estrutura = self.load_template('structure', env) dados = self.gettemplate('payload_6.yml', env) reponame = dados['params']['Projeto'] app = NewTemplate('codepipeline_role', 'codebuild_role', 'DevSecOps_Role') resources = {} cf_codebuild = app.generate_codebuild( dados['runtime'], template_pipeline, dados['...
the *RCPT* commands. Raises: ConnectionResetError: If the connection with the server is unexpectedely lost. SMTPCommandFailedError: If the server refuses our EHLO/HELO greeting. SMTPCommandFailedError: If the server refuses our MAIL command. SMTPCommandFailedError: If the server refuses our DATA command. SMTPN...
import copy import json import logging import os import pickle import random import statistics import sys import time import numpy as np import torch import yaml from inclearn.lib import factory from inclearn.lib import metrics, utils, results_utils from inclearn.lib.network import FeatureGenerator from inclearn.lib....
""" dispparam.py Definition of a class that sets the parameters to be used when an image is displayed """ from math import fabs import numpy as np from matplotlib import pyplot as plt from astropy import units as u from astropy.coordinates import SkyCoord # ---------------------------------------------------------...
<gh_stars>0 """ Sandbox of new developments Use at your own risks Photometric package using Astropy Units ======================================= Defines a Filter class and associated functions to extract photometry. This also include functions to keep libraries up to date .. note:: integrations are done using :...
# -*- coding: utf-8 -*- # Copyright 2020 Green Valley Belgium NV # # 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 applicab...
<reponame>samrushing/caesure # -*- Mode: Python -*- import os import struct from pprint import pprint as pp import sys from caesure.script import pprint_script, OPCODES, parse_script, is_unspendable, VerifyError from caesure.block_db import BlockDB from caesure.bitcoin import * from caesure.txfaa import UTXO_Map, UTX...
54 -9.87 55 -10.91 56 -9.91 ABUNDANCE CHANGE 57 -10.87 58 -10.46 59 -11.33 60 -10.54 61 -20.00 62 -11.03 ABUNDANCE CHANGE 63 -11.53 64 -10.92 65 -11.69 66 -10.90 67 -11.78 68 -11.11 ABUNDANCE CHANGE 69 -12.04 70 -10.96 71 -11.98 72 -11.16 73 -12.17 74 -10.93 ABUNDANCE CHANGE 75 -11.76 76 -10.59 77 -10.69 78 -10.24 ...
# coding: utf-8 # Copyright (c) 2016, 2022, Oracle and/or its affiliates. All rights reserved. # This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may ch...
0] + dsa[:, 1]@dsa[:, 1] Gb = dsa[:, 0]@dsb[:, 0] + dsa[:, 1]@dsb[:, 1] Gc = dsa[:, 0]@dsc[:, 0] + dsa[:, 1]@dsc[:, 1] Gd = dsb[:, 0]@dsb[:, 0] + dsb[:, 1]@dsb[:, 1] Ge = dsb[:, 0]@dsc[:, 0] + dsb[:, 1]@dsc[:, 1] Gf = dsc[:, 0]@dsc[:, 0] + dsc[:, 1]@dsc[:, 1] G = six_to_nine(Ga, Gb, Gc, Gd, Ge, Gf) G /= sigmasq ...
self._segment_path = lambda: "prefix-name" self._is_frozen = True def __setattr__(self, name, value): self._perform_setattr(OcBgp.BgpRib.AfiSafiTable.Ipv4Unicast.OpenConfigNeighbors.OpenConfigNeighbor.AdjRibInPost.Routes.Route.PrefixName, ['prefix_length'], name, value) class Prefix(_Entity_): """ Prefix .....
if __name__ == '__main__': import matplotlib matplotlib.use('Agg') import os import sys import time import tempfile import numpy as np import fitsio from legacypipe.runbrick import main from astrometry.util.fits import fits_table def set_env(): for v in ['UNWISE_COADDS_TIMERESOLVED_DIR', 'SKY_TEMPLATE_DIR', 'LARGE...
variable from check file - %s' % (metric_check_file)) fail_check(skyline_app, metric_failed_check_dir, str(metric_check_file)) return value = None try: # metric_vars.value # value = str(metric_vars.value) key = 'value' value_list = [var_array[1] for var_array in metric_vars_array if var_array[0] == key] value...