-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy paththread_testing.py
More file actions
48 lines (40 loc) · 1.11 KB
/
thread_testing.py
File metadata and controls
48 lines (40 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import datetime
import io
import math
import json
from pathlib import Path
import copy
import numpy
import sys
from statsmodels.tsa.seasonal import seasonal_decompose
import statsmodels.api as sm
from sklearn.preprocessing import MinMaxScaler
import pandas as pd
from tqdm import tqdm_notebook
from itertools import product
import scipy.ndimage
import scipy.fftpack
import scipy.signal
import scipy.stats as st
import numpy as np
from numpy import polyfit
from PIL import Image
import statistics as stst
from scipy.ndimage import median_filter, median, maximum_filter, gaussian_filter
from skimage.filters import threshold_otsu
from sklearn.linear_model import LinearRegression
from sklearn.model_selection import train_test_split
import matplotlib.pyplot as plt
import scipy.signal
from scipy.interpolate import griddata
from numpy import array
import time
from threading import Thread
def test(message, sleep_duration):
print(message)
time.sleep(sleep_duration)
print(str(sleep_duration) + " secondi passati")
t = Thread(target=test, args=("sono il thread", 10))
t.start()
print(" ")
print("sono già passato")