Changeset 40c5104 in sasview
- Timestamp:
- Feb 24, 2015 2:01:41 PM (10 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- cd5e29b
- Parents:
- 6c9f25d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/perspectives/fitting/models.py
r6c9f25d r40c5104 314 314 self.model_name_list = [] 315 315 316 #Build list automagically 316 #Build list automagically from sasmodels package 317 317 import pkgutil 318 318 from importlib import import_module … … 320 320 for importer,modname,ispkg in pkgutil.iter_modules(sasmodels.models.__path__): 321 321 if not ispkg: 322 #do sasview stuff323 322 module = import_module('.'+modname,'sasmodels.models') 324 323 self.model_dictionary[module.oldname] = make_class(module, dtype='single',namestyle='oldname') 325 324 self.model_name_list.append(module.oldname) 326 325 327 # try: 326 327 ### NASTY HACK - Comment out most of these lines as models are added to sasmodels. 328 ### Still need the lines that put models into multiplication etc 329 330 try: 328 331 # # from sas.models.SphereModel import SphereModel 329 332 # from sasmodels.models import sphere … … 331 334 # self.model_dictionary[SphereModel.__name__] = SphereModel 332 335 # # self.shape_list.append(SphereModel) 333 #self.multiplication_factor.append(SphereModel)336 self.multiplication_factor.append(SphereModel) 334 337 # self.model_name_list.append(SphereModel.__name__) 335 #except:336 #pass337 338 #try:339 #from sas.models.BinaryHSModel import BinaryHSModel340 #self.model_dictionary[BinaryHSModel.__name__] = BinaryHSModel341 ## self.shape_list.append(BinaryHSModel)342 #self.model_name_list.append(BinaryHSModel.__name__)343 #except:344 #pass345 # 346 #try:347 #from sas.models.FuzzySphereModel import FuzzySphereModel348 #self.model_dictionary[FuzzySphereModel.__name__] = FuzzySphereModel349 ## self.shape_list.append(FuzzySphereModel)350 #self.multiplication_factor.append(FuzzySphereModel)351 #self.model_name_list.append(FuzzySphereModel.__name__)352 #except:353 #pass354 # 355 #try:356 #from sas.models.RaspBerryModel import RaspBerryModel357 #self.model_dictionary[RaspBerryModel.__name__] = RaspBerryModel358 ## self.shape_list.append(RaspBerryModel)359 #self.model_name_list.append(RaspBerryModel.__name__)360 #except:361 #pass362 # 363 #try:364 #from sas.models.CoreShellModel import CoreShellModel365 # 366 #self.model_dictionary[CoreShellModel.__name__] = CoreShellModel367 ## self.shape_list.append(CoreShellModel)368 #self.multiplication_factor.append(CoreShellModel)369 #self.model_name_list.append(CoreShellModel.__name__)370 #except:371 #pass372 # 373 #try:374 #from sas.models.Core2ndMomentModel import Core2ndMomentModel375 #self.model_dictionary[Core2ndMomentModel.__name__] = Core2ndMomentModel376 ## self.shape_list.append(Core2ndMomentModel)377 #self.model_name_list.append(Core2ndMomentModel.__name__)378 #except:379 #pass380 # 381 #try:382 #from sas.models.CoreMultiShellModel import CoreMultiShellModel383 #self.model_dictionary[CoreMultiShellModel.__name__] = CoreMultiShellModel384 ## self.shape_list.append(CoreMultiShellModel)385 #self.multiplication_factor.append(CoreMultiShellModel)386 #self.multi_func_list.append(CoreMultiShellModel)387 #except:388 #pass389 # 390 #try:391 #from sas.models.VesicleModel import VesicleModel392 #self.model_dictionary[VesicleModel.__name__] = VesicleModel393 ## self.shape_list.append(VesicleModel)394 #self.multiplication_factor.append(VesicleModel)395 #self.model_name_list.append(VesicleModel.__name__)396 #except:397 #pass398 # 399 #try:400 #from sas.models.MultiShellModel import MultiShellModel401 #self.model_dictionary[MultiShellModel.__name__] = MultiShellModel402 ## self.shape_list.append(MultiShellModel)403 #self.multiplication_factor.append(MultiShellModel)404 #self.model_name_list.append(MultiShellModel.__name__)405 #except:406 #pass407 # 408 #try:409 #from sas.models.OnionExpShellModel import OnionExpShellModel410 #self.model_dictionary[OnionExpShellModel.__name__] = OnionExpShellModel411 ## self.shape_list.append(OnionExpShellModel)412 #self.multiplication_factor.append(OnionExpShellModel)413 #self.multi_func_list.append(OnionExpShellModel)414 #except:415 #pass416 # 417 #try:418 #from sas.models.SphericalSLDModel import SphericalSLDModel419 # 420 #self.model_dictionary[SphericalSLDModel.__name__] = SphericalSLDModel421 ## self.shape_list.append(SphericalSLDModel)422 #self.multiplication_factor.append(SphericalSLDModel)423 #self.multi_func_list.append(SphericalSLDModel)424 #except:425 #pass426 # 427 #try:428 #from sas.models.LinearPearlsModel import LinearPearlsModel429 # 430 #self.model_dictionary[LinearPearlsModel.__name__] = LinearPearlsModel431 ## self.shape_list.append(LinearPearlsModel)432 #self.model_name_list.append(LinearPearlsModel.__name__)433 #except:434 #pass435 # 436 #try:437 #from sas.models.PearlNecklaceModel import PearlNecklaceModel438 # 439 #self.model_dictionary[PearlNecklaceModel.__name__] = PearlNecklaceModel440 ## self.shape_list.append(PearlNecklaceModel)441 #self.model_name_list.append(PearlNecklaceModel.__name__)442 #except:443 #pass444 # 445 #try:446 #from sas.models.CylinderModel import CylinderModel447 # 448 #self.model_dictionary[CylinderModel.__name__] = CylinderModel449 ## self.shape_list.append(CylinderModel)450 #self.multiplication_factor.append(CylinderModel)451 #self.model_name_list.append(CylinderModel.__name__)452 #except:453 #pass454 # 455 #try:456 #from sas.models.CoreShellCylinderModel import CoreShellCylinderModel457 # 458 #self.model_dictionary[CoreShellCylinderModel.__name__] = CoreShellCylinderModel459 ## self.shape_list.append(CoreShellCylinderModel)460 #self.multiplication_factor.append(CoreShellCylinderModel)461 #self.model_name_list.append(CoreShellCylinderModel.__name__)462 #except:463 #pass464 # 465 #try:466 #from sas.models.CoreShellBicelleModel import CoreShellBicelleModel467 # 468 #self.model_dictionary[CoreShellBicelleModel.__name__] = CoreShellBicelleModel469 ## self.shape_list.append(CoreShellBicelleModel)470 #self.multiplication_factor.append(CoreShellBicelleModel)471 #self.model_name_list.append(CoreShellBicelleModel.__name__)472 #except:473 #pass474 # 475 #try:476 #from sas.models.HollowCylinderModel import HollowCylinderModel477 # 478 #self.model_dictionary[HollowCylinderModel.__name__] = HollowCylinderModel479 ## self.shape_list.append(HollowCylinderModel)480 #self.multiplication_factor.append(HollowCylinderModel)481 #self.model_name_list.append(HollowCylinderModel.__name__)482 #except:483 #pass484 # 485 #try:486 #from sas.models.FlexibleCylinderModel import FlexibleCylinderModel487 # 488 #self.model_dictionary[FlexibleCylinderModel.__name__] = FlexibleCylinderModel489 ## self.shape_list.append(FlexibleCylinderModel)490 #self.model_name_list.append(FlexibleCylinderModel.__name__)491 #except:492 #pass493 # 494 #try:495 #from sas.models.FlexCylEllipXModel import FlexCylEllipXModel496 # 497 #self.model_dictionary[FlexCylEllipXModel.__name__] = FlexCylEllipXModel498 ## self.shape_list.append(FlexCylEllipXModel)499 #self.model_name_list.append(FlexCylEllipXModel.__name__)500 #except:501 #pass502 # 503 #try:504 #from sas.models.StackedDisksModel import StackedDisksModel505 # 506 #self.model_dictionary[StackedDisksModel.__name__] = StackedDisksModel507 ## self.shape_list.append(StackedDisksModel)508 #self.multiplication_factor.append(StackedDisksModel)509 #self.model_name_list.append(StackedDisksModel.__name__)510 #except:511 #pass512 # 513 #try:514 #from sas.models.ParallelepipedModel import ParallelepipedModel515 # 516 #self.model_dictionary[ParallelepipedModel.__name__] = ParallelepipedModel517 ## self.shape_list.append(ParallelepipedModel)518 #self.multiplication_factor.append(ParallelepipedModel)519 #self.model_name_list.append(ParallelepipedModel.__name__)520 #except:521 #pass522 # 523 #try:524 #from sas.models.CSParallelepipedModel import CSParallelepipedModel525 # 526 #self.model_dictionary[CSParallelepipedModel.__name__] = CSParallelepipedModel527 ## self.shape_list.append(CSParallelepipedModel)528 #self.multiplication_factor.append(CSParallelepipedModel)529 #self.model_name_list.append(CSParallelepipedModel.__name__)530 #except:531 #pass532 # 533 #try:534 #from sas.models.EllipticalCylinderModel import EllipticalCylinderModel535 # 536 #self.model_dictionary[EllipticalCylinderModel.__name__] = EllipticalCylinderModel537 ## self.shape_list.append(EllipticalCylinderModel)538 #self.multiplication_factor.append(EllipticalCylinderModel)539 #self.model_name_list.append(EllipticalCylinderModel.__name__)540 #except:541 #pass542 # 543 #try:544 #from sas.models.CappedCylinderModel import CappedCylinderModel545 # 546 #self.model_dictionary[CappedCylinderModel.__name__] = CappedCylinderModel547 ## self.shape_list.append(CappedCylinderModel)548 #self.model_name_list.append(CappedCylinderModel.__name__)549 #except:550 #pass551 # 552 #try:553 #from sas.models.EllipsoidModel import EllipsoidModel554 # 555 #self.model_dictionary[EllipsoidModel.__name__] = EllipsoidModel556 ## self.shape_list.append(EllipsoidModel)557 #self.multiplication_factor.append(EllipsoidModel)558 #self.model_name_list.append(EllipsoidModel.__name__)559 #except:560 #pass561 # 562 #try:563 #from sas.models.CoreShellEllipsoidModel import CoreShellEllipsoidModel564 # 565 #self.model_dictionary[CoreShellEllipsoidModel.__name__] = CoreShellEllipsoidModel566 ## self.shape_list.append(CoreShellEllipsoidModel)567 #self.multiplication_factor.append(CoreShellEllipsoidModel)568 #self.model_name_list.append(CoreShellEllipsoidModel.__name__)569 #except:570 #pass571 # 572 #try:573 #from sas.models.CoreShellEllipsoidXTModel import CoreShellEllipsoidXTModel574 # 575 #self.model_dictionary[CoreShellEllipsoidXTModel.__name__] = CoreShellEllipsoidXTModel576 ## self.shape_list.append(CoreShellEllipsoidXTModel)577 #self.multiplication_factor.append(CoreShellEllipsoidXTModel)578 #self.model_name_list.append(CoreShellEllipsoidXTModel.__name__)579 #except:580 #pass581 # 582 #try:583 #from sas.models.TriaxialEllipsoidModel import TriaxialEllipsoidModel584 # 585 #self.model_dictionary[TriaxialEllipsoidModel.__name__] = TriaxialEllipsoidModel586 ## self.shape_list.append(TriaxialEllipsoidModel)587 #self.multiplication_factor.append(TriaxialEllipsoidModel)588 #self.model_name_list.append(TriaxialEllipsoidModel.__name__)589 #except:590 #pass591 # 592 #try:593 #from sas.models.LamellarModel import LamellarModel594 # 595 #self.model_dictionary[LamellarModel.__name__] = LamellarModel596 ## self.shape_list.append(LamellarModel)597 #self.model_name_list.append(LamellarModel.__name__)598 #except:599 #pass600 # 601 #try:602 #from sas.models.LamellarFFHGModel import LamellarFFHGModel603 # 604 #self.model_dictionary[LamellarFFHGModel.__name__] = LamellarFFHGModel605 ## self.shape_list.append(LamellarFFHGModel)606 #self.model_name_list.append(LamellarFFHGModel.__name__)607 #except:608 #pass609 # 610 #try:611 #from sas.models.LamellarPSModel import LamellarPSModel612 # 613 #self.model_dictionary[LamellarPSModel.__name__] = LamellarPSModel614 ## self.shape_list.append(LamellarPSModel)615 #self.model_name_list.append(LamellarPSModel.__name__)616 #except:617 #pass618 # 619 #try:620 #from sas.models.LamellarPSHGModel import LamellarPSHGModel621 # 622 #self.model_dictionary[LamellarPSHGModel.__name__] = LamellarPSHGModel623 ## self.shape_list.append(LamellarPSHGModel)624 #self.model_name_list.append(LamellarPSHGModel.__name__)625 #except:626 #pass627 # 628 #try:629 #from sas.models.LamellarPCrystalModel import LamellarPCrystalModel630 # 631 #self.model_dictionary[LamellarPCrystalModel.__name__] = LamellarPCrystalModel632 ## self.shape_list.append(LamellarPCrystalModel)633 #self.model_name_list.append(LamellarPCrystalModel.__name__)634 #except:635 #pass636 # 637 #try:638 #from sas.models.SCCrystalModel import SCCrystalModel639 # 640 #self.model_dictionary[SCCrystalModel.__name__] = SCCrystalModel641 ## self.shape_list.append(SCCrystalModel)642 #self.model_name_list.append(SCCrystalModel.__name__)643 #except:644 #pass645 # 646 #try:647 #from sas.models.FCCrystalModel import FCCrystalModel648 # 649 #self.model_dictionary[FCCrystalModel.__name__] = FCCrystalModel650 ## self.shape_list.append(FCCrystalModel)651 #self.model_name_list.append(FCCrystalModel.__name__)652 #except:653 #pass654 # 655 #try:656 #from sas.models.BCCrystalModel import BCCrystalModel657 # 658 #self.model_dictionary[BCCrystalModel.__name__] = BCCrystalModel659 ## self.shape_list.append(BCCrystalModel)660 #self.model_name_list.append(BCCrystalModel.__name__)661 #except:662 #pass663 # 664 # 665 # ## Structure factor666 #try:667 #from sas.models.SquareWellStructure import SquareWellStructure668 # 669 #self.model_dictionary[SquareWellStructure.__name__] = SquareWellStructure670 #self.struct_list.append(SquareWellStructure)671 #self.model_name_list.append(SquareWellStructure.__name__)672 #except:673 #pass674 # 675 #try:676 #from sas.models.HardsphereStructure import HardsphereStructure677 # 678 #self.model_dictionary[HardsphereStructure.__name__] = HardsphereStructure679 #self.struct_list.append(HardsphereStructure)680 #self.model_name_list.append(HardsphereStructure.__name__)681 #except:682 #pass683 # 684 #try:685 #from sas.models.StickyHSStructure import StickyHSStructure686 # 687 #self.model_dictionary[StickyHSStructure.__name__] = StickyHSStructure688 #self.struct_list.append(StickyHSStructure)689 #self.model_name_list.append(StickyHSStructure.__name__)690 #except:691 #pass692 # 693 #try:694 #from sas.models.HayterMSAStructure import HayterMSAStructure695 # 696 #self.model_dictionary[HayterMSAStructure.__name__] = HayterMSAStructure697 #self.struct_list.append(HayterMSAStructure)698 #self.model_name_list.append(HayterMSAStructure.__name__)699 #except:700 #pass701 # 702 # 703 # 704 # ##shape-independent models705 #try:706 #from sas.models.PowerLawAbsModel import PowerLawAbsModel707 # 708 #self.model_dictionary[PowerLawAbsModel.__name__] = PowerLawAbsModel709 ## self.shape_indep_list.append(PowerLawAbsModel)710 #self.model_name_list.append(PowerLawAbsModel.__name__)711 #except:712 #pass713 # 714 #try:715 #from sas.models.BEPolyelectrolyte import BEPolyelectrolyte716 # 717 #self.model_dictionary[BEPolyelectrolyte.__name__] = BEPolyelectrolyte718 ## self.shape_indep_list.append(BEPolyelectrolyte)719 #self.model_name_list.append(BEPolyelectrolyte.__name__)720 #self.form_factor_dict[str(wx.NewId())] = [SphereModel]721 #except:722 #pass723 # 724 #try:725 #from sas.models.BroadPeakModel import BroadPeakModel726 # 727 #self.model_dictionary[BroadPeakModel.__name__] = BroadPeakModel728 ## self.shape_indep_list.append(BroadPeakModel)729 #self.model_name_list.append(BroadPeakModel.__name__)730 #except:731 #pass732 # 733 #try:734 #from sas.models.CorrLengthModel import CorrLengthModel735 # 736 #self.model_dictionary[CorrLengthModel.__name__] = CorrLengthModel737 ## self.shape_indep_list.append(CorrLengthModel)738 #self.model_name_list.append(CorrLengthModel.__name__)739 #except:740 #pass741 # 742 #try:743 #from sas.models.DABModel import DABModel744 # 745 #self.model_dictionary[DABModel.__name__] = DABModel746 ## self.shape_indep_list.append(DABModel)747 #self.model_name_list.append(DABModel.__name__)748 #except:749 #pass750 # 751 #try:752 #from sas.models.DebyeModel import DebyeModel753 # 754 #self.model_dictionary[DebyeModel.__name__] = DebyeModel755 ## self.shape_indep_list.append(DebyeModel)756 #self.model_name_list.append(DebyeModel.__name__)757 #except:758 #pass759 # 760 #try:761 #from sas.models.FractalModel import FractalModel762 # 763 #self.model_dictionary[FractalModel.__name__] = FractalModel764 ## self.shape_indep_list.append(FractalModel)765 #self.model_name_list.append(FractalModel.__name__)766 #except:767 #pass768 # 769 #try:770 #from sas.models.FractalCoreShellModel import FractalCoreShellModel771 # 772 #self.model_dictionary[FractalCoreShellModel.__name__] = FractalCoreShellModel773 ## self.shape_indep_list.append(FractalCoreShellModel)774 #self.model_name_list.append(FractalCoreShellModel.__name__)775 #except:776 #pass777 # 778 #try:779 #from sas.models.GaussLorentzGelModel import GaussLorentzGelModel780 # 781 #self.model_dictionary[GaussLorentzGelModel.__name__] = GaussLorentzGelModel782 ## self.shape_indep_list.append(GaussLorentzGelModel)783 #self.model_name_list.append(GaussLorentzGelModel.__name__)784 #except:785 #pass786 # 787 #try:788 #from sas.models.GuinierModel import GuinierModel789 # 790 #self.model_dictionary[GuinierModel.__name__] = GuinierModel791 ## self.shape_indep_list.append(GuinierModel)792 #self.model_name_list.append(GuinierModel.__name__)793 #except:794 #pass795 # 796 #try:797 #from sas.models.GuinierPorodModel import GuinierPorodModel798 # 799 #self.model_dictionary[GuinierPorodModel.__name__] = GuinierPorodModel800 ## self.shape_indep_list.append(GuinierPorodModel)801 #self.model_name_list.append(GuinierPorodModel.__name__)802 #except:803 #pass804 # 805 #try:806 #from sas.models.LorentzModel import LorentzModel807 # 808 #self.model_dictionary[LorentzModel.__name__] = LorentzModel809 ## self.shape_indep_list.append(LorentzModel)810 #self.model_name_list.append(LorentzModel.__name__)811 #except:812 #pass813 # 814 #try:815 #from sas.models.MassFractalModel import MassFractalModel816 # 817 #self.model_dictionary[MassFractalModel.__name__] = MassFractalModel818 ## self.shape_indep_list.append(MassFractalModel)819 #self.model_name_list.append(MassFractalModel.__name__)820 #except:821 #pass822 # 823 #try:824 #from sas.models.MassSurfaceFractal import MassSurfaceFractal825 # 826 #self.model_dictionary[MassSurfaceFractal.__name__] = MassSurfaceFractal827 ## self.shape_indep_list.append(MassSurfaceFractal)828 #self.model_name_list.append(MassSurfaceFractal.__name__)829 #except:830 #pass831 # 832 #try:833 #from sas.models.PeakGaussModel import PeakGaussModel834 # 835 #self.model_dictionary[PeakGaussModel.__name__] = PeakGaussModel836 ## self.shape_indep_list.append(PeakGaussModel)837 #self.model_name_list.append(PeakGaussModel.__name__)838 #except:839 #pass840 # 841 #try:842 #from sas.models.PeakLorentzModel import PeakLorentzModel843 # 844 #self.model_dictionary[PeakLorentzModel.__name__] = PeakLorentzModel845 ## self.shape_indep_list.append(PeakLorentzModel)846 #self.model_name_list.append(PeakLorentzModel.__name__)847 #except:848 #pass849 # 850 #try:851 #from sas.models.Poly_GaussCoil import Poly_GaussCoil852 # 853 #self.model_dictionary[Poly_GaussCoil.__name__] = Poly_GaussCoil854 ## self.shape_indep_list.append(Poly_GaussCoil)855 #self.model_name_list.append(Poly_GaussCoil.__name__)856 #except:857 #pass858 # 859 #try:860 #from sas.models.PolymerExclVolume import PolymerExclVolume861 # 862 #self.model_dictionary[PolymerExclVolume.__name__] = PolymerExclVolume863 ## self.shape_indep_list.append(PolymerExclVolume)864 #self.model_name_list.append(PolymerExclVolume.__name__)865 #except:866 #pass867 # 868 #try:869 #from sas.models.PorodModel import PorodModel870 # 871 #self.model_dictionary[PorodModel.__name__] = PorodModel872 ## self.shape_indep_list.append(PorodModel)873 #self.model_name_list.append(PorodModel.__name__)874 #except:875 #pass876 # 877 #try:878 #from sas.models.RPA10Model import RPA10Model879 # 880 #self.model_dictionary[RPA10Model.__name__] = RPA10Model881 ## self.shape_indep_list.append(RPA10Model)882 #self.multi_func_list.append(RPA10Model)883 #except:884 #pass885 # 886 #try:887 #from sas.models.StarPolymer import StarPolymer888 # 889 #self.model_dictionary[StarPolymer.__name__] = StarPolymer890 ## self.shape_indep_list.append(StarPolymer)891 #self.model_name_list.append(StarPolymer.__name__)892 #except:893 #pass894 # 895 #try:896 #from sas.models.SurfaceFractalModel import SurfaceFractalModel897 # 898 #self.model_dictionary[SurfaceFractalModel.__name__] = SurfaceFractalModel899 ## self.shape_indep_list.append(SurfaceFractalModel)900 #self.model_name_list.append(SurfaceFractalModel.__name__)901 #except:902 #pass903 # 904 #try:905 #from sas.models.TeubnerStreyModel import TeubnerStreyModel906 # 907 #self.model_dictionary[TeubnerStreyModel.__name__] = TeubnerStreyModel908 ## self.shape_indep_list.append(TeubnerStreyModel)909 #self.model_name_list.append(TeubnerStreyModel.__name__)910 #except:911 #pass912 # 913 #try:914 #from sas.models.TwoLorentzianModel import TwoLorentzianModel915 # 916 #self.model_dictionary[TwoLorentzianModel.__name__] = TwoLorentzianModel917 ## self.shape_indep_list.append(TwoLorentzianModel)918 #self.model_name_list.append(TwoLorentzianModel.__name__)919 #except:920 #pass921 # 922 #try:923 #from sas.models.TwoPowerLawModel import TwoPowerLawModel924 # 925 #self.model_dictionary[TwoPowerLawModel.__name__] = TwoPowerLawModel926 ## self.shape_indep_list.append(TwoPowerLawModel)927 #self.model_name_list.append(TwoPowerLawModel.__name__)928 #except:929 #pass930 # 931 #try:932 #from sas.models.UnifiedPowerRgModel import UnifiedPowerRgModel933 # 934 #self.model_dictionary[UnifiedPowerRgModel.__name__] = UnifiedPowerRgModel935 ## self.shape_indep_list.append(UnifiedPowerRgModel)936 #self.multi_func_list.append(UnifiedPowerRgModel)937 #except:938 #pass939 # 940 #try:941 #from sas.models.LineModel import LineModel942 # 943 #self.model_dictionary[LineModel.__name__] = LineModel944 ## self.shape_indep_list.append(LineModel)945 #self.model_name_list.append(LineModel.__name__)946 #except:947 #pass948 # 949 #try:950 #from sas.models.ReflectivityModel import ReflectivityModel951 # 952 #self.model_dictionary[ReflectivityModel.__name__] = ReflectivityModel953 ## self.shape_indep_list.append(ReflectivityModel)954 #self.multi_func_list.append(ReflectivityModel)955 #except:956 #pass957 # 958 #try:959 #from sas.models.ReflectivityIIModel import ReflectivityIIModel960 # 961 #self.model_dictionary[ReflectivityIIModel.__name__] = ReflectivityIIModel962 ## self.shape_indep_list.append(ReflectivityIIModel)963 #self.multi_func_list.append(ReflectivityIIModel)964 #except:965 #pass966 # 967 #try:968 #from sas.models.GelFitModel import GelFitModel969 # 970 #self.model_dictionary[GelFitModel.__name__] = GelFitModel971 ## self.shape_indep_list.append(GelFitModel)972 #self.model_name_list.append(GelFitModel.__name__)973 #except:974 #pass975 # 976 #try:977 #from sas.models.PringlesModel import PringlesModel978 # 979 #self.model_dictionary[PringlesModel.__name__] = PringlesModel980 ## self.shape_indep_list.append(PringlesModel)981 #self.model_name_list.append(PringlesModel.__name__)982 #except:983 #pass984 # 985 #try:986 #from sas.models.RectangularPrismModel import RectangularPrismModel987 # 988 #self.model_dictionary[RectangularPrismModel.__name__] = RectangularPrismModel989 ## self.shape_list.append(RectangularPrismModel)990 #self.multiplication_factor.append(RectangularPrismModel)991 #self.model_name_list.append(RectangularPrismModel.__name__)992 #except:993 #pass994 # 995 #try:996 #from sas.models.RectangularHollowPrismInfThinWallsModel import RectangularHollowPrismInfThinWallsModel997 # 998 #self.model_dictionary[RectangularHollowPrismInfThinWallsModel.__name__] = RectangularHollowPrismInfThinWallsModel999 ## self.shape_list.append(RectangularHollowPrismInfThinWallsModel)1000 #self.multiplication_factor.append(RectangularHollowPrismInfThinWallsModel)1001 #self.model_name_list.append(RectangularHollowPrismInfThinWallsModel.__name__)1002 #except:1003 #pass1004 # 1005 #try:1006 #from sas.models.RectangularHollowPrismModel import RectangularHollowPrismModel1007 # 1008 #self.model_dictionary[RectangularHollowPrismModel.__name__] = RectangularHollowPrismModel1009 ## self.shape_list.append(RectangularHollowPrismModel)1010 #self.multiplication_factor.append(RectangularHollowPrismModel)1011 #self.model_name_list.append(RectangularHollowPrismModel.__name__)1012 #except:1013 #pass1014 # 1015 #try:1016 #from sas.models.MicelleSphCoreModel import MicelleSphCoreModel1017 # 1018 #self.model_dictionary[MicelleSphCoreModel.__name__] = MicelleSphCoreModel1019 ## self.shape_list.append(MicelleSphCoreModel)1020 #self.multiplication_factor.append(MicelleSphCoreModel)1021 #self.model_name_list.append(MicelleSphCoreModel.__name__)1022 #except:1023 #pass338 except: 339 pass 340 341 try: 342 from sas.models.BinaryHSModel import BinaryHSModel 343 self.model_dictionary[BinaryHSModel.__name__] = BinaryHSModel 344 # self.shape_list.append(BinaryHSModel) 345 self.model_name_list.append(BinaryHSModel.__name__) 346 except: 347 pass 348 349 try: 350 from sas.models.FuzzySphereModel import FuzzySphereModel 351 self.model_dictionary[FuzzySphereModel.__name__] = FuzzySphereModel 352 # self.shape_list.append(FuzzySphereModel) 353 self.multiplication_factor.append(FuzzySphereModel) 354 self.model_name_list.append(FuzzySphereModel.__name__) 355 except: 356 pass 357 358 try: 359 from sas.models.RaspBerryModel import RaspBerryModel 360 self.model_dictionary[RaspBerryModel.__name__] = RaspBerryModel 361 # self.shape_list.append(RaspBerryModel) 362 self.model_name_list.append(RaspBerryModel.__name__) 363 except: 364 pass 365 366 try: 367 from sas.models.CoreShellModel import CoreShellModel 368 369 self.model_dictionary[CoreShellModel.__name__] = CoreShellModel 370 # self.shape_list.append(CoreShellModel) 371 self.multiplication_factor.append(CoreShellModel) 372 self.model_name_list.append(CoreShellModel.__name__) 373 except: 374 pass 375 376 try: 377 from sas.models.Core2ndMomentModel import Core2ndMomentModel 378 self.model_dictionary[Core2ndMomentModel.__name__] = Core2ndMomentModel 379 # self.shape_list.append(Core2ndMomentModel) 380 self.model_name_list.append(Core2ndMomentModel.__name__) 381 except: 382 pass 383 384 try: 385 from sas.models.CoreMultiShellModel import CoreMultiShellModel 386 self.model_dictionary[CoreMultiShellModel.__name__] = CoreMultiShellModel 387 # self.shape_list.append(CoreMultiShellModel) 388 self.multiplication_factor.append(CoreMultiShellModel) 389 self.multi_func_list.append(CoreMultiShellModel) 390 except: 391 pass 392 393 try: 394 from sas.models.VesicleModel import VesicleModel 395 self.model_dictionary[VesicleModel.__name__] = VesicleModel 396 # self.shape_list.append(VesicleModel) 397 self.multiplication_factor.append(VesicleModel) 398 self.model_name_list.append(VesicleModel.__name__) 399 except: 400 pass 401 402 try: 403 from sas.models.MultiShellModel import MultiShellModel 404 self.model_dictionary[MultiShellModel.__name__] = MultiShellModel 405 # self.shape_list.append(MultiShellModel) 406 self.multiplication_factor.append(MultiShellModel) 407 self.model_name_list.append(MultiShellModel.__name__) 408 except: 409 pass 410 411 try: 412 from sas.models.OnionExpShellModel import OnionExpShellModel 413 self.model_dictionary[OnionExpShellModel.__name__] = OnionExpShellModel 414 # self.shape_list.append(OnionExpShellModel) 415 self.multiplication_factor.append(OnionExpShellModel) 416 self.multi_func_list.append(OnionExpShellModel) 417 except: 418 pass 419 420 try: 421 from sas.models.SphericalSLDModel import SphericalSLDModel 422 423 self.model_dictionary[SphericalSLDModel.__name__] = SphericalSLDModel 424 # self.shape_list.append(SphericalSLDModel) 425 self.multiplication_factor.append(SphericalSLDModel) 426 self.multi_func_list.append(SphericalSLDModel) 427 except: 428 pass 429 430 try: 431 from sas.models.LinearPearlsModel import LinearPearlsModel 432 433 self.model_dictionary[LinearPearlsModel.__name__] = LinearPearlsModel 434 # self.shape_list.append(LinearPearlsModel) 435 self.model_name_list.append(LinearPearlsModel.__name__) 436 except: 437 pass 438 439 try: 440 from sas.models.PearlNecklaceModel import PearlNecklaceModel 441 442 self.model_dictionary[PearlNecklaceModel.__name__] = PearlNecklaceModel 443 # self.shape_list.append(PearlNecklaceModel) 444 self.model_name_list.append(PearlNecklaceModel.__name__) 445 except: 446 pass 447 448 try: 449 from sas.models.CylinderModel import CylinderModel 450 451 self.model_dictionary[CylinderModel.__name__] = CylinderModel 452 # self.shape_list.append(CylinderModel) 453 self.multiplication_factor.append(CylinderModel) 454 self.model_name_list.append(CylinderModel.__name__) 455 except: 456 pass 457 458 try: 459 from sas.models.CoreShellCylinderModel import CoreShellCylinderModel 460 461 self.model_dictionary[CoreShellCylinderModel.__name__] = CoreShellCylinderModel 462 # self.shape_list.append(CoreShellCylinderModel) 463 self.multiplication_factor.append(CoreShellCylinderModel) 464 self.model_name_list.append(CoreShellCylinderModel.__name__) 465 except: 466 pass 467 468 try: 469 from sas.models.CoreShellBicelleModel import CoreShellBicelleModel 470 471 self.model_dictionary[CoreShellBicelleModel.__name__] = CoreShellBicelleModel 472 # self.shape_list.append(CoreShellBicelleModel) 473 self.multiplication_factor.append(CoreShellBicelleModel) 474 self.model_name_list.append(CoreShellBicelleModel.__name__) 475 except: 476 pass 477 478 try: 479 from sas.models.HollowCylinderModel import HollowCylinderModel 480 481 self.model_dictionary[HollowCylinderModel.__name__] = HollowCylinderModel 482 # self.shape_list.append(HollowCylinderModel) 483 self.multiplication_factor.append(HollowCylinderModel) 484 self.model_name_list.append(HollowCylinderModel.__name__) 485 except: 486 pass 487 488 try: 489 from sas.models.FlexibleCylinderModel import FlexibleCylinderModel 490 491 self.model_dictionary[FlexibleCylinderModel.__name__] = FlexibleCylinderModel 492 # self.shape_list.append(FlexibleCylinderModel) 493 self.model_name_list.append(FlexibleCylinderModel.__name__) 494 except: 495 pass 496 497 try: 498 from sas.models.FlexCylEllipXModel import FlexCylEllipXModel 499 500 self.model_dictionary[FlexCylEllipXModel.__name__] = FlexCylEllipXModel 501 # self.shape_list.append(FlexCylEllipXModel) 502 self.model_name_list.append(FlexCylEllipXModel.__name__) 503 except: 504 pass 505 506 try: 507 from sas.models.StackedDisksModel import StackedDisksModel 508 509 self.model_dictionary[StackedDisksModel.__name__] = StackedDisksModel 510 # self.shape_list.append(StackedDisksModel) 511 self.multiplication_factor.append(StackedDisksModel) 512 self.model_name_list.append(StackedDisksModel.__name__) 513 except: 514 pass 515 516 try: 517 from sas.models.ParallelepipedModel import ParallelepipedModel 518 519 self.model_dictionary[ParallelepipedModel.__name__] = ParallelepipedModel 520 # self.shape_list.append(ParallelepipedModel) 521 self.multiplication_factor.append(ParallelepipedModel) 522 self.model_name_list.append(ParallelepipedModel.__name__) 523 except: 524 pass 525 526 try: 527 from sas.models.CSParallelepipedModel import CSParallelepipedModel 528 529 self.model_dictionary[CSParallelepipedModel.__name__] = CSParallelepipedModel 530 # self.shape_list.append(CSParallelepipedModel) 531 self.multiplication_factor.append(CSParallelepipedModel) 532 self.model_name_list.append(CSParallelepipedModel.__name__) 533 except: 534 pass 535 536 try: 537 from sas.models.EllipticalCylinderModel import EllipticalCylinderModel 538 539 self.model_dictionary[EllipticalCylinderModel.__name__] = EllipticalCylinderModel 540 # self.shape_list.append(EllipticalCylinderModel) 541 self.multiplication_factor.append(EllipticalCylinderModel) 542 self.model_name_list.append(EllipticalCylinderModel.__name__) 543 except: 544 pass 545 546 try: 547 from sas.models.CappedCylinderModel import CappedCylinderModel 548 549 self.model_dictionary[CappedCylinderModel.__name__] = CappedCylinderModel 550 # self.shape_list.append(CappedCylinderModel) 551 self.model_name_list.append(CappedCylinderModel.__name__) 552 except: 553 pass 554 555 try: 556 from sas.models.EllipsoidModel import EllipsoidModel 557 558 self.model_dictionary[EllipsoidModel.__name__] = EllipsoidModel 559 # self.shape_list.append(EllipsoidModel) 560 self.multiplication_factor.append(EllipsoidModel) 561 self.model_name_list.append(EllipsoidModel.__name__) 562 except: 563 pass 564 565 try: 566 from sas.models.CoreShellEllipsoidModel import CoreShellEllipsoidModel 567 568 self.model_dictionary[CoreShellEllipsoidModel.__name__] = CoreShellEllipsoidModel 569 # self.shape_list.append(CoreShellEllipsoidModel) 570 self.multiplication_factor.append(CoreShellEllipsoidModel) 571 self.model_name_list.append(CoreShellEllipsoidModel.__name__) 572 except: 573 pass 574 575 try: 576 from sas.models.CoreShellEllipsoidXTModel import CoreShellEllipsoidXTModel 577 578 self.model_dictionary[CoreShellEllipsoidXTModel.__name__] = CoreShellEllipsoidXTModel 579 # self.shape_list.append(CoreShellEllipsoidXTModel) 580 self.multiplication_factor.append(CoreShellEllipsoidXTModel) 581 self.model_name_list.append(CoreShellEllipsoidXTModel.__name__) 582 except: 583 pass 584 585 try: 586 from sas.models.TriaxialEllipsoidModel import TriaxialEllipsoidModel 587 588 self.model_dictionary[TriaxialEllipsoidModel.__name__] = TriaxialEllipsoidModel 589 # self.shape_list.append(TriaxialEllipsoidModel) 590 self.multiplication_factor.append(TriaxialEllipsoidModel) 591 self.model_name_list.append(TriaxialEllipsoidModel.__name__) 592 except: 593 pass 594 595 try: 596 from sas.models.LamellarModel import LamellarModel 597 598 self.model_dictionary[LamellarModel.__name__] = LamellarModel 599 # self.shape_list.append(LamellarModel) 600 self.model_name_list.append(LamellarModel.__name__) 601 except: 602 pass 603 604 try: 605 from sas.models.LamellarFFHGModel import LamellarFFHGModel 606 607 self.model_dictionary[LamellarFFHGModel.__name__] = LamellarFFHGModel 608 # self.shape_list.append(LamellarFFHGModel) 609 self.model_name_list.append(LamellarFFHGModel.__name__) 610 except: 611 pass 612 613 try: 614 from sas.models.LamellarPSModel import LamellarPSModel 615 616 self.model_dictionary[LamellarPSModel.__name__] = LamellarPSModel 617 # self.shape_list.append(LamellarPSModel) 618 self.model_name_list.append(LamellarPSModel.__name__) 619 except: 620 pass 621 622 try: 623 from sas.models.LamellarPSHGModel import LamellarPSHGModel 624 625 self.model_dictionary[LamellarPSHGModel.__name__] = LamellarPSHGModel 626 # self.shape_list.append(LamellarPSHGModel) 627 self.model_name_list.append(LamellarPSHGModel.__name__) 628 except: 629 pass 630 631 try: 632 from sas.models.LamellarPCrystalModel import LamellarPCrystalModel 633 634 self.model_dictionary[LamellarPCrystalModel.__name__] = LamellarPCrystalModel 635 # self.shape_list.append(LamellarPCrystalModel) 636 self.model_name_list.append(LamellarPCrystalModel.__name__) 637 except: 638 pass 639 640 try: 641 from sas.models.SCCrystalModel import SCCrystalModel 642 643 self.model_dictionary[SCCrystalModel.__name__] = SCCrystalModel 644 # self.shape_list.append(SCCrystalModel) 645 self.model_name_list.append(SCCrystalModel.__name__) 646 except: 647 pass 648 649 try: 650 from sas.models.FCCrystalModel import FCCrystalModel 651 652 self.model_dictionary[FCCrystalModel.__name__] = FCCrystalModel 653 # self.shape_list.append(FCCrystalModel) 654 self.model_name_list.append(FCCrystalModel.__name__) 655 except: 656 pass 657 658 try: 659 from sas.models.BCCrystalModel import BCCrystalModel 660 661 self.model_dictionary[BCCrystalModel.__name__] = BCCrystalModel 662 # self.shape_list.append(BCCrystalModel) 663 self.model_name_list.append(BCCrystalModel.__name__) 664 except: 665 pass 666 667 668 ## Structure factor 669 try: 670 from sas.models.SquareWellStructure import SquareWellStructure 671 672 self.model_dictionary[SquareWellStructure.__name__] = SquareWellStructure 673 self.struct_list.append(SquareWellStructure) 674 self.model_name_list.append(SquareWellStructure.__name__) 675 except: 676 pass 677 678 try: 679 from sas.models.HardsphereStructure import HardsphereStructure 680 681 self.model_dictionary[HardsphereStructure.__name__] = HardsphereStructure 682 self.struct_list.append(HardsphereStructure) 683 self.model_name_list.append(HardsphereStructure.__name__) 684 except: 685 pass 686 687 try: 688 from sas.models.StickyHSStructure import StickyHSStructure 689 690 self.model_dictionary[StickyHSStructure.__name__] = StickyHSStructure 691 self.struct_list.append(StickyHSStructure) 692 self.model_name_list.append(StickyHSStructure.__name__) 693 except: 694 pass 695 696 try: 697 from sas.models.HayterMSAStructure import HayterMSAStructure 698 699 self.model_dictionary[HayterMSAStructure.__name__] = HayterMSAStructure 700 self.struct_list.append(HayterMSAStructure) 701 self.model_name_list.append(HayterMSAStructure.__name__) 702 except: 703 pass 704 705 706 707 ##shape-independent models 708 try: 709 from sas.models.PowerLawAbsModel import PowerLawAbsModel 710 711 self.model_dictionary[PowerLawAbsModel.__name__] = PowerLawAbsModel 712 # self.shape_indep_list.append(PowerLawAbsModel) 713 self.model_name_list.append(PowerLawAbsModel.__name__) 714 except: 715 pass 716 717 try: 718 from sas.models.BEPolyelectrolyte import BEPolyelectrolyte 719 720 self.model_dictionary[BEPolyelectrolyte.__name__] = BEPolyelectrolyte 721 # self.shape_indep_list.append(BEPolyelectrolyte) 722 self.model_name_list.append(BEPolyelectrolyte.__name__) 723 self.form_factor_dict[str(wx.NewId())] = [SphereModel] 724 except: 725 pass 726 727 try: 728 from sas.models.BroadPeakModel import BroadPeakModel 729 730 self.model_dictionary[BroadPeakModel.__name__] = BroadPeakModel 731 # self.shape_indep_list.append(BroadPeakModel) 732 self.model_name_list.append(BroadPeakModel.__name__) 733 except: 734 pass 735 736 try: 737 from sas.models.CorrLengthModel import CorrLengthModel 738 739 self.model_dictionary[CorrLengthModel.__name__] = CorrLengthModel 740 # self.shape_indep_list.append(CorrLengthModel) 741 self.model_name_list.append(CorrLengthModel.__name__) 742 except: 743 pass 744 745 try: 746 from sas.models.DABModel import DABModel 747 748 self.model_dictionary[DABModel.__name__] = DABModel 749 # self.shape_indep_list.append(DABModel) 750 self.model_name_list.append(DABModel.__name__) 751 except: 752 pass 753 754 try: 755 from sas.models.DebyeModel import DebyeModel 756 757 self.model_dictionary[DebyeModel.__name__] = DebyeModel 758 # self.shape_indep_list.append(DebyeModel) 759 self.model_name_list.append(DebyeModel.__name__) 760 except: 761 pass 762 763 try: 764 from sas.models.FractalModel import FractalModel 765 766 self.model_dictionary[FractalModel.__name__] = FractalModel 767 # self.shape_indep_list.append(FractalModel) 768 self.model_name_list.append(FractalModel.__name__) 769 except: 770 pass 771 772 try: 773 from sas.models.FractalCoreShellModel import FractalCoreShellModel 774 775 self.model_dictionary[FractalCoreShellModel.__name__] = FractalCoreShellModel 776 # self.shape_indep_list.append(FractalCoreShellModel) 777 self.model_name_list.append(FractalCoreShellModel.__name__) 778 except: 779 pass 780 781 try: 782 from sas.models.GaussLorentzGelModel import GaussLorentzGelModel 783 784 self.model_dictionary[GaussLorentzGelModel.__name__] = GaussLorentzGelModel 785 # self.shape_indep_list.append(GaussLorentzGelModel) 786 self.model_name_list.append(GaussLorentzGelModel.__name__) 787 except: 788 pass 789 790 try: 791 from sas.models.GuinierModel import GuinierModel 792 793 self.model_dictionary[GuinierModel.__name__] = GuinierModel 794 # self.shape_indep_list.append(GuinierModel) 795 self.model_name_list.append(GuinierModel.__name__) 796 except: 797 pass 798 799 try: 800 from sas.models.GuinierPorodModel import GuinierPorodModel 801 802 self.model_dictionary[GuinierPorodModel.__name__] = GuinierPorodModel 803 # self.shape_indep_list.append(GuinierPorodModel) 804 self.model_name_list.append(GuinierPorodModel.__name__) 805 except: 806 pass 807 808 try: 809 from sas.models.LorentzModel import LorentzModel 810 811 self.model_dictionary[LorentzModel.__name__] = LorentzModel 812 # self.shape_indep_list.append(LorentzModel) 813 self.model_name_list.append(LorentzModel.__name__) 814 except: 815 pass 816 817 try: 818 from sas.models.MassFractalModel import MassFractalModel 819 820 self.model_dictionary[MassFractalModel.__name__] = MassFractalModel 821 # self.shape_indep_list.append(MassFractalModel) 822 self.model_name_list.append(MassFractalModel.__name__) 823 except: 824 pass 825 826 try: 827 from sas.models.MassSurfaceFractal import MassSurfaceFractal 828 829 self.model_dictionary[MassSurfaceFractal.__name__] = MassSurfaceFractal 830 # self.shape_indep_list.append(MassSurfaceFractal) 831 self.model_name_list.append(MassSurfaceFractal.__name__) 832 except: 833 pass 834 835 try: 836 from sas.models.PeakGaussModel import PeakGaussModel 837 838 self.model_dictionary[PeakGaussModel.__name__] = PeakGaussModel 839 # self.shape_indep_list.append(PeakGaussModel) 840 self.model_name_list.append(PeakGaussModel.__name__) 841 except: 842 pass 843 844 try: 845 from sas.models.PeakLorentzModel import PeakLorentzModel 846 847 self.model_dictionary[PeakLorentzModel.__name__] = PeakLorentzModel 848 # self.shape_indep_list.append(PeakLorentzModel) 849 self.model_name_list.append(PeakLorentzModel.__name__) 850 except: 851 pass 852 853 try: 854 from sas.models.Poly_GaussCoil import Poly_GaussCoil 855 856 self.model_dictionary[Poly_GaussCoil.__name__] = Poly_GaussCoil 857 # self.shape_indep_list.append(Poly_GaussCoil) 858 self.model_name_list.append(Poly_GaussCoil.__name__) 859 except: 860 pass 861 862 try: 863 from sas.models.PolymerExclVolume import PolymerExclVolume 864 865 self.model_dictionary[PolymerExclVolume.__name__] = PolymerExclVolume 866 # self.shape_indep_list.append(PolymerExclVolume) 867 self.model_name_list.append(PolymerExclVolume.__name__) 868 except: 869 pass 870 871 try: 872 from sas.models.PorodModel import PorodModel 873 874 self.model_dictionary[PorodModel.__name__] = PorodModel 875 # self.shape_indep_list.append(PorodModel) 876 self.model_name_list.append(PorodModel.__name__) 877 except: 878 pass 879 880 try: 881 from sas.models.RPA10Model import RPA10Model 882 883 self.model_dictionary[RPA10Model.__name__] = RPA10Model 884 # self.shape_indep_list.append(RPA10Model) 885 self.multi_func_list.append(RPA10Model) 886 except: 887 pass 888 889 try: 890 from sas.models.StarPolymer import StarPolymer 891 892 self.model_dictionary[StarPolymer.__name__] = StarPolymer 893 # self.shape_indep_list.append(StarPolymer) 894 self.model_name_list.append(StarPolymer.__name__) 895 except: 896 pass 897 898 try: 899 from sas.models.SurfaceFractalModel import SurfaceFractalModel 900 901 self.model_dictionary[SurfaceFractalModel.__name__] = SurfaceFractalModel 902 # self.shape_indep_list.append(SurfaceFractalModel) 903 self.model_name_list.append(SurfaceFractalModel.__name__) 904 except: 905 pass 906 907 try: 908 from sas.models.TeubnerStreyModel import TeubnerStreyModel 909 910 self.model_dictionary[TeubnerStreyModel.__name__] = TeubnerStreyModel 911 # self.shape_indep_list.append(TeubnerStreyModel) 912 self.model_name_list.append(TeubnerStreyModel.__name__) 913 except: 914 pass 915 916 try: 917 from sas.models.TwoLorentzianModel import TwoLorentzianModel 918 919 self.model_dictionary[TwoLorentzianModel.__name__] = TwoLorentzianModel 920 # self.shape_indep_list.append(TwoLorentzianModel) 921 self.model_name_list.append(TwoLorentzianModel.__name__) 922 except: 923 pass 924 925 try: 926 from sas.models.TwoPowerLawModel import TwoPowerLawModel 927 928 self.model_dictionary[TwoPowerLawModel.__name__] = TwoPowerLawModel 929 # self.shape_indep_list.append(TwoPowerLawModel) 930 self.model_name_list.append(TwoPowerLawModel.__name__) 931 except: 932 pass 933 934 try: 935 from sas.models.UnifiedPowerRgModel import UnifiedPowerRgModel 936 937 self.model_dictionary[UnifiedPowerRgModel.__name__] = UnifiedPowerRgModel 938 # self.shape_indep_list.append(UnifiedPowerRgModel) 939 self.multi_func_list.append(UnifiedPowerRgModel) 940 except: 941 pass 942 943 try: 944 from sas.models.LineModel import LineModel 945 946 self.model_dictionary[LineModel.__name__] = LineModel 947 # self.shape_indep_list.append(LineModel) 948 self.model_name_list.append(LineModel.__name__) 949 except: 950 pass 951 952 try: 953 from sas.models.ReflectivityModel import ReflectivityModel 954 955 self.model_dictionary[ReflectivityModel.__name__] = ReflectivityModel 956 # self.shape_indep_list.append(ReflectivityModel) 957 self.multi_func_list.append(ReflectivityModel) 958 except: 959 pass 960 961 try: 962 from sas.models.ReflectivityIIModel import ReflectivityIIModel 963 964 self.model_dictionary[ReflectivityIIModel.__name__] = ReflectivityIIModel 965 # self.shape_indep_list.append(ReflectivityIIModel) 966 self.multi_func_list.append(ReflectivityIIModel) 967 except: 968 pass 969 970 try: 971 from sas.models.GelFitModel import GelFitModel 972 973 self.model_dictionary[GelFitModel.__name__] = GelFitModel 974 # self.shape_indep_list.append(GelFitModel) 975 self.model_name_list.append(GelFitModel.__name__) 976 except: 977 pass 978 979 try: 980 from sas.models.PringlesModel import PringlesModel 981 982 self.model_dictionary[PringlesModel.__name__] = PringlesModel 983 # self.shape_indep_list.append(PringlesModel) 984 self.model_name_list.append(PringlesModel.__name__) 985 except: 986 pass 987 988 try: 989 from sas.models.RectangularPrismModel import RectangularPrismModel 990 991 self.model_dictionary[RectangularPrismModel.__name__] = RectangularPrismModel 992 # self.shape_list.append(RectangularPrismModel) 993 self.multiplication_factor.append(RectangularPrismModel) 994 self.model_name_list.append(RectangularPrismModel.__name__) 995 except: 996 pass 997 998 try: 999 from sas.models.RectangularHollowPrismInfThinWallsModel import RectangularHollowPrismInfThinWallsModel 1000 1001 self.model_dictionary[RectangularHollowPrismInfThinWallsModel.__name__] = RectangularHollowPrismInfThinWallsModel 1002 # self.shape_list.append(RectangularHollowPrismInfThinWallsModel) 1003 self.multiplication_factor.append(RectangularHollowPrismInfThinWallsModel) 1004 self.model_name_list.append(RectangularHollowPrismInfThinWallsModel.__name__) 1005 except: 1006 pass 1007 1008 try: 1009 from sas.models.RectangularHollowPrismModel import RectangularHollowPrismModel 1010 1011 self.model_dictionary[RectangularHollowPrismModel.__name__] = RectangularHollowPrismModel 1012 # self.shape_list.append(RectangularHollowPrismModel) 1013 self.multiplication_factor.append(RectangularHollowPrismModel) 1014 self.model_name_list.append(RectangularHollowPrismModel.__name__) 1015 except: 1016 pass 1017 1018 try: 1019 from sas.models.MicelleSphCoreModel import MicelleSphCoreModel 1020 1021 self.model_dictionary[MicelleSphCoreModel.__name__] = MicelleSphCoreModel 1022 # self.shape_list.append(MicelleSphCoreModel) 1023 self.multiplication_factor.append(MicelleSphCoreModel) 1024 self.model_name_list.append(MicelleSphCoreModel.__name__) 1025 except: 1026 pass 1024 1027 1025 1028
Note: See TracChangeset
for help on using the changeset viewer.