Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

gen_env.py 373 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  1. import sys
  2. # import os
  3. # print (os.getcwd())
  4. sys.path.append('src')
  5. import yaml
  6. import shutil
  7. with open("params.yaml", 'r') as fd:
  8. params = yaml.safe_load(fd)
  9. env_name = params['env_name']
  10. if env_name == 'default':
  11. shutil.copyfile('data/default_env.pickle', 'data/env.pickle')
  12. else:
  13. assert 'Generating new environment is not currently supported' and False
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...