Skip to content
Snippets Groups Projects
Commit 4d5587a9 authored by Laurent Mercadier's avatar Laurent Mercadier
Browse files

flake8, update changelog

parent 576dbddc
No related branches found
No related tags found
1 merge request!180Fluence calibration
This commit is part of merge request !180. Comments created here will be created in the context of that merge request.
......@@ -19,7 +19,7 @@ unreleased
- improve SLURM scripts with named arguments :mr:`176`
- **New Features**
- add routine for fluence calibration :mr:`180`
1.5.0
-----
......
......@@ -102,10 +102,13 @@ def fluenceCalibration(hwp, power_mW, npulses, w0x, w0y=None,
ax.set_xlabel(xlabel)
ax.legend()
ax.grid()
ax2 = ax.secondary_yaxis(
'right',
functions=(lambda x: 1e7*x*np.pi*w0x*w0y/2,
lambda x: 1e-7*2*x/(np.pi*w0x*w0y)))
def eTf(x):
return 1e-7*2*x/(np.pi*w0x*w0y)
def fTe(x):
return 1e7*x*np.pi*w0x*w0y/2
ax2 = ax.secondary_yaxis('right', functions=(fTe, eTf))
ax2.set_ylabel(r'Pulse energy [$\mu$J]')
fig.tight_layout()
return F*1e-1, fit_F, E*1e6, fit_E
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment