Skip to content

Commit

Permalink
v2.0.9
Browse files Browse the repository at this point in the history
Small update with a fix for the removal of Orange.Table.extend
  • Loading branch information
axanthos committed Feb 21, 2020
1 parent 624538b commit 89a9478
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions LTTL/Table.py
@@ -1,5 +1,5 @@
"""Module Table.py
Copyright 2012-2016 LangTech Sarl (info@langtech.ch)
Copyright 2012-2020 LangTech Sarl (info@langtech.ch)
---------------------------------------------------------------------------
This file is part of the LTTL package v2.0.
Expand Down Expand Up @@ -42,7 +42,7 @@
from future.utils import iteritems
from past.builtins import xrange

__version__ = "1.0.4"
__version__ = "1.0.5"


class Table(object):
Expand Down Expand Up @@ -266,8 +266,6 @@ def col_type_for_id(col_id):

# Create Orange 3 domain and table
domain = Orange.data.Domain(attr_vars, class_vars, meta_vars)
orange_table = Orange.data.Table(domain)

if self.missing is not None:
missing = text(self.missing)
else:
Expand All @@ -292,7 +290,7 @@ def col_type_for_id(col_id):
value = missing
row_data.append(value)
rows.append(Orange.data.Instance(domain, row_data))
orange_table.extend(rows)
orange_table = Orange.data.Table.from_list(domain, rows)

return orange_table
else:
Expand Down
6 changes: 3 additions & 3 deletions setup.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python

"""File setup.py
Copyright 2012-2019 LangTech Sarl (info@langtech.ch)
Copyright 2012-2020 LangTech Sarl (info@langtech.ch)
---------------------------------------------------------------------------
This file is part of the LTTL package v2.0.
Expand All @@ -26,13 +26,13 @@
from codecs import open
from os import path

__version__ = "1.0.20"
__version__ = "1.0.21"

LONG_DESCRIPTION = open(
path.join(path.dirname(__file__), 'README.rst')
).read()

package_version = '2.0.8'
package_version = '2.0.9'
url = 'https://github.com/axanthos/LTTL/tarball/v' + package_version

setup(
Expand Down

0 comments on commit 89a9478

Please sign in to comment.