From c4dc9f95731c2bfc6ccbdd206d5b8ce16a56da57 Mon Sep 17 00:00:00 2001 From: jan Date: Sun, 8 Mar 2026 22:32:16 -0700 Subject: [PATCH] [oasis] comment and code cleanup --- masque/file/oasis.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/masque/file/oasis.py b/masque/file/oasis.py index 0a11b24..5e343ea 100644 --- a/masque/file/oasis.py +++ b/masque/file/oasis.py @@ -182,8 +182,8 @@ def writefile( Args: library: A {name: Pattern} mapping of patterns to write. filename: Filename to save to. - *args: passed to `oasis.write` - **kwargs: passed to `oasis.write` + *args: passed to `oasis.build()` + **kwargs: passed to `oasis.build()` """ path = pathlib.Path(filename) @@ -213,9 +213,9 @@ def readfile( Will automatically decompress gzipped files. Args: - filename: Filename to save to. - *args: passed to `oasis.read` - **kwargs: passed to `oasis.read` + filename: Filename to load from. + *args: passed to `oasis.read()` + **kwargs: passed to `oasis.read()` """ path = pathlib.Path(filename) if is_gzipped(path): @@ -717,10 +717,6 @@ def properties_to_annotations( annotations[key] = values return annotations - properties = [fatrec.Property(key, vals, is_standard=False) - for key, vals in annotations.items()] - return properties - def check_valid_names( names: Iterable[str],