Auxiliar functions for my thesis
Project description
utils-tesis
utils-tesis is a Python package that provides a collection of auxiliary functions for various tasks commonly encountered in thesis and research projects. These functions are designed to streamline and simplify common operations, leveraging the power of the NumPy Stack, including NumPy, SciPy, Matplotlib, and Pandas.
Features
-
NumPy Stack Integration: Utilize the capabilities of NumPy, SciPy, Matplotlib, and Pandas seamlessly for efficient data manipulation, analysis, and visualization.
-
Convenience Functions: A set of convenience functions to perform common tasks encountered in thesis and research projects, including:
- Loading Signals as Pandas DataFrames: Easily load and handle signals as Pandas DataFrames for efficient data manipulation.
- Fault Detection using Harmonic Distortion: Detect and analyze faults in signals by examining harmonic distortion.
- Signal Windowing: Apply windowing techniques to signals for better analysis and feature extraction.
- Plotting: Streamlined functions for visualizing signals and analysis results using Matplotlib.
- Fourier Transforms: Perform Fourier transforms on signals to analyze frequency components.
- Superimposed Components Analysis: Identify and analyze superimposed components in signals.
-
Modular Design: Well-organized modules make it easy to find and use specific functionalities without unnecessary complexity.
Installation
Install the package using pip:
pip install utils-tesis
Usage Example
# test.py
# Import necessary modules from utils_tesis
import utils_tesis.integration as itg
from utils_tesis.signalload import CSV_pandas
# Create a dictionary to store signal information
signal_info = {}
signal_info["window_length"] = 64
signal_info["step"] = 4
# Instantiate a CSV_pandas object to load signals
signals = CSV_pandas()
# Retrieve the list of available signals
signals.relay_list()
# Assign signals to the signal_info dictionary
signal_info["signals"] = signals
# Specify the signal name for analysis
signal_info["signal_name"] = "I: X0023A-R1A"
# Perform integration using img_trip function from the itg module
t, trip = itg.img_trip(signal_info)
# Visualize the results using Matplotlib
import matplotlib.pyplot as plt
# Plot the integrated signal using stem plot
plt.stem(t, trip)
plt.title("Integrated Signal: " + signal_info["signal_name"])
plt.xlabel("Time")
plt.ylabel("Integrated Value")
plt.show()
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 utils_tesis-0.1.0.tar.gz.
File metadata
- Download URL: utils_tesis-0.1.0.tar.gz
- Upload date:
- Size: 39.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d8fd708e5be228d0431559674c73c733b63bc65f9ff893d3885a06a80d4df0d3
|
|
| MD5 |
21d544cb35c09cb59be210acb23a5e00
|
|
| BLAKE2b-256 |
5687c61bf986ee1c6208720ee69c4540ae1e254a666bfa3f57241e1858f98fe2
|
File details
Details for the file utils_tesis-0.1.0-py3-none-any.whl.
File metadata
- Download URL: utils_tesis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b75540b274be53f48dd9ba383fc941ee5e010f8076ee93c19ee034c3a0d5990b
|
|
| MD5 |
341141f604f10844231532cb74e7a50a
|
|
| BLAKE2b-256 |
ea002a18baf7a59fa5a643bd3b44470eb4d39acebc713e631790283e3cff91e2
|