Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/iris/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def callback(cube, field, filename):


# Iris revision.
__version__ = '1.10.0'
__version__ = '1.11.0-DEV'

# Restrict the names imported when using "from iris import *"
__all__ = ['load', 'load_cube', 'load_cubes', 'load_raw',
Expand Down
4 changes: 2 additions & 2 deletions lib/iris/fileformats/pp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2442,8 +2442,8 @@ def as_fields(cube, field_coords=None, target=None):
A filename or open file handle.

"""
return (field for cube, field in as_pairs(cube, field_coords=field_coords,
target=target))
return (field for cube, field in save_pairs_from_cube(
cube, field_coords=field_coords, target=target))


def save_fields(fields, target, append=False):
Expand Down
8 changes: 5 additions & 3 deletions lib/iris/tests/test_whatsnew_contributions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# (C) British Crown Copyright 2010 - 2015, Met Office
# (C) British Crown Copyright 2010 - 2016, Met Office
#
# This file is part of Iris.
#
Expand Down Expand Up @@ -39,6 +39,7 @@
import os
import os.path
import subprocess
import sys

import iris

Expand All @@ -61,8 +62,9 @@ def test_check_contributions(self):
# Travis bypasses this problem by running the test directly.
if os.path.exists(whatsnew_dirpath):
# Run a 'check contributions' command in that directory.
cmd = 'python aggregate_directory.py --checkonly --quiet'
subprocess.check_call(cmd, cwd=whatsnew_dirpath, shell=True)
cmd = [sys.executable, 'aggregate_directory.py', '--checkonly',
'--quiet']
subprocess.check_call(cmd, cwd=whatsnew_dirpath)


if __name__ == "__main__":
Expand Down