Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
LISA Instrument
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Authenticating with a password
with git over http
works again
. More information
here
.
Show more breadcrumbs
LISA Simulation
LISA Instrument
Merge requests
!24
Use `transformed()` method to timestamp data
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Use `transformed()` method to timestamp data
rationalize-logging-in-simulate
into
master
Overview
0
Commits
1
Pipelines
5
Changes
1
Merged
Jean-Baptiste Bayle
requested to merge
rationalize-logging-in-simulate
into
master
4 years ago
Overview
0
Commits
1
Pipelines
5
Changes
1
Expand
0
0
Merge request reports
Viewing commit
14e0bfa2
Show latest version
1 file
+
34
−
33
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
14e0bfa2
Use `transformed()` method to timestamp data
· 14e0bfa2
Jean-Baptiste Bayle
authored
4 years ago
lisainstrument/instrument.py
+
34
−
33
Options
@@ -702,90 +702,91 @@ class Instrument:
self
.
invert_timer_deviations
(
self
.
local_timer_deviations
[
sc
],
sc
)
)
timestamp
=
lambda
x
,
sc
:
self
.
interpolate
(
x
,
-
self
.
inverse_timer_deviations
[
sc
]
*
self
.
physics_fs
)
self
.
timestamped
=
lambda
mosa
,
x
:
self
.
interpolate
(
x
,
-
self
.
inverse_timer_deviations
[
ForEachMOSA
.
sc
(
mosa
)]
*
self
.
physics_fs
)
logger
.
info
(
"
Sampling inter-spacecraft beatnotes to THE grid
"
)
logger
.
debug
(
"
Sampling inter-spacecraft carrier beatnote fluctuations to THE grid
"
)
self
.
the_isc_carrier_offsets
=
ForEachMOSA
(
lambda
mosa
:
timestamp
(
self
.
tps_isc_carrier_offsets
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
,
mosa
[
0
])
)
self
.
tps_isc_carrier_offsets
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
)
.
transformed
(
self
.
timestamped
)
logger
.
debug
(
"
Sampling inter-spacecraft carrier beatnote fluctuations to THE grid
"
)
self
.
the_isc_carrier_fluctuations
=
ForEachMOSA
(
lambda
mosa
:
timestamp
(
self
.
tps_isc_carrier_fluctuations
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
self
.
tps_isc_carrier_fluctuations
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
-
self
.
tps_isc_carrier_offsets
[
mosa
]
*
self
.
clock_noise_fluctuations
[
mosa
[
0
]]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
**
2
,
mosa
[
0
])
)
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
**
2
)
.
transformed
(
self
.
timestamped
)
logging
.
debug
(
"
Sampling inter-spacecraft upper sideband beatnote offsets to THE grid
"
)
self
.
the_isc_usb_offsets
=
ForEachMOSA
(
lambda
mosa
:
timestamp
(
self
.
tps_isc_usb_offsets
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
,
mosa
[
0
])
)
self
.
tps_isc_usb_offsets
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
)
.
transformed
(
self
.
timestamped
)
logger
.
debug
(
"
Sampling inter-spacecraft upper sideband beatnote fluctuations to THE grid
"
)
self
.
the_isc_usb_fluctuations
=
ForEachMOSA
(
lambda
mosa
:
timestamp
(
self
.
tps_isc_usb_fluctuations
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
self
.
tps_isc_usb_fluctuations
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
-
self
.
tps_isc_usb_offsets
[
mosa
]
*
self
.
clock_noise_fluctuations
[
mosa
[
0
]]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
**
2
,
mosa
[
0
])
)
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
**
2
)
.
transformed
(
self
.
timestamped
)
logger
.
info
(
"
Sampling measured pseudo-ranges to THE grid
"
)
self
.
the_mprs
=
ForEachMOSA
(
lambda
mosa
:
timestamp
(
self
.
tps_mprs
[
mosa
]
,
mosa
[
0
])
)
self
.
tps_mprs
[
mosa
]
)
.
transformed
(
self
.
timestamped
)
logger
.
info
(
"
Sampling test-mass beatnotes to THE grid
"
)
logger
.
debug
(
"
Sampling test-mass carrier beatnote offsets to THE grid
"
)
self
.
the_tm_carrier_offsets
=
ForEachMOSA
(
lambda
mosa
:
timestamp
(
self
.
tps_tm_carrier_offsets
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
,
mosa
[
0
])
)
self
.
tps_tm_carrier_offsets
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
)
.
transformed
(
self
.
timestamped
)
logger
.
debug
(
"
Sampling test-mass carrier beatnote fluctuations to THE grid
"
)
self
.
the_tm_carrier_fluctuations
=
ForEachMOSA
(
lambda
mosa
:
timestamp
(
self
.
tps_tm_carrier_fluctuations
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
self
.
tps_tm_carrier_fluctuations
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
-
self
.
tps_tm_carrier_offsets
[
mosa
]
*
self
.
clock_noise_fluctuations
[
mosa
[
0
]]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
**
2
,
mosa
[
0
])
)
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
**
2
)
.
transformed
(
self
.
timestamped
)
logger
.
debug
(
"
Sampling test-mass upper sideband beatnote offsets to THE grid
"
)
self
.
the_tm_usb_offsets
=
ForEachMOSA
(
lambda
mosa
:
timestamp
(
self
.
tps_tm_usb_offsets
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
,
mosa
[
0
])
)
self
.
tps_tm_usb_offsets
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
)
.
transformed
(
self
.
timestamped
)
logging
.
debug
(
"
Sampling test-mass upper sideband beatnote fluctuations to THE grid
"
)
self
.
the_tm_usb_fluctuations
=
ForEachMOSA
(
lambda
mosa
:
timestamp
(
self
.
tps_tm_usb_fluctuations
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
self
.
tps_tm_usb_fluctuations
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
-
self
.
tps_tm_usb_offsets
[
mosa
]
*
self
.
clock_noise_fluctuations
[
mosa
[
0
]]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
**
2
,
mosa
[
0
])
)
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
**
2
)
.
transformed
(
self
.
timestamped
)
logger
.
info
(
"
Sampling reference beatnotes to THE grid
"
)
logger
.
debug
(
"
Sampling reference carrier beatnote offsets to THE grid
"
)
self
.
the_ref_carrier_offsets
=
ForEachMOSA
(
lambda
mosa
:
timestamp
(
self
.
tps_ref_carrier_offsets
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
,
mosa
[
0
])
)
self
.
tps_ref_carrier_offsets
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
)
.
transformed
(
self
.
timestamped
)
logger
.
debug
(
"
Sampling reference carrier beatnote fluctuations to THE grid
"
)
self
.
the_ref_carrier_fluctuations
=
ForEachMOSA
(
lambda
mosa
:
timestamp
(
self
.
tps_ref_carrier_fluctuations
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
self
.
tps_ref_carrier_fluctuations
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
-
self
.
tps_ref_carrier_offsets
[
mosa
]
*
self
.
clock_noise_fluctuations
[
mosa
[
0
]]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
**
2
,
mosa
[
0
])
)
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
**
2
)
.
transformed
(
self
.
timestamped
)
logger
.
debug
(
"
Sampling reference upper sideband beatnote offsets to THE grid
"
)
self
.
the_ref_usb_offsets
=
ForEachMOSA
(
lambda
mosa
:
timestamp
(
self
.
tps_ref_usb_offsets
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
,
mosa
[
0
])
)
self
.
tps_ref_usb_offsets
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
)
.
transformed
(
self
.
timestamped
)
logger
.
debug
(
"
Sampling reference upper sideband beatnote fluctuations to THE grid
"
)
self
.
the_ref_usb_fluctuations
=
ForEachMOSA
(
lambda
mosa
:
timestamp
(
self
.
tps_ref_usb_fluctuations
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
self
.
tps_ref_usb_fluctuations
[
mosa
]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
-
self
.
tps_ref_usb_offsets
[
mosa
]
*
self
.
clock_noise_fluctuations
[
mosa
[
0
]]
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
**
2
,
mosa
[
0
])
)
/
(
1
+
self
.
clock_noise_offsets
[
mosa
[
0
]])
**
2
)
.
transformed
(
self
.
timestamped
)
## Total frequencies
Loading