Skip to content

Commit

Permalink
Get colors module working with updated gfort2py
Browse files Browse the repository at this point in the history
  • Loading branch information
rjfarmer committed Aug 29, 2023
1 parent 9cfe7cd commit d22b4c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions mesa_models/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@

ierr = 0

fnames = np.array([os.path.join(pym.DATA_DIR,'colors','lcb98cor.dat')],dtype='S')
fnames = np.array(['lcb98cor.dat'],dtype='S')

# Currently broken in gfort2py
col_lib.colors_init(len(fnames),fnames,11,ierr)
# Needs gfort2py >=2.2.1
col_lib.colors_init(len(fnames),fnames,np.array([11]),ierr)



Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
gfort2py>=2.0.0
gfort2py>=2.2.1

0 comments on commit d22b4c4

Please sign in to comment.