code stringlengths 4 4.48k | docstring stringlengths 1 6.45k | _id stringlengths 24 24 |
|---|---|---|
class ContainerNotFound(BugZooException): <NEW_LINE> <INDENT> @classmethod <NEW_LINE> def from_message_and_data(cls, message: str, data: Dict[str, Any] ) -> 'ContainerNotFound': <NEW_LINE> <INDENT> return ContainerNotFound(data['uid']) <NEW_LINE> <DEDENT> def __init__(self, uid: str) -> None: <NEW_LINE> <INDENT> self._... | No active container was found with a given identifier. | 62598ee1cc0a2c11144795f8 |
class Class1(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(Class1, self).__init__() | Just a simple class | 62598ee123849d37ff84f6b0 |
class TestNumBuses(unittest.TestCase): <NEW_LINE> <INDENT> def test_no_buses(self): <NEW_LINE> <INDENT> expected = 0 <NEW_LINE> actual = a1.num_buses(0) <NEW_LINE> self.assertEqual(expected, actual) <NEW_LINE> <DEDENT> def test_low_buses(self): <NEW_LINE> <INDENT> expected = 1 <NEW_LINE> actual = a1.num_buses(25) <NEW_... | Test class for function a1.num_buses. | 62598ee157b8e32f52507400 |
class Battery: <NEW_LINE> <INDENT> def __init__(self, batteru_size=70): <NEW_LINE> <INDENT> self.battery_size = batteru_size <NEW_LINE> <DEDENT> def describe_battery(self): <NEW_LINE> <INDENT> print("This car has a " + str(self.battery_size) + "-KWh battery.") <NEW_LINE> <DEDENT> def get_ranges(self): <NEW_LINE> <INDEN... | 一次模拟电动汽车电瓶的简单尝试 | 62598ee11f5feb6acb161247 |
class MultiField(object): <NEW_LINE> <INDENT> template = "bootstrap/layout/multifield.html" <NEW_LINE> def __init__(self, label, *fields, **kwargs): <NEW_LINE> <INDENT> self.fields = fields <NEW_LINE> self.label_html = unicode(label) <NEW_LINE> self.label_class = kwargs.get('label_class', u'blockLabel') <NEW_LINE> self... | MultiField container. Renders to a multiField <div> | 62598ee1460517430c430a7e |
class UpdateTrainingRequestManualScore(CSVBulkUploadTestBase): <NEW_LINE> <INDENT> def test_requests_updated(self): <NEW_LINE> <INDENT> data = self.make_data() <NEW_LINE> errors_occur, cleaned = clean_upload_trainingrequest_manual_score(data) <NEW_LINE> self.assertFalse(errors_occur) <NEW_LINE> self.tr1.refresh_from_db... | Testing scenarios:
* requests get updated correctly | 62598ee1cad5886f8bdc38f6 |
class VstructParserSet(VstructParserInterface): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> super(VstructParserSet, self).__init__() <NEW_LINE> self._parsers = {} <NEW_LINE> <DEDENT> @staticmethod <NEW_LINE> def _basic_parse(Klass, buf, offset, name=None): <NEW_LINE> <INDENT> v = Klass() <NEW_LINE> v.vs... | a collection of vstruct class parses that can be selected by name.
example:
class FOO(VStruct)...
class BAR(VStruct)...
def vsEntryVstructParser():
s = VstructParserSet()
s.register_basic_parser("foo parser", FOO)
s.register_basic_parser("bar parser", BAR)
return s | 62598ee197e22403b38394e5 |
class GroceryItemForm(FlaskForm): <NEW_LINE> <INDENT> name = StringField('Name', validators=[DataRequired(), Length(min=1, max=80)]) <NEW_LINE> price = FloatField('Price', validators=[DataRequired()]) <NEW_LINE> category = StringField('Category', validators=[DataRequired(), Length(min=1, max=80)]) <NEW_LINE> photo_url ... | Form for adding/updating a GroceryItem. | 62598ee1d7e4931a7ef3a692 |
class RandomRouter(Router): <NEW_LINE> <INDENT> def route(self, sender: AgentId, pkg: Package, allowed_nbrs: List[AgentId]) -> Tuple[AgentId, List[Message]]: <NEW_LINE> <INDENT> return random.choice(allowed_nbrs), [] | Simplest router which just sends a packet in a random direction. | 62598ee10a50d4780f70399f |
class BaseSpider(scrapy.Spider): <NEW_LINE> <INDENT> name = "sayone.images" <NEW_LINE> start_urls = [ "http://sayonetech.com/" ] <NEW_LINE> allowed_domains = [] <NEW_LINE> banned_responses = [404, 500, ] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> super(BaseSpider, self).__init__() <NEW_LINE> self.domain = self.... | Base spider that help you crawl all images
through out the domain given in start urls | 62598ee13617ad0b5ee04725 |
class SangerSeq(Instruction): <NEW_LINE> <INDENT> def __init__(self, obj, wells, dataref, type, primer): <NEW_LINE> <INDENT> seq = { "op": "sanger_sequence", "type": type, "object": obj, "wells": wells, "dataref": dataref } <NEW_LINE> if primer and type == "rca": <NEW_LINE> <INDENT> seq["primer"] = primer <NEW_LINE> <D... | Send the indicated wells of the container specified for Sanger sequencing.
The specified wells should already contain the appropriate mix for
sequencing, including primers and DNA according to the instructions
provided by the vendor.
Parameters
----------
cont : Container, str
Container with well(s) that contain mat... | 62598ee166656f66f7d589d7 |
class TestChapter8MCTS(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass | Testing the Chapter8 Implementations
| 62598ee17b25080760ed5a91 |
class Blockwise(Mapping): <NEW_LINE> <INDENT> def __init__( self, output, output_indices, dsk, indices, numblocks, concatenate=None, new_axes=None, ): <NEW_LINE> <INDENT> self.output = output <NEW_LINE> self.output_indices = tuple(output_indices) <NEW_LINE> self.dsk = dsk <NEW_LINE> self.indices = tuple( (name, tuple(i... | Tensor Operation
This is a lazily constructed mapping for tensor operation graphs.
This defines a dictionary using an operation and an indexing pattern.
It is built for many operations like elementwise, transpose, tensordot, and
so on. We choose to keep these as symbolic mappings rather than raw
dictionaries because ... | 62598ee15fdd1c0f98e5c5a5 |
class itkWatershedImageFilterID2(itkImageToImageFilterAPython.itkImageToImageFilterID2IUL2): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> def __init__(self, *args, **kwargs): raise AttributeError("No constructor defined") <NEW_LIN... | Proxy of C++ itkWatershedImageFilterID2 class | 62598ee13eb6a72ae0388c38 |
class _RepoSvc(object): <NEW_LINE> <INDENT> def __init__(self, name, svc, grammar=None, usage='', namespace=None): <NEW_LINE> <INDENT> self.name = name <NEW_LINE> self.svc = svc <NEW_LINE> self.grammar = grammar <NEW_LINE> self.usage = usage <NEW_LINE> self.namespace = namespace <NEW_LINE> self.lock = Lock() | Repository Service
Consists of the service function, a grammar that defines how
a POS tagged query is to be turned into the service's arguments
(structure defined in interpreter.py), a lock that controls
concurrent access to the service, and an optional namespace to
prevent plugins offering similar/same services from s... | 62598ee18a43f66fc4bf0769 |
class Text(Object, ColorMixin): <NEW_LINE> <INDENT> def __init__(self, screen, x, y, text, size, color, static=0): <NEW_LINE> <INDENT> self.init_text (screen, x, y, text, size, color, static) <NEW_LINE> <DEDENT> def init_text (self, screen, x, y, text, size, color, static=0): <NEW_LINE> <INDENT> if not _have_font: <NEW... | A class for representing text on the screen.
The reference point of a Text object is the centre of its
bounding box. | 62598ee1851cf427c66b68c8 |
class SequenceWrapper: <NEW_LINE> <INDENT> def __init__(self, parent, items, pairs=None): <NEW_LINE> <INDENT> if pairs is not None: <NEW_LINE> <INDENT> self.pairs = 1 <NEW_LINE> <DEDENT> self.parent = parent <NEW_LINE> self.items = items <NEW_LINE> <DEDENT> pairs = None <NEW_LINE> def __getitem__(self, key): <NEW_LINE>... | A helper that manages lazy acquisition wrapping. | 62598ee1f7d966606f7465e7 |
class Rectangle: <NEW_LINE> <INDENT> number_of_instances = 0 <NEW_LINE> print_symbol = "#" <NEW_LINE> def __init__(self, width=0, height=0): <NEW_LINE> <INDENT> if not type(width) is int: <NEW_LINE> <INDENT> raise TypeError("width must be an integer") <NEW_LINE> <DEDENT> if width < 0: <NEW_LINE> <INDENT> raise ValueErr... | Rectangle class | 62598ee1cc0a2c11144795f9 |
class ReqParcelAccessoryData(object): <NEW_LINE> <INDENT> swagger_types = { 'accessory': 'str', 'amount': 'float', 'custom_fields': 'dict(str, object)' } <NEW_LINE> attribute_map = { 'accessory': 'accessory', 'amount': 'amount', 'custom_fields': 'customFields' } <NEW_LINE> def __init__(self, accessory=None, amount=None... | NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually. | 62598ee1cc0a2c11144795fa |
class GaussianNoise(object): <NEW_LINE> <INDENT> def __init__(self, mean, std, training=True): <NEW_LINE> <INDENT> self.mean = mean <NEW_LINE> self.std = std <NEW_LINE> self.training = training <NEW_LINE> <DEDENT> def __call__(self, tensor): <NEW_LINE> <INDENT> if self.training: <NEW_LINE> <INDENT> return gaussian_nois... | Apply Gaussian noise to an image.
Parameters
----------
mean : float
Mean of the Gaussian noise tensor.
std : float
Standard deviation of the noise tensor.
training : bool
Only apply Gaussian noise if True. | 62598ee1fff4ab517ebcbddc |
class OrderInfo(models.Model): <NEW_LINE> <INDENT> oid = models.CharField(max_length=20, primary_key=True) <NEW_LINE> user = models.ForeignKey('df_user.UserInfo', on_delete=models.CASCADE) <NEW_LINE> odate = models.DateTimeField(auto_now=True) <NEW_LINE> oIsPay = models.BooleanField(default=False) <NEW_LINE> ototal = m... | 订单信息 | 62598ee123849d37ff84f6b2 |
class SprintViewSet(DefaultsMixin, viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Sprint.objects.order_by('end') <NEW_LINE> serializer_class = SprintSerializer <NEW_LINE> filter_class = SprintFilter <NEW_LINE> search_fields = ('name','end') <NEW_LINE> ordering_fields = ('end', 'name',) | API endpoint for listing and creating sprints. | 62598ee12ae34c7f260a96df |
class card6and7(unittest.TestCase): <NEW_LINE> <INDENT> def testPlayable(self): <NEW_LINE> <INDENT> app = Labyrinth(1, 1, testBlankScenarioSetup) <NEW_LINE> self.assertFalse(app.deck["6"].playable("US", app)) <NEW_LINE> self.assertFalse(app.deck["7"].playable("US", app)) <NEW_LINE> app.markers.append("Patriot Act") <NE... | Sanctions | 62598ee1097d151d1a2bf616 |
class RequestResetForm(FlaskForm): <NEW_LINE> <INDENT> email = StringField('Email', validators=[DataRequired(), Email()]) <NEW_LINE> submit = SubmitField('Request Password Reset') <NEW_LINE> def validate_email(self, email): <NEW_LINE> <INDENT> user = User.query.filter_by(email=email.data).first() <NEW_LINE> if user is ... | Class for Requesting a reset form | 62598ee14428ac0f6e656b4a |
class FakeContext: <NEW_LINE> <INDENT> def __init__(self, method): <NEW_LINE> <INDENT> self._method = method <NEW_LINE> self._options = 0 <NEW_LINE> <DEDENT> def set_options(self, options): <NEW_LINE> <INDENT> self._options |= options <NEW_LINE> <DEDENT> def use_certificate_file(self, fileName): <NEW_LINE> <INDENT> pas... | L{OpenSSL.SSL.Context} double which can more easily be inspected. | 62598ee1435de62698e9a3cd |
class InformationPackageDetail(DetailView): <NEW_LINE> <INDENT> model = InformationPackage <NEW_LINE> context_object_name = 'ip' <NEW_LINE> template_name = 'management/detail.html' <NEW_LINE> slug_field = 'identifier' <NEW_LINE> slug_url_kwarg = 'identifier' <NEW_LINE> @method_decorator(login_required) <NEW_LINE> def d... | Information Package Detail View | 62598ee156ac1b37e63007e3 |
class SelectableScrFrame(VerticalScrolledFrame): <NEW_LINE> <INDENT> def __init__(self, master, data_ref, header, height): <NEW_LINE> <INDENT> VerticalScrolledFrame.__init__(self, master, height) <NEW_LINE> self.config(borderwidth=1, relief=SUNKEN) <NEW_LINE> self.master = master <NEW_LINE> self.data_ref = data_ref <NE... | Vertically Scrolling Frame displaying data lines with radio buttons.
The frame displays relevant data for review and allows selection for
editing and removal operations. | 62598ee18da39b475be017a2 |
class AuthenticationConfig(AppConfig): <NEW_LINE> <INDENT> name: str = 'authentication' | This class defines the configuration for the authentication app.
Attributes:
name (str): The app name. | 62598ee1796e427e5384cd90 |
class Storage(object): <NEW_LINE> <INDENT> def __init__(self, model, **kargs): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def save_one(self, json, id=None): <NEW_LINE> <INDENT> raise NotImplementedError() <NEW_LINE> <DEDENT> def save_many(self, jsons, ids=None): <NEW_LINE> <INDENT> raise NotImp... | Defatul storage interface | 62598ee11f5feb6acb161249 |
@resources.register('bq-job') <NEW_LINE> class BigQueryJob(QueryResourceManager): <NEW_LINE> <INDENT> class resource_type(TypeInfo): <NEW_LINE> <INDENT> service = 'bigquery' <NEW_LINE> version = 'v2' <NEW_LINE> component = 'jobs' <NEW_LINE> enum_spec = ('list', 'jobs[]', {'allUsers': True}) <NEW_LINE> get_requires_even... | GCP resource: https://cloud.google.com/bigquery/docs/reference/rest/v2/jobs
| 62598ee197e22403b38394e7 |
class SpcLink(univ.Choice): <NEW_LINE> <INDENT> componentType = namedtype.NamedTypes( namedtype.NamedType('url', char.IA5String().subtype( implicitTag=tag.Tag(tag.tagClassContext, tag.tagFormatConstructed, 0))), namedtype.NamedType('moniker', SpcSerializedObject().subtype( implicitTag=tag.Tag(tag.tagClassContext, tag.t... | According to Authenticode specification. | 62598ee167a9b606de5445c6 |
class curvatura: <NEW_LINE> <INDENT> def __Calcula_Curvograma(self,fn): <NEW_LINE> <INDENT> if type(fn) in [contour,contour_base]: <NEW_LINE> <INDENT> z = fn <NEW_LINE> <DEDENT> else: <NEW_LINE> <INDENT> z = contour(fn) <NEW_LINE> <DEDENT> caux = [contour(z.c,s) for s in self.sigmas] <NEW_LINE> caux.append(z) <NEW_LINE... | For a given binary image calculates and yields a family of curvature signals represented in a two dimensional ndarray structure; each row corresponds to the curvature signal derived from the smoothed contour for a certain smooth level. | 62598ee1d268445f26638e8a |
class StatusCodeError(BetfairError): <NEW_LINE> <INDENT> def __init__(self, status_code: str): <NEW_LINE> <INDENT> super(StatusCodeError, self).__init__(status_code) <NEW_LINE> self.status_code = status_code <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return "Status code error: %s" % self.status_code | Exception raised if status code is incorrect. | 62598ee14527f215b58e84fd |
class b2WorldManifold(object): <NEW_LINE> <INDENT> thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') <NEW_LINE> __repr__ = _swig_repr <NEW_LINE> def Initialize(self, manifold, xfA, radiusA, xfB, radiusB): <NEW_LINE> <INDENT> return _Box2D.b2WorldManifold_Initialize(... | This is used to compute the current state of a contact manifold. | 62598ee18e71fb1e983ba064 |
class Libpsl(AutotoolsPackage): <NEW_LINE> <INDENT> homepage = "https://github.com/rockdaboot/libpsl" <NEW_LINE> url = "https://github.com/rockdaboot/libpsl/releases/download/libpsl-0.17.0/libpsl-0.17.0.tar.gz" <NEW_LINE> version('0.17.0', 'fed13f33d0d6dc13ef24de255630bfcb') <NEW_LINE> depends_on('icu4c') <NEW_LIN... | libpsl - C library to handle the Public Suffix List. | 62598ee129b78933be2693cc |
class NormalizeTest(unittest.TestCase): <NEW_LINE> <INDENT> def test_scandal_2009(self): <NEW_LINE> <INDENT> self.assertEqual(process.normalize('scandal (2009)'), 'Scandal') <NEW_LINE> <DEDENT> def test_the_mentalist(self): <NEW_LINE> <INDENT> self.assertEqual(process.normalize('[www.down.org]the.mentalist'), 'The Ment... | Tests for normalize function | 62598ee12c8b7c6e89bd1db8 |
class HttpUrl(Url): <NEW_LINE> <INDENT> def __init__(self, scheme='http', login=None, hostport=None, path=None, search=None, fuzz_scheme=True, fuzz_delims=True, fuzzable=True, name=None): <NEW_LINE> <INDENT> if hostport is None: <NEW_LINE> <INDENT> raise KittyException('hostport is mandatory in HttpUrl') <NEW_LINE> <DE... | Container to fuzz Http(s) URL
::
httpurl = "http://" hostport [ "/" hpath [ "?" search ]]
hpath = hsegment *[ "/" hsegment ]
hsegment = *[ uchar | ";" | ":" | "@" | "&" | "=" ]
search = *[ uchar | ";" | ":" | "@" | "&" | "=" ] | 62598ee1d58c6744b42db5b3 |
class PointInPolygon(object): <NEW_LINE> <INDENT> def __init__(self, instance, database, table): <NEW_LINE> <INDENT> self._features = Features(instance, database) <NEW_LINE> self._table = table <NEW_LINE> <DEDENT> def pip(self, lat, lng, fields): <NEW_LINE> <INDENT> point = "GeomFromText('POINT(%f %f)')" % (lng, lat) <... | This class handles the pip requests.
It uses Features to query the db. | 62598ee10c0af96317c54996 |
class DisFinalBlock(th.nn.Module): <NEW_LINE> <INDENT> def __init__(self, in_channels, out_channels = 1, use_eql=True): <NEW_LINE> <INDENT> from torch.nn import LeakyReLU <NEW_LINE> from torch.nn import Conv2d <NEW_LINE> super().__init__() <NEW_LINE> self.batch_discriminator = MinibatchStdDev() <NEW_LINE> if use_eql: <... | Final block for the Discriminator | 62598ee1aad79263cf42ce0e |
class MacpoolBlock(ManagedObject): <NEW_LINE> <INDENT> consts = MacpoolBlockConsts() <NEW_LINE> naming_props = set(['from', 'to']) <NEW_LINE> mo_meta = MoMeta("MacpoolBlock", "macpoolBlock", "block-[r_from]-[to]", VersionMeta.Version101e, "InputOutput", 0x7f, [], ["admin", "ls-network-policy"], ['macpoolPool'], [], ["A... | This is MacpoolBlock class. | 62598ee17047854f4633d9d7 |
class PersonWeekDayOffResource(Resource, ArgsMixin): <NEW_LINE> <INDENT> @jwt_required <NEW_LINE> def get(self, person_id, year, week): <NEW_LINE> <INDENT> user_id = persons_service.get_current_user()["id"] <NEW_LINE> if person_id != user_id: <NEW_LINE> <INDENT> permissions.check_admin_permissions() <NEW_LINE> <DEDENT>... | Return all day off recorded for given week and person. | 62598ee1be383301e0251dd1 |
class AND(RuleExpression): <NEW_LINE> <INDENT> class FailMatchException(Exception): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def test_matches(self, rules, context_so_far = {}): <NEW_LINE> <INDENT> return self._test_matches_iter(rules, list(self)) <NEW_LINE> <DEDENT> def _test_matches_iter(self, rules, conditions = ... | A conjunction of patterns, all of which must match. | 62598ee199cbb53fe682f4ab |
class MuteCheckFailure(CommandError): <NEW_LINE> <INDENT> pass | Empty CheckFailure class for when the bot is muted in a server. | 62598ee176e4537e8c3edbb1 |
@skipIf(NO_MOCK, NO_MOCK_REASON) <NEW_LINE> class MemcachedTestCase(TestCase): <NEW_LINE> <INDENT> def test_managed(self): <NEW_LINE> <INDENT> name = 'foo' <NEW_LINE> ret = {'name': name, 'result': False, 'comment': '', 'changes': {}} <NEW_LINE> mock_t = MagicMock(side_effect=[CommandExecutionError, 'salt', True, True,... | Test cases for salt.states.memcached | 62598ee156ac1b37e63007e6 |
class PycbcGenerateRankingDataExecutable(Executable): <NEW_LINE> <INDENT> current_retention_level = Executable.INTERMEDIATE_PRODUCT <NEW_LINE> def __init__(self, cp, exe_name, universe=None, ifo=None, out_dir=None, tags=None): <NEW_LINE> <INDENT> if tags is None: <NEW_LINE> <INDENT> tags = [] <NEW_LINE> <DEDENT> Execut... | The class responsible for running the pycbc_gen_ranking_data
executable which is part 3 of 4 of the gstlal_inspiral_calc_likelihood
functionality | 62598ee1236d856c2adc8710 |
class Session: <NEW_LINE> <INDENT> def __init__(self, charging_station, tag): <NEW_LINE> <INDENT> self.charging_station = Flat.objects.get(name=charging_station) <NEW_LINE> self.meter = Meter.objects.get(flat=self.charging_station, active=True) <NEW_LINE> self.tag = tag <NEW_LINE> self.start_time = None <NEW_LINE> self... | Represents a charging session from START to END, instantiated
by the charging station. | 62598ee192d797404e387e78 |
class Solution: <NEW_LINE> <INDENT> def myPow(self, x: float, n: int) -> float: <NEW_LINE> <INDENT> def quickMul(N): <NEW_LINE> <INDENT> ans = 1.0 <NEW_LINE> x_contribute = x <NEW_LINE> while N > 0: <NEW_LINE> <INDENT> if N % 2 == 1: <NEW_LINE> <INDENT> ans *= x_contribute <NEW_LINE> <DEDENT> x_contribute *= x_contribu... | 快速幂+迭代
| 62598ee130bbd72246468232 |
class SectionRegistry: <NEW_LINE> <INDENT> def __init__(self, registry, section): <NEW_LINE> <INDENT> self.registry = registry <NEW_LINE> self.section = section <NEW_LINE> <DEDENT> def get(self, name): <NEW_LINE> <INDENT> return self.registry._get(name, self.section) | registro que saca los datos siempre de la misma sección | 62598ee14e4d562566370a13 |
class FullUserSerializer(serializers.ModelSerializer): <NEW_LINE> <INDENT> ngp_id = CharField(source="person.ngp_id", required=False) <NEW_LINE> activity_status = serializers.SerializerMethodField() <NEW_LINE> added_by = LimitedUserSerializer(required=False, read_only=True) <NEW_LINE> is_mobilize_america_signup = seria... | Full read-write User serializer for superuser access | 62598ee1925a0f43d25e6627 |
class Battery(object): <NEW_LINE> <INDENT> @property <NEW_LINE> def battery_level(self): <NEW_LINE> <INDENT> return self.attribute.value | The "Battery" properties mixin provides access to the current charge level.
:author: Tobias Wolf et al.
:copyright: Tobias Wolf et al. - All rights reserved
:package: aiohomee
:subpackage: client
:since: 1.0.0
:license: Mozilla Public License, v. 2.0
| 62598ee17d847024c075a9c8 |
class BufferingBenchmark(Options): <NEW_LINE> <INDENT> optParameters = [ ('scale', 's', '1', 'Work multiplier (bigger takes longer, might resist noise better)')] <NEW_LINE> def postOptions(self): <NEW_LINE> <INDENT> self['scale'] = int(self['scale']) | Options for configuring the execution parameters of a benchmark run. | 62598ee1e76e3b2f99fd7033 |
class RoundSetting(models.Model): <NEW_LINE> <INDENT> name = models.CharField( default="Round 1", help_text="The name of the round.", max_length=50,) <NEW_LINE> start = models.DateTimeField( default=datetime.datetime.today(), help_text="The start date of the round.") <NEW_LINE> end = models.DateTimeField( default=datet... | Defines the round settings for this challenge. | 62598ee1ac7a0e7691f70b0f |
class Alien(Sprite): <NEW_LINE> <INDENT> def __init__(self, ai_settings, screen): <NEW_LINE> <INDENT> super().__init__() <NEW_LINE> self.screen = screen <NEW_LINE> self.ai_settings = ai_settings <NEW_LINE> self.image = pygame.image.load('images/alien.bmp') <NEW_LINE> self.rect = self.image.get_rect() <NEW_LINE> self.re... | A class to represent a single alien. | 62598ee1009cb60464cffb49 |
class AE1d(_AENd): <NEW_LINE> <INDENT> def __init__(self, channel, layers, block='bottleneck', kernel_size=3, in_planes=1, out_planes=1): <NEW_LINE> <INDENT> super().__init__(1, channel=channel, layers=layers, block=block, kernel_size=kernel_size, in_planes=in_planes, out_planes=out_planes) | 1D residual auto-encoder.
This moule is a built-in model for residual auto-encoder.
The network would down-sample and up-sample and the input data according
to the network depth. The depth is given by the length of the argument
"layers". | 62598ee156b00c62f0fb0ecb |
class ModelInfo(msrest.serialization.Model): <NEW_LINE> <INDENT> _validation = { 'source': {'required': True}, 'start_time': {'required': True}, 'end_time': {'required': True}, 'display_name': {'max_length': 24, 'min_length': 0}, 'status': {'readonly': True}, 'errors': {'readonly': True}, 'diagnostics_info': {'readonly... | Train result of a model including status, errors and diagnose info for model and variables.
Variables are only populated by the server, and will be ignored when sending a request.
All required parameters must be populated in order to send to Azure.
:ivar sliding_window: An optional field, indicating how many previou... | 62598ee15fdd1c0f98e5c5a9 |
class Property(object): <NEW_LINE> <INDENT> def __init__(self, prop_id, name, termbase): <NEW_LINE> <INDENT> self.prop_id = prop_id <NEW_LINE> self.name = name <NEW_LINE> self._tb = termbase <NEW_LINE> <DEDENT> @property <NEW_LINE> def property_type(self): <NEW_LINE> <INDENT> with self._tb.get_session() as session: <NE... | High level representation of a property, which is characterized only by
its ID and a textual name. | 62598ee1c432627299fa15b2 |
class RolesList(AuthenticatedResource): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.reqparse = reqparse.RequestParser() <NEW_LINE> super(RolesList, self).__init__() <NEW_LINE> <DEDENT> @marshal_items(FIELDS) <NEW_LINE> def get(self): <NEW_LINE> <INDENT> parser = paginated_parser.copy() <NEW_LINE> p... | Defines the 'roles' endpoint | 62598ee1be383301e0251dd3 |
class BookStatus(models.Model): <NEW_LINE> <INDENT> user = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.CASCADE) <NEW_LINE> book = models.ForeignKey(Book, on_delete=models.SET_NULL, null=True, db_index=True) <NEW_LINE> status_date = models.DateTimeField(auto_now_add=True, null=False, blank=False) <NEW_L... | User specific book status (to read, read, etc.)
| 62598ee116aa5153ce3feaf7 |
class RedMonster(Monster): <NEW_LINE> <INDENT> def __init__(self, coord_x, coord_y): <NEW_LINE> <INDENT> super().__init__('red_monster', RED, coord_x, coord_y) <NEW_LINE> <DEDENT> def clone(self): <NEW_LINE> <INDENT> return RedMonster(self.coord_x, self.coord_y) | Red Monster prototype.
| 62598ee163d6d428bbee0dce |
class TECSCellTypeAttributeObject(TECSCellTypeVAObject): <NEW_LINE> <INDENT> def get_signature_prefix(self, sig): <NEW_LINE> <INDENT> return 'attr' <NEW_LINE> <DEDENT> def get_index_text(self, name): <NEW_LINE> <INDENT> return _('%s (TECS cell type attribute)') % name | Description of a TECS entry port.
| 62598ee11b99ca400228e80a |
class FunctionImageData(ImageData): <NEW_LINE> <INDENT> func = Callable <NEW_LINE> data_range = Instance(DataRange2D) <NEW_LINE> def __init__(self, **kw): <NEW_LINE> <INDENT> super(FunctionImageData, self).__init__(**kw) <NEW_LINE> self.recalculate() <NEW_LINE> <DEDENT> @on_trait_change('data_range.updated') <NEW_LINE>... | A class that provides data for a 2-D image based upon the range
supplied. This class can be used as the data source for an image plot
or contour plot.
Computation should be fairly swift for acceptable interactive performance. | 62598ee12eb69b55b15a0687 |
class DQNPolicy(BasePolicy): <NEW_LINE> <INDENT> def __init__(self, sess, ob_space, ac_space, n_env, n_steps, n_batch, reuse=False, scale=False, obs_phs=None, dueling=True): <NEW_LINE> <INDENT> super(DQNPolicy, self).__init__(sess, ob_space, ac_space, n_env, n_steps, n_batch, reuse=reuse, scale=scale, obs_phs=obs_phs) ... | Policy object that implements a DQN policy
:param sess: (TensorFlow session) The current TensorFlow session
:param ob_space: (Gym Space) The observation space of the environment
:param ac_space: (Gym Space) The action space of the environment
:param n_env: (int) The number of environments to run
:param n_steps: (int) ... | 62598ee1236d856c2adc8711 |
class VoteAndVoterResultSet(ResultSet): <NEW_LINE> <INDENT> def get_Response(self): <NEW_LINE> <INDENT> return self._output.get('Response', None) | Retrieve the value for the "Response" output from this choreography execution. (The resopnse from GovTrack.) | 62598ee101c39578d7f113a4 |
class IRCBotPlugin(protocol.ReconnectingClientFactory, BotPlugin): <NEW_LINE> <INDENT> maxDelay = 60*5 <NEW_LINE> def start(self): <NEW_LINE> <INDENT> self.client = None <NEW_LINE> self.listen_for_event("irc.do_*") <NEW_LINE> self.connector = reactor.connectSSL(self.config['server'], self.config['port'], self, ClientCo... | Implements a bot plugin and a twisted protocol client factory.
| 62598ee1090684286d5929dd |
class ModelEmbeddings(nn.Module): <NEW_LINE> <INDENT> def __init__(self, embed_size, vocab): <NEW_LINE> <INDENT> super(ModelEmbeddings, self).__init__() <NEW_LINE> self.embed_size = embed_size <NEW_LINE> self.source = None <NEW_LINE> self.target = None <NEW_LINE> src_pad_token_idx = vocab.src['<pad>'] <NEW_LINE> tgt_pa... | Class that converts input words to their embeddings. | 62598ee1adb09d7d5dc08bc2 |
class RotoGrad(RotateOnly): <NEW_LINE> <INDENT> num_tasks: int <NEW_LINE> backbone: nn.Module <NEW_LINE> heads: Sequence[nn.Module] <NEW_LINE> rep: torch.Tensor <NEW_LINE> def __init__(self, backbone: nn.Module, heads: Sequence[nn.Module], latent_size: int, *args, burn_in_period: int = 20, normalize_losses: bool = Fals... | Implementation of RotoGrad as described in the original paper. [1]_
Parameters
----------
backbone
Shared module.
heads
Task-specific modules.
latent_size
Size of the shared representation, that is, size of the output of backbone.Z
burn_in_period : optional, default=20
When back-propagating towards the... | 62598ee1b7558d5895461c47 |
class ContactoUpdate(generic.UpdateView): <NEW_LINE> <INDENT> model = Contacto <NEW_LINE> form_class = ContactoForm <NEW_LINE> template_name = 'paciente/contacto/editar.html' <NEW_LINE> def get_success_url(self): <NEW_LINE> <INDENT> return reverse_lazy( 'paciente:detalle', kwargs={'id_paciente': self.kwargs['id_pacient... | Contact Update | 62598ee144b2445a339b5c64 |
class Line3DCollection(LineCollection): <NEW_LINE> <INDENT> def __init__(self, segments, *args, **kwargs): <NEW_LINE> <INDENT> LineCollection.__init__(self, segments, *args, **kwargs) <NEW_LINE> <DEDENT> def set_sort_zpos(self, val): <NEW_LINE> <INDENT> self._sort_zpos = val <NEW_LINE> self.stale = True <NEW_LINE> <DED... | A collection of 3D lines. | 62598ee191af0d3eaad38414 |
class InternationalMelonOrder(AbstractMelonOrder): <NEW_LINE> <INDENT> def __init__(self, species, qty, country_code): <NEW_LINE> <INDENT> super(InternationalMelonOrder, self).__init__(species, qty, "international", .17) <NEW_LINE> self.country_code = country_code <NEW_LINE> <DEDENT> def get_country_code(self): <NEW_LI... | An international (non-US) melon order. | 62598ee1d53ae8145f916a86 |
class RSAkey0(object): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> rng = Random.new().read <NEW_LINE> RSAkey = RSA.generate(1024, rng) <NEW_LINE> self.privatekey = RSAkey <NEW_LINE> self.publicKey = self.privatekey.publickey() <NEW_LINE> <DEDENT> def export_private(self): <NEW_LINE> <INDENT> if self.pri... | class that creates a RSA key and all his derivitievs and functions:
public key, encryption, decryption, export key, import key, generate public key from private etc. | 62598ee130dc7b766599de83 |
class Key(_WSRPString): <NEW_LINE> <INDENT> __type_name__ = 'Key' <NEW_LINE> class Attributes(String.Attributes): <NEW_LINE> <INDENT> min_len = 1 <NEW_LINE> max_len = 255 | See WSRP 1.0 spec. 5.1.3
| 62598ee157b8e32f52507403 |
class InstallMode(install): <NEW_LINE> <INDENT> description = 'To install NApps, use kytos-utils. Devs, see "develop".' <NEW_LINE> def run(self): <NEW_LINE> <INDENT> print(self.description) | Create files in var/lib/kytos. | 62598ee1435de62698e9a3d2 |
class Fredkin(ElementaryQuantumGate): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.matrix = matrix([ [ 1, 0, 0, 0, 0, 0, 0, 0], [ 0, 1, 0, 0, 0, 0, 0, 0], [ 0, 0, 1, 0, 0, 0, 0, 0], [ 0, 0, 0, 1, 0, 0, 0, 0], [ 0, 0, 0, 0, 1, 0, 0, 0], [ 0, 0, 0, 0, 0, 0, 1, ... | Fredkin gate -- Controlled Swap gate | 62598ee14a966d76dd5ed4df |
class PaintingModeOptionsWidgetBase (gtk.Grid): <NEW_LINE> <INDENT> _COMMON_SETTINGS = [ ('radius_logarithmic', _("Size:")), ('opaque', _("Opaque:")), ('hardness', _("Hard:")) ] <NEW_LINE> def __init__(self): <NEW_LINE> <INDENT> gtk.Grid.__init__(self) <NEW_LINE> self.set_row_spacing(6) <NEW_LINE> self.set_column_spaci... | Base class for the options widget of a generic painting mode | 62598ee1e76e3b2f99fd7035 |
class Config(object): <NEW_LINE> <INDENT> HOST = '0.0.0.0' <NEW_LINE> PORT = 5000 <NEW_LINE> SECRET_KEY = 'p9Bv<3Eid9%$i01' <NEW_LINE> DB_HOST = os.environ.get('DB_HOST') <NEW_LINE> DB_PASSWORD = os.environ.get('DB_PASSWORD') <NEW_LINE> DB_NAME = os.environ.get("DB_NAME") <NEW_LINE> DB_USER = os.environ.get("DB_USER") ... | Common configurations | 62598ee1ac7a0e7691f70b11 |
class InMageTestFailoverInput(TestFailoverProviderSpecificInput): <NEW_LINE> <INDENT> _validation = { 'instance_type': {'required': True}, } <NEW_LINE> _attribute_map = { 'instance_type': {'key': 'instanceType', 'type': 'str'}, 'recovery_point_type': {'key': 'recoveryPointType', 'type': 'str'}, 'recovery_point_id': {'k... | Provider specific input for InMage test failover.
All required parameters must be populated in order to send to Azure.
:param instance_type: Required. The class type.Constant filled by server.
:type instance_type: str
:param recovery_point_type: The recovery point type. Values from LatestTime, LatestTag or
Custom. I... | 62598ee132920d7e50bc4629 |
class SimuD(SimuVolumesInt): <NEW_LINE> <INDENT> __name__ = 'SimuD' <NEW_LINE> _params_default = { 'dist_lifetime': stats.weibull_min(4/3, loc=0, scale=10/special.gamma(7/4)), 'n_bubbles': 0, 'merging_probability': 1, } <NEW_LINE> _bubble_init_ = {'age' : 0} <NEW_LINE> def __init__(self, **kwargs): <... | Bubbles are assigned a lifetime when created, random according to the given
`dist_lifetime` distribution.
Bub
Intended to replace `SimuB`.
Notes
-----
Consider deriving SimuD with no move, no merge, to study just bursting. | 62598ee138b623060ffa7691 |
class Service(dbus.service.Object): <NEW_LINE> <INDENT> PATH_BASE = "/org/bluez/example/service" <NEW_LINE> def __init__(self, bus, index, uuid, primary): <NEW_LINE> <INDENT> self.path = self.PATH_BASE + str(index) <NEW_LINE> self.bus = bus <NEW_LINE> self.uuid = uuid <NEW_LINE> self.primary = primary <NEW_LINE> self.c... | org.bluez.GattService1 interface implementation | 62598ee1a17c0f6771d5a851 |
class TestCli(unittest.TestCase): <NEW_LINE> <INDENT> dynamo = None <NEW_LINE> def setUp(self): <NEW_LINE> <INDENT> super(TestCli, self).setUp() <NEW_LINE> self.confdir = tempfile.mkdtemp() <NEW_LINE> self.cli = DQLClient() <NEW_LINE> host = urlparse(self.dynamo.host) <NEW_LINE> self.cli.initialize('local', port=host.p... | Tests for the CLI | 62598ee1a8370b77170ee9e1 |
class AbbrExtension(Extension): <NEW_LINE> <INDENT> def extendMarkdown(self, md): <NEW_LINE> <INDENT> md.parser.blockprocessors.register(AbbrPreprocessor(md.parser), 'abbr', 16) | Abbreviation Extension for Python-Markdown. | 62598ee145492302aabfaaa9 |
class objectgroup(element): <NEW_LINE> <INDENT> def __init__(self, name, props, objects, Map): <NEW_LINE> <INDENT> super().__init__(name, props, Map) <NEW_LINE> self.objects = objects <NEW_LINE> <DEDENT> def __iter__(self): <NEW_LINE> <INDENT> for o in self.objects: <NEW_LINE> <INDENT> yield o <NEW_LINE> <DEDENT> <DEDE... | Basic tilemap objectgroup (Object Layer) class.
| 62598ee1be383301e0251dd5 |
class BestsignUser(Base): <NEW_LINE> <INDENT> __tablename__ = 'bestsign_user' <NEW_LINE> phone = Column(String(16), primary_key=True) <NEW_LINE> name = Column(String(32)) <NEW_LINE> idcard = Column(String(32)) <NEW_LINE> uid = Column(String(32), nullable=False) <NEW_LINE> create_time = Column(DateTime, server_default=f... | 上上签用户 | 62598ee13d592f4c4edb94f1 |
class singleton(Borg): <NEW_LINE> <INDENT> def __init__(self, **kwargs): <NEW_LINE> <INDENT> Borg.__init__(self) <NEW_LINE> self._shared_state.update(kwargs) <NEW_LINE> <DEDENT> def __str__(self): <NEW_LINE> <INDENT> return str(self._shared_state) | This class now shares all its attributes among its various instances | 62598ee1442bda511e95aa64 |
class _Market(_Param): <NEW_LINE> <INDENT> IDENTIFIER = 'M' <NEW_LINE> ANY = 0 <NEW_LINE> UP = 1 <NEW_LINE> FLAT = 2 <NEW_LINE> DOWN = 4 <NEW_LINE> QUIET = 8 <NEW_LINE> NORMAL = 16 <NEW_LINE> VOLATILE = 32 <NEW_LINE> MKT_CHOICES = ( (ANY, 'Any'), (UP, 'Up'), (FLAT, 'Flat'), (DOWN, 'Down'), (QUIET, 'Quiet'), (NORMAL, 'N... | Methods that are common to all classes go here. | 62598ee13c8af77a43b67231 |
class Permission(Enum): <NEW_LINE> <INDENT> READ = 'read' <NEW_LINE> READ_META = 'read-meta' <NEW_LINE> WRITE = 'write' <NEW_LINE> @classmethod <NEW_LINE> def all(cls) -> Set['Permission']: <NEW_LINE> <INDENT> return set(cls) | System wide permissions
| 62598ee14e4d562566370a16 |
class ConfigureDialog(QtGui.QDialog): <NEW_LINE> <INDENT> def __init__(self, parent=None): <NEW_LINE> <INDENT> QtGui.QDialog.__init__(self, parent) <NEW_LINE> self._ui = Ui_Dialog() <NEW_LINE> self._ui.setupUi(self) <NEW_LINE> self._previousIdentifier = '' <NEW_LINE> self.identifierOccursCount = None <NEW_LINE> self._m... | Configure dialog to present the user with the options to configure this step. | 62598ee11b99ca400228e80b |
class TestBody69(unittest.TestCase): <NEW_LINE> <INDENT> def setUp(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def tearDown(self): <NEW_LINE> <INDENT> pass <NEW_LINE> <DEDENT> def testBody69(self): <NEW_LINE> <INDENT> pass | Body69 unit test stubs | 62598ee12eb69b55b15a0688 |
@BlClassRegistry(legacy=True) <NEW_LINE> class MUV_OT_FlipRotate(bpy.types.Operator): <NEW_LINE> <INDENT> bl_idname = "uv.muv_flip_rotate_uv_operator" <NEW_LINE> bl_label = "Flip/Rotate UV" <NEW_LINE> bl_description = "Flip/Rotate UV coordinate" <NEW_LINE> bl_options = {'REGISTER', 'UNDO'} <NEW_LINE> flip = BoolPropert... | Operation class: Flip and Rotate UV coordinate | 62598ee1bd1bec0571e143ca |
@implementer(IQuestionType) <NEW_LINE> class QuestionType(Content): <NEW_LINE> <INDENT> type_title = _("Question type") <NEW_LINE> type_name = "QuestionType" <NEW_LINE> add_permission = "Add %s" % type_name <NEW_LINE> nav_visible = False <NEW_LINE> listing_visible = True <NEW_LINE> search_visible = True <NEW_LINE> inpu... | This is the persistent information about a question type.
It's the same for all kind of types - it simply stores information
on what adapters to use. | 62598ee1b7558d5895461c49 |
class TimeoutTestSensor(BaseSensorOperator): <NEW_LINE> <INDENT> @apply_defaults <NEW_LINE> def __init__(self, return_value=False, *args, **kwargs): <NEW_LINE> <INDENT> self.return_value = return_value <NEW_LINE> super(TimeoutTestSensor, self).__init__(*args, **kwargs) <NEW_LINE> <DEDENT> def poke(self, context): <NEW_... | Sensor that always returns the return_value provided
:param return_value: Set to true to mark the task as SKIPPED on failure
:type return_value: any | 62598ee1498bea3a75a56132 |
class _ConstsList(object): <NEW_LINE> <INDENT> def __init__(self, *args): <NEW_LINE> <INDENT> self.obj_to_idx = {} <NEW_LINE> self.objs = [] <NEW_LINE> for arg in args: <NEW_LINE> <INDENT> self.add(arg) <NEW_LINE> <DEDENT> <DEDENT> def add(self, obj): <NEW_LINE> <INDENT> identity = id(obj) <NEW_LINE> if identity in sel... | Maintains a list of constants.
Needed because co_consts can contain different objects that nonetheless compare equal when
simply put in a list (e.g. 1 and 1.0). This objects keeps track of them by object identity. | 62598ee176e4537e8c3edbb5 |
class BylineViewSet(viewsets.ModelViewSet): <NEW_LINE> <INDENT> queryset = Byline.objects.all() <NEW_LINE> serializer_class = BylineSerializer | API endpoint for listing information
about reporters | 62598ee1796e427e5384cd96 |
class IntervalProgress: <NEW_LINE> <INDENT> def __init__(self, interval: float = 1.0, progress_str: _PROGRESS_FN_TYPE = _default_progress_str): <NEW_LINE> <INDENT> self.interval = interval <NEW_LINE> self.progress_str = progress_str <NEW_LINE> self.last_update = time.time() - interval <NEW_LINE> <DEDENT> def __call__(s... | A progress hook function that reports to output at a specified interval. | 62598ee14e4d562566370a17 |
class ComplexDataType(DataType): <NEW_LINE> <INDENT> def __init__(self, default_name, def_dict, api, parent=None, language_model=None, wire_name=None): <NEW_LINE> <INDENT> super(ComplexDataType, self).__init__(def_dict, api, parent=parent, language_model=language_model) <NEW_LINE> name = def_dict.get('id') or default_n... | A DataType which requires a definition: that is, not primitive.
ComplexDataTypes are structured objects and containers of objects. | 62598ee16fb2d068a7693121 |
class Mapping(Struct): <NEW_LINE> <INDENT> def __init__(self, coors, conn, poly_space=None, gel=None, order=1): <NEW_LINE> <INDENT> self.coors = coors <NEW_LINE> self.conn = conn <NEW_LINE> self.n_el, self.n_ep = conn.shape <NEW_LINE> self.dim = self.coors.shape[1] <NEW_LINE> if poly_space is None: <NEW_LINE> <INDENT> ... | Base class for mappings. | 62598ee1236d856c2adc8712 |
class GoogleCloudAPIError(Exception): <NEW_LINE> <INDENT> def __init__(self, message): <NEW_LINE> <INDENT> message = "%s: %s" % (str(self.__class__.__name__), message) <NEW_LINE> Exception.__init__(self, message) | Raise this exception in case something went wrong in
when accessing the google API | 62598ee18e7ae83300ee768c |
class BoolIgnoreAttributeWidget(BoolAttributeWidget): <NEW_LINE> <INDENT> _gui_to_attribute_mapping = pyrpl_utils.Bijection({0: False, 1: 'ignore', 2: True}) <NEW_LINE> def _make_widget(self): <NEW_LINE> <INDENT> self.widget = QtWidgets.QCheckBox() <NEW_LINE> self.widget.setTristate(True) <NEW_LINE> self.widget.stateCh... | Like BoolAttributeWidget with additional option 'ignore' that is
shown as a grey check in GUI | 62598ee1d486a94d0ba2a5d4 |
class RiotApiRateExceededException(Exception): <NEW_LINE> <INDENT> def __init__(self, response): <NEW_LINE> <INDENT> self.response = response | Raised whenever the api rate limit has been passed | 62598ee191f36d47f22301a2 |
class ReadRequest(FrozenClass): <NEW_LINE> <INDENT> def __init__(self): <NEW_LINE> <INDENT> self.TypeId = FourByteNodeId(ObjectIds.ReadRequest_Encoding_DefaultBinary) <NEW_LINE> self.RequestHeader = RequestHeader() <NEW_LINE> self.Parameters = ReadParameters() <NEW_LINE> self._freeze() <NEW_LINE> <DEDENT> def to_binary... | :ivar TypeId:
:vartype TypeId: NodeId
:ivar RequestHeader:
:vartype RequestHeader: RequestHeader
:ivar Parameters:
:vartype Parameters: ReadParameters | 62598ee1097d151d1a2bf61d |
class XSvbremss(XSAdditiveModel): <NEW_LINE> <INDENT> __function__ = "xsbrmv" <NEW_LINE> def __init__(self, name='vbremss'): <NEW_LINE> <INDENT> self.kT = XSParameter(name, 'kT', 3.0, 1.e-2, 100., 1e-4, 200, units='keV') <NEW_LINE> self.HeovrH = XSParameter(name, 'HeovrH', 1.0, 0., 100., 0.0, 100, aliases=["HeH"]) <NEW... | The XSPEC vbremss model: thermal bremsstrahlung.
The model is described at [1]_.
.. note:: Deprecated in Sherpa 4.10.0
The ``HeH`` parameter has been renamed ``HeovrH`` to match the
XSPEC definition. The name ``HeH`` can still be used to access
the parameter, but this name will be removed in a future releas... | 62598ee132920d7e50bc462b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.