Differences between revisions 45 and 46
Revision 45 as of 2020-08-21 17:32:10
Size: 4836
Comment:
Revision 46 as of 2020-08-21 17:35:17
Size: 4898
Comment:
Deletions are marked like this. Additions are marked like this.
Line 86: Line 86:
 * Yuzurihara implemented the feature to output the plot data and the kat file.
Line 92: Line 93:
  * [almost DONE] output data
  * [DONE] output kat file
Line 95: Line 94:
  * [DONE] make picture small
Line 99: Line 97:
  * added all nodes to GUI   * added all nodes to GUI (on GUI, we use REFL/AS. But, in the source we use just n1 / n2 /....)

Log of Kamioka Activity during 2020/08/17 ~ 27

Participants

  • Koyama
  • Hirose
  • Yuzurihara
  • Kokeyama

Perpose

  • If you are unfamiliar with the simulation operations, there is a possibility that errors may occur in the script description and so on.
  • By creating a GUI, such errors can be prevented and the reliability of the simulation results can be increased.

Log (trial to use `eel`)

1. Installation of eel

note that:

  • We installed several tools to run simulations using Finesse.
  • We initially considered using eel, but found it difficult to create gui using eel and finesse at the same time, so we decided to use pysimplegui instead of eel.
  • This eliminates the need to install eel (and chromium).
  • PySimpleGUI is a module for python that creates gui.
  • eel is a Python module used to create a GUI.
  • I didn't found any instructions on how to install eel without using pip.
  • Therefore, we use pip to install eel in conda's virtual environment.

Activate the conda virtual environment.

% conda activate XXXXX

And type the following command

% pip install eel

To use eel, you need to install a specific browser like "chromium".

  • How to install chromium

You can install chromium by typing the following command.

% sudo apt install -y chromium

2. Learning HTML and javascript

  • HTML and javascript are used to write scripts to create the GUI in eel

3. Learning Python

  • Python is used to run simulations using "finesse2
  • Creation of GUI In "finesse2", we use character strings which describe the simulation settings.
  • Create a selection box (GUI) and load the settings you entered into the box by "finesse2" and execute it.

4. Creating a simple GUI with python and HTML.

  • An error occurs when sending the input value to Finesse, so we are looking for an improvement.
  • We gave up to use eel.

Log (trial to use `PySimpleGUI`)

  • how we installed package PySimpleGUI?
  • what is the name of virtual environment on control workstation?
    • MIFsim37
    • Now there are many kinds of environments on control workstation. Before leaving, we should delete unnecessary virtual environment.
    • Yuzurihara likes the name of 'mifsim37'
  • you can choose which DoF to run.
  • You can now choose where to put the PD.
  • You can now choose the laser power.
  • overplot ga mondai.We can't split plots.
  • in jupyter-notebook, two plots are displayed separately. .py dato gamenn kuroi
    • (Yuzurihara) one of the solution is to use 'matplotlib' and summarize all the result on one figure. If so, we don't need second plot.
    • Koyama-san solved this by using matplotlib.
  • pd1 ga hituyoukadouka ("Transfer function" uses "pd2". need "pd1" for "diff"?)
    • Based on lecture by Kokeyama-san, Koyama-san implemented.
  • Yuzurihara implemented the feature to output the plot data and the kat file.

Current task (Once task was solved, move to Log.)

  • make the plot display large
    • Figure size changed large. But, the label and number on axis are very small.
  • TODO : measure the computational time
  • feature to be requested
    • select option overplot/not overplot
    • add new configuration f interferometer (MI/PRFPMI/DRFPMI)
    • prepare manual
    • read external data and overplot
    • added all nodes to GUI (on GUI, we use REFL/AS. But, in the source we use just n1 / n2 /....)
  • Request from Yuzurihara
    • Remove exit button
    • Make the outputted figure large
    • Add the xlabel and ylabel on figure automatically
    • Use the variable name which we can easily understand
    • Add options to select the plotting scale(log/linear)

command line memo

  • resize the figure of the interferometer
    • convert Fabry_Perot_MI_eom_drawing.png -resize 800x600 hoge.png

Useful page

KAGRA/Subgroups/MIF/Simulation/KamikokaActivity20200817 (last edited 2020-10-18 17:32:36 by naoki.koyama)