Xray::...::None(3pm)

πŸ“¦
version 3.0.1 Β· 2 versions
  • 3.0.1 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 3.0.1 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

✨ Xray::...::None(3pm) ✨

okay bestie, gather round, because today we're reading a page from the User Contributed Perl Documentation and it's a tiny one. like, snack-sized. it's called Xray::...::None and honestly? it's giving understudy energy in the best way. πŸ’…


🌸 NAME 🌸

Xray::Scattering::None β€” the fallback methods for Xray::Scattering. no cap, that's literally its whole job.


πŸŽ€ SYNOPSIS πŸŽ€

use Xray::Scattering;
Xray::Scattering->load('None');
$fnot = Xray::Scattering->get_f($symb, $d);

see how you just load('None') and it slots right in like nothing happened? iconic behavior fr fr. 🫢


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea, bestie: this module is a fallback subclass for the Xray::Scattering methods. it ships with all the methods that the real subclasses have β€” like, every single one, it's not slacking β€” but instead of doing real math it just hands you fallback values. it's the "we have that at home" of scattering modules. 😭✨

think of it as the main character's stunt double. same silhouette, zero actual stunts.


πŸ’– METHODS πŸ’–

  • get_f β€” returns 0. that's it. that's the whole method. she said "no thoughts, head empty, zero." πŸ’€
  • get_coefficients β€” returns an array of 11 zeros. eleven. not ten, not twelve. eleven zeros, arranged with great care and absolutely no meaning. slay. πŸ”₯
  • has β€” always returns the symbol itself. always. every time. it's not a yes/no situation, it's a "here's your symbol back, babe" situation. πŸ‘‘

πŸ‘‘ AUTHOR πŸ‘‘

Bruce Ravel, bravel AT bnl DOT gov
http://cars9.uchicago.edu/~ravel/software/exafs/

put some respect on the name, bestie. 🌟


lowkey a reminder: this module returns fallback values on purpose. it is not out here computing anything real, so don't come for it when the numbers are all zeros. that's the vibe. it's intentional. periodt. πŸ’…

and that's the whole page, my love! this one came from perl v5.34.0, dated 2022-06-28, under the manual name Xray::...::None(3pm). go forth and fall back gracefully. πŸ§šβ€β™€οΈπŸŒˆπŸ’œ

πŸ“¦ where this page comes from