Skip to content

Commit

Permalink
Reduce size of test flt
Browse files Browse the repository at this point in the history
  • Loading branch information
jadball committed Sep 2, 2024
1 parent b0d6a45 commit 9d6f7f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8,695 deletions.
11 changes: 4 additions & 7 deletions sandbox/jadb/multiphase/par_json_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,17 @@
# Add ImageD11 local
PYTHONPATH = setup_ImageD11_from_git( os.path.join( os.environ['HOME'],'Code'), 'ImageD11' )

# Add xfab local
sys.path.insert(0, '/home/esrf/james1997a/Code/xfab')

from xfab.parameters import parameters, JsonPars
from ImageD11.parameters import parameters, AnalysisSchema
from ImageD11.unitcell import Phases
from ImageD11.columnfile import columnfile


def main():
# read a json file into JsonPars
json_pars = JsonPars('pars.json')
# read a json file into AnalysisSchema
json_pars = AnalysisSchema('pars.json')

# print the json dict
print(json_pars.json_dict)
print(json_pars.pars_dict)

# print the geometry pars object
print(json_pars.geometry_pars_obj.get_parameters())
Expand Down
Loading

0 comments on commit 9d6f7f1

Please sign in to comment.