app.backbone.entities.montecarlo_test

 1from sqlalchemy import Column, ForeignKey, Integer, Float, String, Date
 2from sqlalchemy.orm import relationship
 3
 4from . import Base
 5
 6class MontecarloTest(Base):
 7    __tablename__ = 'MontecarloTests'
 8
 9    Id = Column(Integer, primary_key=True, autoincrement=True)
10    BotPerformanceId = Column(Integer, ForeignKey('BotPerformances.Id'), nullable=False)
11    Simulations = Column(Integer, nullable=False)
12    ThresholdRuin = Column(Float, nullable=False)
13
14    BotPerformance = relationship('BotPerformance', back_populates='MontecarloTest', lazy='joined')
15    Metrics = relationship('MetricWharehouse', back_populates='MontecarloTest', lazy='joined')
16
17    def __repr__(self):
18        return f"<MontecarloTest(id={self.Id}, BotPerformanceId='{self.BotPerformanceId}', Simulations={self.Simulations}, ThresholdRuin={self.ThresholdRuin})>"
class MontecarloTest(sqlalchemy.orm.decl_api._DynamicAttributesType, sqlalchemy.inspection.Inspectable[sqlalchemy.orm.mapper.Mapper[typing.Any]]):
 7class MontecarloTest(Base):
 8    __tablename__ = 'MontecarloTests'
 9
10    Id = Column(Integer, primary_key=True, autoincrement=True)
11    BotPerformanceId = Column(Integer, ForeignKey('BotPerformances.Id'), nullable=False)
12    Simulations = Column(Integer, nullable=False)
13    ThresholdRuin = Column(Float, nullable=False)
14
15    BotPerformance = relationship('BotPerformance', back_populates='MontecarloTest', lazy='joined')
16    Metrics = relationship('MetricWharehouse', back_populates='MontecarloTest', lazy='joined')
17
18    def __repr__(self):
19        return f"<MontecarloTest(id={self.Id}, BotPerformanceId='{self.BotPerformanceId}', Simulations={self.Simulations}, ThresholdRuin={self.ThresholdRuin})>"

The base class of the class hierarchy.

When called, it accepts no arguments and returns a new featureless instance that has no instance attributes and cannot be given any.

MontecarloTest(**kwargs)

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance's class are allowed. These could be, for example, any mapped columns or relationships.

Id
BotPerformanceId
Simulations
ThresholdRuin
BotPerformance
Metrics