[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Nov 21 19:43:22 PST 2013
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/b84f146064cc/
Changeset: b84f146064cc
Branch: yt
User: ngoldbaum
Date: 2013-09-28 21:40:56
Summary: Grabbing the title form the notebook filename rather than insisting on a title arg.
Affected #: 1 file
diff -r f935c3dc4a07e3683a16891521b51d0574d7fde7 -r b84f146064ccbb13e04d1343df995cd18fc362f1 yt/utilities/command_line.py
--- a/yt/utilities/command_line.py
+++ b/yt/utilities/command_line.py
@@ -1244,6 +1244,8 @@
t = json.loads(open(filename).read())['metadata']['name']
except (ValueError, KeyError):
print "File does not appear to be an IPython notebook."
+ if len(t) == 0:
+ t = filename.strip(".ipynb")
from yt.utilities.minimal_representation import MinimalNotebook
mn = MinimalNotebook(filename, t)
rv = mn.upload()
https://bitbucket.org/yt_analysis/yt/commits/e48a53d67f68/
Changeset: e48a53d67f68
Branch: yt
User: ngoldbaum
Date: 2013-11-22 04:34:05
Summary: Merging.
Affected #: 1 file
diff -r 70f0fe3b81a4e89928f3f85cec20e1179b395c07 -r e48a53d67f6851a4da5bc410ecd81c78a9e360e0 yt/utilities/command_line.py
--- a/yt/utilities/command_line.py
+++ b/yt/utilities/command_line.py
@@ -1244,6 +1244,8 @@
t = json.loads(open(filename).read())['metadata']['name']
except (ValueError, KeyError):
print "File does not appear to be an IPython notebook."
+ if len(t) == 0:
+ t = filename.strip(".ipynb")
from yt.utilities.minimal_representation import MinimalNotebook
mn = MinimalNotebook(filename, t)
rv = mn.upload()
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