Add emitter property for ase Atoms
When creating a cluster, the attribute "emitter" is a proxy to the attribute "absorber". It provides a consitent name for the emitter which was previously called "absorber" in the cluster object and "emitter" in hemispherical_cluster function and more generally by experimenters
This commit is contained in:
parent
fff3a01648
commit
0dc13a58fc
|
@ -17,8 +17,8 @@
|
|||
# along with this msspec. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
# Source file : src/msspec/__init__.py
|
||||
# Last modified: Mon, 27 Sep 2021 17:49:48 +0200
|
||||
# Committed by : sylvain tricot <sylvain.tricot@univ-rennes1.fr>
|
||||
# Last modified: Wed, 18 Jun 2025 13:49:16 +0200
|
||||
# Committed by : Sylvain Tricot <sylvain.tricot@univ-rennes.fr>
|
||||
|
||||
|
||||
import ase
|
||||
|
@ -38,5 +38,6 @@ def init_msspec():
|
|||
ase.atom.names['RA_cut_off'] = ('RA_cuts_off', 1)
|
||||
ase.atom.names['atom_type'] = ('atom_types', None)
|
||||
ase.atoms.Atoms.absorber = None
|
||||
ase.atoms.Atoms.emitter = property(lambda self: self.absorber, lambda self,i: setattr(self, "absorber", i))
|
||||
|
||||
init_msspec()
|
||||
|
|
Loading…
Reference in New Issue