Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
finesse
pykat
Commits
76a04671
Commit
76a04671
authored
May 11, 2015
by
Daniel Brown
Browse files
adding nc arg for maps
parent
b1dc5fd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/optics/maps.py
View file @
76a04671
...
...
@@ -206,7 +206,7 @@ class surfacemap(object):
return
self
.
ROMWeights
,
EI
def
generateROMWeightsNew
(
self
,
EIxFilename
,
EIyFilename
=
None
,
verbose
=
False
,
interpolate
=
False
):
def
generateROMWeightsNew
(
self
,
EIxFilename
,
EIyFilename
=
None
,
verbose
=
False
,
interpolate
=
False
,
newtonCotesOrder
=
8
):
if
interpolate
==
True
:
# Use EI nodes to interpolate if we
with
open
(
EIxFilename
,
'rb'
)
as
f
:
...
...
@@ -228,7 +228,7 @@ class surfacemap(object):
self
.
interpolate
(
nx
,
ny
)
self
.
_rom_weights
=
makeWeightsNew
(
self
,
EIxFilename
,
EIyFilename
,
verbose
=
verbose
)
self
.
_rom_weights
=
makeWeightsNew
(
self
,
EIxFilename
,
EIyFilename
,
verbose
=
verbose
,
newtonCotesOrder
=
newtonCotesOrder
)
return
self
.
ROMWeights
def
interpolate
(
self
,
nx
,
ny
,
**
kwargs
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment