Beispiel #1
0
 def save2png(self,widget,data):
     if self.gwydata:
         print self.scale_min_current,self.scale_max_current
         save2png_text(self.c,self.param,self.channel_id)
Beispiel #2
0
import gwy
import re
import os
import sys
import matplotlib.pyplot as plt
import matplotlib as mlp
import numpy as np
sys.path.insert(1, './scripts/')
from convert_sxm2png_text import save2png_text

#ROOT = '/home/jorghyq/Project/GwyUtils/test/'
ROOT = '/home/jorghyq/AFM_data/201506/'
files = [f for f in os.listdir(ROOT) if os.path.isfile(ROOT + f) and f[-3:] == 'sxm']
#print files, len(files)

if __name__ == '__main__':
    for data in files:
        data_path = ROOT + data
        save2png_text(data_path)
        print data_path,'is done'

Beispiel #3
0
 def save_file(self,widget,data):
     #print self.dest_path, self.channel
     if self.c and self.channel:
         save2png_text(self.c,self.param,self.channel)