Change AuDaGeFrame from extending DataFrame to wrapping it.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import unittest
|
||||
|
||||
from AuDaGe.audage import AuDaGeFrame
|
||||
from AuDaGe.audage_frame import AuDaGeFrame
|
||||
|
||||
class TestAuDaGeFrame(unittest.TestCase):
|
||||
def test_init(self):
|
||||
@@ -19,7 +19,7 @@ class TestIEC(unittest.TestCase):
|
||||
iec_definitions = iec.iec_definitions()
|
||||
self.assertTrue(iec_definitions.is_valid())
|
||||
self.assertEqual(
|
||||
iec_definitions.shape,
|
||||
iec_definitions.dataframe.shape,
|
||||
(len(iec.DataTypes.__members__), 7)
|
||||
)
|
||||
|
||||
|
||||
@@ -27,11 +27,11 @@ class TestXSY(unittest.TestCase):
|
||||
def test_export(self):
|
||||
xsy = XSY()
|
||||
xsy.read(os.path.join(IN_PATH, "hsps.xsy"), expand=False)
|
||||
xsy.datablock.to_csv(
|
||||
xsy.datablock.dataframe.to_csv(
|
||||
os.path.join(OUT_PATH, "datablock.csv"),
|
||||
index=False
|
||||
)
|
||||
xsy.definitions.to_csv(
|
||||
xsy.definitions.dataframe.to_csv(
|
||||
os.path.join(OUT_PATH, "defs.csv"),
|
||||
index=False
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user