Skip to content
Snippets Groups Projects
Commit 2bf2537b authored by Yngve Levinsen's avatar Yngve Levinsen
Browse files

added nextcloud example

parent e44e6460
No related branches found
No related tags found
No related merge requests found
Pipeline #20774 passed with warnings
...@@ -7,3 +7,4 @@ No examples provided yet ...@@ -7,3 +7,4 @@ No examples provided yet
lib_tw lib_tw
fieldmap fieldmap
nextcloud
nextcloud
--------
This example shows how fieldmap can be used to modify field map files
.. literalinclude:: ../../examples/nextcloud.py
from ess import nextcloud
import h5py
nc = nextcloud()
# Get a list of files and folders in a path
file_list = nc.get_filelist("LCR/Saved PVs")
# Get a list of files and folders matching a pattern
emu_folders = nc.get_filelist("LCR/Saved PVs/2019-0*/EMU")
# Read a specific file
file_path = nc.get_resource(
"LCR/Saved PVs/2019-04-26/EMU/400W_130-68.5-219A_3.70sccm/p-tank_S1-311A_S2-260A/INFN-SRC:INTK-EMU-1-Slit:TEMP_2019-04-26_17-50-24.hdf5"
)
h5py.File(file_path, "r")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment