-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DSS file not detected if filename
string has any spaces.
#94
Comments
I haven't tested this but the first thing I would try is putting quotes around the filename, i.e. dss("""
clear
compile "$(filename)"
solve
""") OR dss("""
clear
compile '$(filename)'
solve
""") Can you also post your operating system / version of OpenDSSDirect etc? |
Yep, just missing quotes as @kdheepak pointed. Thanks for reporting, @Realife-Brahmin. Although we don't plan to cover basic OpenDSS details in the docs, the examples should avoid this kind of issue and should reflect best practices. I think I updated most of the compile/redirect commands in the examples and tests, but if you find any remaining issue with those, feel free to report. The dev docs already reflect the changes: https://dss-extensions.org/OpenDSSDirect.jl/dev/#Example We should have a new release here in a few days, by the way. |
Using double quotes works for me. Thank you @kdheepak for the tip and @PMeira for the explanation and updating the doc. From my other issue, the redirect command did help me retain my working directory (and something as a beginner I'd like the example code snippet to have), but I guess you must have good reasons for not updating that. |
@Realife-Brahmin The Note that OpenDSS and the way the API is organized is unusual (especially the "active..." concept), so you might find some other surprises. We have some goals for a future alternative, but it will take some time to reach those. |
Upon trying to run the tutorial example for this package, I realized that
compile $(filename)
only works with filename with no spaces. Since my computer username itself has spaces in it, the original code, which uses an absolute directory, would throw up an error, saying thattruncated_filename
(I meanfilename
truncated at the first space encountered) doesn't exist. To test this, I copied the files to a local folder and was able to replicate the problem.The text was updated successfully, but these errors were encountered: