Skip to content

Commit

Permalink
fix(matrix): env_file bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Taoning Wang committed Dec 4, 2023
1 parent 2a1de3c commit b4231c9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frads/matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ def generate(
env_file = os.path.join(tmpdir, "scene")
with open(env_file, "wb") as f:
f.write(b" ".join(s.bytes for s in self.surfaces))
env_file = [env_file]
if isinstance(self.sender, SurfaceSender):
params.append("-ffd")
surface_file = os.path.join(tmpdir, "surface")
Expand All @@ -402,7 +403,7 @@ def generate(
rays=rays,
params=params,
octree=self.octree,
scene=[env_file],
scene=env_file,
)
if not to_file:
_ncols = sum(self.ncols) if isinstance(self.ncols, list) else self.ncols
Expand Down

0 comments on commit b4231c9

Please sign in to comment.