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

Divide by zero error in calculate_frequencies() #2

Open
Ycreak opened this issue Dec 20, 2022 · 0 comments
Open

Divide by zero error in calculate_frequencies() #2

Ycreak opened this issue Dec 20, 2022 · 0 comments

Comments

@Ycreak
Copy link

Ycreak commented Dec 20, 2022

Hi Dargones,

I was experimenting with small datasets of various meters. In the case of the glyconeus and the iambic dimeter, I used Seneca Medea 75–92 and 849-855 respectively. These verses do not have elisions, which crashes Anceps, as it tries to calculate the frequency of elisions in the given dataset. Maybe you could add a try or a small check for zero in the calculate_frequencies function in analyze.py. The error almost never occurs, and only for elisions of course, but just wanted to let you know :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant