“Task: HTC” Module

A pre-installed example script which organizes HTC calculations

class panpython.task.htc.HtcMesh(batch_file, config_file, start_id=0, thread_num=1)[source]

Bases: object

Parameters:
  • batch_file (str) – full path of batch file template

  • config_file (str) – full path HTC configuration file

  • start_id (int, default=0) – staring index of HTC

  • thread_num (int, default=1) – number of concurrency thread number

Examples

>>> import os
>>> from panpython.system import System
>>> from panpython.task.htc import HtcMesh
>>> pandat = "YOUR_PATH_TO_PANDAT_EXE/Pandat.exe"
>>> dump_path = "./output/"
>>> batch_file = "./template_batchfile.pbfx"
>>> config_file = "./Configuration.JSON"
>>>
>>> m_system = System(pandat=pandat, dump_path=dump_path)  # initialize system
>>> m_system.add_task(task_definition=HtcMesh(batch_file=batch_file, config_file=config_file, thread_num=1))  # add task
>>> m_system.run() # run task
run(system)[source]

Run a defined HTC calculation

Parameters:

system (panpy_dev.system.System) – a reference to a system instance handling all existing task