Stream: helpdesk (published)

Topic: ✔ global variable but within the function


view this post on Zulip Dale Black (Nov 27 2021 at 05:03):

Ooh, simple enough. Thanks!

view this post on Zulip Notification Bot (Nov 27 2021 at 05:03):

Dale Black has marked this topic as resolved.

view this post on Zulip Mason Protter (Nov 27 2021 at 05:12):

I should also mention that my preferred method would be to simply write

    pixel_size = try
        header[(0x0028, 0x0030)]
    catch
        FOV = header[(0x0018, 0x1100)]
        matrix_size = header[(0x0028, 0x0010)]

        FOV / matrix_size
    end

view this post on Zulip Mason Protter (Nov 27 2021 at 05:12):

Because everything is an expression in Julia

view this post on Zulip Dale Black (Nov 27 2021 at 05:13):

Oh wow, that's very cool

view this post on Zulip Dale Black (Nov 27 2021 at 05:13):

I like that better too


Last updated: Oct 02 2023 at 04:34 UTC