input
stringlengths
2.65k
237k
output
stringclasses
1 value
Start, (CogQuest, Anywhere, 6, 'bs'), Any, ToonHQ, Any, NA, DefaultDialog), 3130: (DG_TIER + 1, Start, (CogQuest, Anywhere, 6, 'sd'), Any, ToonHQ, Any, NA, DefaultDialog), 3131: (DG_TIER + 1, Start, (CogLevelQuest, Anywhere, 10, 3), Any, ToonHQ, Any, NA, DefaultDialog), 3132: (DG_TIER + ...
example: --screenshots_views x=0') print(' --screenshots_views x=-10 x=10 y=0') print(' --screenshots_views x=0 z=0') print() sys.exit(1) print("Found screenshot coordinates ", screenshots_views) screenshots_views = [ (y[0], int(y[1])) for y in [ x.split("=") for x in screenshots_views ] ] # check screenshots_...
# -*- coding: utf-8 -*- # This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any...
# Copyright 2010 Google Inc. # # 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, soft...
"no snmp-server traps bridgemib", "no snmp-server traps copy-complete", "no snmp-server traps cisco-entity-ext", "no snmp-server traps config", "no snmp-server traps diameter peerdown", "no snmp-server traps diameter peerup", "no snmp-server traps diameter protocolerror", "no snmp-server traps diameter permanent...
<gh_stars>1-10 from opentrons import protocol_api # Rename to 'purification_template' and paste into 'template_ot2_scripts' folder in DNA-BOT to use metadata = { 'apiLevel': '2.8', 'protocolName': 'purification_template', 'description': 'Implements magbead purification reactions for BASIC assembly using an...
that can be used like an alpha channel. In the resulting mask, the hue/rgb_color will be treated as transparent (black). When a hue is used the mask is treated like an 8bit alpha channel. When an RGB triplet is used the result is a binary mask. rgb_thresh is a distance measure between a given a pixel and the mas...
"""Astronomical coordinate functions.""" import re,pdb import numpy as np from numpy import arccos,sin,cos from math import pi # constants DEG_PER_HR = 360. / 24. # degrees per hour DEG_PER_MIN = DEG_PER_HR / 60. # degrees per min DEG_PER_S = DEG_PER_MIN / 60. # degrees per sec DEG_PER_AMIN = 1./60. # degrees per arcmi...
str ) -> NodeList: """Get child nodes which has ``class_name`` class attribute.""" classes = set(class_name.split(' ')) return getElementsBy( start_node, lambda node: classes.issubset(set(node.classList)) ) def querySelector(start_node: ParentNode, selectors: str) -> AbstractNode: """Not Implemented yet. Pl...
empty stuff here? exp = 0 exp_level = [] exp_total = [] for row in self.rr['ItemExperiencePerLevel.dat']: if row['BaseItemTypesKey'] == base_item_type: exp_new = row['Experience'] exp_level.append(exp_new - exp) exp_total.append(exp_new) exp = exp_new if not exp_level: console('No experience progression fou...
= nn.ReLU(inplace=True) self.downsample = downsample self.stride = stride self.pos = place self.recursion = recursion if recursion: if place == 'start': self.sar = Squeeze_and_Recursion(planes=inplanes, gates=gates) elif place == 'top': self.sar = Squeeze_and_Recursion(planes=width, gates=gates) if place == ...
if not is_variable_name(t): Log.error("expecting {{value}} a simple dot-delimited path name", value=t.value) else: terms.append({"name": t.value, "value": _jx_expression(t.value, cls.lang)}) else: Log.error("expecting a name property") else: terms.append({"name": t.name, "value": jx_expression(t.value)}) return...
<gh_stars>0 #!/usr/bin/python # Copyright (c) 2020, 2022 Oracle and/or its affiliates. # This software is made available to you under the terms of the GPL 3.0 license or the Apache 2.0 license. # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) # Apache License v2.0 # See LICEN...
IDE comme Komodo print(112*'-') print('\n' + texte_derniere_action(True) + description() + texte_derniere_action(False) + actions_possibles()) def afficher_progressivement(Phrases, intervalle_de_temps, afficher_actions_fin = False, image_fin = False): if os.name == 'nt': for i in range(clen(Phrases)): for ...
<reponame>SchootHuang/DSC180B-Coronavirus-Wikipedia from keras.utils import get_file from zipfile import ZipFile, BadZipfile from lxml import etree from py7zr import unpack_7zarchive from bs4 import BeautifulSoup import dill as pickle import wikipediaapi import shutil import os import pandas as pd import requests impor...
<reponame>chamathpali/clood import sys import os import json import copy import requests import time from timeit import default_timer as timer from elasticsearch import Elasticsearch, helpers, RequestsHttpConnection from requests_aws4auth import AWS4Auth # imports for hash - to test for unique records import hashlib fr...
kafka_enabled(self, value: Optional[pulumi.Input[bool]]): pulumi.set(self, "kafka_enabled", value) @property @pulumi.getter(name="maximumThroughputUnits") def maximum_throughput_units(self) -> Optional[pulumi.Input[int]]: return pulumi.get(self, "maximum_throughput_units") @maximum_throughput_units.setter def ...
} }, { 'feature_type': 'centromere', 'count': 64, 'len_stat': { 'mean': 57.9047619048, 'median': 25.0, 'max': 120 } }, ... ] } """ genome_feature_info = { 'organism_name': feature_data['organism_name'], 'ftp_url': feature_data['ftp_url'], 'total_contig_count': feature_data['total_contig_count'], 'tot...
<filename>src/pydybm/time_series/functional_dybm.py #!/usr/bin/env python # -*- coding: utf-8 -*- """Implementation of a functional DyBM. A functional DyBM (F-DyBM) models the dynamics of uncountably many neurons distributed in the :math:`D`-dimensional space, :math:`\mathcal{X}\subseteq{\mathbb{R}^{D}}`, which we cal...
# -*- coding: utf-8 -*- #BEGIN_HEADER import os import re import sys import uuid from datetime import datetime from pprint import pformat # ,pprint from installed_clients.KBaseReportClient import KBaseReport from installed_clients.SetAPIServiceClient import SetAPI from installed_clients.WorkspaceClient import Workspac...
velocity, time remaining, and end condition. Assumes acceleration is 0 (no thrust), so fuel is not an issue. The initial velocity, v0, and the quantity of fuel, qFuel, are passed in, but are just passed through unchanged. Return a tuple (distanceTraveled, v0, qFuel, timeRemaining, endCondition) """ # Are we the...
all subcomponents (subnets and sublogs) :param iter_no: iteration number :param iter_dirpath: directory path to iteration i folder :param trace_caseids: set of caseids of all traces, i.e., all representative caseids on the monolithic level :return: dataframe containing aggregated alignment statistics """ to_join...
from typing import Tuple, Union from eth_utils.typing import HexAddress, HexStr from rotkehlchen.assets.asset import Asset from rotkehlchen.constants.misc import ZERO from rotkehlchen.errors import ( ConversionError, DeserializationError, UnknownAsset, UnprocessableTradePair, ) from rotkehlchen.fval import Accept...
import os import errno import select import socket import sys import threading import time import traceback from typing import Optional # noqa from mitmproxy.net import tls from OpenSSL import SSL from mitmproxy import certs from mitmproxy import exceptions from mitmproxy.coretypes import basethread socket_fileobj...
<gh_stars>10-100 from qunetsim.components import Host from .computing_host import ComputingHost from .clock import Clock from ..utils import DefaultOperationTime from ..utils.constants import Constants from ..objects import Operation, Circuit, Layer import numpy as np import uuid import json from typing import List,...
choose a language that relates to that area and ' 'begin reviewing documentation, reading tutorials, and ' 'watching videos. Finally, start creating your own projects.', 'What is the best way to learn Language X': 'Most languages are similar in the types of things they ' 'accomplish, where they differ is in how th...
<filename>src/biopsykit/io/nilspod.py """Module for importing data recorded by NilsPod sensors.""" import datetime import re import warnings from pathlib import Path from typing import Dict, Optional, Sequence, Tuple, Union import numpy as np import pandas as pd from nilspodlib import Dataset, SyncedSession from typin...
event['new'] # event handler for trend rescale boolean def trend_rescale_handler(event, params): if event['type'] == 'change': params.rescale = event['new'] # event handler for trend soil adjustment (l) value def trend_l_value_handler(event, params): if event['type'] == 'change': params.l_value = event['ne...
Note that this may not always be available or up to date. For \ example, if a user changes their display name, the API may show the new value in a future response, but the items \ associated with the user won't show up as having changed when using delta. id: Unique identifier for the identity. - name: --user sh...
"relate_filter_"] for p in prefixes: if p + fn1 == fn2 or fn1 == p + fn2: return True return False # First heuristic: if both functions are unique in the template and the program, return as is count_in_prog = [1 if is_same_fun(p["type"], program[idx]["type"]) else 0 for p in program] count_in_template = [1 if i...
: return _znc_core.PyModulesVector_front(self) def back(self) -> "std::vector< CModule * >::value_type" : return _znc_core.PyModulesVector_back(self) def assign(self, *args) -> "void" : return _znc_core.PyModulesVector_assign(self, *args) def resize(self, *args) -> "void" : return _znc_core.PyModulesVector_resize(se...
'__fastq_read2__file_type': 'sequence_file', '__fastq_read2__file_name': 'SRR3562915_2.fastq.gz', '__fastq_read2__file_format': 'fastq.gz', '__fastq_read2__read_index': 'read2', '__fastq_read2__file_size': '190330156', '__fastq_read2__file_uuid': fastq_b1_r2_uuid, '__fastq_read2__file_version': fastq_b1_r2_versio...
Verbose = True): ''' This function propagates the fields and performs the averages. ''' NRoughness = self.ComputationSettings.NRoughnessPerOpticalElement NFigureErrors = self.ComputationSettings.NFigureErrorsPerOpticalElement NComputations = self.ComputationSettings.NComputations # for self.ComputationSet...
# -*- coding: UTF-8 -*- from __future__ import print_function import matplotlib import matplotlib.pyplot as plt import seaborn as sns import pandas as pd import numpy as np import os import json matplotlib.use('Agg') def reset_style(): from matplotlib import rcParams rcParams['font.family'] = 'serif' rcParams['...
import pytest import time from .utils import ( init_app, init_db, clean_db, add_flow, add_run, add_step, add_task, add_artifact, _test_list_resources, _test_single_resource, add_metadata, get_heartbeat_ts ) pytestmark = [pytest.mark.integration_tests] # Fixtures begin @pytest.fixture def cli(loop, aiohttp_client)...
= {"number_of_fibers": numfib_mlab} fibmean_mlab = nx.to_numpy_matrix(fibmean, dtype=np.float64) fibmean_dict = {"mean_fiber_length": fibmean_mlab} fibmedian_mlab = nx.to_numpy_matrix(fibmedian, dtype=np.float64) fibmedian_dict = {"median_fiber_length": fibmedian_mlab} fibdev_mlab = nx.to_numpy_matrix(fibdev, dtyp...
# coding: utf-8 # # Copyright 2020 The Oppia Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required b...
gpu memory; never used submat = torch.cat([m[test_left:test_right] for m in mat_adj], dim=0)[:, minr:maxr, minc:maxc] submat, trace, weight = get_trace(submat=submat) else: submat, trace, weight = get_trace(mat_adj=mat_adj, seg_idx=seg_idx) submats['mat_adj'].append([submat, label_mask, weight]) if compare: trac...
<reponame>whyjz/CARST<filename>extra/unused/bedTopo.py #!/usr/bin/python def dirDeriv(val_mat, direction_mat, inc): import scipy; import scipy.linalg; import math; cell_angles = scipy.array([[3 * math.pi / 4, math.pi / 2, math.pi / 4], [math.pi, scipy.nan, 0], [-3 * math.pi / 4, -1 * math.pi / 2, -1 * math.pi / ...
line_colors = [] line_labels = [] ymax = 0 for i, phase in enumerate(phases): if (kw not in comp_phases[i]) or (kw not in phase): continue # Get input PDF ymax_inp_pdf = _plot_inp_pdf(kw, i, phase) ymax = max(ymax, ymax_inp_pdf) # Get output PDF comp_phase = comp_phases[i] ymax_out_pdf, lcs, lls = _plot_ou...
helper.make_graph( nodes, "test", [helper.make_tensor_value_info("A", TensorProto.FLOAT, (2, 9, 4)), helper.make_tensor_value_info("B", TensorProto.FLOAT, (4, 9, 4)), helper.make_tensor_value_info("C", TensorProto.FLOAT, (2, 9, 4)), helper.make_tensor_value_info("D", TensorProto.FLOAT, (8, 3, 4)), helper.make_te...
# 0xB0, # O OO 0xC8, # OO O 0x88, # O O 0x88, # O O 0x88, # O O 0x88, # O O 0x88, # O O 0x88, # O O 0x00, # 0x00, # 0x00, # 0x00, # # @1376 'o' (6 pixels wide) 0x00, # 0x00, # 0x00, # 0x00, # 0x30, # OO 0x48, # O O 0x84, # O O 0x84, # O O 0x84, # O O 0x84, # O O 0x48, # O O 0x30, ...
if '.' in v_str: dc = list(map(len, v_str.split('.'))) else: dc = len(v_str), 0 self._setDigits(*dc) v_str = self._buildValueStr(v) self._clear() self._build() for i, c in enumerate(v_str): self._digitLabels[i].setText(c) if trigValueChanged: self.numberChanged.emit(v) if trigValueEdited: self.numberEdi...
"""Axis-aligned Bounding Boxes ============================== Axis-aligned rectangular bounding boxes have their sides, natuarally, aligned with coordinate axes in the multidimensional Eucledian space R^D. Axis-aligned boxes have fewer parameters than arbitrarily rotated boxes, which simplifies their learning and oper...
False if self._config_out_of_date(ihost_obj) or \ status == constants.CONFIG_STATUS_REINSTALL: LOG.warn("SYS_I Raise system config alarm: host %s " "config applied: %s vs. target: %s." % (ihost_obj.hostname, ihost_obj.config_applied, ihost_obj.config_target)) fault = fm_api.Fault( alarm_id=fm_constants.FM_ALA...
], uncertainty = 50, mode = 'percent', ), ), ) if self.opts.ihep_config: self.cfg['eff_mult'] = NestedDict( bundle = dict(name="parameters", version = "v01"), parameter = 'eff_mult', label='Average multiplicity cut eff for {detector}', pars = uncertaindict([ ('AD11', 0.974404), ('AD12', 0.974686), ('AD21'...
= cwareport.get_link() if not anonymous: for k in ("ln", "fn", "dob"): value = cwadata.get(k) if k == "dob": value = CWAReport.to_local_dtfmt(value) item[k] = value else: cwareport = None s3db = current.s3db # Test Station table = s3db.disease_case_diagnostics field = table.site_id if field.represent: ...
'" + str(self.requested_ffi) + "', can only write to: " + str(ffi) + ".") return ffi def _defineNAVars(self, vars): """ Method to define NASA Ames file object variables and their associated metadata. """ self.na_dict["NV"] = len(vars) self.na_dict["VNAME"] = [] self.na_dict["VMISS"] = [] self.na_dict["VSCAL...
'Type' , ), 61521, (61521, (), [ (8, 1, None, None) , (12, 17, None, None) , ], 1 , 1 , 4 , 1 , 220 , (3, 0, None, None) , 0 , )), (( 'ActualWork' , 'ActualWork' , ), 33040, (33040, (), [ (16387, 10, None, None) , ], 1 , 2 , 4 , 0 , 224 , (3, 0, None, None) , 0 , )), (( 'ActualWork' , 'ActualWork' , ), 33040, (33...
# BuildSeq Function - - - - - - - - - - - - - - - # - - - - - - - - - - - - - - - - - - - - - - - - - def buildSeq(seq,sig1,sig2,sig3): # First function called by # If the last digit in the sequence is a 0, # program is prepared to receive next signal if seq[-1] == 0: if sig1 == 1: seq[-1]=1 se...
<reponame>huwjenkins/dials import os import sys import numpy as np import iotbx.phil from cctbx import uctbx from dxtbx.model.experiment_list import ExperimentListFactory from scitbx.math import five_number_summary import dials.util from dials.array_family import flex from dials.util import Sorry, tabulate help_mes...
import logging import numpy as np from collections import OrderedDict from .base import ConditionalEstimator from ..utils.ml.eval import evaluate_flow_model from ..utils.ml.models.maf import ConditionalMaskedAutoregressiveFlow from ..utils.ml.models.maf_mog import ConditionalMixtureMaskedAutoregressiveFlow from ..uti...
import os import re import nltk import logging import textstat import argparse import mongoengine import numpy as np import multiprocessing as mp from typing import Union from collections import Counter from dateutil.parser import parse as parse_date from gfibot import CONFIG from gfibot.collections import * from mong...
<gh_stars>1-10 # emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ### ## # # See COPYING file distributed along with the PyMVPA package for the # copyright and license terms. # ### ### ...
| Form_PK | Form_Name | FormType_PK | FormType_Name | Att_Name_1 | Att_Name_2 | Ref_Att_Name_1_PKs | Ref_Att_Name_1_Labels | Reff Ref_Att_Name_2 | ...... ..... ..... # -------------------------------------------------------------------------------------------------------------------------------------------------------...
<filename>u3v2 climas funcionando/Juego/Terreno.py import random from .Variables import * from .Tanques import * from .Rectangulos import Rectangulos class Terreno: #Funcion para crear el mapa def run(mapa): #Funciones para la construccion del terreno mapa=Terreno.iniciar_mapa(mapa) mapa=Terreno.Suelo...
p (AStar): An AStar instance. Returns: int: Length of the path. """ return lib.TCOD_path_size(p._path_c) def path_reverse(p): """Reverse the direction of a path. This effectively swaps the origin and destination points. Args: p (AStar): An AStar instance. """ lib.TCOD_path_reverse(p._path_c) def path_get(...
# -*- coding: utf-8 -*- # Copyright (c)2013 Rackspace US, Inc. # All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
1 while b < N - 1 and getsum(a, b, total, totalsum) >= getsum(a, b + 1, total, totalsum): b += 1 best = min(best, getsum(a, b, total, totalsum)) best = total - best print >> stderr, 'Case #%d' % T print 'Case #%d: %.10f' % (T, 1.0 * best / total) return A def func_1e62ef3080d34852a8994b744dd7cf8b(): infile ...
Bool(self.interpolated) if self.partial_match is not None and not isinstance(self.partial_match, Bool): self.partial_match = Bool(self.partial_match) self._normalize_inlined_as_dict(slot_name="extensions", slot_type=Extension, key_name="tag", keyed=True) self._normalize_inlined_as_dict(slot_name="annotations", s...
'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861399776':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\u65cf\u81ea\u6cbb\u5dde')}, '861399775':{'en': 'Enshi, Hubei', 'zh': u('\u6e56\u5317\u7701\u6069\u65bd\u571f\u5bb6\u65cf\u82d7\...
import json import logging import os import pytest import threading import time from ocs_ci.framework import config from ocs_ci.ocs import constants, ocp from ocs_ci.ocs.resources import pod from ocs_ci.utility.prometheus import PrometheusAPI from tests import helpers logger = logging.getLogger(__name__) def measu...
"inoltre", "insieme", "intanto", "intorno", "invece", "io", "l", "la", "lasciato", "lato", "lavoro", "le", "lei", "li", "lo", "lontano", "loro", "lui", "lungo", "luogo", "l\u00e0", "ma", "macche", "magari", "maggior", "mai", "male", "malgrado", "malissimo", "mancanza", "marche", "me", "m...
<reponame>rpi-techfundamentals/spring2020_website<gh_stars>1-10 **Chapter 19 – Training and Deploying TensorFlow Models at Scale** _This notebook contains all the sample code in chapter 19._ <table align="left"> <td> <a target="_blank" href="https://colab.research.google.com/github/ageron/handson-ml2/blob/master/19...
<reponame>Guzpenha/DomainRegularizedDeepMatchingNetworks # -*- coding: utf8 -*- import os import sys import time import json import argparse import random # random.seed(49999) import numpy # numpy.random.seed(49999) import tensorflow # tensorflow.set_random_seed(49999) from collections import OrderedDict import keras...
[0x162] + [0x164] + [0x166] + [0x168] + [0x16a] + [0x16c] + [0x16e] + [0x170] + [0x172] + [0x174] + [0x176] + list(range(0x178,0x17a)) + [0x17b] + [0x17d] + [0x17f] + list(range(0x181,0x183)) + [0x184] + list(range(0x186,0x188)) + list(range(0x189,0x18c)) + list(range(0x18e,0x192)) + list(range(0x19...
""" Tools for DESI spectroperfectionism extractions implemented for a CPU """ import sys import numpy as np from numpy.polynomial.legendre import legvander, legval from numpy.polynomial import hermite_e as He import scipy.special import numba #------------------------------------------------------------------------- ...
+ '.' + attr, asString = True ) else: value = mc.getAttr( node + '.' + attr ) if attrDict[ 'dataType' ] in floatDataTypes: value = round( value, floatPrec ) if attrDict[ 'dataType' ] in angleDataTypes: # gibt beim laden der pose nach dem guide mode falsche Rotationswerte, # die ueberhaupt umgerechnet,...
output N=1: URL; N=2: URL, tag; N=3: title; N=4: URL, title, tag; N=5: title, tag; N0 (10, 20, 30, 40, 50) omits DB index -j, --json [file] JSON formatted output for -p and search. prints to stdout if argument missing. otherwise writes to given file --colors COLORS set output colors in five-letter string --nc d...
# -*- coding:Utf-8 -*- #from numpy import * from __future__ import print_function """ .. currentmodule:: pylayers.antprop.loss .. autosummary:: :members: """ import doctest import os import glob import doctest import logging import numpy as np from scipy import io import matplotlib.pylab as plt import pylayers.gis.g...
# -*- coding: utf-8 -*- """ The MIT License (MIT) Copyright (c) 2017 SML Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy...
built-in django regular expression that can be checked against for validity of email ## address. #if email_re.match(email_address): #assert(userobject != None) #is_valid=True #countdown_time = 5 # give few seconds to make sure userobject has had time to propagate through servers (especially if this is a new regis...
<reponame>EkremBayar/bayar # Last Change: Mon Aug 20 08:00 PM 2007 J import re import datetime from collections import OrderedDict import numpy as np import csv import ctypes """A module to read arff files.""" __all__ = ['MetaData', 'loadarff', 'ArffError', 'ParseArffError'] # An Arff file is basically two parts: ...
<reponame>nii-cloud/dodai-compute # vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright (c) 2010 Citrix Systems, Inc. # # Licensed under the Apache License, Ver...
,mapsize[0]] print('input was considered as node numbers') print('map size is [{0},{1}]'.format(s,s)) self.nnodes = self.mapsize[0]*self.mapsize[1] # to set component names if not compname: try: cc = list() for i in range(0,self.dim): cc.append ('Variable-'+ str(i+1)) self.compnames = np.asarray(cc)[np.ne...
- Enable/disable policy-based IPsec VPN on the GUI. type: str choices: - enable - disable gui_policy_learning: description: - Enable/disable firewall policy learning mode on the GUI. type: str choices: - enable - disable gui_replacement_message_groups: description: - Enable/disable replacement message gro...
#!/usr/bin/env python """ @package mi.dataset.parser @file marine-integrations/mi/dataset/parser/cspp_base.py @author <NAME> @brief Base Parser for a cspp dataset driver Release notes: initial release """ import copy import re import string from mi.core.log import get_logger from mi.core.common i...
-34.755 7.556 1.00 12.81 ? 258 LEU B CA 1 ATOM 3661 C C . LEU B 1 256 ? 39.702 -35.040 7.952 1.00 11.05 ? 258 LEU B C 1 ATOM 3662 O O . LEU B 1 256 ? 40.226 -34.412 8.874 1.00 13.48 ? 258 LEU B O 1 ATOM 3663 C CB . LEU B 1 256 ? 38.281 -33.667 6.516 1.00 12.52 ? 258 LEU B CB 1 ATOM 3664 C CG . LEU B 1 256 ? 36.953 ...
#!/usr/bin/env python # # Copyright (C) 2021 Vy # # Distributed under terms of the MIT license. """ An AWS Lambda function for collecting and reporting metrics associated with AWS Step Functions state machines. """ from concurrent.futures import ThreadPoolExecutor as PoolExecutor from timeit import default_timer as ti...
""" ROM disassembly/dumping tools. """ import sys import os.path import pkg_resources from math import inf as INF from bisect import bisect_left, bisect_right from io import BytesIO from collections import defaultdict from tqdm import tqdm from luvdis import __version__ from luvdis.common import DEBUG, eprint, warn, ...
''' This is a self-contained orbit fitting routine. This orbit fitter is unique compared to other common orbit fitters in that it uses a galactocentric generalized plane coordinate system when fitting data ''' #TODO: Allow fitting on b, ra, or dec instead of l import numpy as np import scipy as sc import scipy.optim...
force or not to update """ self._get_smear_info() # renew smear sizer if self.smear_type is not None: self.smear_description_smear_type.SetValue(str(self.smear_type)) self.smear_data_left.SetValue(str(self.dq_l)) self.smear_data_right.SetValue(str(self.dq_r)) self._hide_all_smear_info() data = copy.deepcopy(s...
<filename>det/modeling/fcos/fcos.py # -*- coding: UTF-8 -*- # ********************************************************** import logging import math from typing import List import copy import torch import torch.nn.functional as F from torch import nn, Tensor from fvcore.nn import sigmoid_focal_loss_jit from detectron...
This has a major impact on performance: please see the full documentation for more details [2]. concat_dim : None, str, DataArray or Index, optional Dimension to concatenate files along. This argument is passed on to :py:func:`xarray.auto_combine` along with the dataset objects. You only need to provide this argum...
<reponame>mhils/pretix import time from datetime import datetime, timedelta from decimal import Decimal from unittest import mock import pytest from django_countries.fields import Country from pytz import UTC from pretix.base.models import ( CartPosition, InvoiceAddress, Item, ItemAddOn, ItemCategory, ItemVariation,...
# IMPORTS import numpy as np import sympy as sp import copy from collections import OrderedDict from splines import Spline, differentiate import splines from log import Logger import auxiliary from ipydex import IPS class Trajectory(Logger): """ This class handles the creation and managing of the spline functions...
pass def sectionsMoved(*args, **kwargs): pass def setCascadingSectionResizes(*args, **kwargs): pass def setDefaultAlignment(*args, **kwargs): pass def setDefaultSectionSize(*args, **kwargs): pass def setHighlightSections(*args, **kwargs): pass def setMaximumSectionSize(*args, **kwargs...
<reponame>dink10/pathfinder_graph<filename>pathfinder_graph/pathway.py import httplib import urllib import json from py2neo import Graph from phovea_server.ns import Namespace, request, Response, jsonify from flask import g from phovea_server.config import view as configview, get as configget import phovea_server.webso...
* noise, wC[-1].dtype) uC[-1] += tf.cast(tf.random_uniform( shape=uC[-1].shape, minval=-1, maxval=1, dtype=uC[-1].dtype.real_dtype) * noise, wC[-1].dtype) return wC, uC def increase_bond_dimension_by_adding_layers(chi_new, wC, uC, noise=0.0): """ deprecated: use `unlock_layer` and `pad_mera_tensors` instead inc...
'media/<name>_color.png' and 'media/<name>_height.png' self.agent_names = ["PlayerA","PlayerB"] # name of the agent objects in the world map file (3d model) self.truck_name = "PlayerB" # name of the truck entity in the world: this is used to position/find the truck location #self.world_types = ['LSE_Mark2_tiny_zup'...
u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '86159278':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '86159279':{'en': 'Jingzhou, Hubei', 'zh': u('\u6e56\u5317\u7701\u8346\u5dde\u5e02')}, '8615928':{'en': '<NAME>', 'zh': u('\u56db\u5ddd\u7701\u6210\u90fd\u5e02')}, '861592820':{'en': '<...
This function is **depricated**, use are_riverlength instead as this version is very slow for large maps Input: - ldd - minimum streamorder to include Output: - distance per factor cells """ strorder=streamorder(ldd) strorder=ifthen(strorder >= order,strorder) dist=cover(max(celllength(),ifthen(bo...
import os import utm import platform import flopy import numpy as np import shapefile import matplotlib.pyplot as plt from gsflow.utils import Raster from flopy.plot import styles from gsflow import GsflowModel, PrmsModel, PrmsData from gsflow.builder import ( GenerateFishnet, ModflowBuilder, ControlFileBuilder, Pr...
False def filename(self): ## this is where the data will be pickled to common = os.path.join('/','home','sfscript','data','sfapi') if (sys.platform == 'win32'): common = filePath() return os.sep.join([common,'sForce30Entity%s.pickle' % self.scopeID]) def __init__(self, scope='All'): self.scopeID = ...
<filename>src/tntools/datadispenser.py """Datadispenser is a module that can run various algorithms that take different parameters and generate data, and store that data on the disk. The goal is a user experience wheree one just tells datadispenser "I want the data generated by algorithm X using parameters Y", and data...
<filename>light_cnns/HRNet/lite_hrnet.py import torch import torch.nn as nn import torch.nn.functional as F import torch.utils.checkpoint as cp def conv_relu(in_channels, out_channels, kernel_size, stride=1, groups=1): return nn.Sequential( nn.Conv2d(in_channels=in_channels, out_channels=out_channels, kernel_...
dimensions are (batch, length, width), we concatenate along the widths. return torch.cat([tsr1, tsr2], dim=2) """ Below we define the 5 torch model types: * PastCovariatesTorchModel * FutureCovariatesTorchModel * DualCovariatesTorchModel * MixedCovariatesTorchModel * SplitCovariatesTorchModel """ # TODO: there'...
'asc' in params: query_params.append(('asc', params['asc'])) # noqa: E501 header_params = {} form_params = [] local_var_files = {} body_params = None # HTTP header `Accept` header_params['Accept'] = self.api_client.select_header_accept( ['application/json']) # noqa: E501 # Authentication setting auth_sett...
"""Joint Video-Text embedding model - an extension of MoEE to include Collaborative Experts. Original licence below from MoEE below. """ # Copyright 2018 <NAME> All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
"""Visualisation and overlay functions used in tiatoolbox.""" import colorsys import random from typing import Tuple, Union import cv2 import matplotlib as mpl import matplotlib.pyplot as plt import numpy as np def random_colors(num_colors, bright=True): """Generate a number of random colors. To get visually dist...