Bridge.V2Result#

Bridge.V2Result.py

get_num_components_assumming_egh(length)#

Given the length of the parameter array, return the number of components assuming the EGH model is used. n * 4 + n + 2 + n + 7 + 2 + 2 + 6 = n * 6 + 19 where n is the number of components.

Parameters:

length (int) – The length of the parameter array.

Returns:

The number of components.

Return type:

int

extract_params_assumming_egh(params)#

Extract the parameters assuming the EGH model is used.

Parameters:

params (np.ndarray) – The parameter array.

Returns:

The extracted parameters.

Return type:

np.ndarray

class V2Result(folder)#

Bases: object

A class to handle the results from a V2 analysis.

folder#

The folder containing the V2 result files.

Type:

str

trimming#

The trimming information.

Type:

TrimmingInfo

init_params#

The initial parameters for the analysis.

Type:

list of lists

best_params#

The best parameters from the analysis, if available.

Type:

list of lists or None

Initialize the V2Result object.

Parameters:

folder (str) – The folder containing the V2 result files.

import_trimming()#

Import the parameters from the V2 result folder.

Returns:

The trimming information.

Return type:

TrimmingInfo

import_init_params()#

Import the parameters from the V2 result folder.

Returns:

The initial parameters.

Return type:

list of lists

get_init_params()#

Get the parameters

Returns:

The initial parameters.

Return type:

list of lists

import_best_params()#

Import the best parameters

Returns:

The best parameters.

Return type:

list of lists

get_best_params()#

Get the best parameters

Returns:

The best parameters.

Return type:

list of lists

get_trimming()#

Get the trimming

Returns:

The trimming information.

Return type:

TrimmingInfo

get_original_ssd()#

Get the original ssd

Returns:

The original SecSaxsData object.

Return type:

SecSaxsData

get_trimmed_ssd()#

Get the trimmed ssd

Returns:

The trimmed SecSaxsData object.

Return type:

SecSaxsData