RobotPsychologist / bg_control

Improving short-term prandial blood glucose outcomes for people with type 1 diabetes, a complex disease that affects nearly 10 million people worldwide. We aim to leverage semi-supervised learning to identify unlabelled meals in time-series blood glucose data, develop meal-scoring functions, and explore causal machine-learning techniques.
https://blood-glucose-control.streamlit.app/
18 stars 42 forks source link

Custom_pip_install script #174

Closed andytubeee closed 1 day ago

andytubeee commented 1 day ago

Description:

This pull request introduces custom_pip_install.py, a Python script designed to simplify the process of installing Python packages and updating Conda environment YAML files (environment.yml and environment-ci.yml). The script automates package installation and ensures that environment configuration files remain consistent and well-structured, enhancing workflow efficiency for developers.

Key Features:

Usage Instructions:

  1. Install Dependencies:

    Ensure ruamel.yaml is installed, as it's required for YAML parsing and writing:

    pip install ruamel.yaml
  2. Make the Script Executable (Optional):

    On Unix-like systems (e.g., Linux, macOS), you can make the script executable:

    chmod +x custom_pip_install.py
  3. Run the Script:

    • Install a Single Package:

      ./custom_pip_install.py ogr
    • Install Multiple Packages:

      ./custom_pip_install.py ogr requests numpy
    • Specify Custom YAML Files:

      ./custom_pip_install.py ogr requests -f environment.yml custom_env.yml

Examples:

Benefits:

Additional Notes:

Conclusion:

By integrating custom_pip_install.py into your development workflow, you can streamline the management of Python packages and Conda environments, ensuring that your project dependencies are consistently and accurately maintained. This enhancement promotes a more efficient and error-free development process.


Credit: ChatGPT

andytubeee commented 1 day ago

Oops, sorry I should've put this in a separate branch.

When you merge just do collapse commit so it is 1 single commit

Tony911029 commented 1 day ago

@andytubeee Can you rollback any file that is not related to the work you do?