Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
pull_request:
branches:
- 'master'
- 'release-v1'
paths:
- '**'

Expand Down Expand Up @@ -42,7 +43,7 @@ jobs:
os: ubuntu-latest
test-id: include
- julia-version: '1'
python-version: '3.8'
python-version: '3.9'
os: ubuntu-latest
test-id: include

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/CI_Windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
pull_request:
branches:
- 'master'
- 'release-v1'
paths:
- '**'

Expand All @@ -23,7 +24,9 @@ jobs:
shell: bash
strategy:
matrix:
julia-version: ['1']
# Pin Julia for release-v1: SymbolicRegression v1.x has intermittent worker crashes
# on Windows with the latest Julia ("1"), which currently resolves to 1.12.x.
julia-version: ['1.11']
python-version: ['3.13']
os: [windows-latest]

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI_apptainer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
pull_request:
branches:
- 'master'
- 'release-v1'
paths:
- '**'

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
pull_request:
branches:
- 'master'
- 'release-v1'
paths:
- '**'

Expand Down
1 change: 1 addition & 0 deletions .github/workflows/CI_mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
pull_request:
branches:
- 'master'
- 'release-v1'
paths:
- '**'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: "CodeQL"

on:
push:
branches: [ "master" ]
branches: [ "master", "release-v1" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
branches: [ "master", "release-v1" ]
schedule:
- cron: '28 17 * * 1'

Expand Down
6 changes: 4 additions & 2 deletions pysr/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import copy
from collections.abc import Callable
from typing import Any, cast

import numpy as np
import pandas as pd
Expand Down Expand Up @@ -82,9 +83,10 @@ def add_export_formats(
index=output.index,
)

exports_any = cast(Any, exports)
if output_jax_format:
exports["jax_format"] = jax_format
exports_any["jax_format"] = jax_format
if output_torch_format:
exports["torch_format"] = torch_format
exports_any["torch_format"] = torch_format

return exports
Loading