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
from deepdiff import DeepDiff def merge_delete_common(common, common_key, obj): """ Removes common values from objs. :param common: Dictionary of values shared by all objs :param common_key: Key referencing an entry within common :param obj: Dictionaries from which to remove common values """...
/re_yaml_common-2.0.4-py3-none-any.whl/yaml_common/libmerge.py
0.818954
0.570212
libmerge.py
pypi
from collections import OrderedDict from deepdiff import DeepDiff import copy def get_keys(dicts): """ Extract all keys from all given dictionaries, attempting to preserving order. :param dicts: :return: """ keys = [] for obj in dicts: keys.extend(obj.keys()) return list(Ordere...
/re_yaml_common-2.0.4-py3-none-any.whl/yaml_common/libcommon.py
0.733547
0.498535
libcommon.py
pypi
from __future__ import unicode_literals from barcode.base import Barcode from barcode.charsets import code128, code39 from barcode.errors import * __docformat__ = 'restructuredtext en' # Sizes MIN_SIZE = 0.2 MIN_QUIET_ZONE = 2.54 def check_code(code, name, allowed): wrong = [] for char in code: if ...
/reBarcode-0.1.0-py3-none-any.whl/barcode/codex.py
0.76999
0.261508
codex.py
pypi
from __future__ import unicode_literals from barcode.writer import SVGWriter class Barcode(object): name = '' raw = None digits = 0 default_writer = SVGWriter default_writer_options = { 'module_width': 0.2, 'module_height': 15.0, 'quiet_zone': 6.5, 'font_size'...
/reBarcode-0.1.0-py3-none-any.whl/barcode/base.py
0.803174
0.218503
base.py
pypi
from __future__ import unicode_literals import gzip import os import xml.dom from barcode import __release__ try: import Image import ImageDraw import ImageFont except ImportError: try: from PIL import Image, ImageDraw, ImageFont # lint:ok except ImportError: import logging ...
/reBarcode-0.1.0-py3-none-any.whl/barcode/writer.py
0.779322
0.188604
writer.py
pypi
from __future__ import unicode_literals from barcode.ean import EuropeanArticleNumber13 from barcode.errors import * __docformat__ = 'restructuredtext en' class InternationalStandardBookNumber13(EuropeanArticleNumber13): """Initializes new ISBN-13 barcode. :parameters: isbn : String The...
/reBarcode-0.1.0-py3-none-any.whl/barcode/isxn.py
0.695545
0.213357
isxn.py
pypi
from __future__ import unicode_literals from barcode.base import Barcode from barcode.charsets import ean as _ean from barcode.errors import * # Python 3 try: reduce except NameError: from functools import reduce # EAN13 Specs (all sizes in mm) SIZES = dict(SC0=0.27, SC1=0.297, SC2=0.33, SC3=0.363, SC4=0.39...
/reBarcode-0.1.0-py3-none-any.whl/barcode/ean.py
0.81538
0.209308
ean.py
pypi
from __future__ import unicode_literals import string # Charsets for code 128 _common = ( ' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', ) + tuple(string.digits) + ( ':', ';', '<', '=', '>', '?', '@', ) + tuple(string.ascii_uppercase) + ( '[', '\\', ']', '^', '_', ) ...
/reBarcode-0.1.0-py3-none-any.whl/barcode/charsets/code128.py
0.486088
0.273738
code128.py
pypi
from recbz import reCBZ, SHOWTITLE, CMDNAME, __version__ import os import argparse def print_title() -> None: align = int(reCBZ.TERM_COLUMNS / 2) - 11 if align > 21: align = 21 if align + 22 > reCBZ.TERM_COLUMNS or align < 0: align = 0 align = align * ' ' title_multiline = (f"{align}β”¬β”€β”β”Œβ”€β”...
/reCBZ-1.0.0.tar.gz/reCBZ-1.0.0/src/recbz/__main__.py
0.499512
0.179981
__main__.py
pypi
__version__ = '$Revision: 2593 $' __date__ = '$Date: 2008-06-27 18:37:59 +0200 (ven, 27 jun 2008) $' # --------------------------------------------------------------------- # ---- Import --------------------------------------------------------- # --------------------------------------------------------------------- i...
/rea-0.1.1.tar.gz/rea-0.1.1/ReaFocus.py
0.561696
0.315143
ReaFocus.py
pypi
import numpy as np from .fortran import fStat from .Bogli import DeviceHandler, Plot, MultiPlot def telescopeSpeed(ScanParam, wait=1, style='p'): MJD = ScanParam.get('MJD').astype(np.float64) azimuth = ScanParam.get('Azimuth').astype(np.float64) elevation = ScanParam.get('Elevation').astype(np.float64) ...
/rea-0.1.1.tar.gz/rea-0.1.1/diag.py
0.644001
0.438665
diag.py
pypi
import os import numpy as np import cfitsio # --------------------------------------------------------------------- # ---- Module Interface ----------------------------------------------- # --------------------------------------------------------------------- """ The Module Interface contains: - Function createDatas...
/rea-0.1.1.tar.gz/rea-0.1.1/ReaFits.py
0.619471
0.173954
ReaFits.py
pypi
# --------------------------------------------------------------------- # ---- Import --------------------------------------------------------- # --------------------------------------------------------------------- import copy import numpy as np from rea.Utilities import as_column_major_storage from .fortran import f...
/rea-0.1.1.tar.gz/rea-0.1.1/ReaFlagHandler.py
0.77518
0.615637
ReaFlagHandler.py
pypi
__version__ = '$Revision: 2314 $' __data__ = '$Date: 2007-08-08 10:43:50 +0200 (mer, 08 aou 2007) $' from . import Plot from ppgplot import * import numpy as np def ellipse(x, y, xFWHM, yFWHM, tilt, overplot=1, style='l', ci=1): """ DES: draw a ellipse INP: (f) x/y : the position offset (f)...
/rea-0.1.1.tar.gz/rea-0.1.1/Bogli/Forms.py
0.76882
0.538194
Forms.py
pypi
from ppgplot import * import string class Fenetre: """ classe Fenetre - parametres et methodes pour les boites et boutons attributs: int forme : 0=cercle 1=rectangle 2=rectangle transparent list pos : positions (X,Y) des centres dans la fenetre list float/tuple size: rayon ou (largeur...
/rea-0.1.1.tar.gz/rea-0.1.1/Bogli/Interface.py
0.515864
0.414069
Interface.py
pypi
__version__ = '$Revision: 2722 $' __date__ = '$Date: 2010-04-29 11:43:32 +0200 (jeu. 29 avril 2010) $' # ------------------------------------------------------------------------------ # ----- Import ----------------------------------------------------------------- # ----------------------------------------------------...
/rea-0.1.1.tar.gz/rea-0.1.1/Bogli/MultiPlot.py
0.493653
0.443299
MultiPlot.py
pypi
__version__ = '$Revision: 2109 $' __date__ = '$Date: 2007-06-03 14:33:01 +0200 (dim, 03 jun 2007) $' import os.path import numpy as np # lut directory lutDir = os.path.dirname(__file__) + '/lut/' # Description of the Label along the X axis xAxis = {'charheight': 1.0, 'color': 1, 'displacement': 3.0...
/rea-0.1.1.tar.gz/rea-0.1.1/Bogli/BogliConfig.py
0.596316
0.279884
BogliConfig.py
pypi
import time import logging import numpy as np from operator import attrgetter from .parts import LeftArm, RightArm, Head logger = logging.getLogger(__name__) class Reachy(object): """Class representing the connection with the hardware robot. Args: left_arm (reachy.parts.LeftArm): left arm part i...
/reachy-2019-1.4.0.tar.gz/reachy-2019-1.4.0/reachy/reachy.py
0.893611
0.266074
reachy.py
pypi
import time import numpy as np from collections import OrderedDict from ..utils import rot from .part import ReachyPart class Hand(ReachyPart): """Hand abstraction part. Args: side (str): which side the hand is attached to ('left' or 'right') io (str): port name where the modules can be fou...
/reachy-2019-1.4.0.tar.gz/reachy-2019-1.4.0/reachy/parts/hand.py
0.894557
0.431285
hand.py
pypi
import numpy as np from .motor import DynamixelMotor, OrbitaActuator from .kinematic import Link, Chain from ..io import IO, luos, ws class ReachyPart(object): """Part abstraction class. Args: name (str): name of the new part, can be composed if it's a subpart (eg. right_arm.hand) io (str)...
/reachy-2019-1.4.0.tar.gz/reachy-2019-1.4.0/reachy/parts/part.py
0.884133
0.365343
part.py
pypi
import pathlib import numpy as np from collections import OrderedDict import reachy from ..utils import rot from .part import ReachyPart class Head(ReachyPart): """Head part. Args: io (str): port name where the modules can be found default_camera (str): default camera to enable ('left' or...
/reachy-2019-1.4.0.tar.gz/reachy-2019-1.4.0/reachy/parts/head.py
0.874721
0.376652
head.py
pypi
import time import numpy as np from operator import attrgetter from collections import OrderedDict from threading import Thread, Event from .hand import LeftEmptyHand, RightEmptyHand, LeftForceGripper, RightForceGripper, OrbitaWrist from .part import ReachyPart hands = { 'force_gripper': {'left': LeftForceGripp...
/reachy-2019-1.4.0.tar.gz/reachy-2019-1.4.0/reachy/parts/arm.py
0.871734
0.317149
arm.py
pypi
import numpy as np from scipy.spatial.transform import Rotation from scipy.optimize import minimize class Link(object): """Simplified Link following DH notation. Args: translation (:py:class:`~numpy.ndarray`): 3d translation from the previous link rotation (:py:class:`~numpy.ndarray`): 3d eu...
/reachy-2019-1.4.0.tar.gz/reachy-2019-1.4.0/reachy/parts/kinematic.py
0.952175
0.812086
kinematic.py
pypi
import time import numpy as np from threading import Thread from operator import attrgetter class TrajectoryPlayer(object): """Trajectory player abstraction. Args: reachy (:py:class:`~reachy.Reachy`): robot which will play the trajectory trajectories (dict): Trajectory to play (such as {mot...
/reachy-2019-1.4.0.tar.gz/reachy-2019-1.4.0/reachy/trajectory/player.py
0.851058
0.374848
player.py
pypi
import time import numpy as np from threading import Event, Thread class TrajectoryRecorder(object): """Trajectory Recorder utility class. Args: motors (list): list of motors to record (eg. [reachy.right_arm.elbow_pitch, reachy.right_arm.shoulder_pitch]) position_field (str): register to re...
/reachy-2019-1.4.0.tar.gz/reachy-2019-1.4.0/reachy/trajectory/recorder.py
0.876516
0.342957
recorder.py
pypi
import time import numpy as np from threading import Thread, Event from scipy.interpolate import interp1d class TrajectoryInterpolation(object): """Trajectory interpolation abstraction class. Args: initial_position (float): starting position (in degrees) goal_position (float): end position (...
/reachy-2019-1.4.0.tar.gz/reachy-2019-1.4.0/reachy/trajectory/interpolation.py
0.870115
0.491944
interpolation.py
pypi
import time import cv2 as cv from threading import Thread, Event, Lock from ..error import CameraNotFoundError class BackgroundVideoCapture(object): """Wrapper on OpenCV VideoCapture object. Args: camera_index (int): index of the used camera (see OpenCV doc for details) resolution (int, int...
/reachy-2019-1.4.0.tar.gz/reachy-2019-1.4.0/reachy/io/cam.py
0.815563
0.292576
cam.py
pypi
import json import asyncio import websockets import numpy as np from threading import Thread, Event from base64 import b64decode from io import BytesIO from PIL import Image from .io import IO class WsIO(IO): """WebSocket IO implementation.""" ws = None def __init__(self, part_name): """Init ...
/reachy-2019-1.4.0.tar.gz/reachy-2019-1.4.0/reachy/io/ws.py
0.823967
0.224863
ws.py
pypi
import time from logging import Logger from typing import Dict, List, Optional, Tuple from serial import Serial from serial.threaded import ReaderThread from .device import Device from .dynamixel import DynamixelMotor from .fan import Fan from .force_sensor import ForceSensor from .orbita import OrbitaActuator from...
/reachy_pyluos_hal-0.3.1.tar.gz/reachy_pyluos_hal-0.3.1/reachy_pyluos_hal/discovery.py
0.847684
0.396652
discovery.py
pypi
from abc import abstractproperty from enum import Enum from typing import Dict, List, Tuple, Type from struct import pack, unpack import numpy as np from numpy import clip, deg2rad, pi from .joint import Joint class DynamixelModelNumber(Enum): """Enum representing the different Dynamixel models.""" AX18 =...
/reachy_pyluos_hal-0.3.1.tar.gz/reachy_pyluos_hal-0.3.1/reachy_pyluos_hal/dynamixel.py
0.954534
0.433682
dynamixel.py
pypi
import sys import time import struct from logging import Logger from collections import defaultdict, namedtuple from threading import Event, Thread from typing import Dict, Iterable, List, Optional, Type, Tuple from serial import Serial from serial.threaded import Protocol, ReaderThread from .orbita import OrbitaRe...
/reachy_pyluos_hal-0.3.1.tar.gz/reachy_pyluos_hal-0.3.1/reachy_pyluos_hal/pycore.py
0.643553
0.153867
pycore.py
pypi
import os from pathlib import Path from typing import Any, Dict, List, Optional, Tuple, Union import numpy as np import yaml from scipy.spatial.transform import Rotation from .device import Device from .dynamixel import DynamixelMotor, MX106, MX64, MX28, AX18, XL320 from .fan import DxlFan, Fan, OrbitaFan from .forc...
/reachy_pyluos_hal-0.3.1.tar.gz/reachy_pyluos_hal-0.3.1/reachy_pyluos_hal/config.py
0.802556
0.302121
config.py
pypi
import struct from math import pi from enum import Enum from logging import Logger from typing import Dict, List, Optional, Tuple import numpy as np from scipy.spatial.transform import Rotation as R from .orbita_kinematic_model import OrbitaKinematicModel from .register import Register class OrbitaRegister(Enum): ...
/reachy_pyluos_hal-0.3.1.tar.gz/reachy_pyluos_hal-0.3.1/reachy_pyluos_hal/orbita.py
0.918123
0.494629
orbita.py
pypi
import sys import time import numpy as np from collections import OrderedDict, defaultdict from glob import glob from logging import Logger from operator import attrgetter from threading import Lock from typing import Dict, List, Tuple from .config import load_config from .device import Device from .discovery import...
/reachy_pyluos_hal-0.3.1.tar.gz/reachy_pyluos_hal-0.3.1/reachy_pyluos_hal/reachy.py
0.576065
0.223229
reachy.py
pypi
import time from typing import Dict, List, Optional, Tuple from logging import Logger from .reachy import Reachy class JointLuos: """Implementation of the joint hal via serial communication to the luos boards.""" def __init__(self, config_name: str, logger: Logger) -> None: """Create and start Reac...
/reachy_pyluos_hal-0.3.1.tar.gz/reachy_pyluos_hal-0.3.1/reachy_pyluos_hal/joint_hal.py
0.91643
0.525917
joint_hal.py
pypi
import argparse import logging import struct import sys import time from typing import Optional from serial import Serial from serial.threaded import ReaderThread from ..discovery import identify_luos_containers from ..dynamixel import AX18, DynamixelError, DynamixelMotor, get_motor_from_model from ..pycore import ...
/reachy_pyluos_hal-0.3.1.tar.gz/reachy_pyluos_hal-0.3.1/reachy_pyluos_hal/tools/dynamixel_config.py
0.674158
0.30834
dynamixel_config.py
pypi
"""Client and server classes corresponding to protobuf-defined services.""" import grpc import head_kinematics_pb2 as head__kinematics__pb2 class HeadKinematicsStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self, channel): """Constructor. Args: ...
/reachy-sdk-api-0.7.2.tar.gz/reachy-sdk-api-0.7.2/reachy_sdk_api/head_kinematics_pb2_grpc.py
0.764364
0.19594
head_kinematics_pb2_grpc.py
pypi
"""Client and server classes corresponding to protobuf-defined services.""" import grpc import restart_signal_pb2 as restart__signal__pb2 class RestartServiceStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self, channel): """Constructor. Args: ...
/reachy-sdk-api-0.7.2.tar.gz/reachy-sdk-api-0.7.2/reachy_sdk_api/restart_signal_pb2_grpc.py
0.719186
0.227641
restart_signal_pb2_grpc.py
pypi
"""Client and server classes corresponding to protobuf-defined services.""" import grpc import fullbody_cartesian_command_pb2 as fullbody__cartesian__command__pb2 class FullBodyCartesianCommandServiceStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self, channel): ...
/reachy-sdk-api-0.7.2.tar.gz/reachy-sdk-api-0.7.2/reachy_sdk_api/fullbody_cartesian_command_pb2_grpc.py
0.808937
0.263333
fullbody_cartesian_command_pb2_grpc.py
pypi
"""Client and server classes corresponding to protobuf-defined services.""" import grpc import config_pb2 as config__pb2 from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 class ConfigServiceStub(object): """Missing associated documentation comment in .proto file.""" def __init__(se...
/reachy-sdk-api-0.7.2.tar.gz/reachy-sdk-api-0.7.2/reachy_sdk_api/config_pb2_grpc.py
0.564098
0.15034
config_pb2_grpc.py
pypi
"""Client and server classes corresponding to protobuf-defined services.""" import grpc import arm_kinematics_pb2 as arm__kinematics__pb2 class ArmKinematicsStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self, channel): """Constructor. Args: ...
/reachy-sdk-api-0.7.2.tar.gz/reachy-sdk-api-0.7.2/reachy_sdk_api/arm_kinematics_pb2_grpc.py
0.759761
0.18159
arm_kinematics_pb2_grpc.py
pypi
"""Client and server classes corresponding to protobuf-defined services.""" import grpc import trajectory_pb2 as trajectory__pb2 class TrajectoryServiceStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self, channel): """Constructor. Args: ...
/reachy-sdk-api-0.7.2.tar.gz/reachy-sdk-api-0.7.2/reachy_sdk_api/trajectory_pb2_grpc.py
0.735547
0.238872
trajectory_pb2_grpc.py
pypi
import asyncio import atexit import threading import time from typing import List from enum import Enum from logging import getLogger import grpc from grpc._channel import _InactiveRpcError from google.protobuf.empty_pb2 import Empty from reachy_sdk_api import camera_reachy_pb2_grpc from reachy_sdk_api import joint_p...
/reachy_sdk-0.7.0-py3-none-any.whl/reachy_sdk/reachy_sdk.py
0.674479
0.160299
reachy_sdk.py
pypi
from typing import Dict, List, Optional, Tuple import numpy as np from pyquaternion import Quaternion from reachy_sdk_api.head_kinematics_pb2_grpc import HeadKinematicsStub from reachy_sdk_api.head_kinematics_pb2 import HeadFKRequest, HeadIKRequest from reachy_sdk_api.kinematics_pb2 import joint__pb2 from reachy_sdk...
/reachy_sdk-0.7.0-py3-none-any.whl/reachy_sdk/head.py
0.941149
0.48054
head.py
pypi
import asyncio from typing import Any, Dict, List import numpy as np from google.protobuf.wrappers_pb2 import BoolValue, FloatValue, UInt32Value from reachy_sdk_api.joint_pb2 import JointId, JointState, JointCommand, PIDValue from .register import MetaRegister, Register def _to_position(internal_pos: float) -> f...
/reachy_sdk-0.7.0-py3-none-any.whl/reachy_sdk/joint.py
0.88263
0.551453
joint.py
pypi
from abc import ABC from typing import List, Optional, Set import numpy as np from reachy_sdk_api.arm_kinematics_pb2_grpc import ArmKinematicsStub from reachy_sdk_api.arm_kinematics_pb2 import ArmEndEffector, ArmFKRequest, ArmIKRequest, ArmJointPosition, ArmSide from reachy_sdk_api.kinematics_pb2 import joint__pb2 fr...
/reachy_sdk-0.7.0-py3-none-any.whl/reachy_sdk/arm.py
0.948346
0.428951
arm.py
pypi
from typing import Any, Callable, Optional, Tuple, Type from google.protobuf.wrappers_pb2 import BoolValue, FloatValue, UInt32Value from reachy_sdk_api.joint_pb2 import ComplianceMarginSlope, PIDGains class Register: """Register class to expose the stored value in a more simple way. The internal representa...
/reachy_sdk-0.7.0-py3-none-any.whl/reachy_sdk/register.py
0.927091
0.397968
register.py
pypi
from enum import Enum from typing import Optional import cv2 as cv from google.protobuf.empty_pb2 import Empty from google.protobuf.wrappers_pb2 import UInt32Value import numpy as np from threading import Event, Thread from reachy_sdk_api import camera_reachy_pb2, camera_reachy_pb2_grpc class ZoomLevel(Enum): "...
/reachy_sdk-0.7.0-py3-none-any.whl/reachy_sdk/camera.py
0.897412
0.325306
camera.py
pypi
import asyncio import numpy as np import time from concurrent.futures import ThreadPoolExecutor from queue import Queue from typing import Dict, Optional from .interpolation import InterpolationMode from ..joint import Joint def goto( goal_positions: Dict[Joint, float], duration: float, starting_position...
/reachy_sdk-0.7.0-py3-none-any.whl/reachy_sdk/trajectory/__init__.py
0.814274
0.506042
__init__.py
pypi
from enum import Enum from typing import Callable, Optional import numpy as np InterpolationFunc = Callable[[float], np.ndarray] def linear( starting_position: np.ndarray, goal_position: np.ndarray, duration: float, ) -> InterpolationFunc: """Compute the linear interpolation function from starting ...
/reachy_sdk-0.7.0-py3-none-any.whl/reachy_sdk/trajectory/interpolation.py
0.92779
0.711155
interpolation.py
pypi
# Copyright (c) zoubingwu. # Distributed under the terms of the Modified BSD License. """ TODO: Add module docstring """ from ipywidgets import DOMWidget, CallbackDispatcher from traitlets import Unicode, List, Dict, validate from ._frontend import module_name, module_version class TableWidget(DOMWidget): """...
/react_editable_table-0.0.2.tar.gz/react_editable_table-0.0.2/react_editable_table/widget.py
0.737725
0.40928
widget.py
pypi
import re import typing from functools import wraps import flask import structlog from src.beckett.renderer.typescript_react.renderer import ( build_render_context_for_base_template, write_react_page_file, write_typescript_file, ) from src.beckett.types import NoneType, generate_interfaces from src.becket...
/react_flask-0.1.0-py3-none-any.whl/src/beckett/blueprint.py
0.774583
0.169028
blueprint.py
pypi
import enum import typing from decimal import Decimal from typing import Any, Literal, Tuple, Union, get_args, get_origin from uuid import UUID from pydantic import BaseModel from pydantic.fields import FieldInfo from src.beckett.renderer.typescript_react.imports import TypescriptImports from src.beckett.renderer.typ...
/react_flask-0.1.0-py3-none-any.whl/src/beckett/types/types.py
0.736401
0.171027
types.py
pypi
import argparse import logging import os import nibabel as nib import numpy as np import scipy.stats as sps from sklearn.linear_model import LinearRegression from sklearn.preprocessing import StandardScaler import react from react.utils import check_can_write_file, volume4d_to_matrix OUT_REACT_STAGE1 = '_react_stage...
/react_fmri-0.1.7.post1-py3-none-any.whl/react_fmri-0.1.7.post1.data/scripts/react_prova.py
0.619586
0.162115
react_prova.py
pypi
import logging import os import numpy as np __all__ = ['check_can_write_file', 'normalize_3d_volume', 'volume4d_to_matrix'] def check_can_write_file(fpath: str, force: bool = False): """ Check if a file can be written. The function checks if the file already exists, the user has the permission to w...
/react_fmri-0.1.7.post1-py3-none-any.whl/react/utils.py
0.809878
0.487124
utils.py
pypi
# React Pages ##### A zero-fuss way to create non single page apps with react. - Zero Configuration required. Mostly thanks to [create-react-app](https://github.com/facebook/create-react-app). - [Custom react scripts](https://github.com/kitze/custom-react-scripts) inbuilt. - Allows cross-page imports (crea...
/react-pages-0.3.2.tar.gz/react-pages-0.3.2/README.md
0.538498
0.70767
README.md
pypi
from dash.development.base_component import Component, _explicitize_args class ReactTableDash(Component): """A ReactTableDash component. ReactTableDash is a wrapper for ReactTable v6 Keyword arguments: - id (string; optional): The ID used to identify this component in Dash callbacks. - data (list; required): Ta...
/react_table_dash-0.0.3-py3-none-any.whl/react_table_dash/ReactTableDash.py
0.741019
0.200382
ReactTableDash.py
pypi
python-react ============ [![Build Status](https://travis-ci.org/markfinger/python-react.svg?branch=master)](https://travis-ci.org/markfinger/python-react) Server-side rendering of React components with data from your Python system ```python from react.render import render_component rendered = render_component( ...
/react-4.3.0.tar.gz/react-4.3.0/README.md
0.850918
0.92756
README.md
pypi
<p align="center"> <a href="https://pypi.org/project/reactant"> <img width="1200" src="https://raw.githubusercontent.com/neil-vqa/reactant/main/reactant-logo-banner.png"> </a> </p> Generate code for *models, views, and urls* based on Python type annotations. Powered by [pydantic](https://github.com/sam...
/reactant-0.5.0.tar.gz/reactant-0.5.0/README.md
0.900004
0.881104
README.md
pypi
from __future__ import annotations from abc import ABCMeta from typing import TYPE_CHECKING from monty.json import MSONable if TYPE_CHECKING: from pymatgen.entries.computed_entries import ComputedEntry from rxn_network.core import Composition from rxn_network.reactions.base import Reaction class Pathw...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/pathways/base.py
0.929436
0.242396
base.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING import matplotlib.pyplot as plt import pandas from monty.json import MSONable from pymatgen.analysis.phase_diagram import PhaseDiagram from scipy.ndimage import median_filter from tqdm import tqdm from rxn_network.core import Composition from rxn_ne...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/pathways/plotting.py
0.933355
0.459622
plotting.py
pypi
from __future__ import annotations from abc import ABCMeta from copy import deepcopy from itertools import combinations from typing import TYPE_CHECKING import numpy as np import ray from monty.json import MSONable from numba import jit from pymatgen.core.composition import Element from tqdm import tqdm from rxn_net...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/pathways/solver.py
0.892642
0.203787
solver.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING import numpy as np from rxn_network.core import Composition from rxn_network.pathways.base import Pathway from rxn_network.pathways.basic import BasicPathway from rxn_network.utils.funcs import limited_powerset if TYPE_CHECKING: from rxn_networ...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/pathways/balanced.py
0.944562
0.508361
balanced.py
pypi
from __future__ import annotations from functools import cached_property from typing import TYPE_CHECKING import numpy as np from monty.json import MSONable from rxn_network.pathways.balanced import BalancedPathway from rxn_network.pathways.basic import BasicPathway from rxn_network.reactions.reaction_set import Rea...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/pathways/pathway_set.py
0.935825
0.463141
pathway_set.py
pypi
from __future__ import annotations from enum import Enum, auto from typing import TYPE_CHECKING, Collection from monty.json import MSONable from monty.serialization import MontyDecoder if TYPE_CHECKING: from pymatgen.core.periodic_table import Element from pymatgen.entries import Entry class NetworkEntryTy...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/network/entry.py
0.925869
0.318962
entry.py
pypi
from __future__ import annotations from abc import ABCMeta, abstractmethod from typing import TYPE_CHECKING, Iterable from monty.json import MontyDecoder, MSONable from rustworkx import PyDiGraph from rxn_network.entries.entry_set import GibbsEntrySet if TYPE_CHECKING: from pymatgen.entries import Entry fr...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/network/base.py
0.940367
0.274333
base.py
pypi
from __future__ import annotations from dataclasses import field from queue import Empty, PriorityQueue from typing import TYPE_CHECKING, Iterable import rustworkx as rx from pymatgen.entries import Entry from tqdm import tqdm from rxn_network.costs.functions import Softplus from rxn_network.entries.experimental imp...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/network/network.py
0.898096
0.254092
network.py
pypi
from __future__ import annotations from dataclasses import dataclass, field from typing import TYPE_CHECKING, Collection from jobflow import Flow, Maker from pymatgen.core.composition import Element from rxn_network.core import Composition from rxn_network.enumerators.basic import BasicEnumerator, BasicOpenEnumerato...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/flows/core.py
0.921777
0.33704
core.py
pypi
from __future__ import annotations from functools import cached_property from typing import TYPE_CHECKING import numpy as np from pymatgen.analysis.phase_diagram import GrandPotPDEntry from pymatgen.core.composition import Element from rxn_network.core import Composition from rxn_network.reactions.computed import Co...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/reactions/open.py
0.923747
0.458834
open.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING import plotly.express as px import plotly.graph_objects as go from pymatgen.analysis.chempot_diagram import plotly_layouts from rxn_network.costs.pareto import get_pareto_front if TYPE_CHECKING: from pandas import DataFrame def plot_reaction_...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/reactions/plotting.py
0.931431
0.544741
plotting.py
pypi
from __future__ import annotations from functools import cached_property, lru_cache from itertools import combinations import numpy as np import plotly.express as px from monty.json import MSONable from plotly.graph_objs import Figure from scipy.spatial import ConvexHull from rxn_network.core import Composition from...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/reactions/hull.py
0.934148
0.45641
hull.py
pypi
from __future__ import annotations from collections import OrderedDict from functools import lru_cache from typing import TYPE_CHECKING, Any, Collection, Iterable import numpy as np import ray from monty.json import MSONable from pandas import DataFrame from pymatgen.core.composition import Element from tqdm import t...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/reactions/reaction_set.py
0.922211
0.275248
reaction_set.py
pypi
from datetime import datetime from typing import Any, Dict, List # avoids pydantic issues from pydantic import BaseModel, Field from pymatgen.core.composition import Element from rxn_network.entries.entry_set import GibbsEntrySet from rxn_network.enumerators.base import Enumerator from rxn_network.network.base impor...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/jobs/schema.py
0.920193
0.418043
schema.py
pypi
from __future__ import annotations from dataclasses import dataclass, field from typing import TYPE_CHECKING, Iterable import numpy as np import ray from jobflow import SETTINGS, Maker, job from pymatgen.core.composition import Element from tqdm import tqdm from rxn_network.core import Composition from rxn_network....
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/jobs/core.py
0.914825
0.226709
core.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING, Iterable from pymatgen.analysis.interface_reactions import ( GrandPotentialInterfacialReactivity, InterfacialReactivity, ) from pymatgen.analysis.phase_diagram import PhaseDiagram from pymatgen.core.periodic_table import Element from pymatge...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/enumerators/utils.py
0.947986
0.399285
utils.py
pypi
from __future__ import annotations from itertools import product from pymatgen.core.composition import Element from rxn_network.core import Composition from rxn_network.enumerators.basic import BasicEnumerator from rxn_network.enumerators.utils import react_interface class MinimizeGibbsEnumerator(BasicEnumerator):...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/enumerators/minimize.py
0.879665
0.343576
minimize.py
pypi
from __future__ import annotations from copy import deepcopy from itertools import combinations from typing import TYPE_CHECKING import numpy as np from monty.json import MontyDecoder from pymatgen.analysis.phase_diagram import GrandPotPDEntry from pymatgen.entries.computed_entries import ComputedEntry, ConstantEnerg...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/entries/gibbs.py
0.948406
0.512144
gibbs.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING import numpy as np from pymatgen.analysis.phase_diagram import GrandPotPDEntry from pymatgen.entries.computed_entries import ComputedEntry from rxn_network.core import Composition if TYPE_CHECKING: from pymatgen.core.periodic_table import Eleme...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/entries/interpolated.py
0.959611
0.393152
interpolated.py
pypi
from __future__ import annotations import hashlib from typing import TYPE_CHECKING from monty.json import MontyDecoder from pymatgen.analysis.phase_diagram import GrandPotPDEntry from pymatgen.entries.computed_entries import ComputedEntry, EnergyAdjustment from scipy.interpolate import interp1d from rxn_network.core...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/entries/experimental.py
0.968201
0.438905
experimental.py
pypi
from __future__ import annotations from abc import ABCMeta, abstractmethod from copy import deepcopy from typing import TYPE_CHECKING from monty.json import MSONable if TYPE_CHECKING: from rxn_network.reactions.base import Reaction class Calculator(MSONable, metaclass=ABCMeta): """ Base definition for ...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/costs/base.py
0.938857
0.358858
base.py
pypi
from __future__ import annotations from itertools import chain, combinations, product from typing import TYPE_CHECKING, Callable, Iterable import numpy as np from rxn_network.costs.base import Calculator from rxn_network.thermo.chempot_diagram import ChemicalPotentialDiagram if TYPE_CHECKING: from pymatgen.anal...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/costs/calculators.py
0.946535
0.471102
calculators.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING import numpy as np if TYPE_CHECKING: from pandas import DataFrame def get_pareto_front( df: DataFrame, metrics: tuple[str, ...] = ( "energy", "primary_competition", "secondary_competition", ), maximize: ...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/costs/pareto.py
0.930316
0.612947
pareto.py
pypi
from __future__ import annotations from typing import TYPE_CHECKING import numpy as np from rxn_network.costs.base import CostFunction if TYPE_CHECKING: from rxn_network.reactions.computed import ComputedReaction class Softplus(CostFunction): """ The softplus cost function is a smoothed version of the...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/costs/functions.py
0.955225
0.607285
functions.py
pypi
import logging import sys from datetime import datetime from itertools import chain, combinations, zip_longest from pathlib import Path from typing import Any, Iterable def limited_powerset(iterable: Iterable, max_size: int) -> Iterable: """ Helper method for generating subsets ranging from singular leng...
/reaction-network-8.0.3.tar.gz/reaction-network-8.0.3/src/rxn_network/utils/funcs.py
0.810516
0.408011
funcs.py
pypi
# Reaction plane fit [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.1599239.svg)](https://doi.org/10.5281/zenodo.1599239) [![Documentation Status](https://readthedocs.org/projects/reactionplanefit/badge/?version=latest)](https://reactionplanefit.readthedocs.io/en/latest/?badge=latest) [![Build Status](https://tra...
/reaction_plane_fit-4.0.tar.gz/reaction_plane_fit-4.0/README.md
0.906561
0.986468
README.md
pypi
import logging import numpy as np from typing import Any, Callable, Dict, Tuple from pachyderm import histogram from reaction_plane_fit import base from reaction_plane_fit import fit from reaction_plane_fit.fit import Data logger = logging.getLogger(__name__) # Typing helpers # This is a tuple of the matplotlib fig...
/reaction_plane_fit-4.0.tar.gz/reaction_plane_fit-4.0/reaction_plane_fit/plot.py
0.944125
0.599514
plot.py
pypi
import argparse import logging import pkg_resources from typing import Any, Dict, Tuple, Type, TYPE_CHECKING import uproot from reaction_plane_fit import fit from reaction_plane_fit.fit import Data, InputData from reaction_plane_fit.fit import FitArguments from reaction_plane_fit import three_orientations from reactio...
/reaction_plane_fit-4.0.tar.gz/reaction_plane_fit-4.0/reaction_plane_fit/example.py
0.914111
0.624694
example.py
pypi
import logging import numpy as np from numpy import sin, cos from typing import Any, Callable, Dict, Union from reaction_plane_fit import base from reaction_plane_fit import fit from reaction_plane_fit import functions logger = logging.getLogger(__name__) class SignalFitComponent(fit.SignalFitComponent): """ Sig...
/reaction_plane_fit-4.0.tar.gz/reaction_plane_fit-4.0/reaction_plane_fit/three_orientations.py
0.953188
0.609001
three_orientations.py
pypi
import logging import iminuit import numpy as np from typing import Callable, cast, Dict, TYPE_CHECKING import pachyderm.fit if TYPE_CHECKING: from reaction_plane_fit import base logger = logging.getLogger(__name__) def determine_signal_dominated_fit_function(rp_orientation: str, resolution_parameters: Dict[str...
/reaction_plane_fit-4.0.tar.gz/reaction_plane_fit-4.0/reaction_plane_fit/functions.py
0.936481
0.639194
functions.py
pypi
from __future__ import annotations from typing import Any from typing import Callable from typing import Dict, Optional, Tuple, List from collections import defaultdict from dataclasses import fields import pandas as pd import swifter # noqa #pylint: disable=unused-import from tqdm import tqdm from rxnutils.chem.uti...
/reaction_utils-1.2.0.tar.gz/reaction_utils-1.2.0/rxnutils/pipeline/base.py
0.920634
0.331512
base.py
pypi
import argparse from typing import Dict, Any, Optional, Sequence import yaml import pandas as pd # imports needed to register all the actions # pylint: disable=unused-import import rxnutils.pipeline.actions.reaction_mod # noqa import rxnutils.pipeline.actions.reaction_props # noqa import rxnutils.pipeline.actions.t...
/reaction_utils-1.2.0.tar.gz/reaction_utils-1.2.0/rxnutils/pipeline/runner.py
0.845049
0.259825
runner.py
pypi
from __future__ import annotations from dataclasses import dataclass from typing import ClassVar import pandas as pd from rdkit import RDLogger from rxnutils.pipeline.base import action rd_logger = RDLogger.logger() rd_logger.setLevel(RDLogger.CRITICAL) @action @dataclass class DropColumns: """Drops columns spe...
/reaction_utils-1.2.0.tar.gz/reaction_utils-1.2.0/rxnutils/pipeline/actions/dataframe_mod.py
0.908232
0.420005
dataframe_mod.py
pypi
from __future__ import annotations import json from collections import defaultdict from typing import ClassVar, Tuple, List, Set from dataclasses import dataclass import pandas as pd from rdkit import RDLogger from rdkit import Chem from rdkit.Chem.rdMolDescriptors import CalcNumRings from rdkit.Chem import Descripto...
/reaction_utils-1.2.0.tar.gz/reaction_utils-1.2.0/rxnutils/pipeline/actions/reaction_props.py
0.863579
0.25611
reaction_props.py
pypi
from __future__ import annotations import os import subprocess import sys import tempfile from dataclasses import dataclass from typing import ClassVar, List, Tuple import pandas as pd from rdkit import Chem, RDLogger from rdkit.Chem import RDConfig from rxnutils.chem.utils import ( atom_mapping_numbers, neut...
/reaction_utils-1.2.0.tar.gz/reaction_utils-1.2.0/rxnutils/pipeline/actions/reaction_mod.py
0.562898
0.165965
reaction_mod.py
pypi
from __future__ import annotations from dataclasses import dataclass from typing import ClassVar, Set, Sequence import pandas as pd from rdkit import RDLogger from rdkit import Chem from rdkit.Chem import AllChem from rxnutils.pipeline.base import action, global_apply from rxnutils.chem.template import ReactionTempla...
/reaction_utils-1.2.0.tar.gz/reaction_utils-1.2.0/rxnutils/pipeline/actions/templates.py
0.852859
0.232158
templates.py
pypi
import argparse from typing import Optional, Sequence import pandas as pd try: from rxnmapper import RXNMapper # pylint: disable=all except ImportError: DEPENDENCY_OK = False else: DEPENDENCY_OK = True def main(input_args: Optional[Sequence[str]] = None) -> None: """Function for command-line tool""...
/reaction_utils-1.2.0.tar.gz/reaction_utils-1.2.0/rxnutils/data/mapping.py
0.696991
0.161783
mapping.py
pypi
import os import math from pathlib import Path import pandas as pd from metaflow import FlowSpec, Parameter # This is hack to only import the validation_runner if rxnmapper is not installed try: import rxnmapper # noqa except ImportError: from rxnutils.pipeline.runner import main as validation_runner def n...
/reaction_utils-1.2.0.tar.gz/reaction_utils-1.2.0/rxnutils/data/base_pipeline.py
0.47098
0.267017
base_pipeline.py
pypi
import logging import functools from typing import List, Tuple import rdchiral.template_extractor from rdkit import Chem from rdkit.Chem import AllChem from rdkit.Chem.MolStandardize import rdMolStandardize def get_special_groups(mol) -> List[Tuple[Tuple[int, ...], Tuple[int, ...]]]: """ Given an RDKit mol...
/reaction_utils-1.2.0.tar.gz/reaction_utils-1.2.0/rxnutils/chem/utils.py
0.473901
0.37399
utils.py
pypi
import hashlib from typing import List, Tuple, Optional, Dict, Any import wrapt_timeout_decorator from rdkit import Chem from rdkit.Chem import AllChem from rdchiral import template_extractor as extractor from rxnutils.chem.rinchi import rinchi_api from rxnutils.chem import utils from rxnutils.chem.template import Re...
/reaction_utils-1.2.0.tar.gz/reaction_utils-1.2.0/rxnutils/chem/reaction.py
0.91457
0.415729
reaction.py
pypi
import django.db.models.deletion from django.db import migrations, models import reactivated.constraints import reactivated.fields import sample.server.apps.samples.models class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( ...
/reactivated-3.0.0a64.tar.gz/reactivated-3.0.0a64/sample/server/apps/samples/migrations/0001_initial.py
0.50952
0.167287
0001_initial.py
pypi