Replies: 2 comments
-
I've been thinking about this as well and envisioned it as part of a broader refactoring of zpcore. I'd like to add 2 points to the discussion:
The requested functionality can be implemented using pathlib's |
Beta Was this translation helpful? Give feedback.
0 replies
-
This has been implemented in #62 and just released with ZOSPy 1.2.0! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I realized the
load
function inOpticStudioSystem
does not return any errors when no file is found. This got me confused recently as I was trying to figure out why a zospy analysis function returned nonsense and my script did not complain. It took me a while to find that I had misspelled the filename inload
all the way in the beginning of my script :).Do you agree that there should be a FileNotFoundError or similar raised?
On a related note, I was wondering if we should provide the possibility for relative filepaths. I image we could add the following to
load
:What do you think?
Beta Was this translation helpful? Give feedback.
All reactions