System¶
AutoPoly.core.system
¶
System Management Module
This module provides the System class for managing file paths, directories, and system operations within the AutoPoly package.
The System class handles: - Output directory creation and management - Path resolution for various file operations - Integration with the logging system
Created on Fri Dec 21 12:19:08 2018 @author: zwu
Classes:
| Name | Description |
|---|---|
System |
System management class for AutoPoly package. |
System
¶
System management class for AutoPoly package.
This class handles file system operations, path management, and provides utilities for creating and managing output directories for polymer simulations.
Attributes:
| Name | Type | Description |
|---|---|---|
out |
str
|
Output directory name for the current simulation |
Methods:
| Name | Description |
|---|---|
get_folder_path |
Get the full path to the output directory. |
get_output_path |
Get the full path to the output directory. |
change_output_directory |
Change the output directory to a new location. |
cleanup_output_directory |
Remove the output directory and all its contents. |
Source code in AutoPoly/core/system.py
get_folder_path() -> str
¶
Get the full path to the output directory.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Full path to the output directory |
get_output_path() -> str
¶
Get the full path to the output directory.
This is an alias for get_folder_path() for backward compatibility.
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
Full path to the output directory |
change_output_directory(new_out: str) -> None
¶
Change the output directory to a new location.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
new_out
|
str
|
New output directory name |
required |
Source code in AutoPoly/core/system.py
cleanup_output_directory() -> None
¶
Remove the output directory and all its contents.
This method should be used with caution as it permanently deletes all files in the output directory.