PyFstat issueshttps://gitlab.aei.uni-hannover.de/GregAshton/PyFstat/-/issues2020-02-05T10:50:58Zhttps://gitlab.aei.uni-hannover.de/GregAshton/PyFstat/-/issues/14Version mismatch between examples2020-02-05T10:50:58ZGregory AshtonVersion mismatch between examplesThe example `semi_coherent_search_using_MCMC.py ` is currently broken with the error message
```
../lib/python2.7/site-packages/pyfstat/mcmc_based_searches.py in run(self, proposal_scale_factor, create_plots, window, **kwargs)
526 ...The example `semi_coherent_search_using_MCMC.py ` is currently broken with the error message
```
../lib/python2.7/site-packages/pyfstat/mcmc_based_searches.py in run(self, proposal_scale_factor, create_plots, window, **kwargs)
526 logl=self.logl, logp=self.logp,
527 logpargs=(self.theta_prior, self.theta_keys, self.search),
--> 528 loglargs=(self.search,), betas=self.betas, a=proposal_scale_factor)
529
530
TypeError: __init__() got an unexpected keyword argument 'a'
```Gregory AshtonGregory Ashtonhttps://gitlab.aei.uni-hannover.de/GregAshton/PyFstat/-/issues/9grid_examples/grid_F0F1F2.py import: projection_matrix ?2020-01-14T10:50:56ZDavid Keiteldavid.keitel@ligo.orggrid_examples/grid_F0F1F2.py import: projection_matrix ?I tried to run another example, grid_examples/grid_F0F1F2.py and (just for plotting at the end) it tries to import "projection_matrix", which I don't have and couldn't find through pip. What's that package? Or is it a local file you forg...I tried to run another example, grid_examples/grid_F0F1F2.py and (just for plotting at the end) it tries to import "projection_matrix", which I don't have and couldn't find through pip. What's that package? Or is it a local file you forgot to commit?Gregory AshtonGregory Ashtonhttps://gitlab.aei.uni-hannover.de/GregAshton/PyFstat/-/issues/6example failures2020-01-14T10:50:29ZDavid Keiteldavid.keitel@ligo.orgexample failuresHi @GregAshton, two issues I found with running examples on current master, the first in transient_search_using_MCMC.py and apparently related to the ptemcee move and hence I'm not sure how to debug it:
`12:12 INFO : Running final bu...Hi @GregAshton, two issues I found with running examples on current master, the first in transient_search_using_MCMC.py and apparently related to the ptemcee move and hence I'm not sure how to debug it:
`12:12 INFO : Running final burn and prod with 200 steps
0%| | 0/200 [00:00<?, ?it/s]Traceback (most recent call last):
File "examples/other_examples/transient_search_using_MCMC.py", line 47, in <module>
mcmc.run()
File "/home/dkeitel/git/PyFstat/pyfstat/mcmc_based_searches.py", line 522, in run
sampler = self._run_sampler(sampler, p0, nburn=nburn, nprod=nprod)
File "/home/dkeitel/git/PyFstat/pyfstat/mcmc_based_searches.py", line 388, in _run_sampler
total=nburn+nprod):
File "/home/dkeitel/.local/lib/python2.7/site-packages/tqdm/_tqdm.py", line 862, in __iter__
for obj in iterable:
File "/home/dkeitel/.local/lib/python2.7/site-packages/ptemcee/sampler.py", line 355, in sample
raise ValueError('Attempting to start with samples outside posterior support.')
ValueError: Attempting to start with samples outside posterior support.
`
Probably more trivial to fix is fully_coherent_search_using_MCMC.py which runs mostly through but gives at the end:
`Traceback (most recent call last):
File "fully_coherent_search_using_MCMC.py", line 60, in <module>
mcmc.run(subtractions=[F0, F1])
File "/home/dkeitel/git/PyFstat/pyfstat/mcmc_based_searches.py", line 524, in run
fig, axes = self._plot_walkers(sampler, nprod=nprod, **kwargs)
TypeError: _plot_walkers() got an unexpected keyword argument 'subtractions'`
Is it safe to just remove that argument, or is there a replacement?Gregory AshtonGregory Ashton