Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assume pystell is installed properly in Python environment #128

Merged
merged 7 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM continuumio/miniconda3 as parastell-deps
FROM continuumio/miniconda3 AS parastell-deps

ENV TZ=America/Chicago
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
Expand Down Expand Up @@ -46,10 +46,4 @@ COPY ./environment.yml /environment.yml
RUN conda env create -f environment.yml
RUN echo "conda activate parastell_env" >> /opt/etc/bashrc

WORKDIR /opt

# Install PyStell-UW
RUN git clone https://github.com/aaroncbader/pystell_uw.git
ENV PYTHONPATH=$PYTHONPATH:/opt/pystell_uw

WORKDIR /
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,6 @@ While it is possible to use ParaStell with older versions of Cubit, additional s

If you do not have a Coreform Cubit license, you may be able to get one through [Cubit Learn](https://coreform.com/products/coreform-cubit/free-meshing-software/) at no cost.

### Install PyStell-UW
Download and extract the PyStell-UW repository:

```bash
git clone https://github.com/aaroncbader/pystell_uw.git
```

or download the and extract the ZIP file from [PyStell-UW](https://github.com/aaroncbader/pystell_uw). Once extracted, add the repository directory to your `PYTHONPATH`.

## Install ParaStell
Download and extract the ParaStell repository:

Expand Down
3 changes: 2 additions & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ dependencies:
- pip:
- netcdf4
- pyyaml
- pytest
- pytest
- git+https://github.com/aaroncbader/pystell_uw.git
2 changes: 1 addition & 1 deletion parastell/invessel_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import cubit
import cadquery as cq
import cad_to_dagmc
import src.pystell.read_vmec as read_vmec
import pystell.read_vmec as read_vmec

from . import log
from .utils import (
Expand Down
4 changes: 2 additions & 2 deletions parastell/nwl_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import numpy as np
from scipy.optimize import direct
import openmc
import src.pystell.read_vmec as read_vmec
import pystell.read_vmec as read_vmec
import matplotlib.pyplot as plt


Expand Down Expand Up @@ -349,4 +349,4 @@ def nwl_plot(
nwl_mat = nwl_mat/area_array
plot(nwl_mat, phi_pts, theta_pts, num_levels)

return nwl_mat, phi_pts, theta_pts, area_array
return nwl_mat, phi_pts, theta_pts, area_array
2 changes: 1 addition & 1 deletion parastell/parastell.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import cubit
import numpy as np
import src.pystell.read_vmec as read_vmec
import pystell.read_vmec as read_vmec

from . import log

Expand Down
2 changes: 1 addition & 1 deletion parastell/source_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import numpy as np
from pymoab import core, types
import src.pystell.read_vmec as read_vmec
import pystell.read_vmec as read_vmec

from . import log as log
from .utils import read_yaml_config, filter_kwargs, m2cm
Expand Down
2 changes: 1 addition & 1 deletion tests/test_invessel_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# dependencies correctly
import parastell.invessel_build as ivb

import src.pystell.read_vmec as read_vmec
import pystell.read_vmec as read_vmec


def remove_files():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_source_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import numpy as np
import pytest
import src.pystell.read_vmec as read_vmec
import pystell.read_vmec as read_vmec

import parastell.source_mesh as sm

Expand Down