Giter Club home page Giter Club logo

hide's People

Contributors

cosmo-ethz avatar jakeret avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hide's Issues

Getting ImportError on Ubuntu 16.04.2

I found Hide&Seek really interesting because I can use it to simulate MeerKAT single dish observations for HI intensity mapping at lower redshifts. I would also like to contribute in the future by building new features into HIDE relevant for MeerKAT surveys.

Now, the problem I am getting is: after installing hide in "develop" mode, and running this:
$ hide --strategy-start=2016-03-21-00:00:00 --strategy-end=2016-03-21-23:59:00 --verbose=True hide.config.bleien7m

I get:

Processing 2016-03-21 00:00:00
Traceback (most recent call last):
File "/home/asad/anaconda2/bin/hide", line 11, in
load_entry_point('hide==0.1.0', 'console_scripts', 'hide')()
File "/home/asad/anaconda2/lib/python2.7/site-packages/ivy/cli/main.py", line 28, in run
_main(*sys.argv[1:])
File "/home/asad/anaconda2/lib/python2.7/site-packages/ivy/cli/main.py", line 37, in _main
mgr.launch()
File "/home/asad/anaconda2/lib/python2.7/site-packages/ivy/workflow_manager.py", line 107, in launch
executor.run(ctx().params.plugins)
File "/home/asad/anaconda2/lib/python2.7/site-packages/ivy/backend.py", line 48, in run
return map(LoopWrapper(loop), mapPlugin.getWorkload())
File "/home/asad/anaconda2/lib/python2.7/site-packages/ivy/backend.py", line 129, in call
plugin()
File "/home/asad/anaconda2/lib/python2.7/site-packages/ivy/plugin/parallel_plugin_collection.py", line 81, in call
ctxList = backendImpl.run(self.pluginList, mapPlugin)
File "/home/asad/anaconda2/lib/python2.7/site-packages/ivy/backend.py", line 48, in run
return map(LoopWrapper(loop), mapPlugin.getWorkload())
File "/home/asad/anaconda2/lib/python2.7/site-packages/ivy/backend.py", line 129, in call
plugin()
File "/home/asad/Dropbox/Postdoc/khan/scripts/hide/hide/plugins/qu_opt_coord_transform.py", line 43, in call
tree = sphere.ArcKDTree(thetas, phis)
File "/home/asad/Dropbox/Postdoc/khan/scripts/hide/hide/utils/sphere.py", line 84, in init
self.tree = spatial.cKDTree(dir2vec(theta, phi))
File "/home/asad/Dropbox/Postdoc/khan/scripts/hide/hide/utils/sphere.py", line 57, in dir2vec
sin_t, cos_t = sin_cos(theta) #sin(theta), cos(theta)
File "/home/asad/Dropbox/Postdoc/khan/scripts/hide/hide/utils/init.py", line 47, in sin_cos
_sin_cos_hope(x, len(x), y, int(_TABLERANGE), _SINTABLE, _COSTABLE)
File "/home/asad/anaconda2/lib/python2.7/site-packages/hope/_wrapper.py", line 71, in _hope_callback
return self(*args) if self.cache is None else self.cache(*args)
File "/home/asad/anaconda2/lib/python2.7/site-packages/hope/_wrapper.py", line 115, in call
module = import(localfilename, globals(), locals(), [], -1)
ImportError: /home/asad/.hope/_sin_cos_hope_f239b2551edd3ed4b7e0fa9ae0c761de059e252837877c1409a3c1cc_0.so: undefined symbol: _ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE

Convolving arbitrary full-polarization complex-valued beams

I read in your paper that arbitrary beams (e.g. fits files) can be used. Is there a straightforward way to do this? Or should I try to write a function following (e.g.) the function you use to load gsm fits files? I can try to to do this, but just wondering if you already have the functionality to load arbitrary beam fits files.

And does your code perform convolution for all Stokes parameters? So e.g. if I give a full polarization beam, shall I see the effects of polarization leakage?

errors in running HIDE, (files missing then utf8 codec)

hi all,

i try to generate data with HIDE to process later with SEEK.

I am creating env in python 2.7 (since it is more suitable for ivy package) and run setup as in:
conda create -n hide_env python=2.7; conda activate hide_env; git clone https://github.com/cosmo-ethz/hide.git; cd hide; pip install -r requirements.txt; python setup.py install --user

Then when i executed:
$ hide --strategy-start=2016-03-21-00:00:00 --strategy-end=2016-03-21-23:59:00 --verbose=True hide.config.bleien7m

as described in the usage section: https://hide.readthedocs.io/en/latest/usage.html
i got the following error:

IOError: /Users/dimitrioslazarou/.local/lib/python2.7/site-packages/hide-0.1.0-py2.7.egg/hide/data/sun_gain_template.dat not found.

I copy pasted this file from https://github.com/cosmo-ethz/seek/tree/master/seek/data as a workaround but now i am getting another error:

No such file or directory: u'/Users/dimitrioslazarou/.local/lib/python2.7/site-packages/hide-0.1.0-py2.7.egg/hide/data/full_scan_schedule.txt'

Is there any guide on how to create files in the data folder of HIDE?

Thanks a lot!

UnsupportedPluginTypeException

When I run the command

hide --strategy-start=2016-03-21-00:00:00 --strategy-end=2016-03-21-23:59:00 --verbose=True hide.config.bleien7m

There was an error,

Traceback (most recent call last):
  File "/home/zhangyazhou/.local/bin/hide", line 11, in <module>
    load_entry_point('hide==0.1.0', 'console_scripts', 'hide')()
  File "/home/zhangyazhou/anaconda3/envs/hide_env/lib/python2.7/site-packages/ivy/cli/main.py", line 28, in run
    _main(*sys.argv[1:])
  File "/home/zhangyazhou/anaconda3/envs/hide_env/lib/python2.7/site-packages/ivy/cli/main.py", line 37, in _main
    mgr.launch()
  File "/home/zhangyazhou/anaconda3/envs/hide_env/lib/python2.7/site-packages/ivy/workflow_manager.py", line 107, in launch
    executor.run(ctx().params.plugins)
  File "/home/zhangyazhou/anaconda3/envs/hide_env/lib/python2.7/site-packages/ivy/backend.py", line 48, in run
    return map(LoopWrapper(loop), mapPlugin.getWorkload())
  File "/home/zhangyazhou/anaconda3/envs/hide_env/lib/python2.7/site-packages/ivy/backend.py", line 126, in __call__
    for plugin in self.loop:
  File "/home/zhangyazhou/anaconda3/envs/hide_env/lib/python2.7/site-packages/ivy/loop.py", line 95, in next
    return self._instantiate(plugin)
  File "/home/zhangyazhou/anaconda3/envs/hide_env/lib/python2.7/site-packages/ivy/loop.py", line 136, in _instantiate
    return PluginFactory.createInstance(pluginName, self.ctx)
  File "/home/zhangyazhou/anaconda3/envs/hide_env/lib/python2.7/site-packages/ivy/plugin/plugin_factory.py", line 59, in createInstance
    raise UnsupportedPluginTypeException("Module '%s' could not be instantiated'" % pluginName, ex)ivy.exceptions.exceptions.UnsupportedPluginTypeException: (u"Module 'hide.plugins.load_beam_profile' could not be instantiated'", ValueError(u"Coordinate frame barycentricmeanecliptic not in allowed values ['altaz', 'barycentrictrueecliptic', 'cirs', 'fk4', 'fk4noeterms', 'fk5', 'galactic', 'galacticlsr', 'galactocentric', 'gcrs', 'geocentrictrueecliptic', 'hcrs', 'heliocentrictrueecliptic', 'icrs', 'itrs', 'lsr', 'precessedgeocentric', 'supergalactic']",))
  • My operating system is the virtual machine ubuntu20
    Thank you a lot

running error

I am reaching out to seek assistance with the installation and usage of the hide package. I have created a Python 2.7 virtual environment on Ubuntu 22.04 and followed the steps outlined in the hide documentation for installation.
However, I encountered an issue when attempting to run the following command:
hide --strategy-start=2016-03-21-00:00:00 --strategy-end=2016-03-21-23:59:00 --verbose=True hide.config.bleien7m
The error message I received is as follows:
Command 'hide' not found, did you mean:
command 'ghide' from snap ghide (1.0.3)
command 'hime' from deb hime (0.9.11+dfsg-2build1)
command 'aide' from deb aide (0.17.4-1)
command 'tide' from deb xtide (2.15.2-1.1)
See 'snap info ' for additional versions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.