<commit_before>from plotting_module import *
from interactive_plotting import *
import tkinter
from tkinter import filedialog

"""
filename = "/home/solli/Documents/Prosjektoppgave/Data_files/depth_profile/151118h.dp_rpc_asc"
test = plotter(filename)
test.plot_machine()


filename_2 = "/home/solli/Documents/Prosjektoppgave/Data_files/mass_spectrometry/ITO_mass-spectra_A.ms_rpc_asc"
test_2 = plotter(filevname_2)
test_2.plot_machine()
"""


def file_location(self, filename):
	root = tkinter.Tk()
	files = filedialog.askopenfilenames(parent=root,title='Choose files')
	files = root.tk.splitlist(files)
	return files


filename = file_location()

"""["/home/solli/Documents/Prosjektoppgave/Data_files/depth_profile/160112b.dp_rpc_asc"
			,"/home/solli/Documents/Prosjektoppgave/Data_files/depth_profile/160112d.dp_rpc_asc"
			,"/home/solli/Documents/Prosjektoppgave/Data_files/depth_profile/160112f.dp_rpc_asc"
			,"/home/solli/Documents/Prosjektoppgave/Data_files/depth_profile/160112h.dp_rpc_asc"
			,"/home/solli/Documents/Prosjektoppgave/Data_files/depth_profile/time_x_axis.dp_rpc_asc"]"""
test = interactive_plotting(filename)
test.data_generation()
test.plotting()
<commit_msg>0.96 gui file chooser<commit_after>from plotting_module import *
from interactive_plotting import *
import sys
import tkinter
from tkinter import filedialog

"""
filename = "/home/solli/Documents/Prosjektoppgave/data_files/depth_profile/151118h.dp_rpc_asc"
test = plotter(filename)
test.plot_machine()


filename_2 = "/home/solli/Documents/Prosjektoppgave/Data_files/mass_spectrometry/ITO_mass-spectra_A.ms_rpc_asc"
test_2 = plotter(filevname_2)
test_2.plot_machine()
"""

def file_location():
	root = tkinter.Tk()
	files = filedialog.askopenfilenames(parent=root,title='Choose files')
	files = root.tk.splitlist(files)
	return files



try: 
	if sys.argv[1] == "f":
		filename = ["/home/solli/Documents/Prosjektoppgave/data_files/depth_profile/160112b.dp_rpc_asc"
			,"/home/solli/Documents/Prosjektoppgave/data_files/depth_profile/160112d.dp_rpc_asc"
			,"/home/solli/Documents/Prosjektoppgave/data_files/depth_profile/160112f.dp_rpc_asc"]
except IndexError:
	filename = file_location()


test = interactive_plotting(filename)
test.data_generation()
test.plotting()

{'fraction_non_alphanumeric': 0.118508655126498, 'fraction_numerical': 0.02929427430093209, 'mean_word_length': 6.719178082191781, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1302917', 'n_tokens_mistral': 920, 'n_tokens_neox': 841, 'n_words': 99}