Skip to content

sunilmut/NumPPy

Repository files navigation

Overview

This repo has various python scripts that make it easy to analyze photometry and freeze frame data. There is a more general colorsort.py script that helps sort and separate columns with different colors.

Setup:

Install git for windows:

In a browser go here, download and run the "64-bit Git for Windows Setup"
Or
Open a administrator command prompt and run:

winget install --id Git.Git -e --source winget

Clone the code:

Open a new command prompt and run:

git clone https://github.com/sunilmut/NumPPy.git
cd NumPPy

Install python

Windows: Follow the instructions here to install python on your system

Install the necessary python modules:

In the opened command prompt, run:

pip3 install guizero numpy pandas xlrd xlsxwriter matplotlib openpyxl nested_dict h5py scipy pathlib bcolors==1.0.2

Update the code:

If you have to update the code, for example to pull in a fix or an update.
Note This assumes that you have already done the setup.

Open a command prompt:

cd NumPPy
git pull

Projects:

Run FreezeData processing app

In the opened command prompt (or open a command prompt), run:

python binary.py

To run the app in verbose mode (to get more logs), run:

python binary.py -v

To run unit tests:

python -m unittest test_binary

XLS (Excel) color sorter

Sorts the color coded data from a given .xls(x) input file and outputs them to an .xlsx file.
It can work with up to 100 different sheets in the input file.
User can choose to extract the same colored values into either one continuous column or into separate columns in the output file.

Example:

Alt text

Usage:

python colorsort.py

To get verbose output log fie:

python colorsort.py -v

Note Close the output file prior to running.

Run Photometry data processing app

In the opened command prompt (or open a command prompt), run:

python dff.py

To run the app in verbose mode (to get more logs), run:

python dff.py -v

To run unit tests:

python -m unittest test_dff
# Or to run a particular test case:
python -m unittest test_dff.DffTest.test_bvt

About

Parses formatted xls data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages