Skip to main content

Simulating Baldr - the Zernike Wavefront Sensor for Asgard

Project description

BaldrApp

Simulating Baldr - the Zernike Wavefront Sensor (ZWFS) for VLTI/Asgard

Various modules and examples for testing end-to-end a ZWFS. Optionally includes, and extends the machinary of pyZelda to deal with specific details of Baldr, including its unique optics, coldstops, DMs and phasemasks.

python
import baldrapp

Installation

pip install baldrapp

This has a dependancy on a forked version of the pyZELDA package (https://github.com/courtney-barrer/pyZELDA) which must be installed seperately

pip install pyzelda@git+https://github.com/courtney-barrer/pyZELDA.git@b42aaea5c8a47026783a15391df5e058360ea15e

Alternatvely the project can be cloned or forked from the Github:

git clone https://github.com/courtney-barrer/BaldrApp

The pip installation was tested on only on python 3.12.7.

Older versions of the app also included:

  • A PyQt application for end-to-end simulatations and visualization of Baldr operations (closed and open loop for a single telescope). The gui allows downloading of configuration files and telemetry. After pip installation try type in a terminal (warning: it takes 1-2 minutes to calibrate before the app will appear):
python -m baldrapp.apps.baldr_closed_loop_app.closed_loop_pyqtgraph

The app contains a command prompt that is exposed to the full python environment of the simulation. The default initialised mode is open loop with a weak rolling Kolmogorov atmosphere, and calibrated zonal matricies with zero gain. Some basic commands to test :

zwfs_ns.ctrl.HO_ctrl.ki += 0.4 # put some non-zero gains

dynamic_opd_input=False #turn off rolling atmosphere phasescreen

M2C_0 = DM_basis.construct_command_basis( basis= "Zernike", 
number_of_modes = 20, without_piston=True).T # build a DM basis

dm_disturbance = M2C_0[5]* 1e-1 #put a static disturbance on the DM
  • A Streamlit application that simulates a Zernike Wavefront Sensor optical system using Fresnel diffraction propagation to model system mis-alignments. The default setup is for simulating the last (critical) part of the optical train of Baldr. After pip installation try type in a terminal:
python -m baldrapp.apps.baldr_alignment_app.Baldr_Fresnel_App

These have not been upgraded for recent versions of BaldrApp so may not run (yet).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

baldrapp-0.1.8.tar.gz (258.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

baldrapp-0.1.8-py3-none-any.whl (298.6 kB view details)

Uploaded Python 3

File details

Details for the file baldrapp-0.1.8.tar.gz.

File metadata

  • Download URL: baldrapp-0.1.8.tar.gz
  • Upload date:
  • Size: 258.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for baldrapp-0.1.8.tar.gz
Algorithm Hash digest
SHA256 c5c5323541f98d06efafe453cb6e1663b9f6cfdce3e121a71cb528f682276f9c
MD5 41d3805c3c95aa1be27b683cb951ac4f
BLAKE2b-256 37dcb98e48c2402f63ac183bd8b0f1c9d599dce8754ddd523f68dcbf868b94e3

See more details on using hashes here.

File details

Details for the file baldrapp-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: baldrapp-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 298.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.2

File hashes

Hashes for baldrapp-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 8cfa024742498acadcb9d684f9ce6f5945ad12326a08ed76e293c597231c8d6a
MD5 a4034b3611463ece52409d8fdd1e629c
BLAKE2b-256 3cf0b956aac873afe185f62ec52887f835a5e33ae2dd7385938869e147fd36ec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page