Giter VIP home page Giter VIP logo

exe-collect-plot-script's Introduction

Exe-Collect-Plot-script

scripts for executing, collecting data and plotting

main

之前脚本的普适性不是很好,更多的是为了完成一个单独任务而写的。最近根据fasp中程序执行的特点,重新写了一遍,程序的重点:class Running有了以下改变

  • 之前的程序,传递运行参数的方式太随意,不具有普适性。目前的程序统一使用fasp中默认支持的方式,通过-ini input.dat的方式指定程序运行参数。
  • 类中增加了两个新的成员函数:ParseInputConfig()OutputConfig()。顾名思义,ParseInputConfig()函数负责解析input.dat,把各种参数的名称与对应的值输入到字典中,此处的input.dat可以理解为一个模板文件,并不是实际运行时的参数配置文件。
  • OutputConfig()函数负责把字典所代表的参数配置,以fasp支持的格式,输出到单独的文件中,该文件才是真正运行时的参数配置文件。在输出之前,可以修改字典中的参数配置,因此该函数同时负责修改和输出。

future work

  • 通过GridSearch.py进行网格搜索,会得到大量数据,目前只是把数据输出到普通文本文件中,再利用plot.py程序对文件中的文本内容进行处理,得到数据,再画图。在这一过程中,数据先是写入到文件中,再利用程序提取出数据进行画图,做了很多无用功,更重要的是,随着数据的增多,这种原始的管理方式很低效,也无法为plot.py提供统一的数据访问接口。综上,目前考虑使用Python中内置的数据库sqlite3管理数据,对GridSearch.py进行修改,但是不会改变class Running的内容。

exe-collect-plot-script's People

Contributors

zhf-0 avatar

Watchers

James Cloos avatar  avatar

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.