Closed mjkrasny closed 1 year ago
Which python version are you using? It seems that you should upgrade to Python > 3.9 to using Typing
Python 3.10.4 | packaged by conda-forge | (main, Mar 30 2022, 08:38:02) [MSC v.1916 64 bit (AMD64)] on win32
Hi, I am sorry for the inconvenient. Could you please try the following?
from typing import Union, List
# and replace every occurrence of list[] to List[]
I make a bug-fix branch on: https://github.com/liubenyuan/pyEIT/tree/bug58
I am using
import sys
import numpy
import pyeit
print("python =", sys.version)
print("numpy =", numpy.__version__)
print("pyeit =", pyeit.APP_VERSION)
where
python = 3.10.5 | packaged by conda-forge | (main, Jun 14 2022, 06:57:19) [MSC v.1929 64 bit (AMD64)]
numpy = 1.22.4
pyeit = 1.2.2
This issue might be fixed using commit #72
After update from ver. 1.1.6 to 1.2.2 I can't run example codes.
i.e.: # eit_dynamic_bp.py
returns:
[update 25/06/2022]:
I just checked all versions one by one, and it looks like version change from 1.1.9 to 1.2.0 broke something. Codes run until version 1.1.9 with no issues, starting from 1.2.0 one get error: