MOduli Space Explorer: Python program to study moduli spaces of elliptic fibrations.
- Generating a K-wall network data
- In the root directory that contains
mose
directory, start the python interpreter. >>> import mose
- Load a configuration file.
- Load it interactively.
*
>>> config = mose.load_config()
* A file dialog window opens, select a configuration file to use. - Or give the file name as an argument.
*
>>> config = mose.load_config('default.ini')
. - The returned value is
MoseConfig
that contains all the configuration information. - Run
analysis
, which returnsdata
. - To get a K-wall network at a fixed phase, run
*
>>> data = mose.analysis(config, phase=1.0)
- To get multiple K-wall networks according to the configuration, run
*
>>> data = mose.analysis(config)
- In the root directory that contains
- Plotting a K-wall network
- Run
make_plots
.
>>> k_wall_network_plot, ms_wall_plot = mose.make_plots(config, data)
- According to the setup, you can either:
- Hover the mouse cover over the object to display its label, or
- Click an object in each figure to display its label and press
d
to delete all the displayed labels.
- Run
- Saving the data
>>> mose.save(config, data, k_wall_network_plot, ms_wall_plot, data_dir='data/name/', open_dialog=False)
- This saves
config.ini
,data.mose
, and plots inpng`` files at
data/name/``` directory.
>>> mose.save(config, data, k_wall_network_plot, ms_wall_plot)
- This opens a directory dialog window to select a directory to save
config.ini
anddata.mose
.
- Loading the data
- Load it interactively.
>>> config, data = mose.load()
- Then you first get a directory dialog window to select a directory that contains the configuration & the data file. Select a directory and it returns
(config, data)
.
- Or give the directory name as an argument.
>>> config, data = mose.load('data/name/')
.
- In the root directory, there is an executable Python script
main.py
. Running it without any option prints the help screen. - For example, if you want to run
mose
withdefault.ini
configuration file,- for a fixed phase at 1.0,
- producing its plot,
- and saving the resulting data at
data/yyyy-mm-dd-tt-mm
,
> ./main.py --config-file=default.ini --phase=1.0 --show-plot --save-data
- If you want to load a data and show the plot,
> ./main.py --load-data --show-plot
- Then you first get a directory dialog window to select a directory that contains the configuration & the data file. Select a directory and
mose
plots the K-wall network.