Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SaveMat = True. TypeError: 'Dict' object is not callable #843

Open
SteMasoli opened this issue Jan 12, 2025 · 0 comments
Open

SaveMat = True. TypeError: 'Dict' object is not callable #843

SteMasoli opened this issue Jan 12, 2025 · 0 comments
Labels

Comments

@SteMasoli
Copy link

Describe the bug
Hi.

I was checking a fairly old network script and everything still works fine except saveMat.

    sim.createSimulateAnalyze(netParams = netParams, simConfig = cfg)    
  File "/home/test/.local/lib/python3.10/site-packages/netpyne/sim/wrappers.py", line 207, in createSimulateAnalyze
    sim.analyze()
  File "/home/test/.local/lib/python3.10/site-packages/netpyne/sim/wrappers.py", line 132, in analyze
    sim.saveData()
  File "/home/test/.local/lib/python3.10/site-packages/netpyne/sim/save.py", line 231, in saveData
    toSave = deepcopy(toSave)
  File "/usr/lib/python3.10/copy.py", line 146, in deepcopy
    y = copier(x, memo)
  File "/usr/lib/python3.10/copy.py", line 231, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/lib/python3.10/copy.py", line 146, in deepcopy
    y = copier(x, memo)
  File "/usr/lib/python3.10/copy.py", line 231, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/lib/python3.10/copy.py", line 146, in deepcopy
    y = copier(x, memo)
  File "/usr/lib/python3.10/copy.py", line 231, in _deepcopy_dict
    y[deepcopy(key, memo)] = deepcopy(value, memo)
  File "/usr/lib/python3.10/copy.py", line 172, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/usr/lib/python3.10/copy.py", line 297, in _reconstruct
    value = deepcopy(value, memo)
  File "/usr/lib/python3.10/copy.py", line 172, in deepcopy
    y = _reconstruct(x, memo, *rv)
  File "/usr/lib/python3.10/copy.py", line 297, in _reconstruct
    value = deepcopy(value, memo)
  File "/usr/lib/python3.10/copy.py", line 153, in deepcopy
    y = copier(memo)
TypeError: 'Dict' object is not callable

Reproducing the bug
For the moment I do not have another way to reproduce it.
I have tested SaveMat with the HHTut network but it produces a completely different error.

Expected behavior

SaveMat should save a Matlab file like it was able many years ago.

System information

  • OS and version: Mint 21.3
  • NetPyNE version: 1.0.7
  • NEURON version: 8.2.4
  • Python version: 3.10.12
@SteMasoli SteMasoli added the bug label Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant