[oasis] comment and code cleanup

This commit is contained in:
jan 2026-03-08 22:32:16 -07:00
commit c4dc9f9573

View file

@ -182,8 +182,8 @@ def writefile(
Args: Args:
library: A {name: Pattern} mapping of patterns to write. library: A {name: Pattern} mapping of patterns to write.
filename: Filename to save to. filename: Filename to save to.
*args: passed to `oasis.write` *args: passed to `oasis.build()`
**kwargs: passed to `oasis.write` **kwargs: passed to `oasis.build()`
""" """
path = pathlib.Path(filename) path = pathlib.Path(filename)
@ -213,9 +213,9 @@ def readfile(
Will automatically decompress gzipped files. Will automatically decompress gzipped files.
Args: Args:
filename: Filename to save to. filename: Filename to load from.
*args: passed to `oasis.read` *args: passed to `oasis.read()`
**kwargs: passed to `oasis.read` **kwargs: passed to `oasis.read()`
""" """
path = pathlib.Path(filename) path = pathlib.Path(filename)
if is_gzipped(path): if is_gzipped(path):
@ -717,10 +717,6 @@ def properties_to_annotations(
annotations[key] = values annotations[key] = values
return annotations return annotations
properties = [fatrec.Property(key, vals, is_standard=False)
for key, vals in annotations.items()]
return properties
def check_valid_names( def check_valid_names(
names: Iterable[str], names: Iterable[str],