{"id":35276319,"url":"https://github.com/dfujim/bnmr_tools","last_synced_at":"2026-05-17T21:05:45.315Z","repository":{"id":39059442,"uuid":"506822556","full_name":"dfujim/bnmr_tools","owner":"dfujim","description":"Misc tools for bnmr","archived":false,"fork":false,"pushed_at":"2022-07-05T23:18:17.000Z","size":33,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-04T14:08:21.561Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dfujim.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-23T23:46:49.000Z","updated_at":"2022-06-23T23:47:21.000Z","dependencies_parsed_at":"2022-09-09T00:31:30.951Z","dependency_job_id":null,"html_url":"https://github.com/dfujim/bnmr_tools","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/dfujim/bnmr_tools","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfujim%2Fbnmr_tools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfujim%2Fbnmr_tools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfujim%2Fbnmr_tools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfujim%2Fbnmr_tools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dfujim","download_url":"https://codeload.github.com/dfujim/bnmr_tools/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dfujim%2Fbnmr_tools/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33155542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T09:28:26.183Z","status":"ssl_error","status_checked_at":"2026-05-17T09:27:52.702Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-30T13:58:48.746Z","updated_at":"2026-05-17T21:05:45.310Z","avatar_url":"https://github.com/dfujim.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Misc BNMR Python Tools\n\n* [`beta_averaging`](#beta_averaging)\n* [`file_checkup`](#file_checkup)\n* [`parse_bnmroffice_fit`](#parse_bnmroffice_fit)\n* [`draw_1f_superimpose`](#draw_1f_superimpose)\n* [`get_experimenter_names.py`](#get_experimenter_names)\n* [`campvarlog`](#campvarlog)\n* [`read_striptool`](#read_striptool)\n* [`rga`](#rga)\n* [`srim`](#srim)\n\n### beta_averaging\n\nCode originally written by rmlm for T1 average with uncorrelated errors.\n\nFunctions:\n\n```python\nt1avg(T1, beta)                       # t1 avg\ndt1avg(T1, dT1, beta, dbeta)          # error\n```\n\n### file_checkup\n\nFile inspector for start of beam. Make sure variables are logged properly.\n\nFunctions:\n\n```python\n\nfile_checkup(area='bnmr',run=-1,year=-1)\n```\n\nAs a command line tool:\n\n```\npython3 file_checkup [area] [run] [year]\n```\n\n### parse_bnmroffice_fit\n\nTurn bnmroffice export fit file into a python dictionary\n\nFunctions:\n\n```python\nparse_bnmroffice_fit(filename)\n```\n\n### draw_1f_superimpose\n\nDraw 1f runs, superimposed. Options for shifting by baseline or window center for comparison.\n\nFunctions:\n\n```python\ndef draw(run,year,rebin=1,freq_shift=True,base_shift=True,label='run'):\n    \"\"\"\n        runlist:    list of runs to draw or int\n        yearlist:   list of years corresponding to run, or int\n        rebin:      rebin factor, list or int\n        freq_shift: if true, shift frequencies to ppm, fixed to window center\n        base_shift: if true, baseline shift to zero\n        label:      bdata attribute to set to label\n    \"\"\"\n```\n\n### get_experimenter_names\n\nFind all author names for a given experiment\n\nCall from the command line as an executable.\n\n```bash\nget_experimenter_names.py exp_number\n```\n\nPrints as output a list of experimenters for each year and the number of runs in which they participated. \n\n### campvarlog\n\nObject for reading campvarlog files. Constructor\n\n```\ncampvarlog(filename)\n```\n\nMethods:\n\n* `draw(self,ycolumn,xcolumn='time')`\n\n### read_striptool\n\nFunction\n\n```\nread_striptool(filename)\n```\n\nReturns pandas dataframe with index as datetime objects. \n\n### rga\n\nObject for reading rga output files. \n\nConstructor: \n\n```\nrga(filename)\n```\n\nTakes either the histogram or PvT file types. \n\nMethods\n\n* [`draw(ax = None)`](https://github.com/dfujim/bnmr_tools/blob/f27bfc68590d3f1a594cdfce7dadc35265acf257/rga.py#L145)\n\n### srim\n\nObject for reading SRIM RANGE.txt and TDATA.txt files\n\nConstructor\n\n```\nsrim(fetchdir='.', range_txt='RANGE.txt'))\n```\n\nMethods\n\n* `get_range(filename)`\n* `interp_hist(x)`\n* `draw()`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfujim%2Fbnmr_tools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdfujim%2Fbnmr_tools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdfujim%2Fbnmr_tools/lists"}