コード例 #1
0
ファイル: group.py プロジェクト: mattboehm/otree-core
 def in_round(self, round_number):
     try:
         return in_round(type(self), round_number, session=self.session,
             id_in_subsession=self.id_in_subsession)
     except InvalidRoundError as exc:
         msg = str(exc) + '; ' + (
             'Hint: you should not use this '
             'method if you are rearranging groups between rounds.'
         )
         ExceptionClass = type(exc)
         raise ExceptionClass(msg) from None
コード例 #2
0
ファイル: group.py プロジェクト: aleSheng/otree-core
 def in_round(self, round_number):
     try:
         return in_round(type(self),
                         round_number,
                         session=self.session,
                         id_in_subsession=self.id_in_subsession)
     except InvalidRoundError as exc:
         msg = str(exc) + '; ' + (
             'Hint: you should not use this '
             'method if you are rearranging groups between rounds.')
         ExceptionClass = type(exc)
         raise ExceptionClass(msg) from None
コード例 #3
0
 def in_round(self, round_number):
     return in_round(
         type(self),
         round_number,
         session=self.session,
     )
コード例 #4
0
ファイル: player.py プロジェクト: shineorg/otree-fishery
 def in_round(self, round_number):
     return in_round(type(self), round_number, participant=self.participant)
コード例 #5
0
ファイル: subsession.py プロジェクト: oTree-org/otree-core
 def in_round(self, round_number):
     return in_round(type(self), round_number,
         session=self.session,
     )
コード例 #6
0
ファイル: player.py プロジェクト: mattboehm/otree-core
 def in_round(self, round_number):
     return in_round(type(self), round_number, participant=self.participant)