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
1 change: 1 addition & 0 deletions gallery/tutorials/tutorials/apple_picker.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

We demonstrate ASPIRE's particle picking methods using the ``Apple`` class.
"""

import logging
import os

Expand Down
1 change: 0 additions & 1 deletion gallery/tutorials/tutorials/basic_image_array.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
whiten that noise using some tools from the ASPIRE pipeline.
"""


import matplotlib.pyplot as plt
import numpy as np
from scipy.datasets import face
Expand Down
1 change: 1 addition & 0 deletions gallery/tutorials/tutorials/cov3d_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
This script illustrates the example of Covariance 3D estimation using simulation images
generated from Gaussian blob volumes.
"""

import logging

import numpy as np
Expand Down
1 change: 1 addition & 0 deletions gallery/tutorials/tutorials/preprocess_imgs_sim.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
This script illustrates the preprocess steps implemented prior to starting the pipeline of
reconstructing a 3D map using simulated 2D images.
"""

import logging
import os

Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ dependencies = [
"click",
"confuse >= 2.0.0",
"cvxpy",
# finufft 2.2.0 doesn't seemt to run on GHA Windows CI...
"finufft==2.2.0 ; sys_platform != 'win32'",
"finufft==2.1.0 ; sys_platform == 'win32'",
"finufft==2.2.0",
"gemmi >= 0.4.8",
"grpcio >= 1.54.2",
"joblib",
Expand Down
6 changes: 3 additions & 3 deletions src/aspire/basis/fpswf_2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,9 +361,9 @@ def _pswf_integration(self, images_nufft):
)
m = self.pswf_radial_quad.shape[1]
for i in range(self.n_max):
coef_vec_quad[
:, self.indices_for_n[i] + np.arange(self.numel_for_n[i])
] = np.dot(self.blk_r[i], r_n_eval_mat[i * m : (i + 1) * m, :]).T
coef_vec_quad[:, self.indices_for_n[i] + np.arange(self.numel_for_n[i])] = (
np.dot(self.blk_r[i], r_n_eval_mat[i * m : (i + 1) * m, :]).T
)

return coef_vec_quad

Expand Down
4 changes: 1 addition & 3 deletions src/aspire/image/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,9 +360,7 @@ def downsample(self, ds_res):
# crop 2D Fourier transform for each image
crop_fx = np.array([crop_pad_2d(fx[i], ds_res) for i in range(self.n_images)])
# take back to real space, discard complex part, and scale
out = np.real(fft.centered_ifft2(crop_fx)) * (
ds_res**2 / self.resolution**2
)
out = np.real(fft.centered_ifft2(crop_fx)) * (ds_res**2 / self.resolution**2)

return self.__class__(out).stack_reshape(original_stack_shape)

Expand Down
1 change: 1 addition & 0 deletions src/aspire/utils/logging.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Miscellaneous Utilities that relate to logging.
"""

import logging
import os.path
import subprocess
Expand Down
1 change: 1 addition & 0 deletions src/aspire/utils/misc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Miscellaneous Utilities that have no better place (yet).
"""

import hashlib
import importlib.resources
import logging
Expand Down
1 change: 1 addition & 0 deletions src/aspire/utils/resolution_estimation.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
This module contains code for estimating resolution achieved by reconstructions.
"""

import logging
import warnings

Expand Down