feat: rigorous physics revision for Paper 1 based on adversarial review

This commit is contained in:
codex
2026-06-01 22:22:35 +00:00
parent 2e839369d9
commit d8deafd138
5425 changed files with 1552613 additions and 43 deletions
@@ -0,0 +1,18 @@
"""
A set of methods retained from np.compat module that
are still used across codebase.
"""
__all__ = ["asunicode", "asbytes"]
def asunicode(s):
if isinstance(s, bytes):
return s.decode('latin1')
return str(s)
def asbytes(s):
if isinstance(s, bytes):
return s
return str(s).encode('latin1')