I'm not sure what happens here when args.skymodelfile doesn't end with ".skymodel" or ".txt" -- unless I missed something, I guess it will try to overwrite the input and will complain that the file exists? If so, perhaps it would be good to add an else clause to handle such a case.
I'm not sure what happens here when
args.skymodelfile
doesn't end with ".skymodel" or ".txt" -- unless I missed something, I guess it will try to overwrite the input and will complain that the file exists? If so, perhaps it would be good to add anelse
clause to handle such a case.Ah, good catch. I added another default.