Skip to content

Commit

Permalink
Merge pull request #451 from rafalkowalewski1/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
rafalkowalewski1 authored Jun 6, 2024
2 parents 6a37c17 + 82301f5 commit 745d452
Show file tree
Hide file tree
Showing 8 changed files with 554 additions and 205 deletions.
6 changes: 5 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.10"
python:
version: 3.10
install:
- method: pip
- path: .

# Build documentation in the "docs/" directory with Sphinx
sphinx:
Expand Down
10 changes: 8 additions & 2 deletions changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@ Changelog

Last change: 22-FEB-2024 MTS

0.6.9
-----
0.6.9 - 0.6.10
--------------
- Added the option to draw polygon picks in Picasso: Render
- Save pick properties in Picasso: Render saves areas of picked regions in nm^2
- Calibration .yaml file saves number of frames and step size in nm
- ``picasso.lib.merge_locs`` function can merge localizations from multiple files
- Mask dialog in Picasso: Render saves .png mask files
- Mask dialog in Picasso: Render allows to save .png with the blurred image
- Picasso: Localize - added the option to save the current view as a .png file
- Picasso:Render - functions related to picking moved to ``picasso.lib`` and ``picasso.postprocess``

0.6.6 - 0.6.8
-------------
Expand Down
6 changes: 4 additions & 2 deletions picasso/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,17 @@ def _hdf2csv(path):
paths = glob(path)
if paths:
import os.path
from .io import load_locs

for path in _tqdm(paths):
base, ext = os.path.splitext(path)
if ext == ".hdf5":
print("Converting {}".format(path))
out_path = base + ".csv"
locs = pd.read_hdf(path)
locs = load_locs(path)[0]
df = pd.DataFrame(locs)
print("A total of {} rows loaded".format(len(locs)))
locs.to_csv(out_path, sep=",", encoding="utf-8")
df.to_csv(out_path, sep=",", encoding="utf-8")
print("Complete.")


Expand Down
3 changes: 2 additions & 1 deletion picasso/gui/localize.py
Original file line number Diff line number Diff line change
Expand Up @@ -1804,11 +1804,12 @@ def export_current(self):
self, "Save image", out_path, filter="*.png;;*.tif"
)
if path:
qimage = QtGui.QImage(self.view.viewport().size(), QtGui.QImage.Format_RGB32)
qimage = QtGui.QImage(self.view.size(), QtGui.QImage.Format_RGB32)
painter = QtGui.QPainter(qimage)
self.view.render(painter)
painter.end()
qimage.save(path)
# self.view.scene().save_image(path)
self.view.setMinimumSize(1, 1)

def save_locs(self, path):
Expand Down
Loading

0 comments on commit 745d452

Please sign in to comment.