Skip to content

Conversation

@arthurmloureiro
Copy link
Member

Fixes #12

Add type hinting to various functions across multiple files for consistency with Firecrown.

  • CosmoAPI/two_point_functions/generate_theory.py

    • Add type hints to generate_ell_theta_array_from_yaml, load_systematics_factory, process_probes_load_2pt, generate_two_point_metadata, and prepare_2pt_functions.
  • CosmoAPI/two_point_functions/nz_loader.py

    • Add type hints to _load_nz, load_all_nz, and _load_nz_from_module.
  • CosmoAPI/__main__.py

    • Add type hints to gen_datavec, gen_covariance, forecast, and main.
  • CosmoAPI/api_io.py

    • Add type hints to load_yaml_file and load_metadata_function_class.

Important: Change the placeholder Any for the actual firecrown types.

Fixes #12

Add type hinting to various functions across multiple files for consistency with Firecrown.

* **`CosmoAPI/two_point_functions/generate_theory.py`**
  - Add type hints to `generate_ell_theta_array_from_yaml`, `load_systematics_factory`, `process_probes_load_2pt`, `generate_two_point_metadata`, and `prepare_2pt_functions`.

* **`CosmoAPI/two_point_functions/nz_loader.py`**
  - Add type hints to `_load_nz`, `load_all_nz`, and `_load_nz_from_module`.

* **`CosmoAPI/__main__.py`**
  - Add type hints to `gen_datavec`, `gen_covariance`, `forecast`, and `main`.

* **`CosmoAPI/api_io.py`**
  - Add type hints to `load_yaml_file` and `load_metadata_function_class`.

Important: Change the placeholder `Any` for the actual firecrown types.
@arthurmloureiro arthurmloureiro marked this pull request as draft October 25, 2024 16:27
@arthurmloureiro arthurmloureiro self-assigned this Oct 25, 2024
@arthurmloureiro arthurmloureiro added 📄 documentation Improvements or additions to documentation enhancement New feature or request 👑 🔥 Firecrown Issues related to firecrown labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

👑 🔥 Firecrown Issues related to firecrown enhancement New feature or request 📄 documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement typing

2 participants