Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Mann committed Dec 4, 2024
1 parent 80c0903 commit 185d6ec
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mm/mixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from typing import Dict, Optional, Union

from sisyphus import *
from sisyphus.delayed_ops import DelayedBase

Path = setup_path(__package__)

Expand Down Expand Up @@ -514,8 +515,8 @@ def tasks(self):
yield Task("run", mini_task=True)

def run(self):
num_mixtures = int(self.num_mixtures.get() if isinstance(self.num_mixtures, tk.Variable) else self.num_mixtures)
num_features = int(self.num_features.get() if isinstance(self.num_features, tk.Variable) else self.num_features)
num_mixtures = int(self.num_mixtures.get() if isinstance(self.num_mixtures, DelayedBase) else self.num_mixtures)
num_features = int(self.num_features.get() if isinstance(self.num_features, DelayedBase) else self.num_features)

with open(tk.uncached_path(self.out_mixtures), "wb") as f:
f.write(b"MIXSET\0\0")
Expand Down

0 comments on commit 185d6ec

Please sign in to comment.