minisfc.util package

Submodules

minisfc.util.dataAnalysis module

@File : dataAnalysis.py @Time : 2024/06/20 21:03:17 @Author : Wang Xi @Version : 0.0 @Contact : wangxi_chn@foxmail.com @License : (C)Copyright 2023-2024, Wang Xi @Desc : None

class minisfc.util.dataAnalysis.DataAnalysis

基类:object

static getResult(filename: str)
class minisfc.util.dataAnalysis.DataExtractor(filename: str)

基类:object

extract(header: list[str])

minisfc.util.dataGen module

class minisfc.util.dataGen.NumberGen

基类:object

static getMatrix(size: int, **kwargs)
static getVector(size: int, **kwargs) ndarray

Generate data with the given distribution and data type.

参数:
  • size (int) -- The size of the data.

  • **kwargs -- Keyword arguments to pass to the distribution generator.

返回:

The generated data.

返回类型:

ndarray

class minisfc.util.dataGen.TopoGen

基类:object

static cut_to_stp(adj_matrix: ndarray, source_node: int = 1)
static get(size: int, **kwargs)

Generates topological adjacency matrix of specified size and shape

参数:
  • size (int) -- the size of topo

  • **kwargs (dict) -- {'type':'path/star/waxman'} if {'type':'waxman'} can further {'wm_alpha':value, 'wm_beta':value}

返回:

adjacency matrix of the topo (NDArray)

minisfc.util.jsonRead module

@File : jsonRead.py @Time : 2024/06/26 09:26:28 @Author : Wang Xi @Version : 0.0 @Contact : wangxi_chn@foxmail.com @License : (C)Copyright 2023-2024, Wang Xi @Desc : None

class minisfc.util.jsonRead.JsonReader(filename: str)

基类:object

getAdjacencyMat()
static getJsonFiles()
getWeightMat()

minisfc.util.runCommand module

class minisfc.util.runCommand.RunCommand

基类:object

clear_container()
get_container_logs()
get_container_status()
make_executable(path)

为指定路径的文件添加执行权限

run_shell(bash_file_path)
run_shell_in_terminal(bash_file_path)

Module contents