handling writers for when we dont need outputs (no --all for example)
This commit is contained in:
parent
5929004c44
commit
89f35f5259
3
wani.py
3
wani.py
|
@ -1186,6 +1186,9 @@ class Writer:
|
||||||
file_handler.flush()
|
file_handler.flush()
|
||||||
|
|
||||||
def write_out(self, structures, colocation_ids):
|
def write_out(self, structures, colocation_ids):
|
||||||
|
if self.output_file is None:
|
||||||
|
return
|
||||||
|
|
||||||
def fp_close(fp_):
|
def fp_close(fp_):
|
||||||
if fp_ != sys.stdout:
|
if fp_ != sys.stdout:
|
||||||
fp_.close()
|
fp_.close()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user