Giter VIP home page Giter VIP logo

mose's Introduction

mose

MOduli Space Explorer: Python program to study moduli spaces of elliptic fibrations.

To Do List

How to run

From Python interpreter

  • Generating a K-wall network data
    1. In the root directory that contains mose directory, start the python interpreter.
    2. >>> import mose
    3. Load a configuration file.
    4. Load it interactively. * >>> config = mose.load_config() * A file dialog window opens, select a configuration file to use.
    5. Or give the file name as an argument. * >>> config = mose.load_config('default.ini').
    6. The returned value is MoseConfig that contains all the configuration information.
    7. Run analysis, which returns data.
    8. To get a K-wall network at a fixed phase, run * >>> data = mose.analysis(config, phase=1.0)
    9. To get multiple K-wall networks according to the configuration, run * >>> data = mose.analysis(config)
  • Plotting a K-wall network
    1. Run make_plots.
    • >>> k_wall_network_plot, ms_wall_plot = mose.make_plots(config, data)
    1. 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.
  • Saving the data
    1. >>> 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 in png`` files at data/name/``` directory.
    1. >>> 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 and data.mose.
  • Loading the data
    1. 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).
    1. Or give the directory name as an argument.
    • >>> config, data = mose.load('data/name/').

From the Linux shell

  • 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 with
    • default.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
  1. 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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.