Skip to content

AB: Add column in experiment information list box for sweep time #2407

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MichaelHuth
Copy link
Collaborator

A column was added at the right side of the listbox with the experiment information that shows the time when the sweep was acquired.

Another small empty column was added on the right to reserve space where the vertical scrollbar appears. Otherwise the scrollbar covers information.

The column widths were adjusted such that the horizontal size increase of the AB is minimal.

The version of the AB and listbox wave was increased.

close #2251

@MichaelHuth MichaelHuth self-assigned this Apr 24, 2025
…n part

For later use in the AB a non-asserting function is required.

No functional changes.
A column was added at the right side of the listbox with the experiment information that shows the
session start time of the experiment file.

All NWB versions support this field.
For PXPs the time of the first sweep acquisition from the LBN is shown.
For old PXPs where this LBN entry does not exist the listbox cell is left empty.

Another small empty column was added on the right to reserve space where
the vertical scrollbar appears. Otherwise the scrollbar covers information.

The column widths were adjusted such that the horizontal size increase of the AB
is minimal.

The version of the AB and listbox wave was increased.
@MichaelHuth MichaelHuth force-pushed the feature/2407-add_ab_col_time branch from 64b1ae3 to fb09f30 Compare April 24, 2025 17:10
@MichaelHuth MichaelHuth assigned t-b and unassigned MichaelHuth Apr 25, 2025
@t-b
Copy link
Collaborator

t-b commented Apr 25, 2025

Review:
477a5df (NWB: Split NWB_ReadSessionStartTime into a non- and asserting function part, 2025-04-24)

Makes sense.

fb09f30 (AB: Add column in experiment information list box for session start time, 2025-04-24)

  • Can we have the session time determination be in its own function?
  • This should also use something like
	strswitch(fileType)
		case ANALYSISBROWSER_FILE_TYPE_IGOR:
 		    ...
			break
		case ANALYSISBROWSER_FILE_TYPE_NWBv1:
		case ANALYSISBROWSER_FILE_TYPE_NWBv2: // intended fallthrough
 		    ...
			break
		default:
			ASSERT(0, "invalid file type")
	endswitch

so that we catch missing spots when we ever introduce a third data source.

  • Is there a cheap fallback for pxps when the labnotebook key does not exist? Creation date of the textualValues wave?

@t-b t-b assigned MichaelHuth and unassigned t-b Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AnalysisBrowser: Add column with session start time
2 participants