This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os, sys, shutil, pygame | |
import time | |
# Configuration | |
BASE_DIR = r"C:\Users\Student\Desktop\Ada\mothra__frames\1quartermothra\quarterLargo" | |
DELETE_DIR = os.path.join(BASE_DIR, "delete") | |
WINDOW_W, WINDOW_H = 1200, 800 | |
PANEL_W = 240 | |
IMG_W, IMG_H = WINDOW_W - PANEL_W, WINDOW_H | |
FPS = 30 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# app.py | |
import streamlit as st | |
from PIL import Image, ImageEnhance | |
import numpy as np | |
import cv2 | |
from skimage.segmentation import slic | |
from skimage.util import img_as_float | |
from sklearn.cluster import MiniBatchKMeans, Birch | |
from sklearn.mixture import GaussianMixture | |
from sklearn.decomposition import PCA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import streamlit as st | |
import pandas as pd | |
import numpy as np | |
from scipy.stats import chisquare | |
st.set_page_config(page_title="Poisson Test on CPD", layout="centered") | |
st.title("Hourly Changepoint Poisson Test") | |
uploaded = st.file_uploader("Upload CPD CSV", type=["csv"]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
import streamlit as st | |
from datetime import datetime | |
st.title('Ecological Change-Point Permutation Tests') | |
st.write('Upload two ecological time-series CSVs: one NPP, one interpolated.') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ─────────────────────────────────────────────────────────────── | |
# Temporal PCNM & Community Analysis Script v2.2 | |
# ─────────────────────────────────────────────────────────────── | |
## 1. USER SETTINGS ---- | |
script_dir <- "C:/Users/Student/Desktop/Ada/RScripts" | |
csv_file <- file.path(script_dir, "SHR_2022-23_interpolated_time.csv") | |
# Define the time windows for analysis | |
time_windows <- list( |