Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify function names #31

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions dea.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
A collection of functions which run the diffusion entropy
analysis algorithm for temporal complexity detection.
"""
from typing import Union
from scipy import stats
from tqdm.notebook import tqdm
import os
import time
import numpy as np
import polars as pl
import matplotlib.pyplot as plt
import seaborn as sns
from typing import Union
from scipy import stats
from tqdm.notebook import tqdm

def make_sample_data(length: int, seed: float = time.time) -> np.ndarray:
"""Generates an array of sample data."""
Expand Down Expand Up @@ -329,7 +329,7 @@ def plot_mu_candidates(delta: float, mu1: float, mu2: float) -> None:
sns.despine(left=True, bottom=True)
plt.show(fig)

def run_dea_no_stripes(
def run_no_stripes(
data: Union[np.ndarray, pl.Series],
fit_start: int,
fit_stop: int,
Expand Down Expand Up @@ -381,7 +381,7 @@ def run_dea_no_stripes(
plt.show(fig)
print("DEA without stripes complete.")

def run_dea_with_stripes(
def run_with_stripes(
data: Union[np.ndarray, pl.Series],
number_of_stripes: int,
fit_start: int,
Expand Down
Loading