text
stringlengths
8.04k
46.5k
# -*- coding: utf-8 -*- ############################################################################### # Copyright (c), Forschungszentrum Jülich GmbH, IAS-1/PGI-1, Germany. # # All rights reserved. # # This file is part of the Masci-tools package. ...
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """Tests for rules.py""" import ast import re import unittest from typing import Any import astor from beanmachine.ppl.compiler.ast_pattern...
""" Copyright (c) 2015 Red Hat, Inc All rights reserved. This software may be modified and distributed under the terms of the BSD license. See the LICENSE file for details. Naming Conventions ================== registry.somewhere/namespace/image_name:tag |-----------------| registry, reg_ur...
# verifyUSFM.py # Script for verifying proper USFM. # Uses parseUsfm module. # Place this script in the USFM-Tools folder. from typing import List, Tuple, Optional import re import sys import logging from tx_usfm_tools import parseUsfm, usfm_verses # Global variables lastToken = None vv_re = re.compile(r'([0-9]+)-...
""" Misc functions, including distributed helpers. Mostly copy-paste from torchvision references. """ import os import subprocess import time from collections import defaultdict, deque import datetime import pickle from typing import Optional, List import torch import torch.distributed as dist from torch import Tenso...
import numpy as np from torch.autograd import Variable import torch import torch.nn as nn import torch.nn.functional as F DEBUG = False def log(s): if DEBUG: print(s) class SeparableConv3d(nn.Module): def __init__(self, in_channels, out_channels, kernel_size=1, stride=1, padding=0, dilation=1, bias=False): su...
#!/usr/bin/env python3 # Copyright 2018 Open Source Foundries, Limited # Copyright 2018 Foundries.io, Limited # SPDX-License-Identifier: Apache-2.0 '''Helper module for analyzing a Zephyr tree. Has some features that are only useful when analyzing a tree with upstream and downstream commits as well.''' import argpa...
""" [Optional] When using db_out.csv check consistency: should be the same ID column in raw and out. With this I won't need the ID column at all. """ import os.path as p from typing import NamedTuple, List, Tuple, Callable, Dict, Any import ast import pandas as pd from pandas import DataFrame import numpy as np # n...
""" Hard-coded method to construct the FOBOS focal plane design files. .. include:: ../include/links.rst """ import time from IPython import embed import numpy from .focalplane import module_layout from ..deploy import FOBOSModeBitMask def baseline_module_type(): """ Define the type of each module. ...
import numpy as np import scipy.stats as ss import matplotlib.pyplot as plt import itertools from emcee import PTSampler from scipy.special import erf try: import ipyparallel as ipp use_parallel_global = True except ImportError: use_parallel_global = False class BayesBimodalTest(): """ A Bayesian mod...
# Copyright 2017 Mycroft AI 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 writin...
""" COCO keypoint detection (2D multiple human pose estimation) dataset (for Lightweight OpenPose). """ import os import json import math import cv2 from operator import itemgetter import numpy as np from chainercv.chainer_experimental.datasets.sliceable import GetterDataset from .dataset_metainfo import DatasetMe...
""" Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. SPDX-License-Identifier: MIT-0 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 li...
#!/usr/bin/python # -*- coding: utf-8 -*- # Hive Colony Framework # Copyright (c) 2008-2020 Hive Solutions Lda. # # This file is part of Hive Colony Framework. # # Hive Colony Framework is free software: you can redistribute it and/or modify # it under the terms of the Apache License as published by the Apach...
from drift_detect_utils.shift_applicator import apply_shift from failing_loudly.shift_detector import ShiftDetector from failing_loudly.shared_utils import DimensionalityReduction, OnedimensionalTest, TestDimensionality from failing_loudly.shift_locator import DifferenceClassifier, ShiftLocator from drift_detect_utils....
import pandas as pd from statsmodels.regression.linear_model import OLS, WLS from statsmodels.robust.robust_linear_model import RLM from statsmodels.discrete.discrete_model import Logit from sklearn.neighbors import NearestNeighbors from causality.util import bootstrap_statistic import numpy as np class DifferenceInD...
# Copyright 2018 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 by applica...
########################################################################## # This file is part of the deModel library, a Python package for using # Python to model fixed point arithmetic algorithms. # # Copyright (C) 2007 Dillon Engineering, Inc. # http://www.dilloneng.com # # The deModel library is free software;...
#!/usr/bin/env python # -*- coding: utf-8 -*- """ @author: phil """ import numpy as np import scipy.signal as sig import time #analysis:ignor import matplotlib.pyplot as plt import matplotlib as mpl #analysis:ignore from matplotlib import rc from matplotlib.ticker import FormatStrFormatter import pandas as pd from...
# -*- coding: utf-8 -*- ############################################################################## # # OpenERP, Open Source Management Solution # Copyright (C) 2004-2010 Tiny SPRL (<http://tiny.be>). # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU...
import csv import json import pytz import lxml import lxml.html from lxml.cssselect import CSSSelector from datetime import datetime as ddatetime from django.conf import settings from django.contrib.auth.decorators import login_required from django.core.paginator import Paginator, EmptyPage, PageNotAnInteger from djang...
# -*- coding: utf-8 -*- ## \package wizbin.scripts # MIT licensing # See: docs/LICENSE.txt import os, wx from dbr.language import GT from dbr.log import Logger from fileio.fileio import ReadFile from globals.fileitem import FileItem from globals.ident import btnid from globals.ident import chkid from globals...
import os import importlib import sys import logging import argparse import time import traceback import cravat.constants as constants from cravat.inout import CravatWriter from cravat.exceptions import ( LiftoverFailure, InvalidData, BadFormatError, ExpectedException, NoVariantError, ) import crava...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- ''' RRFTracker version Web Learn more about RRF on https://f5nlg.wordpress.com Check video about RRFTracker on https://www.youtube.com/watch?v=rVW8xczVpEo 73 & 88 de F4HWN Armel ''' import settings as s import requests import datetime import os import time import locale...
#!/usr/bin/env python3 import datetime import shutil import subprocess import time from simtk.openmm import * from simtk.openmm.app import * from gamd import utils as utils from gamd.DebugLogger import DebugLogger from gamd.GamdLogger import GamdLogger from gamd.integrator_factory import * class RunningRates: ...
""" Classes specific for ALMA analysis of delay profiler and outliers. """ from time import * import logging import re from src import * def paintedForAlmaAntennas(text): # Tokenize antenna Name colorized = re.sub( "(DV|DA|CM|PM)[0-9][0-9]", "${ANT}", text) # Tokenize some hand picked components c...
# Copyright 2018 Iguazio # # 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, softwa...
import argparse import os.path as osp import yaml import logging import numpy as np import os import torch import torch.backends.cudnn as cudnn import torch.nn.functional as F from semseg.models.model_helper import ModelBuilder import torch.distributed as dist from semseg.utils.loss_helper import get_criterion from...
# SPDX-License-Identifier: BSD-2-Clause # Copyright (c) 2020, The Chancellor, Masters and Scholars of the University # of Oxford, and the 'Galvanalyser' Developers. All rights reserved. import os import csv import ntpath import re from datetime import datetime import xlrd import maya from galvanalyser.database.experi...
#!/usr/bin/env python3 # preProcess_getASEventReadCounts.py # Author: <NAME>, <NAME> (modifications for FLAIR) # Program Completion Date: # Modification Date(s): # Copyright (c) 2011, <NAME>. <EMAIL> # All rights reserved. """Takes a SAM file as input and will create three files that are used as input to getASEventRea...
from pypy.interpreter.baseobjspace import Wrappable from pypy.interpreter.error import OperationError, operationerrfmt from pypy.interpreter.gateway import interp2app, unwrap_spec from pypy.interpreter.typedef import TypeDef, GetSetProperty, interp_attrproperty from pypy.module.micronumpy import interp_boxes, interp_dt...
''' marc2bfrdf -v -o /tmp/ph1.ttl -s /tmp/ph1.stats.js -b http://example.org test/resource/princeton-holdings1.xml 2> /tmp/ph1.log ''' import re import os import json import functools import logging import itertools import asyncio from collections import defaultdict, OrderedDict from bibframe.contrib.datachefids imp...
#!/usr/bin/env python import argparse import copy import json import logging import os import re from builtins import bytes from six import text_type class JsonDiff(object): def __init__(self, new_json, model_map, logger=logging.getLogger(), is_directory=False, list_depth=0): self._logg...
from torch.utils.data import Dataset from cyphercat.definitions import DATASETS_DIR, DATASPLITS_DIR from tqdm import tqdm import soundfile as sf import pandas as pd import numpy as np import os from .splitter import splitter, splitter2 LIBRISPEECH_SAMPLING_RATE = 16000 sex_to_label = {'M': False, 'F': True} label_to_...
import matplotlib.image as mpimg import matplotlib.pyplot as plt import numpy as np import cv2 import glob import time from sklearn.svm import LinearSVC from sklearn.preprocessing import StandardScaler from sklearn.utils import shuffle from skimage.feature import hog from scipy.ndimage.measurements import label from s...
"""The implementation of fhwise media player.""" import logging from datetime import timedelta import voluptuous as vol import traceback from homeassistant.components.media_player import MediaPlayerEntity from homeassistant.components.media_player.const import ( MEDIA_TYPE_MUSIC, SUPPORT_TURN_ON, SUPPORT_...
"""Tests for ``jplephem``. See the accompanying ``jpltest`` module for a more intense numerical test suite that can verify that ``jplephem`` delivers, over hundreds of examples, the same results as when the ephemerides are run at JPL. This smaller and more feature-oriented suite can be run with:: python -m unitt...
""" 声母:b p m f d t n l g k h j q x zh ch sh r z c s y w 单韵母:a o e i u ü 复韵母:ai ei ui ao ou iu ie ue er 特殊韵母:(er) 前鼻韵母:an en in un ün 后鼻韵母:ang eng ing ong 整体认读音节:zhi chi shi ri zi ci si yi wu yu yu yue yin yun yuan """ import os import time from snownlp import SnowNLP from word_method import dfa from utils import logge...
import os import csv import io from typing import Callable, Tuple, Any, Dict, List, Sequence, Union, Optional from collections import OrderedDict from .lnutil import OnionFailureCodeMetaFlag class MalformedMsg(Exception): pass class UnknownMsgFieldType(MalformedMsg): pass class UnexpectedEndOfStream(MalformedMsg): p...
from __future__ import print_function, division import os from datetime import datetime import shutil import inspect import warnings import numpy as np import pandas as pd import pyemu from ..pyemu_warnings import PyemuWarning class PstFrom(object): def __init__(self,original_d,new_d,longnames=True,remove_existi...
import contextlib import os from pathlib import Path import shutil from typing import Optional from urllib.parse import urlparse import psutil import pytest from volttron.platform import is_rabbitmq_available, is_web_available from volttron.platform import update_platform_config from volttron.utils import get_random_...
""" python train_PETA.py -g 0,1 -c 61 -b 64 -m hiarGoogLeNetSPP python train_PETA_hiarchical.py -m hiarGoogLeNet -c 61 -g 1 python train_PETA_hiarchical.py -m hiarBayesGoogLeNet -c 61 -g 1 -w ../models/imagenet_models/hiarBayesGoogLeNet_PETA/binary61_multi_final_model.h5/inary61_multi_mar_final_model.h5 python train_PE...
#!/usr/bin/env python # -*- coding: utf-8 -*- from __future__ import division import sys import os import traceback import argparse import json import time import numpy as np np.set_printoptions(precision=3, suppress=True) import scipy as sci import scipy.stats import rospy import roslib roslib.load_manifest('saett...
#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2019/9/27 9:05 # @Author : ganliang # @File : convolutionallayer.py # @Desc : cnn卷积神经网络 卷积层 卷积神经网络(convolutional neural network)是含有卷积层(convolutional layer)的神经网络 import os import sys import d2lzh as d2l import mxnet from mxnet import autograd, nd, gluon,...
import numpy as np from scipy.linalg import norm, inv from lincov.spice_loader import SpiceLoader from spiceypy import spiceypy as spice from lincov.state import State import lincov.horizon as horizon from lincov.launch import sample_f9_gto_covariance from lincov.frames import compute_T_inrtl_to_lvlh from lincov.grav...
from tkinter import * import tkinter as tk from tkinter import ttk#librerías para la interfaz grafica raiz = Tk() myframe = Frame(raiz, width = 640, height = 580) raiz.geometry("640x580") raiz.resizable(0,0)#Bloqueo para modificar el tamaño de la interfaz raiz.iconbitmap("ic.ico") myframe['bg'] = 'gray77' raiz['bg'] = ...
import sys sys.path.append('C:/Users/pc/Documents/GitHub/Private_Project/personal_project') from collections import defaultdict from datetime import datetime, timedelta import time import re import requests import pandas as pd from bs4 import BeautifulSoup from selenium import webdriver from selenium.webdriver.support....
# -*- coding: utf-8 -*- """ Created on Sat Oct 15 17:28:01 2016 @author: <NAME>, <NAME> <EMAIL> """ import numpy as np import math, time, datetime from gsit import pyRinex from scipy import signal, interpolate from pandas import DataFrame from pymap3d.coordconv3d import ecef2geodetic,ecef2aer,aer2geodetic import h5p...
import json import logging from enum import Enum import pandas as pd import numpy as np from typing import Any, List, Dict, Tuple, Set, Callable, Union from collections import defaultdict from autopandas_v2.generators.dsl.values import Value, Default from autopandas_v2.utils import logger from autopandas_v2.utils.cli ...
# Copyright 2015 Pants project contributors (see CONTRIBUTORS.md). # Licensed under the Apache License, Version 2.0 (see LICENSE). # Due to the PEX_ properties, disable checkstyle. # checkstyle: noqa from __future__ import absolute_import import hashlib import json import os import re import sys from contextlib impo...
#!/usr/bin/python3 # -*- coding: utf-8 -*- import sys import pandas as pd from PyQt5.QtCore import (Qt, QDir, QAbstractTableModel, QModelIndex, QVariant, QSize, QProcess, QFile, QDate, QTime) from PyQt5.QtWidgets import (QMainWindow, QTableView, QApplication, QLineEdit, ...
#!/usr/bin/env python3 import argparse import serial import time import os import logging import binascii import re import prometheus_client from typing import Optional from dataclasses import dataclass from prometheus_client.core import ( InfoMetricFamily, GaugeMetricFamily, CounterMetricFamily, StateSetMetricF...
import numpy as np import cv2 import config # class to receive the characteristics of each line detection #global variables SIZE_CURR_FIT_ARRAY = 10 class line(): def __init__(self, id=""): self.id = id # was the line detected in the last iteration? self.detected = False # x values...
# Copyright 2017 SAP SE # # 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 by appl...
from __future__ import absolute_import import os import re import warnings from docutils.core import publish_parts from trackhub.base import HubComponent, deprecation_handler from trackhub import hub from trackhub import constants from trackhub import settings TRACKTYPES = ['bigWig', 'bam', 'bigBed', 'vcfTabix', 'bi...
import logging from logging.handlers import SMTPHandler, RotatingFileHandler import os, sys, time, shutil import dash import dash_core_components as dcc import dash_html_components as html from dash.dependencies import Input, Output from app.dashPlots.layout import layout from app.dashPlots.callbacks import registe...
import html from typing import Optional, List from telegram import Message, Chat, Update, Bot, User from telegram import ParseMode, InlineKeyboardMarkup from telegram.error import BadRequest from telegram.ext import MessageHandler, Filters, CommandHandler, run_async from telegram.utils.helpers import mention_markdown,...
import numpy as np import matplotlib as mat import matplotlib.pyplot as plt from matplotlib.font_manager import FontProperties import matplotlib.patches as mpatches # For executable import os import sys import subprocess import copy import re as _re from zacros_wrapper.utils import * from zacros_wrapper.IO_data impor...
import inspect import json import os import warnings from functools import lru_cache, partial from pathlib import Path from typing import ( Callable, cast, Deque, Dict, List, Optional, overload, Tuple, Union, ) import attr import yaml from aiohttp import hdrs, web from aiohttp_middl...
# # Copyright (c), 2018-2020, SISSA (International School for Advanced Studies). # All rights reserved. # This file is distributed under the terms of the MIT License. # See the file 'LICENSE' in the root directory of the present # distribution, or http://opensource.org/licenses/MIT. # # @author <NAME> <<EMAIL>> # impor...
# Code written by <NAME>. # www.sergioserranohernandez.net import tkinter as tk from tkinter import ttk from tkinter import * from tkinter import messagebox import decimal import sys import math #Global variables decimal.getcontext().prec=12 operativeSystem=sys.platform class SIH(tk.Tk): def __init__(self, *ar...
import tensorflow as tf from tensorflow.python.ops.rnn_cell import DropoutWrapper from tensorflow.contrib import seq2seq from tensorflow.contrib import layers from tensorflow.python.util import nest from tensorflow.python.layers.core import Dense from attention_decoder import attention_decoder import data_util from qrn...
import importlib import html import time import re from sys import argv from typing import Optional from Gojo import (ALLOW_EXCL, CERT_PATH, DONATION_LINK, LOGGER, OWNER_ID, PORT, SUPPORT_CHAT, TOKEN, URL, WEBHOOK, dispatcher, StartTime, telethn, updater, pgram) fro...
# Modified from code distributed with Python 2.6 # NFS RPC client -- RFC 1094 from . import rpc from .rpc import UDPClient, TCPClient from .mountclient import FHSIZE, Mount3Packer, Mount3Unpacker import errno import os NFS_PROGRAM = 100003 NFS_VERSION = 3 class NFSError(Exception): # enum stat NFS3_OK ...
""" Copyright (c) 2021 Cisco and/or its affiliates. This software is licensed to you under the terms of the Cisco Sample Code License, Version 1.1 (the "License"). You may obtain a copy of the License at https://developer.cisco.com/docs/licenses All use of the material herein must be in accordance with the t...
""" Created by Philippenko, 6 January 2020. This class defines the global update methods which will be used during the gradient descent. It aims to implement the update scheme used on the central server. To add a new update scheme, just extend the abstract class AbstractGradientUpdate which contains methods: 1. to co...
# -*- coding: utf-8 -*- """ File: M2KScopePlotUI.py Text-based User Interface Module for M2KScopePlot v 1.01, August 13, 2019 first version v 1.02, September 25, 2019 m2kintro() and version_test() updated for Scopy version 1.1.0 v 1.10, October 12, 2019 Add version parameter passing to m2kintro() t...
# Copyright 2021 Google LLC. 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 by applicable law or a...
#!/usr/bin/env python # encoding: utf-8 """ This module of native functions is implemented for compatability with 010 editor functions. Some of these functions are nops, some are fully implemented. """ import sys from pfp.native import native, predefine import pfp.fields import pfp.errors as errors # http://www.swe...
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import sys, os from tkinter.scrolledtext import ScrolledText import tkinter as tk from tkinter import ttk import cv2 import json from PIL import Image, ImageTk import time import datetime import McuCommand import PythonCommand import UnitCommand import Send...
#!/usr/bin/python3 """ Copyright: University of Queensland, 2019 Contributors: <NAME> - (The University of Queensland, 2019) """ import os import importlib import json import shutil import threading from inspect import signature from multiprocessing.dummy import Pool from typing import Callable, Dict, ...
# ================================================================================= # This is an example TUI app that uses ALL of the extended widgets. # ================================================================================= from __future__ import annotations import os import sys import rich.repr import io...
import os import yaml import logging import datetime import platform import shutil import simplekml import rasterio.plot import rasterio as rio import numpy as np import matplotlib.pyplot as plt from shapely.geometry import Point from rasterio.warp import calculate_default_transform, reproject, Resampling from senti...
import math import os import cv2 as cv import numpy as np from skimage.exposure import rescale_intensity from skimage.filters import threshold_yen from Modelx import Model # ***************************************************************************** def onMouse(event, x, y, flags, param): if even...
# Generic functions that are used in the experiments notebooks # Useful to put them in here so that they can be shared across notebooks # and can be tested (see tests/experiements/opencl_runner_tests.py) import os import numpy as np import multiprocessing import itertools import yaml import time import tqdm import pand...
# Copyright 2021 Canonical Ltd. # See LICENSE file for licensing details. """This library facilitates the integration of the prometheus_remote_write interface. Charms that need to push data to a charm exposing the Prometheus remote_write API, should use the `PrometheusRemoteWriteConsumer`. Charms that operate software...
#!/usr/bin/env python """ This is the main program for nemoh solver Changes in version 1.1: Added possibility to run the code with custom settings Changes in version 1.2 (Drift forces and QTF Implementation of Nemoh) Added parameter to store drift forces and yaw moment computed from ...
""" <plugin key="HeishamonMQTT" name="Heishamon MQTT" version="0.2.1"> <description> Simple plugin to manage Heishamon through MQTT <br/> </description> <params> <param field="Address" label="MQTT Server address" width="300px" required="true" default="127.0.0.1"/> <param field="P...
# -*- coding: utf-8 -*- from CuAsm.CubinFile import CubinFile from CuAsm.CuInsAssemblerRepos import CuInsAssemblerRepos from CuAsm.CuInsFeeder import CuInsFeeder from CuAsm.CuAsmParser import CuAsmParser from CuAsm.CuAsmLogger import CuAsmLogger import os import re import subprocess import math # baseli...
import copy import logging import os from threading import Thread, RLock, Event import threading import time import thread from api.caching.temporal_analytics import getTimeIdFromTimestamp, getTemporalInfluenceCollection from api.config import Configuration from api.core.data_structures.queues import QueueEx, QueueNot...
#!/usr/bin/env python """ base_filters.py - microscopy images class """ import sys import pims from tqdm import tnrange import time import numpy as np import matplotlib.pyplot as plt from numba import njit from functools import wraps from .base import ImageBase from .base import _rescale_to_dtype __author__ = '<N...
""" triggers, callables to bind to a step in a MergeEngine to affect changes """ __all__ = ( "base", "UNINSTALLING_MODES", "INSTALLING_MODES", "BaseSystemUnmergeProtection", "BinaryDebug", "BlockFileType", "CommonDirectoryModes", "PruneFiles", "SavePkg", "detect_world_writable",...
""" Therm Calculations """ import sys import os import math import multiprocessing import random import automol.inchi import automol.geom from mechanalyzer.inf import rxn as rinfo from mechroutines.pf.models.ene import read_energy from mechroutines.pf.thermo import heatform from phydat import phycon from mechlib imp...
import pathlib from collections import defaultdict from collections import namedtuple from string import punctuation __all__ = ['travelling'] def _walk(path: str, search_name: str = None, absolute_key: bool = False, absolute_value: bool = True, output_dict: bool = True): """ Function for walking to...
import logging import numpy as np from scipy.sparse.linalg import lsqr from pylops.signalprocessing import Convolve1D from pylops.utils.signalprocessing import convmtx from pylops.utils import dottest as Dottest from pylops import MatrixMult, FirstDerivative, Diagonal, Identity, VStack,\ SecondDerivative, Laplacia...
import os import uuid import time import numpy as np from tqdm import tqdm #from data_loader import get_train_valid_loader #from utils import find_key, sample_from, str2act import torch.optim as optim import torch.optim.lr_scheduler as lr_scheduler from sklearn.metrics import roc_auc_score, precision_recall_curve, au...
import lasagne import utils from lasagne.layers.dnn import Conv2DDNNLayer as ConvLayer from lasagne.layers.dnn import MaxPool2DDNNLayer as PoolLayerDNN from lasagne.layers.dnn import Pool2DDNNLayer as Pool2DLayer from lasagne.layers import MaxPool2DLayer as PoolLayer import cPickle as pickle import numpy as np clas...
# MIT License # # Copyright (c) 2022 <NAME> [srccircumflex] # # 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, modi...
# (C) 2020, Schlumberger. Refer to LICENSE import json import numpy import h5py import copy import re #...pandas has good support for CSV files import pandas from datetime import datetime as dtime try: from . import wistmlfbe except: import distpy.io_help.witsmlfbe as witsmlfbe import os import itertools impo...
# Aurexine 2020 ## IMPORTS import os import shutil import json from datetime import datetime from sqlitedict import SqliteDict from discord import Guild, Message, User, Member, Embed, Game, TextChannel from discord.ext import commands from discord.ext.commands import Context from helpers import * VERSION = "2.2.1b1"...
# //////////////////////////////////////////////////////////////////////////////////////////////////// # // # // Common Methods # // - Things that are used by multiple Operators/Panels/whatever # // # //////////////////////////////////////////////////////////////////////////////////////////////////// import sys,...
from pyraf import iraf import os import shutil import numpy as np ######################################################################################################### ########################################### IRAF modules ################################################ #########################################...
import tensorflow as tf import numpy as np import math from copy import copy from collections import Iterable from functools import reduce epsilon = 1e-6 epsilon2 = 1e-160 def is_tf_data(a): return isinstance(a, (tf.Tensor, tf.Variable)) def get_shape(a): def int_r(v): if v is None: re...
""" :module: pynetworking.Communication_general :synopsis: Important functions, classes for communication. Main module of pynetworking. :author: <NAME> public classes ---------------- Communicator, Connector, SocketAddress, Functions, to_server_id .. autoclass:: Communicator :members: :undoc-members: :pri...
""" Utilities for working with SED documents :Author: <NAME> <<EMAIL>> :Date: 2020-12-06 :Copyright: 2020, Center for Reproducible Biomedical Modeling :License: MIT """ from ..log.data_model import Status from ..report.data_model import VariableResults, DataGeneratorResults # noqa: F401 from ..utils.core import pad_...
#!/usr/bin/env python3 # Copyright (c) 2021, NVIDIA CORPORATION. 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) 2015-2019 <NAME> # SPDX-License-Identifier: Apache-2.0 import dolfin from ocellaris.utils import ( verify_key, timeit, linear_solver_from_input, create_vector_functions, shift_fields, velocity_change, matmul, split_form_into_matrix, invert_block_diagonal_matrix, ) fr...
from telegram import (KeyboardButton, KeyboardButtonPollType, ParseMode, ReplyKeyboardMarkup, ReplyKeyboardRemove) from telegram.ext import Updater, CommandHandler, MessageHandler, Filters, ConversationHandler import logging import os import sys from threading import Thread from XYGameHandler impo...
""" The `plotting` script contains code to plot the results `janet` collects. """ import numpy as np import matplotlib.pyplot as plt from matplotlib.gridspec import GridSpec import seaborn as sns import lightkurve as lk import seaborn as sns sns.set_palette('colorblind') sns.set_context('poster') from .utils import _...
import seaborn as sns import pandas as pd import numpy as np import matplotlib.pyplot as plt import glob import json import collections TIMEFRAMES = [ "2017-06-12_2017-07-09_organic", "2017-07-10_2017-08-06_organic", "2017-08-07_2017-09-03_organic", "2017-12-03_2017-12-30_organic", "2018-01-01_2018...