Skip to content

Running a test notebook #191

@say-yas

Description

@say-yas

I tried to run the notebook in https://github.com/TeaspoonTDA/teaspoon/blob/master/test_nb.ipynb
However, I got the following errors

  ---------------------------------------------------------------------------
  AttributeError                            Traceback (most recent call last)
  Cell In[1], [line 7](vscode-notebook-cell:?execution_count=1&line=7)
        5 system = 'gaussian_noise'
        6 dynamic_state = 'periodic'
  ----> [7](vscode-notebook-cell:?execution_count=1&line=7) t, ts = DSL.DynamicSystems(system)
        9 TextSize = 15
       10 plt.figure(figsize = (12,4))
  
  File ~/anaconda3/envs/TDA/lib/python3.14/site-packages/teaspoon/MakeData/DynSysLib/DynSysLib.py:118, in DynamicSystems(system, dynamic_state, L, fs, SampleSize, parameters, InitialConditions, UserGuide)
      116     if system in list_of_noise_models:
      117         from teaspoon.MakeData.DynSysLib import noise_models
  --> [118](https://file+.vscode-resource.vscode-cdn.net/Users/shararehsayyad/Documents/Projects/topological_data_analysis/Computational_topology/mapper_persistent_homology/~/anaconda3/envs/TDA/lib/python3.14/site-packages/teaspoon/MakeData/DynSysLib/DynSysLib.py:118)         t, ts = noise_models.noise_models(system, dynamic_state, L, fs,
      119                                           SampleSize, parameters, InitialConditions)
      121 # In[ ]: MEDICAL
      122     if system in list_of_medical_data:
  
  AttributeError: module 'teaspoon.MakeData.DynSysLib.noise_models' has no attribute 'noise_models'

Currently, I have instelled teaspoon using pip.

Do you have any suggestions to resolve this issue?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions