Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Walk a directory tree, find audita.txt metadata files for NMR experiments | |
of different peptides, parse their content and their location in the directory, | |
and record the data as a csv. | |
*** parent_folder needs to be changed to whatever parent folder you want to | |
search for NMR data.*** | |
The tree structure resembles: | |
<parent directory>/<experiment>/<peptide>/<NMR experiment>/<audita.txt> | |
and it is assumed that files are stored in this structure, in order to parse |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
import plotly.graph_objs as go | |
import numpy as np | |
from testdata import TWOSPIN_SLOW | |
entry_names = ['va', 'vb', 'ka','wa', 'wb', 'pa'] | |
entry_dict = {'va': 165, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
import sys | |
def trace_calls(frame, event, arg): | |
if event != 'call': | |
return | |
co = frame.f_code | |
func_name = co.co_name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
This notebook assumes that the .csv file has columns, with headings renamed as | |
below, for: | |
* Section (contents unedited from the Canvas default) | |
* Final exam (final exam score /100) | |
* Lab Reports (total lab report score /100) | |
* Quizzes (total quiz score /100) | |
* Total (Total score /100) | |
It assumes that, if not given a specific csv filename for conversion, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def test_child_parent_map(self): | |
va_widget_fetch = self.ui.findChild(QDoubleSpinBox, 'va') # look up a widget by objectName | |
current_widget = va_widget_fetch | |
end = False | |
while not end: | |
try: | |
print('Widget ', current_widget.objectName(), ' has parent ', | |
current_widget.parent().objectName()) | |
current_widget = current_widget.parent() | |
except: |