content
stringlengths
5
1.05M
/usr/lib/python2.6/ntpath.py
/home/runner/.cache/pip/pool/ee/ee/15/e17956f373f96120094b67fdd98505f2fb16b61b224e7980b213892ff3
import numpy as np __all__ = ['physical_to_transformed', 'transformed_to_physical'] _eps = 1e-8 def logit(x): """ Logit function Parameters ---------- x : float Any array Returns ------- logit : float Logit transform of the input """ with np.errstate(divi...
import numpy n, m = input().split() arr = numpy.array([list(map(int, input().split())) for _ in range(int(n))]) print(numpy.prod(numpy.sum(arr, axis = 0)))
from .HelperProcess import HelperProcess import os, pefile, platform, win32api class ModuleHeader(object): ''' Provides functionality for retrieving information about PE modules ''' def __init__(self, module): ''' Parses the header for the specified module ''' self._filename = module self._pe = pefile....
# # Copyright (c) 2019 by Delphix. All rights reserved. # import json import logging import os from collections import defaultdict, namedtuple import yaml from dlpx.virtualization._internal import exceptions from dlpx.virtualization._internal.codegen import CODEGEN_PACKAGE from flake8.api import legacy as flake8 from...
import os model_savepath = 'checkpoints' outputs_path = 'outputs' power = 0.9 loss_cls = 1 loss_masks = 0.5 loss_bound = 0.001 cam_w = 100 cam_sigma = 0.4 cam_loss_sigma = 0.75 lse_r = 6. cam_thresh = 0.999 thresh_TIOU = [0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7] thresh_TIOR = [0.1, 0.25, 0.5, 0.75, 0.9] palette = [[0, ...
from django.urls import path from wagtail_tag_manager.views import ConfigView, ManageView, VariableView from wagtail_tag_manager.endpoints import lazy_endpoint app_name = "wtm" urlpatterns = [ path("manage/", ManageView.as_view(), name="manage"), path("config/", ConfigView.as_view(), name="config"), path...
from __future__ import print_function #------------- VERY IMPORTANT ------------ import os,sys tmp = sys.stdout sys.stdout = sys.stderr import numpy.f2py sys.stdout = tmp print (os.path.dirname(os.path.abspath(numpy.f2py.__file__)))
"""PyTorch-backed modules and algorithms.""" # yapf: disable from garage.torch._functions import (compute_advantages, dict_np_to_torch, filter_valids, flatten_batch, flatten_to_single_vector, global_device, No...
""" Contains classes for windows using pyglet or OpenCV; functions initialize window, render texture to window upon calls to a draw command, and handle implementation-specific parsing of user input (just keyboard for now) """ import numpy as np import ctypes import pyglet import pyglet.window.key as key import cv2 ...
import numpy as np def to_bytes(x, dtype): iinfo = np.iinfo(dtype) x = np.array(x, dtype=dtype) assert np.all(x <= iinfo.max), f'Overflow {x} {iinfo}' assert np.all(iinfo.min <= x), f'Underflow {x} {iinfo}' return x.tobytes() def scalar_to_bytes(x, dtype): return to_bytes([x], dtype) def r...
"""Python package to parse and interpret HTCondor classads""" from ._base_expression import Expression, PrimitiveExpression from ._functions import ( # noqa: F401 eval, unparse, ifThenElse, isUndefined, isError, isString, isInteger, isReal, isBoolean, int, real, string, ...
from typing import cast, List, Optional, Tuple, Union import torch import torch.nn as nn import kornia from kornia.augmentation.base import _AugmentationBase, MixAugmentationBase, TensorWithTransformMat from kornia.augmentation.container.base import SequentialBase from .image import ImageSequential, ParamItem __all...
import json from unittest import TestCase from unittest.mock import MagicMock, patch from parameterized import parameterized from _modules import cri from tests.unit import mixins from tests.unit import utils IMAGES_LIST = [ { "id": "sha256:da86e6ba6ca197bf6bc5e9d900febd906b133eaa4750e6bed647b0fbe50ed4...
n = int(input('Escolha um número:')) if n // 2 == 0: print('O número {} é par.'.format(n)) else: print('O númro {} é impar.'.format(n))
""" References: 1. https://github.com/HobbitLong/SupContrast/blob/master/util.py """ from __future__ import print_function import math import numpy as np import torch import torch.optim as optim def aug_no_bbox_mc(inputs, input_batch2, targets, explainer, model, num_classes, p, tau, backup, opt): """ inpu...
# -*- coding: utf-8 -*- import sqlite3 import pika import json import sys from pika import PlainCredentials class Datenbank: def __init__(self, datenbankname): self.datenbank = sqlite3.connect(datenbankname) self.datenbank.text_factory = str self.datenbank.execute("CREATE TABLE IF NOT EXIS...
#coding:utf-8 import requests import json from operation_json import OperetionJson class OperationHeader: def __init__(self,response): self.response = json.loads(response) def get_response_url(self): ''' 获取登录返回的token的url ''' url = self.response['data']['url'][0] return url def get_cookie(self): ''...
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this file, # You can obtain one at http://mozilla.org/MPL/2.0/. from auto_nag import utils from auto_nag.bzcleaner import BzCleaner class DupemeWhiteboardKeyword(BzCleaner): def ...
import requests import os def relation(func, args): address = os.environ['BIGBRO'] r = requests.post(address, json={'func': func, 'param':args}) return r.json()
from typing import Any, Callable, Dict, List, Optional from .meross_device import MerossDevice, build_payload from .const import *
#! /usr/bin/env python # -*- coding: utf-8 -*- # vim:fenc=utf-8 # # Copyright © Her Majesty the Queen in Right of Canada, as represented # by the Minister of Statistics Canada, 2019. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # ...
#!/usr/bin/python import random, sys, string import argparse class shuf: def __init__(self, filename): if filename=="-" or filename=="": self.lines = "" else: f = open(filename, 'r') self.lines = f.readlines() f.close() def shuffling(self): ...
#archivo que perminte realizar un traductor #funcion recibe una lista con palabras en español, y otra con palabras en ingles #de a cuerdo a su posicion vamos a saber cual es la traduccion def traductor (archivo_original,archivo_traducido,lista_idioma1,lista_idioma2): original =open("archivo_original.txt") tra...
import datetime import logging import time import json import asyncio import aiocoap.resource as resource import aiocoap from colorlog import ColoredFormatter # version 2.6 from subprocess import check_output def print(string:str): # true printf() debugging logging.getLogger(__name__).debug(msg=string) class ...
# -*- coding: utf-8 -*- from pyleecan.Classes.MeshVTK import MeshVTK def get_mesh_field_pv( self, *args, label=None, index=None, indices=None, is_surf=False, is_radial=False, is_center=False, is_normal=False, field_name=None, itimefreq=0, ): """Return the mesh and field...
# Generated by Django 2.1.5 on 2019-05-14 04:04 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('applications', '0011_remove_repository_auth_pwd'), ] operations = [ migrations.AlterField( model_name='repository', ...
#!/usr/bin/python # # ============================================================================ # # 10.09.17 <-- Date of Last Modification. # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ # ---------------------------------------------------------------------------- # # EXECUTABLE MODULE FOR RVAPI HELPER AP...
#!/usr/bin/python3 from flask import Flask, render_template, send_from_directory, request from flask_socketio import SocketIO, join_room ### We need random number generator to create unique hashes for the clients. import random ### This will be the Unique ID of this instance of the server server_uid = hex(random.get...
from cnlp.data import Vocabulary from cnlp.data.tokenizers import dag from cnlp.data.word_dict import WordDict from cnlp.data.tokenizers import mechanical class Tokenizer(object): def __init__(self) -> None: self.wd = WordDict() self.common_word_dict_list = self.wd.get_common_word_dict_list() ...
from server import WebTestHttpd, WebTestServer, Router from request import Request from response import Response
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ jpredapi Python library ~~~~~~~~~~~~~~~~~~~~~~~ The JPred API allows users to submit jobs from the command-line. Usage example for command-line: .. code:: bash python3 -m jpredapi --help python3 -m jpredapi --version python3 -m jpredapi submit...
""" All blueprints of routes which need to be accessible must be here. They will be registered when the application is started. Includes a controller for a basic index page. """ from typing import Tuple from flask import Blueprint, Response from app.controllers.generic import generic_bp from app.utilities.extensions...
from django.conf import settings from django.conf.urls.static import static from django.contrib import admin from django.urls import include, path from django.views import defaults as default_views from django.views.generic import TemplateView from blog_tutorial.main.views import ( BlogListView, BlogDetailView...
from .Order import Order promotions = [] def regist_promo(func): promotions.append(func) return func
import msgpack import msgpack_numpy msgpack_numpy.patch() __all__ = ['msgpack']
from django.conf import settings from django.utils.translation import ugettext_lazy as _ COMMENT_PUBLISHED_BY_DEFAULT = True SPAM_PROTECTION = {} # {'default': {'BACKEND': 'djangocms_comments.spam.Akismet', 'TOKEN': '...'}} MIN_LENGTH_COMMENT_BODY = 50 MAX_LENGTH_COMMENT_BODY = 12000 MAX_BREAKLINES_COMMENT_BODY = 12...
class X: def __init__(self, foo=0): self.foo = foo
# footer date aligned with git commit date # json files readable # rendered_template aligned with template # club.json updated # comps.json updated # votes distinct, description < character limit, no votes past deadline
# -*- coding: utf-8 -*- # # This file is a part of oiseau. # # Copyright (c) 2014, Berk Özbalcı # All rights reserved. # # 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 t...
import argparse import os import subprocess import sys def run_platformio(example_path, boards): return subprocess.call( ["platformio", "ci", example_path] + ["--board=" + b for b in boards] ) def collect_examples(libs_dir): examples = [] for lib in os.listdir(libs_dir): lib_dir = os...
# Generated by Django 3.1.1 on 2020-10-13 14:07 from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('maintenancemanagement', '0013_auto_20201008_1032'), ] operations = [ migrations.AlterField( mod...
from typing import Optional import cv2 import numpy as np from openni import _openni2 as c_api from openni import openni2 __all__ = ["AstraCamera", "PROPERTIES"] PROPERTIES = {"width": 640, "height": 480, "fps": 30} class AstraCamera: def __init__(self): self.dev: Optional[openni2.Device] = None ...
import random import factory from factory import fuzzy from .models import EquipmentType, Equipment class EquipmentTypeFactory(factory.django.DjangoModelFactory): class Meta: model = EquipmentType name = fuzzy.FuzzyText(length=15) rate = 1.0 class EquipmentFactory(factory.django.DjangoModelFa...
# -*- coding: utf-8 -*- import numpy as np class Material(object): def __init__(self,name,**props): """ Create a material class Properties ---------- E : int,float Young modulus nu : int,float Poisson's ratio dens...
from .token import * from .user import * from .misc import * from .tasks import * from .filtration import * from .server import * from .console import * from .plot import * from .plot_queue import * from .directory import * from .transfer import * from .directories import *
#!/usr/bin/env python3 """Common parts of TRG and HOTRG algorithms for the Ising model on the square lattice""" import numpy as np import scipy.linalg as spl def svd(a, axes0, axes1, rank=None): """Singular value decomposition for tensor. Args: a: A tensor to be decomposed. axes0: Axes which...
# User input num1=float(input("Enter the length of the rectangle in meters: ")) num2=float(input("Enter the breadth of the rectangle in meters: ")) # Program operation area=num1*num2 # Computer output print(str(area)+" m^2")
import json from dataclasses import dataclass from pathlib import Path from typing import Optional import joblib import librosa import numpy as np from joblib.hashing import Hasher from omegaconf import MISSING, OmegaConf from vad.acoustics.silence_remover import SilenceRemover, SilenceRemoverConfig from vad.acoustic...
import json import requests # Data interface{} `json:"data"` # DueTime string `json:"dueTime"` # Period string `json:"period"` # TTL string `json:"ttl"` # # actors/{actorType}/{actorId}/reminders/{name} # requests.delete('http://localhost:3500/v1.0/actors/actorType-a/actorId-a/remi...
#!/usr/bin/env python import os from setuptools import setup HERE = os.path.abspath(os.path.dirname(__file__)) def read_file(filename): return open(os.path.join(HERE, filename)).read() if __name__ == '__main__': setup( name='bag8', version=read_file('VERSION').strip(), description...
""" Django settings for server project. For more information on this file, see https://docs.djangoproject.com/en/1.8/topics/settings/ For the full list of settings and their values, see https://docs.djangoproject.com/en/1.8/ref/settings/ NOTE: __generator-usf-gift_ may automatically modify this file. """ # Build pa...
#!/usr/bin/env python # -*- coding: utf-8 -*- """The setup script.""" from setuptools import find_packages, setup with open('README.md') as readme_file: readme = readme_file.read() requirements = [ 'graphene_django>=2.2.0<=2.4.0', 'graphene-file-upload==1.2.2', 'sentry-sdk>=0.5.2<=0.10.1', ] setup_...
import json from django import forms from django.conf import settings from django.contrib.admin.widgets import SELECT2_TRANSLATIONS from django.utils.translation import get_language, gettext as _ from adminfilters.mixin import MediaDefinitionFilter, SmartFieldListFilter class ValueFilter(MediaDefinitionFilter, Sma...
import numpy as np import pandas as pd import pytest from dku_timeseries import WindowAggregatorParams, WindowAggregator @pytest.fixture def monthly_df(): co2 = [4, 9, 4, 2, 5, 1] time_index = pd.date_range("1-1-2015", periods=6, freq="M") df = pd.DataFrame.from_dict( {"value1": co2, "value2": co...
# Generated by Django 3.2.13 on 2022-05-02 18:32 from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('api', '0053_run_manual'), ] operations = [ migrations.AddField( model_name='run', name='timestep', fiel...
# ClearML - Example of manual model configuration import json import yaml from clearml import Task, OutputModel # Connecting ClearML with the current process, task = Task.init(project_name='examples', task_name='Model configuration example') # Connect a local configuration file in json format config_file_json = 'dat...
"""Line module.""" from . import qline class Line(qline.QLine): """Line class.""" pass
import cv2 import pyautogui from os import path from time import time, sleep from typeguard import typechecked from defined import Coord, Optional from data import uData from adb import adb @typechecked class Icon: def __init__(self, fname: str, confidence: float): self.name = fname[0:-4] self.pat...
# 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 # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
import argparse import os parser = argparse.ArgumentParser() parser.add_argument('--path') parser.add_argument('--command') parser.add_argument('--script') args = parser.parse_args() if args.path: file_ = open('path', 'w') file_.write(args.path) file_.close() if args.command: file_ = open('path', 'r') kwm = fil...
from passlib.hash import pbkdf2_sha256 import calendar import time import jwt import os # Need this module to be importable without the whole of meerkat_auth config # Directly load secret settings file from which to import required variables # File must include JWT_COOKIE_NAME, JWT_ALGORITHM and JWT_PUBLIC_KEY variabl...
# SPDX-License-Identifier: MIT # # The MIT License (MIT) # # Copyright (c) <2021> Hottinger Brüel & Kjaer GmbH, Im Tiefen See 45, 64293 Darmstadt, Germany # # 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...
# Generated by Django 3.0.4 on 2020-03-28 18:59 from django.db import migrations import django_resized.forms class Migration(migrations.Migration): dependencies = [ ('team', '0003_auto_20200328_1123'), ] operations = [ migrations.AlterField( model_name='profile', ...
import pandas as pd import numpy as np import sklearn as sk from features import FeatureFactory from random import choice, random import time ff = FeatureFactory() currencies = [ 'AUDUSD', 'EURGBP', 'EURJPY', 'EURUSD', 'GBPJPY', 'GBPUSD', 'NZDUSD', 'USDCAD', 'USDCHF', 'USDJPY'...
# GENERATED BY KOMAND SDK - DO NOT EDIT import insightconnect_plugin_runtime import json class Input: CERTIFICATE = "certificate" CERTIFICATE_PASSPHRASE = "certificate_passphrase" DOMAIN = "domain" HOST_INPUT_PORT = "host_input_port" PORT = "port" SERVER = "server" SSL_VERIFY = "ssl_verify...
import sys, getopt # pull options (and params) -m and -n from command line arguments # where # -m is followed by a message and # -n is the number of time to repeat it # and print the duplicated message to the console: # python hello.py -m 'hi' -n 3 # # --> hihihi def dupPrint(argv): opts, args = getopt.ge...
from __future__ import print_function from flask import Flask from os import environ from flask import request, render_template, send_file import requests from test import MailMerge import time from bs4 import BeautifulSoup as soup from datetime import date import os import datetime import calendar import json from PyD...
# -*- coding: utf-8 -*- # Copyright (c) 2012-2014, Philip Xu <pyx@xrefactor.com> # License: BSD New, see LICENSE for details. """smonad.types.list - The List Monad.""" from collections import Sequence from itertools import chain from . import LazySequence, MonadPlus from ..mixins import Ord class List(MonadPlus, Or...
"""String constants. Once defined, it becomes immutable. """ class _const: class ConstError(TypeError): pass def __setattr__(self, name, value): if name in self.__dict__: raise self.ConstError self.__dict__[name] = value def __delattr__(self, name): if name in self.__dict__: raise...
#!/usr/bin/env python ''' COPYRIGHT (C) 2016 changjin.hong@gmail.com author: changjin.hong@gmail.com ''' INH_UNKNOWN,INH_RECESSIVE,INH_DOMINANT = range(-1,2) inheritStr = ['unknown','recessive','dominant'] ZYG_HET,ZYG_HOM,COMP_HET = range(3)
import asyncio import functools import logging from .handler import Handler from .middlewares import MiddlewareManager from .storage import DisabledStorage from .filters import FiltersFactory from ..types import Message, MessageType, VKException, Event from ..utils.mixins import ContextInstanceMixin, DataMixin from .....
def flatten_resource(resources): flat_result = {'uuid': [], 'name': [], 'type': []} for resource in resources: flat_result['uuid'].append(resource['uuid']) flat_result['name'].append(resource['name']) flat_result['type'].append(resource['type']) return flat_result def parse_log_m...
"""Take screenshots Usage: If there is more than one ADB on your system, you may run into problems. Use the ADB that is found in the SDK directory: sdk/platform-tools/adb connect 192.168.0.188 Go to the following directory and run monkeyrunner with this script: sdk/tools/bin/monkeyrunner screenshot.py No...
from Greet import show show()
from hoomd import * from hoomd import md import numpy as np import math import BlockAverage import unittest # Compute the WCA dimer equation of state context.initialize() # identify the state point by a user parameter p = int(option.get_user()[0]) # rho d^3 # reference values from MC simulation in NPT ensemble ...
class KthLargest(object): def __init__(self, k, nums): self.k = k self.data = nums if not self.data: self.heap = [] return self.data.sort() self.heap = self.data[-k:] def add(self, val): self.data.append(val) if len(self.heap) < se...
import torch import torch.nn as nn import torch.nn.functional as F import collections from lib.Utility import FeatureOperations as FO # TODO: bias = False class WRNBasicBlock(nn.Module): def __init__(self, in_planes, out_planes, stride, dropout=0.0, batchnorm=1e-3): super(WRNBasicBlock, self).__init__() ...
// https://www.hackerrank.com/challenges/minimum-distances/problem #!/bin/python3 import sys # Input array size n = int(input().strip()) # Input array A = [int(A_temp) for A_temp in input().strip().split(' ')] # Create empty dictionary to keep track of element value and its last know position in the array d={} # ...
#1 # Sets a default curve (secp256k1) import random, io from pprint import pprint from umbral import pre, keys, config, signing from PIL import Image config.set_default_curve() def make_rekey () : alices_private_key = keys.UmbralPrivateKey.gen_key() alices_public_key = alices_private_key.get_pubkey() ali...
import argparse import json import os import shutil import subprocess import sys import numpy as np import torch import torch.onnx import torch.nn as nn import torch.nn.functional as F import torchvision.models as models from webdnn.tensor_export import serialize_tensors sys.path.append(os.path.join(os.path.dirname(os...
# -*- coding: utf-8 -*- """ Converts native results into STIX observability objects. See: https://docs.oasis-open.org/cti/stix/v2.0/stix-v2.0-part1-stix-core.html """ import json from stix_shifter_utils.stix_translation.src.json_to_stix import json_to_stix_translator from stix_shifter_utils.stix_translation.src.json_...
#Rada eletrônico #Escreva um programa que leia a velocidade de um carro. #Se ele ultrapassar 80Km/l, mostre uma mensagem dizendo que ele foi multato vai custar R$7,00 por cada Km acima do limite. velocidade=float(input('\033[1;36mQual é a velocidade atual do carro?\033[m')) if velocidade>80: print('\033[1;31mMULTAD...
from tkinter import messagebox class TradeBookingsPresenter(object): def __init__(self, view, db): self.view = view self._db = db def set_transaction_status(self, id, toggle): toggle_status = self._db.cancelled_toggle(id=id, toggle=toggle) messagebox.showinfo(message=toggle_st...
import asyncio import time import discord from decorators import mrvn_module from modular import Module, LanguageUtils @mrvn_module("BotStatus", "Установка статуса бота, отображение аптайма в нём.") class BotStatusModule(Module): async def status_update_task(self): custom_text = False while Tru...
import sys from collections import Counter print("{") list = [word.strip() for word in sys.stdin] for word in list: print("\""+word+"\",") print("}") c = Counter((len(word) for word in list)) base = 36 strLen = 13 totalNumberOfHashStrings = base ** strLen total = 0 for wordLen in c: if wordLen == 0 : continue if...
class User(): def __init__(self, user): self.id = user.id self.name = user.name self.dead = False self.vote_count = 0 self.discord_user = user def playerName(self, user): return user.name def playerId(self, _user): return self.id d...
from Utils import arraycopy class Vector: def __init__(self, arr): self.length = len(arr) self._arr = arraycopy(arr) @property def arr(self): return self._arr @arr.setter def arr(self, a): if len(a) != len(self._arr): raise ValueError("Given vec...
import sys, argparse from PyQt5 import QtWidgets import os from diffted import main def entry_point(): parser = argparse.ArgumentParser() parser.add_argument("infile",nargs="?") parser.add_argument("-s","--stylesheet",help="css stylesheet") parser.add_argument("-g","--gitmod",help="git modifier to diff...
from telegram.ext import Dispatcher,CommandHandler import random def history(update, context): update.message.reply_text("欢迎来到历史作业辅导!准备开始窜改历史了吗?看看规则吧!\n1. 此程序为历史考试与历史作业而设计,不是让你们玩的啊!\n2. 看看选项吧!\n输入 /CanadaHistoryChinese 来查看加拿大历史简介(中文版)\n输入 /ChinaHistoryChinese 来查看中国历史简介(中文版) \n------------------------\n祝你们做 历史作业/历史...
import os class FileTree: ## static fileds object_paths = [] scene_paths = [] def __init__(self, path): self.path = path self.dirs = [] self.files = [] for p in os.listdir(self.path): if not os.path.isdir(os.path.join(self.path, p)): if p....
# -*- coding: utf-8 -*- # Generated by Django 1.10.3 on 2016-11-12 11:44 from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Addres...
from __future__ import annotations import re from typing import IO __all__ = ['sniff_audio_file'] class _BitPaddedMixin(object): def as_str(self, width=4, minwidth=4): return self.to_str(self, self.bits, self.bigendian, width, minwidth) # type: ignore @staticmethod def to_str(value, bits=7, bi...
import numpy as np from scipy.interpolate import Rbf import matplotlib.pyplot as plt from matplotlib import cm from math import sin, cos, atan, atan2, asin, radians, degrees, sqrt, pow, acos, fabs, tan, isnan import numpy as np import geopandas as gpd from geopandas import GeoDataFrame import pandas as pd import os fro...
#!/usr/bin/env python """Extract final configurations for restarting REMC runs.""" import argparse import pdb import sys from origamipy import files def main(): args = parse_args() swap_inp_filename = '{}.swp'.format(args.inp_filebase) swap_file = files.UnparsedSingleLineStepInpFile(swap_inp_filename, ...
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Thu Jan 18 13:12:50 2018 @author: prmiles """ # import required packages import numpy as np class ErrorVarianceEstimator: ''' Estimate observation errors. Attributes: * :meth:`~update_error_variance` * :meth:`~gammar` ...
from .peer import ( pypeer_eye_masking, pypeer_zscore, pypeer_ravel_data, motion_scrub, prep_for_pypeer ) __all__ = [ 'pypeer_eye_masking', 'pypeer_zscore', 'pypeer_ravel_data', 'motion_scrub', 'prep_for_pypeer' ]
import logging import requests log = logging.getLogger(__name__) class PinkopyError(Exception): """pinkopy error. Error to be raised when an unexpected condition arises in pinkopy. """ pass def raise_requests_error(status_code, msg): """Raise a requests error. Commvault is not smart enoug...
""" :py:mod:`riboviz.tools.prep_riboviz` regression test suite. The regression test suite runs :py:mod:`riboviz.tools.prep_riboviz` or :py:const:`riboviz.test.NEXTFLOW_WORKFLOW` (via Nextflow) using a given configuration file, then compares the results to a directory of pre-calculated results, specified by the user. ...