BGlib.be.translators.df_utils.be_utils.generateTestSpectroscopicData

BGlib.be.translators.df_utils.be_utils.generateTestSpectroscopicData(num_bins=7, num_steps=3, num_pos=4)[source]

Generates a (preferably small) test data set using the given parameters. Data is filled with indices (with base 1 for simplicity). Use this for testing reshape operations etc.

Parameters:
  • num_bins (unsigned int (Optional. Default = 7)) – Number of bins

  • num_steps (unsigned int (Optional. Default = 3)) – Number of spectroscopic steps

  • num_pos (unsigned int (Optional. Default = 4)) – Number of fictional positions

Returns:

full_data – Data organized as [steps x bins, positions]

Return type:

2D numpy array