Exemplo n.º 1
0
hublib_flag = True
if platform.system() != 'Windows':
    try:
        #        print("Trying to import hublib.ui")
        from hublib.ui import RunCommand, Submit
    except:
        hublib_flag = False
else:
    hublib_flag = False

# join_our_list = "(Join/ask questions at https://groups.google.com/forum/#!forum/physicell-users)\n"

# create the tabs, but don't display yet
about_tab = AboutTab()
config_tab = ConfigTab()

xml_file = os.path.join('data', 'PhysiCell_settings.xml')
full_xml_filename = os.path.abspath(xml_file)

tree = ET.parse(
    full_xml_filename)  # this file cannot be overwritten; part of tool distro
xml_root = tree.getroot()
user_tab = UserTab()
svg = SVGTab()
sub = SubstrateTab()

nanoHUB_flag = False
if ('HOME' in os.environ.keys()):
    nanoHUB_flag = "home/nanohub" in os.environ['HOME']
Exemplo n.º 2
0
    hublib_flag = False

# join_our_list = "(Join/ask questions at https://groups.google.com/forum/#!forum/physicell-users)\n"

# create the tabs, but don't display yet
about_tab = AboutTab()
# config_tab = ConfigTab()

xml_file = os.path.join('data', 'PhysiCell_settings.xml')
full_xml_filename = os.path.abspath(xml_file)

tree = ET.parse(
    full_xml_filename)  # this file cannot be overwritten; part of tool distro
xml_root = tree.getroot()

config_tab = ConfigTab(xml_root)
microenv_tab = MicroenvTab()
user_tab = UserTab()

if xml_root.find('.//cell_definitions'):
    cell_types_tab = CellTypesTab()
    cell_types_tab.display_cell_type_default()

# svg = SVGTab()
sub = SubstrateTab()
# animate_tab = AnimateTab()

nanoHUB_flag = False
if ('HOME' in os.environ.keys()):
    nanoHUB_flag = "home/nanohub" in os.environ['HOME']