Skip to content
Snippets Groups Projects

Fix recursive_stringify

Merged mhocke requested to merge stringify into master
Files
3
+ 7
1
@@ -35,12 +35,18 @@ def print_file(args=None):
@@ -35,12 +35,18 @@ def print_file(args=None):
default="shape",
default="shape",
help="Choose how datasets are printed, either the shapes or the full content is printed",
help="Choose how datasets are printed, either the shapes or the full content is printed",
)
)
 
parser.add_argument(
 
"--full_attrs",
 
default=False,
 
action="store_true",
 
help="Show full unabbreviated values for attributes",
 
)
if args is None:
if args is None:
args = parser.parse_args()
args = parser.parse_args()
with robofish.io.File(path=args.path, strict_validate=False) as f:
with robofish.io.File(path=args.path, strict_validate=False) as f:
print(f.to_string(args.output_format))
print(f.to_string(output_format=args.output_format, full_attrs=args.full_attrs))
print()
print()
valid = f.validate(strict_validate=False)[0]
valid = f.validate(strict_validate=False)[0]
print("Valid file" if valid else "Invalid file")
print("Valid file" if valid else "Invalid file")
Loading