Skip to content

Commit

Permalink
Remove all Python-related code (#290)
Browse files Browse the repository at this point in the history
* Remove legacy example data

* Remove kde and summarystats from API

These will be added back later

* Remove plotting functions from API

* Remove rcparams code

If desired, this functionality could be later be provided by Preferences.jl

* Remove conversions of ELPD results to Python

* Remove automatic conversions to xarray types

* Remove Python-specific utilities

* Remove Python setup code

* Don't load PyCall

* Remove extraneous load

* Don't load Python

* Remove unused DataFrames dependency

* Remove Python as dependency

* Remove futures workflow

* Remove installation of Python deps

* Use new Julia cache workflow

* Update docs to note we no longer wrap Python arviz

* Fix URL

* Don't install Python deps in Invalidations workflow

* Only run CI on ubuntu
  • Loading branch information
sethaxen authored Jul 28, 2023
1 parent 1b30aa4 commit 900b497
Show file tree
Hide file tree
Showing 39 changed files with 10 additions and 2,642 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/Invalidations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
PYTHON: "Conda" # use Julia's packaged Conda build for installing packages

jobs:
evaluate:
# Only run on PRs to the default branch.
Expand All @@ -20,21 +17,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: julia-actions/setup-julia@v1
with:
version: '1'
- uses: actions/checkout@v3
- uses: julia-actions/julia-buildpkg@v1
- name: Install ArviZ dependencies
run: |
using Pkg
Pkg.instantiate()
using Conda
# https://discourse.julialang.org/t/conda-not-installing-matplotlib-for-pyplot/96813/2
Conda.add("conda==23.1.0")
using ArviZ
ArviZ.initialize_arviz()
ArviZ.initialize_pandas()
shell: julia --color=yes --project {0}
- uses: julia-actions/julia-invalidations@v1
id: invs_pr

Expand Down
38 changes: 3 additions & 35 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,15 @@ on:
schedule:
- cron: "0 0 * * *"

env:
PYTHON: "Conda" # use Julia's packaged Conda build for installing packages

jobs:
test:
name: Julia ${{ matrix.julia-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
julia-version: ["1"]
os: [ubuntu-latest, windows-latest, macOS-latest]
include:
- julia-version: "1.6"
os: ubuntu-latest
julia-version: ["1", "1.6"]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: r-lib/actions/setup-r@v2
Expand All @@ -41,34 +35,8 @@ jobs:
with:
version: ${{ matrix.julia-version }}
arch: x64
- name: Cache Julia artifacts
uses: actions/cache@v2
env:
cache-name: cache-artifacts
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
- name: Install wget for windows
if: matrix.os == 'windows-latest'
uses: crazy-max/ghaction-chocolatey@v2
with:
args: install wget
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@latest
- name: Install ArviZ dependencies
run: |
using Pkg
Pkg.instantiate()
using Conda
# https://discourse.julialang.org/t/conda-not-installing-matplotlib-for-pyplot/96813/2
Conda.add("conda==23.1.0")
using ArviZ
ArviZ.initialize_arviz()
ArviZ.initialize_pandas()
shell: julia --color=yes --project {0}
- uses: julia-actions/julia-runtest@latest
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
Expand Down
16 changes: 1 addition & 15 deletions .github/workflows/documenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
pull_request:

env:
PYTHON: "Conda" # use Julia's packaged Conda build for installing packages
CMDSTAN_VERSION: "2.25.0"
CMDSTAN_PATH: "${{ GITHUB.WORKSPACE }}/.cmdstan/"
JULIA_NUM_THREADS: 2
Expand All @@ -18,12 +17,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
- name: Cache CmdStan
id: cache-cmdstan
uses: actions/cache@v2
with:
path: ${{ env.CMDSTAN_PATH }}
key: cmdstan-${{ env.CMDSTAN_VERSION }}-${{ runner.os }}
- uses: julia-actions/cache@v1
- name: Download and build CmdStan
if: steps.cache-cmdstan.outputs.cache-hit != 'true'
run: |
Expand All @@ -32,14 +26,6 @@ jobs:
make -C ${{ env.CMDSTAN_PATH }}/cmdstan-${{ env.CMDSTAN_VERSION }}/ build
shell: bash
- uses: julia-actions/julia-buildpkg@latest
- name: Setup Conda
run: |
using Pkg
Pkg.instantiate()
using Conda
# https://discourse.julialang.org/t/conda-not-installing-matplotlib-for-pyplot/96813/2
Conda.add("conda==23.1.0")
shell: julia --color=yes --project {0}
- uses: julia-actions/julia-docdeploy@v1
env:
JULIA_CMDSTAN_HOME: ${{ env.CMDSTAN_PATH }}/cmdstan-${{ env.CMDSTAN_VERSION }}/ # required by CmdStan.jl
Expand Down
69 changes: 0 additions & 69 deletions .github/workflows/futures.yml

This file was deleted.

12 changes: 0 additions & 12 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,13 @@ authors = ["Seth Axen <[email protected]>"]
version = "0.9.0-DEV"

[deps]
Conda = "8f4d0f93-b110-5947-807f-2305c1781a2d"
DataDeps = "124859b0-ceae-595e-8997-d05f6a7a8dfe"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
DataInterpolations = "82cc6244-b520-54b8-b5a6-8a565e85f1d0"
Dates = "ade2ca70-3891-5945-98fb-dc099432e06a"
DimensionalData = "0703355e-b756-11e9-17c0-8b28908087d0"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
InferenceObjects = "b5cf5a8d-e756-4ee3-b014-01d49d192c00"
IteratorInterfaceExtensions = "82899510-4779-5014-852e-03e436cf321d"
JSON3 = "0f8b85d8-7281-11e9-16c2-39a750bddbf1"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
LogExpFunctions = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
MCMCDiagnosticTools = "be115224-59cd-429b-ad48-344e309966f0"
Expand All @@ -24,8 +20,6 @@ OrderedCollections = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
PSIS = "ce719bf2-d5d0-4fb9-925d-10a81b42ad04"
PrettyTables = "08abe8d2-0d0c-5749-adfa-8a2ac140af0d"
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
PyCall = "438e738f-606a-5dbb-bf0a-cddfbfd45ab0"
PyPlot = "d330b81b-6aea-500a-939a-2ce795aea3ee"
REPL = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
Requires = "ae029012-a4dd-5104-9daa-d747884805df"
Expand All @@ -36,24 +30,18 @@ TableTraits = "3783bdb8-4a98-5b6b-af9a-565f29a5fe9c"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"

[compat]
Conda = "1.0"
DataDeps = "0.7"
DataFrames = "0.20, 0.21, 0.22, 1.0"
DataInterpolations = "4"
DimensionalData = "0.23, 0.24"
Distributions = "0.21, 0.22, 0.23, 0.24, 0.25"
DocStringExtensions = "0.8, 0.9"
InferenceObjects = "0.3.10"
IteratorInterfaceExtensions = "0.1.1, 1"
JSON3 = "1"
LogExpFunctions = "0.2.0, 0.3"
MCMCDiagnosticTools = "0.3.4"
Optim = "1"
OrderedCollections = "1"
PSIS = "0.9.1"
PrettyTables = "2.1, 2.2"
PyCall = "1.91.2"
PyPlot = "2.8.2"
Requires = "0.5.2, 1.0"
Setfield = "1"
StatsBase = "0.32, 0.33, 0.34"
Expand Down
6 changes: 0 additions & 6 deletions deps/build.jl

This file was deleted.

129 changes: 0 additions & 129 deletions deps/data/example_data/.gitignore

This file was deleted.

Loading

0 comments on commit 900b497

Please sign in to comment.