PYLEMS(1)

πŸ“¦ version 0.6.8, in fedora 43

✨ PYLEMS(1) ✨

okay so bestie, you've just opened the manual for pylems β€” a User Commands classic, no cap. Let's get into it πŸ’…


🌸 NAME 🌸

pylems β€” the LEMS interpreter, but make it Python 🐍✨

Like, it interprets LEMS. In Python. That's the whole vibe. πŸ¦‹


πŸŽ€ DESCRIPTION πŸŽ€

Here's the usage, verbatim, because we do not play with syntax around here:

pylems [-h] [-I <Include directory>] [-nogui] [-dlems] <LEMS file>

That's your whole world, honestly. One command, four little switches, and one file you gotta hand over. Let's break it down πŸ‘‘


🫢 positional arguments

  • <LEMS file> β€” the LEMS file you want to be simulated. That's it, that's the star of the show. Hand it over and let it cook πŸ”₯

πŸ’– options

  • -h, --help β€” shows this help message and then dips. Iconic behaviour, honestly. If you're ever lost, just ask for help, we love a queen who communicates πŸŽ€
  • -I <Include directory> β€” tells it which directory to go looking in for included files. Like, "hey, the stuff you need is over here bestie" πŸ“βœ¨
  • -nogui β€” if you specify this, it just parses & simulates the model, but doesn't show any plots. So it's giving silent, efficient, low-key. No visuals, just vibes πŸŒ™
  • -dlems β€” if you specify this, it exports the LEMS file as dLEMS β€” that's distilled LEMS in JSON format. It points you at https://github.com/borismarin/som-codegen if you wanna know more πŸ‘€πŸ’Ύ

πŸ’€ heads up bestie: -nogui means literally no plots show up. Not a single one. If you were waiting on a graph, you're gonna be waiting forever. Just so you know 🫢

and that's the whole page, fr fr. This one lives over at https://lems.github.io, it's dated September 2024, and yes β€” it's still rocking the PYLEMS(1) title, main character energy as always πŸ‘‘πŸŒΈ

mwah, go simulate something gorgeous πŸ’–βœ¨

πŸ“¦ where this page comes from