Skip to main content

Auxiliar functions for my thesis

Project description

utils-tesis

GitHub Actions PyPI version License

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

utils_tesis-0.1.4.tar.gz (62.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

utils_tesis-0.1.4-py3-none-any.whl (15.4 kB view details)

Uploaded Python 3

File details

Details for the file utils_tesis-0.1.4.tar.gz.

File metadata

  • Download URL: utils_tesis-0.1.4.tar.gz
  • Upload date:
  • Size: 62.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for utils_tesis-0.1.4.tar.gz
Algorithm Hash digest
SHA256 ab01ebda1532f43b57f82fa567c744488e72a1e64a68ffc90e4741130f4e2c55
MD5 7c5011b08eb6fcc6cef11867b8300a17
BLAKE2b-256 b7129e4f69d09e62f415aeafe634abb9eabc945deaf6e8d209a529d935557fa4

See more details on using hashes here.

File details

Details for the file utils_tesis-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: utils_tesis-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for utils_tesis-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 6c9bdc24b39fc73ebb770e1500b0a12f69e4f85c7b563c58b713b34e09b4af36
MD5 86320a6efe2d6b7f10b4a601a07f1fa7
BLAKE2b-256 8206fe9010458a1299ed09b34036f56be42659056542150f5f5060db08ab8d59

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page