Git Product home page Git Product logo

dfuda_2019_adapter's Introduction

Delft FEWS User Day - May 2019

Lindsay Millard, Seqwater

View Lindsay Millard's profile on LinkedIn

To demonstrate how to implement an adapter in Delft-FEWS I have put together a Jupyter Notebook, see: Worked_Example_FEWS-GoldSim-Adapter.ipynb This Notebook includes comments and can be run step-by-step to understand what is happening. The notebook can be run in the Azure notebooks instance. Due to For loops it won't run seamlessly, it will need the GoldSim Player installed and will need to be controlled by a master file.

A batch file can be used to control the workflow and python files. To demonstrate the complete workflow the files in this project folder can be downloaded. Example FEWS XML timeseries are also provided to commence the workflow. The local computer will need Goldsim Player 12.1

  1. 00_RunPlayerSimple.bat Will trigger the workflow and call the following files:
  2. 01_Pre_Adapter.py will convert the XMLs in the \01_Input\ folder into (.xlsx) files for GoldSim
  3. The batch file will then run the Goldsim Player file in \02_Model\ folder. GoldSim will import the data from the (.xlsx) files into the GoldSim player file and then execute.
  4. 03_Post_Adapter.py will convert the Goldsim output files (.txt) back into XML format.

All of the above is just an example of how a simple adapter can be achieved. Using R or Java would also be possible. Enter the C:\ command prompt and then >>> pip install pandas may be required if Python doesn't have the requisite modules.


alt text

dfuda_2019_adapter's People

Contributors

lmillard79 avatar

Watchers

 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.