-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from marl/final-0.2.0
Final 0.2.0
- Loading branch information
Showing
3 changed files
with
13 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -230,7 +230,7 @@ def __schema__(self): | |
|
||
@property | ||
def __json__(self): | ||
r"""Return the JObject as a set of native datatypes for serialization. | ||
r"""Return the JObject as a set of native data types for serialization. | ||
Note: attributes beginning with underscores are suppressed. | ||
""" | ||
|
@@ -249,7 +249,7 @@ def __json__(self): | |
|
||
@classmethod | ||
def __json_init__(cls, **kwargs): | ||
"""TODO([email protected]): writeme.""" | ||
"""Initialize the object from a dictionary of values""" | ||
return cls(**kwargs) | ||
|
||
def __eq__(self, other): | ||
|
@@ -260,7 +260,7 @@ def __nonzero__(self): | |
return bool(self.__json__) | ||
|
||
def __getitem__(self, key): | ||
"""TODO([email protected]): writeme.""" | ||
"""Dict-style interface""" | ||
return self.__dict__[key] | ||
|
||
def __setattr__(self, name, value): | ||
|
@@ -326,7 +326,7 @@ def keys(self): | |
|
||
def update(self, **kwargs): | ||
'''Update the attributes of a JObject. | ||
Parameters | ||
---------- | ||
kwargs | ||
|
@@ -351,7 +351,7 @@ def type(self): | |
|
||
@classmethod | ||
def loads(cls, string): | ||
'''Deserialize a JObject | ||
'''De-serialize a JObject | ||
Parameters | ||
---------- | ||
|
@@ -493,7 +493,7 @@ class Sandbox(JObject): | |
|
||
|
||
class JamsFrame(pd.DataFrame): | ||
'''A dataframe class for JAMS. | ||
'''A data-frame class for JAMS. | ||
This automates certain niceties, such as timestamp | ||
conversion and serialization. | ||
|
@@ -1038,7 +1038,7 @@ def __init__(self, annotations=None, file_metadata=None, sandbox=None): | |
Parameters | ||
---------- | ||
annotations : list of Annotations | ||
Zero or more Annotation objcets | ||
Zero or more Annotation objects | ||
file_metadata : FileMetadata (or dict), default=None | ||
Metadata corresponding to the audio file. | ||
|
@@ -1266,7 +1266,7 @@ def match_query(string, query): | |
------- | ||
match : bool | ||
`True` if `query` is a callable and `query(string) == True` | ||
or if `query` is a regexp and `re.match(query, regexp)` | ||
or if `query` is a regular expression and `re.match(query, string)` | ||
`False` otherwise | ||
|
@@ -1288,7 +1288,7 @@ def match_query(string, query): | |
def serialize_obj(obj): | ||
'''Custom serialization functionality for working with advanced data types. | ||
- Timedelta objects are convered to floats (in seconds) | ||
- Timedelta objects are converted to floats (in seconds) | ||
- numpy arrays are converted to lists | ||
- lists are recursively serialized element-wise | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
"""Version info""" | ||
|
||
short_version = '0.2' | ||
version = '0.2.0rc3' | ||
version = '0.2.0' |