Skip to content

Commit

Permalink
Rename LDOSAlign to LDOSAligner
Browse files Browse the repository at this point in the history
  • Loading branch information
timcallow committed Oct 7, 2024
1 parent a7bcc5a commit 7be0287
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion examples/advanced/ex09_align_ldos.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
parameters.targets.ldos_gridspacing_ev = 2.5

# initialize and add snapshots to workflow
ldos_aligner = mala.LDOSAlign(parameters)
ldos_aligner = mala.LDOSAligner(parameters)
ldos_aligner.clear_data()
ldos_aligner.add_snapshot("Be_snapshot0.out.npy", data_path)
ldos_aligner.add_snapshot("Be_snapshot1.out.npy", data_path)
Expand Down
2 changes: 1 addition & 1 deletion mala/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
DataConverter,
Snapshot,
DataShuffler,
LDOSAlign,
LDOSAligner,
)
from .network import (
Network,
Expand Down
2 changes: 1 addition & 1 deletion mala/datahandling/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
from .data_converter import DataConverter
from .snapshot import Snapshot
from .data_shuffler import DataShuffler
from .ldos_align import LDOSAlign
from .ldos_aligner import LDOSAligner
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from mala.common.parallelizer import get_comm


class LDOSAlign(DataHandlerBase):
class LDOSAligner(DataHandlerBase):
"""
Align LDOS vectors based on when they first become non-zero.
Expand All @@ -42,7 +42,7 @@ def __init__(
descriptor_calculator=None,
):
self.ldos_parameters = parameters.targets
super(LDOSAlign, self).__init__(
super(LDOSAligner, self).__init__(
parameters,
target_calculator=target_calculator,
descriptor_calculator=descriptor_calculator,
Expand All @@ -68,7 +68,7 @@ def add_snapshot(
snapshot_type : string
Must be numpy, openPMD is not yet available for LDOS alignment.
"""
super(LDOSAlign, self).add_snapshot(
super(LDOSAligner, self).add_snapshot(
"",
"",
output_file,
Expand Down

0 comments on commit 7be0287

Please sign in to comment.