Replies: 4 comments 8 replies
-
As far as the virtual environment goes, this has documentation on what command to run in windows to activate it: https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/ |
Beta Was this translation helpful? Give feedback.
-
I think that the pip install version only gets the 0.1.0 version which is out of date for the tutorials. The way dirty images and weighting is done has changed and the tutorial has the up to date commands but 0.1.0 doesn't. |
Beta Was this translation helpful? Give feedback.
-
For all of your development efforts, I highly recommend that you install your fork of the project from source in editable mode. For example, Tyler would do
and then create/switch to whatever branch he's using for development. After creating and activating a python virtual environment, he would switch to
to install the package and its development dependencies. The
The installation from PyPI is best for someone who is a user but not developer of the package. So this is normally what happens when you use stable packages like numpy, scipy, etc... Our goal is to periodically release stable packages (I plan to release v0.1.1 when we complete the following issues), but of course these will not reflect the latest development changes that are made after the release. You can always see which package is installed in your python (virtual) environment by doing
If you've done the
or wherever you have the folder located locally. If you see something like
then you'll need to uninstall this PyPI version ( |
Beta Was this translation helpful? Give feedback.
-
I'm not sure what's going on with Tyler's question about failing
? I agree with your feeling that this might be an issue with the Windows command prompt. I too am quite unfamiliar. |
Beta Was this translation helpful? Give feedback.
-
When trying to compile and run the opimization.py file, I ran into an issue where I could not convert the gridder object into a pytorch dataset (gridder.to_pytorch_dataset()). I got the following error:
I also get this on jupyter: "To export with uncertainties, first grid visibilities with weighting='uniform', no tapering function, and robust=None. Otherwise, data weights are not defined."
I am using the pip install mpol version instead of the developer version for this, and when I try to graph the visibilities (gridder.get_dirty_image(weighting='uniform')) I get: "get_dirty_image() got an unexpected keyword argument 'weighting'", and therefore when I try to run get_dirty_image() with no arguments I get: "'Gridder' object has no attribute 'C'". However, with the developer version I do not have these issues with get_dirty_image().
Furthermore, under the Developer Documentation, I ran into issue while attempting to install the '.[dev]' version of MPoL on windows meriting the following error:
If I am doing something wrong, let me know. I am more familiar with working in MacOS's terminal than I am in windows cmd prompt so I may be a little out of my element here.
I also had an issue with creating the virtual environment as described here. As windows installs the 'activate' file under 'venv\Scripts\activate' and 'source' is not recognized as an internal or external command...
Beta Was this translation helpful? Give feedback.
All reactions