Skip to content

Commit

Permalink
Fix UML permissions from forks / Run only on merge to main (#967)
Browse files Browse the repository at this point in the history
* change repo and python file change to kick off

* comment to check for failure

* using the repo

* delete to trigger

* the previous trigger

* push up again

* check for the owner being pymc-labs

* remove unused

* only run after merge to main
  • Loading branch information
wd60622 authored and twiecki committed Sep 10, 2024
1 parent 886342d commit 671ed14
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 6 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/uml.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
name: Update the UML Diagrams

on:
pull_request:
branches: [main]
paths:
- "pymc_marketing/**"
push:
types: [closed]
branches: [main]
paths:
- "pymc_marketing/**"

jobs:
build:
if: github.event.pull_request.head.repo.owner.login == 'pymc-labs'
runs-on: ubuntu-latest
permissions: write-all
steps:
Expand Down
Binary file modified docs/source/uml/classes_clv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/source/uml/classes_mmm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/source/uml/packages_clv.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/source/uml/packages_mmm.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 3 additions & 2 deletions pymc_marketing/prior.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
)
Create a transformed hierarchical normal prior by using the `transform`
parameter.
parameter. Here the "sigmoid" transformation comes from `pm.math`.
.. code-block:: python
Expand Down Expand Up @@ -242,7 +242,8 @@ class Prior:
Only allowed for Normal distribution.
transform : str, optional
The name of the transform to apply to the variable after it is
created, by default None or no transform.
created, by default None or no transform. The transformation must
be available in either `pytensor.tensor` or `pymc.math`.
"""

Expand Down

0 comments on commit 671ed14

Please sign in to comment.