Commit d0b2f9b22171b542596f5369365ce8cb2b60e947
1 parent
e7a9aae8bb
Exists in
master
fix issue: adding writing option for files sub2utt and utt2sub
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
volia/masseffect.py
... | ... | @@ -99,7 +99,7 @@ |
99 | 99 | data_sub = core.data.read_id_values(subfile) |
100 | 100 | keys_sub = [key for key in data_sub] |
101 | 101 | |
102 | - with open(outfile) as of: | |
102 | + with open(outfile, "w") as of: | |
103 | 103 | for key in keys: |
104 | 104 | subkeys = [subkey for subkey in keys_sub if subkey.startswith(key)] |
105 | 105 | subkeys_str = " ".join(subkeys) |
... | ... | @@ -113,7 +113,7 @@ |
113 | 113 | data_sub = core.data.read_id_values(subfile) |
114 | 114 | keys_sub = [key for key in data_sub] |
115 | 115 | |
116 | - with open(outfile) as of: | |
116 | + with open(outfile, "w") as of: | |
117 | 117 | for key in keys: |
118 | 118 | subkeys = [subkey for subkey in keys_sub if subkey.startswith(key)] |
119 | 119 | for subkey in subkeys: |