Skip to content

Commit

Permalink
fix for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zain-sohail committed May 23, 2024
1 parent e72e966 commit f98dbf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 3 additions & 9 deletions docs/build_flash_parquets.py
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
import os
from pathlib import Path

import sed
from sed import SedProcessor
from sed.dataset import load_dataset
from sed.dataset import rearrange_data

config_file = Path(sed.__file__).parent / "config/flash_example_config.yaml"

# so it works with the workflow as it uses another naming
data_path = "./tutorial/"
os.system(f'touch "{data_path}/Gd_W(110).zip"')
os.system(f"mv {data_path}/flash_data/* {data_path}")
# data already downloaded and unzipped by actions
rearrange_data(data_path, ["analysis_data", "calibration_data"])

_ = load_dataset(
"Gd_W(110)",
data_path,
) # Put in Path to a storage of at least 20 Gbyte free space.

config_override = {
"core": {
Expand Down
2 changes: 1 addition & 1 deletion tutorial/4_hextof_workflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@
"# If this will not work for you, please change it to a path where you have write access\n",
"config_override['core']['paths']['data_parquet_dir'] = \"/asap3/flash/gpfs/pg2/2023/data/11019101/processed\"\n",
"# So we write to user space\n",
"config_override['core']['paths']['data_parquet_dir'] = \"./processed\"\n",
"config_override['core']['paths']['data_parquet_dir'] = path + \"/processed\"\n",
"# If you aren't using maxwell and downloaded the data, use this path\n",
"config_override['core']['paths']['data_raw_dir'] = path"
]
Expand Down

0 comments on commit f98dbf0

Please sign in to comment.