semvec/pypi-packages huggingface dataset:
excel-template-app 0.1.1
An application for applying Excel templates to transcript data for a research project.
Requires Python: >=3.6

# Excel Template App

Excel Template App is a Python-based desktop application designed to streamline the process of converting transcript files to Excel format and applying predefined templates. This tool is particularly useful for research assistants working with transcript data.

## Features

- Convert .docx transcript files to raw Excel format
- Apply Excel templates to processed data
- Batch processing capabilities
- User-friendly graphical interface

## Installation

### Prerequisites

- Python 3.6 or higher
- pip (Python package installer)

### Steps

1. Open a command prompt or terminal.
2. Run the following command to install the Excel Template App:

   ```
   pip install excel_template_app
   ```

## Usage

After installation, you can run the application using one of the following methods:

1. From the command line:
   ```
   excel_template_app
   ```

2. From Python:
   ```python
   from excel_template_app import ExcelTemplateApp
   import tkinter as tk

   root = tk.Tk()
   app = ExcelTemplateApp(root)
   root.mainloop()
   ```

## Application Workflow

1. **Stage 1: Transcript to Raw Excel**
   - Select multiple .docx transcript files
   - Process the transcripts to convert them to raw Excel format
   - View processing results in the application window

2. **Stage 2: Apply Template**
   - Select an Excel template file
   - Select multiple raw Excel files generated from Stage 1
   - Apply the template to all selected files
   - Choose a directory to save the processed files

## Troubleshooting

- If you encounter any issues, ensure you have the latest version of the app:
  ```
  pip install --upgrade excel_template_app
  ```
- Check that all dependencies are correctly installed
- For persistent problems, please contact [Your Contact Information]

## Contributing

If you'd like to contribute to the project, please contact me

## License

This project is licensed under the MIT License - see the LICENSE file for details.

## Contact

Larry Grullon-Polanco - larrygrpolanco@gmail.com

Project Link: https://github.com/larrygrpolanco/transcript-excel-converter
atlas-fit 1.0.3
Tool to perform comparison and calibration of flat fielded flat images against a solar atlas.
Requires Python: >=3.8

# Atlas-Fit

Python tools to fit solar spectra with known atlantes for 
 - **wavelength calibration**
 - **continuum correction**
 - stray-light analysis
 - effective FWHM computation
 - chi^2 error computation of the atlas fit

This package provides two tools:

- `bin/prepare`:  
    This script is used to generate a list of lines from the atlas and data
    to use for finding a wavelength solution (dispersion). 
    If you have a list of lines already you can still use this to test and 
    fine-tune your configuration and to inspect the fitting and analysis 
    results with interactive plots.
- `bin/amend_spectroflat`:  
    This tool allows to amend the calibration results from the
    `spectroflat` library. The fitted dispersion can be applied 
    to the `OffsetMap` (to include wavelength calibration) and 
    the continuum correction can be included with the soft-flat.

Both tools can (and should) be run with the same configuration. 
Run the `prepare` first to find the right configuration values 
and use the `amend_spectroflat` script to apply the results.

When using this library please cite:

Hoelken et al. "Spectroflat: A generic spectrum and flat-field calibration library for spectro-polarimetric data"
([DOI: 10.1051/0004-6361/202348877](https://doi.org/10.1051/0004-6361/202348877))

#### Configuration
Lines to be used for dispersion fitting can be selected interactively:
![Interactive Line Selection](examples/line_selection.png)
After the `prepare` script ran successful on the selected lines, it will 
create an `atlas_fit_lines.yaml` configuration file to be used with 
`amend_spectroflat` script. Find an example under `examples/line_selection.yml`

```yaml 
label: "Test config"
input:
  path: examples/test.fits.gz
  roi: "[25,10:]"
  wl_start: 410.6
  wl_end: 413.4
  fwhm: 0.00112
  stray_light: 7
  line_window: 12

atlas:
  key: 'hhdc'
  line_window: 50
```

Find a fully commented example under `examples/config.yml`

#### Usage 
Run either script with `<script-name> path/to/config.yml [path/to/linefile.yml]`

##### `prepare`
This script allows you to inspect the fit of your data 
against the selected atlas and lines in detail. 
Use this to fine-tune the configuration and generate plots. 

##### `amend_spectroflat`
This script creates an improved version of the calibration 
data created with `spectroflat`. It will add the dispersion
correction (and error information) to the `OffsetMap` and 
the continuum correction to the soft flat. 

Using the amended calibration data results in a fully corrected 
dataset suitable for demodulation and spectral restoration.  

#### Support
Developed and maintained by `hoelken@mps.mpg.de`