hpcflow.sdk.core.values#

Module containing code for generating numerical input and sequence values from various class methods.

Functions

ensure_seed

For methods that use a random seed, if the seed is not set, set it randomly so it can be recorded within the method args for reproducibility.

load_txt_values

Load an array from a text file with Numpy's loadtxt, optionally randomly sampling rows (items along the first axis) from it.

process_demo_data_strings

sample_rows

Randomly sample rows (items along the first axis) from values.

Classes