Giter VIP home page Giter VIP logo

starfish_v0.4's Introduction

STARFiSh: STochastic ARterial Flow Simulator

http://www.ntnu.no/starfish

Copyright 2012-2016 Vinzenz Eck

License

This program is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Contributors:

  • Leif Rune Hellevik
  • Vinzenz Gregor Eck
  • Jacob Sturdy
  • Knut Petter Maraak
  • Paul Roger Leinan
  • Fredrik Eikeland Fossan
  • Einar Nyberg Karlsen
  • Yvan Gugler
  • Yapi Donatien Achou
  • Hallvard Moian Nydal

STARFiSh:

is a python2, shell-based, scientific simulation program for blood flow in mammals!

Components

  • vascular network creator - vnc - is a shell-based tool to create arterial networks for the simulation tool STARFiSh.
  • VascularPolynomialChaos - is a module allowing users to simulate blood flow subject to uncertainties in model parameters
  • Visualisation - is a module relying on GTK to allow visualisation of the results from simulations both as 2D and 3D plots of pressures, flows, areas, etc. throughout the simulated network.

Installation

  • To get started with starfish download the code to your desired location
  • There are two scripts ubuntu_dependencies.sh and fedora_dependencies.sh that should install the required dependencies. (Note these likely require administrator privileges
  • Check the status of the install with python systemCheck.py
  • You should be able to start with python starfish.py in the same director as you have downloaded the files
  • When you first run starfish.py it will ask you to create a working directory. This working directory is where all output from simulations and network creation will be saved.

Coding

For programmers going to work on this code:

The standard convention for writing Python code: https://www.python.org/dev/peps/pep-0008/

Using Sphinx with some extensions, docstrings in the code will be used to autogenerate documentation. To generate it, enter the AutoDocumentation folder and run "make html". If you've altered modules, run "make clean" first. If you've altered module names, folders, or top level modules, edit AutoDocumentation/sources/index.rst accordingly, and then run "make fullupdate".

We will use a slightly modified Google standard for writing docstrings. (return is different)

def foo(input1, input2):
	"""
	describe function here
	
	Args:
		input1 (type): description of input1
		input2 (type): description of input2
	
	Returns:   ### This has different syntax depending ###
               ### on how many outputs it has.         ###

        type of soleOutput: description of soleOutput

		type of output1
			description of output1
		type of output2
			description of output2
	
	Raises:
		IOError: An error occured loading myClass.myStuff
	"""

Example can be found in UtilityLib/moduleCSV.py in the function readBCFromCSV

starfish_v0.4's People

Contributors

utsekaj42 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.