|
15 | 15 | username="Mozumder", |
16 | 16 | password="", |
17 | 17 | token="", |
18 | | - modify_upload_metadata=False, |
| 18 | + modify_upload_metadata=True, |
19 | 19 | publish_to_nomad=False, |
20 | 20 | ) |
21 | 21 | local_src_dir = Path( |
22 | 22 | "/home/rubel/NOMAD-FAIRmat/nomad-distro-dev-RM/packages/pynxtools-spm/tests/data/nanonis" |
23 | 23 | ) |
24 | | -total_upload = 3 |
25 | | -data_processing_settings = DataProcessingSettings( |
| 24 | +total_upload = 1 |
| 25 | +data_proc_settings = DataProcessingSettings( |
26 | 26 | raw_file_exts=( |
27 | 27 | ".dat", |
28 | 28 | ".sxm", |
29 | 29 | ), |
30 | 30 | single_batch_processing_time=total_upload * 90, # seconds |
31 | | - src_dir=Path("/home/rubel/NOMAD-FAIRmat/SPMfolder/DataFilesForUpload"), |
| 31 | + src_dir=local_src_dir, # Path("/home/rubel/NOMAD-FAIRmat/SPMfolder/DataFilesForUpload"), |
32 | 32 | # copy_file_elsewhere=False, |
33 | 33 | dst_dir="", |
34 | 34 | create_pseudo_file=True, |
|
42 | 42 | afm_config="", |
43 | 43 | logger_dir=current_dir, |
44 | 44 | number_of_uploads=total_upload, |
| 45 | + file_specific_eln={"raw_file_name": "eln_file_path"}, |
| 46 | + # metadata = { |
| 47 | + # "metadata": { |
| 48 | + # "upload_name": upload_name, |
| 49 | + # "references": ["https://doi.org/xx.xxxx/xxxxxx"], |
| 50 | + # "datasets": dataset_id, |
| 51 | + # "embargo_length": 0, |
| 52 | + # "coauthors": ["coauthor@affiliation.de"], |
| 53 | + # "comment": 'This is a test upload...' |
| 54 | + # }, |
| 55 | + # } |
| 56 | + uplad_metadata={ |
| 57 | + "metadata": { |
| 58 | + "coauthors": ["cojaddl@physik.hu-berlin.de"], |
| 59 | + "upload_name": "test_upload", |
| 60 | + } |
| 61 | + }, |
45 | 62 | ) |
46 | 63 |
|
47 | 64 | if __name__ == "__main__": |
48 | 65 | run_uploader_with( |
49 | | - data_settings=nomad_settings, |
50 | | - data_processing_settings=data_processing_settings, |
| 66 | + nomad_settings=nomad_settings, |
| 67 | + data_proc_settings=data_proc_settings, |
51 | 68 | ) |
0 commit comments