Code Monkey home page Code Monkey logo

margo's People

Contributors

chiser avatar werkhoven avatar winsl0w avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

margo's Issues

isnan issue when labelling subsets of ROIs

de Bivort lab projector rig 1, MATLAB R2023a, latest version of margo

We set up a ymaze experiment and input the following labels:

Strain Sex Treatment ROI start ROI End ID Start ID End Day # Box # Tray # Comments
s1 f t1 11 40 1 30 1 1 10
s1 m t1 47 51 31 35 1 1 10

This resulted in the following "Error encountered - tracking stopped" popup:

Undefined function 'isnan' for input arguments of type 'cell'.
Error in autoInitialize (line 119)
    if ~isnan(expmt.meta.labels_table{1,i})

Error in run_ymaze (line 36)
[trackDat,expmt] = autoInitialize(trackDat,expmt,gui_handles);

Error in margo>run_pushbutton_Callback (line 770)
    expmt = feval(handlesexperiments(exp_idx).run, expmt, handles);

Error in gui_mainfcn (line 95)
    feval(varargin{:});

Error in margo (line 48)
    gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)margo('run_pushbutton_Callback',hObject,eventdata,guidata(hObject))

The error in the MATLAB command window:

Incorrect number or types of inputs or outputs for function 'isnan'.

Error in autoInitialize (line 119)
            if ~isnan(expmt.meta.labels_table{1,i})

Error in run_ymaze (line 36)
[trackDat,expmt] = autoInitialize(trackDat,expmt,gui_handles);

Error in margo>run_pushbutton_Callback (line 770)
    expmt = feval(handles.experiments(exp_idx).run, expmt, handles);

Error in gui_mainfcn (line 95)
        feval(varargin{:});

Error in margo (line 48)
    gui_mainfcn(gui_State, varargin{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)margo('run_pushbutton_Callback',hObject,eventdata,guidata(hObject))
 
Error while evaluating UIControl Callback.

When putting in the following ROI sets in the labels, there was no issue starting up tracking:

Strain Sex Treatment ROI start ROI End ID Start ID End Day # Box # Tray # Comments
s1 f t1 11 40 1 30 1 1 10
s1 m t1 1 10 31 40 1 1 10

Can a MatLab executable be made from Margo?

I am not a MATLAB expert, and am trying to advise colleagues as to whether this is possible and seek your insights and corrections to my understanding of the issues in making a standalone MATLAB executable from Margo.

To answer this, we will need to refer in part to The following table shows the MATLAB toolboxes that you can use with MATLAB Compiler and describes which functionality can and cannot be compiled where we learn that, for the most part, only command line functionality of the toolboxes can be compiled into standalones (notably NOT UIs and Apps but also other aspects of selected toolboxes). Does Margo transgress any of these limitations (e.g. does it use UIs/Apps from the required toolboxes)? I further expect that your preprint's observation that "Software for control of all custom electronic hardware was written in C using Arduino libraries" will bear on what is possible in this regard. Do you agree? Finally, we only have an old compiler license - do you agree this will limit us (especially given the answer to this question: Is it possible the use of a MCR version different from the utilized version of Matlab Compiler? ).

Thanks for your consideration.

Changing camera settings

brightnesschange_masterbeta181220

This error occurred when trying to change the brightness in camera settings while previewing. Branch: master_beta

plotTraces scale

plotTraces function scales the traces to the min/max of the traces rather than the ROI itself. This can create poorly scaled plots for animals with little activity. Recommend scaling to ROI and adding background image of ROI to place traces in their context within the image.

Display none path

Failed to clear the Display none gui axes notification after ending an experiment early with the delete function.

larval_sleep_deprivation subgui load error

When pressing experiment parameters for larval sleep deprivation

No appropriate method, property, or field 'Position' for class 'matlab.graphics.GraphicsPlaceholder'.

Error in sleepdeprivation_parameter_sub_gui>slowphototaxis_parameter_gui_OpeningFcn (line 102)
handles.figure1.Position(1) = gui_fig.Position(1) + ...

Recurrent error for initialize tracking

When pressing "initialize tracking" dialogue box opens up often when running Margo across different computers. Dialogue may not always occur, and then the experiment can proceed. Matlab "red" code related to this issue is attached
margo_error.txt

Error opening older-version files

I have been encountering a weird error with the newest MARGO version when trying to read in .raw files. Specifically, the error occurs when trying to assign an already attached .raw(). There is an orange notice referring to a path mismatch/repair when loading in the expmt.mat. When manually attaching the object, the raw mat shape does change to reflect the underlying structure (i.e., frames on one axis) but it still errors out when trying to assign/access the .raw().

Problem with Margo CPU usage when live-tracking

Previously, we had been using Margo without any issues.
Recently however, when we try to do live tracking in Margo, our total processor utilisation across all cores hits 100% and the software fails to work properly. We don't believe it is a hardware issue.
We have noticed that the issue does not happen when we are tracking from a pre-recorded video, only when live tracking.

Reference mode controls

Add a separate control panel for different modes of reference calculation and other referencing parameters.

Test Bug Report

DESCRIPTION

I clicked on the preview camera button and then clicked on auto-detect-ROIs, then it spit out this error!

ERROR MSG

Invalid or deleted object.

Error in autoROIs (line 149)
imh.CData = binaryimage;

Error in autotracker>auto_detect_ROIs_pushbutton_Callback (line 1559)
expmt = autoROIs(handles, expmt);

Error in gui_mainfcn (line 95)
feval(varargin{:});

Error in autotracker (line 42)
gui_mainfcn(gui_State, varargin{:});

Error in
matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)autotracker('auto_detect_ROIs_pushbutton_Callback',hObject,eventdata,guidata(hObject))
Error while evaluating UIControl Callback

Camera disconnected

Margo stopped experiment with 3:03:01 left in a 24h long experiment (computer 3). The camera was connected...I restarted margo and played with the camera settings, we'll see if it errors out again.

NicoleErrora042619
NicoleErrorb042619

Use Saved ROI coordinates to define new ROI

I was wondering if there is functionality to use the ROI coordinates saved or copied from a user-defined grid ROI to position a new ROI on a new video. Essentially can an exact copy of a previosu ROI be imported for use on a new video? Thanks

Errors trying to open MARGO

Hi there,
I'm using Matlab 2016b with the bug updates to try and open MARGO, but keep getting some errors. Would hugely appreciate any help on this topic- I got it going once before but it won't seem to work anymore :( I've attached the error code here:

ls

. .gitignore README.md data classes experiments hardware tracking
.. LICENSE.md analysis and plots examples gui profiles utilities

addpath(genpath(pwd));
margo
Error using serial/fwrite (line 199)
Unsuccessful write: A timeout or Ctrl-C occurred during the write operation.

Error in writeInfraredWhitePanel (line 25)
fwrite(COM_obj,writeData,'uchar');

Error in refreshCOM (line 54)
writeInfraredWhitePanel(expmt.hardware.COM.light,1,...

Error in margo>margo_OpeningFcn (line 118)
[expmt, handles] = refreshCOM(expmt, handles);

Error in gui_mainfcn (line 220)
feval(gui_State.gui_OpeningFcn, gui_hFigure, [], guidata(gui_hFigure), varargin{:});

Error in margo (line 48)
gui_mainfcn(gui_State, varargin{:});

COM selection error

When selecting "No COM detected":

Brace indexing is not supported for variables of this type.

Error in margo>microcontroller_popupmenu_Callback (line 539)
expmt.hardware.COM.light = serial(hObject.String{hObject.Value});

Circadian Lights ON parameter

The circadian Lights ON parameter parameter sometimes does not receive a minute assignment. Possibly related to time strings in the format H:MM instead of HH:MM

addROI increment error

addROI does not add roi.pixIdx to the new ROI which can create errors when adding and deleting multiple ROIs.

Camera selection error

When selected "No Camera Detected" from dropdown:

Index exceeds the number of array elements (0).

Error in margo>cam_select_popupmenu_Callback (line 169)
if ~isempty(handles.cam_list(get(hObject,'value')).adaptor)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.