diff --git a/.github/workflows/benchmark_default_branch.yml b/.github/workflows/benchmark_default_branch.yml index baf80f0a..52a3934c 100644 --- a/.github/workflows/benchmark_default_branch.yml +++ b/.github/workflows/benchmark_default_branch.yml @@ -11,14 +11,14 @@ jobs: name: Run pytest-benchmark runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 with: python-version: "3.10" - name: Install dependencies run: | python -m pip install --upgrade pip - pip install ".[testing]" + SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 pip install ".[testing]" - name: Run benchmark run: | cd tests diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index b9990238..9f53e31d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -9,9 +9,9 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: "3.8" cache: 'pip' # caching pip dependencies diff --git a/.github/workflows/stylecheck.yml b/.github/workflows/stylecheck.yml index 1a56b8f6..9e777cf8 100644 --- a/.github/workflows/stylecheck.yml +++ b/.github/workflows/stylecheck.yml @@ -6,6 +6,6 @@ jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 - - uses: pre-commit/action@v2.0.0 + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + - uses: pre-commit/action@v3.0.1 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 96718f8a..019cc10e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -15,10 +15,10 @@ jobs: matrix: python-version: [3.9, "3.10", 3.11, 3.12] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: 'pip' # caching pip dependencies @@ -28,7 +28,7 @@ jobs: # Do all the installations python -m pip install --upgrade pip wheel setuptools - pip install .[testing] + SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 pip install ".[testing]" # Print out the pip versions for debugging pip list diff --git a/.github/workflows/test_all.yml b/.github/workflows/test_all.yml index 2eebd9c6..b182cf17 100644 --- a/.github/workflows/test_all.yml +++ b/.github/workflows/test_all.yml @@ -10,10 +10,10 @@ jobs: name: Test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python 3.9 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: 3.9 cache: 'pip' # caching pip dependencies @@ -22,7 +22,7 @@ jobs: run: | # Do all the installations python -m pip install --upgrade pip wheel setuptools - pip install .[testing] + SETUPTOOLS_SCM_PRETEND_VERSION=0.0.0 pip install ".[testing]" # Print out the pip versions for debugging pip list diff --git a/tsfresh/feature_extraction/feature_calculators.py b/tsfresh/feature_extraction/feature_calculators.py index abe3e07b..b0b467c5 100644 --- a/tsfresh/feature_extraction/feature_calculators.py +++ b/tsfresh/feature_extraction/feature_calculators.py @@ -1431,6 +1431,7 @@ def spkt_welch_density(x, param): """ max_length_per_segment = 256 + x = np.asarray(x) _, pxx = welch(x, nperseg=min(len(x), max_length_per_segment)) coeff = [config["coeff"] for config in param] indices = [f"coeff_{i}" for i in coeff] @@ -1815,6 +1816,7 @@ def fourier_entropy(x, bins): """ max_length_per_segment = 256 + x = np.asarray(x) _, pxx = welch(x, nperseg=min(len(x), max_length_per_segment)) return binned_entropy(pxx / np.max(pxx), bins)