Skip to content

Commit

Permalink
fix class names
Browse files Browse the repository at this point in the history
  • Loading branch information
jkanche committed Oct 18, 2024
1 parent 23b45e3 commit 9c444cd
Show file tree
Hide file tree
Showing 8 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/rds2py/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down
4 changes: 2 additions & 2 deletions tests/test_atomic-attr.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import pytest

from rds2py.lib_rds import PyParsedObject
from rds2py.lib_rds import PyRdsObject

__author__ = "jkanche"
__copyright__ = "jkanche"
__license__ = "MIT"


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()
Expand Down
6 changes: 3 additions & 3 deletions tests/test_atomic-bool.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import pytest

from rds2py.lib_rds import PyParsedObject
from rds2py.lib_rds import PyRdsObject

__author__ = "jkanche"
__copyright__ = "jkanche"
__license__ = "MIT"


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()

Expand All @@ -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()

Expand Down
4 changes: 2 additions & 2 deletions tests/test_atomic-double.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import pytest

from rds2py.lib_rds import PyParsedObject
from rds2py.lib_rds import PyRdsObject

__author__ = "jkanche"
__copyright__ = "jkanche"
__license__ = "MIT"


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()

Expand Down
4 changes: 2 additions & 2 deletions tests/test_atomic-int.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import pytest

from rds2py.lib_rds import PyParsedObject
from rds2py.lib_rds import PyRdsObject

__author__ = "jkanche"
__copyright__ = "jkanche"
__license__ = "MIT"


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()

Expand Down
6 changes: 3 additions & 3 deletions tests/test_atomic-str.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import pytest

from rds2py.lib_rds import PyParsedObject
from rds2py.lib_rds import PyRdsObject

__author__ = "jkanche"
__copyright__ = "jkanche"
__license__ = "MIT"


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()

Expand All @@ -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()

Expand Down
12 changes: 6 additions & 6 deletions tests/test_list.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import pytest

from rds2py.lib_rds import PyParsedObject
from rds2py.lib_rds import PyRdsObject

__author__ = "jkanche"
__copyright__ = "jkanche"
__license__ = "MIT"


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()

Expand All @@ -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()

Expand All @@ -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()

Expand All @@ -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()

Expand All @@ -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()

Expand Down
8 changes: 4 additions & 4 deletions tests/test_s4.py
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
import pytest

from rds2py.lib_rds import PyParsedObject
from rds2py.lib_rds import PyRdsObject

__author__ = "jkanche"
__copyright__ = "jkanche"
__license__ = "MIT"


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()

assert array is not None


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()

assert array is not None


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()

Expand Down

0 comments on commit 9c444cd

Please sign in to comment.