Astrophysics outreach tool
Project description
Installation with pip
Install Sonic Screwdriver with pip:
pip3 install Sonic-Screwdriver
Install additional dependencies:
pip3 install typing_extensions==4.12.2
Note: Ignore the error regarding dependency conflicts.
Setup
Dalek
Sonic Screwdriver is built upon Dalek, an emulator for Tardis an open-source Monte Carlo radiative-transfer spectral synthesis code. Sonic Screwdriver makes use of the Dalek created neural networks to generate type Ia supernova spectra from given inputs.
Download the Dalek neural networks from Dalek data. Lastly unzip the downloaded file.
Configuration file
Create a configuration file:
- Create file called {my_config}.py
- Setup the following variables:
dalek_dir = {dalek_data_dir}where{dalek_data_dir}is the path to the directory containing the Dalek data downloaded in the previous setup step.instruments_dir = {instruments_dir}where{instruments_dir}is the path to the directory where the instrument sound files will be downloaded to and stored.output_dir = {output_dir}where{output_dir}is the directory for which the output files of Sonic Screwdriver will be stored. (Only two files are stored at any given time.)
An example configuration file is provided here
Running Sonic Screwdriver
Sonic Screwdriver is run directly from the command line:
cd directory_containing_{my_config.py}
python3 -m sonicscrewdriver.sonic_screwdriver -i {my_config}
Using Sonic Screwdriver
Using Sonic Screwdriver is simple!
Simply change the supernova option sliders, select an instrument, select a musical scale, and then hit "Run". Sonic Screwdriver will then use Dalek to produce a supernova spectrum from the options you chose, which will be displayed on the right. Sonic Screwdriver will also sonify the spectrum using Strauss. To play the spectrum sonifcation hit the "play" button and to stop the audio hit the "stop" button.
Have fun producing and sonifying supernova spectra!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sonic_screwdriver-1.0.13.tar.gz.
File metadata
- Download URL: sonic_screwdriver-1.0.13.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f452d3c3ce89cc167d0143b581b23ba0557ea14df69d11d34a305572e2c742f
|
|
| MD5 |
0288412bdfb901187c22f661a3c421a4
|
|
| BLAKE2b-256 |
7f03077ceb6af587e4affa23d46f148d91de82dd2ea87f9c1a0cd87fc4479f54
|
File details
Details for the file Sonic_Screwdriver-1.0.13-py3-none-any.whl.
File metadata
- Download URL: Sonic_Screwdriver-1.0.13-py3-none-any.whl
- Upload date:
- Size: 23.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbe296484e6555010bd1a1749d38aab24de3d55ae06eb97e9d36f5a125fdf122
|
|
| MD5 |
8aabb56aba98258885e0966de3935f36
|
|
| BLAKE2b-256 |
6125c6ae6d5b26c0ae208ffe4ec21749fb7bedcee269fcc65d868ae10b5edf5c
|