Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metadata to database #73

Open
Zediwan opened this issue May 2, 2024 · 1 comment
Open

Add metadata to database #73

Zediwan opened this issue May 2, 2024 · 1 comment
Assignees
Labels
enhancement New feature or request programming for data science These issues are in relation to the lecture PfD statistics Issues regarding statistics

Comments

@Zediwan
Copy link
Owner

Zediwan commented May 2, 2024

Add metadata with informations about the settings and starting values for genes to the database.

@Zediwan Zediwan added enhancement New feature or request programming for data science These issues are in relation to the lecture PfD statistics Issues regarding statistics labels May 2, 2024
@Zediwan
Copy link
Owner Author

Zediwan commented May 2, 2024

Maybe implement something like this and add additional information

def write_metadata_to_csv(self, filename, metadata): with open(filename, 'w') as file: for key, value in metadata.items(): file.write(f'# {key}: {value}\n') file.write('\n') # Leave a blank line after metadata before data begins

metadata = { 'Creation Date': datetime.now().strftime("%Y-%m-%d %H:%M:%S"), 'World Generation Mode': config.WORLD_GENERATION_MODE, 'Tile Size': self.tile_size, # Add other relevant metadata } self.write_metadata_to_csv(config.csv_filename, metadata)

@Zediwan Zediwan self-assigned this May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request programming for data science These issues are in relation to the lecture PfD statistics Issues regarding statistics
Projects
None yet
Development

No branches or pull requests

1 participant