Used to investigate a segfault in a Python C extension within a Python package.
-
Install debug Python build using pyenv then check is available for use:
pyenv install -g 3.8.5 pyenv versions
import tempfile | |
import os | |
import time | |
import paramiko | |
# Hostname of a 'submission host' in the Grid Engine cluster we want to submit a job to | |
hostname = 'sharc.shef.ac.uk' | |
# Username for logging in to the cluster via SSH | |
username = "te1st" |
#!/usr/bin/tclsh | |
set sge_root $env(SGE_ROOT) | |
source "$sge_root/util/resources/jsv/jsv_include.tcl" | |
proc jsv_on_start {} { | |
jsv_send_env | |
} | |
proc lexists name { |
import os | |
from typing import Dict | |
import numpy as np | |
def export_data(data: Dict[np.ndarray], | |
filename: str, | |
cols_per_line: int = 8) -> None: | |
"""Export dictionary of 1d float arrays to a file. | |