phockett / tmo-dev Goto Github PK
View Code? Open in Web Editor NEWDev and scratch space for tmo analysis routines dev
License: GNU General Public License v3.0
Dev and scratch space for tmo analysis routines dev
License: GNU General Public License v3.0
For SACLA workflow:
Basic logbook code example (from GSheet), working for 2023 runs:
# Source: https://stackoverflow.com/questions/19611729/getting-google-spreadsheet-csv-into-a-pandas-dataframe
# Tidy version
import pandas as pd
# Import Logbook
SHEET_ID = '<id number here>'
SHEET_NAME = 'Sheet1'
url = f'https://docs.google.com/spreadsheets/d/{SHEET_ID}/gviz/tq?tqx=out:csv&sheet={SHEET_NAME}'
logbook = pd.read_csv(url, header=0, index_col='Aq ') # Get data from URL
# Clean up
logbook.index = logbook.index.astype(int) # Force to int (otherwise float)
logbook.drop(logbook.columns[31:37], axis=1, inplace=True) # Drop extra cols at the end
logbook.columns = logbook.columns.str.rstrip() # Clean col name strings
# Display current
logbook.loc[runs]
Quick and dirty params setting in notebook via magic, e.g. %run -i 'aq189_params.py'
where params file is just python vars from other sources.
To implement - see epsman code for method using JupyterRunner:
https://pypi.org/project/jupyter-runner/
https://github.com/omar-masmoudi/jupyter-runner
https://pythonhosted.org/jupyter_runner/
This will be particularly good for slow internet connection cases, where large figures can time-out in notebook.
In LW06 tests (runs 81 - 87) seeing a lot of hits with only one "good" dimension, and the other at max - is this a binning issue, or "real" artifact (likely reflection current)? To look into - probably need to read more on the instrument first.
Currently missing some basics for image analysis:
Some of this already in psana...?
Currently set for single filter set only in tmoDataBase class, but wrapped for multi-level filters in setFilter() method and VMI class. Should be unified architecture here (and back-propagate to early basic plotting functions), and more transparently applied.
May want a different branch for this, since it will likely break things.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.