Exemple #1
0
    def __init__(self):
        wx.Dialog.__init__(self, None, title='About DVH Analytics')

        scrolled_window = wx.ScrolledWindow(self, wx.ID_ANY)

        with open(LICENSE_PATH, 'r', encoding="utf8") as license_file:
            license_text = ''.join([line for line in license_file])

        license_text = "DVH Analytics v%s\ndvhanalytics.com\n\n%s" % (DefaultOptions().VERSION, license_text)

        sizer_wrapper = wx.BoxSizer(wx.VERTICAL)
        sizer_text = wx.BoxSizer(wx.VERTICAL)

        scrolled_window.SetScrollRate(20, 20)

        license_text = wx.StaticText(scrolled_window, wx.ID_ANY, license_text)
        sizer_text.Add(license_text, 0, wx.EXPAND | wx.ALL, 5)
        scrolled_window.SetSizer(sizer_text)
        sizer_wrapper.Add(scrolled_window, 1, wx.EXPAND, 0)

        self.SetBackgroundColour(wx.WHITE)

        self.SetSizer(sizer_wrapper)
        self.SetSize((750, 900))
        self.Center()

        self.ShowModal()
        self.Destroy()
Exemple #2
0
 def save_data_obj(self):
     self.save_data['group_data'] = self.group_data
     self.save_data['query_filters'] = self.query_filters
     self.save_data['time_stamp'] = datetime.now()
     self.save_data['version'] = DefaultOptions().VERSION
     # data_table_categorical and data_table_numerical saved after query to ensure these data reflect
     # the rest of the saved data
     self.save_data['endpoint'] = self.endpoint.get_save_data()
     self.save_data['time_series'] = self.time_series.get_save_data()
     self.save_data['radbio'] = self.radbio.get_save_data()
     self.save_data['regression'] = self.regression.get_save_data()
     self.save_data['control_chart'] = self.control_chart.get_save_data()
Exemple #3
0
 def on_save_model(self, evt):
     data = {
         'y_variable': self.plot.y_variable,
         'regression': self.plot.reg,
         'x_variables': self.plot.x_variables,
         'regression_type': 'multi-variable-linear',
         'version': DefaultOptions().VERSION
     }
     save_data_to_file(self,
                       'Save Model',
                       data,
                       wildcard="MVR files (*.mvr)|*.mvr",
                       data_type='pickle',
                       initial_dir=MODELS_DIR)
Exemple #4
0
#    available at https://github.com/cutright/DVH-Analytics

from setuptools import setup, find_packages
from dvha.options import DefaultOptions

with open('requirements.txt', 'r') as doc:
    requires = [line.strip() for line in doc]

with open('README.md', 'r') as doc:
    long_description = doc.read()

setup(name='dvha',
      include_package_data=True,
      python_requires='>3.5',
      packages=find_packages(),
      version=DefaultOptions().VERSION,
      description=
      'Create a database of DVHs, GUI with wxPython, plots with Bokeh',
      author='Dan Cutright',
      author_email='*****@*****.**',
      url='https://github.com/cutright/DVH-Analytics-Desktop',
      download_url=
      'https://github.com/cutright/DVH-Analytics-Desktop/archive/master.zip',
      license="MIT License",
      keywords=[
          'dvh', 'radiation therapy', 'research', 'dicom', 'dicom-rt', 'bokeh',
          'analytics', 'wxpython'
      ],
      classifiers=[],
      install_requires=requires,
      entry_points={'console_scripts': ['dvha = dvha.main:start']},