Skip to content
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

missing "(" , ")" in 8.4 Applying expressions #409

Closed
pywugate opened this issue Mar 22, 2024 · 3 comments
Closed

missing "(" , ")" in 8.4 Applying expressions #409

pywugate opened this issue Mar 22, 2024 · 3 comments
Labels

Comments

@pywugate
Copy link

box(point) = Box(point - Vec(2.5, 2.5, 2.5), point + Vec(2.5, 2.5, 2.5))
fails
box(point) = Box((point - Vec(2.5, 2.5, 2.5)), (point + Vec(2.5, 2.5, 2.5)))
works

I think "()" are missing for both first and second arguments in Box()

@juliohm
Copy link
Member

juliohm commented Mar 22, 2024

Can you elaborate why do you think this? The example in the book is working: https://juliaearth.github.io/geospatial-data-science-with-julia/08-splitcombine.html#applying-expressions

@pywugate
Copy link
Author

it works now, maybe close it, I'm sorry.

I tried 4 times, restart Julia and ran this two lines from beginning of section 8
box(point) = Box(point - Vec(2.5, 2.5, 2.5), point + Vec(2.5, 2.5, 2.5))
box.(gt.geometry)

first time it gave me no method for Box()

second time same error, so I searched Box() syntax in section 4 and added "()" for both 1st and 2nd arguments.

third and fourth time I don't need to add "()".

@juliohm
Copy link
Member

juliohm commented Mar 22, 2024

No problem, thanks for reporting the issue :)

Feel free to join our community channel on Zulip to interact more.

@juliohm juliohm closed this as completed Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants