text
stringlengths
8.04k
46.5k
# MIT License # # Copyright (c) 2020-2021 CNRS # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, pu...
""" Data handling for images and reflectance """ from gzopen import gzopen import logging import logging.config import yaml import copy as cp import re import ntpath import h5py import datetime import numpy as np import time import io import glob import pandas as pd import matplotlib.pyplot as plt class wafer(): ...
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys, os, shutil, argparse, re, json, traceback from codecs import open from configparser import RawConfigParser from collections import defaultdict import boto from boto.mturk.connection import MTurkRequestError from boto.mturk.price import Price from boto.mturk.qu...
import numpy as np from scipy.interpolate import interp2d,interp1d from .params import default_params import camb from camb import model import scipy.interpolate as si import scipy.constants as constants """ This module will (eventually) abstract away the choice of boltzmann codes. However, it does it stupidly by simp...
#pragma pylint: disable=fixme,line-too-long,missing-docstring,invalid-name,no-member,dangerous-default-value,protected-access,unused-import,assignment-from-no-return,redefined-outer-name import sys import math from ctypes import sizeof, c_float, c_void_p, c_uint, string_at from OpenGL.GL import * #pylint: disable=...
import argparse import os import random import time import numpy as np import torch import torch.nn as nn from sklearn.metrics import accuracy_score from sklearn.utils import shuffle from analysis import rocstories as rocstories_analysis from analysis import pw as pw_analysis from analysis import pw_retrieved as pw_r...
# ---------------------------------------------------------------------------- # # MantaFlow fluid solver framework # Copyright 2019-2020 <NAME>, <NAME> # # This program is free software, distributed under the terms of the # Apache License, Version 2.0 # http://www.apache.org/licenses/LICENSE-2.0 # # Training (PRE vers...
import fnmatch import os from collections import Counter from conans.client import packager from conans.client.build_requires import BuildRequires from conans.client.client_cache import ClientCache from conans.client.cmd.export import cmd_export, _execute_export from conans.client.deps_builder import DepsGraphBuilder ...
#!/usr/bin/env python import argparse as ap import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as clr from hmmlearn.hmm import GaussianHMM import scipy.stats as scistats import logging import pickle import os, ntpath import tables import cooler from scipy.sparse import csr_matrix, triu, lil_ma...
# -*- coding:utf-8 -*- # ========================================== # Author: ZiChen # 📧Mail: <EMAIL> # ⌚Time: 2021/07/18 # Version: 1.4.1 # Description: 通过图片链接下载图片——vilipix网站特制版 # ========================================== from ssl import match_hostname import reque...
import datetime import importlib import re from typing import Optional, List from telegram import Message, Chat, Update, Bot, User from telegram import ParseMode, InlineKeyboardMarkup, InlineKeyboardButton, ReplyKeyboardMarkup, KeyboardButton from telegram.error import Unauthorized, BadRequest, TimedOut, NetworkError,...
""" @file @brief This extension contains various functionalities to help unittesting. """ import os import sys import glob import re import unittest import warnings from io import StringIO from .utils_tests_stringio import StringIOAndFile from .default_filter_warning import default_filter_warning from ..filehelper.sync...
import torch,math import torch.nn as nn import torch.nn.functional as F from torch.autograd import Variable from roialign.roi_align.crop_and_resize import CropAndResizeFunction def log2(x): """Implementatin of Log2. Pytorch doesn't have a native implemenation.""" ln2 = Variable(torch.log(torch.FloatTensor([2....
''' ######################################################################## # # # milkShake.py # # # # Email: <EM...
import os import json import yaml import base64 import shutil import logging import tarfile import zipfile import mimetypes from copy import deepcopy from pprint import pformat from contextlib import contextmanager from tempfile import NamedTemporaryFile, mkdtemp import boto3 from wagon import show from botocore.exce...
# Copyright (c) 2021, Technische Universität Kaiserslautern (TUK) & National University of Sciences and Technology (NUST). # All rights reserved. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from __future__ import print_function from __fut...
bl_info = { "name": "Denoiser animation Avisynth script generator", "description": "Generate denoising script for Avisynth", "author": "<NAME>", "version": (0, 3), "blender": (2, 78, 0), "location": "Properties > Render > Denoising scrip generator", "warning": "Requires Avisynth to denoise t...
"""Quote Archive, search, and recite humorous, inspiring, or out-of-context quotes. Includes a variety of commands for searching and managing quotes, as well as reporting quote database statistics. """ from __future__ import annotations import itertools import re import sqlite3 import textwrap from collections impor...
import argparse import os import sys import logging import numpy import numpy as np import torch import torch.utils.data import torchvision from torch.utils.data import DataLoader from tensorboardX import SummaryWriter from tqdm import tqdm from learning3d.ops import se3 # Only if the files are in example folder. BASE...
import zarr from typing import Any, Tuple, List, Union import numpy as np from tqdm import tqdm from .readers import CrReader, H5adReader, NaboH5Reader, LoomReader import os import pandas as pd from .utils import controlled_compute from .logging_utils import logger from scipy.sparse import csr_matrix __all__ = ['creat...
# -*- coding: utf-8 -*- """ Created on Mon Aug 9 14:46:11 2021 To inject methods and properties into a asia model instance, so we dont have to recreate it @author: bruger """ import pandas as pd import ipywidgets as widgets from ipysheet import sheet, cell, current from ipysheet.pandas_loader import from_data...
# coding:utf-8 import hashlib import json import socketserver import pickle import threading import random import time from binascii import Error import zlib import db from blockchain import Blockchain from p2p import constant from p2p.kbucketset import KBucketSet from p2p.nearestnodes import KNearestNodesUtil from ...
# Copyright 2015 The Chromium Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import re from recipe_engine.types import freeze class V8TestingVariants(object): """Immutable class to manage the testing variant passed to v8. There...
import hashlib import json import sys import time import types import warnings try: from urllib.request import build_opener, HTTPRedirectHandler from urllib.parse import urlencode from urllib.error import URLError, HTTPError string_types = str, integer_types = int, numeric_types = (int, float) ...
#!/usr/bin/env python """ This module contains dyPolyChord's high-level functionality for performing dynamic nested sampling calculations. This is done using the algorithm described in Appendix F of "Dynamic nested sampling: an improved algorithm for parameter estimation and evidence calculation" (Higson et al., 2019)....
from __future__ import unicode_literals import os import sys import datetime from datetime import timedelta import logging import ee import eeUtil import time import requests import rasterio import boto3 from botocore.exceptions import NoCredentialsError from netCDF4 import Dataset import numpy as np import copy import...
#!/usr/bin/env python # Copyright 2014-2018 The PySCF Developers. 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 # # U...
# Copyright (c) 2019-2022, NVIDIA CORPORATION. import warnings from collections import defaultdict from contextlib import ExitStack from typing import Dict, List, Tuple from uuid import uuid4 import numpy as np from pyarrow import dataset as ds, parquet as pq import cudf from cudf._lib import parquet as libparquet f...
#!/usr/bin/env python3.6 import boto3 import datetime import json import time import decimal from botocore.client import ClientError from boto3 import resource from boto3.dynamodb.conditions import Key import logging import subprocess #import urllib from urllib.parse import urlparse import timecode from timecode import...
# -*- 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...
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'untitled.ui' # Created by: PyQt5 UI code generator 5.9.2 # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets,QtWebEngineWidgets import io,sys,folium from PyQt5.QtGui import * from PyQt5.QtW...
################################################################ # The contents of this file are subject to the BSD 3Clause (New) License # you may not use this file except in # compliance with the License. You may obtain a copy of the License at # http://directory.fsf.org/wiki/License:BSD_3Clause # Software distribut...
"""Base class for the tidal database models.""" # 1. Standard python modules from abc import ABCMeta, abstractmethod from datetime import datetime import math # 2. Third party modules import numpy import pandas as pd from pytides.astro import astro # 3. Aquaveo modules # 4. Local modules from .resource import Resour...
# vim: set et sw=4 sts=4 fileencoding=utf-8: # # Python camera library for the Rasperry-Pi camera module # Copyright (c) 2013-2017 <NAME> <<EMAIL>> # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are met: # # * Redistributio...
from __future__ import print_function import sys, os.path as path sys.path.append(path.dirname(path.dirname(path.dirname(path.abspath(__file__))))) from summarizer.utils.reader import read_csv import matplotlib.pyplot as plt import numpy as np import matplotlib.mlab as mlab import os import argparse from sets import S...
import matplotlib.pyplot as pl import anndata as ad import pandas as pd import numpy as np import scanpy as sc import scvelo as scv from scipy.sparse import issparse import matplotlib.gridspec as gridspec from scipy.stats import gaussian_kde, spearmanr, pearsonr from goatools.obo_parser import GODag from goatools.anno....
# -*- encoding: utf-8 -*- """ License: MIT Copyright (c) 2021 - present DaruWheel.com """ from django.db import models from django.conf import settings from django.db.models import Sum from datetime import timedelta from random import randint from django.utils import timezone try: from account.models import * ex...
# Copyright (C) 2011, 2012 Nippon Telegraph and Telephone Corporation. # Copyright (C) 2011, 2012 <NAME> <yamahata at valinux co jp> # # 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 # # htt...
#Sources: #https://www.geeksforgeeks.org/reading-excel-file-using-python/ #https://developers.google.com/calendar/v3/reference from __future__ import print_function import sys import logging import os.path from os import path import gspread import tkinter as tk from tkinter import * from tkinter.filedialog import askop...
# -*- coding: utf-8 -*- # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors # License: GNU General Public License v3. See license.txt from __future__ import unicode_literals import json import frappe from frappe.utils import cint, flt, nowdate, add_days, getdate, fmt_money from frappe import _ from ...
# -*- coding: utf-8 -*- import functools import inspect import os import sys from types import MethodType from typing import Any, Callable, Dict, Iterable, List, Optional, Tuple, Type, Union import six from brewtils.choices import process_choices from brewtils.display import resolve_form, resolve_schema, resolve_tem...
"""Generate a single discrete time SIR model. """ from . import data_model import numpy as np from scipy import stats import xarray as xr # Generate Betas # Beta, or the growth rate of the infection, depends on the covariates. # Here we implement three different functional forms for the dependency. SPLIT_TIME = 100 ...
""" FMI 2.0 interface """ import pathlib from ctypes import * from . import free, calloc from .fmi1 import _FMU, FMICallException, printLogMessage fmi2Component = c_void_p fmi2ComponentEnvironment = c_void_p fmi2FMUstate = c_void_p fmi2ValueReference = c_uint fmi2Real ...
import logging import locale import string import re from pathlib import Path import codecs import copy import dataclasses from datetime import datetime import dateutil.parser import itertools from typing import List, Iterator logger = logging.getLogger(__name__) META_REGEX = re.compile(r'^(?P<key>[A-Z]+)(\s|$)(?P<va...
""" Unit tests for the units library.""" from six.moves import cStringIO import math import os import unittest from openmdao.test.util import assert_rel_error from openmdao.units import PhysicalQuantity, NumberDict, UnitsOnlyPQ, PhysicalUnit, convert_units, get_conversion_tuple from openmdao.units.units impo...
import pandas as pd import numpy as np import time import sys import json from jsmin import jsmin from collections import Counter import os.path from xlrd.biffh import XLRDError from aenum import IntEnum import time # set up logging (to console) import logging logger = logging.getLogger(__name__) logger.setLevel(loggi...
from flask import Blueprint, jsonify, flash import requests, math from urllib.parse import urljoin, urlparse import datetime import uuid from flask import current_app, g from flask_babel import format_number,gettext,format_decimal, format_currency, format_percent from flask import Flask, render_template, redirect, r...
# type: ignore # -*- coding: utf-8 -*- # # ramstk.analyses.mil_hdbk_217f.models.capacitor.py is part of the RAMSTK Project # # All rights reserved. # Copyright since 2007 Doyle "weibullguy" Rowland doyle.rowland <AT> reliaqual <DOT> com """Capacitor MIL-HDBK-217F Constants and Calculations Module.""" # Standard ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # # king_phisher/client/tabs/campaign.py # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions are # met: # # * Redistributions of source code must retain the above copyright # not...
import os import sys import gym import time import math import time import scipy import skimage import random import logging import pybullet import numpy as np from gym import spaces from gym.utils import seeding from pprint import pprint from skimage.transform import rescale from PIL import Image, ImageDraw from ..uti...
import pandas as pd import numpy as np import os from keras import backend from keras.preprocessing.sequence import pad_sequences from keras.preprocessing.text import Tokenizer from keras.layers.merge import concatenate from keras.models import Sequential, Model from keras.layers import Dense, Embedding, Activation, me...
#!/usr/bin/env python """ Numba sampling routines """ import numpy as np import math from numba import jit, prange # import lom._cython.matrix_updates as cython_mu import lom._numba.lom_outputs as lom_outputs import lom._numba.posterior_score_fcts as score_fcts # only needed for IBP from lom.auxiliary_functions import...
# -*- coding: utf-8 -*- from __future__ import print_function, division, unicode_literals from __future__ import absolute_import import numpy as np, time, sys, smbus # default addresses and ChipIDs of Bosch BMP 085/180 and BMP/E 280 sensors BMP_I2CADDR = 0x77 BMP_I2CADDR2 = 0x76 #BMP_I2CADDR = 0x76 # alternative dev...
import re import xml.etree.ElementTree as ET from os import path from collections import Counter import argparse import csv import json import os import random # package local imports import sys import uuid import matplotlib.pyplot as plt import math from dateutil.parser import parse from tdigest import TDigest impo...
import numpy as np jit = lambda x: x # Make things faster? volume() certainly become faster, but ensure_closed, # which is more critical, does not. # import numba # jit = numba.jit # Interesting methods: # - remove unused vertices, but can be obtained by m = Mesh(m.get_flat_vertices()) # - split the different conne...
import time import numpy as np import tensorflow as tf from tensorflow import keras from tensorflow.keras.layers import Layer from tensorflow.python.keras.utils import tf_utils from common import utils from common.ops import ops as custom_ops from common.ops import transformation from common.ops.em_routing import em_...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Jan 2018 hacer calib extrisneca con pymc3 @author: sebalander """ # %% # import glob import os import corner import time import seaborn as sns import scipy as sc import scipy.stats as sts import matplotlib.pyplot as plt from copy import deepcopy as dc imp...
"""Contains functions that are used in the dynamic location and creation of tabs and datatypes. Can be used both internally and externally. """ import os import json import pkg_resources import importlib import logging from PyQt5 import QtWidgets from meggie.utilities.uid import generate_uid from meggie.utilities.m...
""" This file contains the objects for taking in pytmc-parsed TMC files and generating Python-level configuration information. """ import copy import itertools import logging import math import re from typing import Generator, Type, Union from . import parser from .record import RecordPackage logger = logging.getLogg...
import io import os import logging import tkinter as tk import tkinter.ttk as ttk import tkinter.filedialog as filedialog import tkinter.messagebox as tkmessagebox import libs.CFCrypto as CFCrypto import libs.CFCryptoX as CFCryptoX from libs.CFCanvas import CFCanvas from libs.Util import set_combobox_item from libs.Uti...
''' Resampling methods ================== ''' import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns from sklearn import datasets import sklearn.linear_model as lm from sklearn.model_selection import train_test_split, KFold, PredefinedSplit from sklearn.model_selection import cro...
""" Class that plays the Reinforcement Learning agent """ # !/usr/bin/python import csv import pprint import threading import numpy as np import json import random import pathlib from datetime import datetime import time import copy from time import sleep import logging import sys from formatter_for_output import...
import sys import time from math import * from random import * global valm1 global stratDict sys.setrecursionlimit(2**31-1) stratDict=dict() partitions=dict() stratDict[""]=0 stratDict["1"]=1 partitions[1]=[[1]] partitions[0]=[] q = { 1: [[1]] } g={ 1: [[1]] } valm1=dict() amountsasdf=[] placing=dict() try: open("...
"This module holds the mixer state of the X-Air device" # part of xair-remote.py # Copyright (c) 2018, 2021 <NAME> # Additions Copyright (c) 2021 <NAME> # Some rights reserved. See LICENSE. import time import subprocess import struct import json from collections import deque from lib.xair import XAirClient, find_mixer...
# coding: utf-8 """ Automated Tool for Optimized Modelling (ATOM) Author: Mavs Description: Unit tests for basepredictor.py """ # Standard packages import pytest import numpy as np import pandas as pd from sklearn.discriminant_analysis import LinearDiscriminantAnalysis as LDA # Own modules from atom import ATOMClas...
import json from os import path from os import mkdir import matplotlib.pyplot as plt import matplotlib.colors as mcolors import numpy as np from astropy.time import Time import glob import matplotlib.cm as cm def convert_dict_to_nested_type(report): if type(report) is dict: for k, v in report.items(): ...
import unittest from dna_lib import * class NucleotideToNumberTest(unittest.TestCase): def test_dna_adenine_to_number(self): self.assertEqual(nucleotide_to_number('A'), 0) def test_dna_thymine_to_number(self): self.assertEqual(nucleotide_to_number('T'), 3) def test_dna_cytos...
#!/usr/bin/env python3 """ FOP Filter Orderer and Preener Copyright (C) 2011 Michael This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at yo...
import networkx as nx import pathFind as pf import nested_dict as nd import random as rn from queue import PriorityQueue from math import inf import utils as ut import modification as md max = inf CBR = ut.getBlockHeight() LND_RISK_FACTOR = 0.000000015 C_RISK_FACTOR = 10 RISK_BIAS = 1 DEFAULT_FUZZ = 0.05 MIN_DELAY = 9...
#!/usr/bin/env python3 ## MIT License ## ## Copyright (c) 2019 <NAME> ## ## 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 ...
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2019 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless req...
#!/usr/bin/python3 """ 一些基础的类和函数 注意, import关系需要能够拓扑排序(不要相互调用). """ # 加载不应该被COPY的包 import io2 as io import deap from deap import algorithms, base, creator, gp, tools from prettytable import PrettyTable # COPY # import copy import random import warnings import sys import pdb import inspect import shu...
from __future__ import division import numpy as np from numpy import pi, sqrt, exp, power, log, log10 import os import constants as ct import particle as pt import tools as tl ############################## # Preparing SKA configurations ############################## def initialize(): """This routine is supp...
import collections.abc import enum import os from typing import ( TYPE_CHECKING, Annotated, Any, AsyncGenerator, Optional, Union, ) import aiohttp import inflection import numpy as np import pandas as pd import pydantic import structlog import uplink import uplink.converters from pandera.decora...
import torch from torch import nn import numpy as np from collections import OrderedDict from torch.utils.data import DataLoader from torch.utils.data import Sampler from contextlib import nullcontext import yaml from yaml import SafeLoader as yaml_Loader, SafeDumper as yaml_Dumper import os,sys from tqdm import tqdm...
#!/usr/bin/env python3 import os import sys import time import atexit import shutil import asyncio import socket import argparse import asyncssh import ipaddress import subprocess from operator import itemgetter #import logging # #logging.basicConfig( # level=logging.DEBUG, # format='%(levelname)7s: %(message)...
# Copyright Amazon Web Services and its Affiliates. 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...
# Data loading based on https://github.com/NVIDIA/flownet2-pytorch from ast import NotEq import numpy as np import torch import torch.utils.data as data from torch.utils.data import DistributedSampler import torch.nn.functional as F import os import math import random from glob import glob import os.path as osp impor...
''' testcode2 --------- A framework for regression testing numerical programs. :copyright: (c) 2012 <NAME>. :license: modified BSD; see LICENSE for more details. ''' import glob import os import pipes import shutil import subprocess import sys import warnings try: import yaml _HAVE_YAML = True except Import...
import logging from functools import partial import cv2 import os import json from collections import defaultdict import numpy as np import pandas as pd import torch from tensorboardX import SummaryWriter from torch.utils.data import DataLoader from evaluation.inception import InceptionScore from sg2im.data.dataset_par...
# -*- coding: utf-8 -*- """DataSource views for creating and viewing the data source.""" import logging from copy import deepcopy from datetime import datetime from typing import List, Optional from uuid import uuid4 from flask.blueprints import Blueprint from flask.globals import request from flask.json import jsonif...
""" Functions and methods for performing solar radiation tests taken from the BSRN Global Network recommended QC tests, V2.0 https://bsrn.awi.de """ import warnings import numpy as np import dask.array as da from scipy.constants import Stefan_Boltzmann from act.utils.geo_utils import get_solar_azimuth_elevation fro...
import mybayes as bayes import numpy as np from mybayes.influence import ProbTable, Normal from mybayes.settings import NumberOfSample from copy import deepcopy class TempCache(object): data = {} id_top = 0 def add(self, item): self.id_top+=1 self.data[self.id_top] = item return s...
#!/usr/bin/env python # vim: set fileencoding=utf-8 ts=4 sts=4 sw=4 et tw=80 : # # Second cut at astrometry fitting for UCD project. # # <NAME> # Created: 2021-08-30 # Last modified: 2021-08-30 #-------------------------------------------------------------------------- #*******************************************...
import math import numpy as np import pandas as pd import scipy.ndimage as ndi import tensorflow as tf import tqdm from scipy.ndimage.morphology import binary_erosion from data_kits import nf_kits from data_kits import np_ops, tf_ops _data_cache = None def loads(opt, logger, set_key): data_list = nf_kits.load_...
from collections import defaultdict from distutils.version import LooseVersion from functools import partial import numba from numba.core import compiler, cgutils, types from numba.core.errors import TypingError from numba.core.extending import intrinsic from numba.experimental import structref from numba.core.typed_p...
import numpy as np import matplotlib.pyplot as plt import torch from torch.autograd import Variable import time import math import random import ray import copy, sys from functools import partial # Quaternion utility functions. Due to python relative imports and directory structure can't cleanly use cassie.quaternion_...
# vim: tabstop=4 shiftwidth=4 softtabstop=4 # Copyright 2014 Violin Memory, 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...
# -*- coding: utf-8 -*- # run in py3 !! import os os.environ["CUDA_VISIBLE_DEVICES"] = "1"; import tensorflow as tf config = tf.ConfigProto() # config.gpu_options.per_process_gpu_memory_fraction=0.5 config.gpu_options.allow_growth = True tf.Session(config=config) import numpy as np from sklearn import preprocessing...
# Copyright 2015 The Chromium OS Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. import collections import logging import re import statistics import time from cros.factory.device import device_types from cros.factory.utils import typ...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import re import pysam import time import sys import multiprocessing import subprocess import os from singlecellmultiomics.utils.sequtils import hamming_distance, phred_to_prob from singlecellmultiomics.universalBamTagger.taps import TAPSFlagger from singlecellmultiomics.u...
import ast import os import random import shutil from time import sleep import pandas as pd import torch from PIL import Image from torchvision.transforms import transforms from tqdm import tqdm from data import dataset_catalog from data.organize_data import fix_image from data.style_dataset import StyleDataset from d...
from pathlib import Path from itertools import zip_longest import difflib from Framework import Utility_Wrapper from Framework import Plugin_Log from Framework import Print from Framework.File_Manager import XML_File from Framework.File_Manager.Cat_Reader import Get_Hash_String from Framework.File_Manager.XML_Diff im...
# ~~~ # This file is part of the paper: # # "A NON-CONFORMING DUAL APPROACH FOR ADAPTIVE TRUST-REGION REDUCED BASIS # APPROXIMATION OF PDE-CONSTRAINED OPTIMIZATION" # # https://github.com/TiKeil/NCD-corrected-TR-RB-approach-for-pde-opt # # Copyright 2019-2020 all developers. All rights reserved. # License:...
"""Generate confidence intervals for RNA velocity models by bootstrapping across reads. Our bootstrapping procedure is as follows: 1. Given a spliced count matrix ([Cells, Genes]) S and an unspliced matrix U, create a total counts matrix X = S + U. 2.1 For each cell X_i \in X, fit a multinomial distribution. Sample D...
# --- # jupyter: # jupytext: # formats: ipynb,py:light # text_representation: # extension: .py # format_name: light # format_version: '1.5' # jupytext_version: 1.13.0 # kernelspec: # display_name: Python 3 (ipykernel) # language: python # name: python3 # --- # # Fleet Cl...
from __future__ import print_function from __future__ import division from . import _C import numpy as np import random from scipy.stats import t from copy import copy, deepcopy from fuzzytools import numba as ftnumba from . import flux_magnitude as flux_magnitude OBS_NOISE_RANGE = 1 CHECK = _C.CHECK MIN_POINTS_LIGHT...
# See LICENSE.incore for license details from datetime import datetime from getpass import getuser from glob import glob from multiprocessing import Pool, Manager from os import mkdir, makedirs, remove from os.path import join, dirname, abspath, exists, isdir, isfile from shutil import rmtree, copyfile from sys import...
""" MetaWIBELE: config module Configuration settings Copyright (c) 2019 Harvard School of Public Health 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 limi...
from credentials.blob_credentials import facts_sas_token, facts_container from azure.storage.blob import ContainerClient, BlobClient import pandas as pd import os import json import colorsys import random import numpy as np import cv2 import imageio from matplotlib import patches from matplotlib.patches import Polygon ...