Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove x86 pin in env build #52

Merged
merged 3 commits into from
Jul 29, 2024
Merged
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
1 change: 0 additions & 1 deletion .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ jobs:
python-version: ${{ matrix.python-version }}
environment-file: devtools/conda-envs/test_env.yaml
add-pip-as-python-dependency: true
architecture: x64

miniforge-variant: Mambaforge
use-mamba: true
Expand Down
18 changes: 9 additions & 9 deletions transport_analysis/tests/test_velocityautocorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ def test_self_diffusivity_step_vtraj_all_dims(
sd_actual = v_simple.self_diffusivity_gk()
sd_expected = (
integrate.simpson(
characteristic_poly(NSTEP, tdim_factor), range(NSTEP)
y=characteristic_poly(NSTEP, tdim_factor), x=range(NSTEP)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is an uneducated attempt at a fix (I understand the Python, I don't really use Simpson-based integration regularly enough to know it's doing the right thing).

)
/ tdim_factor
)
Expand All @@ -398,8 +398,8 @@ def test_self_diffusivity_start_stop_step_all_dims(
)
sd_expected = (
integrate.simpson(
characteristic_poly(NSTEP, tdim_factor)[tstart:tstop:tstep],
range(NSTEP)[tstart:tstop:tstep],
y=characteristic_poly(NSTEP, tdim_factor)[tstart:tstop:tstep],
x=range(NSTEP)[tstart:tstop:tstep],
)
/ tdim_factor
)
Expand Down Expand Up @@ -494,7 +494,7 @@ def test_fft_self_diffusivity_step_vtraj_all_dims(
sd_actual = v_fft.self_diffusivity_gk()
sd_expected = (
integrate.simpson(
characteristic_poly(NSTEP, tdim_factor), range(NSTEP)
y=characteristic_poly(NSTEP, tdim_factor), x=range(NSTEP)
)
/ tdim_factor
)
Expand All @@ -521,8 +521,8 @@ def test_fft_self_diffusivity_start_stop_step_all_dims(
)
sd_expected = (
integrate.simpson(
characteristic_poly(NSTEP, tdim_factor)[tstart:tstop:tstep],
range(NSTEP)[tstart:tstop:tstep],
y=characteristic_poly(NSTEP, tdim_factor)[tstart:tstop:tstep],
x=range(NSTEP)[tstart:tstop:tstep],
)
/ tdim_factor
)
Expand All @@ -539,7 +539,7 @@ def test_fft_self_diffusivity_odd_step_vtraj_all_dims(
sd_actual = v_fft.self_diffusivity_gk_odd()
sd_expected = (
integrate.trapezoid(
characteristic_poly(NSTEP, tdim_factor), range(NSTEP)
y=characteristic_poly(NSTEP, tdim_factor), x=range(NSTEP)
)
/ tdim_factor
)
Expand All @@ -566,8 +566,8 @@ def test_fft_self_diffusivity_odd_start_stop_step_all_dims(
)
sd_expected = (
integrate.trapezoid(
characteristic_poly(NSTEP, tdim_factor)[tstart:tstop:tstep],
range(NSTEP)[tstart:tstop:tstep],
y=characteristic_poly(NSTEP, tdim_factor)[tstart:tstop:tstep],
x=range(NSTEP)[tstart:tstop:tstep],
)
/ tdim_factor
)
Expand Down
4 changes: 2 additions & 2 deletions transport_analysis/velocityautocorr.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ def self_diffusivity_gk_odd(self, start=0, stop=0, step=1):

return (
integrate.simpson(
self.results.timeseries[start:stop:step],
self.times[start:stop:step],
y=self.results.timeseries[start:stop:step],
x=self.times[start:stop:step],
)
/ self.dim_fac
)
Expand Down
Loading