Skip to content

Commit a7a7422

Browse files
authored
Merge pull request #25 from 3ptscience/fix/minorBugs
bug fixes for v0.1.5
2 parents 4c22bd8 + 6db276c commit a7a7422

File tree

5 files changed

+14
-16
lines changed

5 files changed

+14
-16
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[bumpversion]
2-
current_version = 0.1.4
2+
current_version = 0.1.5
33
files = properties/__init__.py setup.py docs/conf.py
44

docs/conf.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@
5858

5959
# General information about the project.
6060
project = u'properties'
61-
copyright = u'2016, 3point Science, Inc.'
62-
author = u'3point Science, Inc.'
61+
copyright = u'2016, 3point Science'
62+
author = u'3point Science'
6363

6464
# The version info for the project you're documenting, acts as replacement for
6565
# |version| and |release|, also used in various other places throughout the
6666
# built documents.
6767
#
6868
# The short X.Y version.
69-
version = u'0.1.4'
69+
version = u'0.1.5'
7070
# The full version, including alpha/beta/rc tags.
71-
release = u'0.1.4'
71+
release = u'0.1.5'
7272

7373
# The language for content autogenerated by Sphinx. Refer to documentation
7474
# for a list of supported languages.
@@ -248,7 +248,7 @@
248248
# author, documentclass [howto, manual, or own class]).
249249
latex_documents = [
250250
(master_doc, 'properties.tex', u'properties Documentation',
251-
u'3point Science, Inc.', 'manual'),
251+
u'3point Science', 'manual'),
252252
]
253253

254254
# The name of an image file (relative to this directory) to place at the top of

properties/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class Profile(properties.PropertyClass):
2222
from .spatial import *
2323
from . import vmath
2424

25-
__version__ = '0.1.4'
26-
__author__ = '3point Science, Inc.'
25+
__version__ = '0.1.5'
26+
__author__ = '3point Science'
2727
__license__ = 'MIT'
28-
__copyright__ = 'Copyright 2016 3point Science, Inc.'
28+
__copyright__ = 'Copyright 2016 3point Science,'

properties/array.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def serialize(self, data):
5555
raise Exception('Must be a float or an int: {}'.format(data.dtype))
5656

5757
data_file = tempfile.NamedTemporaryFile('rb+', suffix='.dat')
58-
data_file.write(data.astype(use_dtype).tobytes())
58+
data.astype(use_dtype).tofile(data_file.name)
5959
data_file.seek(0)
6060
return FileProp(data_file, use_dtype)
6161

@@ -68,13 +68,11 @@ def shape(self, value):
6868
if not isinstance(value, tuple):
6969
raise TypeError("{}: Invalid shape - must be a tuple "
7070
"(e.g. ('*',3) for an array of length-3 "
71-
"arrays)".format(value, self.name))
71+
"arrays)".format(value))
7272
for s in value:
7373
if s != '*' and not isinstance(s, six.integer_types):
7474
raise TypeError("{}: Invalid shape - values "
75-
"must be '*' or int".format(
76-
value, self.name
77-
))
75+
"must be '*' or int".format(value))
7876
self._shape = value
7977

8078
@property
@@ -88,7 +86,7 @@ def dtype(self, value):
8886
if (float not in value and
8987
len(set(value).intersection(six.integer_types)) == 0):
9088
raise TypeError("{}: Invalid dtype - must be int "
91-
"and/or float".format(value, self.name))
89+
"and/or float".format(value))
9290
self._dtype = value
9391

9492
def validator(self, instance, proposed):

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
setup(
2626
name="properties",
27-
version="0.1.4",
27+
version="0.1.5",
2828
packages=find_packages(),
2929
install_requires=['numpy>=1.7',
3030
'pypng',

0 commit comments

Comments
 (0)