semvec/pypi-packages huggingface dataset:
EMPOL-GUI 2.2.8
Astronomial Large Data Reduction GUI - EMPOL

Note: The file is only for Linux - Ubuntu Users

Pre-requisites:

1. SAODS9 – software to open fits file
2. Sextractor – Source Extractor
3. Python & python libraries

*** Steps to install ds9 ***

1. Open Terminal in your ubuntu system.
2. Type the following Terminal Command -
	sudo apt-get install saods9

*** Follow this link to install Sextractor ***
http://wiki.ipb.ac.rs/index.php/SExtractor_installation

*** Steps to Install python and python libraries ***

Important – Make sure you are connected to internet to avoid any unwanted errors.

1. In the downloaded zip/tar folder, right click on the modules.sh file and select properties. Go to the permissions tab in the properties dialog box and tick the “ Allow executing file as a program” option.
2. Open terminal in the same directory and type the following command -
	./modules.sh


Steps to be followed to run the EMPOL Polarization GUI :

1. From the extracted contents from the downloaded ZIP file, copy "GUI.desktop" to the desktop.
2. Right click on the “GUI.desktop” file and open it with text editor. It should show the following: 

[Desktop Entry]
Name=EMPOL_GUI
Version=1.0
Icon=icon.png
X-Icon-Path=/home/ubuntu/Desktop/Merged_Code/icon.png
Exec=python /home/ubuntu/Desktop/Merged_Code/GUI_merge.py
Terminal=false
Type=Application

Change X-Icon-path as the path to the icon.png and Exec as the path to th GUI_merge.py file in your system. 
Save the changes made in the text file and close.

3. Right click on the “GUI.desktop“ file & go to properties. Select – “Allow executing file as a program.”
4. Again, Right click on the “GUI.desktop” file and select “Allow Launching”
5. Double click on the file
gmanka-yml 23.0.5
some useful shortcuts for pyyaml
Requires Python: >=3.10

# gmanka yml

some useful shortcuts for pyyaml

## installation

```bash
pip install gmanka_yml
```

## navigation

- [to_str](#to_str)  
- [to_file](#to_file)  
- [from_str](#read_str)  
- [from_file](#read_file)  
- [default](#default)
- [expected_type](#expected_type)
- [changelog](changelog)

## to_str[^](#functions)

converts any data to yml string and returns it

```py
import gmanka_yml as yml

my_dict = {
    'element_1': 1,
    2: 'element_2',
    3: [
        'list_element_1',
        'list_element_2',
    ]
}

print(yml.to_str(my_dict))
```

output:

```yaml
element_1: 1
2: element_2
3:
- list_element_1
- list_element_2
```

## to_file[^](#functions)

same as [to_str](#to_str), but writes data to file instead of returning

```py
yml.to_file(
    data = my_dict,
    path = 'file.yml',
)
```

## from_str[^](#functions)

```py
import gmanka_yml as yml

my_str = '''
element_1: 1
2: element_2
3:
- list_element_1
- list_element_2
'''

my_dict = yml.from_str(my_str)

print(my_dict)

print(type(my_dict))
```

output:

```py
{'element_1': 1, 2: 'element_2', 3: ['list_element_1', 'list_element_2']}

<class 'dict'>
```

## from_file[^](#functions)

same as [from_str](#read_str), but reads data from file

```py
yml.from_file('file.yml')
```

## default

```py
yml.from_str(1) # raises TypeError

yml.from_str(1, default = None) # returns None
```

## expected type

```py
yml.from_str(
    data = '{}',
    expected_type = list,
) # raises TypeError

yml.from_str(
    data = '{}',
    default = None,
    expected_type = list,
) # returns None
```