Giter VIP home page Giter VIP logo

pycatch22's People

Contributors

anniegbryant avatar benfulcher avatar chlubba avatar jaearly avatar moisesrsantos avatar musicinmybrain avatar olivercliff avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pycatch22's Issues

How to install?

Hi, It seems that pip install pycatch22 or catch22 fails to install.

!pip install pycatch22
Looking in indexes: https://pypi.org/simple, https://us-python.pkg.dev/colab-wheels/public/simple/
Collecting pycatch22
Downloading pycatch22-0.4.0.tar.gz (63 kB)
|████████████████████████████████| 63 kB 1.5 MB/s
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
WARNING: Generating metadata for package pycatch22 produced metadata for project name unknown. Fix your #egg=pycatch22 fragments.
WARNING: Discarding https://files.pythonhosted.org/packages/f3/23/e33ab606f62a488522b8d6053027e914a7774d32e31cb6bd9f9cf6747b6f/pycatch22-0.4.0.tar.gz#sha256=f3eb0d5892398370bd247b8e2bd51c66f6c2686a93b96c0f12584e50102bdc09 (from https://pypi.org/simple/pycatch22/). Requested unknown from https://files.pythonhosted.org/packages/f3/23/e33ab606f62a488522b8d6053027e914a7774d32e31cb6bd9f9cf6747b6f/pycatch22-0.4.0.tar.gz#sha256=f3eb0d5892398370bd247b8e2bd51c66f6c2686a93b96c0f12584e50102bdc09 has inconsistent name: filename has 'pycatch22', but metadata has 'UNKNOWN'
ERROR: Could not find a version that satisfies the requirement pycatch22 (from versions: 0.4.0)
ERROR: No matching distribution found for pycatch22

Implementation on STM32 Cortex-M0

Hi,
I have used the repository using python3 and I was wondering how to use this "C" programming language implemented catch22 code on STM32 Cortex-M0 board?(After checking I found that the "C" implementation is nearly around 140 kb which is higher than the memory limit(around 60 kb) in the board). Is any of the feature calculator functions resource intensive? if so, which one(s)? (the battery usage should be considered for long time duration usages.)
Any help would be appreciated.
Regards

Issue with doing multiple time series on Databricks

I am trying to get the features for a bunch of time series, but I keep running into the error below. For example, when I run over 12,000 time series, the first 9,000 work fine, however the loop breaks and kills the kernel when it gets around 9,000. I tried just doing the last 3,000, however, the error still pops up. It works for every time series in the last 3,000 if I groupby and apply the method I made one at a time. The issue appears when I put it in a for loop. It will run a couple of the time series and then this error appears. I have also tried it on different cluster set ups with varying sizes and workers and the error still pops up. Any help would be greatly appreciated. Thanks!

rounds = int((issues_df['time_series_idx'].nunique()))
for i in range(0,rounds):
  reduced_df = issues_df[(issues_df['time_series_idx'].isin([issues_df['time_series_idx'].unique()[i]]))]
  features_df = reduced_df.groupby(['run_id']).apply(catch_24) #works by itself when I do one time series at a time
  features.append(features_df)


Fatal error: The Python kernel is unresponsive.
---------------------------------------------------------------------------
The Python process exited with exit code 139 (SIGSEGV: Segmentation fault).



The last 10 KB of the process's stderr and stdout can be found below. See driver logs for full logs.
---------------------------------------------------------------------------
Last messages on stderr:
y", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

Thread 0x00007fb746ffe640 (most recent call first):
  File "/usr/lib/python3.10/multiprocessing/pool.py", line 114 in worker
  File "/usr/lib/python3.10/threading.py", line 953 in run
  File "/usr/lib/python3.10/threading.py", line 1016 in _bootstrap_inner
  File "/usr/lib/python3.10/threading.py", line 973 in _bootstrap

References for calculating and interpreting features

Hello, I hope you are well. A feature that I really miss in the catch22 package is a formalization of the features, with reference. Okay, I can see the code, but references and interpretation are missing. Hope to see this in the future as this package is very useful for time series characterization.

Failure to build wheels on RHEL 64 cluster system

Hello, a colleague of mine (@meganspurney) tried to pip install this in a valid conda environment on our cluster, an RHEL 64-bit system, and unfortunately got some errors. I believe from the errors there needs to be some configuration of the wheel building system to force C99 mode for GCC compilers. On the other hand, this works fine on MacOS systems (which use clang, which is generally less picky about these things).

(winter2022) [spurneyma@cn2880 pycatch22]$ pip install pycatch22
Collecting pycatch22
 Using cached pycatch22-0.4.2.tar.gz (49 kB)
 Installing build dependencies ... done
 Getting requirements to build wheel ... done
 Installing backend dependencies ... done
 Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pycatch22
 Building wheel for pycatch22 (pyproject.toml) ... error
 error: subprocess-exited-with-error
 × Building wheel for pycatch22 (pyproject.toml) did not run successfully.
 │ exit code: 1
 ╰─> [253 lines of output]
    running bdist_wheel
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-cpython-310
    creating build/lib.linux-x86_64-cpython-310/pycatch22
    copying src/pycatch22/catch22.py -> build/lib.linux-x86_64-cpython-310/pycatch22
    copying src/pycatch22/__init__.py -> build/lib.linux-x86_64-cpython-310/pycatch22
    running egg_info
    writing src/pycatch22.egg-info/PKG-INFO
    writing dependency_links to src/pycatch22.egg-info/dependency_links.txt
    writing top-level names to src/pycatch22.egg-info/top_level.txt
    reading manifest file 'src/pycatch22.egg-info/SOURCES.txt'
    reading manifest template '[MANIFEST.in](http://manifest.in/)'
    adding license file 'LICENSE'
    writing manifest file 'src/pycatch22.egg-info/SOURCES.txt'
    copying src/pycatch22/.DS_Store -> build/lib.linux-x86_64-cpython-310/pycatch22
    running build_ext
    building 'catch22_C' extension
    creating build/temp.linux-x86_64-cpython-310
    creating build/temp.linux-x86_64-cpython-310/src
    creating build/temp.linux-x86_64-cpython-310/src/C
    gcc -pthread -B /data/spurneyma/miniconda/envs/winter2022/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /data/spurneyma/miniconda/envs/winter2022/include -fPIC -O2 -isystem /data/spurneyma/miniconda/envs/winter2022/include -fPIC -Isrc/C -I/data/spurneyma/miniconda/envs/winter2022/include/python3.10 -c src/C/CO_AutoCorr.c -o build/temp.linux-x86_64-cpython-310/src/C/CO_AutoCorr.o
    src/C/CO_AutoCorr.c: In function ‘dot_multiply’:
    src/C/CO_AutoCorr.c:61:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for (int i = 0; i < size; i++) {
       ^
    src/C/CO_AutoCorr.c:61:5: note: use option -std=c99 or -std=gnu99 to compile your code
    src/C/CO_AutoCorr.c: In function ‘CO_AutoCorr’:
    src/C/CO_AutoCorr.c:74:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for (int i = 0; i < size; i++) {
       ^
    src/C/CO_AutoCorr.c:84:14: error: redefinition of ‘i’
       for (int i = size; i < nFFT; i++) {
           ^
    src/C/CO_AutoCorr.c:74:14: note: previous definition of ‘i’ was here
       for (int i = 0; i < size; i++) {
           ^
    src/C/CO_AutoCorr.c:84:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for (int i = size; i < nFFT; i++) {
       ^
    src/C/CO_AutoCorr.c:100:14: error: redefinition of ‘i’
       for (int i = 0; i < nFFT; i++) {
           ^
    src/C/CO_AutoCorr.c:84:14: note: previous definition of ‘i’ was here
       for (int i = size; i < nFFT; i++) {
           ^
    src/C/CO_AutoCorr.c:100:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for (int i = 0; i < nFFT; i++) {
       ^
    src/C/CO_AutoCorr.c:106:14: error: redefinition of ‘i’
       for (int i = 0; i < tau_size; i++) {
           ^
    src/C/CO_AutoCorr.c:100:14: note: previous definition of ‘i’ was here
       for (int i = 0; i < nFFT; i++) {
           ^
    src/C/CO_AutoCorr.c:106:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for (int i = 0; i < tau_size; i++) {
       ^
    src/C/CO_AutoCorr.c: In function ‘co_autocorrs’:
    src/C/CO_AutoCorr.c:122:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for (int i = 0; i < size; i++) {
       ^
    src/C/CO_AutoCorr.c:131:14: error: redefinition of ‘i’
       for (int i = size; i < nFFT; i++) {
           ^
    src/C/CO_AutoCorr.c:122:14: note: previous definition of ‘i’ was here
       for (int i = 0; i < size; i++) {
           ^
    src/C/CO_AutoCorr.c:131:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for (int i = size; i < nFFT; i++) {
       ^
    src/C/CO_AutoCorr.c:147:14: error: redefinition of ‘i’
       for (int i = 0; i < nFFT; i++) {
           ^
    src/C/CO_AutoCorr.c:131:14: note: previous definition of ‘i’ was here
       for (int i = size; i < nFFT; i++) {
           ^
    src/C/CO_AutoCorr.c:147:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for (int i = 0; i < nFFT; i++) {
       ^
    src/C/CO_AutoCorr.c:152:14: error: redefinition of ‘i’
       for (int i = 0; i < nFFT; i++) {
           ^
    src/C/CO_AutoCorr.c:147:14: note: previous definition of ‘i’ was here
       for (int i = 0; i < nFFT; i++) {
           ^
    src/C/CO_AutoCorr.c:152:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for (int i = 0; i < nFFT; i++) {
       ^
    src/C/CO_AutoCorr.c: In function ‘CO_f1ecac’:
    src/C/CO_AutoCorr.c:183:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < size; i++)
       ^
    src/C/CO_AutoCorr.c:198:13: error: redefinition of ‘i’
       for(int i = 0; i < size-2; i++){
           ^
    src/C/CO_AutoCorr.c:183:13: note: previous definition of ‘i’ was here
       for(int i = 0; i < size; i++)
           ^
    src/C/CO_AutoCorr.c:198:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < size-2; i++){
       ^
    src/C/CO_AutoCorr.c: In function ‘CO_Embed2_Basic_tau_incircle’:
    src/C/CO_AutoCorr.c:230:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < size-tauIntern; i++)
       ^
    src/C/CO_AutoCorr.c: In function ‘CO_Embed2_Dist_tau_d_expfit_meandiff’:
    src/C/CO_AutoCorr.c:245:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < size; i++)
       ^
    src/C/CO_AutoCorr.c:263:13: error: redefinition of ‘i’
       for(int i = 0; i < size-tau-1; i++)
           ^
    src/C/CO_AutoCorr.c:245:13: note: previous definition of ‘i’ was here
       for(int i = 0; i < size; i++)
           ^
    src/C/CO_AutoCorr.c:263:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < size-tau-1; i++)
       ^
    src/C/CO_AutoCorr.c:304:13: error: redefinition of ‘i’
       for(int i = 0; i < nBins; i++){
           ^
    src/C/CO_AutoCorr.c:263:13: note: previous definition of ‘i’ was here
       for(int i = 0; i < size-tau-1; i++)
           ^
    src/C/CO_AutoCorr.c:304:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < nBins; i++){
       ^
    src/C/CO_AutoCorr.c:326:13: error: redefinition of ‘i’
       for(int i = 0; i < nBins; i++){
           ^
    src/C/CO_AutoCorr.c:304:13: note: previous definition of ‘i’ was here
       for(int i = 0; i < nBins; i++){
           ^
    src/C/CO_AutoCorr.c:326:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < nBins; i++){
       ^
    src/C/CO_AutoCorr.c: In function ‘CO_FirstMin_ac’:
    src/C/CO_AutoCorr.c:355:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < size; i++)
       ^
    src/C/CO_AutoCorr.c:366:13: error: redefinition of ‘i’
       for(int i = 1; i < size-1; i++)
           ^
    src/C/CO_AutoCorr.c:355:13: note: previous definition of ‘i’ was here
       for(int i = 0; i < size; i++)
           ^
    src/C/CO_AutoCorr.c:366:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 1; i < size-1; i++)
       ^
    src/C/CO_AutoCorr.c: In function ‘CO_trev_1_num’:
    src/C/CO_AutoCorr.c:385:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < size; i++)
       ^
    src/C/CO_AutoCorr.c:397:13: error: redefinition of ‘i’
       for(int i = 0; i < size-tau; i++)
           ^
    src/C/CO_AutoCorr.c:385:13: note: previous definition of ‘i’ was here
       for(int i = 0; i < size; i++)
           ^
    src/C/CO_AutoCorr.c:397:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < size-tau; i++)
       ^
    src/C/CO_AutoCorr.c: In function ‘CO_HistogramAMI_even_2_5’:
    src/C/CO_AutoCorr.c:418:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < size; i++)
       ^
    src/C/CO_AutoCorr.c:432:13: error: redefinition of ‘i’
       for(int i = 0; i < size-tau; i++){
           ^
    src/C/CO_AutoCorr.c:418:13: note: previous definition of ‘i’ was here
       for(int i = 0; i < size; i++)
           ^
    src/C/CO_AutoCorr.c:432:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < size-tau; i++){
       ^
    src/C/CO_AutoCorr.c:444:13: error: redefinition of ‘i’
       for(int i = 0; i < numBins+1; i++){
           ^
    src/C/CO_AutoCorr.c:432:13: note: previous definition of ‘i’ was here
       for(int i = 0; i < size-tau; i++){
           ^
    src/C/CO_AutoCorr.c:444:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < numBins+1; i++){
       ^
    src/C/CO_AutoCorr.c:469:13: error: redefinition of ‘i’
       for(int i = 0; i < size-tau; i++){
           ^
    src/C/CO_AutoCorr.c:444:13: note: previous definition of ‘i’ was here
       for(int i = 0; i < numBins+1; i++){
           ^
    src/C/CO_AutoCorr.c:469:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < size-tau; i++){
       ^
    src/C/CO_AutoCorr.c:474:13: error: redefinition of ‘i’
       for(int i = 0; i < (numBins+1)*(numBins+1); i++){
           ^

src/C/CO_AutoCorr.c:469:13: note: previous definition of ‘i’ was here
       for(int i = 0; i < size-tau; i++){
           ^
    src/C/CO_AutoCorr.c:474:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < (numBins+1)*(numBins+1); i++){
       ^
    src/C/CO_AutoCorr.c:493:13: error: redefinition of ‘i’
       for(int i = 0; i < numBins; i++){
           ^
    src/C/CO_AutoCorr.c:474:13: note: previous definition of ‘i’ was here
       for(int i = 0; i < (numBins+1)*(numBins+1); i++){
           ^
    src/C/CO_AutoCorr.c:493:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < numBins; i++){
       ^
    src/C/CO_AutoCorr.c:494:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
         for(int j = 0; j < numBins; j++){
         ^
    src/C/CO_AutoCorr.c:504:13: error: redefinition of ‘i’
       for(int i = 0; i < numBins; i++){
           ^
    src/C/CO_AutoCorr.c:493:13: note: previous definition of ‘i’ was here
       for(int i = 0; i < numBins; i++){
           ^
    src/C/CO_AutoCorr.c:504:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < numBins; i++){
       ^
    src/C/CO_AutoCorr.c:505:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
         for(int j = 0; j < numBins; j++){
         ^
    src/C/CO_AutoCorr.c:515:13: error: redefinition of ‘i’
       for(int i = 0; i < numBins; i++){
           ^
    src/C/CO_AutoCorr.c:504:13: note: previous definition of ‘i’ was here
       for(int i = 0; i < numBins; i++){
           ^
    src/C/CO_AutoCorr.c:515:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < numBins; i++){
       ^
    src/C/CO_AutoCorr.c:516:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
         for(int j = 0; j < numBins; j++){
         ^
    src/C/CO_AutoCorr.c:532:13: error: redefinition of ‘i’
       for(int i = 0; i < numBins; i++){
           ^
    src/C/CO_AutoCorr.c:515:13: note: previous definition of ‘i’ was here
       for(int i = 0; i < numBins; i++){
           ^
    src/C/CO_AutoCorr.c:532:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
       for(int i = 0; i < numBins; i++){
       ^
    src/C/CO_AutoCorr.c:533:9: error: ‘for’ loop initial declarations are only allowed in C99 mode
         for(int j = 0; j < numBins; j++){
         ^
    error: command '/usr/bin/gcc' failed with exit code 1
    [end of output]
 note: This error originates from a subprocess, and is likely not a problem with pip.
 ERROR: Failed building wheel for pycatch22
Failed to build pycatch22
ERROR: Could not build wheels for pycatch22, which is required to install pyproject.toml-based projects

Failed building wheel for pycatch22

On Python 3.9.1, Mac OS Monterey, received the following error upon installing using PyPi:
pip install pycatch22==0.4.1

src/C/CO_AutoCorr.c:18:10: fatal error: 'stats.h' file not found
#include "stats.h"
         ^~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit code 1
[end of output]

Catch24 bool uses 'is' operator

To activate Catch24, the parameter catch24 must be the Python bool constant True.

I have run into issues with using other boolean types, e.g. numpy booleans numpy.bool_, where despite the catch24 parameter being true, a Catch22 rather than Catch24 vector is returned.

As the code currently uses if catch24 is True: (line 33 of src/pycatch22/catch22.py), the parameter must be a Python bool constant, see this StackOverflow post.

Swapping if catch24 is True: to if catch24: will fix this problem.

`pycatch22 0.4.4` installation fails on windows systems

Today's release 0.4.4 seems to break the ability to install pycatch22 on windows systems, see here:

sktime/sktime#5435

Bug report from sktime:


We are experiencing failures from pycatch22 install, likely related to the 0.4.4 release on Oct 16 (today).

This happens on all windows systems, but not mac and unix, at attempted install of pycatch22 0.4.4. Error log:

Collecting pycatch22 (from sktime==0.24.0)
  Downloading pycatch22-0.4.4.tar.gz (49 kB)
     ---------------------------------------- 49.9/49.9 kB ? eta 0:00:00
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Getting requirements to build wheel: started
  Getting requirements to build wheel: finished with status 'error'
  error: subprocess-exited-with-error
  
  Getting requirements to build wheel did not run successfully.
  exit code: 1
  
  [15 lines of output]
  Traceback (most recent call last):
    File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
      main()
    File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "C:\hostedtoolcache\windows\Python\3.8.10\x64\lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 118, in get_requires_for_build_wheel
      return hook(config_settings)
    File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-2prn_dvq\overlay\Lib\site-packages\setuptools\build_meta.py", line 355, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-2prn_dvq\overlay\Lib\site-packages\setuptools\build_meta.py", line 325, in _get_build_requires
      self.run_setup()
    File "C:\Users\runneradmin\AppData\Local\Temp\pip-build-env-2prn_dvq\overlay\Lib\site-packages\setuptools\build_meta.py", line 341, in run_setup
      exec(code, locals())
    File "<string>", line 11, in <module>
  AttributeError: 'NoneType' object has no attribute 'split'
  [end of output]

Please clarify GPL version

The files in the repository lack comment headers with license and copyright statements, and there doesn’t appear to be any overall license and copyright statement for the repository. The trove classifier for the Python bindings is License :: OSI Approved :: GNU General Public License v3 (GPLv3), which is ambiguous.

Could you please clarify whether the contents of this repository are intended to be GPL-3.0-or-later or GPL-3.0-only?

Related: DynamicsAndNeuralSystems/catch22#32

The script tests/testFeatures.py is not usable

The script tests/testFeatures.py doesn’t seem to be a usable test. It refers to a data file test.txt that is not present.

I can fix this by copying https://github.com/DynamicsAndNeuralSystems/catch22/blob/3d4dd5f65dee1cefa18555f2a372cf93b5d8bc8d/testData/test.txt into tests/ in this repository, and by something like

diff --git a/tests/testFeatures.py b/tests/testFeatures.py
index 62eb31c..18f1c01 100644
--- a/tests/testFeatures.py
+++ b/tests/testFeatures.py
@@ -19,6 +19,7 @@ def giveMeFeatureVector(tsData):
 
 #-------------------------------------------------------------------------------
 
-x = pd.read_csv('test.txt',header=None);
+testData = os.path.join("tests", "test.txt")
+x = pd.read_csv(testData,header=None);
 tsData = x[0].values.tolist()
 fV = giveMeFeatureVector(tsData)

so that the script expects to be run from the repository’s base directory just as tests/testing.py does.

However, once I do all of the above, the test script is still broken:

$ python ./tests/testFeatures.py 
Traceback (most recent call last):
  File "/home/ben/src/forks/pycatch22/./tests/testFeatures.py", line 25, in <module>
    fV = giveMeFeatureVector(tsData)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/ben/src/forks/pycatch22/./tests/testFeatures.py", line 16, in giveMeFeatureVector
    featureVector.append(featureFun(tsData))
                         ^^^^^^^^^^^^^^^^^^
TypeError: 'module' object is not callable

Please consider either removing this test or adjusting it so that it does something useful.

Cannot install pycatch in Databricks environment

Hi devs,

Been trying to install pycatch in the Databricks (in a notebook to be specific). I followed the advice by @benfulcher in a different issue and updated the setup tools. However, it didn't work.

!pip install setuptools --upgrade
!pip install pycatch22==0.4.2

This is the logs I get:

Requirement already satisfied: setuptools in /local_disk0/.ephemeral_nfs/envs/pythonEnv-1aae44a8-c44b-4bd4-9191-4430a766e896/lib/python3.9/site-packages (65.6.3) WARNING: You are using pip version 21.2.4; however, version 22.3.1 is available. You should consider upgrading via the '/local_disk0/.ephemeral_nfs/envs/pythonEnv-1aae44a8-c44b-4bd4-9191-4430a766e896/bin/python -m pip install --upgrade pip' command. Collecting pycatch22==0.4.2 Using cached pycatch22-0.4.2.tar.gz (49 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing wheel metadata ... done WARNING: Generating metadata for package pycatch22 produced metadata for project name unknown. Fix your #egg=pycatch22 fragments. WARNING: Discarding https://files.pythonhosted.org/packages/f4/7f/e0083a771ecefe10a0fd7b37d9be15adceec16648ed1a81625ade312d23c/pycatch22-0.4.2.tar.gz#sha256=162bd9774a326993c564120221e779fb6e578139e9fb73ed6066a3137e61c3ad (from https://pypi.org/simple/pycatch22/). Requested unknown from https://files.pythonhosted.org/packages/f4/7f/e0083a771ecefe10a0fd7b37d9be15adceec16648ed1a81625ade312d23c/pycatch22-0.4.2.tar.gz#sha256=162bd9774a326993c564120221e779fb6e578139e9fb73ed6066a3137e61c3ad has inconsistent name: filename has 'pycatch22', but metadata has 'UNKNOWN' ERROR: Could not find a version that satisfies the requirement pycatch22==0.4.2 (from versions: 0.2.0, 0.4.0, 0.4.1, 0.4.2) ERROR: No matching distribution found for pycatch22==0.4.2 WARNING: You are using pip version 21.2.4; however, version 22.3.1 is available. You should consider upgrading via the '/local_disk0/.ephemeral_nfs/envs/pythonEnv-1aae44a8-c44b-4bd4-9191-4430a766e896/bin/python -m pip install --upgrade pip' command.

Please let me know if anyone has been able to solve this issue. Cheers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.