Skip to content

Commit 3aa4a3e

Browse files
Update dependency numpy to v2 (#574)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Eu Pin Tien <eu-pin.tien@diamond.ac.uk>
1 parent 9eec68f commit 3aa4a3e

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ server = [
5858
"ispyb>=10.2.4", # Responsible for setting requirements for SQLAlchemy and mysql-connector-python;
5959
"jinja2",
6060
"mrcfile",
61-
"numpy<2",
61+
"numpy<3",
6262
"packaging",
6363
"passlib",
6464
"pillow",

src/murfey/workflows/spa/picking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def _register_picked_particles_use_diameter(message: dict, _db: Session):
113113
picking_db = _db.exec(
114114
select(ParticleSizes.particle_size).where(ParticleSizes.pj_id == pj_id)
115115
).all()
116-
particle_diameter = np.quantile(list(picking_db), 0.75)
116+
particle_diameter = float(np.quantile(list(picking_db), 0.75))
117117
relion_params.particle_diameter = particle_diameter
118118
_db.add(relion_params)
119119
_db.commit()

src/murfey/workflows/tomo/tomo_metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,15 +351,15 @@ def register_batch_position_in_database(
351351
search_map.width / 2,
352352
search_map.height / 2,
353353
]
354-
tilt_series.x_location = (
354+
tilt_series.x_location = float(
355355
(
356356
centre_batch_pixel[0]
357357
- batch_parameters.x_beamshift / search_map.pixel_size
358358
)
359359
* 512
360360
/ search_map.width
361361
)
362-
tilt_series.y_location = (
362+
tilt_series.y_location = float(
363363
(
364364
centre_batch_pixel[1]
365365
+ batch_parameters.y_beamshift / search_map.pixel_size

0 commit comments

Comments
 (0)