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

Precession viewer fails to export a png file #950

Open
jglaser opened this issue Jan 7, 2024 · 1 comment
Open

Precession viewer fails to export a png file #950

jglaser opened this issue Jan 7, 2024 · 1 comment

Comments

@jglaser
Copy link

jglaser commented Jan 7, 2024

I get the following error when trying to convert reflections in an MTZ file to a png image:

$ cctbx.precession_view 7jun_-1.8.mtz labels=F-calc,PHIF-calc postscript=False output_file=7jun_-1.8.png 
Traceback (most recent call last):
  File "....../cctbx/command_line/precession_view.py", line 259, in <module>
    run(sys.argv[1:])
  File "..../cctbx/command_line/precession_view.py", line 102, in run
    print(postscript)
          ^^^^^^^^^^
UnboundLocalError: cannot access local variable 'postscript' where it is not associated with a value

The reason is a typo in the source

post[s]cript

Moreover, it would be nice if the silent option could be disabled when invoked from the command line ... so as to be able to write PNG outputs

@olegsobolev
Copy link
Contributor

Thank you for pointing this out.
Fixed typo: 66949ba
Exposed parameter: 432483d

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants