Network
gwmock_signal.network
¶
Named detector network catalog for ground-based GW observatories.
Network
dataclass
¶
A detector network: a named, ordered collection of detector specs.
Attributes:
| Name | Type | Description |
|---|---|---|
name |
str
|
Human-readable label for the network. |
detector_names |
tuple[str | CustomDetector, ...]
|
Ordered tuple of LAL detector prefix strings (e.g.
|
Source code in src/gwmock_signal/network.py
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 | |
from_detectors(detectors, *, name='')
classmethod
¶
Construct a :class:Network from any sequence of detector specs.
String entries are validated against LAL's runtime detector list
(lal.cached_detector_by_prefix), so any detector code that the
installed LAL bindings know about works here without hard-coding.
:class:~gwmock_signal.detector.CustomDetector instances are accepted
as-is for non-standard geometries.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
detectors
|
Sequence[str | CustomDetector]
|
Sequence of LAL detector code strings (e.g. |
required |
name
|
str
|
Optional human-readable label. Defaults to the comma-joined detector names. |
''
|
Returns:
| Name | Type | Description |
|---|---|---|
A |
Network
|
class: |
Raises:
| Type | Description |
|---|---|
ValueError
|
If any string entry is not in LAL's available detector set, or if detectors is empty. |
Source code in src/gwmock_signal/network.py
196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 | |
from_file(path)
classmethod
¶
Load a :class:Network from a YAML, JSON, or deprecated .interferometer file.
The file must have a top-level name key (str) and a detectors
key containing a non-empty list of detector entries. Each entry must
have a name field. If any geometry key is present a
:class:~gwmock_signal.detector.CustomDetector is constructed;
otherwise the name is treated as a plain LAL detector code string.
.interferometer files are treated as Bilby compatibility shims for
a single custom detector and emit a :class:DeprecationWarning. Migrate
those files to the YAML detector preset/network format instead.
Angle conventions — every angle parameter accepts either a degrees
variant (*_deg) or a radians variant (*_rad), but not both for
the same parameter:
+-----------------------+-------------------+-----------+
| Parameter | Degrees key | Radians key |
+=======================+===================+=============+
| Geodetic latitude | latitude_deg | latitude_rad |
| Geodetic longitude | longitude_deg | longitude_rad |
| x-arm azimuth | xarm_azimuth_deg | xarm_azimuth_rad |
| y-arm azimuth | yarm_azimuth_deg | yarm_azimuth_rad |
| x-arm tilt (optional) | xarm_tilt_deg | xarm_tilt_rad |
| y-arm tilt (optional) | yarm_tilt_deg | yarm_tilt_rad |
+-----------------------+-------------------+-----------+
elevation_m is always in metres. Tilt fields default to 0.0
when absent.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str | Path
|
Path to a |
required |
Returns:
| Name | Type | Description |
|---|---|---|
A |
Network
|
class: |
Network
|
for LAL detector aliases and |
|
Network
|
class: |
|
Network
|
user-defined geometries. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the file extension is unsupported, a required
angle is absent, both |
Source code in src/gwmock_signal/network.py
294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 | |
from_name(alias)
classmethod
¶
Construct a :class:Network from a named preset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
alias
|
str
|
One of the pre-defined network names returned by
:meth: |
required |
Returns:
| Name | Type | Description |
|---|---|---|
A |
Network
|
class: |
Network
|
for that preset. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If alias is not in the named presets. |
Source code in src/gwmock_signal/network.py
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | |
from_preset(alias)
classmethod
¶
Construct a :class:Network from a bundled YAML/JSON detector preset.
Bundled presets live under gwmock_signal.data.detectors and are
resolved with :mod:importlib.resources, so they work from source trees
and installed wheels alike.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
alias
|
str
|
One of the bundled preset aliases returned by
:meth: |
required |
Returns:
| Name | Type | Description |
|---|---|---|
A |
Network
|
class: |
Raises:
| Type | Description |
|---|---|
ValueError
|
If alias does not map to a bundled preset file. |
FileNotFoundError
|
If the mapped packaged preset file is missing. |
Source code in src/gwmock_signal/network.py
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 | |
list_lal_detectors()
classmethod
¶
Return every detector code available in the installed LAL, sorted.
Returns:
| Type | Description |
|---|---|
list[str]
|
Sorted list of LAL detector prefix strings |
list[str]
|
(e.g. |
Source code in src/gwmock_signal/network.py
378 379 380 381 382 383 384 385 386 | |
list_names()
classmethod
¶
Return a sorted list of all named network and bundled preset aliases.
Source code in src/gwmock_signal/network.py
373 374 375 376 | |
list_lal_detectors()
¶
Return every detector code available in the installed LAL bindings.
Source code in src/gwmock_signal/network.py
134 135 136 | |
Used by the command-line interface (--network)
and by library workflows that need named IFO sets. For antenna-pattern
projection of \(h_{+}\), \(h_{\times}\), see Projection.
Bundled detector-geometry presets currently include:
ET-Triangle-Sardinia(compatibility alias:ET-Sardinia)ET-Triangle-EMR(compatibility alias:ET-EMR)ET-2L-AlignedET-2L-Misaligned