Closed Parsa-Rajabi closed 2 years ago
I just did some quick hacking and I think I see the issue:
In the file NU_U17-33-02-002.md
, the level two heading doesn't look formatted correctly:
# {{ params.vars.title }}## Part 1
The ratio of the strong to the weak force and the ratio of the strong force to theelectromagnetic force become (1) under circumstances where they are unified. Whatare the ratios of the strong force to those two forces under normal circumstances?
It should be:
# {{ params.vars.title }}
## Part 1
The ratio of the strong to the weak force and the ratio of the strong force to theelectromagnetic force become (1) under circumstances where they are unified. Whatare the ratios of the strong force to those two forces under normal circumstances?
Also in the same file I can see in Lines 39 and 40:
# Randomize Variables
$SE = 1/(10**-2);
$SW = 1/(10**-13);
I think those $
aren't valid python names
We also probably should replace all **
to E
Ok I think the largest issue is the YAML export.
Remember that |-
means that "everything after it should be interpreted as a multi-line string" so we only want that for things like imports
and generate
.
If we do it for server
, it will not parse the sub-levels as separate dictionary keys:
So we need to get rid of |-
in server and in the parts:
TBD
needs to be commented out as anything in generate will get run
One other oddity: it looks like the YAML section starts with part2
rather than part1
For the problem type, type: Numerical
should be: type: number-input
After I fix those relatively minor issues, IT WORKS!!!
I'm so excited! 🎉
P.S. I've logged all the changes I had to make to the md file in this commit
I just did some quick hacking and I think I see the issue:
In the file
NU_U17-33-02-002.md
, the level two heading doesn't look formatted correctly:# {{ params.vars.title }}## Part 1 The ratio of the strong to the weak force and the ratio of the strong force to theelectromagnetic force become (1) under circumstances where they are unified. Whatare the ratios of the strong force to those two forces under normal circumstances?
It should be:
# {{ params.vars.title }} ## Part 1 The ratio of the strong to the weak force and the ratio of the strong force to theelectromagnetic force become (1) under circumstances where they are unified. Whatare the ratios of the strong force to those two forces under normal circumstances?
Fixed
For the problem type, type: Numerical should be: type: number-input
Fixed
Also in the same file I can see in Lines 39 and 40:
# Randomize Variables $SE = 1/(10**-2); $SW = 1/(10**-13);
I think those
$
aren't valid python namesWe also probably should replace all
**
toE
Fixed. Removed $ and replaced **
with E
TBD
needs to be commented out as anything in generate will get run
already completed
Ok I think the largest issue is the YAML export.
Remember that
|-
means that "everything after it should be interpreted as a multi-line string" so we only want that for things likeimports
andgenerate
.If we do it for
server
, it will not parse the sub-levels as separate dictionary keys:
generate
: https://github.com/open-resources/scripts/commit/81a4c31b883eea2ce48bed79106a038415db6abfgenerate
does not output results as intended.So we need to get rid of
|-
in server and in the parts:One other oddity: it looks like the YAML section starts with
part2
rather thanpart1
|-
is removed from them|-
All items are complete now!
Latest changes include: https://github.com/open-resources/scripts/commit/67ae7f02e2cb2b2e98d00d9e0a7262e752183ddc
There are currently some errors when PL script is ran on the
.md
files:Errors:
Look into the root cause of the errors and resolve them