Skip to content

Commit 9c1d132

Browse files
tomc271tomchapman
authored andcommitted
Use copy() to copy os.env rather than dict()
as it is more explicit.
1 parent 3cfc8be commit 9c1d132

16 files changed

Lines changed: 24 additions & 50 deletions

src/boutdata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Routines for exchanging data to/from BOUT++ """
1+
"""Routines for exchanging data to/from BOUT++"""
22

33
from boutdata.collect import attributes, collect
44
from boututils.boutarray import BoutArray

src/boutdata/gen_surface.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""Flux surface generator for tokamak grid files
2-
3-
"""
1+
"""Flux surface generator for tokamak grid files"""
42

53
from __future__ import print_function
64

src/boutdata/griddata.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""Routines for manipulating grid files
2-
3-
"""
1+
"""Routines for manipulating grid files"""
42

53
import matplotlib.pyplot as plt
64
import numpy as np

src/boutdata/input.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""Fourier transform data for input to BOUT++
2-
3-
"""
1+
"""Fourier transform data for input to BOUT++"""
42

53
from numpy import ndarray
64
from numpy.fft import rfft

src/boutdata/mms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
""" Functions for calculating sources for the
2-
Method of Manufactured Solutions (MMS)
1+
"""Functions for calculating sources for the
2+
Method of Manufactured Solutions (MMS)
33
44
"""
55

src/boutdata/settings.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""Parse BOUT.inp settings file
2-
3-
"""
1+
"""Parse BOUT.inp settings file"""
42

53

64
def get(filename, name, section=None):

src/boutdata/tests/test_boutoptions.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,14 @@ def test_str():
210210
options["other top-level"] = 3
211211

212212
# lstrip to remove the first empty line
213-
expected = textwrap.dedent(
214-
"""
213+
expected = textwrap.dedent("""
215214
top-level value = 0
216215
other top-level = 3
217216
218217
[section]
219218
first = 1
220219
second = 2
221-
"""
222-
).lstrip()
220+
""").lstrip()
223221

224222
assert str(options) == expected
225223

src/boututils/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
""" Generic routines, useful for all data """
1+
"""Generic routines, useful for all data"""
22

33
__all__ = []
44
__name__ = "boututils"

src/boututils/ask.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""Ask a yes/no question and return the answer.
2-
3-
"""
1+
"""Ask a yes/no question and return the answer."""
42

53
import sys
64

src/boututils/boutarray.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
"""Wrapper for ndarray with extra attributes for BOUT++ fields.
2-
3-
"""
1+
"""Wrapper for ndarray with extra attributes for BOUT++ fields."""
42

53
import numpy
64

0 commit comments

Comments
 (0)