diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml new file mode 100644 index 00000000..90dc1009 --- /dev/null +++ b/.github/workflows/TagBot.yml @@ -0,0 +1,33 @@ +name: TagBot +on: + issue_comment: + types: + - created + workflow_dispatch: + inputs: + lookback: + default: 3 +permissions: + actions: read + checks: read + contents: write + deployments: read + issues: read + discussions: read + packages: read + pages: read + pull-requests: read + repository-projects: read + security-events: read + statuses: read +jobs: + TagBot: + if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' + runs-on: ubuntu-latest + steps: + - uses: JuliaRegistries/TagBot@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + # Edit the following line to reflect the actual name of the GitHub Secret containing your private key + ssh: ${{ secrets.DOCUMENTER_KEY }} + # ssh: ${{ secrets.NAME_OF_MY_SSH_PRIVATE_KEY_SECRET }} diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 402d3714..9146414c 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -20,12 +20,11 @@ jobs: - uses: julia-actions/setup-julia@v1 with: version: '1' - - name: Add General and DanielIngrahamRegistry + - name: Add General shell: julia --color=yes {0} run: | using Pkg Pkg.Registry.add(RegistrySpec(url="https://github.com/JuliaRegistries/General")) - Pkg.Registry.add(RegistrySpec(url="https://github.com/dingraha/DanielIngrahamRegistry")) env: JULIA_PKG_USE_CLI_GIT: 'true' - name: Install dependencies diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 28e87890..b39cfde0 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -17,7 +17,6 @@ jobs: matrix: version: - '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia. - - 'nightly' os: - ubuntu-latest arch: @@ -28,12 +27,11 @@ jobs: with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - name: Add General and DanielIngrahamRegistry + - name: Add General shell: julia --color=yes {0} run: | using Pkg Pkg.Registry.add(RegistrySpec(url="https://github.com/JuliaRegistries/General")) - Pkg.Registry.add(RegistrySpec(url="https://github.com/dingraha/DanielIngrahamRegistry")) env: JULIA_PKG_USE_CLI_GIT: 'true' - uses: julia-actions/julia-runtest@v1 diff --git a/Project.toml b/Project.toml index 7d632d48..107b28f3 100644 --- a/Project.toml +++ b/Project.toml @@ -1,7 +1,7 @@ name = "AcousticAnalogies" uuid = "e71b3392-1e0c-4536-b366-2bd1fce6fba0" authors = ["Ingraham, Daniel James (GRC-LTV0) "] -version = "0.7.1" +version = "0.7.2" [deps] AcousticMetrics = "046f749b-9c1e-43ca-86bc-6902340f753e" diff --git a/docs/src/guided_example.md b/docs/src/guided_example.md index bfd1e53d..2062aa24 100644 --- a/docs/src/guided_example.md +++ b/docs/src/guided_example.md @@ -222,7 +222,7 @@ one for which the fluid medium (air) appears to be stationary. This involves just setting the position and loading components of each `CompactSourceElement` to the correct values (`y0dot` through `y3dot` and `f0dot` and `f1dot`). This could be done manually, but it's easier to use the -[KinematicCoordinateTransformations.jl](https://github.com/dingraha/KinematicCoordinateTransformations.jl) +[KinematicCoordinateTransformations.jl](https://github.com/OpenMDAO/KinematicCoordinateTransformations.jl) package. The first transformation we need to perform is a steady rotation around the x diff --git a/docs/src/index.md b/docs/src/index.md index 3072411e..959e779b 100644 --- a/docs/src/index.md +++ b/docs/src/index.md @@ -42,7 +42,7 @@ CurrentModule = AADocs * Thoroughly tested: unit tests for everything, and multiple comparisons of the entire calculation to equivalent methods in NASA's ANOPP2 code. * Convenient, fast coordinate system transformations through - [KinematicCoordinateTransformations.jl](https://github.com/dingraha/KinematicCoordinateTransformations.jl). + [KinematicCoordinateTransformations.jl](https://github.com/OpenMDAO/KinematicCoordinateTransformations.jl). * Written in pure Julia, and compatible with automatic differentiation (AD) tools like [ForwardDiff.jl](https://github.com/JuliaDiff/ForwardDiff.jl). * Comprehensive docs (TODO). diff --git a/src/utils.jl b/src/utils.jl index 54ccb6e8..9f057680 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -10,10 +10,10 @@ Assume the interfaces between elements are midway between adjacent element's mid function get_dradii(radii, Rhub, Rtip) # How do I get the radial spacing? Well, for the inner elements, I'll just # assume that the interfaces are midway in between the centers. - r_interface = 0.5.*(radii[1:end-1] .+ radii[2:end]) + r_interface = 0.5.*(radii[begin:end-1] .+ radii[begin+1:end]) # Then just say that the blade begins at Rhub, and ends at Rtip. r_interface = vcat([Rhub], r_interface, [Rtip]) # And now the distance between interfaces is the spacing. - dradii = r_interface[2:end] .- r_interface[1:end-1] + dradii = r_interface[begin+1:end] .- r_interface[begin:end-1] return dradii end