[yt-svn] commit/yt: 3 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri Nov 17 10:07:31 PST 2017
3 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/f729d8b06cc5/
Changeset: f729d8b06cc5
User: Corentin Cadiou
Date: 2017-11-17 08:40:25+00:00
Summary: support tuple argument
Affected #: 1 file
diff -r 8c143d2380e6e2328658f907ab6f84829e5f0a3f -r f729d8b06cc54b3d344d974d862a334943cfdacd yt/visualization/plot_container.py
--- a/yt/visualization/plot_container.py
+++ b/yt/visualization/plot_container.py
@@ -454,9 +454,11 @@
Parameters
----------
- name : string
- The base of the filename. If name is a directory or if name is not
- set, the filename of the dataset is used.
+ name : string or tuple
+ The base of the filename. If name is a directory or if name is not
+ set, the filename of the dataset is used. For a tuple, the
+ resulting path will be given by joining the elements of the
+ tuple
suffix : string
Specify the image type by its suffix. If not specified, the output
type will be inferred from the filename. Defaults to PNG.
@@ -468,6 +470,8 @@
"""
names = []
if mpl_kwargs is None: mpl_kwargs = {}
+ if isinstance(name, tuple):
+ name = os.path.join(*name)
if name is None:
name = str(self.ds)
name = os.path.expanduser(name)
https://bitbucket.org/yt_analysis/yt/commits/01de89ed4103/
Changeset: 01de89ed4103
User: Corentin Cadiou
Date: 2017-11-17 15:56:30+00:00
Summary: also accept lists
Affected #: 1 file
diff -r f729d8b06cc54b3d344d974d862a334943cfdacd -r 01de89ed41036001bc85b101f50f41148fa59272 yt/visualization/plot_container.py
--- a/yt/visualization/plot_container.py
+++ b/yt/visualization/plot_container.py
@@ -470,7 +470,7 @@
"""
names = []
if mpl_kwargs is None: mpl_kwargs = {}
- if isinstance(name, tuple):
+ if isinstance(name, (tuple, list)):
name = os.path.join(*name)
if name is None:
name = str(self.ds)
https://bitbucket.org/yt_analysis/yt/commits/a6dac60ab12d/
Changeset: a6dac60ab12d
User: ngoldbaum
Date: 2017-11-17 18:07:11+00:00
Summary: Merge pull request #1630 from cphyc/save-with-tuple
Support tuple argument in save
Affected #: 1 file
diff -r 8c143d2380e6e2328658f907ab6f84829e5f0a3f -r a6dac60ab12d8064aad1c5adda6dd54e604c6c98 yt/visualization/plot_container.py
--- a/yt/visualization/plot_container.py
+++ b/yt/visualization/plot_container.py
@@ -454,9 +454,11 @@
Parameters
----------
- name : string
- The base of the filename. If name is a directory or if name is not
- set, the filename of the dataset is used.
+ name : string or tuple
+ The base of the filename. If name is a directory or if name is not
+ set, the filename of the dataset is used. For a tuple, the
+ resulting path will be given by joining the elements of the
+ tuple
suffix : string
Specify the image type by its suffix. If not specified, the output
type will be inferred from the filename. Defaults to PNG.
@@ -468,6 +470,8 @@
"""
names = []
if mpl_kwargs is None: mpl_kwargs = {}
+ if isinstance(name, (tuple, list)):
+ name = os.path.join(*name)
if name is None:
name = str(self.ds)
name = os.path.expanduser(name)
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list