PHS3000 Muon Physics

This documents the monashspa.PHS3000.muon library that you will import into code used in the PHS3000 unit when performing experiment 1.4 muon physics.

monashspa.PHS3000.muon.histc(x, bins)[source]

Counts the number of times an values in x fall between each bin in bins.

This uses the condition if bins[i] <= x[j] < bins[i+1]: result[i] += 1 for each element in x

Parameters:
  • x – The numpy array containing the data to count
  • bins – A numpy array defining the bins
Returns:

A numpy array containing the number of elements between each bin.

monashspa.PHS3000.muon.read_data(filepath)[source]

Imports data from the muon physics .data file

Parameters:filepath – The path to the .data file produced by the muon acquisition software
Returns:A 2D numpy array containing the data from the file. The first column contains the acquisition intervals and the second column contains the timestamps.