Skip to content

Large Siegfried CSV causing create_html_report function to break? #71

@NiamhElizabeth

Description

@NiamhElizabeth

I have a Siegfried CSV with 1,794,798 rows; When attempting to create a Brunnhilde HTML report based on the CSV input, the script fails.

I input the following:

brunnhilde.py --csv path/to/csv path/to/input_directory path/to/output_directory

The output I receive is as follows:

Traceback (most recent call last):
  File "/opt/homebrew/bin/brunnhilde.py", line 1393, in <module>
    main()
  File "/opt/homebrew/bin/brunnhilde.py", line 1367, in main
    process_content(
  File "/opt/homebrew/bin/brunnhilde.py", line 956, in process_content
    create_html_report(
  File "/opt/homebrew/bin/brunnhilde.py", line 392, in create_html_report
    begin_date = min(years, key=float)
                 ^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: ''

Can I create a report using a large dataset such as the above? I would greatly appreciate any advice you could provide.
Many thanks,
Niamh

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions