You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is to use .toml files to save human-readable motion list and/or probe configuration parameters. This is just an initial idea, so it can, and will likely, be expanded upon. There already exists a python package toml that can read and write these files; it is also registered on PyPI.
The idea here is that you'd create a <name>.toml file where <name> will likely be the same as the data run, but could be anything. The contents inside would look something like...
# idea for motionlist configuration
[ml.my_motionlist] # "my_motionlist" is the name of the motionlistunits = "cm"# units of configured valuescoordinates = ["x", "y"] # motion coordinatesshape = "rectangle"# circle, sphere, etc.size.x = 20# size of the same, should be one for each in coordinates....this would be tricky for something like a polygonsize.y = 30center.x = 0# center position of the bounding area/volumecenter.y = 2grid.dx = 1# start defining the grid resolutiongrid.dy = 2grid.start.x = 0# starting point to build the grid off ofgrid.start.y = 0.5# idea for a probe configuration
[probe.my_probe] # "my_probe" is the probe nameunits = "cm"# units of configuration valuesport = 34# port the probe is locatedport.location = "E"# E = East, could have west, top, bottom, etc. ...which physical location on the port sectionpivot = 52.4# pivot distance from chamber centershaft.OD = 0.9525# diameter of probe shaft, would be useful for droop calculationsshaft.wall = 0.08128motionlist = "my_motionlist"# the motionlist paired to this probe
A few additional notes...
A single file could contain multiple motionlists and/or probe configurations.
The motion package should be able to read and write these files.
The motion package would take read one of these files and then generate the array of points. The should be achieved from both the DAQ and bapsflib.
Some of these parameters could be optional and filled with default values at the time of reading.
This framework also makes it easy for an individual to manually edit the toml file to quickly create a modified configuration from a previous one.
This discussion was converted from issue #1 on January 13, 2025 23:31.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The idea is to use
.toml
files to save human-readable motion list and/or probe configuration parameters. This is just an initial idea, so it can, and will likely, be expanded upon. There already exists a python packagetoml
that can read and write these files; it is also registered on PyPI.The idea here is that you'd create a
<name>.toml
file where<name>
will likely be the same as the data run, but could be anything. The contents inside would look something like...A few additional notes...
bapsflib
.toml
file to quickly create a modified configuration from a previous one.Beta Was this translation helpful? Give feedback.
All reactions