g_from_field# torchspin.g_from_field(B, mwFreq)[source]# Calculate g-value from resonance field. Parameters: B (float) – Resonance field (mT) mwFreq (float) – Microwave frequency (GHz) Returns: g (float) – g-value Return type: float Examples >>> g_from_field(339.22, 9.5) 2.0