Giter VIP home page Giter VIP logo

appletree's People

Contributors

dachengx avatar joranangevaare avatar xzh19980906 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

appletree's Issues

Missing cut acceptance

Not sure why but the cut acceptance is not implemented in the appletree default ER model.

Multiple scatter modeling

In neutron calibration, multi-scatter S2s might be merged together. We need to recurrent the workflow in BBF.

Document system

We should add a helpful document including a tutorial, workflow, and configuration guide.

More test called

Current test coverage is only ~80%(look at Pull Request Test Coverage Report for more information), we should add more tests on all the features.

Hard to debug config file loading

When loading the config file, sometimes it loads NoneType and it's hard to know which file failed.
``File` ~/appletree/appletree/utils.py:88, in load_json(file_name)
85 @export
86 def load_json(file_name: str):
87 """Load data from json file."""
---> 88 with open(get_file_path(file_name), 'r') as file:
89 data = json.load(file)
90 return data

TypeError: expected str, bytes or os.PathLike object, not NoneType
``

My temporary fix is to make it print all names in
`@export
class Map(Config):
"""Map is a special config which takes input file"""

def build(self):
    """Cache the map to jnp.array"""

    
    if self.name in _cached_configs:
        print('want to get:',self.name)
        file_path = _cached_configs[self.name]
        
    else:
        file_path = get_file_path(self.get_default())
        _cached_configs.update({self.name: file_path})

`
But there might be better ways to print what didn't load.

Implement NEST as emission model

NEST "is an unprecedentedly comprehensive, accurate, and precise simulation of the excitation, ionization, and corresponding scintillation and electroluminescence processes in liquid noble elements". For purpose of comparison, we might want to add such a NEST model in the simulation.

Lineage and version control

We should track the simulation results with the version of the package, configuration files, and input files(maps, corrections, and calibration data). Maybe follow the scenario in strax to use the lineage and hash.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.