Skip to content

Commit

Permalink
Merge pull request #128 from svalinn/pystell-path
Browse files Browse the repository at this point in the history
Assume pystell is installed properly in Python environment
  • Loading branch information
gonuke authored Jul 16, 2024
2 parents d4d8f20 + 09f9056 commit 837de9d
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 24 deletions.
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

0 comments on commit 837de9d

Please sign in to comment.