diff --git a/src/rds2py/parser.py b/src/rds2py/parser.py index 91927e1..459e64d 100644 --- a/src/rds2py/parser.py +++ b/src/rds2py/parser.py @@ -16,7 +16,7 @@ def read_rds(file: str) -> Dict: Returns: MutableMapping: R object as a python dictionary. """ - parsed_obj = lib.PyParsedObject(file) + parsed_obj = lib.PyRdsObject(file) robject_obj = parsed_obj.get_robject() realized = robject_obj.realize_value() diff --git a/tests/test_atomic-attr.py b/tests/test_atomic-attr.py index fc772da..c15b536 100644 --- a/tests/test_atomic-attr.py +++ b/tests/test_atomic-attr.py @@ -1,6 +1,6 @@ import pytest -from rds2py.lib_rds import PyParsedObject +from rds2py.lib_rds import PyRdsObject __author__ = "jkanche" __copyright__ = "jkanche" @@ -8,7 +8,7 @@ def test_read_atomic_attrs(): - parsed_obj = PyParsedObject("tests/data/atomic_attr.rds") + parsed_obj = PyRdsObject("tests/data/atomic_attr.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value() attr_names = robject_obj.get_attribute_names() diff --git a/tests/test_atomic-bool.py b/tests/test_atomic-bool.py index 7926e1b..1dcd029 100644 --- a/tests/test_atomic-bool.py +++ b/tests/test_atomic-bool.py @@ -1,6 +1,6 @@ import pytest -from rds2py.lib_rds import PyParsedObject +from rds2py.lib_rds import PyRdsObject __author__ = "jkanche" __copyright__ = "jkanche" @@ -8,7 +8,7 @@ def test_read_atomic_logical(): - parsed_obj = PyParsedObject("tests/data/atomic_logical.rds") + parsed_obj = PyRdsObject("tests/data/atomic_logical.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value() @@ -17,7 +17,7 @@ def test_read_atomic_logical(): def test_read_atomic_logical_na(): - parsed_obj = PyParsedObject("tests/data/atomic_logical_wNA.rds") + parsed_obj = PyRdsObject("tests/data/atomic_logical_wNA.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value() diff --git a/tests/test_atomic-double.py b/tests/test_atomic-double.py index b805682..4bf7763 100644 --- a/tests/test_atomic-double.py +++ b/tests/test_atomic-double.py @@ -1,6 +1,6 @@ import pytest -from rds2py.lib_rds import PyParsedObject +from rds2py.lib_rds import PyRdsObject __author__ = "jkanche" __copyright__ = "jkanche" @@ -8,7 +8,7 @@ def test_read_atomic_double(): - parsed_obj = PyParsedObject("tests/data/atomic_double.rds") + parsed_obj = PyRdsObject("tests/data/atomic_double.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value() diff --git a/tests/test_atomic-int.py b/tests/test_atomic-int.py index 5636b10..b2c3ce8 100644 --- a/tests/test_atomic-int.py +++ b/tests/test_atomic-int.py @@ -1,6 +1,6 @@ import pytest -from rds2py.lib_rds import PyParsedObject +from rds2py.lib_rds import PyRdsObject __author__ = "jkanche" __copyright__ = "jkanche" @@ -8,7 +8,7 @@ def test_read_atomic_ints(): - parsed_obj = PyParsedObject("tests/data/atomic_ints.rds") + parsed_obj = PyRdsObject("tests/data/atomic_ints.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value() diff --git a/tests/test_atomic-str.py b/tests/test_atomic-str.py index ed46221..d6281e8 100644 --- a/tests/test_atomic-str.py +++ b/tests/test_atomic-str.py @@ -1,6 +1,6 @@ import pytest -from rds2py.lib_rds import PyParsedObject +from rds2py.lib_rds import PyRdsObject __author__ = "jkanche" __copyright__ = "jkanche" @@ -8,7 +8,7 @@ def test_read_atomic_chars(): - parsed_obj = PyParsedObject("tests/data/atomic_chars.rds") + parsed_obj = PyRdsObject("tests/data/atomic_chars.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value() @@ -17,7 +17,7 @@ def test_read_atomic_chars(): def test_read_atomic_chars_unicode(): - parsed_obj = PyParsedObject("tests/data/atomic_chars_unicode.rds") + parsed_obj = PyRdsObject("tests/data/atomic_chars_unicode.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value() diff --git a/tests/test_list.py b/tests/test_list.py index 3eb9219..4390ab9 100644 --- a/tests/test_list.py +++ b/tests/test_list.py @@ -1,6 +1,6 @@ import pytest -from rds2py.lib_rds import PyParsedObject +from rds2py.lib_rds import PyRdsObject __author__ = "jkanche" __copyright__ = "jkanche" @@ -8,7 +8,7 @@ def test_read_atomic_lists(): - parsed_obj = PyParsedObject("tests/data/lists.rds") + parsed_obj = PyRdsObject("tests/data/lists.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value() @@ -17,7 +17,7 @@ def test_read_atomic_lists(): def test_read_atomic_lists_nested(): - parsed_obj = PyParsedObject("tests/data/lists_nested.rds") + parsed_obj = PyRdsObject("tests/data/lists_nested.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value() @@ -26,7 +26,7 @@ def test_read_atomic_lists_nested(): def test_read_atomic_lists_nested_deep(): - parsed_obj = PyParsedObject("tests/data/lists_nested_deep.rds") + parsed_obj = PyRdsObject("tests/data/lists_nested_deep.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value() @@ -35,7 +35,7 @@ def test_read_atomic_lists_nested_deep(): def test_read_atomic_lists_df(): - parsed_obj = PyParsedObject("tests/data/lists_df.rds") + parsed_obj = PyRdsObject("tests/data/lists_df.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value() @@ -44,7 +44,7 @@ def test_read_atomic_lists_df(): def test_read_atomic_lists_nested_deep_rownames(): - parsed_obj = PyParsedObject("tests/data/lists_df_rownames.rds") + parsed_obj = PyRdsObject("tests/data/lists_df_rownames.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value() diff --git a/tests/test_s4.py b/tests/test_s4.py index 5cb1ca8..8d99ce4 100644 --- a/tests/test_s4.py +++ b/tests/test_s4.py @@ -1,6 +1,6 @@ import pytest -from rds2py.lib_rds import PyParsedObject +from rds2py.lib_rds import PyRdsObject __author__ = "jkanche" __copyright__ = "jkanche" @@ -8,7 +8,7 @@ def test_read_s4_class(): - parsed_obj = PyParsedObject("tests/data/s4_class.rds") + parsed_obj = PyRdsObject("tests/data/s4_class.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value() @@ -16,7 +16,7 @@ def test_read_s4_class(): def test_read_s4_matrix(): - parsed_obj = PyParsedObject("tests/data/s4_matrix.rds") + parsed_obj = PyRdsObject("tests/data/s4_matrix.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value() @@ -24,7 +24,7 @@ def test_read_s4_matrix(): def test_read_s4_matrix_dgt(): - parsed_obj = PyParsedObject("tests/data/s4_matrix_dgt.rds") + parsed_obj = PyRdsObject("tests/data/s4_matrix_dgt.rds") robject_obj = parsed_obj.get_robject() array = robject_obj.realize_value()