{"action":"created","issue":{"url":"https://api.github.com/repos/XENON1T/pax/issues/493","repository_url":"https://api.github.com/repos/XENON1T/pax","labels_url":"https://api.github.com/repos/XENON1T/pax/issues/493/labels{/name}","comments_url":"https://api.github.com/repos/XENON1T/pax/issues/493/comments","events_url":"https://api.github.com/repos/XENON1T/pax/issues/493/events","html_url":"https://github.com/XENON1T/pax/issues/493","id":207004366,"number":493,"title":"Store events per file in RunsDB","user":{"login":"pdeperio","id":8642192,"avatar_url":"https://avatars.githubusercontent.com/u/8642192?v=3","gravatar_id":"","url":"https://api.github.com/users/pdeperio","html_url":"https://github.com/pdeperio","followers_url":"https://api.github.com/users/pdeperio/followers","following_url":"https://api.github.com/users/pdeperio/following{/other_user}","gists_url":"https://api.github.com/users/pdeperio/gists{/gist_id}","starred_url":"https://api.github.com/users/pdeperio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdeperio/subscriptions","organizations_url":"https://api.github.com/users/pdeperio/orgs","repos_url":"https://api.github.com/users/pdeperio/repos","events_url":"https://api.github.com/users/pdeperio/events{/privacy}","received_events_url":"https://api.github.com/users/pdeperio/received_events","type":"User","site_admin":false},"labels":[{"id":112979074,"url":"https://api.github.com/repos/XENON1T/pax/labels/enhancement","name":"enhancement","color":"84b6eb","default":true},{"id":197577763,"url":"https://api.github.com/repos/XENON1T/pax/labels/eventbuilder","name":"eventbuilder","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-11T20:00:08Z","updated_at":"2017-02-12T21:42:23Z","closed_at":null,"body":"Pulling an individual (.zip) file with Rucio (e.g. for waveform watching) requires the number of events per file a priori. Could this be added to each run entry in the RunsDB?"},"comment":{"url":"https://api.github.com/repos/XENON1T/pax/issues/comments/279251646","html_url":"https://github.com/XENON1T/pax/issues/493#issuecomment-279251646","issue_url":"https://api.github.com/repos/XENON1T/pax/issues/493","id":279251646,"user":{"login":"JelleAalbers","id":4354311,"avatar_url":"https://avatars.githubusercontent.com/u/4354311?v=3","gravatar_id":"","url":"https://api.github.com/users/JelleAalbers","html_url":"https://github.com/JelleAalbers","followers_url":"https://api.github.com/users/JelleAalbers/followers","following_url":"https://api.github.com/users/JelleAalbers/following{/other_user}","gists_url":"https://api.github.com/users/JelleAalbers/gists{/gist_id}","starred_url":"https://api.github.com/users/JelleAalbers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JelleAalbers/subscriptions","organizations_url":"https://api.github.com/users/JelleAalbers/orgs","repos_url":"https://api.github.com/users/JelleAalbers/repos","events_url":"https://api.github.com/users/JelleAalbers/events{/privacy}","received_events_url":"https://api.github.com/users/JelleAalbers/received_events","type":"User","site_admin":false},"created_at":"2017-02-12T21:42:23Z","updated_at":"2017-02-12T21:42:23Z","body":"Yes, this can be done. The easiest way is to explictly set `events_per_file = xxx` in the `Zip` section (subdictionary) of the processor config override section (`processor`) in the DAQ run mode settings. \r\n\r\nGetting it from the effective configuration at runtime is also possible, but the input plugin (MongoDB) has access to the runs db, but only the output plugin (child of FolderIO) is supposed to know this number. We could do some hacking to get it out, but some maintainer in a few years is going to curse us for it.\r\n\r\nFor existing runs I suppose you'll have to look at the pax_info.json metadata file that should come with the raw data (maybe this file can be given the same fate as https://github.com/XENON1T/cax/pulls?q=is%3Apr+is%3Aclosed). There will be some "}}
{"actor":{"display_login":"JelleAalbers"}}