Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Fdc quick fix (#285)
Browse files Browse the repository at this point in the history
* bug fix

* new truth fields

* delete

* Update wfsim/core/pulse.py

Co-authored-by: Joran Angevaare <jorana@nikhef.nl>

* add more

* sneaky bug fix

* change in other files

* rescale as intended

* more fix

Co-authored-by: Joran Angevaare <jorana@nikhef.nl>
Co-authored-by: Andrii Terliuk <andrey.terlyuk@gmail.com>
  • Loading branch information
3 people committed Mar 31, 2022
1 parent b4dc86f commit 262cf67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions wfsim/load_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ def __init__(self, config=None):

if config.get('field_distortion_model', "none") == "inverse_fdc":
self.fdc_3d = make_map(files['fdc_3d'], fmt='json.gz')
self.fdc_3d.scale_coordinates([1., 1., - config['drift_velocity_liquid']])

if config.get('field_distortion_model', "none") == "comsol":
self.fd_comsol = make_map(config['field_distortion_comsol_map'], fmt='json.gz', method='RectBivariateSpline')
Expand Down

0 comments on commit 262cf67

Please sign in to comment.