Python-ELMO is a Python library which offers an encapsulation of the binary tool ELMO, in order to manipulate it easily in Python and SageMath script.
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

projectclass.py 627B

  1. class {{PROJECTCLASSNAME}}(SimulationProject):
  2. @classmethod
  3. def get_binary(cl):
  4. return 'project.bin'
  5. def __init__(self, *args, **kwargs):
  6. super().__init__(*args, **kwargs)
  7. def set_input(self, input):
  8. """ Write into the 'input' file of ELMO tool
  9. the parameters and the challenges for the simulation """
  10. super().set_input(input)
  11. def set_input_for_each_challenge(self, input, challenge):
  12. """ Write into the 'input' file of ELMO tool
  13. the 'challenge' for the simulation """
  14. super().set_input_for_each_challenge(input, challenge)