Skip to content

Commit

Permalink
Merge pull request #18 from bendudson/travis
Browse files Browse the repository at this point in the history
Travis testing
  • Loading branch information
bendudson committed Nov 10, 2019
2 parents c6e28a0 + e4a9582 commit ef2024a
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
language: python
python:
- "3.6"
# command to install dependencies
install:
- pip install -r requirements.txt
# command to run tests
script:
- pytest

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ FreeGS: Free boundary Grad-Shafranov solver

[![License](https://img.shields.io/badge/license-GPL-blue.svg)](https://img.shields.io/badge/license-GPL-blue.svg)
[![py3comp](https://img.shields.io/badge/py3-compatible-brightgreen.svg)](https://img.shields.io/badge/py3-compatible-brightgreen.svg)
[![Build Status](https://travis-ci.org/bendudson/freegs.svg?branch=master)](https://travis-ci.org/bendudson/freegs)

This Python module calculates plasma equilibria for tokamak fusion experiments,
by solving the Grad-Shafranov equation with free boundaries. Given a set of coils,
Expand Down
1 change: 0 additions & 1 deletion freegs/gradshafranov.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ class GSElliptic:
d^2/dR^2 + d^2/dZ^2 - (1/R)*d/dR
"""

def __init__(self, Rmin):
"""
Specify minimum radius
Expand Down
2 changes: 1 addition & 1 deletion freegs/test_optimiser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import optimiser
from . import optimiser

# Tests and example of solving optimisation problem
#
Expand Down
2 changes: 1 addition & 1 deletion freegs/test_polygons.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import polygons
from . import polygons

def test_nointersect():
assert polygons.intersect([0,1], [0,0], [0,1], [1,1]) == False
Expand Down
3 changes: 3 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
numpy>=1.14.1
scipy>=1.0.0
matplotlib>=2.0.0

0 comments on commit ef2024a

Please sign in to comment.