Skip to content
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
14 changes: 14 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@
skipped and listed (#208)
- fix: copying the statistics in the Quick View to the clipboard
raised an AttributeError (`QtWidgets.qApp` does not exist in PyQt6)
- fix: the button for selecting box filters in the Filter tab was
renamed to "Choose filters..." after editing box filters
- fix: the help button of the statistical significance dialog
opened the dclab documentation instead of the R-lme4 quick guide
- enh: user-defined default settings for new plots ("Save as default"
in the plot settings) and default Young's modulus viscosity model
and look-up table for new datasets (preferences) (#129)
Expand All @@ -34,6 +38,8 @@
- enh: show warnings about an inaccurate Young's modulus (events
outside of the look-up table, temperature outside of the range of
the viscosity model) in the plots (#144)
- enh: help links for fluorescence crosstalk correction (Dataset tab)
and S3 basins (preferences)
- docs: add quick guide for fluorescence crosstalk correction (#120)
- docs: screenshot scripts download missing datasets from figshare
and use the icon theme of DCscope
Expand All @@ -49,6 +55,14 @@
- docs: the legend of the fluorescence traces can be moved (#201)
- docs: fix typos and grammar in the documentation, docstrings, and
user interface texts
- setup: require Python 3.10 or newer (required by dclab and pyqtgraph)
- docs: update outdated information (Python version, update opt-out,
macOS installers, GUI development, porosity definition, viscosity
model temperature ranges) and document missing features (Preferences,
viscosity model and LUT selection, Young's modulus plot warnings,
encrypted DCOR access tokens, S3 basins, Quick View, Filter, Plot,
and Block Matrix options)
- docs: link to the dclab documentation where applicable
2.28.4
- setup: bump dclab to 0.73.0 (chopped image basins support)
2.28.3
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The documentation, including the code reference and examples, is available at

Installation
------------
Installers for Windows and macOS are available at the `release page <https://github.com/DC-analysis/DCscope/releases>`__.
Installers for Windows are available at the `release page <https://github.com/DC-analysis/DCscope/releases>`__.

If you have Python 3 installed, you can install DCscope with

Expand Down
2 changes: 1 addition & 1 deletion dcscope/gui/analysis/ana_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ def on_moreless(self):
rc.ui.doubleSpinBox_min.setEnabled(True)
rc.ui.doubleSpinBox_max.setEnabled(True)
rc.ui.range_slider.setEnabled(True)
self.ui.toolButton_moreless.setText("Choose filters...")
self.ui.toolButton_moreless.setText("Select box filters...")
self.ui.label_box_edit.setVisible(False)
self._box_edit_view = False
# Update box filter ranges
Expand Down
2 changes: 1 addition & 1 deletion dcscope/gui/analysis/ana_slot.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def write_pipeline_state(self, state):
self.ui.comboBox_medium.setEnabled(False) # prevent modification
else:
self.ui.comboBox_medium.setEnabled(True) # user-defined
# https://dclab.readthedocs.io/en/latest/sec_av_emodulus.html
# https://dclab.readthedocs.io/en/stable/sec_av_emodulus/
scenario = emodulus.get("emodulus scenario", "manual")
if scenario:
idx_scen = self.ui.comboBox_temp.findData(scenario)
Expand Down
6 changes: 6 additions & 0 deletions dcscope/gui/analysis/ana_slot_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@ def setupUi(self, Form):
self.gridLayout_3.addWidget(self.label_from_fl3, 3, 0, 1, 1)
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Policy.Expanding, QtWidgets.QSizePolicy.Policy.Minimum)
self.gridLayout_3.addItem(spacerItem3, 0, 4, 1, 1)
self.label_ct_help = QtWidgets.QLabel(parent=self.groupBox_fl_cross)
self.label_ct_help.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
self.label_ct_help.setOpenExternalLinks(True)
self.label_ct_help.setObjectName("label_ct_help")
self.gridLayout_3.addWidget(self.label_ct_help, 0, 5, 1, 1)
self.doubleSpinBox_ct12 = QtWidgets.QDoubleSpinBox(parent=self.groupBox_fl_cross)
self.doubleSpinBox_ct12.setDecimals(3)
self.doubleSpinBox_ct12.setMaximum(1.0)
Expand Down Expand Up @@ -334,6 +339,7 @@ def retranslateUi(self, Form):
self.label_to_fl3.setText(_translate("Form", "to FL-3"))
self.label_from_fl1.setText(_translate("Form", "from FL-1"))
self.label_from_fl3.setText(_translate("Form", "from FL-3"))
self.label_ct_help.setText(_translate("Form", "<a href=\"https://dcscope.readthedocs.io/en/stable/sec_qg_fl_crosstalk.html\"> help </a>"))
self.pushButton_ct_apply_all.setToolTip(_translate("Form", "Set these crosstalk values for all datasets in the session (other changes in this tab are not applied)"))
self.pushButton_ct_apply_all.setText(_translate("Form", "Apply crosstalk to all datasets"))
self.groupBox_fl_labels.setToolTip(_translate("Form", "Choose user-defined labels that will be used for axes labels."))
Expand Down
2 changes: 1 addition & 1 deletion dcscope/gui/compute/comp_lme4.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ def on_close(self):
def on_help(self):
"""Show DCscope docs"""
webbrowser.open(
"https://dclab.readthedocs.io/en/stable/sec_av_lme4.html")
"https://dcscope.readthedocs.io/en/stable/sec_qg_lme4.html")
6 changes: 3 additions & 3 deletions dcscope/gui/export/e2data_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ def retranslateUi(self, Dialog):
self.radioButton_tsv.setText(_translate("Dialog", "tab-separated values (*.tsv)"))
self.radioButton_avi.setText(_translate("Dialog", "Video file"))
self.label_4.setText(_translate("Dialog", "Storage strategy:"))
self.comboBox_storage.setItemText(0, _translate("Dialog", "No basins: Store only the selected feature data (legacy behavior)"))
self.comboBox_storage.setItemText(1, _translate("Dialog", "With basins: Store features, refer to the original file (recommended)"))
self.comboBox_storage.setItemText(2, _translate("Dialog", "Basins only: Do not store features, refer to original file (fast)"))
self.comboBox_storage.setItemText(0, _translate("Dialog", "No basins: Store only selected features (legacy behavior)"))
self.comboBox_storage.setItemText(1, _translate("Dialog", "With basins: Store features, link to original data (recommended)"))
self.comboBox_storage.setItemText(2, _translate("Dialog", "Only basins: Do not store features, link to original data (fast)"))
self.label_8.setText(_translate("Dialog", "Choose the video export settings below. Note that using (even) uncompressed codecs results in information loss (expect grayscale value differences up to 5). You should use exported videos for presentation purposes only."))
self.label_6.setText(_translate("Dialog", "Format"))
self.comboBox_format.setItemText(0, _translate("Dialog", "AVI"))
Expand Down
5 changes: 5 additions & 0 deletions dcscope/gui/preferences_ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ def setupUi(self, Dialog):
self.lineEdit_s3_secret_access_key.setObjectName("lineEdit_s3_secret_access_key")
self.formLayout_3.setWidget(2, QtWidgets.QFormLayout.ItemRole.FieldRole, self.lineEdit_s3_secret_access_key)
self.verticalLayout_9.addLayout(self.formLayout_3)
self.label_s3_help = QtWidgets.QLabel(parent=self.tab_s3)
self.label_s3_help.setOpenExternalLinks(True)
self.label_s3_help.setObjectName("label_s3_help")
self.verticalLayout_9.addWidget(self.label_s3_help)
spacerItem4 = QtWidgets.QSpacerItem(20, 281, QtWidgets.QSizePolicy.Policy.Minimum, QtWidgets.QSizePolicy.Policy.Expanding)
self.verticalLayout_9.addItem(spacerItem4)
self.tabWidget.addTab(self.tab_s3, "")
Expand Down Expand Up @@ -376,6 +380,7 @@ def retranslateUi(self, Dialog):
self.label_9.setText(_translate("Dialog", "Secret Access Key"))
self.lineEdit_s3_secret_access_key.setToolTip(_translate("Dialog", "This is the secret access key matching the Access Key ID"))
self.lineEdit_s3_secret_access_key.setPlaceholderText(_translate("Dialog", "e.g. a3a4862a92643be730c946d267015e20"))
self.label_s3_help.setText(_translate("Dialog", "<a href=\"https://dcscope.readthedocs.io/en/stable/sec_qg_dcor.html#sec-qg-dcor-s3\">What are S3 basins?</a>"))
self.tabWidget.setTabText(self.tabWidget.indexOf(self.tab_s3), _translate("Dialog", "S3 basins"))
self.label.setText(_translate("Dialog", "R executable"))
self.pushButton_lme4_search.setText(_translate("Dialog", "Search manually..."))
Expand Down
4 changes: 2 additions & 2 deletions dcscope/pipeline/dataslot.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def __init__(self, path, identifier=None):
"emodulus enabled": is_channel, # False for reservoir
"emodulus lut": "LE-2D-FEM-19",
"emodulus medium": "undefined",
# https://dclab.readthedocs.io/en/latest/sec_av_emodulus.html
# https://dclab.readthedocs.io/en/stable/sec_av_emodulus/
# possible values are:
# - "feature": scenario A
# - None: scenario B ("emodulus medium" is "other" or user-def)
Expand Down Expand Up @@ -116,7 +116,7 @@ def _set_emodulus_config(self, dataset):
"""Set the Young's modulus data options

The three cases in the dclab docs apply:
https://dclab.readthedocs.io/en/latest/sec_av_emodulus.html
https://dclab.readthedocs.io/en/stable/sec_av_emodulus/
"""
# remove any information
for key in self.config["emodulus"]:
Expand Down
6 changes: 4 additions & 2 deletions docs/README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
DCscope documentation
=======================
Building the documentation of DCscope requires Python 3.
To install the requirements for building the documentation, run
Building the documentation of DCscope requires Python 3.10 or newer.
To install DCscope and the requirements for building the documentation,
run (in the `docs` directory)

pip install -e ..
pip install -r requirements.txt

To compile the documentation, run
Expand Down
4 changes: 2 additions & 2 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@
# Example configuration for intersphinx: refer to the Python standard library.
intersphinx_mapping = {
"python": ('https://docs.python.org/', None),
"numpy": ('http://docs.scipy.org/doc/numpy', None),
"numpy": ('https://numpy.org/doc/stable/', None),
"scipy": ('https://docs.scipy.org/doc/scipy/reference/', None),
"dclab": ('http://dclab.readthedocs.io/en/stable', None),
"dclab": ('https://dclab.readthedocs.io/en/stable', None),
}
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
dclab>=0.58.2
dclab>=0.75.0
h5py
matplotlib
numpy
Expand Down
25 changes: 10 additions & 15 deletions docs/sec_devs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ GUI development
===============
DCscope is based on the `Qt6 <https://doc.qt.io/qt-6>`_ framework.
This means you can use `QtCreator/QtDesigner <https://www.youtube.com/watch?v=ot94H3-d5d8>`_
to graphically design the `.ui` files that are then loaded when starting DCscope.
to graphically design the user interface. The `.ui` files are located in the
`ui` directory in the root of the repository.
We use `PyQt6` (not `PySide6`) to interface with Qt.

Note that for some reason, new versions of QtDesigner produce .ui files
Expand All @@ -90,17 +91,11 @@ Python code). As a result, we have to use QtCreator 8 in order for things
to work (If you have a better solution, please let us know.):
https://github.com/qt-creator/qt-creator/releases/tag/v8.0.2

The .ui files are loaded directly into DCscope and are not (as it is
shown in many tutorials) converted to .py files and added to git versioning.
If this annoys you, because it makes your development experience (e.g. code
completion) unbearable: Feel free to scratch that itch and migrate DCscope
to the .py-style scheme. The only requirements for that to be merged are:

- put all .ui files in a directory called `ui` in the root of the repository
- make sure the .ui files are included in the .tar.gz Python source distributable
- write a script that automatically converts all .ui files to .py files in
the correct locations
- exclude the automatically generated .py files from linting
- add a GitHub Action that makes sure that changes in the .ui files
are reflected in the .py files (to prevent a developer from forgetting
to build the .py files)
The .ui files are converted to Python files (`*_ui.py`) in the
corresponding locations in the `dcscope/gui` directory with the
`ui/run_uic.sh` script (which calls `pyuic6`). The generated `*_ui.py`
files are committed to the repository and excluded from linting.
Whenever you modify a .ui file, run `ui/run_uic.sh` and commit the
resulting changes in the `*_ui.py` files as well. Never edit the
`*_ui.py` files by hand, because your changes will be overwritten the
next time the script is run.
19 changes: 10 additions & 9 deletions docs/sec_getting_started.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ DCscope can be installed via multiple channels.
(i.e. ``DCscope_X.Y.Z_win_64bit_setup.exe``) from the official
`release page <https://github.com/DC-analysis/DCscope/releases/latest>`__.

2. **Python 3.8 with pip:** DCscope can easily be installed with
2. **Python 3.10 or newer with pip:** DCscope can easily be installed with
`pip <https://pip.pypa.io/en/stable/quickstart/>`__:

.. code:: bash
Expand All @@ -35,16 +35,15 @@ DCscope can be installed via multiple channels.

Update
======
DCscope automatically searches for updates (you may opt out via the
Help menu) and notifies the user when a new version is available.
DCscope automatically searches for updates and notifies the user when a
new version is available. You may opt out by unchecking *Check for updates
on startup* in the *General* tab of the :ref:`preferences <sec_preferences>`
(*Edit | Preferences*).

1. **Windows installer:** The older version of DCscope will be
automatically uninstalled when installing a new version.

2. **macOS:** The older version of DCscope will be
automatically uninstalled when installing a new version.

3. **Python 3.8 and pip:**
2. **Python 3.10 or newer with pip:**

.. code:: bash

Expand All @@ -61,8 +60,10 @@ If you have **.tdms-based datasets** (created using antique versions of Shape-In
you can still use the data after you have converted them to .rtdc files using
`DCKit <https://github.com/DC-analysis/DCKit/releases/latest>`_,
which provides a convenient GUI for several other RT-DC data
management tasks as well. The .rtdc file format is faster than the .tdms file
format, occupies less disk space, and consists of only one file per measurement.
management tasks as well, or using the command-line tool
:ref:`dclab-tdms2rtdc <dclab:sec_tdms2rtdc>`. The .rtdc file format is
faster than the .tdms file format, occupies less disk space, and consists
of only one file per measurement.

If you have **raw .rtdc files** that only contain the recorded images and no
extracted events, you can perform segmentation and feature extraction using
Expand Down
Loading
Loading