Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

treams

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

treams - npm Package Compare versions

Comparing version
0.3.1
to
0.3.2
+1
-1
PKG-INFO
Metadata-Version: 2.1
Name: treams
Version: 0.3.1
Version: 0.3.2
Summary: "T-matrix scattering code for nanophotonic computations"

@@ -5,0 +5,0 @@ Home-page: https://git.scc.kit.edu/tfp-photonics/treams

Metadata-Version: 2.1
Name: treams
Version: 0.3.1
Version: 0.3.2
Summary: "T-matrix scattering code for nanophotonic computations"

@@ -5,0 +5,0 @@ Home-page: https://git.scc.kit.edu/tfp-photonics/treams

@@ -291,3 +291,3 @@ import copy

@classmethod
def from_array(cls, tm, basis, *, eta=0):
def from_array(cls, tm, basis):
"""S-matrix from an array of (cylindrical) T-matrices.

@@ -309,5 +309,3 @@

basis = basis.permute(-1)
pu, pd = (
tm.expandlattice(basis=basis, modetype=i, eta=eta) for i in ("up", "down")
)
pu, pd = (tm.expandlattice(basis=basis, modetype=i) for i in ("up", "down"))
au, ad = (tm.expand.eval_inv(basis, i) for i in ("up", "down"))

@@ -314,0 +312,0 @@ eye = np.eye(len(basis))

@@ -46,9 +46,9 @@ import warnings

def __call__(self, lattice, kpar):
def __call__(self, lattice, kpar, *, eta=0):
return np.eye(self._obj.shape[-1]) - self._obj @ op.ExpandLattice(
lattice=lattice, kpar=kpar
lattice=lattice, kpar=kpar, eta=eta
)
def solve(self, lattice, kpar):
return np.linalg.solve(self(lattice, kpar), self._obj)
def solve(self, lattice, kpar, *, eta=0):
return np.linalg.solve(self(lattice, kpar, eta=eta), self._obj)

@@ -769,3 +769,3 @@

def _plane_wave_partial(
kpar, pol, *, k0=None, basis=None, material=None, modetype=None, poltype=None,
kpar, pol, *, k0=None, basis=None, material=None, modetype=None, poltype=None
):

@@ -795,3 +795,3 @@ if basis is None:

return PhysicsArray(
res, basis=basis, k0=k0, material=material, modetype=modetype, poltype=poltype,
res, basis=basis, k0=k0, material=material, modetype=modetype, poltype=poltype
)

@@ -801,3 +801,3 @@

def _plane_wave(
kvec, pol, *, k0=None, basis=None, material=None, modetype=None, poltype=None,
kvec, pol, *, k0=None, basis=None, material=None, modetype=None, poltype=None
):

@@ -829,3 +829,3 @@ if basis is None:

return PhysicsArray(
res, basis=basis, k0=k0, material=material, modetype=modetype, poltype=poltype,
res, basis=basis, k0=k0, material=material, modetype=modetype, poltype=poltype
)

@@ -835,3 +835,3 @@

def plane_wave(
kvec, pol, *, k0=None, basis=None, material=None, modetype=None, poltype=None,
kvec, pol, *, k0=None, basis=None, material=None, modetype=None, poltype=None
):

@@ -906,3 +906,3 @@ """Array describing a plane wave.

def cylindrical_wave(
kz, m, pol, *, k0=None, basis=None, material=None, modetype=None, poltype=None,
kz, m, pol, *, k0=None, basis=None, material=None, modetype=None, poltype=None
):

@@ -909,0 +909,0 @@ if basis is None:

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display