Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions =23.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
Defaulting to user installation because normal site-packages is not writeable
Collecting black
Downloading black-25.11.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl.metadata (85 kB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 85.2/85.2 kB 6.0 MB/s eta 0:00:00
Requirement already satisfied: click>=8.0.0 in /usr/lib/python3/dist-packages (from black) (8.1.6)
Collecting mypy-extensions>=0.4.3 (from black)
Downloading mypy_extensions-1.1.0-py3-none-any.whl.metadata (1.1 kB)
Requirement already satisfied: packaging>=22.0 in /usr/lib/python3/dist-packages (from black) (24.0)
Collecting pathspec>=0.9.0 (from black)
Downloading pathspec-0.12.1-py3-none-any.whl.metadata (21 kB)
Requirement already satisfied: platformdirs>=2 in /usr/local/lib/python3.12/dist-packages (from black) (4.5.0)
Collecting pytokens>=0.3.0 (from black)
Downloading pytokens-0.3.0-py3-none-any.whl.metadata (2.0 kB)
Downloading black-25.11.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl (1.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.7/1.7 MB 51.7 MB/s eta 0:00:00
Downloading mypy_extensions-1.1.0-py3-none-any.whl (5.0 kB)
Downloading pathspec-0.12.1-py3-none-any.whl (31 kB)
Downloading pytokens-0.3.0-py3-none-any.whl (12 kB)
Installing collected packages: pytokens, pathspec, mypy-extensions, black
Successfully installed black-25.11.0 mypy-extensions-1.1.0 pathspec-0.12.1 pytokens-0.3.0
File renamed without changes.
File renamed without changes.
8 changes: 3 additions & 5 deletions src/eigenscript/compiler/codegen/llvm_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ def _generate_relation(self, node: Relation) -> ir.Value:
raise CompilerError(
f"Function '{mangled_name}' not found",
hint=f"Make sure module '{module_name}' is imported and compiled first",
node=node
node=node,
)

# Generate the argument (same logic as user-defined functions)
Expand All @@ -1160,9 +1160,7 @@ def _generate_relation(self, node: Relation) -> ir.Value:
elif gen_arg.kind == ValueKind.EIGEN_PTR:
call_arg = gen_arg.value
else:
raise TypeError(
"Cannot pass List to function expecting EigenValue"
)
raise TypeError("Cannot pass List to function expecting EigenValue")
elif isinstance(gen_arg, ir.Value):
if gen_arg.type == self.double_type:
# JIT Promotion: Scalar -> Stack EigenValue
Expand Down Expand Up @@ -1361,7 +1359,7 @@ def _generate_member_access(self, node: MemberAccess) -> GeneratedValue:
raise CompilerError(
"Member access only supported for module.function pattern",
hint="Example: control.apply_damping",
node=node
node=node,
)

module_name = node.object.name
Expand Down