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 json from urllib.parse import urlencode from .field import (ClusterMixin, FctxMixin, FieldsMixin, GeoFilterMixin, GeoTypeMixin, IntervalMixin, LocaleMixin, MetricsMixin, PaginationMixin, RangeDateMixin, SortMixin, StandardParameterMixin, TimezoneMixin)...
/radarly-py-1.0.17.tar.gz/radarly-py-1.0.17/radarly/parameters/__init__.py
0.715722
0.335555
__init__.py
pypi
<h1 align="center">RADAR Pipeline</h1> <p align="center"> <a href="https://github.com/RADAR-base/radarpipeline"><img alt="GitHub branch checks state" src="https://img.shields.io/github/checks-status/RADAR-base/radarpipeline/main"></a> <a href="https://github.com/RADAR-base/radarpipeline/issues"><img alt="GitHub issues...
/radarpipeline-2.0.1.tar.gz/radarpipeline-2.0.1/README.md
0.734501
0.924005
README.md
pypi
class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" class ApiTypeError(OpenApiException, TypeError): def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None): """ Raises an exception for TypeErrors Args: ...
/radarr_py-0.3.1-py3-none-any.whl/radarr/exceptions.py
0.769514
0.279315
exceptions.py
pypi
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from datetime import datetime from typing import List, Optional, Union from pydantic import BaseModel from radarr.models.add_movie_options import AddMovieOptions from radarr.models.alternative_title_...
/radarr_py-0.3.1-py3-none-any.whl/radarr/models/movie_resource.py
0.890014
0.245362
movie_resource.py
pypi
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from typing import Optional from pydantic import BaseModel from radarr.models.authentication_type import AuthenticationType from radarr.models.certificate_validation_type import CertificateValidatio...
/radarr_py-0.3.1-py3-none-any.whl/radarr/models/host_config_resource.py
0.837055
0.2083
host_config_resource.py
pypi
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from typing import List, Optional from pydantic import BaseModel from radarr.models.field import Field from radarr.models.import_list_type import ImportListType from radarr.models.monitor_types impo...
/radarr_py-0.3.1-py3-none-any.whl/radarr/models/import_list_resource.py
0.909086
0.204878
import_list_resource.py
pypi
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from datetime import datetime from typing import Optional from pydantic import BaseModel from radarr.models.command import Command from radarr.models.command_priority import CommandPriority from rada...
/radarr_py-0.3.1-py3-none-any.whl/radarr/models/command_resource.py
0.913499
0.163746
command_resource.py
pypi
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from datetime import datetime from typing import List, Optional, Union from pydantic import BaseModel from radarr.models.alternative_title import AlternativeTitle from radarr.models.language import L...
/radarr_py-0.3.1-py3-none-any.whl/radarr/models/movie_metadata.py
0.885328
0.213336
movie_metadata.py
pypi
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from datetime import datetime from typing import List, Optional, Union from pydantic import BaseModel from radarr.models.custom_format_resource import CustomFormatResource from radarr.models.download...
/radarr_py-0.3.1-py3-none-any.whl/radarr/models/release_resource.py
0.88765
0.174921
release_resource.py
pypi
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from datetime import datetime from typing import Optional from pydantic import BaseModel from radarr.models.authentication_type import AuthenticationType from radarr.models.database_type import Datab...
/radarr_py-0.3.1-py3-none-any.whl/radarr/models/system_resource.py
0.824427
0.176352
system_resource.py
pypi
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from typing import List, Optional from pydantic import BaseModel from radarr.models.custom_format_resource import CustomFormatResource from radarr.models.language import Language from radarr.models....
/radarr_py-0.3.1-py3-none-any.whl/radarr/models/manual_import_resource.py
0.909728
0.208038
manual_import_resource.py
pypi
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from datetime import datetime from typing import List, Optional from pydantic import BaseModel from radarr.models.custom_format_resource import CustomFormatResource from radarr.models.language import...
/radarr_py-0.3.1-py3-none-any.whl/radarr/models/movie_file_resource.py
0.906081
0.165222
movie_file_resource.py
pypi
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from datetime import datetime from typing import List, Optional from pydantic import BaseModel from radarr.models.custom_format_resource import CustomFormatResource from radarr.models.download_protoc...
/radarr_py-0.3.1-py3-none-any.whl/radarr/models/blocklist_resource.py
0.899995
0.17962
blocklist_resource.py
pypi
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from datetime import datetime from typing import List, Optional, Union from pydantic import BaseModel from radarr.models.custom_format_resource import CustomFormatResource from radarr.models.download...
/radarr_py-0.3.1-py3-none-any.whl/radarr/models/queue_resource.py
0.897015
0.218774
queue_resource.py
pypi
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from datetime import datetime from typing import Dict, List, Optional from pydantic import BaseModel from radarr.models.custom_format_resource import CustomFormatResource from radarr.models.language ...
/radarr_py-0.3.1-py3-none-any.whl/radarr/models/history_resource.py
0.916766
0.211794
history_resource.py
pypi
import numpy as np import matplotlib.pyplot as plt import csv def dat_reader(filename,datasize,csvname): """ Parsing data for a .dat file into a CSV file Combines real and imaginary values from a .dat file into a CSV file. After combining them together, there are imaginary values. Bot...
/radarreader-omarimran2000-0.1.2.tar.gz/radarreader-omarimran2000-0.1.2/radarreader/radar.py
0.54819
0.475544
radar.py
pypi
from __future__ import division from scipy.stats import * import random as R from pylab import* import numpy as np from scipy.integrate import quad from scipy.interpolate import interp1d def integrand_debye(t,alpha): return t/(alpha*(np.exp(t)-1)) def debye(alpha): return quad(integrand_debye, 0, alpha, args=...
/radarsatlib-1.0.0.linux-x86_64.tar.gz/usr/local/lib/python2.7/dist-packages/copulalib/copulalib.py
0.436382
0.353679
copulalib.py
pypi
import os import matplotlib.pyplot as plt import pandas as pd import dask.dataframe as dd from ..common import log from ..util.parsers import timestamp_from_string pd.plotting.register_matplotlib_converters() def data_plot(ptc, modalities, start, end, freq, ax=None, events=None, event_bounds=None, event_resample=N...
/radarstudy-0.4.2-py3-none-any.whl/radar/plot/data.py
0.667581
0.488527
data.py
pypi
import numpy as np import matplotlib as mpl import matplotlib.pyplot as plt try: import cartopy.crs as ccrs from cartopy.io.img_tiles import Stamen except ModuleNotFoundError: raise ImportError( 'Geo plotting requires cartopy\n' 'Installing with conda is the most straightforward approach: \n...
/radarstudy-0.4.2-py3-none-any.whl/radar/plot/geo.py
0.827096
0.531635
geo.py
pypi
import numpy as np import pandas as pd import seaborn as sns HOUR = pd.Timedelta('1h') CMAP = [(1, 1, 1)] CMAP.extend(sns.color_palette('Set2', 20)) def ptc_number(ptc): return int(ptc.info['record_id']) def data_completion_hourly(ddf, start, end, enrolment_date=None): """ Returns a vector with elements re...
/radarstudy-0.4.2-py3-none-any.whl/radar/plot/completion_plot.py
0.797123
0.456773
completion_plot.py
pypi
import pandas as pd import seaborn as sns from datetime import datetime import matplotlib.patches as patches from ..common import log from ..util.completion import completion_idx_has_data def completion_plot(completion, modalities, start, end, freq, ax=None, cmap=None, x_tick_mult=24, x_tick_fmt="%y-%m-%d %H:%M",...
/radarstudy-0.4.2-py3-none-any.whl/radar/plot/completion.py
0.508788
0.487185
completion.py
pypi
from functools import wraps import numpy as np import pandas as pd from . import validators from ..generic import Registry CLEANERS = Registry() def last(x): """ Returns the last element of a series. Params: x (pd.Series) Returns: scalar of x.dtype """ return x.iloc[-1] def val...
/radarstudy-0.4.2-py3-none-any.whl/radar/preprocess/clean.py
0.87724
0.364806
clean.py
pypi
import numpy as np import pandas as pd from .filters import butterworth from typing import List, Tuple SEC = pd.Timedelta(1, 's') def calculate_drift(timeReceived: pd.Series) -> pd.Series: """ Calculate timedelta between timeRecieved and time. Parameters __________ timeReceived: pandas.Series ...
/radarstudy-0.4.2-py3-none-any.whl/radar/preprocess/e4.py
0.880759
0.698561
e4.py
pypi
import os import pyarrow.feather as ft import pandas as pd import dask.dataframe as dd from dask import delayed from .core import glob_path_for_files from .generic import create_divisions def to_feather(df: pd.DataFrame, path: str) -> None: """ DataFrame to multi-file feather format. Uses the first row of fir...
/radarstudy-0.4.2-py3-none-any.whl/radar/io/feather.py
0.608361
0.411939
feather.py
pypi
from typing import List from functools import partial import h5py import pandas as pd import dask.array as da import dask.dataframe as dd from .core import glob_path_for_files, terminal_folders from .generic import FakeDatetimeArray class ImecFile(): def __init__(self, path: str, signals: List[str], offset: int =...
/radarstudy-0.4.2-py3-none-any.whl/radar/io/imec.py
0.82379
0.362489
imec.py
pypi
import time from typing import Callable, Union, Any, List, Tuple from io import StringIO from functools import wraps, partial from itertools import chain import psycopg2 from psycopg2.extensions import connection as Connection from psycopg2.pool import AbstractConnectionPool import pandas as pd from ..log import log ...
/radarstudy-0.4.2-py3-none-any.whl/radar/io/sql.py
0.706494
0.310616
sql.py
pypi
from typing import List from functools import singledispatch import zarr as _zarr import numpy as np import pandas as pd import dask.dataframe as dd import dask.array as da from dask import delayed from numcodecs import MsgPack def get_group(path, group, overwrite): if group is None: store = _zarr.Directo...
/radarstudy-0.4.2-py3-none-any.whl/radar/io/zarr.py
0.567337
0.244622
zarr.py
pypi
""" Generic IO functions """ from typing import List, Union import os import numpy as np import pandas as pd from ..generic import methdispatch class FakeDatetimeArray(): """ A fake numpy datetime array """ ndim = 1 _index_error = ( 'Only integer, slices (`:`), ellipsis (`...`), ' ' in...
/radarstudy-0.4.2-py3-none-any.whl/radar/io/generic.py
0.884888
0.449876
generic.py
pypi
from typing import Callable, Dict import dateutil from datetime import datetime import numpy as np import pandas as pd DT_MULT = int(1e9) class RadarCsvReader(): def __init__(self, dtypes=None, column_processors=None, has_array_fields=True, timecols=tuple(), replace_dots=True):...
/radarstudy-0.4.2-py3-none-any.whl/radar/io/radar.py
0.744378
0.299675
radar.py
pypi
import os from functools import lru_cache from dask.utils import import_required from dask.bytes.local import LocalFileSystem as daskLFC class LocalFileSystem(daskLFC): """ An extended version of dask's LocalFileSystem See: dask.bytes.local.LocalFileSystem """ def listdir_conditional(self, path=None, ...
/radarstudy-0.4.2-py3-none-any.whl/radar/io/fs.py
0.75985
0.269848
fs.py
pypi
import glob import yaml import requests from collections import OrderedDict from packaging import version from ..defaults import config class ProjectSpecs(dict): """ A dictionary class to hold all YML specifications relating to a RADAR project Parameters __________ device_specifications : list...
/radarstudy-0.4.2-py3-none-any.whl/radar/util/specifications.py
0.57093
0.227748
specifications.py
pypi
import re import numpy as np import pandas as pd from ..common import log _DEF_COLS = ['key.projectId', 'key.userId', 'key.sourceId', 'value.time', 'value.timeCompleted', 'value.name', 'value.version'] def iterrows(df): return (row[1] for row in df.iterrows()) def populate(df, definit...
/radarstudy-0.4.2-py3-none-any.whl/radar/util/armt.py
0.761095
0.571109
armt.py
pypi
import json import requests import numpy as np import pandas as pd from functools import lru_cache from ..defaults import config, protocols class Object(object): pass class Protocol(object): def __init__(self, json_protocol): self._json = json_protocol self.name = self._json['name'] se...
/radarstudy-0.4.2-py3-none-any.whl/radar/util/protocol.py
0.552057
0.250048
protocol.py
pypi
from functools import lru_cache import pandas as pd import numpy as np from ....generic import update INFO = (('study', ['study', 'enrolment_date', 'visit', 'month']), ('study_devices', ['fitbit_serial', 'phone_status', ...
/radarstudy-0.4.2-py3-none-any.whl/radar/util/projects/mdd/parsers.py
0.675015
0.161419
parsers.py
pypi
import pandas as pd import numpy as np DAY = pd.Timedelta('1D') class RedcapEpi(): """ A class to parse information from an EPI Redcap CSV extract. The data dictionary can be found on the radar-base github. """ def __init__(self, csv_path, timezone): """ Parameters ________...
/radarstudy-0.4.2-py3-none-any.whl/radar/util/projects/epi/parsers.py
0.732305
0.413655
parsers.py
pypi
import numpy as np import torch import torch.nn.functional as F from torch.autograd import Variable class PreRank(torch.nn.Module): """ PreRank class is used for preranking entities for a given mention by multiplying entity vectors with word vectors """ def __init__(self, config, embeddings=None)...
/radboud_el-0.0.1-py3-none-any.whl/REL/mulrel_ranker.py
0.914181
0.412648
mulrel_ranker.py
pypi
from flair.data import Sentence from flair.models import SequenceTagger from segtok.segmenter import split_single from REL.mention_detection_base import MentionDetectionBase class MentionDetection(MentionDetectionBase): """ Class responsible for mention detection. """ def __init__(self, base_url, wi...
/radboud_el-0.0.1-py3-none-any.whl/REL/mention_detection.py
0.543833
0.511717
mention_detection.py
pypi
import os import pickle class TrainingEvaluationDatasets: """ Class responsible for loading training/evaluation datasets for local ED. Reading dataset from CoNLL dataset, extracted by https://github.com/dalab/deep-ed/ """ def __init__(self, base_url, wiki_version): self.person_names ...
/radboud_el-0.0.1-py3-none-any.whl/REL/training_datasets.py
0.592195
0.415195
training_datasets.py
pypi
import re from collections import defaultdict, namedtuple import numpy as np from REL.db.generic import GenericLookup from REL.mention_detection_base import MentionDetectionBase from REL.ner import NERBase, Span from REL.utils import preprocess_mention class Cmns(NERBase, MentionDetectionBase): def __init__(sel...
/radboud_el-0.0.1-py3-none-any.whl/REL/ner/ngram.py
0.652906
0.292223
ngram.py
pypi
[![DOI](https://zenodo.org/badge/634282475.svg)](https://zenodo.org/badge/latestdoi/634282475) # Radcomp: Radioactive compartment models Radcomp is a Python package for modelling the movement of radioactive nuclei and their progeny through a system. Currently only deterministic compartment models are provided. ##...
/radcomp-0.2.0.tar.gz/radcomp-0.2.0/README.md
0.872877
0.990587
README.md
pypi
import sys import dis from typing import List, Tuple, TypeVar from types import FunctionType __VERSION__ = "3.1.0" _WrappedMethod = TypeVar("_WrappedMethod", bound=FunctionType) def overrides(method: _WrappedMethod) -> _WrappedMethod: """Decorator to indicate that the decorated method overrides a method in ...
/radgraph-0.0.9.tar.gz/radgraph-0.0.9/overrides_/overrides.py
0.549641
0.261487
overrides.py
pypi
from __future__ import annotations from datetime import datetime as Datetime from typing import Any, Dict, List, Optional, Union, cast from pystac.catalog import Catalog from pystac.collection import Collection from pystac.item import Item from .. import client class MLModel(Item): session_kwargs: Dict[str, A...
/radiant_mlhub-0.5.5.tar.gz/radiant_mlhub-0.5.5/radiant_mlhub/models/ml_model.py
0.944215
0.208642
ml_model.py
pypi
from __future__ import annotations from pathlib import Path import concurrent.futures from datetime import datetime from enum import Enum from typing import Any, Dict, Iterable, Iterator, List, Optional, Union, Tuple from ..session import get_session from .. import client from . import Collection from ..client impo...
/radiant_mlhub-0.5.5.tar.gz/radiant_mlhub-0.5.5/radiant_mlhub/models/dataset.py
0.936597
0.33928
dataset.py
pypi
from typing import Any, Dict, List, Optional, cast from ..session import get_session from requests.exceptions import HTTPError from ..exceptions import EntityDoesNotExist, MLHubException def get_model_by_id(model_id: str, *, api_key: Optional[str] = None, profile: Optional[str] = None) -> Dict[str, Any]: """Retur...
/radiant_mlhub-0.5.5.tar.gz/radiant_mlhub-0.5.5/radiant_mlhub/client/ml_models.py
0.934612
0.264394
ml_models.py
pypi
import itertools as it from typing import Any, Dict, Iterator, List, Optional, cast from requests.exceptions import HTTPError from ..exceptions import EntityDoesNotExist, MLHubException from ..session import get_session def list_collections(*, api_key: Optional[str] = None, profile: Optional[str] = None) -> List[Di...
/radiant_mlhub-0.5.5.tar.gz/radiant_mlhub-0.5.5/radiant_mlhub/client/collections.py
0.924013
0.314182
collections.py
pypi
import os import urllib.parse from concurrent.futures import ThreadPoolExecutor from functools import partial from pathlib import Path from typing import Any, Dict, Iterable, Iterator, List, Optional, Union, cast from requests.exceptions import HTTPError from ..exceptions import EntityDoesNotExist, MLHubException fro...
/radiant_mlhub-0.5.5.tar.gz/radiant_mlhub-0.5.5/radiant_mlhub/client/datasets.py
0.866909
0.280851
datasets.py
pypi
from copy import deepcopy from enum import IntEnum from struct import pack from attr import attr, attributes from rv import ENCODING from rv.lib.validators import in_range, is_length from rv.note import ALL_NOTES, NOTECMD, Note class PatternAppearanceFlags(IntEnum): no_icon = 0x01 class PatternFlags(IntEnum):...
/radiant-voices-1.0.3.tar.gz/radiant-voices-1.0.3/src/python/rv/pattern.py
0.740737
0.213213
pattern.py
pypi
import logging from enum import Enum from rv.errors import ControllerValueError, RangeValidationError log = logging.getLogger(__name__) class Controller: """Defines a type of controller attached to a module. In Module classes, define controllers in the order they are enumerated in SunVox, so that they ...
/radiant-voices-1.0.3.tar.gz/radiant-voices-1.0.3/src/python/rv/controller.py
0.847621
0.333585
controller.py
pypi
from enum import Enum from itertools import chain from rv.chunks import ArrayChunk from rv.controller import CompactRange, Controller, Range from rv.errors import MappingError from rv.modules import Behavior as B from rv.modules import Module from rv.modules.base.multictl import BaseMultiCtl def convert_value(gain, ...
/radiant-voices-1.0.3.tar.gz/radiant-voices-1.0.3/src/python/rv/modules/multictl.py
0.509276
0.185836
multictl.py
pypi
import logging from io import BytesIO from itertools import chain from struct import pack, unpack from typing import List, Optional from logutils import BraceMessage as _F from rv.controller import Controller from rv.modules import Behavior as B from rv.modules import Module from rv.modules.base.sampler import BaseSam...
/radiant-voices-1.0.3.tar.gz/radiant-voices-1.0.3/src/python/rv/modules/sampler.py
0.803019
0.280814
sampler.py
pypi
import re from io import BytesIO from itertools import chain from string import digits from struct import pack import rv from rv.chunks import ArrayChunk from rv.controller import Controller, Range from rv.modules import Behavior as B from rv.modules import Module from rv.modules.base.metamodule import BaseMetaModule ...
/radiant-voices-1.0.3.tar.gz/radiant-voices-1.0.3/src/python/rv/modules/metamodule.py
0.582254
0.168104
metamodule.py
pypi
from __future__ import annotations import io import logging from collections import defaultdict from enum import Enum, IntEnum from struct import pack from typing import TYPE_CHECKING, Dict, List, Optional, Union from logutils import BraceMessage as _F from rv import ENCODING from rv.cmidmap import ControllerMidiMap ...
/radiant-voices-1.0.3.tar.gz/radiant-voices-1.0.3/src/python/rv/modules/module.py
0.901358
0.180107
module.py
pypi
from rv.modules import Behavior as B from rv.modules import Module from rv.modules.base.spectravoice import BaseSpectraVoice class SpectraVoice(BaseSpectraVoice, Module): chnk = 4 behaviors = {B.receives_notes, B.sends_audio} def __init__(self, **kwargs): harmonics = kwargs.pop("harmonics", [])...
/radiant-voices-1.0.3.tar.gz/radiant-voices-1.0.3/src/python/rv/modules/spectravoice.py
0.778481
0.340801
spectravoice.py
pypi
from enum import IntEnum from rv.controller import Controller from rv.option import Option class BaseAnalogGenerator: name = "AnalogGenerator" mtype = "Analog generator" mgroup = "Synth" flags = 73 class Mode(IntEnum): hq = 0 hq_mono = 1 lq = 2 lq_mono = 3 cl...
/radiant-voices-1.0.3.tar.gz/radiant-voices-1.0.3/src/python/rv/modules/base/analoggenerator.py
0.626924
0.16398
analoggenerator.py
pypi
from enum import IntEnum from rv.controller import Controller from rv.option import Option class BaseSampler: name = "Sampler" mtype = "Sampler" mgroup = "Synth" flags = 33881 class SampleInterpolation(IntEnum): off = 0 linear = 1 spline = 2 class EnvelopeInterpolati...
/radiant-voices-1.0.3.tar.gz/radiant-voices-1.0.3/src/python/rv/modules/base/sampler.py
0.669313
0.250116
sampler.py
pypi
from enum import IntEnum from rv.chunks import ArrayChunk from rv.controller import Controller class BaseSpectraVoice: name = "SpectraVoice" mtype = "SpectraVoice" mgroup = "Synth" flags = 73 class Mode(IntEnum): hq = 0 hq_mono = 1 lq = 2 lq_mono = 3 hq_sp...
/radiant-voices-1.0.3.tar.gz/radiant-voices-1.0.3/src/python/rv/modules/base/spectravoice.py
0.726814
0.266322
spectravoice.py
pypi
from __future__ import annotations import logging from struct import unpack from logutils import BraceMessage as _F from rv import ENCODING from rv.modules import MODULE_CLASSES, Chunk, Module from rv.modules.metamodule import MetaModule from rv.modules.output import Output from rv.readers.reader import Reader, Reade...
/radiant-voices-1.0.3.tar.gz/radiant-voices-1.0.3/src/python/rv/readers/module.py
0.522689
0.283106
module.py
pypi
from struct import unpack from typing import Optional from rv import ENCODING from rv.project import Project from rv.readers.module import ModuleReader from rv.readers.pattern import PatternCloneReader, PatternReader from rv.readers.reader import Reader, ReaderFinished class SunVoxReader(Reader): object: Optiona...
/radiant-voices-1.0.3.tar.gz/radiant-voices-1.0.3/src/python/rv/readers/sunvox.py
0.751648
0.359477
sunvox.py
pypi
SunVox File Format ================== This document describes the SunVox file format in a way that is useful to developers of any app that wants to read/write SunVox files. Special thanks to Alexander Zolotov for helping complete this document, and for sharing SunVox and his other creative works with the world. This...
/radiant-voices-1.0.3.tar.gz/radiant-voices-1.0.3/docs/sunvox-file-format.rst
0.882592
0.68723
sunvox-file-format.rst
pypi
# Analytics API Roadmap: * Phase 1 (P1): state model. [Done] * Phase 2 (P2): extended to event models. [Partial] * Phase 3 (P3): extended to statistical analysis. [not implemented] ## Classes The API has two classes: 1. Session(): public. 2. Entity(): private. ### Session() ``` session = Session(profiles, de...
/radical.analytics-1.34.0.tar.gz/radical.analytics-1.34.0/API.md
0.446012
0.991178
API.md
pypi
Time measurements ================= It usually is insightful to measure time durations to characterize the behavior of a system. For example, this characterization allows to make statements like: * the system spent 2 seconds on task A * the system spent more time on task A than on task B * the system spent 2 mi...
/radical.analytics-1.34.0.tar.gz/radical.analytics-1.34.0/docs/source/metrics.md
0.477798
0.931898
metrics.md
pypi
import os import radical.utils as ru class Enactor(object): ''' The Enactor is responsible to execute workflows on resources. The Enactor takes as input a list of tuples <workflow,resource> and executes the workflows on their selected resources. The Enactor offers a set of methods to execute an...
/radical.cm-0.2.1.tar.gz/radical.cm-0.2.1/src/radical/cm/enactor/base.py
0.54468
0.369912
base.py
pypi
import os import radical.utils as ru class Planner(object): ''' The planner receives a campaign, a set of resources, and an execution time estimation for each workflow per resource, and calculates a plan. The plan is a list of tuples. Each tuple defines at least: Workflow: A workflow member of th...
/radical.cm-0.2.1.tar.gz/radical.cm-0.2.1/src/radical/cm/planner/base.py
0.45302
0.421314
base.py
pypi
import os from random import randint, seed from .base import Planner class RandomPlanner(Planner): ''' This class implements a campaign planner based on random selection of resources for workflows. The random selection is happening based on a uniform distribution between resources. Constractor p...
/radical.cm-0.2.1.tar.gz/radical.cm-0.2.1/src/radical/cm/planner/random_planner.py
0.494629
0.328018
random_planner.py
pypi
from .base import Planner class HeftPlanner(Planner): ''' This class implemements a campaign planner based on Heterogeneous Earliest Finish Time (HEFT) scheduling algorithm. For reference: H. Topcuoglu, S. Hariri, and Min-You Wu. Performance-effective and low-complexity task scheduling for ...
/radical.cm-0.2.1.tar.gz/radical.cm-0.2.1/src/radical/cm/planner/heft_planner.py
0.566139
0.532972
heft_planner.py
pypi
from .base import Planner class L2FFPlanner(Planner): ''' This class implements a campaign planner based on Largest workflows to fastest resource first. Constractor parameters: campaign: A list of workflows resources: A list of resources, whose performance is given in operations per second ...
/radical.cm-0.2.1.tar.gz/radical.cm-0.2.1/src/radical/cm/planner/l2ff_planner.py
0.699254
0.440409
l2ff_planner.py
pypi
import radical.utils as ru import numpy as np from ..entities.core import Core from ..exceptions import CalcTypeError class Resource(object): def __init__(self, num_cores=1, perf_dist='uniform', dist_mean=10, temporal_var=0, spatial_var=0, no_uid=False): # Initialize ...
/radical.cm-0.2.1.tar.gz/radical.cm-0.2.1/src/radical/cm/utils/calculator/api/resource.py
0.605566
0.165998
resource.py
pypi
__copyright__ = "Copyright 2017-2018, http://radical.rutgers.edu" __author__ = "Vivek Balasubramanian <vivek.balasubramanian@rutgers.edu>" __license__ = "MIT" # ----------------------------------------------------------------------------- # Possible states INITIAL = 'DESCRIBED' SCHEDULING = 'SCHEDULING' SUSPENDED = '...
/radical.entk-1.36.0.tar.gz/radical.entk-1.36.0/src/radical/entk/states.py
0.465387
0.251211
states.py
pypi
from radical.entk import Pipeline, Stage, Task, AppManager import os # ------------------------------------------------------------------------------ # Set default verbosity if os.environ.get('RADICAL_ENTK_VERBOSE') is None: os.environ['RADICAL_ENTK_REPORT'] = 'True' def generate_pipeline(): # Create a Pip...
/radical.entk-1.36.0.tar.gz/radical.entk-1.36.0/examples/simple/eop.py
0.557002
0.28914
eop.py
pypi
from radical.entk import Pipeline, Stage, Task, AppManager import os if os.environ.get('RADICAL_ENTK_VERBOSE') is None: os.environ['RADICAL_ENTK_REPORT'] = 'True' # Each task of this example prints the hostname of the node on which it is # executed. Tagged tasks should print the same hostname. def get_pipeline(...
/radical.entk-1.36.0.tar.gz/radical.entk-1.36.0/examples/misc/lfs_tagging_dd.py
0.524151
0.29386
lfs_tagging_dd.py
pypi
import numpy as np from FitLNDistQuants import FitLNDistQuants as fitLN ''' CalcISDists Fit log-normal distributions to the Bamber and Aspinall (2013) and IPCC AR5 ice sheet melt estimates. Parameters: barates2100 = BA13 ice sheet melt rates in 2100 lastdecadegt = Ice sheet mass loss in giga-tonnes aris2090 = IPCC A...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14/icesheets/CalcISDists.py
0.765155
0.75085
CalcISDists.py
pypi
import numpy as np import sys import pyssht as ssht ''' ReadFingerprint.py Provides a function that reads in a fingerprint data file and converts the sine/cosine coefficients to a signal on a lat/lon grid Parameters: fname = File name that contains the sine/cosine coefficients for the fingerprint Return: f = The fi...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14/icesheets/ReadFingerprint.py
0.447943
0.685028
ReadFingerprint.py
pypi
import numpy as np import pickle import sys import os import argparse import time from netCDF4 import Dataset from scipy.stats import norm from scipy.stats import t ''' kopp14_project_oceandynamics.py This runs the projection stage for the ocean dynamics component of the Kopp14 workflow. The global projections are co...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14/oceandynamics/kopp14_project_oceandynamics.py
0.410402
0.285092
kopp14_project_oceandynamics.py
pypi
import numpy as np import os import pickle import argparse import re ''' kopp14_fit_oceandynamics.py This runs the fitting stage for the ocean dynamics component of the Kopp14 workflow. Parameters: pipeline_id = Unique identifier for the pipeline running this code ''' def kopp14_fit_oceandynamics(pipeline_id): #...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14/oceandynamics/kopp14_fit_oceandynamics.py
0.553747
0.199522
kopp14_fit_oceandynamics.py
pypi
import numpy as np import os import re import glob import scipy.io import scipy.sparse import h5py import time ''' IncludeDABZOSModels.py This script parses through a directory of models to determine if the output from each model should be included in the analysis. Parameters: model_dir = Directory of model output....
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14/oceandynamics/IncludeDABZOSModels.py
0.573081
0.531027
IncludeDABZOSModels.py
pypi
import numpy as np import pickle import os import argparse from IncludeModels import IncludeModels from SmoothZOSTOGA import SmoothZOSTOGA from DriftCorr import DriftCorr ''' kopp14_preprocess_thermalexp.py This script runs the ocean dynamics pre-processing task for the Kopp 2014 workflow. This task generates the va...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14/thermalexpansion/kopp14_preprocess_thermalexp.py
0.448185
0.219588
kopp14_preprocess_thermalexp.py
pypi
import numpy as np import pickle import sys import os import argparse import time import re from read_bkgdrate import read_bkgdrate from netCDF4 import Dataset ''' kopp14_postprocess_thermalexp.py This script runs the thermal expansion postprocessing task for the Kopp 2014 workflow. This task generates localized con...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14/thermalexpansion/kopp14_postprocess_thermalexp.py
0.435421
0.319811
kopp14_postprocess_thermalexp.py
pypi
import numpy as np import os import pickle import argparse ''' kopp14_fit_thermalexp.py This script runs the thermal expansion fitting task for the Kopp 2014 workflow. There's not much to fit or calibrate. This task basically aggregates the thermal expansion quantities into a mean and standard deviation (along with...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14/thermalexpansion/kopp14_fit_thermalexp.py
0.531453
0.290842
kopp14_fit_thermalexp.py
pypi
import numpy as np import pickle import sys import os import argparse import time import re from read_bkgdrate import read_bkgdrate from netCDF4 import Dataset ''' kopp14_postprocess_landwaterstorage.py This script runs the thermal expansion postprocessing task for the Kopp 2014 workflow. This task generates localiz...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14/landwaterstorage/kopp14_postprocess_landwaterstorage.py
0.442877
0.359336
kopp14_postprocess_landwaterstorage.py
pypi
import numpy as np import numpy.linalg as lin import os from covarfuns import * ''' denoise_CSIRO.py This script denoises the CSIRO data or data read in from the "read_CSIRO.py" script Parameters: thetTG = Theta values for the target sites (in this context, global) thinyrs = Thin the data set to years at this inter...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14/lib/winavg_CSIRO.py
0.444324
0.57069
winavg_CSIRO.py
pypi
import numpy as np import numpy.linalg as lin import os from covarfuns import * ''' denoise_CSIRO.py This script denoises the CSIRO data or data read in from the "read_CSIRO.py" script Parameters: thetTG = Theta values for the target sites (in this context, global) thinyrs = Thin the data set to years at this inter...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14/lib/denoise_CSIRO.py
0.444324
0.57069
denoise_CSIRO.py
pypi
import numpy as np import pickle import os import argparse from cholcov import cholcov ''' kopp14_fit_glaciers.py This script runs the glaciers fitting task for the Kopp 2014 workflow. This task generates the t-distributions for projecting glacier contributions. Parameters: pipeline_id = Unique identifier for the ...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14/glaciers/kopp14_fit_glaciers.py
0.510496
0.465266
kopp14_fit_glaciers.py
pypi
import numpy as np import sys import pyssht as ssht ''' ReadFingerprint.py Provides a function that reads in a fingerprint data file and converts the sine/cosine coefficients to a signal on a lat/lon grid Parameters: fname = File name that contains the sine/cosine coefficients for the fingerprint Return: f = The fi...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14/glaciers/ReadFingerprint.py
0.447943
0.685028
ReadFingerprint.py
pypi
import numpy as np import argparse import pickle import os import re ''' genmod_project_directsample.py The "genmod - directsample" module ingests a 2-dimensional array that contains samples of a sea-level change contributor (i.e. ice sheets, glaciers, etc.) as a function of time. These samples are treated as if the...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/genmod/directsample/genmod_project_directsample.py
0.500488
0.353651
genmod_project_directsample.py
pypi
import numpy as np from FitLNDistQuants import FitLNDistQuants as fitLN ''' CalcISDists Fit log-normal distributions to the Bamber and Aspinall (2013) and IPCC AR5 ice sheet melt estimates. Parameters: barates2100 = BA13 ice sheet melt rates in 2100 lastdecadegt = Ice sheet mass loss in giga-tonnes aris2090 = IPCC A...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14SROCC/icesheets/CalcISDists.py
0.765155
0.75085
CalcISDists.py
pypi
import numpy as np import sys import pyssht as ssht ''' ReadFingerprint.py Provides a function that reads in a fingerprint data file and converts the sine/cosine coefficients to a signal on a lat/lon grid Parameters: fname = File name that contains the sine/cosine coefficients for the fingerprint Return: f = The fi...
/radical.facts-0.2.0.tar.gz/radical.facts-0.2.0/modules/kopp14SROCC/icesheets/ReadFingerprint.py
0.447943
0.685028
ReadFingerprint.py
pypi
__author__ = "Andre Merzky, Mark Santcroos" __copyright__ = "Copyright 2015, The SAGA Project" __license__ = "MIT" '''This examples shows how to use the rs.Filesystem API with the Globus Online file adaptor. If something doesn't work as expected, try to set SAGA_VERBOSE=3 in your environment before you...
/radical.saga-1.36.0.tar.gz/radical.saga-1.36.0/examples/files/go_file_copy.py
0.406273
0.215908
go_file_copy.py
pypi
__author__ = 'RADICAL @ Rutgers' __copyright__ = 'Copyright 2012-2013, The SAGA Project' __license__ = 'MIT' ''' This examples shows how to run groups of jobs using the 'local' file adaptor. This example uses job containers for simplified and optimized bulk job handling. Job container can be used to model depe...
/radical.saga-1.36.0.tar.gz/radical.saga-1.36.0/examples/jobs/slurmjobcontainer.py
0.444083
0.393968
slurmjobcontainer.py
pypi
Synapse - SYNthetic Application ProfileS and Emulation ====================================================== Goal: emulate an applications runtime behavior as realistically as possible * emulate the application's execution structure (components and relations) * consume same amount of resources (CPU, Mem, D...
/radical.synapse-0.70.0.tar.gz/radical.synapse-0.70.0/README.md
0.46563
0.789964
README.md
pypi
from base64 import b64encode import os import socket HANDSHAKE = "VERSION\t1\t1\nCPID\t{}\n" SUPPORTED_MAJOR_VERSION = 1 AUTH_COMMAND = "AUTH\t{id}\tPLAIN\tservice={service}\tresp=" class DovecotAuthException(Exception): """DovecotAuth base Exception""" class UnsupportedVersion(DovecotAuthException): """...
/radicale_docecot_auth-0.2.tar.gz/radicale_docecot_auth-0.2/radicale_dovecot_auth/dovecot_auth.py
0.707203
0.277222
dovecot_auth.py
pypi
from base64 import b64encode import os import socket HANDSHAKE = "VERSION\t1\t1\nCPID\t{}\n" SUPPORTED_MAJOR_VERSION = 1 AUTH_COMMAND = "AUTH\t{id}\tPLAIN\tservice={service}\tresp=" class DovecotAuthException(Exception): """DovecotAuth base Exception""" class UnsupportedVersion(DovecotAuthException): """...
/radicale_dovecot_auth-0.4.1-py3-none-any.whl/radicale_dovecot_auth/dovecot_auth.py
0.710528
0.274266
dovecot_auth.py
pypi
"""Remind, Abook, Taskwarrior Storage backend for Radicale.""" from colorsys import hsv_to_rgb from os.path import basename, dirname, expanduser, join from time import gmtime, strftime from typing import (Iterable, Iterator, Mapping, Optional, Tuple, Union, overload) from zoneinfo import ZoneInfo ...
/radicale-remind-0.5.0.tar.gz/radicale-remind-0.5.0/radicale_remind.py
0.912874
0.273896
radicale_remind.py
pypi
from radicale.auth import BaseAuth import requests import time from threading import Lock class CacheEntry: '''Cache structure for login procedure ''' def __init__(self, valid, token, username, expiration): ''' :param valid: True if login was successfull :type valid: bool ...
/radicale-sirius-plugin-0.3.0.tar.gz/radicale-sirius-plugin-0.3.0/radicale_sirius_plugin/auth.py
0.594787
0.18072
auth.py
pypi
<a href="https://explosion.ai"><img src="https://explosion.ai/assets/img/logo.svg" width="125" height="125" align="right" /></a> # radicli: Radically lightweight command-line interfaces `radicli` is a small, zero-dependency Python package for creating command line interfaces, built on top of Python's [`argparse`](htt...
/radicli-0.0.25.tar.gz/radicli-0.0.25/README.md
0.706494
0.96225
README.md
pypi
import datetime from sqlalchemy import create_engine, Table, Column, Integer, String, \ MetaData, ForeignKey, DateTime, Text from sqlalchemy.orm import mapper, sessionmaker from sqlalchemy.sql import default_comparator class ServerStorage: """ Класс - оболочка для работы с базой данных сервера. Испол...
/radif_messenger_server-0.3.3.tar.gz/radif_messenger_server-0.3.3/server/server/database.py
0.42931
0.164215
database.py
pypi
import base64 import datetime import time import threading import xml.etree.ElementTree as ET import m3u8 import requests class AuthError(Exception): """認証失敗を知らせる例外クラス """ pass class CannotGetError(Exception): """HTTPリクエストに失敗したことを知らせる例外クラス """ pass class NotSelectedError(Exception): "...
/radiko.py-3.0.8-py3-none-any.whl/radiko/client.py
0.409457
0.176281
client.py
pypi
.. _com_beam: Finding the smallest common beam ================================ radio-beam implements an exact solution for sets of 2 beams and an approximate method---`the Khachiyan algorithm <https://en.wikipedia.org/wiki/Ellipsoid_method>`_---for larger sets. The former case is straightforward to compute as the be...
/radio-beam-0.3.4.tar.gz/radio-beam-0.3.4/docs/commonbeam.rst
0.975554
0.919426
commonbeam.rst
pypi
Radio Beam ========== radio-beam provides a tools for manipulating and utilizing two-dimensional Gaussian beams within the `astropy <http://www.astropy.org>`__ framework. It is primarily built for handling radio astronomy data and is integrated into the `spectral-cube <https://spectral-cube.readthedocs.io>_` package, ...
/radio-beam-0.3.4.tar.gz/radio-beam-0.3.4/docs/index.rst
0.961615
0.896433
index.rst
pypi
import importlib class Tuner: def __init__(self, bands, osize, cuda=False): # Import Dynamic Modules self.load_modules(cuda) # Variables to Self self.bands = bands self.fft_size = -1 # List Bands Boundaries los = self.xp.array([(b['freq'] - (b['bw']/2)) fo...
/radio-core-0.2.2.tar.gz/radio-core-0.2.2/radio/tools/tuner/__init__.py
0.525369
0.262139
__init__.py
pypi
import collections import importlib from radio.tools.pll import PLL from radio.tools.helpers import lfilter, filtfilt class WBFM: def __init__(self, tau, ifs, ofs, cuda=False): # Import Dynamic Modules self.load_modules(cuda) # Variables to Self self.tau = tau self.ifs =...
/radio-core-0.2.2.tar.gz/radio-core-0.2.2/radio/analog/wbfm.py
0.491456
0.379838
wbfm.py
pypi