id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/ChainConsumer-0.34.0.tar.gz/ChainConsumer-0.34.0/chainconsumer/comparisons.py
from scipy.interpolate import griddata import numpy as np import logging from .helpers import get_latex_table_frame class Comparison(object): def __init__(self, parent): self.parent = parent self._logger = logging.getLogger("chainconsumer") def dic(self): r""" Returns the corrected D...
PypiClean
/MCCNN-1.2.0.tar.gz/MCCNN-1.2.0/docs/source/getting_started/train_mc_cnn.rst
Train MCCNN neural network ========================== Dataset preparation ################### The first step is to prepare the database. `mc_cnn/preprocessing` folder contains files to preprocess and create hdf5 datasets for [Middlebury]_ and [DFC]_. During the preprocessing cross-checking is computed to locate occl...
PypiClean
/Flask_IPFilter-0.0.5-py3-none-any.whl/flask_ipfilter/ipfilter.py
from flask import request from werkzeug.exceptions import Forbidden class IPFilter: """An IP address filter for Flask applications.""" def __init__(self, flask_app=None, ruleset=None): """ Initialize the IP filter. :parameter app: The Flask application may or may not exist when ...
PypiClean
/LongTermBiosignals-1.0.0.tar.gz/LongTermBiosignals-1.0.0/src/biosignals/sources/HSM.py
# =================================== # IT - LongTermBiosignals # Package: biosignals # Module: HSM # Description: Class HSM, a type of BiosignalSource, with static procedures to read and write datafiles from # Hospital de Santa Maria, Portugal. # Contributors: João Saraiva, Mariana Abreu # Created: 25/04/2022 # La...
PypiClean
/DLPipeline-0.1.20190311201423-py3-none-any.whl/dlpipeline/augmentor/alb_augmentor.py
from typing import Iterable import albumentations as A import matplotlib.pyplot as plt import numpy as np from dlpipeline.augmentor.dlp_augmentor import DLPAugmentor from dlpipeline.visualiser.visualisation.bbox import augment_and_show, decode_image, visualise __author__ = 'cnheider' class AlbumentationsAugmentor...
PypiClean
/Flask_Mysql_Html-1.0.2.tar.gz/Flask_Mysql_Html-1.0.2/flask_mysql_html/__init__.py
import logging import os from collections import OrderedDict import pymysql from flask import render_template, Blueprint class FlaskMysqlHTML(object): def __init__(self, app, blueprint_api="db", url_prefix="/db", index="db"): self.__app = app self.__path = os.path.dirname(__file__) self...
PypiClean
/FF-Flask-Security-3.1.0.tar.gz/FF-Flask-Security-3.1.0/ff_flask_security/decorators.py
from collections import namedtuple from functools import wraps from flask import Response, _request_ctx_stack, abort, current_app, redirect, \ request, url_for from flask_login import current_user, login_required # pragma: no flakes from flask_principal import Identity, Permission, RoleNeed, identity_changed from...
PypiClean
/BuzzAlgoTrade-0.0.2.tar.gz/BuzzAlgoTrade-0.0.2/pyalgotrade/technical/stats.py
from pyalgotrade import technical class StdDevEventWindow(technical.EventWindow): def __init__(self, period, ddof): assert(period > 0) super(StdDevEventWindow, self).__init__(period) self.__ddof = ddof def getValue(self): ret = None if self.windowFull(): re...
PypiClean
/Flask-CloudFlare-0.8.tar.gz/Flask-CloudFlare-0.8/README.md
Flask-CloudFlare ============ Provides a Flask Extension to interact with the CloudFlare Workers KV service. In the future it will support more API endpoints with CloudFlare. This project is not affiliated with CloudFlare in any way and CloudFlare and associated copyrights belong to CloudFlare. Usage -- This is ju...
PypiClean
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/meshes/cylindricalNonUniformGrid1D.py
from __future__ import unicode_literals __docformat__ = 'restructuredtext' from fipy.tools import numerix from fipy.tools.dimensions.physicalField import PhysicalField from fipy.tools import parallelComm from fipy.meshes.nonUniformGrid1D import NonUniformGrid1D __all__ = ["CylindricalNonUniformGrid1D"] from future.u...
PypiClean
/BlackBunny-0.0.1.tar.gz/BlackBunny-0.0.1/BlackBunny.py
import os import webbrowser from socket import gethostbyname, gethostname import sys import socket from setuptools import setup, find_packages import pyautogui print(' |BlackBunny|\n WARNING: Only works on Windows 10, Windows 7, Windows 8, Windows 8.1') print('Created: August 4, 2021 | Thank you fo...
PypiClean
/GISPython-59.2.tar.gz/GISPython-59.2/README.md
# ![img](http://www.lvmgeo.lv/images/lvmgeo/backgrouds/icons/python_small.svg) LVM GEO Python Core (_GISPython_) LVM GEO Python Core (_GISPython_) is an open source automation and scripting core developed by the LVM GEO team. Based on this core any developer can build simple and structured Python programming scripts w...
PypiClean
/DNBC4-test-2.2.1.tar.gz/DNBC4-test-2.2.1/dnbc4tools/rna/report.py
import os,shutil from dnbc4tools.tools.utils import str_mkdir,logging_call,change_path,read_json,judgeFilexits,rm_temp from dnbc4tools.__init__ import __root_dir__ class Report: def __init__(self,args): self.name = args.name self.genomeDir = os.path.abspath(args.genomeDir) self.threads = ar...
PypiClean
/FuXi-1.4.production.tar.gz/FuXi-1.4.production/lib/Rete/SidewaysInformationPassing.py
import unittest, os, sys, itertools try: from hashlib import md5 as createDigest except: from md5 import new as createDigest from FuXi.Horn.PositiveConditions import * from FuXi.Horn.HornRules import Ruleset from FuXi.Rete.RuleStore import SetupRuleStore, N3Builtin from FuXi.DLP import SKOLEMIZED_CLASS_NS from...
PypiClean
/Akara-2.0.0a4.tar.gz/Akara-2.0.0a4/lib/demo/pubsubhubbub.py
import sys from datetime import datetime, timedelta import cgi import sqlite3 from itertools import dropwhile import amara from amara import bindery from amara.tools import atomtools from amara.thirdparty import httplib2 from amara.lib.util import first_item from akara.services import simple_service from akara import...
PypiClean
/Flask-Mail-SendGrid-0.6.tar.gz/Flask-Mail-SendGrid-0.6/README.rst
Flask-Mail-SendGrid =================== .. image:: https://badge.fury.io/py/Flask-Mail-SendGrid.svg :target: https://badge.fury.io/py/Flask-Mail-SendGrid Flask extension for sendgrid. It has same interface with Flask-Mail. Flask-Mail-SendGrid is friendly with another extention such as Flask-Security. Installin...
PypiClean
/DEW-ISI-0.0.1.tar.gz/DEW-ISI-0.0.1/NLP/nlplib.py
import spacy from spacy.symbols import * from spacy.lang.en.stop_words import STOP_WORDS SUBJECTS = ["nsubj", "nsubjpass", "csubj", "csubjpass", "agent", "expl"] OBJECTS = ["pobj", "dobj", "dative", "attr", "oprd"] def getSubsFromConjunctions(subs): moreSubs = [] for sub in subs: # rights is a generat...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/forms/fields.py
import logging from django import forms from django.utils.safestring import mark_safe from django.utils.translation import gettext_lazy as _, gettext import pytz from djblets.conditions.conditions import ConditionSet from djblets.conditions.errors import (ConditionChoiceNotFoundError, ...
PypiClean
/Naftawayh-0.4.tar.gz/Naftawayh-0.4/naftawayh/verb_dictionary.py
VERB_DICTIONARY={ u'دَمِلَ':u'ل', u'تَبَارَأَ':u'ل', u'تَتَلَّهَ':u'ل', u'جَيَّشَ':u'ل', u'اِمَّذَلَ':u'ل', u'اِنْخَدَعَ':u'ل', u'جَبَلَ':u'م', u'قَبَا':u'م', u'تَمَاظَّ':u'ل', u'قَضَعَ':u'م', u'اِنْتَجَمَ':u'ل', u'اِقْتَنَّ':u'ك', u'نَمَّ':u'ك', u'حَلُمَ':u'ل', u'وَعَكَ':u'ك', u'فَلَّقَ':u'م', u'تَوَى':u'م', u'زَنَرَ...
PypiClean
/MicroblogCrawler-1.4.1.tar.gz/MicroblogCrawler-1.4.1/microblogcrawler/crawler.py
from lxml import etree from io import StringIO, BytesIO import requests from datetime import datetime, timedelta import pytz from dateutil.parser import parse import time from multiprocessing import Pool import sys import pkg_resources # Public FeedCrawler Class class FeedCrawler(): """ A crawler for Microblog...
PypiClean
/Django-EMS-R25-2.1.tar.gz/Django-EMS-R25-2.1/ems_r25/management/commands/ems2r25.py
import datetime import logging import re import requests import six import sys import unicodedata from dateutil.parser import parse from django.conf import settings from django.core.management.base import BaseCommand, CommandError from ems_client.models import Status from ems_client.service import Service from lxml.et...
PypiClean
/Gammalearn-0.11.0.tar.gz/Gammalearn-0.11.0/gammalearn/data/example_settings/experiment_settings_vit.py
import collections import os import importlib from pathlib import Path import math import numpy as np import torch from torch.optim import lr_scheduler from torchvision import transforms from torchvision.models import resnet18, ResNet, EfficientNet, MobileNetV2, MobileNetV3 from torchvision.models.vision_transformer im...
PypiClean
/Nagababu_Django_Webapps-0.0.2-py3-none-any.whl/webapp1/static/js/core.js
'use strict'; // quickElement(tagType, parentReference [, textInChildNode, attribute, attributeValue ...]); function quickElement() { const obj = document.createElement(arguments[0]); if (arguments[2]) { const textNode = document.createTextNode(arguments[2]); obj.appendChild(textNode); } ...
PypiClean
/CellProfiler-4.2.6.tar.gz/CellProfiler-4.2.6/cellprofiler/modules/measureimageoverlap.py
import cellprofiler_core.object import centrosome.cpmorphology import centrosome.fastemd import centrosome.filter import centrosome.index import centrosome.propagate import numpy import scipy.ndimage import scipy.sparse from cellprofiler_core.constants.measurement import COLTYPE_FLOAT from cellprofiler_core.module impo...
PypiClean
/Deeplodocus-0.3.0-py3-none-any.whl/deeplodocus/core/project/structure/config.py
from deeplodocus.flags.ext import DEEP_EXT_YAML from deeplodocus.utils.namespace import Namespace # The divider to use when expressing paths to configs DEEP_CONFIG_DIVIDER = "/" # Keywords DEEP_CONFIG_INIT = "INIT" DEEP_CONFIG_DEFAULT = "DEFAULT" DEEP_CONFIG_DTYPE = "DTYPE" DEEP_CONFIG_WILDCARD = "*" # Names of each...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/content/fti.py
from Acquisition import aq_base from plone.dexterity.fti import DexterityFTI from plone.dexterity.interfaces import IDexterityFTI from zope.component import queryMultiAdapter from zope.component import queryUtility from zope.interface import Interface class IConstructionFilter(Interface): """Extra object creation...
PypiClean
/ORCID-Hub-4.16.6.tar.gz/ORCID-Hub-4.16.6/orcid_hub/utils.py
"""Various utilities.""" import json import logging import os import random import string import time from collections import defaultdict from datetime import date, datetime, timedelta from itertools import filterfalse, groupby from urllib.parse import quote, urlencode, urlparse import chardet import emails import fl...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojo/data/ItemFileReadStore.js
if(!dojo._hasResource["dojo.data.ItemFileReadStore"]){ dojo._hasResource["dojo.data.ItemFileReadStore"]=true; dojo.provide("dojo.data.ItemFileReadStore"); dojo.require("dojo.data.util.filter"); dojo.require("dojo.data.util.simpleFetch"); dojo.require("dojo.date.stamp"); dojo.declare("dojo.data.ItemFileReadStore",null,{...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_wae-ch.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/OASYS1-1.2.130.tar.gz/OASYS1-1.2.130/oasys/widgets/gui.py
import os import numpy from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QWidget, QGridLayout, QFileDialog, QMessageBox, QLabel, QComboBox, QTextEdit from orangewidget import gui as orange_gui current_canvas_window = None # ---------------------------------- # Default fonts def widgetLabel(widget, label="",...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/demo/sampler/FeatureSet.py
from muntjac.demo.sampler.features.table import \ (TableFooter, TableColumnHeaders, TableMultipleSelection, TableClickListeners, TableColumnAlignment, TableActions, TableRowHeaders, TableColumnReordering, TableRowStyling, TableMouseEvents, TableHeaderIcons, TableSorting, TableLazyLoading, TableCellSt...
PypiClean
/ChadBot2-0.1.tar.gz/ChadBot2-0.1/ChadBot/generation/rajat_work/qgen/generator/fpm/pattern.py
TOKENS = ['<sbj>', '<obj>', '<act>', '<st>'] pattern_specs = [ # yes/no question (existential) { "patterns": [ "{aux1} there <obj>", "{aux1} there any <obj>", "{aux2} there be <obj>", "{aux2} there be any <obj>", "Any <obj>" ], ...
PypiClean
/NAG-PyPOP-0.3.5.tar.gz/NAG-PyPOP-0.3.5/pypop/trace/prvtrace.py
from hashlib import sha1 from pkg_resources import resource_filename from warnings import warn from os import makedirs from os.path import splitext, basename, join as path_join import numpy import pandas from .trace import Trace from ..utils.io import zipopen from ..utils.exceptions import WrongLoaderError, Extrae...
PypiClean
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/misopy/as_events.py
import misopy import misopy.json_utils as json_utils import misopy.pickle_utils as pickle_utils import misopy.Gene as Gene import time import csv import os class Event(object): """ Representation of an alternative splicing event. """ def __init__(self, label, pcr_psi=None, uniqueness=None, ...
PypiClean
/Flet_StoryBoard-1.4-py3-none-any.whl/fletsb/widgets/widgets/paragraph.py
import flet from ...tools.color_picker import ColorPicker class Paragraph(object): def __init__(self, main_class, parent, *args, **kwargs) -> None: self.parent = parent self.main_class = main_class self.self_object = flet.Text("") # all args self.args = { "text...
PypiClean
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/ui/uitk/uiApp.py
import sys, os import Tkinter import dabo import dabo.ui as ui import dabo.dEvents as dEvents from dabo.dObject import dObject # First step is to figure out how to wrap a tk application object if there is one. # When that is done, copy/paste/modify from uiwx/uiApp.py. # It doesn't look like Tkinter has an applicatio...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/example/dqn.py
import gym from ditk import logging from ding.data.model_loader import FileModelLoader from ding.data.storage_loader import FileStorageLoader from ding.model import DQN from ding.policy import DQNPolicy from ding.envs import DingEnvWrapper, BaseEnvManagerV2 from ding.data import DequeBuffer from ding.config import comp...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/STIX-Web/Symbols/Bold/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS["STIXMathJax_Symbols-bold"]={directory:"Symbols/Bold",family:"STIXMathJax_Symbols",weight:"bold",id:"STIXWEBSYMBOLSB",32:[0,0,250,0,0,""],160:[0,0,250,0,0,""],8962:[774,0,926,55,871,"871 0h-816v408l408 366l408 -366v-408zM783 88v284l-320 289l-320 -289v-284h640"],8976:[399,-108,750,65...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/plugins/common/link/extra/linklist.js
define( [ 'aloha', 'aloha/jquery' ], function ( Aloha, jQuery ) { /** * Internal data as array with following format: * * [ * { name: 'Aloha Editor - The HTML5 Editor', url: 'http://aloha-editor.org', type: 'website' }, * { name: 'Aloha Editor - Wiki', url: 'http://github.com/alohaeditor/Aloha-Editor/w...
PypiClean
/HTSQL-2.3.3.tar.gz/HTSQL-2.3.3/src/htsql/core/cmd/summon.py
from ..adapter import Adapter, Protocol, adapt, call from ..error import Error, recognize_guard, point, MarkRef from ..util import to_name from ..syn.syntax import (Syntax, SkipSyntax, FunctionSyntax, PipeSyntax, ApplySyntax, CollectSyntax) from ..syn.parse import parse from ..fmt.format import (TextFormat, H...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/freezer/DependsExe.py
import os from nuitka.containers.OrderedSets import OrderedSet from nuitka.Options import assumeYesForDownloads from nuitka.Tracing import inclusion_logger from nuitka.utils.Download import getCachedDownload from nuitka.utils.Execution import executeProcess, withEnvironmentVarOverridden from nuitka.utils.FileOperation...
PypiClean
/MeneTools-3.3.0-py3-none-any.whl/menetools/sbml.py
# Copyright (C) 2017-2023 Clémence Frioux & Arnaud Belcour - Inria Dyliss - Pleiade # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option)...
PypiClean
/FrAG-1.1.0.tar.gz/FrAG-1.1.0/frag_pele/AdaptivePELE_repo/AdaptivePELE/analysis/plotSpawningClusters.py
from __future__ import absolute_import, division, print_function, unicode_literals from builtins import range import socket import matplotlib import numpy as np import os import argparse machine = socket.gethostname() if machine == "bsccv03": matplotlib.use('wxagg') elif 'login' in machine: matplotlib.use('TkAg...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/gis/forms/fields.py
from django import forms from django.contrib.gis.gdal import GDALException from django.contrib.gis.geos import GEOSException, GEOSGeometry from django.core.exceptions import ValidationError from django.utils.translation import gettext_lazy as _ from .widgets import OpenLayersWidget class GeometryField(forms.Field): ...
PypiClean
/HEBO-0.3.2-py3-none-any.whl/hebo/models/nn/eac/eac_model.py
# This program is free software; you can redistribute it and/or modify it under # the terms of the MIT license. # This program is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. See the MIT License ...
PypiClean
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/optimization/populationbased/coevolution/coevolution.py
__author__ = 'Tom Schaul, tom@idsia.ch' from scipy import argmax, array from random import sample, choice, shuffle from pybrain.utilities import fListToString, Named class Coevolution(Named): """ Population-based generational evolutionary algorithm with fitness being based (paritally) on a relative measure....
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/ops/transformer/inference/triton_ops.py
# DeepSpeed Team """ Inspired by original Triton implementation: https://github.com/openai/triton/blob/b244db06da24a87453a40ad35b085ee37dac3705/python/tutorials/06-fused-attention.py """ import torch import triton import triton.language as tl @triton.jit def _fwd_kernel( Q, K, V, sm_scale, TMP, ...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/data/util/abstract_in_memory_container.py
from muntjac.data.util.default_item_sorter import DefaultItemSorter from muntjac.data.container import \ IIndexed, IItemSetChangeNotifier, ISortable from muntjac.data.util.abstract_container import AbstractContainer class AbstractInMemoryContainer(AbstractContainer, IItemSetChangeNotifier, IIndexed)...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/mode/cmake/cmake.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) define(["../../lib/codemirror"], mod); else mod(CodeMirror); })(function(CodeMirror) { "use strict"; CodeMirror.defineMode("cmake", ...
PypiClean
/Formular-0.2.tar.gz/Formular-0.2/formular/fields.py
from itertools import count from decimal import Decimal from datetime import date, time import urllib2 from contextlib import closing from urllib import urlencode from functools import partial try: from babel.dates import format_time, parse_time, format_date, parse_date HAS_BABEL = True except ImportError: ...
PypiClean
/LiteSpeed-1.2.0.tar.gz/LiteSpeed-1.2.0/litespeed/__init__.py
from argparse import ArgumentParser from typing import List, Optional from litespeed.helpers import render, serve from litespeed.mail import Mail from litespeed.server import App, RequestHandler, WebServer route = App.route add_websocket = App.add_websocket register_error_page = App.register_error_page __all__ = ['Ma...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/CacheDir.py
__revision__ = "src/engine/SCons/CacheDir.py 2014/07/05 09:42:21 garyo" __doc__ = """ CacheDir support """ import os.path import stat import sys import SCons.Action cache_enabled = True cache_debug = False cache_force = False cache_show = False cache_readonly = False def CacheRetrieveFunc(target, source, env): ...
PypiClean
/Blue-DiscordBot-3.2.0.tar.gz/Blue-DiscordBot-3.2.0/bluebot/core/drivers/red_base.py
import enum from typing import Tuple __all__ = ["BaseDriver", "IdentifierData"] class ConfigCategory(enum.Enum): GLOBAL = "GLOBAL" GUILD = "GUILD" CHANNEL = "TEXTCHANNEL" ROLE = "ROLE" USER = "USER" MEMBER = "MEMBER" class IdentifierData: def __init__( self, uuid: str, ...
PypiClean
/Flask-User4AWS-1.0.2.3.tar.gz/Flask-User4AWS-1.0.2.3/flask_user/db_adapters/dynamo_db_adapter.py
from __future__ import print_function import pdb # Non-system imports are moved into the methods to make them an optional requirement from flask_user.db_adapters import DbAdapterInterface class DynamoDbAdapter(DbAdapterInterface): """ Implements the DbAdapter interface to find, add, update and delete datab...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/themes/default/theme.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.themes.add( 'default', (function() { function checkSharedSpace( editor, spaceName ) { var container, element; // Try to retrieve the target element from t...
PypiClean
/CompactObject_TOV-1.8.1.tar.gz/CompactObject_TOV-1.8.1/README.md
<!-- ABOUT THE PROJECT --> ## About The Project 1. Dealing with complex Relativistic Mean field (RMF) theory to generate Equation of State (EOS) of neutron star. ([EOSgenerators](https://github.com/ChunHuangPhy/EoS_inference/blob/main/EOSgenerators) Package) 2. Solves the Tolman-Oppenheimer-Volkoff equation for a sphe...
PypiClean
/LAM-0.4.7.tar.gz/LAM-0.4.7/src/logger.py
# Standard libraries import logging import time import sys # A list of logger names used by the modules. Used for clearing of handlers. loggers = ['src.run', 'src.process', 'src.analysis', 'src.interface', 'src.plot', 'src.system', 'src.plotfuncs', 'src.border_detect'] # Needed variables logFile = "" ctime ...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_zh-hans-sg.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u4e0a\u5348", "\u4e0b\u5348" ], "DAY": [ "...
PypiClean
/EGOPY-1.1.202212-py3-none-any.whl/ego_optionmaster/pricing/black_scholes.py
from scipy import stats from math import log, pow, sqrt, exp from typing import Tuple cdf = stats.norm.cdf pdf = stats.norm.pdf def calculate_d1( s: float, k: float, r: float, t: float, v: float ) -> float: """Calculate option D1 value""" d1: float = (log(s / k) + (r + 0.5 * pow(v, 2)) * ...
PypiClean
/Hydrograph-py-1.0.1.tar.gz/Hydrograph-py-1.0.1/Hydrograph/test/example.py
#-Authorship information-######################################################################################################################## __author__ = 'Wilco Terink' __copyright__ = 'Wilco Terink' __version__ = '1.0' __email__ = 'wilco.terink@ecan.govt.nz' __date__ ='December 2019' ############################...
PypiClean
/GSAS-II-WONDER_osx-1.0.4.tar.gz/GSAS-II-WONDER_osx-1.0.4/GSAS-II-WONDER/G2shapes.py
# Version 1.2 is intended to be runnable under Python2 and Python3 # Version 1.3 includes an optional 'glue' term for extended structures # # this version modified by R B. Von Dreele for inclusion in GSAS-II from __future__ import division, print_function import math import sys import os import copy import random imp...
PypiClean
/MPInterfaces_Latest_Test-1.0.2.tar.gz/MPInterfaces_Latest_Test-1.0.2/examples/workflows/vasp_workflow.py
from __future__ import division, print_function, unicode_literals, \ absolute_import """ Workflow to study the convergence of VASP parameters: ENCUT and KPOINTS for a range of systems. """ from six.moves import range from pymatgen.io.vasp.inputs import Incar from pymatgen.io.vasp.inputs import Kpoints from mpi...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/src/obitools/parallel/jobqueue.py
import threading from logging import warning,info from time import sleep,time from obitools.parallel import TaskPool class JobPool(dict): ''' JobPool is dedicated to manage a job queue. These jobs will run in a limited number of thread. ''' def __init__(self,count,precision=0.01): '...
PypiClean
/DEBKS-1.0.1.tar.gz/DEBKS-1.0.1/debks/anno.py
import pysam,pandas as pd, numpy as np,time,os,sys,traceback def fileCheck(file): for i in file: if not os.path.exists(i): sys.exit('ERROR: %s is not exist!!!' % i) def readGTFfile(fileName): if not os.path.exists(fileName): sys.exit('ERROR: %s is not exist!!!' % fileName) try:...
PypiClean
/MultiBottle-0.1.3.tar.gz/MultiBottle-0.1.3/multibottle/subpages/sitePage.py
# top level template import sys #sys.path.append("/home/saltsafe/www/lib") from mako.template import Template from mako.lookup import TemplateLookup import urllib from .basicPage import BasicPage #from bottle import mako_template as template #import bottle def echo2(str): global theReq theReq.write(str) de...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/test/server/component/table/table_column_alignments.py
from unittest import TestCase from muntjac.test.server.component.table.table_generator import TableGenerator from muntjac.ui.table import Table class TableColumnAlignments(TestCase): def testDefaultColumnAlignments(self): for properties in range(10): t = TableGenerator.createTableWithDefaul...
PypiClean
/Marl-Factory-Grid-0.1.2.tar.gz/Marl-Factory-Grid-0.1.2/marl_factory_grid/modules/destinations/rules.py
from typing import List, Union from marl_factory_grid.environment.rules import Rule from marl_factory_grid.utils.results import TickResult, DoneResult from marl_factory_grid.environment import constants as c from marl_factory_grid.modules.destinations import constants as d, rewards as r from marl_factory_grid.modules....
PypiClean
/NikeCA-0.2.13-py3-none-any.whl/Dashboards/IMP/IMP.py
from ..Dashboards import Dashboards from ...NikeSF import Snowflake class IMP(Dashboards): def __init__(self, username, warehouse, role, database): super().__init__(username, warehouse, role, database) self.username = username self.warehouse = warehouse self.role = role s...
PypiClean
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/16.py
import genice2.lattices from genice2.cell import cellvectors from genice2.valueparser import parse_cages desc = { "ref": { "ice 16": "Falenty 2014", "C15": "Sikiric 2010", "sII": "Jeffrey 1984", "CS2": "Kosyakov 1999", "MTN": "IZA Database", }, "usage": "No options ...
PypiClean
/102003766_topsis-0.0.1-py3-none-any.whl/topsis.py
import pandas as pd import sys import math # author : Sahil Chhabra # email : sahil.chh718@gmail.com def main(): try: read_file = pd.read_csv(sys.argv[1]) print(sys.argv) df = pd.DataFrame(read_file) df1 = df.drop(df.columns[0], axis=1) w = sys.argv[2] weight = w.s...
PypiClean
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/_DBW/_SAW/Q_Result.py
from __future__ import division, print_function from __future__ import absolute_import, unicode_literals from _TFL import TFL from _MOM.import_MOM import MOM, Q from _MOM._DBW._SAW import SAW, SA import _MOM._DBW._SAW.Attr import _TF...
PypiClean
/KAVICA-1.3.4.tar.gz/KAVICA-1.3.4/kavica/cluster_inference_system/somis.py
#TODO: # Regular Hyperrectangle Grid (RHG) import random import itertools import pickle import sys import alphashape import vg import matplotlib.lines as mlines import pandas as pd import matplotlib.pyplot as plt import numpy as np from descartes import PolygonPatch from scipy.spatial import Delaunay from shapely.geom...
PypiClean
/NREL-jade-0.9.9.tar.gz/NREL-jade-0.9.9/jade/cli/show_status.py
import logging import os import socket import sys import click from prettytable import PrettyTable from jade.common import OUTPUT_DIR from jade.exceptions import InvalidConfiguration from jade.jobs.cluster import Cluster from jade.hpc.common import HpcJobStatus from jade.hpc.hpc_manager import HpcManager from jade.l...
PypiClean
/KDVS-2.0.0.tar.gz/KDVS-2.0.0/doc/doc-api/kdvs.tools.rst
tools Package ============= :mod:`tools` Package -------------------- .. automodule:: kdvs.tools :members: :undoc-members: :show-inheritance: :mod:`pplus_job_verifier` Module -------------------------------- .. automodule:: kdvs.tools.pplus_job_verifier :members: :undoc-members: :show-inheri...
PypiClean
/CustomPipeline-0.0.3-py3-none-any.whl/rplibs/progressbar/__init__.py
from __future__ import division import math import os import signal import sys import time try: from fcntl import ioctl from array import array import termios except ImportError: pass from .compat import * from .widgets import * __author__ = 'Nilton Volpato' __author_email__ = 'first-name dot last-...
PypiClean
/BBIOPY-0.1.5.tar.gz/BBIOPY-0.1.5/BBIOPY.egg-info/build/lib/bbiopy/uart.py
# common = input('common') # importlib.import_module(common) import os uart_table = [ [ "UART1", "/dev/ttyO1", "ADAFRUIT-UART1", "P9_26", "P9_24"], [ "UART2", "/dev/ttyO2", "ADAFRUIT-UART2", "P9_22", "P9_21"], [ "UART3", "/dev/ttyO3", "ADAFRUIT-UART3", "P9_42", ""], [ "UART4", "/dev/ttyO4", "ADAFRUIT-UART4", ...
PypiClean
/Gooey-1.2.0a0.tar.gz/Gooey-1.2.0a0/README.md
# Gooey Turn (almost) any Python 3 Console Program into a GUI application with one line <p align="center"> <img src="https://github.com/chriskiehl/GooeyImages/raw/images/readme-images/1-0-4-title-card.png" /> </p> Table of Contents ----------------- - [Gooey](#gooey) - [Table of contents](#table-of-conte...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/types/inline_mode/inline_query_result_contact.py
import fipper from fipper import raw, types from .inline_query_result import InlineQueryResult class InlineQueryResultContact(InlineQueryResult): """Contact with a phone number By default, this contact will be sent by the user. Alternatively, you can use *input_message_content* to send a message wit...
PypiClean
/MLapp1-0.0.37.tar.gz/MLapp1-0.0.37/src/MLapp/UI/classifcationAlgo.py
import dash_bootstrap_components as dbc from dash import dcc,html from .scaling import genrateInfoCallback, genrateCollapseCallback,genrateAlertCallback,infoText from .dataSampling import get_neighbors_Para from ..app import app from dash.dependencies import Input, Output,State #get the header of each card of samp...
PypiClean
/BEATAALU-0.13.1.tar.gz/BEATAALU-0.13.1/econml/dml/causal_forest.py
from warnings import warn import numpy as np from sklearn.linear_model import LogisticRegressionCV from sklearn.base import clone, BaseEstimator from sklearn.preprocessing import FunctionTransformer from sklearn.pipeline import Pipeline from sklearn.model_selection import train_test_split from itertools import produc...
PypiClean
/FairMongo-5.2.0.tar.gz/FairMongo-5.2.0/FCM/Jarticle/jSources.py
from F import DICT from FNLP import URL from FCM.MCCore import MCCore from FCM.FQ import QBuilder, Q from F.LOG import Log Log = Log("jURL") SOURCES_COLLECTION = "sources" F_DATE_ADDED = "dateAdded" F_TYPE = "type" F_ORIGIN = "origin" F_SITE_NAME = "siteName" F_URL = "url" URL_TYPE = "general url" RSS_TYPE = "rss" G...
PypiClean
/McStasScript-0.0.63.tar.gz/McStasScript-0.0.63/mcstasscript/jb_interface/simulation_interface.py
import sys import os import numpy as np import threading import copy import ipywidgets as widgets from IPython.display import display import matplotlib.pyplot as plt from mcstasscript.interface.functions import name_search from mcstasscript.interface import plotter from mcstasscript.jb_interface import plot_interfac...
PypiClean
/MachineState-0.5.0.tar.gz/MachineState-0.5.0/machinestate.py
# ======================================================================================= # # Filename: machinestate.py # # Description: Collect hardware and software settings # # Author: Thomas Gruber (né Roehl), thomas.roehl@googlemail.com # Project: MachineState # # Copyright (C) 2020 R...
PypiClean
/OTLModel/Classes/Abstracten/Seinlantaarn.py
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from abc import abstractmethod from OTLMOW.OTLModel.Classes.ImplementatieElement.AIMNaamObject import AIMNaamObject from OTLMOW.OTLModel.Datatypes.BooleanField import BooleanField from OTLMOW.OTLModel.Datatypes.KlLantaarnVormgeving import KlLantaarnVormg...
PypiClean
/MAZE_sim-0.1.1-py3-none-any.whl/maze/perfect_zeolite.py
import copy import os from collections import defaultdict from typing import List, Dict, Tuple, Iterable, Optional import uuid import ase import ase.data from ase import Atoms from ase.io import cif from ase.neighborlist import natural_cutoffs, NeighborList from packaging.version import parse as parse_version import p...
PypiClean
/Cheesecake-0.6.2.tar.gz/Cheesecake-0.6.2/cheesecake/subprocess.py
r"""subprocess - Subprocesses with accessible I/O streams This module allows you to spawn processes, connect to their input/output/error pipes, and obtain their return codes. This module intends to replace several other, older modules and functions, like: os.system os.spawn* os.popen* popen2.* commands.* Informati...
PypiClean
/GenMotion-0.0.4-py3-none-any.whl/genmotion/algorithm/action_conditioned/models/tools/hessian_penalty.py
import torch def hessian_penalty(G, batch, k=2, epsilon=0.1, reduction=torch.max, return_separately=False, G_z=None, **G_kwargs): """ Official PyTorch Hessian Penalty implementation. Note: If you want to regularize multiple network activations simultaneously, you need to make sure the function G you ...
PypiClean
/Divisi-0.6.10.tar.gz/Divisi-0.6.10/csc/divisi/crossbridge.py
from collections import defaultdict from csc.divisi.labeled_tensor import SparseLabeledTensor from semantic_network import SemanticNetwork import copy import logging class CrossBridge(object): ''' This class implements the CrossBridge analogy algorithm. Typical usage: cnet_graph = cnet_graph_from_tens...
PypiClean
/Cylon-0.6.tar.gz/Cylon-0.6/cylon/command.py
import imp import glob import sys import logging from os.path import exists from abc import ABCMeta, abstractmethod class Plugin: __metaclass__ = ABCMeta plugins = {} settings = {} connection = None def __init__(self): mod_name = self.__class__.__name__ logging.info("Plugin %s loaded....
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ast-es.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/HolmesV-2021.10.8.tar.gz/HolmesV-2021.10.8/mycroft/tts/mimic_tts.py
import os import os.path from os.path import exists, join, expanduser import stat import subprocess from threading import Thread from time import sleep import xdg.BaseDirectory from mycroft import MYCROFT_ROOT_PATH from mycroft.api import DeviceApi from mycroft.configuration import Configuration, BASE_FOLDER from mycr...
PypiClean
/Eve-2.1.0.tar.gz/Eve-2.1.0/docs/tutorials/index.rst
.. _tutorials: Tutorials ========= .. toctree:: :maxdepth: 2 account_management custom_idfields Learn Eve at TalkPython Training -------------------------------- There is a 5 hours-long Eve course available for you at the fine TalkPython Training website. The teacher is Nicola, Eve author and maintainer. T...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/typescript/SECURITY.md
<!-- BEGIN MICROSOFT SECURITY.MD V0.0.5 BLOCK --> ## Security Microsoft takes the security of our software products and services seriously, which includes all source code repositories managed through our GitHub organizations, which include [Microsoft](https://github.com/Microsoft), [Azure](https://github.com/Azure), ...
PypiClean
/Gnotty-0.2.7.tar.gz/Gnotty-0.2.7/gnotty/static/js/json2.js
// Create a JSON object only if one does not already exist. We create the // methods in a closure to avoid creating global variables. var JSON; if (!JSON) { JSON = {}; } (function () { "use strict"; function f(n) { // Format integers to have at least two digits. return n < 10 ? '0' + n : ...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/plugins/lists/plugin.min.js
!function(a){"use strict";var e,n,t,r,o,i,u,f=tinymce.util.Tools.resolve("tinymce.PluginManager"),s=function(){},y=function(e){return function(){return e}},c=function(n){return function(e){return!n(e)}},d=y(!1),l=y(!0),m=function(){return p},p=(e=function(e){return e.isNone()},{fold:function(e,n){return e()},is:d,isSom...
PypiClean
/AS-Object_models-2.3.9.tar.gz/AS-Object_models-2.3.9/as_models/logging_message.py
from .utils import FireStoreBase class LoggingMessages(FireStoreBase): #message = ndb.TextProperty(required=True) #msg_type = ndb.StringProperty() ext_fields = ['message','msg_type','parent_path','path'] COLLECTION_NAME = 'application_data' def __init__(self, fsClient, **kwargs): self.mess...
PypiClean
/3ETool-0.8.3.tar.gz/3ETool-0.8.3/EEETools/BlockSubClasses/pump.py
from EEETools.MainModules import Block from EEETools.MainModules.support_blocks import Drawer import xml.etree.ElementTree as ETree from EEETools import costants class Pump(Block): def __init__(self, inputID, main_class): super().__init__(inputID, main_class) self.type = "pump" self.has...
PypiClean
/Cibyl-1.0.0.0rc1.tar.gz/Cibyl-1.0.0.0rc1/docs/source/index.rst
.. documentation master file ===== Cibyl ===== Cibyl is a command-line interface and REST API for querying CI environments and systems. It supports out-of-the-box the following CI systems: * Jenkins * Zuul Cibyl allows you to configure multiple environments, where each environment contains one or more CI/CD s...
PypiClean
/Flask-Inputs-0.3.0.tar.gz/Flask-Inputs-0.3.0/flask_inputs/inputs.py
import collections from itertools import chain from future.utils import iteritems from werkzeug.datastructures import MultiDict from wtforms.form import BaseForm from wtforms.fields import Field class Inputs(object): #: flask.Request attributes available for validation valid_attrs = ['args', 'form', 'values...
PypiClean
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/LabExT/PluginLoader.py
import inspect import logging import os from os.path import exists import pkgutil import sys from importlib import import_module from typing import List class PluginLoader: def __init__(self): self.__available_plugins = {} self.logger = logging.getLogger() @property def plugins(self): ...
PypiClean