input
stringlengths
2.65k
237k
output
stringclasses
1 value
return empty list if not (self.obs and other.obs): return Table(retname) attr_spec_list = attrlist if isinstance(attrlist, str): attr_spec_list = re.split(r"[,\s]+", attrlist) # expand attrlist to full (table, name, alias) tuples if attr_spec_list is None: full_attr_specs = [(self, n, n) for n in self._attr_n...
# -*- coding: utf-8 -*- # Copyright (C) 2012 Anaconda, Inc # SPDX-License-Identifier: BSD-3-Clause from __future__ import absolute_import, division, print_function, unicode_literals from errno import EACCES, ENOENT, EPERM from functools import reduce from logging import getLogger from os import listdir from os.path im...
<gh_stars>0 """Snap, SubSnap, Sinks classes for snapshot files. The Snap class contains all information related to a smoothed particle hydrodynamics simulation snapshot file. The SubSnap class is for accessing a subset of particles in a Snap. """ from __future__ import annotations from pathlib import Path from typin...
<filename>correlation/loop.py<gh_stars>0 """ Copyright 2018-2019 CS Systèmes d'Information 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 requir...
<reponame>Frandium/nni import abc import base64 import collections.abc import copy import functools import inspect import numbers import types import warnings from io import IOBase from typing import Any, Dict, List, Optional, TypeVar, Union import cloudpickle # use cloudpickle as backend for unserializable types and ...
the temporal delay between response and outcome (Haber & Knutson, 2010).", {"entities": [(14, 17, LABEL), (18, 23, LABEL), (141, 146, PER), (149, 156, PER), (158, 162, "DATE"), (54, 79, FUNC)]}), ("Additionally, the region of the ventral striatum where overlapping activation between reward and loss anticipation res...
<reponame>srodney/romansims import os import numpy as np from matplotlib import pyplot as plt from scipy import interpolate as scinterp from datetime import datetime from astropy.io import fits from astropy.table import Table, Column, Row, MaskedColumn from astropy import table from astropy import units as u import s...
profile_sum_file.write(",") profile_sum_file.write("GPU" + str(GPU_number)) profile_sum_file.write("\n") for GPU_number in range(0, maximum_GPU_number): if GPU_number != 0: profile_sum_file.write(",") profile_sum_file.write(str(gpu_sum_data["GPU" + str(GPU_number)])) profile_sum_file.write("\n") profile_sum_fil...
None class IBertForMaskedLM(metaclass=DummyObject): _backends = ["torch"] def __init__(self, *args, **kwargs): requires_backends(self, ["torch"]) class IBertForMultipleChoice(metaclass=DummyObject): _backends = ["torch"] def __init__(self, *args, **kwargs): requires_backends(self, ["torch"]) class IBertFo...
[] self.regularizers = [] self.constraints = [] self.updates = [] @property def output_shape(self): return (None, self.input_shape[2]) def get_output(self, train=False): X = self.get_input(train) if self.mode == 'ave': s = K.mean(X, axis=1) return s if self.mode == 'sum': s = K.sum(X, axis=1) return s ...
#!/usr/bin/env python import argparse import boundary import functools import graphics import itertools import json import operator import os.path import random import re import secrets import sys import traceback from boundary import Boundary from boundary import Domain from boundary import Orientation from boundary...
1 from actions where conv=$1 and id=$2', c.id, since_id)) where_logic &= V('a.id') > since_id if not inc_seen: where_logic &= V('a.act') != ActionTypes.seen return await or404( conns.main.fetchval_b( """ select array_to_json(array_agg(json_strip_nulls(row_to_json(t))), true) from ( select a.id, a.act, a.ts, ...
# # # Copyright (C) 2006, 2007, 2010, 2011, 2012 Google Inc. # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # 1. Redistributions of source code must retain the above copyright notice, # this...
TypeLibConverter() """ def ConvertAssemblyToTypeLib(self, assembly, strTypeLibName, flags, notifySink): """ ConvertAssemblyToTypeLib(self: TypeLibConverter, assembly: Assembly, strTypeLibName: str, flags: TypeLibExporterFlags, notifySink: ITypeLibExporterNotifySink) -> object Converts an assembly to ...
/ isi self.prediction_args['numframes'] = self.prediction_trialduration / isi self.calibration_args['waitframes'] = self.waitduration / isi self.prediction_args['waitframes'] = self.waitduration / isi self.calibration_args['feedbackframes'] = self.feedbackduration / isi self.prediction_args['feedbackframes'] = sel...
'exist: ') if len(workspace_list) < 100 and payload is not None: continue worker_list = [] for target_stitch_raster_path, raster_list in [ (stitch_export_raster_path, export_raster_list), (stitch_modified_load_raster_path, modified_load_raster_list)]: stitch_worker = threading.Thread( target=pygeoprocessing....
response.code == 200 assert "data" in response.result assert response.result["data"] is None assert "metadata" in response.result assert "warnings" in response.result["metadata"] assert "error1" in response.result["metadata"]["warnings"] @pytest.mark.asyncio async def test_invalid_handler(): """ Handlers shoul...
None def can_switch_workspaces(self): """Check if a project is opened in the current window and if it has more than one workspace Returns: bool: whether a project with more than one workspace is currently opened """ if self.curr_pname not in self.projects_info.info(): return False info = copy.deepcopy(self....
<filename>custom_library/drone_lib.py # This is a custom library for useful functions that wrap standard DroneKit basic functions # Last Update: 23 - 09 - 2018 -- <NAME>, University of Trento - Italy # ----------------------------------------------- Imports ----------------------------------------------------------...
<gh_stars>0 #coding: utf-8 from __future__ import unicode_literals from functools import reduce __author__ = 'ego' import MySQLdb import re import time import warnings import six try: from collections import OrderedDict except ImportError: from django.utils.datastructures import SortedDict as OrderedDict # Python...
not have Ports defined") return None @staticmethod def check_output(attribute, parent_dict): """Helper method for get_port_value""" if attribute in parent_dict: if parent_dict[attribute] == "None": return None else: return parent_dict[attribute] else: logger.warning("{0} not found in Port result set.".forma...
_return_http_data_only=params.get('_return_http_data_only'), collection_formats=collection_formats) def products_id_tags_fk_get(self, id, fk, **kwargs): """ Find a related item by id for tags. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callb...
0x81a01cfe, 0x82b94f9, 0x48685870, 0x45fd198f, 0xde6c8794, 0x7bf8b752, 0x73d323ab, 0x4b02e272, 0x1f8f57e3, 0x55ab2a66, 0xeb2807b2, 0xb5c2032f, 0xc57b9a86, 0x3708a5d3, 0x2887f230, 0xbfa5b223, 0x36aba02, 0x16825ced, 0xcf1c2b8a, 0x79b492a7, 0x7f2f0f3, 0x69e2a14e, 0xdaf4cd65, 0x5bed506, 0x34621fd1, 0xa6fe8ac4, 0x2e5...
#!/usr/bin/env python3 """SlowR3KA - PSX Disassembler [PS1/Playstation 1] """ __version__ = "0.7.1" __author__ = "infval" import ast import sys from struct import unpack from re import finditer import tkinter as tk from tkinter import ttk from tkinter import font as tkfont from tkinter import filedialog from tkinte...
<filename>src/pyhees/section4_7.py # ============================================================================ # 第四章 暖冷房設備 # 第七節 温水暖房 # Ver.10(エネルギー消費性能計算プログラム(住宅版)Ver.02.04~) # ============================================================================ import numpy as np import pyhees.section3_1 as ld import py...
"STH", datetime.date(2001, 11, 30)), "SET": pnp.Vendor("SendTek Corporation", "SET", datetime.date(1999, 11, 8)), "SBT": pnp.Vendor("Senseboard Technologies AB", "SBT", datetime.date(2002, 9, 3)), "SEN": pnp.Vendor("Sencore", "SEN", datetime.date(1997, 5, 23)), "STU": pnp.Vendor("Sentelic Corporation", "STU", datet...
"""P3D, implemented in Gluon. https://arxiv.org/abs/1711.10305. Code partially borrowed from https://github.com/qijiezhao/pseudo-3d-pytorch.""" # pylint: disable=arguments-differ,unused-argument,line-too-long __all__ = ['P3D', 'p3d_resnet50_kinetics400'] from mxnet import init from mxnet.context import cpu from mxnet...
<filename>geoapps/simpegEM1D/Survey.py from geoapps.simpegPF import Maps, Survey, Utils import numpy as np import scipy.sparse as sp from scipy.constants import mu_0 from .EM1DAnalytics import ColeCole from .DigFilter import ( transFilt, transFiltImpulse, transFiltInterp, transFiltImpulseInterp, ) from .Waveform im...
2990 C C . GLU B 1 165 ? 69.016 -35.527 10.919 1.00 13.92 ? 166 GLU B C 1 ATOM 2991 O O . GLU B 1 165 ? 69.765 -35.813 11.818 1.00 16.65 ? 166 GLU B O 1 ATOM 2992 C CB . GLU B 1 165 ? 66.913 -34.837 11.971 1.00 15.51 ? 166 GLU B CB 1 ATOM 2993 C CG . GLU B 1 165 ? 65.381 -35.002 11.993 1.00 17.13 ? 166 GLU B CG 1 A...
import pandas as pd import numpy as np import ntpath import easygui import os import warnings import time import math from openpyxl import load_workbook warnings.filterwarnings("ignore") # array['CO1'][0] = 8 CO_percentage = {'CO1': [], 'CO2': [], 'CO3': [], 'CO4': [], 'CO5': [], 'CO6': [], } PO...
import json import logging import logging.handlers import os import re import subprocess import types import uuid import librosa import numpy as np import torch from shutil import rmtree from librosa.filters import mel as librosa_mel_fn from scipy.io import wavfile from daft_exprt.symbols import ascii, eos, punctua...
# 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...
# ================================================================================================= # Copyright (C) 2018-2020 University of Glasgow # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met...
cirq.CZ(a, b), cirq.H(a)) # Always return true to test basic features go_to_end = lambda op : False stop_if_op = lambda op : True stop_if_h = lambda op : op.gate == cirq.H # Empty cases. assert cirq.Circuit().findall_operations_until_blocked( start_frontier={}, is_blocker=go_to_end) == [] assert circuit.find...
<filename>roblox/client.py """ Contains the Client, which is the core object at the center of all ro.py applications. """ from typing import Union, List, Optional from .account import AccountProvider from .assets import EconomyAsset from .badges import Badge from .bases.baseasset import BaseAsset from .bases.baseba...
#!/usr/bin/env python # coding: utf-8 from __future__ import unicode_literals import traitlets import cesiumpy from cesiumpy.base import _CesiumObject import cesiumpy.entities.cartesian as cartesian import cesiumpy.util.common as com from cesiumpy.util.trait import MaybeTrait class _CesiumProvider(_CesiumObject): ...
kind def GetKind(self): """ Returns the item kind. :see: :meth:`~UltimateListItem.SetKind` for a valid list of item's kind. """ return self._kind def IsChecked(self): """Return whether the item is checked or not.""" return self._checked def Check(self, checked=True): """ Checks/unchecks an item. ...
<reponame>mcx/open_spiel # Copyright 2019 DeepMind Technologies Limited # # 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 a...
<reponame>ContinuumBridge/data_client #!/usr/bin/env python # data_client.py # Copyright (C) ContinuumBridge Limited, 2017 - All Rights Reserved # Unauthorized copying of this file, via any medium is strictly prohibited # Proprietary and confidential # Written by <NAME> & <NAME> # """ Just stick actions from incoming r...
<filename>csr2d/kick3.py from csr2d.wake import green_mesh, boundary_convolve from csr2d.deposit import histogram_cic_2d #from csr2d.central_difference import central_difference_z from csr2d.convolution import fftconvolve2 from csr2d.simple_track import track_a_bend, track_a_drift, track_a_bend_parallel, track_a_drif...
from __future__ import print_function import io import sys import unittest import collections import yaml from ..modules import cli from ..modules import helpers from ..modules import service from ..modules.aux_services import Postgres, Redis from ..modules.elastic_stack import ApmServer, Elasticsearch from ..modules...
requested_security_strength, prediction_resistance=False, personalization=None, reseed_rate=None): ''' Initialize a HashDRBG with the specified parameters. ''' # Check that we can use the hash provided if type(hashtype) is str: if hashtype in DRBG_HASHES: self.hashtype = DRBG_HASHES[hashtype] self.hash_name =...
#!/usr/bin/env python3 ########################################################################################################### # Copyright (C) 2021 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause ########################################################################################################### ...
percent_complete of this DeleteSearchJob. An estimate of the percent of time remaining before the delete search job completes. :param percent_complete: The percent_complete of this DeleteSearchJob. :type: int """ self._attrs["percentComplete"] = percent_complete @property def preview_available(self) -> "str":...
original file, rename the back-up to the original file's name. Then, if successful, delete the original file. try: os.rename( discFilePath, discFilePath + '.bak' ) # Change the name of the original file so the new file can be named to it. Not deleted first in case the op below fails. os.rename( backupF...
e: _log.error("Caught exception %s", e) conn.rollback() raise finally: conn = cursor = None def list_tiles_wkt_to_file(wkt, years, datasets, format, filename, sort=SortType.ASC, config=None): pass def visit_tiles_wkt(wkt, years, datasets, sort=SortType.ASC, config=None): pass def result_generator(cursor...
""" Copyright BOOSTRY Co., Ltd. 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 distr...
<reponame>mr12iku/IGF<filename>log.py ################################################################### # Import Module import json , sys , hashlib , os , time , marshal, getpass ################################################################### ''' Jangan Direcode ya bosku , tinggal make apa susahnya sih ''' #####...
<filename>tests/test_utils.py # Copyright 2017 D-Wave Systems 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 applic...
:raises: :class:`~hpe3parclient.exceptions.HTTPForbidden` - VV_IS_BEING_REMOVED - The volume is being removed. :raises: :class:`~hpe3parclient.exceptions.HTTPForbidden` - INV_OPERATION_VV_NOT_IN_NORMAL_STATE - The volume is not in the normal state. :raises: :class:`~hpe3parclient.exceptions.HTTPForbidden` -...
#!/usr/bin/env python3 # MIT License # # (C) Copyright [2022] Hewlett Packard Enterprise Development LP # # 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 withou...
<reponame>deevarvar/myLab # -*- coding=utf-8 -*- # author: <EMAIL> # analyzed result may be changed due to different ui result # in the main.pdf or in the report #123@SXsx #Done: # 1. done: epdg stop/failed analysis, add detailed cause # 2. done: error table list, td with color # 3. add html r...
= new super().__init__('builder redefinition for %s' % self.__node) @property def node(self): return self.__node @property def previous_builder(self): return self.__previous @property def new_builder(self): return self.__new _RAW = env('RAW') is not None _SILENT = env('SILENT') is not None class Path: ...
#!/usr/bin/env python import os.path import sys import argparse import geminicassandra.version def examples(parser, args): print print "[load] - load a VCF file into a geminicassandra database:" print " geminicassandra load -v my.vcf my.db" print " geminicassandra load -v my.vcf -t snpEff my.db" print " geminic...
<reponame>gvashchenkolineate/gvashchenkolineate_infra_trytravis #!/usr/bin/python from __future__ import (absolute_import, division, print_function) # Copyright 2019 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as publishe...
<reponame>Rozkipz/RPSTask<gh_stars>0 # -*- coding: utf-8 -*- import xml.etree.ElementTree as ET import pygame import time import sys import hashlib import random import csv import fileinput import kivy kivy.require('1.1.3') from kivy.app import App from kivy.uix.widget import Widget from kivy.uix.button import Button ...
info <cloud-path> [...] # Get folder info eta gcs info --folder <cloud-path> [...] """ @staticmethod def setup(parser): parser.add_argument( "paths", nargs="+", metavar="CLOUD_PATH", help="path(s) to GCS files", ) parser.add_argument( "-f", "--folder", action="store_true", help="whether the provided" ...
<reponame>pnijhara/edgedb # # This source file is part of the EdgeDB open source project. # # Copyright 2008-present MagicStack Inc. and the EdgeDB 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 t...
and its value to localStorage. Args: name (str): Item name in localStorage value (str): Item's value. Non-string value is auto serialized with `json.dumps`. """ self.local_storage.set(name, value) def set_session_storage_item(self, name, value): """Set Item and its value to sessionStorage. Args: name (str):...
create_form.description = 'Test Item for ItemList tests' obj = request.cls.catalog.create_item(create_form) request.cls.item_list.append(obj) request.cls.item_ids.append(obj.ident) request.cls.item_list = ItemList(request.cls.item_list) request.cls.object = request.cls.item_list @pytest.mark.usefixtures("item_li...
<reponame>Mrpatekful/ClusterFlow """ @author: <NAME> @copyright: Copyright 2018, tfcluster @license: MIT @email: <EMAIL> @date: 2018.08.17. """ from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.client import device_lib import tensorfl...
<reponame>rodrihgh/MerryXmasEU<gh_stars>0 """ Tweet application. Minimal script to post a tweet to the Twitter API using a given message. """ import os from pathlib import Path from datetime import datetime as dt, timedelta as td from random import seed, shuffle import json import urllib.request import re import twee...
= Var(within=Binary,bounds=(0,1),initialize=0) m.b598 = Var(within=Binary,bounds=(0,1),initialize=0) m.b599 = Var(within=Binary,bounds=(0,1),initialize=0) m.b600 = Var(within=Binary,bounds=(0,1),initialize=0) m.b601 = Var(within=Binary,bounds=(0,1),initialize=0) m.b602 = Var(within=Binary,bounds=(0,1),initialize=0) m.b...
self.network = temp_model.from_map(map['Network']) else: self.network = None return self class DescribeServiceMeshesResponseServiceMeshes(TeaModel): def __init__(self, endpoints=None, service_mesh_info=None, spec=None, clusters=None): self.endpoints = endpoints self.service_mesh_info = service_mesh_info self.s...
not isinstance(sample, int): raise TypeError(funcName + ': \"sample\" must be an int!') elif sample != vs.INTEGER and sample != vs.FLOAT: raise ValueError(funcName + ': \"sample\" must be either 0(vs.INTEGER) or 1(vs.FLOAT)!') else: dSType = sample if depth is None and sSType != vs.FLOAT and sample == vs.FLOAT: ...
import unittest2 import openerp.tests.common as common from openerp.osv.orm import except_orm class test_base(common.TransactionCase): def setUp(self): super(test_base,self).setUp() self.res_partner = self.registry('res.partner') self.res_users = self.registry('res.users') self.res_partner_title = self.registry...
this_dim in range(arr_typ.ndim): corr = self.array_analysis.array_shape_classes[lhs.name][this_dim] size_var = self.array_analysis.array_size_vars[lhs.name][this_dim] size_vars.append(size_var) index_var = ir.Var(scope, mk_unique_var("parfor_index"), loc) index_vars.append(index_var) self.typemap[index_var.name] ...
0: length[i] = length[i] + currentLoop return length def FindSingleScaffold(scaffold, startBase, inputSequence, lookUpScaffold, skip, loop): """ Appends base letter from inputSequence to each base in scaffold. Returns sequence containing bases and base letters. """ finalSequence = [] cnt = 0 currentBase = ...
from copy import deepcopy import os import re from PyQt5.QtWidgets import * from PyQt5 import QtCore, QtGui from GUI.Visualization import Ui_Visualization from FAE.FeatureAnalysis.Classifier import * from FAE.FeatureAnalysis.FeaturePipeline import FeatureAnalysisPipelines, OnePipeline from FAE.Description.Description...
import itertools import numpy as np from x7.lib.iters import iter_rotate, xy_flatten from .typing import * from .geom import * from .transform import * try: import bezier as bz BzCurve = bz.Curve except ModuleNotFoundError: bezier = None BzCurve = None __all__ = [ 'ControlPoint', 'bez_split', 'bez', 'bez_path'...
self._stream is not None: self._stream.close() self._stream = None def __len__(self): if self._len is None: # iterate_from() sets self._len when it reaches the end # of the file: for tok in self.iterate_from(self._toknum[-1]): pass return self._len def __getitem__(self, i): if isinstance(i, slice): start, ...
1, 1) == 2*hbar**2 # Normal operators, normal states # Numerical assert qapply(J2*JxKet(1, 1)) == 2*hbar**2*JxKet(1, 1) assert qapply(J2*JyKet(1, 1)) == 2*hbar**2*JyKet(1, 1) assert qapply(J2*JzKet(1, 1)) == 2*hbar**2*JzKet(1, 1) # Symbolic assert qapply(J2*JxKet(j, m)) == \ hbar**2*j**2*JxKet(j, m) + hbar**2*j...
<filename>examples/drum_pump.py #!/usr/bin/env python import math from scad import * class DrumPumpObject(SCAD_Object): # pump body pump_body_inner_radius = 15 pump_body_thickness = 4 pump_body_radius = pump_body_inner_radius + pump_body_thickness pump_body_length = 35 pump_body_color = "orange" # screw_wal...
Oo0Ooo * OoOoOO00 % ooOoO0o * oO0o - OoO0O00 if 40 - 40: I11i . OoooooooOO * O0 / I1Ii111 + O0 if 97 - 97: ooOoO0o - ooOoO0o * OOooOOo % OoOoOO00 - OoOoOO00 - I1Ii111 if 52 - 52: O0 % iII111i if 81 - 81: OoooooooOO % OoOoOO00 % Oo0Ooo - I1IiiI if 43 - 43: o0oOOo0O0Ooo % o0oOOo0O0Ooo if 48 - 48: O0 if 5 - 5: OOoo...
""" # load the channel data ChannelData = ReadChannelData(DataDirectory, FilenamePrefix) # load the hillslopes data HillslopeData = ReadHillslopeData(DataDirectory, FilenamePrefix) # isolate basin data BasinChannelData = ChannelData[ChannelData.basin_key == BasinID] BasinJunctions = HillslopeData.Ba...
# import itertools # import json # # import numpy as np # import torch # import torch.nn as nn # # translation = { # "cube": 0, # "sphere": 1, # "cylinder": 2, # "gray": 0, # "red": 1, # "blue": 2, # "green": 3, # "brown": 4, # "purple": 5, # "cyan": 6, # "yellow": 7, # "rubber": 0, # "metal": 1, # "large": 0, # "small...
<reponame>tcrundall/chronostar<gh_stars>0 """ Test a bunch of functions that serve as an interface to standard stellar data table """ import numpy as np import logging from astropy.io import fits from astropy.table import Table # from astropy.units.core import UnitConversionError try: import exceptions except ImportE...
<filename>dw_v1.py<gh_stars>0 import numpy as np import pandas as pd import seaborn as sns import matplotlib.pyplot as plt from scipy import stats from sklearn.linear_model import LinearRegression from sklearn import svm, preprocessing from sklearn.cluster import KMeans from statsmodels.stats.multicomp import pairwise_...
<reponame>praekelt/casepropods.family_connect_registration<filename>casepropods/family_connect_registration/tests.py import json import responses from django.apps import apps from casepro.cases.models import Case from casepro.test import BaseCasesTest from .plugin import RegistrationPodConfig, RegistrationPod class R...
<reponame>omid55/balance_theory_subject_study<gh_stars>0 # Omid55 # Test module for group dynamics logs library. from __future__ import division, print_function, absolute_import, unicode_literals import os import unittest import numpy as np import pandas as pd from pandas import testing as pd_testing from numpy impo...
# Copyright (c) 2020 6WIND S.A. # SPDX-License-Identifier: BSD-3-Clause import inspect import logging from typing import Any, Callable, Dict, Iterator, List, Optional import libyang from _sysrepo import ffi, lib from .change import Change from .errors import ( SysrepoInternalError, SysrepoNotFoundError, SysrepoUn...
exists. If the file does not exist, creates a new file for writing. w+ - Opens a file for both writing and reading. Overwrites the existing file if the file exists. If the file does not exist, creates a new file for reading and writing. wb+ - Opens a file for both writing and reading in binary format. Overwrites ...
""" VASP calculation. ----------------- The calculation class that prepares a specific VASP calculation. """ #encoding: utf-8 # pylint: disable=abstract-method # explanation: pylint wrongly complains about (aiida) Node not implementing query from aiida.plugins import DataFactory from aiida_vasp.parsers.file_parsers.i...
<gh_stars>1-10 # Copyright 2016 The TensorFlow 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...
not None. :param project: project name or folder path (e.g., "project1/folder1") :type project: str :param img_urls: list of str objects to upload :type img_urls: list :param img_names: list of str names for each urls in img_url list :type img_names: list :param annotation_status: value to set the annotation st...
None # connected to ACSII when moltype is imported def __init__( self, seq="", name=None, info=None, check=True, preserve_case=False, gaps_allowed=True, wildcards_allowed=True, ): """Initialize a sequence. Parameters ---------- seq: the raw sequence string, default is '' name: the sequence name chec...
return get_rsquared_acv( self.cov, nsample_ratios, partial(get_discrepancy_covariances_KL, K=self.K, L=self.L, pkg=pkg)) class ACVMFKLBest(ACVMF): def get_rsquared(self, nsample_ratios): return get_rsquared_acv_KL_best(self.cov, nsample_ratios) def allocate_samples(self, target_cost): return allocate_samples...
"15": {}, "16": {}, "17": {}, "18": {}, "19": {}, "2": {}, "20": {}, "21": {}, "22": {}, "23": {}, "24": {}, "3": {}, "4": {}, "5": {}, "6": {}, "7": {}, "8": {}, "9": {}, }, "sdlcLSStatsEntry": { "1": {}, "10": {}, "11": {}, "12": {}, "13": {}, "14": {}, "15": {}, "16": {}, "17": {}, "18":...
scenario # to provide as additional information to the IN_MOVED_TO event # the original pathname of the moved file/directory. to_append['src_pathname'] = mv_[0] elif (raw_event.mask & IN_ISDIR and watch_.auto_add and not watch_.exclude_filter(dst_path)): # We got a diretory that's "moved in" from an unknown sourc...
from . import * # @ingroup lib8tion # @defgroup Scaling Scaling functions # Fast, efficient 8-bit scaling functions specifically # designed for high-performance LED programming. # # Because of the AVR(Arduino) and ARM assembly language # implementations provided, using these functions often # results in smaller and ...
is None and content-type will be predicted by allowed content-types and body. _host_index (int/None): specifies the index of the server that we want to use. Default is read from the configuration. Returns: ApplyResult[InlineResponse2004] """ self.apply_kwargs_defaults(kwargs=kwargs, return_http_data_only=True, ...
or cur_event_type == "": continue corresponding_role_type_list = event_schema_dict.get(cur_event_type) find_key = sample_id + "-" + cur_event_type fold_probs_cur_sample = [ele.get(find_key) for ele in kfold_result] for index, cur_role_type in enumerate(corresponding_role_type_list): cur_query_word = fp_role_mrc.d...
<gh_stars>1-10 import CSDGAN.utils.db as db import CSDGAN.utils.constants as cs import utils.image_utils as iu import utils.utils as uu from CSDGAN.classes.image.ImageDataset import OnlineGeneratedImageDataset from CSDGAN.classes.image.ImageNetD import ImageNetD from CSDGAN.classes.image.ImageNetG import ImageNetG from...
<filename>gridpath/project/capacity/capacity_groups.py # Copyright 2016-2020 Blue Marble Analytics 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/LICE...
#!/usr/bin/env python # coding: latin-1 # Import library functions we need import UltraBorg import Tkinter import Tix # Start the UltraBorg global UB UB = UltraBorg.UltraBorg() # Create a new UltraBorg object UB.Init() # Set the board up (checks the board is connected) # Calibration settings CAL_PWM_MIN = 0 # Minim...
import functools import math from typing import Dict, Optional, List, Any, Union, Tuple, Callable import numpy as np import opensfm.synthetic_data.synthetic_dataset as sd import opensfm.synthetic_data.synthetic_generator as sg import opensfm.synthetic_data.synthetic_metrics as sm from opensfm import pygeometry, types,...
"""Module for arranging the design elements for the Card json""" from typing import List, Dict, Union from mystique import config from mystique import default_host_configs from .design_objects_template import ObjectTemplate from .extract_properties import CollectProperties from .extract_properties import ExtractPrope...
<gh_stars>1-10 from collections import namedtuple from enum import Enum import traceback import logging import attr import copy import os from .. import repositories, entities, services, exceptions from .annotation import ViewAnnotationOptions logger = logging.getLogger(name=__name__) class ItemStatus(str, Enum): ...
<reponame>ngannguyen/referenceViz #!/usr/bin/env python """ Create coverage plots nknguyen at soe dot ucsc dot edu Input: coverageStats.xml files """ import os, sys from optparse import OptionParser import xml.etree.ElementTree as ET #from numpy import * from numpy import arange import libPlotting as libplot import m...
flat-chain flatchain[:,1] = ei flat-chain flatchain[:,2] = R flat-chain flatchain[:,3] = epsilon_r flat-chain mass_frac : float with 0 < mass_frac <= 1 The fraction of the probability to be included in the HPD. For example, `massfrac` = 0.95 gives a 95% HPD. epsilon : float. Energy difference between active an...