HagesLab / OneLayer

One-layer transient PL simulations, but in runnable application form
GNU General Public License v3.0
0 stars 0 forks source link

add command line argument module #36

Closed eistrup closed 2 years ago

eistrup commented 2 years ago

When developing it is sometimes nice to skip user steps. I noticed I was always skipping the selection of module (e.g. MAPI_Rubrene_DBP)

Thought about a way to skip that with an easily repeatable command line argument "module": python main.py --module="MAPI-Rubrene/DBP" Where the options are: "Standard One-Layer" "Nanowire" "MAPI-Rubrene/DBP" EDIT: changed the options from 0, 1, 2 to the original titles given to the modules. A little more work on the CLI command setup, but more elegant code and less prone to errors.

Would have extended with an argument "--tab" for choosing the default notebook Tab: 0 = Inputs 1 = Simulate 2 = Analyze but I dont know yet how to manually trigger the change to the chosen tab. It would be somewhere here in the code: image

cfai2304 commented 2 years ago

Notebook has a select() method which accepts a target tab_ID - which should be zero for the first tab, 1 for the second tab, etc

cfai2304 commented 2 years ago

Tab ID shortcut is finished