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
# rokso-migrations A NOT so simple database migrations utility for Postgresql based database migration in python. Rokso for Postgresql supports multi-schema migrations of a single database. ## Features * Create your migrations simply with CLI. * Suitable for large projects because we maintain migration files under a...
/roksopsql-0.2.4.tar.gz/roksopsql-0.2.4/README.md
0.511717
0.819244
README.md
pypi
import socket from collections import ChainMap from typing import Dict, List from .custom_types import DiscoveryData, SocketConnection class Scanner: """ Handles device discovery and socket connection data parsing. *Attributes: discovery_timeout (int): Timeout for each device's discovery ping re...
/roku-scanner-1.0.4.tar.gz/roku-scanner-1.0.4/roku_scanner/scanner.py
0.830525
0.234002
scanner.py
pypi
import json import copy from src.utils.file_to_string_utils import FileToStringUtils from src.driver.element import Element from src.driver.by import By from src.exceptions.no_such_element_exception import NoSuchElementException class Finder: session = None http_client = None def __init__(self, http_clie...
/rokuality-python-1.5.3.tar.gz/rokuality-python-1.5.3/src/driver/finder.py
0.715921
0.214897
finder.py
pypi
import json import copy from src.exceptions.screen_exception import ScreenException from src.utils.file_to_string_utils import FileToStringUtils from src.driver.screen_text import ScreenText from src.driver.screen_size import ScreenSize class Screen: session = None http_client = None def __init__(self, h...
/rokuality-python-1.5.3.tar.gz/rokuality-python-1.5.3/src/driver/screen.py
0.745769
0.202818
screen.py
pypi
class Element: element_y = None element_x = None element_width = None element_height = None element_confidence = None element_text = None session_id = None element_id = None def __init__(self, element_json): self.element_x = element_json['element_x'] self.element_y ...
/rokuality-python-1.5.3.tar.gz/rokuality-python-1.5.3/src/driver/element.py
0.813794
0.358493
element.py
pypi
import copy from src.exceptions.server_failure_exception import ServerFailureException from src.enums.session_status import SessionStatus class Options: session = None http_client = None def __init__(self, http_client, session): self.session = session self.http_client = http_client ...
/rokuality-python-1.5.3.tar.gz/rokuality-python-1.5.3/src/driver/options.py
0.68437
0.248919
options.py
pypi
import os import sys import glob # returns the path of the executed file def get_dir(): """ returns the directory path of the python file executed """ return os.path.dirname(sys.argv[0]) def get_file_paths_from_wildcard(wildcard): """ returns all file paths which fit the wildcard """ if not os.path.is...
/rol1510_utility-0.2.2-py3-none-any.whl/utility/file_io.py
0.444806
0.305192
file_io.py
pypi
from collections import deque import copy def rotate_list(data, amount): """ rotates a list by the specified amount eg: rotate_list([1,2,3], 1) -> returns [3,1,2] Args: data: the list to rotate amount: how many times Returns: the rotated list """ d = deque(data) ...
/rol1510_utility-0.2.2-py3-none-any.whl/utility/misc.py
0.896126
0.599602
misc.py
pypi
from dataclasses import InitVar, dataclass, field import logging import mido from .roland_instruments import Instruments from .roland_address_map import RolandAddressMap from .roland_utils import ( ROLAND_ID_BYTES, InvalidMessageException, RolandCmd, get_checksum, ) logger = logging.getLogger(__name__)...
/roland_piano-0.4.0.tar.gz/roland_piano-0.4.0/src/roland_piano/roland_messages.py
0.516595
0.296756
roland_messages.py
pypi
from enum import Enum class RolandAddressMap(Enum): # 010000xx serverSetupFileName = b"\x01\x00\x00\x00" # 010001xx songToneLanguage = b"\x01\x00\x01\x00" keyTransposeRO = b"\x01\x00\x01\x01" songTransposeRO = b"\x01\x00\x01\x02" sequencerStatus = b"\x01\x00\x01\x03" sequencerMeasure =...
/roland_piano-0.4.0.tar.gz/roland_piano-0.4.0/src/roland_piano/roland_address_map.py
0.436382
0.392453
roland_address_map.py
pypi
*********** Atmospheres *********** Using Model Atmospheres in Roland ================================= |roland| has an :class:`.Abund` class for single abundance values and an :class:`.Abundances` class that holds the abundances for all elements. These are handy for modifying abundances when running synthesis. Le...
/roland-1.0.0.tar.gz/roland-1.0.0/docs/atmosphere.rst
0.830594
0.807461
atmosphere.rst
pypi
********** Abundances ********** Using Abundances in Roland ========================== |roland| has an :class:`.Abund` class for single abundance values and an :class:`.Abundances` class that holds the abundances for all elements. These are handy for modifying abundances when running synthesis. Let's import the :...
/roland-1.0.0.tar.gz/roland-1.0.0/docs/abundance.rst
0.813794
0.690839
abundance.rst
pypi
********* Linelists ********* Using Linelists in Roland ========================= |roland| has an :class:`.Abund` class for single abundance values and an :class:`.Abundances` class that holds the abundances for all elements. These are handy for modifying abundances when running synthesis. Let's import the :class...
/roland-1.0.0.tar.gz/roland-1.0.0/docs/linelist.rst
0.808408
0.709497
linelist.rst
pypi
********* Synthesis ********* Using Synthesis in Roland ========================== |roland| has an :class:`.Abund` class for single abundance values and an :class:`.Abundances` class that holds the abundances for all elements. These are handy for modifying abundances when running synthesis. Let's import the :clas...
/roland-1.0.0.tar.gz/roland-1.0.0/docs/spectrumizer.rst
0.800809
0.777849
spectrumizer.rst
pypi
import pydot from spacy.tokens import Token import visualise_spacy_tree import visualise_spacy_pattern from role_pattern_nlp import util ROLE_COLOURS = [ 'deeppink1', 'purple', 'dodgerblue', 'cyan', ] NULL_COLOUR = 'grey' DEFAULT_COLOUR = 'aquamarine' DEFAULT_STYLE_ATTRS = { 'fontname': 'palati...
/role_pattern_nlp-0.2.0-py3-none-any.whl/role_pattern_nlp/role_pattern_vis.py
0.407333
0.285958
role_pattern_vis.py
pypi
from pprint import pformat, pprint import itertools import spacy_pattern_builder from role_pattern_nlp.role_pattern import RolePattern from role_pattern_nlp import mutate from role_pattern_nlp import validate from role_pattern_nlp import util from role_pattern_nlp.constants import ( DEFAULT_BUILD_PATTERN_TOKEN_FEAT...
/role_pattern_nlp-0.2.0-py3-none-any.whl/role_pattern_nlp/role_pattern_builder.py
0.568775
0.255239
role_pattern_builder.py
pypi
from pprint import pprint import spacy_pattern_builder from role_pattern_nlp import role_pattern_builder from role_pattern_nlp.role_pattern import RolePattern from role_pattern_nlp.match import RolePatternMatch from role_pattern_nlp import util def pattern_fitness(pattern, matches, pos_matches, neg_matches): true...
/role_pattern_nlp-0.2.0-py3-none-any.whl/role_pattern_nlp/mutate.py
0.440229
0.439807
mutate.py
pypi
# Role Questions This repository contains the official implementation of the method described in: [Asking It All: Generating Contextualized Questions for Any Semantic Role](http://https://aclanthology.org/2021.emnlp.XXXX) by [Valentina Pyatkin](https://valentinapy.github.io) (BIU), [Paul Roit](https://paulroit.com) (B...
/roleqgen-0.0.1.tar.gz/roleqgen-0.0.1/README.md
0.846895
0.903038
README.md
pypi
import networkx as nx import numpy as np from scipy.sparse import identity from sklearn.preprocessing import normalize def compute_iter(X, T_indptr, T_data, theta, n, w, dim): for i in range(n): a, b = T_indptr[i:i+2] probabilities = np.expand_dims(T_data[a:b], -1) phi = np.mean(np.exp(1j ...
/rolewalk-1.0.1-py3-none-any.whl/rolewalk.py
0.651909
0.557665
rolewalk.py
pypi
# RolexBoost Unofficial implementation of D. Yang, H. Lee and D. Lim, "RolexBoost: A Rotation-Based Boosting Algorithm With Adaptive Loss Functions," in IEEE Access, vol. 8, pp. 41037-41044, 2020, doi: 10.1109/ACCESS.2020.2976822. This is the course project of Fundamentals of Machine Learning, Tsinghua University, 20...
/rolexboost-0.0.1.tar.gz/rolexboost-0.0.1/README.md
0.623262
0.911061
README.md
pypi
from __future__ import annotations from math import e from math import pi from typing import Any from typing import Callable from pyparsing import CaselessKeyword from pyparsing import CaselessLiteral from pyparsing import infixNotation from pyparsing import Literal from pyparsing import oneOf from pyparsing import o...
/roll-cli-2.0.0.tar.gz/roll-cli-2.0.0/src/roll_cli/parser/diceparser.py
0.843283
0.29041
diceparser.py
pypi
from __future__ import annotations from enum import Enum from math import ceil from math import factorial from math import sqrt from .rollresults import RollResults class Operators(Enum): """Helper operator names for handling operations. This makes it so that we don't have magic strings everywhere. Ins...
/roll-cli-2.0.0.tar.gz/roll-cli-2.0.0/src/roll_cli/parser/types/evaluationresults.py
0.923368
0.409752
evaluationresults.py
pypi
from bisect import bisect_left, bisect_right from typing import Iterator, Tuple class InitiativeQueue: """Initiative tracking queue. Its external interface resembles that of a list, supporting iteration and item accessing. This is effectively a priority queue, but is implemented with O(n) insert...
/roll-for-initiative-0.16.1.tar.gz/roll-for-initiative-0.16.1/rfi/initiative.py
0.915351
0.526221
initiative.py
pypi
import sympy as sp import sympy.physics.mechanics as me from inspect import signature import pandas as pd from sympy.core.numbers import Float import numpy as np def substitute_dynamic_symbols(expression): dynamic_symbols = me.find_dynamicsymbols(expression) derivatives = find_derivatives(dynamic_symbols) ...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/substitute_dynamic_symbols.py
0.656658
0.382776
substitute_dynamic_symbols.py
pypi
import sympy as sp import sympy.physics.mechanics as me import rolldecayestimators.special_symbol as ss import sympy as sp import sympy.physics.mechanics as me Fn = ss.Symbol(name='F_n',description='Froude number',unit='-') t = ss.Symbol(name='t',description='time',unit='s') I = ss.Symbol(name='I',description='tota...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/symbols.py
0.658966
0.454291
symbols.py
pypi
import numpy as np import pandas as pd from rolldecayestimators import lambdas def sample_increase(X, increase=5): N = len(X) * increase t_interpolated = np.linspace(X.index[0], X.index[-1], N) X_interpolated = pd.DataFrame(index=t_interpolated) for key, values in X.items(): X_interpolated[key...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/measure.py
0.763836
0.630856
measure.py
pypi
import numpy as np import pandas as pd from scipy.integrate import odeint from rolldecayestimators import DirectEstimator from rolldecayestimators.symbols import * from rolldecayestimators.substitute_dynamic_symbols import lambdify dGM = sp.symbols('dGM') lhs = phi_dot_dot + 2*zeta*omega0*phi_dot + omega0**2*phi+(dGM*...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/direct_estimator_improved.py
0.922126
0.550547
direct_estimator_improved.py
pypi
import sympy as sp from rolldecayestimators.symbols import * from sympy import pi,sqrt from rolldecayestimators import equations from rolldecayestimators import symbols eq_B_E_star_hat = sp.Eq(B_E0_hat, 8/(3*pi)*B_E_star_hat # (6) (part 1) ) eq_B_E0_hat = sp.Eq(B_E0_ha...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/equations_ikeda_naked.py
0.635675
0.308164
equations_ikeda_naked.py
pypi
import numpy as np from sklearn.base import clone from sklearn.model_selection import KFold import matplotlib.pyplot as plt def model_filter(group, models): return group.name in models def cross_validates(model, data, features, label='B_e_hat', n_splits=5, itterations=10): scores = [] for i in range(itter...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/cross_validation.py
0.537041
0.589303
cross_validation.py
pypi
import numpy as np import pandas as pd from rolldecayestimators.ikeda import Ikeda import rolldecayestimators.ikeda import rolldecayestimators.simplified_ikeda as si from rolldecayestimators import ikeda_speed class SimplifiedIkeda(Ikeda): """ Class that helps with running various calculations known as th...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/simplified_ikeda_class.py
0.744563
0.577555
simplified_ikeda_class.py
pypi
import numpy as np import pandas as pd import matplotlib.pyplot as plt from rolldecayestimators.simplified_ikeda import calculate_roll_damping, SimplifiedIkedaInputError def variate_ship(ship, key, changes): N = len(changes) data = np.tile(ship.values, (N, 1)) df = pd.DataFrame(data=data, columns=ship.ind...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/sensitivity.py
0.567577
0.373476
sensitivity.py
pypi
from numpy import sqrt,pi,tanh, exp, cos, sin, arccos import numpy as np def eddy_sections(bwl:np.ndarray, a_1:np.ndarray, a_3:np.ndarray, sigma:np.ndarray, H0:np.ndarray, Ts:np.ndarray, OG:float, R:float, wE:float, fi_a:float, ra=1000.0): """ Calculation of eddy damping according to Ikeda, Y., ...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/ikeda_naked.py
0.867415
0.786459
ikeda_naked.py
pypi
import numpy as np import pandas as pd from scipy.optimize import curve_fit from sklearn.utils.validation import check_is_fitted import inspect from rolldecayestimators.substitute_dynamic_symbols import lambdify from rolldecayestimators.symbols import * from rolldecayestimators import equations from rolldecayestimat...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/analytical_linear_estimator.py
0.850469
0.554169
analytical_linear_estimator.py
pypi
import numpy as np from numpy import pi, abs, tanh, cos, sin, exp, sqrt, arccos def calculate_rmax(M, a_1, a_3, psi): r_maxs = M * sqrt( ((1 + a_1) * sin(psi) - a_3 * sin(3 * psi)) ** 2 + ((1 - a_1) * cos(psi) + a_3 * cos(3 * psi)) ** 2) return r_maxs def eddy_sections(bwl:np.ndarray, a_1:np.ndarray, ...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/ikeda_eddy.py
0.75274
0.751762
ikeda_eddy.py
pypi
import numpy as np import pandas as pd from scipy.integrate import odeint from rolldecayestimators import DirectEstimator from rolldecayestimators.symbols import * from rolldecayestimators import equations, symbols from rolldecayestimators.substitute_dynamic_symbols import lambdify, run from sklearn.utils.validation im...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/direct_estimator_cubic.py
0.822153
0.575469
direct_estimator_cubic.py
pypi
import numpy as np import pandas as pd from scipy.integrate import odeint from rolldecayestimators.substitute_dynamic_symbols import lambdify from rolldecayestimators.symbols import * import inspect from scipy.optimize import curve_fit from rolldecayestimators.direct_estimator import DirectEstimator lhs = phi_dot_do...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/direct_linear_estimator.py
0.897437
0.432003
direct_linear_estimator.py
pypi
from sklearn.metrics import r2_score import pandas as pd pd.options.display.max_rows = 999 pd.options.display.max_columns = 999 pd.set_option("display.max_columns", None) import numpy as np from sklearn.base import BaseEstimator from sklearn.pipeline import Pipeline import os.path from rolldecayestimators.substitute_d...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/polynom_estimator.py
0.899784
0.579936
polynom_estimator.py
pypi
import sympy as sp from rolldecayestimators.symbols import * # Some of the symbols can be nicer displayed using this: nicer_LaTeX = [ (B_E0_hat, sp.symbols('\hat{B}_{E0}')), (B_E_star_hat, sp.symbols('\hat{B^*}_{E}')), (B_W_star_hat, sp.symbols('\hat{B^*}_{W}')), (B_F_star_hat, sp.symbo...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/equations.py
0.592077
0.556098
equations.py
pypi
import sympy as sp from collections import OrderedDict # my custom class with description attribute class Symbol(sp.Symbol): def __new__(self, name, description='', unit=''): obj = sp.Symbol.__new__(self, name) obj.description = description obj.unit = unit return obj class Coeffic...
/rolldecay_estimators-0.6.0-py3-none-any.whl/rolldecayestimators/special_symbol.py
0.765593
0.285646
special_symbol.py
pypi
import enum import string from typing import Optional, List import kivalu import requests import requests_unixsocket import yaml KEY_DEFAULT = "lxd-stack" URL_DEFAULT = "http+unix://%2Fvar%2Fsnap%2Flxd%2Fcommon%2Flxd%2Funix.socket" class ResourceType(enum.Enum): """ Enumerates the various LXD resource types...
/rollin-lxd-0.10.0.tar.gz/rollin-lxd-0.10.0/rollin_lxd/__init__.py
0.735452
0.228802
__init__.py
pypi
from openpyxl import Workbook, load_workbook from openpyxl.worksheet.worksheet import Worksheet from openpyxl.styles import * import logging logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(filename)s[line:%(lineno)d] - %(levelname)s: %(message)s') # logging.basicConfig函数对日志的输出格式及方...
/rolling_in_the_deep-0.1.3-py3-none-any.whl/rolling_king/jason/openpyxl/excel_util.py
0.474144
0.165357
excel_util.py
pypi
from typing import Any, Dict, Generator, Iterable, List, Optional, Union # noqa: F401 import pydot # noqa: F401 from collections import OrderedDict from pathlib import Path import logging import os import re import shutil from IPython.display import HTML, Image import pandas as pd Filepath = Union[str, Path] LOG_L...
/rolling-pin-0.9.3.tar.gz/rolling-pin-0.9.3/rolling_pin/tools.py
0.772831
0.173218
tools.py
pypi
from typing import Any, Dict, List, Union # noqa: F401 from IPython.display import HTML, Image # noqa: F401 from copy import deepcopy from itertools import chain from pathlib import Path import re from lunchbox.enforce import Enforce from pandas import DataFrame import yaml from rolling_pin.blob_etl import BlobETL...
/rolling-pin-0.9.3.tar.gz/rolling-pin-0.9.3/rolling_pin/conform_etl.py
0.908252
0.337013
conform_etl.py
pypi
from typing import Dict, List # noqa: F401 from pathlib import Path from schematics import Model from schematics.exceptions import ValidationError from schematics.types import ListType, ModelType, StringType Rules = List[Dict[str, str]] # -----------------------------------------------------------------------------...
/rolling-pin-0.9.3.tar.gz/rolling-pin-0.9.3/rolling_pin/conform_config.py
0.883851
0.295128
conform_config.py
pypi
from typing import Any, Dict, List, Union # noqa: F401 import json import os import re from pathlib import Path import cufflinks as cf import numpy as np import pandas as pd from pandas import DataFrame import radon.complexity from radon.cli import Config from radon.cli import CCHarvester, HCHarvester, MIHarvester, ...
/rolling-pin-0.9.3.tar.gz/rolling-pin-0.9.3/rolling_pin/radon_etl.py
0.790409
0.35145
radon_etl.py
pypi
from typing import Any, Type, TypeVar, Union # noqa: F401 from copy import deepcopy from pathlib import Path import os from lunchbox.enforce import Enforce import toml from rolling_pin.blob_etl import BlobETL from toml.decoder import TomlDecodeError T = TypeVar('T', bound='TomlETL') # -----------------------------...
/rolling-pin-0.9.3.tar.gz/rolling-pin-0.9.3/rolling_pin/toml_etl.py
0.845911
0.317201
toml_etl.py
pypi
import logging from src.models.strategy.blue_green.steps.check_active_step import CheckActiveStep from src.models.strategy.blue_green.steps.check_autoscaling_size_step import ( CheckAutoscalingSizeStep, ) from src.models.strategy.blue_green.steps.rereoute_traffic_step import ReRouteTrafficStep from src.models.stra...
/rolling-replacer-1.2.0.tar.gz/rolling-replacer-1.2.0/src/models/strategy/blue_green/strategy.py
0.754644
0.293848
strategy.py
pypi
def update_status_RN(propfile,targetnumber,targetname,status,visitdigit,visitN,filters,sheet_df,verbal=True): """ This function updates visits in the propfile given (targetnumber,targetname) with status R or N. For R (repeat) status, the target is already existed in the propfile, but we would like to change...
/rolling_snapshot_proposal_editor-1.2.0a1-py3-none-any.whl/rolling_snapshot_proposal_editor/update_status_RN.py
0.41739
0.430327
update_status_RN.py
pypi
``` import os,glob t = glob.glob('*') if 'tmp' in t: os.system('rm -R tmp') os.system('mkdir tmp') ##### Example: read Google sheet from rolling_snapshot_proposal_editor.googlesheetreader import GoogleSheetReader CREDENTIAL = '/Users/kbhirombhakdi/Downloads/client_secret_560341155382-s324iuntpd9djf1avojfh6u1e4shu0...
/rolling_snapshot_proposal_editor-1.2.0a1-py3-none-any.whl/rolling_snapshot_proposal_editor/demo/demo_1.0.0.ipynb
0.410874
0.153867
demo_1.0.0.ipynb
pypi
``` import os,glob t = glob.glob('*') if 'tmp' in t: os.system('rm -R tmp') os.system('mkdir tmp') ##### Example: read Google sheet from rolling_snapshot_proposal_editor.googlesheetreader import GoogleSheetReader CREDENTIAL = '/Users/kbhirombhakdi/Downloads/client_secret_560341155382-s324iuntpd9djf1avojfh6u1e4shu0...
/rolling_snapshot_proposal_editor-1.2.0a1-py3-none-any.whl/rolling_snapshot_proposal_editor/demo/.ipynb_checkpoints/demo_1.0.0-checkpoint.ipynb
0.410874
0.153867
demo_1.0.0-checkpoint.ipynb
pypi
def update_status_RN(propfile,targetnumber,targetname,status,visitdigit,visitN,filters,sheet_df,verbal=True): """ This function updates visits in the propfile given (targetnumber,targetname) with status R or N. For R (repeat) status, the target is already existed in the propfile, but we would like to change...
/rolling_snapshot_proposal_editor-1.2.0a1-py3-none-any.whl/rolling_snapshot_proposal_editor/.ipynb_checkpoints/update_status_RN-checkpoint.py
0.41739
0.430327
update_status_RN-checkpoint.py
pypi
from queue import Queue from rolling_technical_indicators.model import Node class ExponentialMovingAverage(Node): def __init__(self, period): self.value = None self.alpha = 2/(period+1) def put(self, data): if self.value == None: self.value = data ...
/rolling_technical_indicators-0.0.7.tar.gz/rolling_technical_indicators-0.0.7/rolling_technical_indicators/calc.py
0.85223
0.515742
calc.py
pypi
from typing import NewType, Union, Dict import numpy as np from dataclasses import dataclass from operator import itemgetter import os import datetime import glob from rolling_window.peristance import Peristance @dataclass class WindowOptions: """ Parameters ---------- period: this is the total size i...
/rolling_window-0.1.2.tar.gz/rolling_window-0.1.2/rolling_window/rolling_window.py
0.791821
0.236065
rolling_window.py
pypi
# RollTheLore An *unseen servant* providing an *advantage* to DMs/GMs while creating their worlds. [![Build Status](https://travis-ci.com/geckon/rollthelore.svg?branch=master)](https://travis-ci.com/geckon/rollthelore) As a DM, have you ever needed to lower the *DC* for the world building skill check? Did you need to...
/rollthelore-0.3.2.tar.gz/rollthelore-0.3.2/README.md
0.585101
0.80456
README.md
pypi
[![Build status](https://robertoprevato.visualstudio.com/rolog/_apis/build/status/rolog-CI)](https://robertoprevato.visualstudio.com/rolog/_build/latest?definitionId=12) [![pypi](https://robertoprevato.vsrm.visualstudio.com/_apis/public/Release/badge/82014349-4c33-499c-b834-a13d016341b9/1/2)](https://pypi.org/project/r...
/rolog-1.0.2.tar.gz/rolog-1.0.2/README.md
0.682574
0.823896
README.md
pypi
# pip install msparser, path.py from __future__ import print_function, division try: import msparser except ImportError: print('Need to install msparser.\npip install msparser\n') raise try: from path import Path except ImportError: print('Need to install path.py.\npip install path.py\n') raise...
/roltrilinos-0.0.9.tar.gz/roltrilinos-0.0.9/packages/teuchos/core/utils/plotMassifMemoryUsage.py
0.596081
0.428712
plotMassifMemoryUsage.py
pypi
# Required Software The following list of software is required by the Windows build scripts. The build scripts assume this software will be installed in specific locations, so before installing it would be worthwhile to browse the scripts for these locations. Alternatively, you could download and install the software w...
/roltrilinos-0.0.9.tar.gz/roltrilinos-0.0.9/cmake/ctest/drivers/windows/README.md
0.427038
0.74644
README.md
pypi
"""Tools for accuracy and error evaluation.""" __all__ = [ "projection_error", "frobenius_error", "lp_error", "Lp_error", ] import numpy as np from scipy import linalg as la from ..pre import projection_error def _absolute_and_relative_error(X, Y, norm): ...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/post/_errors.py
0.954393
0.698921
_errors.py
pypi
__all__ = [] import numpy as np import scipy.interpolate from ... import pre from ...utils import hdf5_savehandle, hdf5_loadhandle from .._base import _BaseParametricROM from ..nonparametric._base import _NonparametricOpInfROM from .. import operators class _InterpolatedOpInfROM(_BaseParametricROM): """Base cla...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/core/interpolate/_base.py
0.711531
0.364014
_base.py
pypi
__all__ = [ "is_operator", "is_parametric_operator", ] import abc import numpy as np def is_operator(op): """Return True if `op` is a valid Operator object.""" return isinstance(op, ( _BaseNonparametricOperator, _BaseParametricOperator) ) def is_parametric_operator(op): """R...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/core/operators/_base.py
0.934694
0.636494
_base.py
pypi
__all__ = [ "InterpolatedConstantOperator", "InterpolatedLinearOperator", "InterpolatedQuadraticOperator", # "InterpolatedCrossQuadraticOperator", "InterpolatedCubicOperator", "interpolated_operators", ] import numpy as np from ._base import _BaseParametricOperator from ._nonparametric import ...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/core/operators/_interpolate.py
0.916901
0.740948
_interpolate.py
pypi
"""Base class for nonparametric Operator Inference reduced-order models.""" __all__ = [] import numpy as np from .._base import _BaseROM from ... import lstsq, pre from ...utils import kron2c, kron3c, hdf5_savehandle, hdf5_loadhandle class _NonparametricOpInfROM(_BaseROM): """Base class for nonparametric Opera...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/core/nonparametric/_base.py
0.879328
0.457621
_base.py
pypi
"""Operator Inference least-squares solvers with Tikhonov regularization.""" __all__ = [ "SolverL2", "SolverL2Decoupled", "SolverTikhonov", "SolverTikhonovDecoupled", "solver", "solve", ] import warnings import numpy as np import scipy....
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/lstsq/_tikhonov.py
0.954605
0.629461
_tikhonov.py
pypi
"""Least-squares solvers for the Operator Inference problem.""" from ._tikhonov import * # TODO: rename lstsq_size() -> size() def lstsq_size(modelform, r, m=0, affines=None): """Calculate the number of columns in the operator matrix O in the Operator Inference least-squares problem. This is also the number ...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/lstsq/__init__.py
0.773388
0.769427
__init__.py
pypi
"""Utilities for HDF5 file interaction.""" __all__ = [ "hdf5_savehandle", "hdf5_loadhandle", ] import os import h5py class _hdf5_filehandle: """Get a handle to an open HDF5 file to read or write to. Parameters ---------- filename : str of h5py File/Group handle * str : Name of the f...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/utils/_hdf5.py
0.864081
0.301401
_hdf5.py
pypi
"""Private mixin class for transfomers and basis with multivariate states.""" import numpy as np class _MultivarMixin: """Private mixin class for transfomers and basis with multivariate states. Parameters ---------- num_variables : int Number of variables represented in a single snapshot (nu...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/pre/_multivar.py
0.951785
0.795499
_multivar.py
pypi
__all__ = [ "reproject_discrete", "reproject_continuous", ] import numpy as np # Reprojection schemes ======================================================== def reproject_discrete(f, basis, init, niters, inputs=None): """Sample re-projected trajectories of the discrete dynamic...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/pre/_reprojection.py
0.948965
0.777912
_reprojection.py
pypi
"""Finite-difference schemes for estimating snapshot time derivatives.""" __all__ = [ "ddt_uniform", "ddt_nonuniform", "ddt", ] import numpy as np # Finite difference stencils ================================================== def _fwd4(y, dt): """Compute the first ...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/pre/_finite_difference.py
0.949506
0.738952
_finite_difference.py
pypi
"""Base transformer class.""" import abc class _BaseTransformer(abc.ABC): """Abstract base class for all transformer classes.""" # Main routines ----------------------------------------------------------- def fit(self, states): """Learn (but do not apply) the transformation. Parameters ...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/pre/transform/_base.py
0.969656
0.672883
_base.py
pypi
"""Tools for preprocessing state snapshot data.""" __all__ = [ "shift", "scale", "SnapshotTransformer", "SnapshotTransformerMulti", ] import numpy as np from ...errors import LoadfileFormatError from ...utils import hdf5_savehandle, hdf5_loadhandle from .._mu...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/pre/transform/_shiftscale.py
0.972125
0.58519
_shiftscale.py
pypi
"""Tools for basis computation and reduced-dimension selection.""" __all__ = [ "PODBasis", "PODBasisMulti", "pod_basis", "svdval_decay", "cumulative_energy", "residual_energy", "projection_error", ] import h5py import numpy as np import scipy.linalg as la import scipy.sparse.linalg as spla...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/pre/basis/_pod.py
0.917128
0.711306
_pod.py
pypi
"""Base basis class.""" import abc import scipy.linalg as la from ..transform._base import _check_is_transformer class _BaseBasis(abc.ABC): """Abstract base class for all basis classes.""" def __init__(self, transformer=None): """Set the transformer.""" self.transformer = transformer # ...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/pre/basis/_base.py
0.957328
0.597843
_base.py
pypi
"""Linear basis class.""" __all__ = [ "LinearBasis", "LinearBasisMulti", ] import numpy as np import scipy.sparse as sparse from ...errors import LoadfileFormatError from ...utils import hdf5_savehandle, hdf5_loadhandle from .._multivar import _MultivarMixin from .. import transform from ._base import _BaseB...
/rom_operator_inference-1.4.1-py3-none-any.whl/rom_operator_inference/pre/basis/_linear.py
0.96556
0.609205
_linear.py
pypi
"""A class that provides utilities to show information in terminal. """ import logging from . import printer from functools import wraps def auto_clear(func): @wraps(func) def wrapper(*args, **kwargs): # Get the instance of Console class from args self = args[0] assert isinstance(self, Console) # ...
/roma_console-1.0.3-py3-none-any.whl/console/console.py
0.640074
0.370453
console.py
pypi
import os import re import time from sys import stdout __all__ = ['parse', 'write_line', 'write', 'clear_line'] fancy_text = True # region: Code from termcolor.py ATTRIBUTES = dict( list(zip([ 'bold', 'dark', '', 'underline', 'blink', ...
/roma_console-1.0.3-py3-none-any.whl/console/printer.py
0.543348
0.163579
printer.py
pypi
import numpy as np from roman_datamodels import stnode from ._core import DataModel __all__ = [] class _DataModel(DataModel): """ Exists only to populate the __all__ for this file automatically This is something which is easily missed, but is important for the automatic documentation genera...
/roman_datamodels-0.17.1-py3-none-any.whl/roman_datamodels/datamodels/_datamodels.py
0.69451
0.217005
_datamodels.py
pypi
import warnings from pathlib import Path import asdf from astropy.utils import minversion from roman_datamodels import validate from ._core import MODEL_REGISTRY, DataModel # .dev is included in the version comparison to allow for correct version # comparisons with development versions of asdf 3.0 if minversion(asd...
/roman_datamodels-0.17.1-py3-none-any.whl/roman_datamodels/datamodels/_utils.py
0.749821
0.26365
_utils.py
pypi
import warnings import numpy as np from astropy import units as u from roman_datamodels import stnode from ._base import MESSAGE, save_node from ._common_meta import mk_common_meta, mk_guidewindow_meta, mk_msos_stack_meta, mk_photometry_meta, mk_resample_meta from ._tagged_nodes import mk_cal_logs def mk_level1_sc...
/roman_datamodels-0.17.1-py3-none-any.whl/roman_datamodels/maker_utils/_datamodels.py
0.722429
0.289397
_datamodels.py
pypi
from astropy import time from roman_datamodels import stnode from ._base import NOSTR def mk_calibration_software_version(**kwargs): """ Create a dummy CalibrationSoftwareVersion object with valid values Returns ------- roman_datamodels.stnode.CalibrationSoftwareVersion """ return stnod...
/roman_datamodels-0.17.1-py3-none-any.whl/roman_datamodels/maker_utils/_basic_meta.py
0.76145
0.354657
_basic_meta.py
pypi
from astropy import units as u from roman_datamodels import stnode from ._base import NONUM def mk_photometry(**kwargs): """ Create a dummy Photometry instance with valid values for attributes required by the schema. Utilized by the model maker utilities below. Returns ------- roman_datamod...
/roman_datamodels-0.17.1-py3-none-any.whl/roman_datamodels/maker_utils/_tagged_nodes.py
0.826642
0.218107
_tagged_nodes.py
pypi
from astropy import time from astropy import units as u from roman_datamodels import stnode from ._base import NONUM, NOSTR from ._basic_meta import mk_basic_meta from ._tagged_nodes import mk_photometry, mk_resample def mk_exposure(**kwargs): """ Create a dummy Exposure instance with valid values for attri...
/roman_datamodels-0.17.1-py3-none-any.whl/roman_datamodels/maker_utils/_common_meta.py
0.702632
0.245469
_common_meta.py
pypi
from roman_datamodels.datamodels import MODEL_REGISTRY as _MODEL_REGISTRY # Hide from public API from ._basic_meta import * # noqa: F403 from ._common_meta import * # noqa: F403 from ._datamodels import * # noqa: F403 from ._ref_files import * # noqa: F403 from ._tagged_nodes import * # noqa: F403 # These maker...
/roman_datamodels-0.17.1-py3-none-any.whl/roman_datamodels/maker_utils/__init__.py
0.748995
0.26192
__init__.py
pypi
import warnings import numpy as np from astropy import units as u from astropy.modeling import models from roman_datamodels import stnode from ._base import MESSAGE, save_node from ._common_meta import ( mk_ref_common, mk_ref_dark_meta, mk_ref_distoriton_meta, mk_ref_pixelarea_meta, mk_ref_readno...
/roman_datamodels-0.17.1-py3-none-any.whl/roman_datamodels/maker_utils/_ref_files.py
0.789721
0.348368
_ref_files.py
pypi
from asdf.extension import Converter, ManifestExtension from astropy.time import Time from ._registry import LIST_NODE_CLASSES_BY_TAG, NODE_CONVERTERS, OBJECT_NODE_CLASSES_BY_TAG, SCALAR_NODE_CLASSES_BY_TAG __all__ = [ "TaggedObjectNodeConverter", "TaggedListNodeConverter", "TaggedScalarNodeConverter", ...
/roman_datamodels-0.17.1-py3-none-any.whl/roman_datamodels/stnode/_converters.py
0.812719
0.231788
_converters.py
pypi
import datetime import re import warnings from collections import UserList from collections.abc import MutableMapping import asdf import asdf.schema as asdfschema import asdf.yamlutil as yamlutil import numpy as np from asdf.exceptions import ValidationError from asdf.tags.core import ndarray from asdf.util import Has...
/roman_datamodels-0.17.1-py3-none-any.whl/roman_datamodels/stnode/_node.py
0.662251
0.183557
_node.py
pypi
import copy import asdf from ._node import DNode, LNode from ._registry import ( LIST_NODE_CLASSES_BY_TAG, OBJECT_NODE_CLASSES_BY_TAG, SCALAR_NODE_CLASSES_BY_KEY, SCALAR_NODE_CLASSES_BY_TAG, ) __all__ = [ "TaggedObjectNode", "TaggedListNode", "TaggedScalarNode", ] def get_schema_from_ta...
/roman_datamodels-0.17.1-py3-none-any.whl/roman_datamodels/stnode/_tagged.py
0.773216
0.223716
_tagged.py
pypi
import importlib.resources import yaml from astropy.time import Time from rad import resources from . import _mixins from ._tagged import TaggedListNode, TaggedObjectNode, TaggedScalarNode, name_from_tag_uri __all__ = ["stnode_factory"] # Map of scalar types in the schemas to the python types SCALAR_TYPE_MAP = { ...
/roman_datamodels-0.17.1-py3-none-any.whl/roman_datamodels/stnode/_factories.py
0.901683
0.253301
_factories.py
pypi
import abc import inspect from dataclasses import dataclass from importlib import import_module from logging import getLogger from typing import Any, Callable, List from roman_discovery.contrib import find_modules ModuleMatches = Callable[[str], bool] ModuleAction = Callable[[str], Any] ObjectMatches = Callable[[Any]...
/roman_discovery-0.3.2-py3-none-any.whl/roman_discovery/discovery.py
0.785638
0.165863
discovery.py
pypi
import fnmatch import inspect from dataclasses import dataclass from typing import Any, List, Type @dataclass class MatchByPattern: """Module matcher that selects module names by patterns. Constructor accepts the list of Unix shell-style wildcards for module names. E.g. the following instance will match ...
/roman_discovery-0.3.2-py3-none-any.whl/roman_discovery/matchers.py
0.854718
0.265199
matchers.py
pypi
from importlib import import_module from typing import List from roman_discovery import IRule from roman_discovery.discovery import ModuleRule, ObjectRule from roman_discovery.matchers import ( MatchByCallableAttribute, MatchByPattern, MatchByType, ) def get_flask_rules(import_path: str, flask_app) -> Li...
/roman_discovery-0.3.2-py3-none-any.whl/roman_discovery/flask.py
0.831896
0.170025
flask.py
pypi
from dataclasses import dataclass from typing import List, TypeVar, Tuple from mappings import ( get_mappings, consonant_kaars, get_word_maps, Mappings, amkaar, aNNkaar, Ri, ) @dataclass class State: remaining: str = '' consumed: str = '' processed: str = '' as_is: bool = ...
/roman_nepali_translator-0.1.1-py3-none-any.whl/nepali_translator/converter.py
0.859118
0.304106
converter.py
pypi
from dataclasses import dataclass from typing import List, TypeVar, Tuple from mappings import ( get_mappings, consonant_kaars, get_word_maps, Mappings, amkaar, aNNkaar, Ri, ) @dataclass class State: remaining: str = '' consumed: str = '' processed: str = '' as_is: bool = ...
/roman_nepali_translator-0.1.1-py3-none-any.whl/nepali_translator/translator.py
0.859118
0.304106
translator.py
pypi
from .arabic_to_roman import arabic_to_roman class RomanToArabic(object): _char_2_number = {"M": 1000, "D": 500, "C": 100, "L": 50, "X": 10, "V": 5, "I": 1} @staticmethod def convert(roman: str) -> int: """ Convert a Roman numeral to an Arabic Numeral. To convert Arabic numerals we chos...
/roman_numerals_webservice-0.4.1.tar.gz/roman_numerals_webservice-0.4.1/roman_numerals_webservice/roman_numerals/roman_to_arabic.py
0.684791
0.426262
roman_to_arabic.py
pypi
import numbers class ArabicToRoman(object): _int_nums = ( (1000, "M"), (900, "CM"), (500, "D"), (400, "CD"), (100, "C"), (90, "XC"), (50, "L"), (40, "XL"), (10, "X"), (9, "IX"), (5, "V"), (4, "IV"), (1, "I"), ...
/roman_numerals_webservice-0.4.1.tar.gz/roman_numerals_webservice-0.4.1/roman_numerals_webservice/roman_numerals/arabic_to_roman.py
0.867528
0.442456
arabic_to_roman.py
pypi
from re import ( VERBOSE, compile as re_compile, fullmatch, match, sub as substitute,) # Operation Modes STANDARD = 1 LOWERCASE = 2 ROMAN_NUMERAL_TABLE = [ (1000, 'Ⅿ'), (900, 'ⅭⅯ'), (500, 'Ⅾ'), (400, 'ⅭⅮ'), (100, 'Ⅽ'), (90, 'ⅩⅭ'), (50, 'Ⅼ'), (40, 'ⅩⅬ'), (10, 'Ⅹ'), (9, 'Ⅸ'),...
/roman-numerals-0.1.0.tar.gz/roman-numerals-0.1.0/src/roman_numerals/__init__.py
0.434941
0.267627
__init__.py
pypi
import re from .errors import RTextError, RomanValidationError CASE_UPPER = 1 CASE_LOWER = -1 CASE_IGNORE = 0 def rn_validator(rn: str, case: int = CASE_UPPER): """ Check the roman number for validity. :param rn: roman number :param case: upper (1), lower (-1) or ignore (0) case. Default upper (1). ...
/roman_nums-0.0.1.tar.gz/roman_nums-0.0.1/roman_nums/utils.py
0.750644
0.361221
utils.py
pypi
import re from .errors import (RomanNumsError, RomanValidationError) __version__ = "0.0.1" __author__ = "Kovalenko Nikolay" __email__ = "kovalenko.n.r-g@yandex.ru" CASE_UPPER = 1 CASE_LOWER = -1 def from_roman(rn: str, ignore_case: bool = False): """ Make an integer from roman number. :param rn: input r...
/roman_nums-0.0.1.tar.gz/roman_nums-0.0.1/roman_nums/__init__.py
0.549641
0.315987
__init__.py
pypi
"""Convert to and from Roman numerals""" __author__ = "Mark Pilgrim (f8dy@diveintopython.org)" __version__ = "1.4" __date__ = "8 August 2001" __copyright__ = """Copyright (c) 2001 Mark Pilgrim This program is part of "Dive Into Python", a free Python tutorial for experienced programmers. Visit http://diveintopython....
/roman-4.1.tar.gz/roman-4.1/src/roman.py
0.666388
0.411436
roman.py
pypi
> # Roman Calibration Pipeline [![Documentation Status](https://readthedocs.org/projects/roman-pipeline/badge/?version=latest)](https://roman-pipeline.readthedocs.io/en/latest/?badge=latest) [![CI](https://github.com/spacetelescope/romancal/actions/workflows/roman_ci.yml/badge.svg)](https://github.com/spacetelescope/...
/romancal-0.12.0.tar.gz/romancal-0.12.0/README.md
0.403449
0.790126
README.md
pypi
from docutils.nodes import SkipNode, Text, caption, figure, raw, reference from sphinx.roles import XRefRole # Element classes class page_ref(reference): pass class num_ref(reference): pass # Visit/depart functions def skip_page_ref(self, node): raise SkipNode def latex_visit_page_ref(self, node)...
/romancal-0.12.0.tar.gz/romancal-0.12.0/docs/exts/numfig.py
0.418935
0.317955
numfig.py
pypi