Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor and rename #4

Merged
merged 8 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/unittests_matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ jobs:

- name: Run unit tests
run: |
python -m unittest discover deepmd_iterative/unittests
python -m unittest discover arcann_training/unittests
2 changes: 1 addition & 1 deletion .github/workflows/unittests_requirements.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ jobs:

- name: Run unit tests
run: |
python -m unittest discover deepmd_iterative/unittests
python -m unittest discover arcann_training/unittests
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<!-- PROJECT SHIELDS -->

[![GNU AGPL v3.0 License][license-shield]][license-url]
[![Unit Tests Requirements](https://github.com/arcann-chem/arcann/actions/workflows/unittests_requirements.yml/badge.svg)](https://github.com/arcann-chem/arcann/actions/workflows/unittests_requirements.yml)
[![Unit Tests Matrix](https://github.com/arcann-chem/arcann/actions/workflows/unittests_matrix.yml/badge.svg?branch=main)](https://github.com/arcann-chem/arcann/actions/workflows/unittests_matrix.yml)

<!-- TABLE OF CONTENTS -->

Expand Down
File renamed without changes.
10 changes: 5 additions & 5 deletions deepmd_iterative/__main__.py → arcann_training/__main__.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
Created: 2022/01/01
Last modified: 2024/05/01
Last modified: 2024/05/15
"""

# Standard library modules
Expand All @@ -17,7 +17,7 @@
from pathlib import Path

# Local imports
from deepmd_iterative.common.logging import setup_logging
from arcann_training.common.logging import setup_logging

# Parsing
parser = argparse.ArgumentParser(description="Deepmd iterative program suite")
Expand All @@ -41,7 +41,7 @@
# Step/Phase name
step_name: str = args.step_name
phase_name: str = args.phase_name
submodule_name: str = f"deepmd_iterative.{step_name}.{phase_name}"
submodule_name: str = f"arcann_training.{step_name}.{phase_name}"

# Input
input_fn: str = args.input
Expand All @@ -57,7 +57,7 @@
# Start
arcann_logger.info(f"-" * 88)
arcann_logger.info(f"-" * 88)
arcann_logger.info(f"DEEPMD ITERATIVE PROGRAM SUITE")
arcann_logger.info(f"ARCANN TRAINING PROGRAM SUITE")
arcann_logger.info(f"Launching: {step_name.capitalize()} - {phase_name.capitalize()}")
arcann_logger.info(f"-" * 88)
arcann_logger.info(f"-" * 88)
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
# Created: 2022/01/01
# Last modified: 2023/08/16
# Last modified: 2024/05/15

# Load PDB file and clear all existing animations
mol new _R_PDB_FILE_
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
# Created: 2022/01/01
# Last modified: 2023/08/16
# Last modified: 2024/05/15

# Load PDB file and clear all existing animations
mol new _R_PDB_FILE_
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
Created: 2022/01/01
Last modified: 2024/05/01
Last modified: 2024/05/15

This module contains functions for checking the availability of certain commands on the system, as well as a function for validating the current working directory during the execution of a specific step.

Expand All @@ -31,7 +31,7 @@
from pathlib import Path

# Local imports
from deepmd_iterative.common.utils import catch_errors_decorator
from arcann_training.common.utils import catch_errors_decorator


# Unittested
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
Created: 2022/01/01
Last modified: 2024/05/01
Last modified: 2024/05/15

The filesystem module provides functions to handle file and directory management

Expand Down Expand Up @@ -42,7 +42,7 @@
from pathlib import Path

# Local imports
from deepmd_iterative.common.utils import catch_errors_decorator
from arcann_training.common.utils import catch_errors_decorator


# Unittested
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
Created: 2022/01/01
Last modified: 2024/03/31
Last modified: 2024/05/15

The ipi module provides functions to manipulate i-PI data (as XML tree).

Expand All @@ -22,7 +22,7 @@
import xml.etree.ElementTree as ET

# Local imports
from deepmd_iterative.common.utils import catch_errors_decorator
from arcann_training.common.utils import catch_errors_decorator


# Unittested
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
Created: 2022/01/01
Last modified: 2024/05/01
Last modified: 2024/05/15

The json module provides functions to manipulate JSON data (as dict).

Expand Down Expand Up @@ -45,7 +45,7 @@


# Local imports
from deepmd_iterative.common.utils import catch_errors_decorator
from arcann_training.common.utils import catch_errors_decorator


# Unittested
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
Created: 2022/01/01
Last modified: 2024/04/01
Last modified: 2024/05/15

The lammps module provides functions to manipulate LAMMPS data (as list of strings).

Expand All @@ -26,8 +26,8 @@
import numpy as np

# Local imports
from deepmd_iterative.common.utils import catch_errors_decorator
from deepmd_iterative.common.list import textfile_to_string_list
from arcann_training.common.utils import catch_errors_decorator
from arcann_training.common.list import textfile_to_string_list


# Unittested
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
Created: 2022/01/01
Last modified: 2024/03/31
Last modified: 2024/05/15

The utils module provides functions to manipulate lists.

Expand All @@ -32,7 +32,7 @@
from typing import List

# Local imports
from deepmd_iterative.common.utils import catch_errors_decorator
from arcann_training.common.utils import catch_errors_decorator


# Unittested
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
Created: 2024/05/01
Last modified: 2024/05/01
Last modified: 2024/05/15
"""
from typing import Dict

Expand Down Expand Up @@ -49,7 +49,7 @@ def setup_logging(verbose: int = 0) -> Dict:
'class': 'logging.FileHandler',
'level': 'INFO',
'formatter': 'simple_file',
'filename': 'arcann.log',
'filename': 'arcann_training.log',
'mode': 'a', # Append mode
},
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
Created: 2022/01/01
Last modified: 2024/05/01
Last modified: 2024/05/15

The machine module provides functions for machine operations.

Expand Down Expand Up @@ -39,8 +39,8 @@
from typing import Any, Dict, List, Tuple, Union

# Local imports
from deepmd_iterative.common.utils import catch_errors_decorator
from deepmd_iterative.common.json import load_json_file
from arcann_training.common.utils import catch_errors_decorator
from arcann_training.common.json import load_json_file


# Unittested
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
Created: 2024/03/01
Last modified: 2024/05/14
Last modified: 2024/05/15
"""

# TODO: Homogenize the docstrings for this module
Expand All @@ -19,7 +19,7 @@
import numpy as np

# Local imports
from deepmd_iterative.common.utils import catch_errors_decorator
from arcann_training.common.utils import catch_errors_decorator


# TODO: Add tests for this function
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
Created: 2022/01/01
Last modified: 2024/03/31
Last modified: 2024/05/15

The plumed module provides functions to manipulate PLUMED data (as list of strings).

Expand All @@ -23,7 +23,7 @@
from typing import List, Tuple, Union

# Local imports
from deepmd_iterative.common.utils import catch_errors_decorator
from arcann_training.common.utils import catch_errors_decorator


# TODO: Add tests for this function
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
Created: 2022/01/01
Last modified: 2024/05/01
Last modified: 2024/05/15

The slurm module provides functions to manipulate SLURM data (as list of strings).

Expand All @@ -24,11 +24,11 @@
from typing import Dict, List

# Local imports
from deepmd_iterative.common.utils import (
from arcann_training.common.utils import (
catch_errors_decorator,
convert_seconds_to_hh_mm_ss,
)
from deepmd_iterative.common.list import (
from arcann_training.common.list import (
exclude_substring_from_string_list,
replace_substring_in_string_list,
)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""
#----------------------------------------------------------------------------------------------------#
# ArcaNN: Automatic training of Reactive Chemical Architecture with Neural Networks #
# Copyright 2023 ArcaNN developers group <https://github.com/arcann-chem> #
# Copyright 2022-2024 ArcaNN developers group <https://github.com/arcann-chem> #
# #
# SPDX-License-Identifier: AGPL-3.0-only #
#----------------------------------------------------------------------------------------------------#
Created: 2022/01/01
Last modified: 2024/05/01
Last modified: 2024/05/15

Utility module providing helper functions.

Expand Down
Loading