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

FAS-Weight plotting fails when no weight is present #11

Open
bvenn opened this issue Jan 3, 2023 · 0 comments
Open

FAS-Weight plotting fails when no weight is present #11

bvenn opened this issue Jan 3, 2023 · 0 comments

Comments

@bvenn
Copy link
Member

bvenn commented Jan 3, 2023

If FAS are small and no positive weight is assigned to a constraint potential the plotting fails here:

|> Array.find (fun x -> x.OntologyTerm = fasName)

The same obviously is true for negative weights.

Solution:
replace Array.find with Array.tryfind and set the chart empty

bvenn added a commit that referenced this issue Jan 3, 2023
@bvenn bvenn mentioned this issue Jan 3, 2023
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