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
Show more breadcrumbs
LISA Simulation
LISA Instrument
Commits
51d19318
Commit
51d19318
authored
2 years ago
by
Kohei Yamamoto
Committed by
Jean-Baptiste Bayle
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
1st version of hexagon
parent
a9cbc8c2
No related branches found
No related tags found
No related merge requests found
Pipeline
#185465
failed
2 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lisainstrument/hexagon.py
+11
-6
11 additions, 6 deletions
lisainstrument/hexagon.py
with
11 additions
and
6 deletions
lisainstrument/hexagon.py
+
11
−
6
View file @
51d19318
...
@@ -25,7 +25,7 @@ class Hexagon():
...
@@ -25,7 +25,7 @@ class Hexagon():
Args:
Args:
size (int): numer of samples in the simulation
size (int): numer of samples in the simulation
dt (float): sampling period [s]
dt (float): sampling period [s]
freerunning
_laser_asd (float): ASD of
free-running
laser 1 [Hz/sqrt(Hz)]
primary
_laser_asd (float): ASD of
primary
laser 1 [Hz/sqrt(Hz)]
locked_laser_asd (float): ASD added to locked lasers 2 & 3 [Hz/sqrt(Hz)]
locked_laser_asd (float): ASD added to locked lasers 2 & 3 [Hz/sqrt(Hz)]
"""
"""
...
@@ -33,8 +33,8 @@ class Hexagon():
...
@@ -33,8 +33,8 @@ class Hexagon():
BEATNOTES
=
[
12
,
23
,
31
]
BEATNOTES
=
[
12
,
23
,
31
]
def
__init__
(
self
,
def
__init__
(
self
,
size
=
100
,
dt
=
1
/
3.4
,
size
=
100
,
dt
=
1
/
(
80e6
/
2
**
17
/
10
/
6
/
3
)
,
freerunning
_laser_asd
=
100
,
primary
_laser_asd
=
100
,
locked_laser_asd
=
60
,
locked_laser_asd
=
60
,
offset_freqs
=
'
default
'
,
offset_freqs
=
'
default
'
,
central_freq
=
2.816E14
):
central_freq
=
2.816E14
):
...
@@ -43,8 +43,9 @@ class Hexagon():
...
@@ -43,8 +43,9 @@ class Hexagon():
self
.
dt
=
float
(
dt
)
self
.
dt
=
float
(
dt
)
self
.
fs
=
1.0
/
self
.
dt
self
.
fs
=
1.0
/
self
.
dt
self
.
duration
=
self
.
size
*
self
.
dt
self
.
duration
=
self
.
size
*
self
.
dt
self
.
time
=
np
.
linspace
(
0
,
self
.
duration
-
self
.
dt
,
self
.
size
)
self
.
freerunning
_laser_asd
=
freerunning
_laser_asd
self
.
primary
_laser_asd
=
primary
_laser_asd
self
.
locked_laser_asd
=
locked_laser_asd
self
.
locked_laser_asd
=
locked_laser_asd
self
.
central_freq
=
float
(
central_freq
)
self
.
central_freq
=
float
(
central_freq
)
...
@@ -59,7 +60,7 @@ class Hexagon():
...
@@ -59,7 +60,7 @@ class Hexagon():
self
.
laser_noises
=
np
.
empty
((
self
.
size
,
3
))
# (size, laser) [Hz]
self
.
laser_noises
=
np
.
empty
((
self
.
size
,
3
))
# (size, laser) [Hz]
# Laser 1 is free-running
# Laser 1 is free-running
self
.
laser_noises
[:,
0
]
=
noises
.
laser
(
self
.
fs
,
self
.
size
,
self
.
freerunning
_laser_asd
)
self
.
laser_noises
[:,
0
]
=
noises
.
laser
(
self
.
fs
,
self
.
size
,
self
.
primary
_laser_asd
)
# Laser 2 replicated laser 1 with added locking noise
# Laser 2 replicated laser 1 with added locking noise
self
.
laser_noises
[:,
1
]
=
self
.
laser_noises
[:,
0
]
\
self
.
laser_noises
[:,
1
]
=
self
.
laser_noises
[:,
0
]
\
+
noises
.
white
(
self
.
fs
,
self
.
size
,
self
.
locked_laser_asd
)
+
noises
.
white
(
self
.
fs
,
self
.
size
,
self
.
locked_laser_asd
)
...
@@ -83,5 +84,9 @@ class Hexagon():
...
@@ -83,5 +84,9 @@ class Hexagon():
self
.
carrier_flucuations
[:,
int
(
str
(
ij
)[
1
])
-
1
]
-
self
.
carrier_flucuations
[:,
int
(
str
(
ij
)[
0
])
-
1
]
self
.
carrier_flucuations
[:,
int
(
str
(
ij
)[
1
])
-
1
]
-
self
.
carrier_flucuations
[:,
int
(
str
(
ij
)[
0
])
-
1
]
for
ij
in
self
.
BEATNOTES
for
ij
in
self
.
BEATNOTES
],
axis
=-
1
)
# (size, beatnote) [Hz]
],
axis
=-
1
)
# (size, beatnote) [Hz]
self
.
carrier_beatnote
=
self
.
carrier_beatnote_offsets
+
self
.
carrier_beatnote_fluctuations
# Three-signal combination
self
.
three_signal_combination
=
self
.
carrier_beatnote
[:,
0
]
+
self
.
carrier_beatnote
[:,
1
]
+
self
.
carrier_beatnote
[:,
2
]
# ...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment