mirror of
https://github.com/Jonas-Verhellen/Argenomic.git
synced 2026-04-03 00:19:15 -06:00
Numpy error #11
Labels
No labels
bug
bug
documentation
documentation
enhancement
enhancement
enhancement
good first issue
good first issue
invalid
wontfix
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github/Argenomic#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @agiani99 on 7/27/2020
HI all,
I tried with attached yaml to change target, source and filter.
I had in the meantime re-installed code (not the development branch though).
Got following errorTraceback (most recent call last):
File "illuminate.py", line 74, in
illumination(omegaconf.OmegaConf.load(configuration.configuration_file))(configuration.generations)
File "illuminate.py", line 27, in call
self.initial_population()
File "illuminate.py", line 39, in initial_population
molecules = dataframe['molecule'].sample(n=self.initial_size).tolist()
File "/usr/bin/anaconda3/envs/argenomic-stable/lib/python3.7/site-packages/pandas/core/generic.py", line 5061, in sample
locs = rs.choice(axis_length, size=n, replace=replace, p=weights)
File "mtrand.pyx", line 946, in numpy.random.mtrand.RandomState.choice
ValueError: Cannot take a larger sample than population when 'replace=False'
Apparently the code only works with given tests.
Btw pytest from README.md is missing in the release.
Best
Andrea
config_az.txt