@@ -80,7 +80,7 @@ def quit_cb():
8080 studio_app .quit ()
8181
8282class PhysiCellXMLCreator (QWidget ):
83- def __init__ (self , config_file , studio_flag , skip_validate_flag , rules_flag , model3D_flag , tensor_flag , exec_file , nanohub_flag , is_movable_flag , pytest_flag , bioinf_import_flag , bioinf_import_test_flag , bioinf_import_test_spatial_flag , parent = None ):
83+ def __init__ (self , config_file , studio_flag , skip_validate_flag , rules_flag , model3D_flag , tensor_flag , exec_file , nanohub_flag , is_movable_flag , pytest_flag , biwt_flag , parent = None ):
8484 super (PhysiCellXMLCreator , self ).__init__ (parent )
8585 if model3D_flag :
8686 try :
@@ -106,7 +106,7 @@ def __init__(self, config_file, studio_flag, skip_validate_flag, rules_flag, mod
106106 self .nanohub_flag = nanohub_flag
107107 self .ecm_flag = False
108108 self .pytest_flag = pytest_flag
109- self .bioinf_import_flag = bioinf_import_flag
109+ self .biwt_flag = biwt_flag
110110 print ("PhysiCellXMLCreator(): self.nanohub_flag= " ,self .nanohub_flag )
111111
112112 self .rules_tab_index = None
@@ -326,7 +326,7 @@ def __init__(self, config_file, studio_flag, skip_validate_flag, rules_flag, mod
326326
327327 if self .studio_flag :
328328 logging .debug (f'studio.py: creating ICs, Run, and Plot tabs' )
329- self .ics_tab = ICs (self .config_tab , self .celldef_tab , self .bioinf_import_flag , bioinf_import_test_flag , bioinf_import_test_spatial_flag )
329+ self .ics_tab = ICs (self .config_tab , self .celldef_tab , self .biwt_flag )
330330 self .ics_tab .fill_celltype_combobox ()
331331 self .ics_tab .reset_info ()
332332
@@ -1362,9 +1362,7 @@ def main():
13621362 nanohub_flag = False
13631363 is_movable_flag = False
13641364 pytest_flag = False
1365- bioinf_import_flag = False
1366- bioinf_import_test_flag = False
1367- bioinf_import_test_spatial_flag = False
1365+ biwt_flag = False
13681366 try :
13691367 parser = argparse .ArgumentParser (description = 'PhysiCell Studio.' )
13701368
@@ -1378,9 +1376,7 @@ def main():
13781376 parser .add_argument ("-c " , "--config" , type = str , help = "config file (.xml)" )
13791377 parser .add_argument ("-e " , "--exec" , type = str , help = "executable model" )
13801378 # parser.add_argument("-p ", "--pconfig", help="use config/PhysiCell_settings.xml", action="store_true")
1381- parser .add_argument ("--bioinf_import" , help = "display bioinformatics import tab on ICs tab" , action = "store_true" )
1382- parser .add_argument ("--bioinf_import_test" , help = "immediately start loading anndata w/o spatial" , action = "store_true" )
1383- parser .add_argument ("--bioinf_import_test_spatial" , help = "immediately start loading spatial anndata" , action = "store_true" )
1379+ parser .add_argument ("--bioinf_import" ,"--biwt" , dest = "biwt_flag" , help = "display bioinformatics walkthrough tab on ICs tab" , action = "store_true" )
13841380 if platform .system () == "Windows" :
13851381 exec_file = 'project.exe'
13861382 else :
@@ -1453,12 +1449,8 @@ def main():
14531449 # else:
14541450 # print("config_file is NOT valid: ", config_file)
14551451 # sys.exit()
1456- if args .bioinf_import :
1457- bioinf_import_flag = True
1458- if args .bioinf_import_test :
1459- bioinf_import_test_flag = True
1460- if args .bioinf_import_test_spatial :
1461- bioinf_import_test_spatial_flag = True
1452+ if args .biwt_flag :
1453+ biwt_flag = True
14621454 except :
14631455 # print("Error parsing command line args.")
14641456 sys .exit (- 1 )
@@ -1539,7 +1531,8 @@ def main():
15391531 # print("Warning: Rules module not found.\n")
15401532
15411533 # print("calling PhysiCellXMLCreator with rules_flag= ",rules_flag)
1542- ex = PhysiCellXMLCreator (config_file , studio_flag , skip_validate_flag , rules_flag , model3D_flag , tensor_flag , exec_file , nanohub_flag , is_movable_flag , pytest_flag , bioinf_import_flag , bioinf_import_test_flag , bioinf_import_test_spatial_flag )
1534+ ex = PhysiCellXMLCreator (config_file , studio_flag , skip_validate_flag , rules_flag , model3D_flag , tensor_flag , exec_file , nanohub_flag , is_movable_flag , pytest_flag , biwt_flag
1535+ )
15431536 print ("size=" ,ex .size ()) # = PyQt5.QtCore.QSize(1100, 770)
15441537 # ex.setFixedWidth(1101) # = PyQt5.QtCore.QSize(1100, 770)
15451538 # print("width=",ex.size())
0 commit comments