Skip to content

Commit 2a837c6

Browse files
authored
Merge pull request #14 from ttngu207/master
added 'is_all' attr for Units
2 parents 09441be + 513c5e2 commit 2a837c6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

backend/mapapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def handle_q(subpath, args, proj, **kwargs):
208208
exclude_attrs = ['-spike_times', '-waveform', '-unit_uid', '-probe', '-electrode_config_name', '-electrode_group']
209209
units = (ephys.Unit * ephys.UnitStat
210210
* ephys.ProbeInsertion.InsertionLocation.proj('brain_location_name', 'dv_location')).proj(
211-
..., unit_depth='unit_posy - dv_location', *exclude_attrs)
211+
..., unit_depth='unit_posy - dv_location', is_all='unit_quality = "all"', *exclude_attrs)
212212
units = units.aggr(report.UnitLevelReport, ..., unit_psth_s3fp='unit_psth',
213213
unit_behavior_s3fp='unit_behavior', keep_all_rows=True)
214214

map-frontend/frontend-content/src/app/session-list/session-list.component.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,9 @@ export class SessionListComponent implements OnInit, OnDestroy {
5454
// displayedColumns: string[] = ['probe_count', 'subject_id', 'subject_birth_date', 'session_date',
5555
// 'clustering_methods', 'water_restriction_number', 'username',
5656
// 'session', 'sex', 'insert_locations'];
57-
displayedColumns: string[] = ['session', 'subject_id', 'session_date', 'probe_count',
58-
'insert_locations', 'clustering_methods', 'water_restriction_number', 'username' ];
59-
60-
57+
displayedColumns: string[] = ['subject_id', 'water_restriction_number', 'session', 'session_date', 'username',
58+
'probe_count', 'insert_locations', 'clustering_methods'];
59+
6160
// setup for the paginator
6261
dataSource;
6362
pageSize = 25;

0 commit comments

Comments
 (0)