Comments (6)
Sorry, I forgot to write a unit test for that, so of course that means I screwed it up. Try out this branch (#10) and see if it works for you now.
from treecorr.
I tried branch #10, but still getting the same error:
corr2 corr2.kids.params file_list=wtheta/KIDS_238p0_m0p5_MAG_AUTO.list rand_file_name=randmask/KIDS_238p0_m0p5_rand.fits n2_file_name=wtheta/NorthEnd_MAG_AUTO.n2out
Traceback (most recent call last):
File "/users/reiko/bin/corr2", line 5, in <module>
pkg_resources.run_script('TreeCorr==3.0.2', 'corr2')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 499, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1235, in run_script
execfile(script_filename, namespace, namespace)
File "/users/reiko/lib/python2.7/site-packages/TreeCorr-3.0.2-py2.7-linux-x86_64.egg/EGG-INFO/scripts/corr2", line 105, in <module>
main()
File "/users/reiko/lib/python2.7/site-packages/TreeCorr-3.0.2-py2.7-linux-x86_64.egg/EGG-INFO/scripts/corr2", line 102, in main
treecorr.corr2(config, logger)
File "/users/reiko/lib/python2.7/site-packages/TreeCorr-3.0.2-py2.7-linux-x86_64.egg/treecorr/corr2.py", line 228, in corr2
raise AttributeError("Either file_name or file_list is required")
AttributeError: Either file_name or file_list is required
from treecorr.
I don't see anything else wrong. I have tests now that explicitly have a file_list
in conjunction with rand_file_name
and they seem to work fine for me. My best guess is that your file with the list of other file names isn't being read correctly. So I added a warning about this that may give more information.
If that doesn't seem to be it, could you send me your exact config file and input files that are failing for you?
from treecorr.
Thanks for the new error message:
Warning: file_list provided, but no names were read from the file wtheta/KIDS_238p0_m0p5_MAG_AUTO.list
I was passing an empty list (sorry). Filling it out fixed the problem.
from treecorr.
Thanks again!
from treecorr.
Great. I'll merge this into master then.
from treecorr.
Related Issues (20)
- Avoiding repeated writing of identical patches with save_patch_dir HOT 1
- MPI Crash when many patches empty HOT 8
- Computing NN correlation from simulated catalogues without a random catalogue HOT 5
- NNCorrelation error under MPI in 4.2.0 HOT 2
- Bug when using patches and the Rlens metric HOT 2
- Access correlation function for jackknife HOT 2
- multiply-occurring objects bias results low HOT 4
- Installing error on windows HOT 17
- Measuring the correlation function xi by patches HOT 4
- Problem with NN_correlation when setting low_mem=True HOT 1
- NG doesn't work as expected in simulation box with x, y, z HOT 7
- Computing "scaled counts-in-spheres" HOT 4
- TwoD Binning in Rperp metric. HOT 2
- Feature request: create Catalog using derived quantities HOT 3
- possible weight issue for 2pt correlation with cartesian coordinates HOT 2
- bin_slop definition and implementation HOT 7
- Let varg, vark be specifiable by the user, rather than computed
- Outlier point in NN Correlation HOT 3
- is bin_slop in log or linear space when using log binning? HOT 3
- write_patch_results HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from treecorr.