code
stringlengths
114
1.05M
path
stringlengths
3
312
quality_prob
float64
0.5
0.99
learning_prob
float64
0.2
1
filename
stringlengths
3
168
kind
stringclasses
1 value
import os from abc import ABCMeta, abstractmethod from types import MappingProxyType import dask.dataframe import pandas as pd class AbstractDataFrameFormat: """ Provides helper functions to serialize and deserialize pandas and dask dataframes. Instances of such classes can define their own default ...
/ratschlab_common-0.3.0.tar.gz/ratschlab_common-0.3.0/ratschlab_common/io/dataframe_formats.py
0.713931
0.243935
dataframe_formats.py
pypi
import os from abc import ABCMeta, abstractmethod import collections from collections import namedtuple from enum import Enum import numpy as np import pandas as pd import tables from ratschlab_common.io.dataframe_formats import HdfDataFrameFormat DATA_KEY = 'data' COL_DESC_KEY = 'col_descr' ROW_DESC_KEY = 'row_desc...
/ratschlab_common-0.3.0.tar.gz/ratschlab_common-0.3.0/ratschlab_common/io/bigmatrix.py
0.685423
0.37958
bigmatrix.py
pypi
import pandas as pd import numpy as np from pandas.api.types import is_sparse from scipy import sparse import tables ''' This module exposes two functions: to_hdf and read_hdf, which usage is to read and write sparse Pandas DataFrames into and from hdf file. ''' def read_hdf(fpath): ''' read a hdf file into ...
/ratschlab_common-0.3.0.tar.gz/ratschlab_common-0.3.0/ratschlab_common/io/sparse_df.py
0.710327
0.424621
sparse_df.py
pypi
import math from pathlib import Path import numpy as np def repartition_directory(dir_path, output_path, n_partitions, key, df_format): """ Takes a directory of chunkfiles and rearranges the records in a new directory into a specified number of chunkfiles. If a key is given, records having the same v...
/ratschlab_common-0.3.0.tar.gz/ratschlab_common-0.3.0/ratschlab_common/io/chunks/repartition_dataframes.py
0.704668
0.546073
repartition_dataframes.py
pypi
import glob import json import os import dask import dask.bag import dask.dataframe def index_chunkfiles(directory, key, df_format, index_file_path=None, num_workers=4): """Indices a directory of chunk files. :param directory: path to directory :param key: field to index on (e.g. 'p...
/ratschlab_common-0.3.0.tar.gz/ratschlab_common-0.3.0/ratschlab_common/io/chunks/chunk_indexing.py
0.535098
0.292892
chunk_indexing.py
pypi
from __future__ import unicode_literals, absolute_import from rattail import labels class BlasterFilePrinter(labels.CommandFilePrinter): """ Label printer class for Cognitive Blaster devices, which generates an output file containing native printer commands. """ def batch_header_commands(self): ...
/rattail_cognitive-0.3.6.tar.gz/rattail_cognitive-0.3.6/rattail_cognitive/labels.py
0.719482
0.237576
labels.py
pypi
from rattail.emails import ImporterEmail, ProblemReportEmail class core_office_export_lane_op_updates(ImporterEmail): """ Sent when a CORE Office -> CORE Lane export involves data changes. """ handler_spec = 'rattail_corepos.corepos.lane.importing.op.office:FromCoreOfficeToCoreLane' abstract = Fal...
/rattail_corepos-0.1.24.tar.gz/rattail_corepos-0.1.24/rattail_corepos/emails.py
0.742235
0.482673
emails.py
pypi
from collections import OrderedDict from corepos.db.office_trans import Session as CoreTransSession, model as coretrans from corepos.db.office_op import Session as CoreSession, model as corepos from rattail import importing from rattail.time import localtime, make_utc from rattail.trainwreck import importing as train...
/rattail_corepos-0.1.24.tar.gz/rattail_corepos-0.1.24/rattail_corepos/trainwreck/importing/corepos.py
0.478285
0.258847
corepos.py
pypi
import logging from collections import OrderedDict from sqlalchemy import orm from rattail import importing from rattail.db import model from rattail.util import pretty_quantity from rattail_corepos.corepos.office import importing as corepos_importing from rattail_corepos.corepos.util import get_max_existing_vendor_i...
/rattail_corepos-0.1.24.tar.gz/rattail_corepos-0.1.24/rattail_corepos/corepos/office/importing/rattail.py
0.480966
0.199913
rattail.py
pypi
import logging from collections import OrderedDict from corepos.db.office_op import model as corepos from rattail import importing from rattail_corepos.corepos.office.importing import db as corepos_importing from rattail_corepos.corepos.office.importing.db.corepos import FromCoreHandler from rattail_corepos.corepos.o...
/rattail_corepos-0.1.24.tar.gz/rattail_corepos-0.1.24/rattail_corepos/corepos/office/importing/db/local.py
0.560132
0.260102
local.py
pypi
import decimal import logging from collections import OrderedDict from sqlalchemy import orm from corepos.db.office_op import model as corepos from rattail.importing.handlers import ToFileHandler from rattail.time import localtime from rattail.excel import ExcelReader from rattail_corepos.corepos.importing.db.corepo...
/rattail_corepos-0.1.24.tar.gz/rattail_corepos-0.1.24/rattail_corepos/corepos/office/importing/db/exporters/catapult_membership.py
0.442396
0.173743
catapult_membership.py
pypi
from collections import OrderedDict from corepos.db.office_op import Session as CoreOfficeSession, model as coreoffice from corepos.db.lane_op import Session as CoreLaneSession from rattail import importing from rattail.importing.handlers import FromSQLAlchemyHandler, ToSQLAlchemyHandler from rattail_corepos.corepos....
/rattail_corepos-0.1.24.tar.gz/rattail_corepos-0.1.24/rattail_corepos/corepos/lane/importing/op/office.py
0.406862
0.225715
office.py
pypi
import sqlalchemy as sa from sqlalchemy import orm from rattail.db import model class CorePerson(model.Base): """ CORE-specific extensions to :class:`rattail:rattail.db.model.Person`. """ __tablename__ = 'corepos_person' __table_args__ = ( sa.ForeignKeyConstraint(['uuid'], ['person.uuid']...
/rattail_corepos-0.1.24.tar.gz/rattail_corepos-0.1.24/rattail_corepos/db/model/people.py
0.630571
0.263567
people.py
pypi
import sqlalchemy as sa from sqlalchemy import orm from rattail.db import model class CoreDepartment(model.Base): """ CORE-specific extensions to :class:`rattail:rattail.db.model.Department`. """ __tablename__ = 'corepos_department' __table_args__ = ( sa.ForeignKeyConstraint(['uuid'], ['d...
/rattail_corepos-0.1.24.tar.gz/rattail_corepos-0.1.24/rattail_corepos/db/model/products.py
0.67694
0.224151
products.py
pypi
import sqlalchemy as sa from rattail.db import model from rattail.db.core import filename_column class CoreMemberBatch(model.BatchMixin, model.Base): """ Hopefully generic batch for adding / updating member data in CORE. """ batch_key = 'corepos_member' __tablename__ = 'batch_corepos_member' ...
/rattail_corepos-0.1.24.tar.gz/rattail_corepos-0.1.24/rattail_corepos/db/model/batch/coremember.py
0.494629
0.193528
coremember.py
pypi
from corepos.db.office_op import Session as CoreSession, model as corepos from rattail.problems import ProblemReport class InvalidPersonNumbers(ProblemReport): """ Looks for `custdata` records in CORE which have invalid person number sequence. """ system_key = 'corepos' problem_key = 'invalid...
/rattail_corepos-0.1.24.tar.gz/rattail_corepos-0.1.24/rattail_corepos/problems/corepos.py
0.766818
0.424531
corepos.py
pypi
import decimal from collections import OrderedDict from corepos.db.office_op import model as corepos, Session as CoreSession from rattail import importing from rattail.gpc import GPC from rattail_corepos import importing as corepos_importing class FromCOREPOSToRattail(importing.FromSQLAlchemyHandler, importing.ToRa...
/rattail_corepos-0.1.24.tar.gz/rattail_corepos-0.1.24/rattail_corepos/importing/corepos/db.py
0.637031
0.269194
db.py
pypi
from rattail_fabric2 import apt from rattail.util import shlex_join def install(c): """ Install the Postfix mail service """ apt.install(c, 'postfix') apt.purge(c, 'exim4', 'exim4-base', 'exim4-config', 'exim4-daemon-light') def alias(c, name, alias_to, path='/etc/aliases'): """ Set a ma...
/rattail-fabric2-0.3.2.tar.gz/rattail-fabric2-0.3.2/rattail_fabric2/postfix.py
0.463201
0.167559
postfix.py
pypi
from __future__ import unicode_literals, absolute_import from rattail.db import model from rattail.mail import Email from rattail.time import localtime from rattail_tempmon.db import model as tempmon class TempmonBase(object): """ Generic base class for all tempmon-related emails; adds common sample data. ...
/rattail-tempmon-0.2.9.tar.gz/rattail-tempmon-0.2.9/rattail_tempmon/emails.py
0.64579
0.246885
emails.py
pypi
from __future__ import unicode_literals, absolute_import import datetime from uuid import UUID import sqlalchemy as sa from sqlalchemy import orm import sqlsoup from rattail import importing from rattail.util import OrderedDict from rattail.time import make_utc from rattail_tempmon.db import Session as TempmonSessio...
/rattail-tempmon-0.2.9.tar.gz/rattail-tempmon-0.2.9/rattail_tempmon/hotcooler/importing/tempmon.py
0.479016
0.169166
tempmon.py
pypi
import datetime import sqlalchemy as sa from sqlalchemy import orm try: from sqlalchemy.orm import declarative_base except ImportError: from sqlalchemy.ext.declarative import declarative_base from rattail import enum from rattail.db.model import uuid_column from rattail.db.model.core import ModelBase Base =...
/rattail-tempmon-0.2.9.tar.gz/rattail-tempmon-0.2.9/rattail_tempmon/db/model.py
0.640411
0.271324
model.py
pypi
from rattail import importing from rattail.db import model from rattail.util import OrderedDict from rattail_woocommerce.db.model import WooCacheProduct from rattail_woocommerce.woocommerce import importing as woocommerce_importing class FromRattailToWooCommerce(importing.FromRattailHandler): """ Rattail -> W...
/rattail-woocommerce-0.1.0.tar.gz/rattail-woocommerce-0.1.0/rattail_woocommerce/woocommerce/importing/rattail.py
0.647575
0.185007
rattail.py
pypi
import sqlalchemy as sa from sqlalchemy import orm from sqlalchemy.ext.declarative import declared_attr from rattail.db import model from rattail.db.model.shopfoo import ShopfooProductBase __all__ = [ 'WooProductExtension', 'WooCacheProduct', ] class WooProductExtension(model.Base): """ WooCommerce...
/rattail-woocommerce-0.1.0.tar.gz/rattail-woocommerce-0.1.0/rattail_woocommerce/db/model.py
0.577734
0.166506
model.py
pypi
# ratter *ratter* is a python tool to calculate the optical response -- most importantly *R*eflection and *T*ransmission -- of a stack of layers of different materials. For this is uses the fresnel formalae and transfer matrix calculations. It provides classes to define a stack of materials, while giving all, some or...
/ratter-0.1.0a0.tar.gz/ratter-0.1.0a0/README.md
0.654122
0.991668
README.md
pypi
import sys import datetime from collections import deque from math import sqrt import rattler # {{{ Utilities def memorizer(iter, backlog=20): prev_vals = deque() for value in iter: prev_vals.append(value) while len(prev_vals) > backlog: prev_vals.popleft() yield list(prev...
/rattler-1.0.2.tar.gz/rattler-1.0.2/example-pygame.py
0.416678
0.217182
example-pygame.py
pypi
__version__ = "1.0.2" import socket import struct import datetime class RattlerException(StandardError): pass class PartialData(RattlerException): def __init__(self, num_got, num_want, data): self.num_got = num_got self.num_want = num_want self.data = data super(PartialData, s...
/rattler-1.0.2.tar.gz/rattler-1.0.2/rattler.py
0.703651
0.318962
rattler.py
pypi
# Rattr rats on your attrs. Rattr (pronounced 'ratter') is a tool to determine attribute usage in python functions. It can parse python files, follow imports and then report to you about the attributes accessed by function calls in that file. # Status Currently this project is under active development and likely to ...
/rattr-0.1.8.tar.gz/rattr-0.1.8/README.md
0.544075
0.893263
README.md
pypi
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Gaussian(Distribution): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. Attributes: mean (float) representing the mean value of the distribution stdev (float) representing ...
/raulo_distributions-0.1.tar.gz/raulo_distributions-0.1/raulo_distributions/Gaussiandistribution.py
0.688364
0.853058
Gaussiandistribution.py
pypi
from raumo_data_tools.config_handler import ConfigHandler from influxdb_client import InfluxDBClient import pandas as pd import json from datetime import timedelta import numpy as np class QueryInflux(): def __init__(self, config): self.config = config self.client = InfluxDBClient(url=self.config.U...
/raumo_data_tools-0.1.6.tar.gz/raumo_data_tools-0.1.6/raumo_data_tools/influx_reader.py
0.723895
0.210198
influx_reader.py
pypi
from datetime import datetime from influxdb_client import InfluxDBClient, Point from influxdb_client.client.write_api import SYNCHRONOUS, PointSettings class InfluxDbWriter: def __init__( self, url, token, org, bucket="", measurement="", ): """ ...
/raumo_data_tools-0.1.6.tar.gz/raumo_data_tools-0.1.6/raumo_data_tools/influx_writer.py
0.892064
0.241702
influx_writer.py
pypi
import plotly.graph_objects as go from plotly.subplots import make_subplots months = { "1": "Januar", "2": "Februar", "3": "März", "4": "April", "5": "Mai", "6": "Juni", "7": "Juli", "8": "August", "9": "September", "10": "Oktober", "11": "November", "12": "Dezember" } ...
/raumo_data_tools-0.1.6.tar.gz/raumo_data_tools-0.1.6/raumo_data_tools/chart_tools/lib_plotly_figures.py
0.8796
0.421433
lib_plotly_figures.py
pypi
"""Utilities for consuming tf.Transform output during training.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import tensorflow as tf from tensorflow_transform.saved import saved_transform_io from tensorflow_transform.tf_metadata import met...
/rav-tensorflow-transform-0.7.0.910.tar.gz/rav-tensorflow-transform-0.7.0.910/tensorflow_transform/output_wrapper.py
0.945926
0.427994
output_wrapper.py
pypi
from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from tensorflow_transform import api from tensorflow.contrib.session_bundle import bundle_shim def apply_saved_model(model_dir, inputs, tags, signature_name=None, ...
/rav-tensorflow-transform-0.7.0.910.tar.gz/rav-tensorflow-transform-0.7.0.910/tensorflow_transform/pretrained_models.py
0.929983
0.513912
pretrained_models.py
pypi
"""Utilities to read and write metadata in standardized versioned formats.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow_transform.tf_metadata import dataset_metadata from tensorflow_transform.tf_metadata import metadata_directory from ...
/rav-tensorflow-transform-0.7.0.910.tar.gz/rav-tensorflow-transform-0.7.0.910/tensorflow_transform/tf_metadata/metadata_io.py
0.92453
0.276478
metadata_io.py
pypi
from __future__ import absolute_import from __future__ import division from __future__ import print_function import abc import collections from tensorflow_transform.tf_metadata import dataset_metadata class MetadataVersion(collections.namedtuple("MetadataVersion", ["ver...
/rav-tensorflow-transform-0.7.0.910.tar.gz/rav-tensorflow-transform-0.7.0.910/tensorflow_transform/tf_metadata/version_api.py
0.92924
0.287887
version_api.py
pypi
"""In-memory representation of the schema of a dataset.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import abc import collections import six import tensorflow as tf _TF_EXAMPLE_ALLOWED_TYPES = [tf.string, tf.int64, tf.float32, tf.bool] class Sch...
/rav-tensorflow-transform-0.7.0.910.tar.gz/rav-tensorflow-transform-0.7.0.910/tensorflow_transform/tf_metadata/dataset_schema.py
0.951897
0.527195
dataset_schema.py
pypi
"""In-memory representation of all metadata associated with a dataset.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow_transform.tf_metadata import dataset_anomalies from tensorflow_transform.tf_metadata import dataset_problem_statements ...
/rav-tensorflow-transform-0.7.0.910.tar.gz/rav-tensorflow-transform-0.7.0.910/tensorflow_transform/tf_metadata/dataset_metadata.py
0.956207
0.421195
dataset_metadata.py
pypi
"""Reader for v1 JSON to `Schema`.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import json import six import tensorflow as tf from tensorflow_transform.tf_metadata import dataset_schema as sch def from_schema_json(schema_json): """Translate a v1...
/rav-tensorflow-transform-0.7.0.910.tar.gz/rav-tensorflow-transform-0.7.0.910/tensorflow_transform/tf_metadata/v1_json/schema_io_v1_json_reader.py
0.871993
0.21305
schema_io_v1_json_reader.py
pypi
"""Utility functions to build input_fns for use with tf.Learn.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import re import six import tensorflow as tf from tensorflow_transform.saved import constants from tensorflow_transform.saved impor...
/rav-tensorflow-transform-0.7.0.910.tar.gz/rav-tensorflow-transform-0.7.0.910/tensorflow_transform/saved/saved_transform_io.py
0.920128
0.435241
saved_transform_io.py
pypi
"""Utility functions to build input_fns for use with tf.Learn.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import six import tensorflow as tf from tensorflow_transform.saved import saved_transform_io from tensorflow_transform.tf_metadata import data...
/rav-tensorflow-transform-0.7.0.910.tar.gz/rav-tensorflow-transform-0.7.0.910/tensorflow_transform/saved/input_fn_maker.py
0.977132
0.496033
input_fn_maker.py
pypi
import collections import copy import datetime import os import threading import uuid import apache_beam as beam from apache_beam.transforms import util from apache_beam.typehints import Any from apache_beam.typehints import Dict from apache_beam.typehints import List from apache_beam.typehints import Union from apa...
/rav-tensorflow-transform-0.7.0.910.tar.gz/rav-tensorflow-transform-0.7.0.910/tensorflow_transform/beam/impl.py
0.635675
0.248762
impl.py
pypi
import six import tensorflow as tf import tensorflow_transform as tft from tensorflow_transform import test_case from tensorflow_transform.beam import impl as beam_impl from tensorflow_transform.beam.tft_beam_io import transform_fn_io parameters = test_case.parameters class TransformTestCase(test_case.TransformTestC...
/rav-tensorflow-transform-0.7.0.910.tar.gz/rav-tensorflow-transform-0.7.0.910/tensorflow_transform/beam/tft_unit.py
0.892659
0.624866
tft_unit.py
pypi
"""Transforms to read/write transform functions from disk.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import apache_beam as beam import tensorflow_transform as tft from tensorflow_transform.beam.tft_beam_io import beam_metadata_io from te...
/rav-tensorflow-transform-0.7.0.910.tar.gz/rav-tensorflow-transform-0.7.0.910/tensorflow_transform/beam/tft_beam_io/transform_fn_io.py
0.855459
0.316818
transform_fn_io.py
pypi
import inspect import math import markdown2 import backtrader as bt from backtrader_plotting.utils import get_params, paramval2str from backtrader_plotting.bokeh.label_resolver import indicator2fullid def _get_parameter_table(params) -> str: params = get_params(params) if len(params) == 0: params[...
/ravand_plotting-1.0.0.tar.gz/ravand_plotting-1.0.0/backtrader_plotting/html/metadata.py
0.411229
0.336358
metadata.py
pypi
from __future__ import (absolute_import, division, print_function, unicode_literals) tableau20 = [ 'steelblue', # 0 'lightsteelblue', # 1 'darkorange', # 2 'peachpuff', # 3 'green', # 4 'lightgreen', # 5 'crimson', # 6 'lightcoral', # 7 'mediumpurple...
/ravand_plotting-1.0.0.tar.gz/ravand_plotting-1.0.0/backtrader_plotting/schemes/btscheme.py
0.792705
0.30876
btscheme.py
pypi
from collections import OrderedDict from typing import List, Tuple from enum import Enum import backtrader as bt from bokeh.models import ColumnDataSource, Paragraph, TableColumn, DataTable, DateFormatter, NumberFormatter, StringFormatter from ..utils import get_params_str class ColummDataType(Enum): DATETIME ...
/ravand_plotting-1.0.0.tar.gz/ravand_plotting-1.0.0/backtrader_plotting/bokeh/datatable.py
0.68595
0.349727
datatable.py
pypi
from collections import defaultdict import functools from typing import Dict, Callable, Tuple from pandas import DataFrame from bokeh.models import ColumnDataSource, Model from bokeh.layouts import column from bokeh.models.widgets import DataTable, TableColumn, NumberFormatter, StringFormatter from backtrader_plotti...
/ravand_plotting-1.0.0.tar.gz/ravand_plotting-1.0.0/backtrader_plotting/bokeh/optbrowser.py
0.666931
0.261685
optbrowser.py
pypi
from jinja2 import Environment, PackageLoader import matplotlib.colors import backtrader as bt from backtrader_plotting.utils import nanfilt from bokeh.models import ColumnDataSource def convert_color(color): """if color is a float value then it is interpreted as a shade of grey and converted to the correspond...
/ravand_plotting-1.0.0.tar.gz/ravand_plotting-1.0.0/backtrader_plotting/bokeh/utils.py
0.664649
0.383872
utils.py
pypi
from collections import defaultdict from copy import copy import logging import backtrader as bt from bokeh.models.widgets import Panel, Tabs, Slider, Button from bokeh.layouts import column, gridplot, row from bokeh.io import curdoc from bokeh.models.widgets import CheckboxGroup, Div, Select from bokeh.document impo...
/ravand_plotting-1.0.0.tar.gz/ravand_plotting-1.0.0/backtrader_plotting/bokeh/live/liveclient.py
0.747063
0.184712
liveclient.py
pypi
<div align="center"> <img src="https://user-images.githubusercontent.com/36446402/217170090-b3090798-bc0c-4ead-aa3b-7b4ced07e3ec.svg" width="200" height="100"> <h1> RavDL - Deep Learning Library </h1> </div> Introducing Raven Protocol's Distributed Deep Learning tool that allows Requesters to easily build, train and...
/ravdl-0.12.tar.gz/ravdl-0.12/README.md
0.928026
0.991692
README.md
pypi
import re import sys import requests as r import json import os from argparse import ArgumentParser import sys __version__ = "1.0" def download(url: str, filename: str, bar: bool = False) -> str: """Download a file from the internet. Args: url (str): URL of file filename (str): Desired name ...
/rave_dl-1.0-py3-none-any.whl/rave_dl.py
0.457379
0.228996
rave_dl.py
pypi
<p align="center"> <img title="Flutterwave" height="200" src="https://flutterwave.com/images/logo/full.svg" width="50%"/> </p> # Flutterwave Python Library. ![Upload Python Package](https://github.com/Flutterwave/rave-python/workflows/Upload%20Python%20Package/badge.svg) ![PyPI](https://img.shields.io/pypi/v/rave_...
/rave_python-1.4.0.tar.gz/rave_python-1.4.0/README.md
0.858125
0.954732
README.md
pypi
class RaveError(Exception): def __init__(self, msg): """ This is an error pertaining to the usage of one of the functions in Rave """ super(RaveError, self).__init__(msg) pass class AccountChargeError(RaveError): """ Raised when account charge has failed """ def __init__(self, err...
/rave_python-1.4.0.tar.gz/rave_python-1.4.0/rave_python/rave_exceptions.py
0.739328
0.212845
rave_exceptions.py
pypi
import time from rave_python.rave_exceptions import IncompletePaymentDetailsError, AuthMethodNotSupportedError # Helper function to generate unique transaction reference def generateTransactionReference(merchantId=None): """ This is a helper function for generating unique transaction references.\n Param...
/rave_python-1.4.0.tar.gz/rave_python-1.4.0/rave_python/rave_misc.py
0.627381
0.150309
rave_misc.py
pypi
class LibraryController: def __init__(self, client): self.client = client def browse(self, *args, **kwargs): """ Browse directories and tracks at the given ``uri``. ``uri`` is a string which represents some directory belonging to a backend. To get the intial root directories for ba...
/raveberry_mopidyapi-1.0.2-py3-none-any.whl/mopidyapi/controllers/library.py
0.932538
0.457864
library.py
pypi
class TracklistController: def __init__(self, client): self.client = client def add(self, *args, **kwargs): """ Add tracks to the tracklist. If ``uris`` is given instead of ``tracks``, the URIs are looked up in the library and the resulting tracks are added to the tracklist. ...
/raveberry_mopidyapi-1.0.2-py3-none-any.whl/mopidyapi/controllers/tracklist.py
0.913107
0.406243
tracklist.py
pypi
class PlaylistsController: def __init__(self, client): self.client = client def as_list(self, *args, **kwargs): """ Get a list of the currently available playlists. Returns a list of :class:`~mopidy.models.Ref` objects referring to the playlists. In other words, no information abou...
/raveberry_mopidyapi-1.0.2-py3-none-any.whl/mopidyapi/controllers/playlists.py
0.88457
0.249173
playlists.py
pypi
from __future__ import absolute_import, print_function import sys import base64 import socket import logging import time import json import random import requests import urllib # Python 2.x / 3.x module name differences try: from urllib import parse as urlparse except ImportError: import urlparse pyver = sys...
/ravello-sdk-2.17.tar.gz/ravello-sdk-2.17/lib/ravello_sdk.py
0.528533
0.179818
ravello_sdk.py
pypi
steps = [ 7, 8, 9, 10, 11, 12, 13, 14, 16, 17, 19, 21, 23, 25, 28, 31, 34, 37, 41, 45, 50, 55, 60, 66, 73, 80, 88, 97, 107, 118, 130, 143, 157, 173, 190, 209, 230, 253, 279, 307, 337, 371, 408, 449, 494, 544, 598, 658, 724, 796, 876, 963, 1060, 1166, 1282, 1411, 1552, 1707, 1878, 2066, 2...
/raven-formats-1.6.tar.gz/raven-formats-1.6/src/raven_formats/adpcm.py
0.602296
0.445891
adpcm.py
pypi
from collections import namedtuple from struct import pack, unpack, calcsize import json, wave, glob, math from operator import itemgetter from pathlib import Path from importlib.resources import open_text from argparse import ArgumentParser from . import adpcm Header = namedtuple('Header', [ 'size', 'header_s...
/raven-formats-1.6.tar.gz/raven-formats-1.6/src/raven_formats/zsnd.py
0.571886
0.243316
zsnd.py
pypi
#External Modules------------------------------------------------------------------------------------ import abc import numpy as np #External Modules End-------------------------------------------------------------------------------- #Internal Modules--------------------------------------------------------------------...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/MetricDistributor.py
0.657428
0.420362
MetricDistributor.py
pypi
import numpy as np import pandas as pd from .BaseClasses import MessageUser class CsvLoader(MessageUser): """ Class aimed to load the CSV files """ acceptableUtils = ['pandas', 'numpy'] def __init__(self): """ Constructor @ In, None @ Out, None """ super().__init__() sel...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/CsvLoader.py
0.538012
0.186188
CsvLoader.py
pypi
import sys import time import bisect import builtins from .utils import utils _starttime = time.time() """ HOW THIS MODULE WORKS The intention is for a single instance of the MessageHandler class to exist in any simulation. Currently, that instance is created in the Simulation initialization and propogated through ...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/MessageHandler.py
0.532425
0.344195
MessageHandler.py
pypi
import numpy as np from .doe_factorial import ff2n from .doe_repeat_center import repeat_center __all__ = ['bbdesign'] def bbdesign(n, center=None): """ Create a Box-Behnken design Parameters ---------- n : int The number of factors in the design Optional -------- cen...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/contrib/pyDOE/doe_box_behnken.py
0.749821
0.60842
doe_box_behnken.py
pypi
import numpy as np def grep(haystack, needle): """ search for needle in haystack """ start = 0 while True: start = haystack.find(needle, start) if start==-1: return yield start start += len(needle) def build_regression_matrix(H, model, build=None): "...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/contrib/pyDOE/build_regression_matrix.py
0.460532
0.597725
build_regression_matrix.py
pypi
import numpy as np from .doe_factorial import ff2n from .doe_star import star from .doe_union import union from .doe_repeat_center import repeat_center __all__ = ['ccdesign'] def ccdesign(n, center=(4, 4), alpha='orthogonal', face='circumscribed'): """ Central composite design Parameters --------...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/contrib/pyDOE/doe_composite.py
0.871187
0.744865
doe_composite.py
pypi
import math import numpy as np from scipy.linalg import toeplitz, hankel __all__ = ['pbdesign'] def pbdesign(n): """ Generate a Plackett-Burman design Parameter --------- n : int The number of factors to create a matrix for. Returns ------- H : 2d-array An ort...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/contrib/pyDOE/doe_plackett_burman.py
0.636014
0.672402
doe_plackett_burman.py
pypi
from ..utils import mathUtils, xmlUtils from .BaseType import BaseType class BaseEntity(BaseType): """ Implement the common base class for base RAVEN Entities These entities may be thought of as "handlers" for the Interfaces, which implement strategies. Examples of Entities include Sampler, OutStream, Mo...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/BaseClasses/BaseEntity.py
0.547464
0.285212
BaseEntity.py
pypi
#External Modules------------------------------------------------------------------------------------ import numpy as np import copy #External Modules End-------------------------------------------------------------------------------- #Internal Modules-------------------------------------------------------------------...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Metrics/metrics/DSS.py
0.646125
0.765506
DSS.py
pypi
#External Modules------------------------------------------------------------------------------------ import numpy as np import copy import scipy.spatial.distance as spatialDistance #External Modules End-------------------------------------------------------------------------------- #Internal Modules------------------...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Metrics/metrics/DTW.py
0.663451
0.536859
DTW.py
pypi
#External Modules------------------------------------------------------------------------------------ import numpy as np import math import scipy #External Modules End-------------------------------------------------------------------------------- #Internal Modules------------------------------------------------------...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Metrics/metrics/MetricUtilities.py
0.562177
0.564339
MetricUtilities.py
pypi
import numpy as np import math import pandas as pd from scipy import stats def buildSegments(array, segLength: int): """ This method groups elements of an array into segments of length segLength @In array, array-like containing data to be grouped into segments. @In seg_length, size of the segment desir...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Metrics/metrics/StatsTestsUtils.py
0.577257
0.89275
StatsTestsUtils.py
pypi
import abc from ...BaseClasses import BaseInterface from ...utils import utils class MetricInterface(utils.metaclass_insert(abc.ABCMeta, BaseInterface)): """ This is the general interface to any RAVEN metric object. It contains an initialize, a _readMoreXML, and an evaluation (i.e., distance) methods """ ...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Metrics/metrics/MetricInterface.py
0.872388
0.453564
MetricInterface.py
pypi
import numpy as np from scipy import stats from .MetricInterface import MetricInterface from Metrics.metrics import MetricUtilities from utils import InputData import StatsTestsUtils as sU class StatsTestMetric(MetricInterface): """ Metric to compare two datasets using statistical tests. """ available_tests...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Metrics/metrics/StatsTestMetric.py
0.699973
0.388299
StatsTestMetric.py
pypi
#External Modules------------------------------------------------------------------------------------ import os #External Modules End-------------------------------------------------------------------------------- #Internal Modules------------------------------------------------------------------------------------ fro...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Models/PostProcessor.py
0.571647
0.243406
PostProcessor.py
pypi
import os import numpy as np from scipy import interpolate from scipy import integrate import copy from .PostProcessorReadyInterface import PostProcessorReadyInterface from ...utils import InputData, InputTypes class HistorySetSampling(PostProcessorReadyInterface): """ This Post-Processor performs the conversion...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Models/PostProcessors/HistorySetSampling.py
0.629319
0.418637
HistorySetSampling.py
pypi
#External Modules------------------------------------------------------------------------------------ import copy import abc import os from xarray import Dataset as ds #External Modules End-------------------------------------------------------------------------------- #Internal Modules--------------------------------...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Models/PostProcessors/PostProcessorInterface.py
0.4436
0.3628
PostProcessorInterface.py
pypi
#External Modules------------------------------------------------------------------------------------ import os import copy import itertools import numpy as np #External Modules End-------------------------------------------------------------------------------- from .PostProcessorReadyInterface import PostProcessorRea...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Models/PostProcessors/HistorySetSync.py
0.486088
0.277299
HistorySetSync.py
pypi
#Internal Modules--------------------------------------------------------------- from ... import Files from ...utils import InputData, InputTypes from ...DataObjects import DataObject from ...Models.PostProcessors import PostProcessorInterface #Internal Modules End-------------------------------------------------------...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Models/PostProcessors/PostProcessorReadyInterface.py
0.634543
0.546194
PostProcessorReadyInterface.py
pypi
#External Modules--------------------------------------------------------------- import numpy as np #External Modules End----------------------------------------------------------- #Internal Modules--------------------------------------------------------------- from .PostProcessorInterface import PostProcessorInterfac...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Models/PostProcessors/ParetoFrontierPostProcessor.py
0.467089
0.387864
ParetoFrontierPostProcessor.py
pypi
#External Modules------------------------------------------------------------------------------------ import numpy as np import xarray from scipy import spatial import copy #External Modules End-------------------------------------------------------------------------------- #Internal Modules---------------------------...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Models/PostProcessors/SafestPoint.py
0.54468
0.410786
SafestPoint.py
pypi
import numpy as np from .PostProcessorInterface import PostProcessorInterface from ...utils import InputData, InputTypes from ...TSA import TSAUser class TSACharacterizer(PostProcessorInterface, TSAUser): """ Maps realizations from contiguous time histories to characterization space using TSA algorithms. """ ...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Models/PostProcessors/TSACharacterizer.py
0.746693
0.308763
TSACharacterizer.py
pypi
import copy import numpy as np import xarray as xr from ...utils import InputData, InputTypes from .PostProcessorReadyInterface import PostProcessorReadyInterface class HistorySetDelay(PostProcessorReadyInterface): """ Class to get lagged or delayed data out of a history set. """ @classmethod def getInpu...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Models/PostProcessors/HistorySetDelay.py
0.478285
0.424323
HistorySetDelay.py
pypi
import os import numpy as np from scipy import interpolate import copy from .PostProcessorReadyInterface import PostProcessorReadyInterface from ...utils import InputData, InputTypes class dataObjectLabelFilter(PostProcessorReadyInterface): """ This Post-Processor filters out the points or histories accordingly ...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Models/PostProcessors/dataObjectLabelFilter.py
0.486819
0.395543
dataObjectLabelFilter.py
pypi
#External Modules------------------------------------------------------------------------------------ import numpy as np import xarray as xr #External Modules End-------------------------------------------------------------------------------- #Internal Modules-----------------------------------------------------------...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Models/PostProcessors/Validations/Probabilistic.py
0.585812
0.381623
Probabilistic.py
pypi
#External Modules------------------------------------------------------------------------------------ import copy import abc import numpy as np import itertools from collections import OrderedDict from ...Decorators.Parallelization import Parallel #External Modules End---------------------------------------------------...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Models/HybridModels/HybridModelBase.py
0.622918
0.38367
HybridModelBase.py
pypi
#External Modules------------------------------------------------------------------------------------ import copy import numpy as np from numpy import linalg import time #External Modules End-------------------------------------------------------------------------------- #Internal Modules------------------------------...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/Models/HybridModels/HybridModel.py
0.601711
0.338432
HybridModel.py
pypi
import numpy as np from ..utils import InputData, InputTypes, xmlUtils from .TimeSeriesAnalyzer import TimeSeriesGenerator, TimeSeriesCharacterizer # utility methods class Wavelet(TimeSeriesGenerator, TimeSeriesCharacterizer): """ Perform Discrete Wavelet Transformation on time-dependent data. """ @classm...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/TSA/Wavelet.py
0.679179
0.455925
Wavelet.py
pypi
from __future__ import division, print_function, unicode_literals, absolute_import import os import copy from subprocess import Popen from ravenframework.CodeInterfaceBaseClass import CodeInterfaceBase class BisonMeshScript(CodeInterfaceBase): """ This class is used to couple raven to the Bison Mesh Generation ...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/CodeInterfaceClasses/MooseBasedApp/BisonMeshScriptInterface.py
0.589126
0.18984
BisonMeshScriptInterface.py
pypi
import copy from ravenframework.CodeInterfaceBaseClass import CodeInterfaceBase from ..MooseBasedApp.MooseBasedAppInterface import MooseBasedApp from .CubitInterface import Cubit class CubitMoose(CodeInterfaceBase): #MooseBasedAppInterface,CubitInterface): """ This class provides the means to generate a ...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/CodeInterfaceClasses/MooseBasedApp/CubitMooseInterface.py
0.549278
0.192596
CubitMooseInterface.py
pypi
from __future__ import division, print_function, unicode_literals, absolute_import import os import copy from subprocess import Popen from ravenframework.CodeInterfaceBaseClass import CodeInterfaceBase class Cubit(CodeInterfaceBase): """ This class is used to couple raven to Cubit journal files for input to gene...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/CodeInterfaceClasses/MooseBasedApp/CubitInterface.py
0.589244
0.191026
CubitInterface.py
pypi
import copy from ravenframework.CodeInterfaceBaseClass import CodeInterfaceBase from ..MooseBasedApp.MooseBasedAppInterface import MooseBasedApp from .BisonMeshScriptInterface import BisonMeshScript class BisonAndMesh(CodeInterfaceBase):#MooseBasedAppInterface,BisonMeshScriptInterface): """ This class provid...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/CodeInterfaceClasses/MooseBasedApp/BisonAndMeshInterface.py
0.531939
0.202798
BisonAndMeshInterface.py
pypi
from xml.etree import ElementTree as ET from xml.dom import minidom def writeXmlForDET(filename,trigger,listDict,stopInfo): """ Method to write the XML file containing the information regarding the stop condition for branching in DET method @ In, filename, string, filename (with absolute path) of the XML...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/CodeInterfaceClasses/Utilities/dynamicEventTreeUtilities.py
0.40028
0.211152
dynamicEventTreeUtilities.py
pypi
from __future__ import division, print_function, absolute_import import os import lxml.etree as ET from ravenframework.CodeInterfaceBaseClass import CodeInterfaceBase class Neutrino(CodeInterfaceBase): """ Provides code to interface RAVEN to Neutrino code The name of this class represents the type in the R...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/CodeInterfaceClasses/Neutrino/neutrinoInterface.py
0.690037
0.210807
neutrinoInterface.py
pypi
from __future__ import division, print_function, unicode_literals, absolute_import import os from decimal import Decimal import xml.etree.ElementTree as ET import re class MaterialParser(): """ Parses the PHISICS xml material file and replaces the nominal values by the perturbed values. """ def __init__(self...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/CodeInterfaceClasses/PHISICS/MaterialParser.py
0.607663
0.238295
MaterialParser.py
pypi
from __future__ import division, print_function, unicode_literals, absolute_import import os from decimal import Decimal import xml.etree.ElementTree as ET from xml.etree.ElementTree import Element, SubElement, Comment from xml.dom import minidom class XSCreator(): """ Creates a perturbed cross section xml file ...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/CodeInterfaceClasses/PHISICS/XSCreator.py
0.703244
0.246862
XSCreator.py
pypi
import os import re from . import combine import xml.etree.ElementTree as ET import copy from ravenframework.CodeInterfaceBaseClass import CodeInterfaceBase from . import phisicsdata from ..RELAP5 import relapdata from .PhisicsInterface import Phisics from ..RELAP5.Relap5Interface import Relap5 class PhisicsRelap5(Co...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/CodeInterfaceClasses/PHISICS/PhisicsRelapInterface.py
0.447219
0.201695
PhisicsRelapInterface.py
pypi
import os import copy import shutil from ravenframework.utils import utils import xml.etree.ElementTree as ET from ..Generic import GenericParser from ravenframework.CodeInterfaceBaseClass import CodeInterfaceBase from .tritonAndOrigenData import origenAndTritonData class Scale(CodeInterfaceBase): """ Scale Int...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/CodeInterfaceClasses/SCALE/ScaleInterface.py
0.460774
0.206194
ScaleInterface.py
pypi
#External Modules--------------------begin import csv #External Modules--------------------end #Internal Modules--------------------begin #Internal Modules--------------------end def parseLine(line): """ Parse composition line by deleting whitespace and separating the isotope and atomic density. @ In, line,...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/CodeInterfaceClasses/SERPENT/serpentOutputParser.py
0.478773
0.464355
serpentOutputParser.py
pypi
import os import numpy class SimulateData: """ Class that parses output of SIMULATE3 for a multiple run Partially copied from MOF work """ def __init__(self,filen): """ Constructor @ In, filen, string or dict, file name to be parsed, read one file at a time? @ Out, None """ self...
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/CodeInterfaceClasses/SIMULATE3/SimulateData.py
0.472197
0.347565
SimulateData.py
pypi