Code Monkey home page Code Monkey logo

Comments (10)

paulray avatar paulray commented on August 16, 2024

You can just specify -noxwin to your prepfold command, if I'm understanding your question correctly.

from presto.

aweaver1fandm avatar aweaver1fandm commented on August 16, 2024

from presto.

aweaver1fandm avatar aweaver1fandm commented on August 16, 2024

I just doubled checked and we are already doing -noxwin for prepfold calls and it still doesn't seem to like it

from presto.

aweaver1fandm avatar aweaver1fandm commented on August 16, 2024

Here is the error we get even running with noxwin

Error: "/opt/apps/spack/netpbm-10.73.43-u7pxw3h/bin/pnmflip -cw < /tmp/p769858.pnm|
/opt/apps/spack/netpbm-10.73.43-u7pxw3h/bin/pnmquant 256 |
/opt/apps/spack/netpbm-10.73.43-u7pxw3h/bin/pnmtopng > S00611_4_DM61.00_ACCEL_50_ACCEL_Cand_1.pfd.png" failed:
Error running pstoimg in prepfold_plot(): No such device or address

Also, I have built presto using Spack as the package manager and included pgplot +X +png as well as latex2html as part of the dependencies

from presto.

paulray avatar paulray commented on August 16, 2024

Ah I see. This really isn't a presto thing, so -noxwin won't help. After presto successfully(?) generates the .ps prepfold plot, it runs pstoimg to convert the .ps file to a .png using the pnm utilities. Try running pstoimg on its own on one of the cluster nodes. If that fails, then you need to get that working, but I'm not sure what that will take. Perhaps something with your DISPLAY envariable or something like that?

from presto.

aweaver1fandm avatar aweaver1fandm commented on August 16, 2024

from presto.

paulray avatar paulray commented on August 16, 2024

Yes, directly generating the plots in a more modern format than .ps would be good (e.g. PDF or PNG), but they are generated in C code that calls PGPLOT to make the plots. This would require some effort to update.

from presto.

scottransom avatar scottransom commented on August 16, 2024

PGPLOT cannot generate .pdf output. It can directly output .png, however, it does not use anti-aliasing, nor can you (easily?) change the resolution, and so the plots look terrible. That's why I output .ps and then (if latex2html is availble) use it to convert nicely to .png.

@aweaver1fandm are the output .ps plots being generated? I suspect that they are, and if so, this error really is effectively a warning that latex2html is not available on the compute nodes. That means that you can always re-generate the .pngs (if wanted) post-facto by running pfd2png.sh on the .pfd.ps files on a machine that hast latex2html installed.

If the output .ps files are not getting generated, then this is a real issue and an error that I have not seen before.

from presto.

aweaver1fandm avatar aweaver1fandm commented on August 16, 2024

from presto.

aweaver1fandm avatar aweaver1fandm commented on August 16, 2024

from presto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.