Pull request #1724: PIPE-2903 & PIPE-2939: Python Code Modernization, Import Optimization, and Cleanup
Merge in PIPE/pipeline from PIPE-2903-additional-refactoring-items-after-pr-1452 to main
* commit '83fe0c033e0abcb3a7237aa8768681ca58a63e1a': PIPE-2903: reverted super reference calls to the parent object; changed type of QuantityDict value PIPE-2903: fix failure introduced at merge PIPE-2903: removed references to custom dictionaries in the all block that got reintroduced on merge with main PIPE-2903: fixed docstring reference to the correct Jira ticket PIPE-2903: removed defunct _cluster_details function replaced by deferred request
Replace naive datetimes with timezone-aware UTC datetimes throughout codebase PIPE-2903: fixed timezone naive issues by adding UTC timezone PIPE-2903: gathered all custom CASA type hints into single module casa_types PIPE-2903: fixes to unit test failures associated with datetime changes from naive to UTC aware PIPE-2903: converted callable type hint to Callable; removed commented out code and duplicated type hints from docstrings; updated numpy type hints PIPE-2939: removed defunct pipeline/infrastructure/docutils module PIPE-2903: updated type hints to use type MaskedArray instead of constructor; fixed inaccurate type hints in hsd/baselineflag; updated several NewType custom variables to use TypedDict; fixed several indentation levels; moved type-hint-only imports into TYPE_CHECKING; replaced Integral with Real for more accurate type hint PIPE-2903: reverted changes to extern module; reverted several namespace imports that were incorrectly removed; reverted incorrectly moved imports to TYPE_CHECKING PIPE-2903: moved more type-hint-only imports to TYPE_CHECKING; removed several unused imports; fixed several unbound/undefined variable errors; replaced deprecated imports with functionally-equivalent imports; fixed invalid type forms; added import of collections.abc library PIPE-2903: moved more type-hint-only imports into TYPE_CHECKING; replaced typing module shims with direct module imports PIPE-2903: removed deprecated datetime.utcnow function; migrated generic type hints to appropriate modules per PEP585; switched abstract base class usage per PEP 3119 PIPE-2903: moved many type-hint-only imports into TYPE_CHECKING; added future annotations and removed many string literals from type hints; updated many old style docstrings; removed object name from class definitions and super calls PIPE-2903: updated type hinting standards per PEP484, PEP585, and PEP604, including replacing imports for built-ins and removing string literals and adding annotation forwarding
PIPE-3073: Add demo guide for Prefect Tier0Futures cluster execution
- Added `scripts/demo_prefect_tier0futures.md` to document the end-to-end
setup process for testing the experimental Prefect + Dask Tier0Futures
processing architecture on ALMA cluster nodes.
- Detailed step-by-step instructions for booting the isolated `pixi`
environment and connecting the local repository without requiring
global dependency installations.
- Provided examples for spinning up Prefect API servers locally and
configuring real-time telemetry endpoints (`PREFECT_API_URL`).
- Included job submission templates for testing execution either within
interactive nodes or pushed as batch workloads via SLURM (`sbatch`).
The job generated some errors, drill down into the full build log for more details.
Failed to prepare the build 'PIPESPECS - Pipeline Pull Request Test - PIPE-3073-prefect-workflow-task-adapter-and-tier0future-backend-improvement - Pipeline PR Test 6.7.4 #5 (PIPESPECS-PPRT559-PPRT674-5)'