-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Hello, thank you for sharing this great project!
When I run the code, I repeatedly encounter a syntax error related to the line where I set num_vertex 3. The error message suggests a problem with a missing or extra comma. I have tried both adding and removing the comma, but the issue still persists.
Here is the exact error message:
reached 1
torch sparse
imported torch sparse
Traceback (most recent call last):
File "/home/dell/桌面/wss/APAP/outputs/apap-2d/test_script.py", line 25, in
from src.geometry.poisson_system import PoissonSystem
File "/home/dell/桌面/wss/APAP/src/geometry/poisson_system.py", line 28, in
from .PoissonSystem import SPLUSolveLayer, SparseMat
File "/home/dell/桌面/wss/APAP/src/geometry/PoissonSystem.py", line 147, in
class PoissonSystemMatrices:
File "/home/dell/桌面/wss/APAP/src/geometry/PoissonSystem.py", line 156, in PoissonSystemMatrices
def init(
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/jaxtyping/_decorator.py", line 439, in jaxtyped
full_fn = _apply_typechecker(typechecker, full_fn)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/jaxtyping/_decorator.py", line 73, in _apply_typechecker
return typechecker(fn)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/typeguard/_decorators.py", line 230, in typechecked
retval = instrument(target)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/typeguard/_decorators.py", line 73, in instrument
instrumentor.visit(module_ast)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/ast.py", line 409, in visit
return visitor(node)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/typeguard/_transformer.py", line 599, in visit_Module
self.generic_visit(node)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/typeguard/_transformer.py", line 499, in generic_visit
node = super().generic_visit(node)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/ast.py", line 485, in generic_visit
value = self.visit(value)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/ast.py", line 409, in visit
return visitor(node)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/typeguard/_transformer.py", line 644, in visit_ClassDef
self.generic_visit(node)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/typeguard/_transformer.py", line 499, in generic_visit
node = super().generic_visit(node)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/ast.py", line 485, in generic_visit
value = self.visit(value)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/ast.py", line 409, in visit
return visitor(node)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/typeguard/_transformer.py", line 722, in visit_FunctionDef
annotation = self._convert_annotation(deepcopy(arg.annotation))
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/typeguard/_transformer.py", line 583, in _convert_annotation
new_annotation = cast(expr, AnnotationTransformer(self).visit(annotation))
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/typeguard/_transformer.py", line 355, in visit
new_node = super().visit(node)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/ast.py", line 409, in visit
return visitor(node)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/typeguard/_transformer.py", line 422, in visit_Subscript
[self.visit(item) for item in node.slice.elts],
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/typeguard/_transformer.py", line 422, in
[self.visit(item) for item in node.slice.elts],
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/typeguard/_transformer.py", line 355, in visit
new_node = super().visit(node)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/ast.py", line 409, in visit
return visitor(node)
File "/home/dell/miniconda3/envs/apap/lib/python3.9/site-packages/typeguard/_transformer.py", line 475, in visit_Constant
expression = ast.parse(node.value, mode="eval")
File "/home/dell/miniconda3/envs/apap/lib/python3.9/ast.py", line 50, in parse
return compile(source, filename, mode, flags,
File "", line 1
num_vertex 3
^
SyntaxError: unexpected EOF while parsing
Could you please let me know if this is a bug in the code, or if I am making a mistake in how I should define num_vertex?
Thank you very much for your help!