Comments (4)
Hi, I just saw this. I will dig into it ASAP.
from pgm.
Hi,
In order to use the code, you need to download all other files in the example folder as well.
Your wget commands only download the .yaml
file, which is only part of the input.
Best regards
from pgm.
already download all the examples files
got different error from first post
steps
!pip install -U phonon-gas-model
!wget -c https://github.com/MineralsCloud/pgm/blob/master/examples/casio3/casio3.yaml
!wget -c https://github.com/MineralsCloud/pgm/blob/master/examples/casio3/1500K.txt
!wget -c https://github.com/MineralsCloud/pgm/blob/master/examples/casio3/2000K.txt
!wget -c https://github.com/MineralsCloud/pgm/blob/master/examples/casio3/2500K.txt
!wget -c https://github.com/MineralsCloud/pgm/blob/master/examples/casio3/3000K.txt
!wget -c https://github.com/MineralsCloud/pgm/blob/master/examples/casio3/3500K.txt
!wget -c https://github.com/MineralsCloud/pgm/blob/master/examples/casio3/4000K.txt
!wget -c https://github.com/MineralsCloud/pgm/blob/master/examples/feo/feo.yaml
!wget -c https://github.com/MineralsCloud/pgm/blob/master/examples/feo/0K.txt
!wget -c https://github.com/MineralsCloud/pgm/blob/master/examples/feo/1000K.txt
!wget -c https://github.com/MineralsCloud/pgm/blob/master/examples/feo/2000K.txt
!wget -c https://github.com/MineralsCloud/pgm/blob/master/examples/feo/3000K.txt
!wget -c https://github.com/MineralsCloud/pgm/blob/master/examples/feo/4000K.txt
execute
!pgm run casio3.yaml
result
_ __ __ _ _ __ ___
| '_ \ / _` | '_ ` _ \
| |_) | (_| | | | | | |
| .__/ \__, |_| |_| |_|
| | __/ |
|_| |___/
Version 1.0.0-a
Traceback (most recent call last):
File "/usr/local/bin/pgm", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pgm/cli/main.py", line 93, in main
run(settings)
File "/usr/local/lib/python3.10/dist-packages/pgm/cli/main.py", line 16, in run
user_settings.read_from_yaml(file_settings)
File "/usr/local/lib/python3.10/dist-packages/pgm/settings.py", line 74, in read_from_yaml
dic = yaml.load(f, Loader=Loader)
File "/usr/local/lib/python3.10/dist-packages/yaml/__init__.py", line 81, in load
return loader.get_single_data()
File "/usr/local/lib/python3.10/dist-packages/yaml/constructor.py", line 49, in get_single_data
node = self.get_single_node()
File "yaml/_yaml.pyx", line 673, in yaml._yaml.CParser.get_single_node
File "yaml/_yaml.pyx", line 688, in yaml._yaml.CParser._compose_document
File "yaml/_yaml.pyx", line 860, in yaml._yaml.CParser._parse_next_event
yaml.scanner.ScannerError: mapping values are not allowed in this context
in "casio3.yaml", line 207, column 75
execute
!pgm run feo.yaml
result
_ __ __ _ _ __ ___
| '_ \ / _` | '_ ` _ \
| |_) | (_| | | | | | |
| .__/ \__, |_| |_| |_|
| | __/ |
|_| |___/
Version 1.0.0-a
Traceback (most recent call last):
File "/usr/local/bin/pgm", line 8, in <module>
sys.exit(main())
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.10/dist-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/pgm/cli/main.py", line 93, in main
run(settings)
File "/usr/local/lib/python3.10/dist-packages/pgm/cli/main.py", line 16, in run
user_settings.read_from_yaml(file_settings)
File "/usr/local/lib/python3.10/dist-packages/pgm/settings.py", line 74, in read_from_yaml
dic = yaml.load(f, Loader=Loader)
File "/usr/local/lib/python3.10/dist-packages/yaml/__init__.py", line 81, in load
return loader.get_single_data()
File "/usr/local/lib/python3.10/dist-packages/yaml/constructor.py", line 49, in get_single_data
node = self.get_single_node()
File "yaml/_yaml.pyx", line 673, in yaml._yaml.CParser.get_single_node
File "yaml/_yaml.pyx", line 688, in yaml._yaml.CParser._compose_document
File "yaml/_yaml.pyx", line 860, in yaml._yaml.CParser._parse_next_event
yaml.scanner.ScannerError: mapping values are not allowed in this context
in "feo.yaml", line 207, column 75
from pgm.
Hi,
Your wget command only downloads an HTML view of that file.
You should use the github raw files instead.
Also, save all input files into one folder and run pgm inside that folder.
!mkdir casio3
!wget -c https://raw.githubusercontent.com/MineralsCloud/pgm/master/examples/casio3/casio3.yaml -P ./casio3/
!wget -c https://raw.githubusercontent.com/MineralsCloud/pgm/master/examples/casio3/1500K.txt -P ./casio3/
!wget -c https://raw.githubusercontent.com/MineralsCloud/pgm/master/examples/casio3/2000K.txt -P ./casio3/
!wget -c https://raw.githubusercontent.com/MineralsCloud/pgm/master/examples/casio3/2500K.txt -P ./casio3/
!wget -c https://raw.githubusercontent.com/MineralsCloud/pgm/master/examples/casio3/3000K.txt -P ./casio3/
!wget -c https://raw.githubusercontent.com/MineralsCloud/pgm/master/examples/casio3/3500K.txt -P ./casio3/
!wget -c https://raw.githubusercontent.com/MineralsCloud/pgm/master/examples/casio3/4000K.txt -P ./casio3/
then
%cd casio3
!pgm run casio3.yaml
Best regards
from pgm.
Related Issues (2)
- Some questions HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pgm.