Skip to content

Commit

Permalink
Renaming of a few fields:
Browse files Browse the repository at this point in the history
laser_pulse_rate -> laser_repetition_rate
alex_period_excitationN -> alex_excitation_periodN

See issue Photon-HDF5/photon-hdf5#16.
  • Loading branch information
tritemio committed Jun 14, 2015
1 parent 7d671ee commit f9c3a53
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"d, meta = phc.loader.nsalex_bh(filename,\n",
" donor = 4,\n",
" acceptor = 6,\n",
" laser_pulse_rate = 40e6,\n",
" laser_repetition_rate = 40e6,\n",
" tcspc_range = 60e-9,\n",
" timestamps_unit = 60e-9,\n",
" alex_period_donor = (270, 1500),\n",
Expand Down
8 changes: 4 additions & 4 deletions phconvert/loader.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def usalex_sm(
def nsalex_bh(filename_spc,
donor = 4,
acceptor = 6,
laser_pulse_rate = 40e6,
laser_repetition_rate = 40e6,
tcspc_range = 60e-9,
timestamps_unit = 60e-9,
alex_period_donor = (10, 1500),
Expand Down Expand Up @@ -159,7 +159,7 @@ def nsalex_bh(filename_spc,

measurement_specs = dict(
measurement_type = 'smFRET-nsALEX',
laser_pulse_rate = laser_pulse_rate,
laser_repetition_rate = laser_repetition_rate,
alex_period_excitation1 = alex_period_donor,
alex_period_excitation2 = alex_period_acceptor,
detectors_specs = dict(spectral_ch1 = donor,
Expand Down Expand Up @@ -208,7 +208,7 @@ def nsalex_ht3(filename,
tcspc_unit = metadata.pop('nanotimes_unit')
tcspc_num_bins = 4096
tcspc_range = tcspc_num_bins*tcspc_unit
laser_pulse_rate = metadata['ttmode']['SyncRate']
laser_repetition_rate = metadata['ttmode']['SyncRate']
acquisition_time = metadata['header']['Tacq'][0]*1e-3
software = metadata['header']['CreatorName']
software_version = metadata['header']['CreatorVersion']
Expand Down Expand Up @@ -240,7 +240,7 @@ def nsalex_ht3(filename,

measurement_specs = dict(
measurement_type = 'smFRET-nsALEX',
laser_pulse_rate = laser_pulse_rate,
laser_repetition_rate = laser_repetition_rate,
alex_period_excitation1 = alex_period_donor,
alex_period_excitation2 = alex_period_acceptor,
detectors_specs = dict(spectral_ch1 = donor,
Expand Down
6 changes: 3 additions & 3 deletions phconvert/specs/photon-hdf5_fields.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@
"Name of the measurement the data represents.",
"/photon_data/measurement_specs/alex_period":
"Period of laser alternation in us-ALEX measurements in timestamps units.",
"/photon_data/measurement_specs/laser_pulse_rate":
"/photon_data/measurement_specs/laser_repetition_rate":
"Repetition rate of the pulsed excitation laser.",
"/photon_data/measurement_specs/alex_offset":
"Time offset (in timestamps unit) to apply to timestamps to obtain a properly aligned alternation histogram.",
"/photon_data/measurement_specs/alex_period_excitation1":
"/photon_data/measurement_specs/alex_excitation_period1":
"Values pair (start-stop range) identifying photons in the excitation period of wavelength 1 (the shortest).",
"/photon_data/measurement_specs/alex_period_excitation2":
"/photon_data/measurement_specs/alex_excitation_period2":
"Values pair (start-stop range) identifying photons in the excitation period of wavelength 2.",
"/photon_data/measurement_specs/detectors_specs":
"Mapping between the detector IDs and the detection channels.",
Expand Down

0 comments on commit f9c3a53

Please sign in to comment.