Changeset 6c9f25d in sasview
- Timestamp:
- Feb 18, 2015 12:52:27 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:
- 40c5104
- Parents:
- 231e887
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/sas/perspectives/fitting/models.py
r0e4e554 r6c9f25d 313 313 # regular model names only 314 314 self.model_name_list = [] 315 try: 316 # from sas.models.SphereModel import SphereModel 317 from sasmodels.models import sphere 318 SphereModel = make_class(sphere, dtype='single') 319 self.model_dictionary[SphereModel.__name__] = SphereModel 320 # self.shape_list.append(SphereModel) 321 self.multiplication_factor.append(SphereModel) 322 self.model_name_list.append(SphereModel.__name__) 323 except: 324 pass 325 326 try: 327 from sas.models.BinaryHSModel import BinaryHSModel 328 self.model_dictionary[BinaryHSModel.__name__] = BinaryHSModel 329 # self.shape_list.append(BinaryHSModel) 330 self.model_name_list.append(BinaryHSModel.__name__) 331 except: 332 pass 333 334 try: 335 from sas.models.FuzzySphereModel import FuzzySphereModel 336 self.model_dictionary[FuzzySphereModel.__name__] = FuzzySphereModel 337 # self.shape_list.append(FuzzySphereModel) 338 self.multiplication_factor.append(FuzzySphereModel) 339 self.model_name_list.append(FuzzySphereModel.__name__) 340 except: 341 pass 342 343 try: 344 from sas.models.RaspBerryModel import RaspBerryModel 345 self.model_dictionary[RaspBerryModel.__name__] = RaspBerryModel 346 # self.shape_list.append(RaspBerryModel) 347 self.model_name_list.append(RaspBerryModel.__name__) 348 except: 349 pass 350 351 try: 352 from sas.models.CoreShellModel import CoreShellModel 353 354 self.model_dictionary[CoreShellModel.__name__] = CoreShellModel 355 # self.shape_list.append(CoreShellModel) 356 self.multiplication_factor.append(CoreShellModel) 357 self.model_name_list.append(CoreShellModel.__name__) 358 except: 359 pass 360 361 try: 362 from sas.models.Core2ndMomentModel import Core2ndMomentModel 363 self.model_dictionary[Core2ndMomentModel.__name__] = Core2ndMomentModel 364 # self.shape_list.append(Core2ndMomentModel) 365 self.model_name_list.append(Core2ndMomentModel.__name__) 366 except: 367 pass 368 369 try: 370 from sas.models.CoreMultiShellModel import CoreMultiShellModel 371 self.model_dictionary[CoreMultiShellModel.__name__] = CoreMultiShellModel 372 # self.shape_list.append(CoreMultiShellModel) 373 self.multiplication_factor.append(CoreMultiShellModel) 374 self.multi_func_list.append(CoreMultiShellModel) 375 except: 376 pass 377 378 try: 379 from sas.models.VesicleModel import VesicleModel 380 self.model_dictionary[VesicleModel.__name__] = VesicleModel 381 # self.shape_list.append(VesicleModel) 382 self.multiplication_factor.append(VesicleModel) 383 self.model_name_list.append(VesicleModel.__name__) 384 except: 385 pass 386 387 try: 388 from sas.models.MultiShellModel import MultiShellModel 389 self.model_dictionary[MultiShellModel.__name__] = MultiShellModel 390 # self.shape_list.append(MultiShellModel) 391 self.multiplication_factor.append(MultiShellModel) 392 self.model_name_list.append(MultiShellModel.__name__) 393 except: 394 pass 395 396 try: 397 from sas.models.OnionExpShellModel import OnionExpShellModel 398 self.model_dictionary[OnionExpShellModel.__name__] = OnionExpShellModel 399 # self.shape_list.append(OnionExpShellModel) 400 self.multiplication_factor.append(OnionExpShellModel) 401 self.multi_func_list.append(OnionExpShellModel) 402 except: 403 pass 404 405 try: 406 from sas.models.SphericalSLDModel import SphericalSLDModel 407 408 self.model_dictionary[SphericalSLDModel.__name__] = SphericalSLDModel 409 # self.shape_list.append(SphericalSLDModel) 410 self.multiplication_factor.append(SphericalSLDModel) 411 self.multi_func_list.append(SphericalSLDModel) 412 except: 413 pass 414 415 try: 416 from sas.models.LinearPearlsModel import LinearPearlsModel 417 418 self.model_dictionary[LinearPearlsModel.__name__] = LinearPearlsModel 419 # self.shape_list.append(LinearPearlsModel) 420 self.model_name_list.append(LinearPearlsModel.__name__) 421 except: 422 pass 423 424 try: 425 from sas.models.PearlNecklaceModel import PearlNecklaceModel 426 427 self.model_dictionary[PearlNecklaceModel.__name__] = PearlNecklaceModel 428 # self.shape_list.append(PearlNecklaceModel) 429 self.model_name_list.append(PearlNecklaceModel.__name__) 430 except: 431 pass 432 433 try: 434 from sas.models.CylinderModel import CylinderModel 435 436 self.model_dictionary[CylinderModel.__name__] = CylinderModel 437 # self.shape_list.append(CylinderModel) 438 self.multiplication_factor.append(CylinderModel) 439 self.model_name_list.append(CylinderModel.__name__) 440 except: 441 pass 442 443 try: 444 from sas.models.CoreShellCylinderModel import CoreShellCylinderModel 445 446 self.model_dictionary[CoreShellCylinderModel.__name__] = CoreShellCylinderModel 447 # self.shape_list.append(CoreShellCylinderModel) 448 self.multiplication_factor.append(CoreShellCylinderModel) 449 self.model_name_list.append(CoreShellCylinderModel.__name__) 450 except: 451 pass 452 453 try: 454 from sas.models.CoreShellBicelleModel import CoreShellBicelleModel 455 456 self.model_dictionary[CoreShellBicelleModel.__name__] = CoreShellBicelleModel 457 # self.shape_list.append(CoreShellBicelleModel) 458 self.multiplication_factor.append(CoreShellBicelleModel) 459 self.model_name_list.append(CoreShellBicelleModel.__name__) 460 except: 461 pass 462 463 try: 464 from sas.models.HollowCylinderModel import HollowCylinderModel 465 466 self.model_dictionary[HollowCylinderModel.__name__] = HollowCylinderModel 467 # self.shape_list.append(HollowCylinderModel) 468 self.multiplication_factor.append(HollowCylinderModel) 469 self.model_name_list.append(HollowCylinderModel.__name__) 470 except: 471 pass 472 473 try: 474 from sas.models.FlexibleCylinderModel import FlexibleCylinderModel 475 476 self.model_dictionary[FlexibleCylinderModel.__name__] = FlexibleCylinderModel 477 # self.shape_list.append(FlexibleCylinderModel) 478 self.model_name_list.append(FlexibleCylinderModel.__name__) 479 except: 480 pass 481 482 try: 483 from sas.models.FlexCylEllipXModel import FlexCylEllipXModel 484 485 self.model_dictionary[FlexCylEllipXModel.__name__] = FlexCylEllipXModel 486 # self.shape_list.append(FlexCylEllipXModel) 487 self.model_name_list.append(FlexCylEllipXModel.__name__) 488 except: 489 pass 490 491 try: 492 from sas.models.StackedDisksModel import StackedDisksModel 493 494 self.model_dictionary[StackedDisksModel.__name__] = StackedDisksModel 495 # self.shape_list.append(StackedDisksModel) 496 self.multiplication_factor.append(StackedDisksModel) 497 self.model_name_list.append(StackedDisksModel.__name__) 498 except: 499 pass 500 501 try: 502 from sas.models.ParallelepipedModel import ParallelepipedModel 503 504 self.model_dictionary[ParallelepipedModel.__name__] = ParallelepipedModel 505 # self.shape_list.append(ParallelepipedModel) 506 self.multiplication_factor.append(ParallelepipedModel) 507 self.model_name_list.append(ParallelepipedModel.__name__) 508 except: 509 pass 510 511 try: 512 from sas.models.CSParallelepipedModel import CSParallelepipedModel 513 514 self.model_dictionary[CSParallelepipedModel.__name__] = CSParallelepipedModel 515 # self.shape_list.append(CSParallelepipedModel) 516 self.multiplication_factor.append(CSParallelepipedModel) 517 self.model_name_list.append(CSParallelepipedModel.__name__) 518 except: 519 pass 520 521 try: 522 from sas.models.EllipticalCylinderModel import EllipticalCylinderModel 523 524 self.model_dictionary[EllipticalCylinderModel.__name__] = EllipticalCylinderModel 525 # self.shape_list.append(EllipticalCylinderModel) 526 self.multiplication_factor.append(EllipticalCylinderModel) 527 self.model_name_list.append(EllipticalCylinderModel.__name__) 528 except: 529 pass 530 531 try: 532 from sas.models.CappedCylinderModel import CappedCylinderModel 533 534 self.model_dictionary[CappedCylinderModel.__name__] = CappedCylinderModel 535 # self.shape_list.append(CappedCylinderModel) 536 self.model_name_list.append(CappedCylinderModel.__name__) 537 except: 538 pass 539 540 try: 541 from sas.models.EllipsoidModel import EllipsoidModel 542 543 self.model_dictionary[EllipsoidModel.__name__] = EllipsoidModel 544 # self.shape_list.append(EllipsoidModel) 545 self.multiplication_factor.append(EllipsoidModel) 546 self.model_name_list.append(EllipsoidModel.__name__) 547 except: 548 pass 549 550 try: 551 from sas.models.CoreShellEllipsoidModel import CoreShellEllipsoidModel 552 553 self.model_dictionary[CoreShellEllipsoidModel.__name__] = CoreShellEllipsoidModel 554 # self.shape_list.append(CoreShellEllipsoidModel) 555 self.multiplication_factor.append(CoreShellEllipsoidModel) 556 self.model_name_list.append(CoreShellEllipsoidModel.__name__) 557 except: 558 pass 559 560 try: 561 from sas.models.CoreShellEllipsoidXTModel import CoreShellEllipsoidXTModel 562 563 self.model_dictionary[CoreShellEllipsoidXTModel.__name__] = CoreShellEllipsoidXTModel 564 # self.shape_list.append(CoreShellEllipsoidXTModel) 565 self.multiplication_factor.append(CoreShellEllipsoidXTModel) 566 self.model_name_list.append(CoreShellEllipsoidXTModel.__name__) 567 except: 568 pass 569 570 try: 571 from sas.models.TriaxialEllipsoidModel import TriaxialEllipsoidModel 572 573 self.model_dictionary[TriaxialEllipsoidModel.__name__] = TriaxialEllipsoidModel 574 # self.shape_list.append(TriaxialEllipsoidModel) 575 self.multiplication_factor.append(TriaxialEllipsoidModel) 576 self.model_name_list.append(TriaxialEllipsoidModel.__name__) 577 except: 578 pass 579 580 try: 581 from sas.models.LamellarModel import LamellarModel 582 583 self.model_dictionary[LamellarModel.__name__] = LamellarModel 584 # self.shape_list.append(LamellarModel) 585 self.model_name_list.append(LamellarModel.__name__) 586 except: 587 pass 588 589 try: 590 from sas.models.LamellarFFHGModel import LamellarFFHGModel 591 592 self.model_dictionary[LamellarFFHGModel.__name__] = LamellarFFHGModel 593 # self.shape_list.append(LamellarFFHGModel) 594 self.model_name_list.append(LamellarFFHGModel.__name__) 595 except: 596 pass 597 598 try: 599 from sas.models.LamellarPSModel import LamellarPSModel 600 601 self.model_dictionary[LamellarPSModel.__name__] = LamellarPSModel 602 # self.shape_list.append(LamellarPSModel) 603 self.model_name_list.append(LamellarPSModel.__name__) 604 except: 605 pass 606 607 try: 608 from sas.models.LamellarPSHGModel import LamellarPSHGModel 609 610 self.model_dictionary[LamellarPSHGModel.__name__] = LamellarPSHGModel 611 # self.shape_list.append(LamellarPSHGModel) 612 self.model_name_list.append(LamellarPSHGModel.__name__) 613 except: 614 pass 615 616 try: 617 from sas.models.LamellarPCrystalModel import LamellarPCrystalModel 618 619 self.model_dictionary[LamellarPCrystalModel.__name__] = LamellarPCrystalModel 620 # self.shape_list.append(LamellarPCrystalModel) 621 self.model_name_list.append(LamellarPCrystalModel.__name__) 622 except: 623 pass 624 625 try: 626 from sas.models.SCCrystalModel import SCCrystalModel 627 628 self.model_dictionary[SCCrystalModel.__name__] = SCCrystalModel 629 # self.shape_list.append(SCCrystalModel) 630 self.model_name_list.append(SCCrystalModel.__name__) 631 except: 632 pass 633 634 try: 635 from sas.models.FCCrystalModel import FCCrystalModel 636 637 self.model_dictionary[FCCrystalModel.__name__] = FCCrystalModel 638 # self.shape_list.append(FCCrystalModel) 639 self.model_name_list.append(FCCrystalModel.__name__) 640 except: 641 pass 642 643 try: 644 from sas.models.BCCrystalModel import BCCrystalModel 645 646 self.model_dictionary[BCCrystalModel.__name__] = BCCrystalModel 647 # self.shape_list.append(BCCrystalModel) 648 self.model_name_list.append(BCCrystalModel.__name__) 649 except: 650 pass 651 652 653 ## Structure factor 654 try: 655 from sas.models.SquareWellStructure import SquareWellStructure 656 657 self.model_dictionary[SquareWellStructure.__name__] = SquareWellStructure 658 self.struct_list.append(SquareWellStructure) 659 self.model_name_list.append(SquareWellStructure.__name__) 660 except: 661 pass 662 663 try: 664 from sas.models.HardsphereStructure import HardsphereStructure 665 666 self.model_dictionary[HardsphereStructure.__name__] = HardsphereStructure 667 self.struct_list.append(HardsphereStructure) 668 self.model_name_list.append(HardsphereStructure.__name__) 669 except: 670 pass 671 672 try: 673 from sas.models.StickyHSStructure import StickyHSStructure 674 675 self.model_dictionary[StickyHSStructure.__name__] = StickyHSStructure 676 self.struct_list.append(StickyHSStructure) 677 self.model_name_list.append(StickyHSStructure.__name__) 678 except: 679 pass 680 681 try: 682 from sas.models.HayterMSAStructure import HayterMSAStructure 683 684 self.model_dictionary[HayterMSAStructure.__name__] = HayterMSAStructure 685 self.struct_list.append(HayterMSAStructure) 686 self.model_name_list.append(HayterMSAStructure.__name__) 687 except: 688 pass 689 690 691 692 ##shape-independent models 693 try: 694 from sas.models.PowerLawAbsModel import PowerLawAbsModel 695 696 self.model_dictionary[PowerLawAbsModel.__name__] = PowerLawAbsModel 697 # self.shape_indep_list.append(PowerLawAbsModel) 698 self.model_name_list.append(PowerLawAbsModel.__name__) 699 except: 700 pass 701 702 try: 703 from sas.models.BEPolyelectrolyte import BEPolyelectrolyte 704 705 self.model_dictionary[BEPolyelectrolyte.__name__] = BEPolyelectrolyte 706 # self.shape_indep_list.append(BEPolyelectrolyte) 707 self.model_name_list.append(BEPolyelectrolyte.__name__) 708 self.form_factor_dict[str(wx.NewId())] = [SphereModel] 709 except: 710 pass 711 712 try: 713 from sas.models.BroadPeakModel import BroadPeakModel 714 715 self.model_dictionary[BroadPeakModel.__name__] = BroadPeakModel 716 # self.shape_indep_list.append(BroadPeakModel) 717 self.model_name_list.append(BroadPeakModel.__name__) 718 except: 719 pass 720 721 try: 722 from sas.models.CorrLengthModel import CorrLengthModel 723 724 self.model_dictionary[CorrLengthModel.__name__] = CorrLengthModel 725 # self.shape_indep_list.append(CorrLengthModel) 726 self.model_name_list.append(CorrLengthModel.__name__) 727 except: 728 pass 729 730 try: 731 from sas.models.DABModel import DABModel 732 733 self.model_dictionary[DABModel.__name__] = DABModel 734 # self.shape_indep_list.append(DABModel) 735 self.model_name_list.append(DABModel.__name__) 736 except: 737 pass 738 739 try: 740 from sas.models.DebyeModel import DebyeModel 741 742 self.model_dictionary[DebyeModel.__name__] = DebyeModel 743 # self.shape_indep_list.append(DebyeModel) 744 self.model_name_list.append(DebyeModel.__name__) 745 except: 746 pass 747 748 try: 749 from sas.models.FractalModel import FractalModel 750 751 self.model_dictionary[FractalModel.__name__] = FractalModel 752 # self.shape_indep_list.append(FractalModel) 753 self.model_name_list.append(FractalModel.__name__) 754 except: 755 pass 756 757 try: 758 from sas.models.FractalCoreShellModel import FractalCoreShellModel 759 760 self.model_dictionary[FractalCoreShellModel.__name__] = FractalCoreShellModel 761 # self.shape_indep_list.append(FractalCoreShellModel) 762 self.model_name_list.append(FractalCoreShellModel.__name__) 763 except: 764 pass 765 766 try: 767 from sas.models.GaussLorentzGelModel import GaussLorentzGelModel 768 769 self.model_dictionary[GaussLorentzGelModel.__name__] = GaussLorentzGelModel 770 # self.shape_indep_list.append(GaussLorentzGelModel) 771 self.model_name_list.append(GaussLorentzGelModel.__name__) 772 except: 773 pass 774 775 try: 776 from sas.models.GuinierModel import GuinierModel 777 778 self.model_dictionary[GuinierModel.__name__] = GuinierModel 779 # self.shape_indep_list.append(GuinierModel) 780 self.model_name_list.append(GuinierModel.__name__) 781 except: 782 pass 783 784 try: 785 from sas.models.GuinierPorodModel import GuinierPorodModel 786 787 self.model_dictionary[GuinierPorodModel.__name__] = GuinierPorodModel 788 # self.shape_indep_list.append(GuinierPorodModel) 789 self.model_name_list.append(GuinierPorodModel.__name__) 790 except: 791 pass 792 793 try: 794 from sas.models.LorentzModel import LorentzModel 795 796 self.model_dictionary[LorentzModel.__name__] = LorentzModel 797 # self.shape_indep_list.append(LorentzModel) 798 self.model_name_list.append(LorentzModel.__name__) 799 except: 800 pass 801 802 try: 803 from sas.models.MassFractalModel import MassFractalModel 804 805 self.model_dictionary[MassFractalModel.__name__] = MassFractalModel 806 # self.shape_indep_list.append(MassFractalModel) 807 self.model_name_list.append(MassFractalModel.__name__) 808 except: 809 pass 810 811 try: 812 from sas.models.MassSurfaceFractal import MassSurfaceFractal 813 814 self.model_dictionary[MassSurfaceFractal.__name__] = MassSurfaceFractal 815 # self.shape_indep_list.append(MassSurfaceFractal) 816 self.model_name_list.append(MassSurfaceFractal.__name__) 817 except: 818 pass 819 820 try: 821 from sas.models.PeakGaussModel import PeakGaussModel 822 823 self.model_dictionary[PeakGaussModel.__name__] = PeakGaussModel 824 # self.shape_indep_list.append(PeakGaussModel) 825 self.model_name_list.append(PeakGaussModel.__name__) 826 except: 827 pass 828 829 try: 830 from sas.models.PeakLorentzModel import PeakLorentzModel 831 832 self.model_dictionary[PeakLorentzModel.__name__] = PeakLorentzModel 833 # self.shape_indep_list.append(PeakLorentzModel) 834 self.model_name_list.append(PeakLorentzModel.__name__) 835 except: 836 pass 837 838 try: 839 from sas.models.Poly_GaussCoil import Poly_GaussCoil 840 841 self.model_dictionary[Poly_GaussCoil.__name__] = Poly_GaussCoil 842 # self.shape_indep_list.append(Poly_GaussCoil) 843 self.model_name_list.append(Poly_GaussCoil.__name__) 844 except: 845 pass 846 847 try: 848 from sas.models.PolymerExclVolume import PolymerExclVolume 849 850 self.model_dictionary[PolymerExclVolume.__name__] = PolymerExclVolume 851 # self.shape_indep_list.append(PolymerExclVolume) 852 self.model_name_list.append(PolymerExclVolume.__name__) 853 except: 854 pass 855 856 try: 857 from sas.models.PorodModel import PorodModel 858 859 self.model_dictionary[PorodModel.__name__] = PorodModel 860 # self.shape_indep_list.append(PorodModel) 861 self.model_name_list.append(PorodModel.__name__) 862 except: 863 pass 864 865 try: 866 from sas.models.RPA10Model import RPA10Model 867 868 self.model_dictionary[RPA10Model.__name__] = RPA10Model 869 # self.shape_indep_list.append(RPA10Model) 870 self.multi_func_list.append(RPA10Model) 871 except: 872 pass 873 874 try: 875 from sas.models.StarPolymer import StarPolymer 876 877 self.model_dictionary[StarPolymer.__name__] = StarPolymer 878 # self.shape_indep_list.append(StarPolymer) 879 self.model_name_list.append(StarPolymer.__name__) 880 except: 881 pass 882 883 try: 884 from sas.models.SurfaceFractalModel import SurfaceFractalModel 885 886 self.model_dictionary[SurfaceFractalModel.__name__] = SurfaceFractalModel 887 # self.shape_indep_list.append(SurfaceFractalModel) 888 self.model_name_list.append(SurfaceFractalModel.__name__) 889 except: 890 pass 891 892 try: 893 from sas.models.TeubnerStreyModel import TeubnerStreyModel 894 895 self.model_dictionary[TeubnerStreyModel.__name__] = TeubnerStreyModel 896 # self.shape_indep_list.append(TeubnerStreyModel) 897 self.model_name_list.append(TeubnerStreyModel.__name__) 898 except: 899 pass 900 901 try: 902 from sas.models.TwoLorentzianModel import TwoLorentzianModel 903 904 self.model_dictionary[TwoLorentzianModel.__name__] = TwoLorentzianModel 905 # self.shape_indep_list.append(TwoLorentzianModel) 906 self.model_name_list.append(TwoLorentzianModel.__name__) 907 except: 908 pass 909 910 try: 911 from sas.models.TwoPowerLawModel import TwoPowerLawModel 912 913 self.model_dictionary[TwoPowerLawModel.__name__] = TwoPowerLawModel 914 # self.shape_indep_list.append(TwoPowerLawModel) 915 self.model_name_list.append(TwoPowerLawModel.__name__) 916 except: 917 pass 918 919 try: 920 from sas.models.UnifiedPowerRgModel import UnifiedPowerRgModel 921 922 self.model_dictionary[UnifiedPowerRgModel.__name__] = UnifiedPowerRgModel 923 # self.shape_indep_list.append(UnifiedPowerRgModel) 924 self.multi_func_list.append(UnifiedPowerRgModel) 925 except: 926 pass 927 928 try: 929 from sas.models.LineModel import LineModel 930 931 self.model_dictionary[LineModel.__name__] = LineModel 932 # self.shape_indep_list.append(LineModel) 933 self.model_name_list.append(LineModel.__name__) 934 except: 935 pass 936 937 try: 938 from sas.models.ReflectivityModel import ReflectivityModel 939 940 self.model_dictionary[ReflectivityModel.__name__] = ReflectivityModel 941 # self.shape_indep_list.append(ReflectivityModel) 942 self.multi_func_list.append(ReflectivityModel) 943 except: 944 pass 945 946 try: 947 from sas.models.ReflectivityIIModel import ReflectivityIIModel 948 949 self.model_dictionary[ReflectivityIIModel.__name__] = ReflectivityIIModel 950 # self.shape_indep_list.append(ReflectivityIIModel) 951 self.multi_func_list.append(ReflectivityIIModel) 952 except: 953 pass 954 955 try: 956 from sas.models.GelFitModel import GelFitModel 957 958 self.model_dictionary[GelFitModel.__name__] = GelFitModel 959 # self.shape_indep_list.append(GelFitModel) 960 self.model_name_list.append(GelFitModel.__name__) 961 except: 962 pass 963 964 try: 965 from sas.models.PringlesModel import PringlesModel 966 967 self.model_dictionary[PringlesModel.__name__] = PringlesModel 968 # self.shape_indep_list.append(PringlesModel) 969 self.model_name_list.append(PringlesModel.__name__) 970 except: 971 pass 972 973 try: 974 from sas.models.RectangularPrismModel import RectangularPrismModel 975 976 self.model_dictionary[RectangularPrismModel.__name__] = RectangularPrismModel 977 # self.shape_list.append(RectangularPrismModel) 978 self.multiplication_factor.append(RectangularPrismModel) 979 self.model_name_list.append(RectangularPrismModel.__name__) 980 except: 981 pass 982 983 try: 984 from sas.models.RectangularHollowPrismInfThinWallsModel import RectangularHollowPrismInfThinWallsModel 985 986 self.model_dictionary[RectangularHollowPrismInfThinWallsModel.__name__] = RectangularHollowPrismInfThinWallsModel 987 # self.shape_list.append(RectangularHollowPrismInfThinWallsModel) 988 self.multiplication_factor.append(RectangularHollowPrismInfThinWallsModel) 989 self.model_name_list.append(RectangularHollowPrismInfThinWallsModel.__name__) 990 except: 991 pass 992 993 try: 994 from sas.models.RectangularHollowPrismModel import RectangularHollowPrismModel 995 996 self.model_dictionary[RectangularHollowPrismModel.__name__] = RectangularHollowPrismModel 997 # self.shape_list.append(RectangularHollowPrismModel) 998 self.multiplication_factor.append(RectangularHollowPrismModel) 999 self.model_name_list.append(RectangularHollowPrismModel.__name__) 1000 except: 1001 pass 1002 1003 try: 1004 from sas.models.MicelleSphCoreModel import MicelleSphCoreModel 1005 1006 self.model_dictionary[MicelleSphCoreModel.__name__] = MicelleSphCoreModel 1007 # self.shape_list.append(MicelleSphCoreModel) 1008 self.multiplication_factor.append(MicelleSphCoreModel) 1009 self.model_name_list.append(MicelleSphCoreModel.__name__) 1010 except: 1011 pass 315 316 #Build list automagically 317 import pkgutil 318 from importlib import import_module 319 import sasmodels.models 320 for importer,modname,ispkg in pkgutil.iter_modules(sasmodels.models.__path__): 321 if not ispkg: 322 #do sasview stuff 323 module = import_module('.'+modname,'sasmodels.models') 324 self.model_dictionary[module.oldname] = make_class(module, dtype='single',namestyle='oldname') 325 self.model_name_list.append(module.oldname) 326 327 # try: 328 # # from sas.models.SphereModel import SphereModel 329 # from sasmodels.models import sphere 330 # SphereModel = make_class(sphere, dtype='single',namestyle='oldname') 331 # self.model_dictionary[SphereModel.__name__] = SphereModel 332 # # self.shape_list.append(SphereModel) 333 # self.multiplication_factor.append(SphereModel) 334 # self.model_name_list.append(SphereModel.__name__) 335 # except: 336 # pass 337 338 # try: 339 # from sas.models.BinaryHSModel import BinaryHSModel 340 # self.model_dictionary[BinaryHSModel.__name__] = BinaryHSModel 341 # # self.shape_list.append(BinaryHSModel) 342 # self.model_name_list.append(BinaryHSModel.__name__) 343 # except: 344 # pass 345 # 346 # try: 347 # from sas.models.FuzzySphereModel import FuzzySphereModel 348 # self.model_dictionary[FuzzySphereModel.__name__] = FuzzySphereModel 349 # # self.shape_list.append(FuzzySphereModel) 350 # self.multiplication_factor.append(FuzzySphereModel) 351 # self.model_name_list.append(FuzzySphereModel.__name__) 352 # except: 353 # pass 354 # 355 # try: 356 # from sas.models.RaspBerryModel import RaspBerryModel 357 # self.model_dictionary[RaspBerryModel.__name__] = RaspBerryModel 358 # # self.shape_list.append(RaspBerryModel) 359 # self.model_name_list.append(RaspBerryModel.__name__) 360 # except: 361 # pass 362 # 363 # try: 364 # from sas.models.CoreShellModel import CoreShellModel 365 # 366 # self.model_dictionary[CoreShellModel.__name__] = CoreShellModel 367 # # self.shape_list.append(CoreShellModel) 368 # self.multiplication_factor.append(CoreShellModel) 369 # self.model_name_list.append(CoreShellModel.__name__) 370 # except: 371 # pass 372 # 373 # try: 374 # from sas.models.Core2ndMomentModel import Core2ndMomentModel 375 # self.model_dictionary[Core2ndMomentModel.__name__] = Core2ndMomentModel 376 # # self.shape_list.append(Core2ndMomentModel) 377 # self.model_name_list.append(Core2ndMomentModel.__name__) 378 # except: 379 # pass 380 # 381 # try: 382 # from sas.models.CoreMultiShellModel import CoreMultiShellModel 383 # self.model_dictionary[CoreMultiShellModel.__name__] = CoreMultiShellModel 384 # # self.shape_list.append(CoreMultiShellModel) 385 # self.multiplication_factor.append(CoreMultiShellModel) 386 # self.multi_func_list.append(CoreMultiShellModel) 387 # except: 388 # pass 389 # 390 # try: 391 # from sas.models.VesicleModel import VesicleModel 392 # self.model_dictionary[VesicleModel.__name__] = VesicleModel 393 # # self.shape_list.append(VesicleModel) 394 # self.multiplication_factor.append(VesicleModel) 395 # self.model_name_list.append(VesicleModel.__name__) 396 # except: 397 # pass 398 # 399 # try: 400 # from sas.models.MultiShellModel import MultiShellModel 401 # self.model_dictionary[MultiShellModel.__name__] = MultiShellModel 402 # # self.shape_list.append(MultiShellModel) 403 # self.multiplication_factor.append(MultiShellModel) 404 # self.model_name_list.append(MultiShellModel.__name__) 405 # except: 406 # pass 407 # 408 # try: 409 # from sas.models.OnionExpShellModel import OnionExpShellModel 410 # self.model_dictionary[OnionExpShellModel.__name__] = OnionExpShellModel 411 # # self.shape_list.append(OnionExpShellModel) 412 # self.multiplication_factor.append(OnionExpShellModel) 413 # self.multi_func_list.append(OnionExpShellModel) 414 # except: 415 # pass 416 # 417 # try: 418 # from sas.models.SphericalSLDModel import SphericalSLDModel 419 # 420 # self.model_dictionary[SphericalSLDModel.__name__] = SphericalSLDModel 421 # # self.shape_list.append(SphericalSLDModel) 422 # self.multiplication_factor.append(SphericalSLDModel) 423 # self.multi_func_list.append(SphericalSLDModel) 424 # except: 425 # pass 426 # 427 # try: 428 # from sas.models.LinearPearlsModel import LinearPearlsModel 429 # 430 # self.model_dictionary[LinearPearlsModel.__name__] = LinearPearlsModel 431 # # self.shape_list.append(LinearPearlsModel) 432 # self.model_name_list.append(LinearPearlsModel.__name__) 433 # except: 434 # pass 435 # 436 # try: 437 # from sas.models.PearlNecklaceModel import PearlNecklaceModel 438 # 439 # self.model_dictionary[PearlNecklaceModel.__name__] = PearlNecklaceModel 440 # # self.shape_list.append(PearlNecklaceModel) 441 # self.model_name_list.append(PearlNecklaceModel.__name__) 442 # except: 443 # pass 444 # 445 # try: 446 # from sas.models.CylinderModel import CylinderModel 447 # 448 # self.model_dictionary[CylinderModel.__name__] = CylinderModel 449 # # self.shape_list.append(CylinderModel) 450 # self.multiplication_factor.append(CylinderModel) 451 # self.model_name_list.append(CylinderModel.__name__) 452 # except: 453 # pass 454 # 455 # try: 456 # from sas.models.CoreShellCylinderModel import CoreShellCylinderModel 457 # 458 # self.model_dictionary[CoreShellCylinderModel.__name__] = CoreShellCylinderModel 459 # # self.shape_list.append(CoreShellCylinderModel) 460 # self.multiplication_factor.append(CoreShellCylinderModel) 461 # self.model_name_list.append(CoreShellCylinderModel.__name__) 462 # except: 463 # pass 464 # 465 # try: 466 # from sas.models.CoreShellBicelleModel import CoreShellBicelleModel 467 # 468 # self.model_dictionary[CoreShellBicelleModel.__name__] = CoreShellBicelleModel 469 # # self.shape_list.append(CoreShellBicelleModel) 470 # self.multiplication_factor.append(CoreShellBicelleModel) 471 # self.model_name_list.append(CoreShellBicelleModel.__name__) 472 # except: 473 # pass 474 # 475 # try: 476 # from sas.models.HollowCylinderModel import HollowCylinderModel 477 # 478 # self.model_dictionary[HollowCylinderModel.__name__] = HollowCylinderModel 479 # # self.shape_list.append(HollowCylinderModel) 480 # self.multiplication_factor.append(HollowCylinderModel) 481 # self.model_name_list.append(HollowCylinderModel.__name__) 482 # except: 483 # pass 484 # 485 # try: 486 # from sas.models.FlexibleCylinderModel import FlexibleCylinderModel 487 # 488 # self.model_dictionary[FlexibleCylinderModel.__name__] = FlexibleCylinderModel 489 # # self.shape_list.append(FlexibleCylinderModel) 490 # self.model_name_list.append(FlexibleCylinderModel.__name__) 491 # except: 492 # pass 493 # 494 # try: 495 # from sas.models.FlexCylEllipXModel import FlexCylEllipXModel 496 # 497 # self.model_dictionary[FlexCylEllipXModel.__name__] = FlexCylEllipXModel 498 # # self.shape_list.append(FlexCylEllipXModel) 499 # self.model_name_list.append(FlexCylEllipXModel.__name__) 500 # except: 501 # pass 502 # 503 # try: 504 # from sas.models.StackedDisksModel import StackedDisksModel 505 # 506 # self.model_dictionary[StackedDisksModel.__name__] = StackedDisksModel 507 # # self.shape_list.append(StackedDisksModel) 508 # self.multiplication_factor.append(StackedDisksModel) 509 # self.model_name_list.append(StackedDisksModel.__name__) 510 # except: 511 # pass 512 # 513 # try: 514 # from sas.models.ParallelepipedModel import ParallelepipedModel 515 # 516 # self.model_dictionary[ParallelepipedModel.__name__] = ParallelepipedModel 517 # # self.shape_list.append(ParallelepipedModel) 518 # self.multiplication_factor.append(ParallelepipedModel) 519 # self.model_name_list.append(ParallelepipedModel.__name__) 520 # except: 521 # pass 522 # 523 # try: 524 # from sas.models.CSParallelepipedModel import CSParallelepipedModel 525 # 526 # self.model_dictionary[CSParallelepipedModel.__name__] = CSParallelepipedModel 527 # # self.shape_list.append(CSParallelepipedModel) 528 # self.multiplication_factor.append(CSParallelepipedModel) 529 # self.model_name_list.append(CSParallelepipedModel.__name__) 530 # except: 531 # pass 532 # 533 # try: 534 # from sas.models.EllipticalCylinderModel import EllipticalCylinderModel 535 # 536 # self.model_dictionary[EllipticalCylinderModel.__name__] = EllipticalCylinderModel 537 # # self.shape_list.append(EllipticalCylinderModel) 538 # self.multiplication_factor.append(EllipticalCylinderModel) 539 # self.model_name_list.append(EllipticalCylinderModel.__name__) 540 # except: 541 # pass 542 # 543 # try: 544 # from sas.models.CappedCylinderModel import CappedCylinderModel 545 # 546 # self.model_dictionary[CappedCylinderModel.__name__] = CappedCylinderModel 547 # # self.shape_list.append(CappedCylinderModel) 548 # self.model_name_list.append(CappedCylinderModel.__name__) 549 # except: 550 # pass 551 # 552 # try: 553 # from sas.models.EllipsoidModel import EllipsoidModel 554 # 555 # self.model_dictionary[EllipsoidModel.__name__] = EllipsoidModel 556 # # self.shape_list.append(EllipsoidModel) 557 # self.multiplication_factor.append(EllipsoidModel) 558 # self.model_name_list.append(EllipsoidModel.__name__) 559 # except: 560 # pass 561 # 562 # try: 563 # from sas.models.CoreShellEllipsoidModel import CoreShellEllipsoidModel 564 # 565 # self.model_dictionary[CoreShellEllipsoidModel.__name__] = CoreShellEllipsoidModel 566 # # self.shape_list.append(CoreShellEllipsoidModel) 567 # self.multiplication_factor.append(CoreShellEllipsoidModel) 568 # self.model_name_list.append(CoreShellEllipsoidModel.__name__) 569 # except: 570 # pass 571 # 572 # try: 573 # from sas.models.CoreShellEllipsoidXTModel import CoreShellEllipsoidXTModel 574 # 575 # self.model_dictionary[CoreShellEllipsoidXTModel.__name__] = CoreShellEllipsoidXTModel 576 # # self.shape_list.append(CoreShellEllipsoidXTModel) 577 # self.multiplication_factor.append(CoreShellEllipsoidXTModel) 578 # self.model_name_list.append(CoreShellEllipsoidXTModel.__name__) 579 # except: 580 # pass 581 # 582 # try: 583 # from sas.models.TriaxialEllipsoidModel import TriaxialEllipsoidModel 584 # 585 # self.model_dictionary[TriaxialEllipsoidModel.__name__] = TriaxialEllipsoidModel 586 # # self.shape_list.append(TriaxialEllipsoidModel) 587 # self.multiplication_factor.append(TriaxialEllipsoidModel) 588 # self.model_name_list.append(TriaxialEllipsoidModel.__name__) 589 # except: 590 # pass 591 # 592 # try: 593 # from sas.models.LamellarModel import LamellarModel 594 # 595 # self.model_dictionary[LamellarModel.__name__] = LamellarModel 596 # # self.shape_list.append(LamellarModel) 597 # self.model_name_list.append(LamellarModel.__name__) 598 # except: 599 # pass 600 # 601 # try: 602 # from sas.models.LamellarFFHGModel import LamellarFFHGModel 603 # 604 # self.model_dictionary[LamellarFFHGModel.__name__] = LamellarFFHGModel 605 # # self.shape_list.append(LamellarFFHGModel) 606 # self.model_name_list.append(LamellarFFHGModel.__name__) 607 # except: 608 # pass 609 # 610 # try: 611 # from sas.models.LamellarPSModel import LamellarPSModel 612 # 613 # self.model_dictionary[LamellarPSModel.__name__] = LamellarPSModel 614 # # self.shape_list.append(LamellarPSModel) 615 # self.model_name_list.append(LamellarPSModel.__name__) 616 # except: 617 # pass 618 # 619 # try: 620 # from sas.models.LamellarPSHGModel import LamellarPSHGModel 621 # 622 # self.model_dictionary[LamellarPSHGModel.__name__] = LamellarPSHGModel 623 # # self.shape_list.append(LamellarPSHGModel) 624 # self.model_name_list.append(LamellarPSHGModel.__name__) 625 # except: 626 # pass 627 # 628 # try: 629 # from sas.models.LamellarPCrystalModel import LamellarPCrystalModel 630 # 631 # self.model_dictionary[LamellarPCrystalModel.__name__] = LamellarPCrystalModel 632 # # self.shape_list.append(LamellarPCrystalModel) 633 # self.model_name_list.append(LamellarPCrystalModel.__name__) 634 # except: 635 # pass 636 # 637 # try: 638 # from sas.models.SCCrystalModel import SCCrystalModel 639 # 640 # self.model_dictionary[SCCrystalModel.__name__] = SCCrystalModel 641 # # self.shape_list.append(SCCrystalModel) 642 # self.model_name_list.append(SCCrystalModel.__name__) 643 # except: 644 # pass 645 # 646 # try: 647 # from sas.models.FCCrystalModel import FCCrystalModel 648 # 649 # self.model_dictionary[FCCrystalModel.__name__] = FCCrystalModel 650 # # self.shape_list.append(FCCrystalModel) 651 # self.model_name_list.append(FCCrystalModel.__name__) 652 # except: 653 # pass 654 # 655 # try: 656 # from sas.models.BCCrystalModel import BCCrystalModel 657 # 658 # self.model_dictionary[BCCrystalModel.__name__] = BCCrystalModel 659 # # self.shape_list.append(BCCrystalModel) 660 # self.model_name_list.append(BCCrystalModel.__name__) 661 # except: 662 # pass 663 # 664 # 665 # ## Structure factor 666 # try: 667 # from sas.models.SquareWellStructure import SquareWellStructure 668 # 669 # self.model_dictionary[SquareWellStructure.__name__] = SquareWellStructure 670 # self.struct_list.append(SquareWellStructure) 671 # self.model_name_list.append(SquareWellStructure.__name__) 672 # except: 673 # pass 674 # 675 # try: 676 # from sas.models.HardsphereStructure import HardsphereStructure 677 # 678 # self.model_dictionary[HardsphereStructure.__name__] = HardsphereStructure 679 # self.struct_list.append(HardsphereStructure) 680 # self.model_name_list.append(HardsphereStructure.__name__) 681 # except: 682 # pass 683 # 684 # try: 685 # from sas.models.StickyHSStructure import StickyHSStructure 686 # 687 # self.model_dictionary[StickyHSStructure.__name__] = StickyHSStructure 688 # self.struct_list.append(StickyHSStructure) 689 # self.model_name_list.append(StickyHSStructure.__name__) 690 # except: 691 # pass 692 # 693 # try: 694 # from sas.models.HayterMSAStructure import HayterMSAStructure 695 # 696 # self.model_dictionary[HayterMSAStructure.__name__] = HayterMSAStructure 697 # self.struct_list.append(HayterMSAStructure) 698 # self.model_name_list.append(HayterMSAStructure.__name__) 699 # except: 700 # pass 701 # 702 # 703 # 704 # ##shape-independent models 705 # try: 706 # from sas.models.PowerLawAbsModel import PowerLawAbsModel 707 # 708 # self.model_dictionary[PowerLawAbsModel.__name__] = PowerLawAbsModel 709 # # self.shape_indep_list.append(PowerLawAbsModel) 710 # self.model_name_list.append(PowerLawAbsModel.__name__) 711 # except: 712 # pass 713 # 714 # try: 715 # from sas.models.BEPolyelectrolyte import BEPolyelectrolyte 716 # 717 # self.model_dictionary[BEPolyelectrolyte.__name__] = BEPolyelectrolyte 718 # # 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 # pass 723 # 724 # try: 725 # from sas.models.BroadPeakModel import BroadPeakModel 726 # 727 # self.model_dictionary[BroadPeakModel.__name__] = BroadPeakModel 728 # # self.shape_indep_list.append(BroadPeakModel) 729 # self.model_name_list.append(BroadPeakModel.__name__) 730 # except: 731 # pass 732 # 733 # try: 734 # from sas.models.CorrLengthModel import CorrLengthModel 735 # 736 # self.model_dictionary[CorrLengthModel.__name__] = CorrLengthModel 737 # # self.shape_indep_list.append(CorrLengthModel) 738 # self.model_name_list.append(CorrLengthModel.__name__) 739 # except: 740 # pass 741 # 742 # try: 743 # from sas.models.DABModel import DABModel 744 # 745 # self.model_dictionary[DABModel.__name__] = DABModel 746 # # self.shape_indep_list.append(DABModel) 747 # self.model_name_list.append(DABModel.__name__) 748 # except: 749 # pass 750 # 751 # try: 752 # from sas.models.DebyeModel import DebyeModel 753 # 754 # self.model_dictionary[DebyeModel.__name__] = DebyeModel 755 # # self.shape_indep_list.append(DebyeModel) 756 # self.model_name_list.append(DebyeModel.__name__) 757 # except: 758 # pass 759 # 760 # try: 761 # from sas.models.FractalModel import FractalModel 762 # 763 # self.model_dictionary[FractalModel.__name__] = FractalModel 764 # # self.shape_indep_list.append(FractalModel) 765 # self.model_name_list.append(FractalModel.__name__) 766 # except: 767 # pass 768 # 769 # try: 770 # from sas.models.FractalCoreShellModel import FractalCoreShellModel 771 # 772 # self.model_dictionary[FractalCoreShellModel.__name__] = FractalCoreShellModel 773 # # self.shape_indep_list.append(FractalCoreShellModel) 774 # self.model_name_list.append(FractalCoreShellModel.__name__) 775 # except: 776 # pass 777 # 778 # try: 779 # from sas.models.GaussLorentzGelModel import GaussLorentzGelModel 780 # 781 # self.model_dictionary[GaussLorentzGelModel.__name__] = GaussLorentzGelModel 782 # # self.shape_indep_list.append(GaussLorentzGelModel) 783 # self.model_name_list.append(GaussLorentzGelModel.__name__) 784 # except: 785 # pass 786 # 787 # try: 788 # from sas.models.GuinierModel import GuinierModel 789 # 790 # self.model_dictionary[GuinierModel.__name__] = GuinierModel 791 # # self.shape_indep_list.append(GuinierModel) 792 # self.model_name_list.append(GuinierModel.__name__) 793 # except: 794 # pass 795 # 796 # try: 797 # from sas.models.GuinierPorodModel import GuinierPorodModel 798 # 799 # self.model_dictionary[GuinierPorodModel.__name__] = GuinierPorodModel 800 # # self.shape_indep_list.append(GuinierPorodModel) 801 # self.model_name_list.append(GuinierPorodModel.__name__) 802 # except: 803 # pass 804 # 805 # try: 806 # from sas.models.LorentzModel import LorentzModel 807 # 808 # self.model_dictionary[LorentzModel.__name__] = LorentzModel 809 # # self.shape_indep_list.append(LorentzModel) 810 # self.model_name_list.append(LorentzModel.__name__) 811 # except: 812 # pass 813 # 814 # try: 815 # from sas.models.MassFractalModel import MassFractalModel 816 # 817 # self.model_dictionary[MassFractalModel.__name__] = MassFractalModel 818 # # self.shape_indep_list.append(MassFractalModel) 819 # self.model_name_list.append(MassFractalModel.__name__) 820 # except: 821 # pass 822 # 823 # try: 824 # from sas.models.MassSurfaceFractal import MassSurfaceFractal 825 # 826 # self.model_dictionary[MassSurfaceFractal.__name__] = MassSurfaceFractal 827 # # self.shape_indep_list.append(MassSurfaceFractal) 828 # self.model_name_list.append(MassSurfaceFractal.__name__) 829 # except: 830 # pass 831 # 832 # try: 833 # from sas.models.PeakGaussModel import PeakGaussModel 834 # 835 # self.model_dictionary[PeakGaussModel.__name__] = PeakGaussModel 836 # # self.shape_indep_list.append(PeakGaussModel) 837 # self.model_name_list.append(PeakGaussModel.__name__) 838 # except: 839 # pass 840 # 841 # try: 842 # from sas.models.PeakLorentzModel import PeakLorentzModel 843 # 844 # self.model_dictionary[PeakLorentzModel.__name__] = PeakLorentzModel 845 # # self.shape_indep_list.append(PeakLorentzModel) 846 # self.model_name_list.append(PeakLorentzModel.__name__) 847 # except: 848 # pass 849 # 850 # try: 851 # from sas.models.Poly_GaussCoil import Poly_GaussCoil 852 # 853 # self.model_dictionary[Poly_GaussCoil.__name__] = Poly_GaussCoil 854 # # self.shape_indep_list.append(Poly_GaussCoil) 855 # self.model_name_list.append(Poly_GaussCoil.__name__) 856 # except: 857 # pass 858 # 859 # try: 860 # from sas.models.PolymerExclVolume import PolymerExclVolume 861 # 862 # self.model_dictionary[PolymerExclVolume.__name__] = PolymerExclVolume 863 # # self.shape_indep_list.append(PolymerExclVolume) 864 # self.model_name_list.append(PolymerExclVolume.__name__) 865 # except: 866 # pass 867 # 868 # try: 869 # from sas.models.PorodModel import PorodModel 870 # 871 # self.model_dictionary[PorodModel.__name__] = PorodModel 872 # # self.shape_indep_list.append(PorodModel) 873 # self.model_name_list.append(PorodModel.__name__) 874 # except: 875 # pass 876 # 877 # try: 878 # from sas.models.RPA10Model import RPA10Model 879 # 880 # self.model_dictionary[RPA10Model.__name__] = RPA10Model 881 # # self.shape_indep_list.append(RPA10Model) 882 # self.multi_func_list.append(RPA10Model) 883 # except: 884 # pass 885 # 886 # try: 887 # from sas.models.StarPolymer import StarPolymer 888 # 889 # self.model_dictionary[StarPolymer.__name__] = StarPolymer 890 # # self.shape_indep_list.append(StarPolymer) 891 # self.model_name_list.append(StarPolymer.__name__) 892 # except: 893 # pass 894 # 895 # try: 896 # from sas.models.SurfaceFractalModel import SurfaceFractalModel 897 # 898 # self.model_dictionary[SurfaceFractalModel.__name__] = SurfaceFractalModel 899 # # self.shape_indep_list.append(SurfaceFractalModel) 900 # self.model_name_list.append(SurfaceFractalModel.__name__) 901 # except: 902 # pass 903 # 904 # try: 905 # from sas.models.TeubnerStreyModel import TeubnerStreyModel 906 # 907 # self.model_dictionary[TeubnerStreyModel.__name__] = TeubnerStreyModel 908 # # self.shape_indep_list.append(TeubnerStreyModel) 909 # self.model_name_list.append(TeubnerStreyModel.__name__) 910 # except: 911 # pass 912 # 913 # try: 914 # from sas.models.TwoLorentzianModel import TwoLorentzianModel 915 # 916 # self.model_dictionary[TwoLorentzianModel.__name__] = TwoLorentzianModel 917 # # self.shape_indep_list.append(TwoLorentzianModel) 918 # self.model_name_list.append(TwoLorentzianModel.__name__) 919 # except: 920 # pass 921 # 922 # try: 923 # from sas.models.TwoPowerLawModel import TwoPowerLawModel 924 # 925 # self.model_dictionary[TwoPowerLawModel.__name__] = TwoPowerLawModel 926 # # self.shape_indep_list.append(TwoPowerLawModel) 927 # self.model_name_list.append(TwoPowerLawModel.__name__) 928 # except: 929 # pass 930 # 931 # try: 932 # from sas.models.UnifiedPowerRgModel import UnifiedPowerRgModel 933 # 934 # self.model_dictionary[UnifiedPowerRgModel.__name__] = UnifiedPowerRgModel 935 # # self.shape_indep_list.append(UnifiedPowerRgModel) 936 # self.multi_func_list.append(UnifiedPowerRgModel) 937 # except: 938 # pass 939 # 940 # try: 941 # from sas.models.LineModel import LineModel 942 # 943 # self.model_dictionary[LineModel.__name__] = LineModel 944 # # self.shape_indep_list.append(LineModel) 945 # self.model_name_list.append(LineModel.__name__) 946 # except: 947 # pass 948 # 949 # try: 950 # from sas.models.ReflectivityModel import ReflectivityModel 951 # 952 # self.model_dictionary[ReflectivityModel.__name__] = ReflectivityModel 953 # # self.shape_indep_list.append(ReflectivityModel) 954 # self.multi_func_list.append(ReflectivityModel) 955 # except: 956 # pass 957 # 958 # try: 959 # from sas.models.ReflectivityIIModel import ReflectivityIIModel 960 # 961 # self.model_dictionary[ReflectivityIIModel.__name__] = ReflectivityIIModel 962 # # self.shape_indep_list.append(ReflectivityIIModel) 963 # self.multi_func_list.append(ReflectivityIIModel) 964 # except: 965 # pass 966 # 967 # try: 968 # from sas.models.GelFitModel import GelFitModel 969 # 970 # self.model_dictionary[GelFitModel.__name__] = GelFitModel 971 # # self.shape_indep_list.append(GelFitModel) 972 # self.model_name_list.append(GelFitModel.__name__) 973 # except: 974 # pass 975 # 976 # try: 977 # from sas.models.PringlesModel import PringlesModel 978 # 979 # self.model_dictionary[PringlesModel.__name__] = PringlesModel 980 # # self.shape_indep_list.append(PringlesModel) 981 # self.model_name_list.append(PringlesModel.__name__) 982 # except: 983 # pass 984 # 985 # try: 986 # from sas.models.RectangularPrismModel import RectangularPrismModel 987 # 988 # self.model_dictionary[RectangularPrismModel.__name__] = RectangularPrismModel 989 # # self.shape_list.append(RectangularPrismModel) 990 # self.multiplication_factor.append(RectangularPrismModel) 991 # self.model_name_list.append(RectangularPrismModel.__name__) 992 # except: 993 # pass 994 # 995 # try: 996 # from sas.models.RectangularHollowPrismInfThinWallsModel import RectangularHollowPrismInfThinWallsModel 997 # 998 # self.model_dictionary[RectangularHollowPrismInfThinWallsModel.__name__] = RectangularHollowPrismInfThinWallsModel 999 # # self.shape_list.append(RectangularHollowPrismInfThinWallsModel) 1000 # self.multiplication_factor.append(RectangularHollowPrismInfThinWallsModel) 1001 # self.model_name_list.append(RectangularHollowPrismInfThinWallsModel.__name__) 1002 # except: 1003 # pass 1004 # 1005 # try: 1006 # from sas.models.RectangularHollowPrismModel import RectangularHollowPrismModel 1007 # 1008 # self.model_dictionary[RectangularHollowPrismModel.__name__] = RectangularHollowPrismModel 1009 # # self.shape_list.append(RectangularHollowPrismModel) 1010 # self.multiplication_factor.append(RectangularHollowPrismModel) 1011 # self.model_name_list.append(RectangularHollowPrismModel.__name__) 1012 # except: 1013 # pass 1014 # 1015 # try: 1016 # from sas.models.MicelleSphCoreModel import MicelleSphCoreModel 1017 # 1018 # self.model_dictionary[MicelleSphCoreModel.__name__] = MicelleSphCoreModel 1019 # # self.shape_list.append(MicelleSphCoreModel) 1020 # self.multiplication_factor.append(MicelleSphCoreModel) 1021 # self.model_name_list.append(MicelleSphCoreModel.__name__) 1022 # except: 1023 # pass 1012 1024 1013 1025
Note: See TracChangeset
for help on using the changeset viewer.