portugueslab / stytra

A modular package to control stimulation and track behaviour
http://www.portugueslab.com/stytra/
GNU General Public License v3.0
42 stars 27 forks source link

Custom experiment: Wrong overlay of fish plot mirrored in 2 axes #55

Closed kkoetter closed 1 year ago

kkoetter commented 3 years ago

The fish plot overlayed on the camera GUI is displayed mirrored in 2 axes. The diagnosis windows show the fish is correctly recognized and the data is correctly saved. Maybe a problem with the CameraViewFish class interaction and custom experiments.

To replicate (stytra custom experiment, e.g.): `if name == "main":

Here we do not use the Stytra constructor but we instantiate an experiment

# and we start it in the script. Even though this is an internal Experiment
# subtype, a user can define a new Experiment subclass and start it
# this way.
app = QApplication([])
app.setStyleSheet(qdarkstyle.load_stylesheet_pyqt5())
protocol = FlashProtocol()
exp = TrackingExperiment(protocol=protocol, app=app,
                       display=dict(full_screen=True),
                       tracking=dict(method="fish"),
                       camera=dict(video_file=str(Path(r"C:\Users\portugueslab\python_code\stytra\stytra\examples\assets\fish_compressed.h5"))))
exp.start_experiment()
app.exec_()

`

Example image: Capture

nvbln commented 1 year ago

This was a downstream issue. It has been fixed.