Skip to content

Commit

Permalink
Merge pull request #232 from ssciwr/v110
Browse files Browse the repository at this point in the history
Version 1.1.0
  • Loading branch information
lkeegan authored Jun 27, 2023
2 parents 54aeb0e + 38ba964 commit b1348da
Show file tree
Hide file tree
Showing 9 changed files with 120 additions and 93 deletions.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Changelog

## [1.1.0] - 2023-06-27

### Added

- option to save screenshot of results [#230](https://github.com/ssciwr/vstt/pull/230)
- optional delay before central target is displayed [#228](https://github.com/ssciwr/vstt/pull/228)

### Changed

- trial stops when maximum condition time exceeded instead of allowing trial to complete [#229](https://github.com/ssciwr/vstt/pull/229)

## [1.0.0] - 2023-06-26

First official release.
Expand Down
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ Visuomotor Serial Targeting Task (VSTT)
reference/trial-conditions
reference/statistics
reference/framerate
reference/file-formats

.. toctree::
:maxdepth: 2
Expand Down
6 changes: 4 additions & 2 deletions docs/quickstart/display-results.rst
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
Displaying results
==================

To display the results from a trial, select it from the list and click "Display Trial".
You can also display all the trials with the same conditions with "Display Condition".
To display the results from a trial, select it from the list and click "View Trial".
Alternatively click "Image Trial" to save a screenshot of these results as a png image file.
For combined results from all the trials with the same trial conditions as the selected trial,
click "View Condition" or "Image Condition".

.. figure:: images/results-list.png
:alt: Results
Expand Down
Binary file modified docs/quickstart/images/gui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/quickstart/images/results-list.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
97 changes: 7 additions & 90 deletions docs/quickstart/share-experiment.rst
Original file line number Diff line number Diff line change
@@ -1,96 +1,13 @@
Sharing experiments
===================

Experiments can be exported in different formats: psydat, Excel, and json.
Psydat is the default format used by VSTT,
which can also be opened from Python scripts or Jupyter notebooks.
The Excel and json formats are provided to allow experiments
and results to be shared, analysed and modified
without requiring the VSTT software to do so.

.. list-table:: File format comparison
:widths: 25 25 25 25
:header-rows: 1

* -
- psydat
- Excel
- json
* - Export experiment
- Yes
- Yes
- Yes
* - Import experiment
- Yes
- Yes
- Yes
* - Export results
- Yes
- Yes
- No
* - Import results
- Yes
- No
- No

psydat
------

This is the default file format, which includes the experiment results.
These files can be opened in the VSTT GUI or in Python
(see the example notebook for more information).

Excel
-----

Experiments can also be exported as Excel spreadsheets.
The first 3 pages in the spreadsheet define the experiment:
There are several ways to share experiment setups and results with others.

* metadata
* display_options
* trial_list
If they also install VSTT then you can simply share the .psydat file,
which contains both the experimental setup and any results.

These values can be edited in Excel and then the modified experiment can
be opened in the VSTT GUI (File -> Open, choose Excel as filetype).
Note that results are not imported from an Excel file.

The excel sheet also contains a statistics page with calculated statistics for each trial.
Then there is a sheet of data for each trial in the experiment with the following columns:

* timestamps
* start at 0 for each trial, increase throughout the trial
* mouse_positions_x
* x coordinate of mouse at this timestamp
* mouse_positions_y
* y coordinate of mouse at this timestamp
* i_target
* ``-99`` if no target is visible
* ``-1`` if central target is visible
* otherwise index (e.g. ``0``, ``1``, etc) of current displayed target
* target_x
* x coordinate of currently visible target
* ``-99`` if no target is visible
* target_y
* y coordinate of currently visible target
* ``-99`` if no target is visible

There is also the option to export a separate page of data for each target,
so a single trial with 8 targets would result in 8 separate pages of experiment data.
In this case for each target the timestamps begin at a negative value,
and reach zero when the target is displayed.

json
----

Experiments can also be exported as a json text file.
This is a convenient format for sharing experimental setups,
as it can be easily read and modified in a text editor.
These files can also be opened in the VSTT GUI
(File -> Open, choose JSON as filetype).
The json file contains all the information required to define the experiment:

* metadata
* display_options
* trial_list
You can also export experiments in Excel or json format,
which allows experiments and results to be shared, analysed and modified
without requiring the VSTT software to do so.

This format does not include any statistics or experimental results.
See :doc:`File formats <../reference/file-formats>` for more information.
96 changes: 96 additions & 0 deletions docs/reference/file-formats.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
File formats
============

Experiments can be imported and exported in different formats: psydat, Excel, and json.
Psydat is the default format used by VSTT,
which can also be opened from Python scripts or Jupyter notebooks.
The Excel and json formats are provided to allow experiments
and results to be shared, analysed and modified
without requiring the VSTT software to do so.

.. list-table:: File format comparison
:widths: 25 25 25 25
:header-rows: 1

* -
- psydat
- Excel
- json
* - Export experiment
- Yes
- Yes
- Yes
* - Import experiment
- Yes
- Yes
- Yes
* - Export results
- Yes
- Yes
- No
* - Import results
- Yes
- No
- No

psydat
------

This is the default file format, which includes the experiment results.
These files can be opened in the VSTT GUI or in Python
(see the example notebook for more information).

Excel
-----

Experiments can also be exported as Excel spreadsheets.
The first 3 pages in the spreadsheet define the experiment:

* metadata
* display_options
* trial_list

These values can be edited in Excel and then the modified experiment can
be opened in the VSTT GUI (File -> Open, choose Excel as filetype).
Note that results are not imported from an Excel file.

The excel sheet also contains a statistics page with calculated statistics for each trial.
Then there is a sheet of data for each trial in the experiment with the following columns:

* timestamps
* start at 0 for each trial, increase throughout the trial
* mouse_positions_x
* x coordinate of mouse at this timestamp
* mouse_positions_y
* y coordinate of mouse at this timestamp
* i_target
* ``-99`` if no target is visible
* ``-1`` if central target is visible
* otherwise index (e.g. ``0``, ``1``, etc) of current displayed target
* target_x
* x coordinate of currently visible target
* ``-99`` if no target is visible
* target_y
* y coordinate of currently visible target
* ``-99`` if no target is visible

There is also the option to export a separate page of data for each target,
so a single trial with 8 targets would result in 8 separate pages of experiment data.
In this case for each target the timestamps begin at a negative value,
and reach zero when the target is displayed.

json
----

Experiments can also be exported as a json text file.
This is a convenient format for sharing experimental setups,
as it can be easily read and modified in a text editor.
These files can also be opened in the VSTT GUI
(File -> Open, choose JSON as filetype).
The json file contains all the information required to define the experiment:

* metadata
* display_options
* trial_list

This format does not include any statistics or experimental results.
Binary file added misc/example-experiment.psydat
Binary file not shown.
2 changes: 1 addition & 1 deletion src/vstt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"__version__",
]

__version__ = "1.0.0"
__version__ = "1.1.0"

0 comments on commit b1348da

Please sign in to comment.