Update XSY module to integrate with converter framework.
This commit is contained in:
@@ -573,7 +573,7 @@ class XSYReader:
|
|||||||
self.definitions_ss_path = definitions_ss_path
|
self.definitions_ss_path = definitions_ss_path
|
||||||
self.even_addresses = even_addresses
|
self.even_addresses = even_addresses
|
||||||
|
|
||||||
def read(self, path: Traversable, expand: bool = True) -> XSY:
|
def read(self, path: Traversable, expand: bool = True) -> XSYBlock:
|
||||||
"""Read the dataBlock and definitions of an XSY file into an XSY
|
"""Read the dataBlock and definitions of an XSY file into an XSY
|
||||||
object.
|
object.
|
||||||
"""
|
"""
|
||||||
@@ -591,7 +591,7 @@ class XSYReader:
|
|||||||
)
|
)
|
||||||
if expand:
|
if expand:
|
||||||
xsy.datablock = xsy.expand_datablock()
|
xsy.datablock = xsy.expand_datablock()
|
||||||
return xsy
|
return xsy.datablock
|
||||||
|
|
||||||
def write(self):
|
def write(self):
|
||||||
"""Write XSY object to file."""
|
"""Write XSY object to file."""
|
||||||
|
|||||||
Reference in New Issue
Block a user