Removed lenthy example.
This commit is contained in:
@ -362,36 +362,6 @@ class MetadataHarvester:
|
||||
}
|
||||
self.parent_files = []
|
||||
|
||||
# Example usage
|
||||
if __name__ == "__main__":
|
||||
parent_files = ["file1.txt", "file2.txt", "file3.txt"]
|
||||
harvester = MetadataHarvester(parent_files)
|
||||
|
||||
# Adding sample information
|
||||
harvester.add_sample_info("sample_id", "S001")
|
||||
harvester.add_sample_info({"sample_type": "blood", "sample_volume": "5ml"})
|
||||
|
||||
# Adding environment information
|
||||
harvester.add_environment_info("location", "lab_1")
|
||||
harvester.add_environment_info({"temperature": "22C", "humidity": "50%"})
|
||||
|
||||
# Adding instrument information
|
||||
harvester.add_instrument_info("instrument_id", "I123")
|
||||
harvester.add_instrument_info({"instrument_type": "microscope", "manufacturer": "XYZ Corp"})
|
||||
|
||||
# Adding data level information
|
||||
harvester.add_data_level_info("processing_step", "initial")
|
||||
harvester.add_data_level_info({"data_quality": "high", "data_format": "CSV"})
|
||||
|
||||
# Retrieving metadata
|
||||
metadata = harvester.get_metadata()
|
||||
print(metadata)
|
||||
|
||||
# Clear metadata if needed
|
||||
harvester.clear_metadata()
|
||||
print("Cleared metadata:", harvester.get_metadata())
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
output_filename_path = "output_files/unified_file_smog_chamber_2024-03-19_UTC-OFST_+0100_NG.h5"
|
||||
|
Reference in New Issue
Block a user