2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-24 12:11:52 +00:00

Move sixel under opportunistic import

Do not require sixel
to run stats.
This commit is contained in:
Jarrod Johnson 2021-01-14 15:49:30 -05:00
parent ebf50359f0
commit f7a940227d

View File

@ -22,13 +22,17 @@ import io
import numpy as np
import os
import sixel
import subprocess
import sys
class DumbWriter(sixel.SixelWriter):
def restore_position(self, output):
return
try:
import sixel
class DumbWriter(sixel.SixelWriter):
def restore_position(self, output):
return
except ImportError:
pass
def plot(gui, output, plotdata, bins):