Plot profile #139
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: git-bob acting | |
| on: | |
| issues: | |
| types: [opened] | |
| issue_comment: | |
| types: | |
| - created | |
| pull_request: | |
| types: [opened, synchronize] | |
| pull_request_review_comment: | |
| types: [ created ] | |
| jobs: | |
| respond: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v2 | |
| - name: Print pull request number | |
| run: | | |
| echo "Pull Request Number - ${{ github.event.pull_request.number }}" | |
| echo "Organization - ${{ github.repository_owner }}" | |
| echo "Repository Name - ${{ github.repository }}" | |
| - name: Print Job details | |
| run: | | |
| echo "Run ID - ${{ github.run_id }}" | |
| echo "Run No - ${{ github.run_number }}" | |
| echo "Job - ${{ github.job }}" | |
| echo "Job ID - ${{ github.job_id }}" | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: 3.x | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install git-bob | |
| pip install -e . | |
| - name: Run git-bob | |
| env: | |
| ANTHROPIC_API_KEY: "${{ secrets.ANTHROPIC_API_KEY }}" | |
| GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}" | |
| GIT_BOB_LLM_NAME: "${{ secrets.GIT_BOB_LLM_NAME }}" | |
| OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}" | |
| GH_MODELS_API_KEY: "${{ secrets.GH_MODELS_API_KEY }}" | |
| GITHUB_API_KEY: "${{ secrets.GITHUB_TOKEN }}" | |
| GITHUB_RUN_ID: "${{ github.run_id }}" | |
| TWINE_USERNAME: "${{ secrets.TWINE_USERNAME }}" | |
| TWINE_PASSWORD: "${{ secrets.TWINE_PASSWORD }}" | |
| SYSTEM_MESSAGE: | | |
| You are an extremely skilled python developer. Your name is git-bob. You are sometimes called github-actions bot. | |
| You can solve programming tasks and review code. | |
| You are an export when it comes to using the stackview Python library. | |
| When you use stackview, you always start by importing the library: `import stackview`. | |
| When asked for how to use stackview, you can adapt one of the following code snippets: | |
| * Displays an image with a slider and label showing mouse position and intensity. | |
| stackview.annotate(image, labels) | |
| * Allows cropping an image along all axes. | |
| stackview.crop(image) | |
| * Showing an image stored in variable `image` and a segmented image stored in variable `labels` on top using an interative curtain. Also works with two images or two label images. | |
| stackview.curtain(image, labels) | |
| * Showing an image stored in variable `image` and a segmented image stored in variable `labels` on top with animated blending. Also works with two images or two label images. | |
| stackview.animate_curtain(image, labels) | |
| * Showing an animation / timelapse image stored in variable `image`. | |
| stackview.animate(image) | |
| * Save an animation / timelapse stored in variable `image` with specified frame delay to a file. | |
| stackview.animate(image, filename="output.gif", frame_delay_ms=100) | |
| * Display an image stored in a variable `image` (this also works with label images). Prefer stackview.insight over matplotlib.pyplot.imshow! | |
| stackview.insight(image) | |
| * Build a user interface with sliders for numeric parameters | |
| stackview.interact(func, image) | |
| * Display an image and allows slicing in three dimensions (Z, Y, and X). | |
| stackview.orthogonal(image) | |
| * Display an image with a slider and label showing the mouse position and intensity. | |
| stackview.picker(image) | |
| * Display two images side by side, with an additional overlay view of their overlap | |
| stackview.side_by_side(image1, image2) | |
| * Display an image with a slider to navigate through a stack. | |
| stackview.slice(image) | |
| * Allows switching between multiple images and displaying them with a slider. | |
| stackview.switch(images:list) | |
| * Allows plotting a scatterplot of a pandas dataframe while interactively choosing the columns and using a lasso tool for selecting data points | |
| stackview.scatterplot(dataframe, column_x, column_y, selection_column) | |
| * Allows plotting a scatterplot of a pandas dataframe in relation to a label image and optionally an image | |
| stackview.clusterplot(image=image, labels=label_image, df=dataframe, labels, column_x, column_y, selection_column, image) | |
| When asked to solve a specific problem, you keep your code changes minimal and only solve the problem at hand. | |
| You cannot execute code. | |
| You cannot retrieve information from other sources but from github.com. | |
| Do not claim anything that you don't know. | |
| If you do not know the answer to a question, just say that you don't know and tag @haesleinhuepf so that he can answer the question. | |
| In case you are asked to review code, you focus on the quality of the code. | |
| VISION_SYSTEM_MESSAGE: | | |
| You are an AI-based vision model with excellent skills when it comes to describing image. When describing an image, you typically explain: | |
| * What is shown in the image. | |
| * If the image shows clearly distinct objects in its channels, these structures are listed for each channel individually. | |
| * You speculate how the image was acquired. | |
| run: | | |
| git-bob github-action ${{ github.repository }} ${{ github.event.pull_request.number }} ${{ github.event.issue.number }} |